-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_account.php
More file actions
88 lines (79 loc) · 3.36 KB
/
edit_account.php
File metadata and controls
88 lines (79 loc) · 3.36 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php require_once 'controllers/session_check.php'?>
<?php require_once 'controllers/functions.php'?>
<!doctype html>
<html class="bg-light" lang="en">
<head>
<?php include 'style.php'?>
<meta charset="utf-8">
<title>Edit Account</title>
</head>
<body class="bg-light">
<div class="p-5">
<?php include 'navbar.php';?>
</div>
<div class="container">
<div class="row">
<div class="col-md-7 mx-auto">
<div class="card shadow-lg mt-5">
<div class="card-body">
<h1 class="card-title text-center">Account Lookup</h1>
<form id="lookup">
<div class="form-group">
<input type="text" id="lookup-email" class="form-control" name="email" placeholder="E-mail" required/>
</div>
<div class="text-center">
<button class="btn btn-dark btn-clock text-uppercase" type="submit" name="Submit">Lookup</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-7 mx-auto">
<div class="card shadow-lg my-3">
<div class="card-body">
<h1 class="card-title text-center">Update Information</h1>
<form action="controllers/edit_account_controller.php" method="post">
<div class="form-group">
<input class="form-control" type="text" id="first" class="form-control" name="first" placeholder="First Name" required/>
</div>
<div class="form-group">
<input class="form-control" type="text" id="last" class="form-control" name="last" placeholder="Last Name" required/>
</div>
<div class="form-group">
<input class="form-control" type="number" id="phone" min="0000000000" max="9999999999" name="phone" placeholder="Phone Number" required/>
</div>
<div class="form-group">
<input class="form-control" type="text" id="email" name="email" placeholder="E-mail" required/>
</div>
<div class="form-group">
<input type="password" id="password" class="form-control" name="password" placeholder="Password" />
</div>
<?php
$user_type = getPrivilege();
if($user_type == "admin"){
echo " <div class='form-group'>";
echo " <select class='form-control' id='privilege' name='privilege'>";
echo " <option selected disabled>Privilege</option>";
echo " <option value='employee'>Employee</option>";
echo " <option value='scheduler'>Scheduler</option>";
echo " <option value='admin'>Admin</option>";
echo " </select>";
echo " </div>";
}
?>
<div class="form-group text-center">
<button class="btn btn-dark btn-clock text-uppercase" type="submit" name="submit">Update</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="js/edit_account.js"></script>
</body>
</html>