-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-user.php
90 lines (80 loc) · 4.93 KB
/
add-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
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
89
90
<?php include"sidebar.php"; ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="header">
<h4 class="title">Add User</h4>
</div>
<?php if(get("success")):?>
<div>
<?=App::message("success", "New User added Successfully!")?>
</div>
<?php endif;?>
<div class="content">
<form action="saveuser.php" method="post">
<div class="row">
<div class="col-md-5">
<div class="form-group">
<label>User ID</label>
<input type="text" name="user_id" class="form-control" placeholder="Company" value="<?php
$prefix= md5(time()*rand(1, 2)); echo strip_tags(substr($prefix ,0,10));?>" readonly>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>Username</label>
<input type="text" name="username" class="form-control" placeholder="Username" ">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="exampleInputEmail1">Password</label>
<input type="password" name="pass" class="form-control" placeholder="Password">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" placeholder="Email">
</div>
</div>
<div class="col-md-8">
<div class="form-group">
<label>Full Name</label>
<input type="text" name="name" class="form-control" placeholder="Full Name">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Address</label>
<input type="text" name="address" class="form-control" placeholder="Home Address" >
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>User Type</label>
<select class="form-control" name="position" >
<option value="admin">Administrator</option>
<option value="officer">Officer</option>
</select>
</div>
</div>
</div>
<button type="submit" class="btn btn-info btn-fill pull-right">Create User</button>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include"footer.php"; ?>