-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin_edit_admin.php
75 lines (53 loc) · 2.22 KB
/
admin_edit_admin.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit User Admin Information</title>
<?php include("components/header.php"); ?>
<?php include("database.php"); ?>
<?php include("admin_validation.php") ?>
</head>
<body id="page-top">
<?php include("components/navbar.php"); ?>
<div id="wrapper">
<?php include("components/sidebar.php"); ?>
<div id="content-wrapper">
<div class="container-fluid">
<h3>Edit Admin Info</h3>
<p>Please enter a user's id, which can be found in the student directory, to edit the admin info for that student.</p>
<form action='admin_edit_admin_form.php' method='post'>
<!-- User -->
<div class="form-group">
<div class="form-label-group">
<input type="text" id="inputID" name="user" class="form-control" placeholder="User ID" required="required">
<label for="inputID">User ID</label>
</div>
</div>
<input class='btn btn-primary btn-block col-md-3' type='submit' name='submit' value='Search User'>
</form>
</div>
<!-- /.container-fluid -->
<?php include("components/footer.php"); ?>
</div>
<!-- /.content-wrapper -->
</div>
<!-- /#wrapper -->
<?php include("components/javascript.php"); ?>
<script type="text/javascript">
function grantForm() {
if (document.getElementById('grantYes').checked) {
document.getElementById('grant').style.display = 'block';
document.getElementById('grantName').required = 'required';
}
else {
document.getElementById('grant').style.display = 'none';
document.getElementById('grantName').required = '';
}
}
</script>
</body>
</html>