-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_user.php
56 lines (46 loc) · 2.24 KB
/
edit_user.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
<?php include('header.php'); ?>
<?php include('left_sidebar.php'); ?>
<div class="container-fluid">
<div class="row">
<h1 class="text-center">Edit User</h1>
<div class="col-sm-offset-3 col-sm-5 login_form">
<form method="POST" action="">
<input type="hidden" name="edit_user" value="edit_user">
<input type="hidden" name="edit_user_id" value="<?= $core->fetchUser()->id ;?>">
<div class="form-group">
<label for="email">Email address:</label>
<input value="<?= $core->fetchUser()->email ;?>" name="email" type="email" class="form-control" id="email" required="required">
</div>
<div class="form-group">
<label for="name">Name:</label>
<input value="<?= $core->fetchUser()->name ;?>" name="name" type="text" class="form-control" id="name" required="required">
</div>
<div class="form-group">
<label for="name">Nick Name:</label>
<input value="<?= $core->fetchUser()->nickname ;?>" name="nickname" type="text" class="form-control" id="nickname" required="required">
</div>
<div class="form-group">
<label for="dmy">Is employee:</label>
<select name="is_employee" class="form-control" required="required">
<option <?= ($core->fetchUser()->is_employee == 1) ? 'selected' : '' ;?> value="1">Yes</option>
<option <?= ($core->fetchUser()->is_employee == 0) ? 'selected' : '' ;?> value="0">No</option>
</select>
</div>
<div class="form-group">
<label for="age">Age:</label>
<input value="<?= $core->fetchUser()->age ;?>" name="age" type="number" class="form-control" id="age" required="required">
</div>
<div class="form-group">
<label for="dmy">Day/Month/Year:</label>
<select name="dmy" class="form-control" required="required">
<option <?= ($core->fetchUser()->dmy == 'day') ? 'selected' : '' ;?> value="day">Day</option>
<option <?= ($core->fetchUser()->dmy == 'month') ? 'selected' : '' ;?> value="month">Month</option>
<option <?= ($core->fetchUser()->dmy == 'year') ? 'selected' : '' ;?> value="year">Year</option>
</select>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
<?php include('footer.php'); ?>