-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_user.php
More file actions
122 lines (95 loc) · 3.99 KB
/
create_user.php
File metadata and controls
122 lines (95 loc) · 3.99 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
include('functions.php');
//...
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Sign In</title>
<!-- Favicon-->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link href="plugins/iconfont/material-icons.css" rel="stylesheet" type="text/css">
<!-- Bootstrap Core Css -->
<link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Waves Effect Css -->
<link href="plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Animation Css -->
<link href="plugins/animate-css/animate.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="css/style.css" rel="stylesheet">
</head>
<body class="signup-page">
<div class="signup-box">
<div class="logo">
<b> Library Management System</b>
</div>
<div class="card">
<div class="body">
<?php echo display_error(); ?>
<form id="sign_up" method="POST" action="register.php">
<div class="msg">Register a new membership</div>
<div class="input-group">
<span class="input-group-addon">
<label>Username</label>
</span>
<div class="form-line">
<input type="text" class="form-control" name="username" value="<?php echo $username; ?>" >
</div>
</div>
<div class="input-group">
<span class="input-group-addon">
<label>Email</label>
</span>
<div class="form-line">
<input type="email" class="form-control" name="email" value="<?php echo $email; ?>">
</div>
</div>
<div class="input-group">
<span class="input-group-addon">
<label>User type</label>
</span>
<div class="form-line">
<select name="user_type" id="user_type" >
<option value=""></option>
<option value="admin">Admin</option>
<option value="user">User</option>
</select>
</div>
</div>
<div class="input-group">
<span class="input-group-addon">
<label>Password</label>
</span>
<div class="form-line">
<input type="password" class="form-control" name="password_1" >
</div>
</div>
<div class="input-group">
<span class="input-group-addon">
<label>Confirm Password</label>
</span>
<div class="form-line">
<input type="password" class="form-control" name="password_2">
</div>
</div>
<button class="btn btn-block btn-lg bg-pink waves-effect" type="submit" name="register_btn">CREATE USER</button>
</form>
</div>
</div>
</div>
<!-- Jquery Core Js -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap Core Js -->
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="plugins/node-waves/waves.js"></script>
<!-- Validation Plugin Js -->
<script src="plugins/jquery-validation/jquery.validate.js"></script>
<!-- Custom Js -->
<script src="js/admin.js"></script>
<script src="js/pages/examples/sign-up.js"></script>
</body>
</html>