-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-settings.php
More file actions
46 lines (40 loc) · 1.6 KB
/
admin-settings.php
File metadata and controls
46 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
include_once("header.php");
include_once("navigation.php");
include_once("adminsidebar.php");
include_once("connection.php");
echo '<div id="page-content-wrapper">';
$sql ="SELECT * FROM eventorganizer";
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($result);
$organizer = $row["organizer"];
?>
<div class="row">
<div class="col-md-12">
<div class="alert" align="center" style="display:none;">Password successfully updated.</div>
</div></div>
<div class="col-md-4 col-md-offset-1">
<br/>
<h1 class="panel-body">Admin Settings</h1>
<br/>
<label>Current Event Organizer</label>
<input type="text" name="" class="form-control" value="<?php echo $organizer; ?>" id="eventorganizer"><br/>
<label>Update Username</label>
<input type="text" name="" class="form-control " value="<?php echo $_SESSION["username"]; ?>" id="adminUsername"><br/>
<button class="btn btn-primary" onclick="updateAdminInfo()">Update Information</button>
</div>
<div class="col-md-4 col-md-offset-1">
<br/>
<h3 class="panel-body">Update Password</h3>
<hr/>
<label>Enter your current password</label>
<input type="password" class="form-control input-sm" id="currentPassword">
<label>Enter your new password</label>
<input type="password" class="form-control input-sm" id="newPassword">
<label>Retype your password</label>
<input type="password" class="form-control input-sm" id="newPassword1"><br/>
<button class="btn btn-primary" onclick="updateUserPassword()">Update Password</button>
</div>
<?php
include_once('footeradmin.php');
?>