-
Notifications
You must be signed in to change notification settings - Fork 0
/
registrasi.php
161 lines (149 loc) · 7.84 KB
/
registrasi.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php include 'config/db.php' ?>
<!DOCTYPE html>
<html>
<head>
<title>Zero Reservation - Registrasi</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Passion+One' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="login.php">Zero Reservation</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<!-- <li class="active"><a href="index.php">Home</a></li> -->
<!-- <li><a href="#">Login</a></li>
<li><a href="#">Registrasi</a></li> -->
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="login.php">Login</a></li>
<li class="active"><a href="registrasi.php">Registrasi</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
<div class=" container-fluid text-center col-md-8 col-md-offset-2">
<h2>Registrasi Customer</h2>
<form id="form_advanced_validation" class="loginform" method="POST" action="insertcustomer.php">
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Card Identity (Passport/Kartu Pelajar/KTP)</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-users fa" aria-hidden="true"></i></span>
<input type="number" class="form-control" name="noktp" id="username" min="0" required placeholder="Enter your Card Identity"/>
</div>
</div>
</div>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Username</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user" aria-hidden="true"></i></span>
<input type="text" class="form-control" name="username" id="username" min="3" max="15" placeholder="Enter your Username"/>
</div>
</div>
</div>
<div class="form-group">
<label for="password" class="cols-sm-2 control-label">Password</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock fa-lg" aria-hidden="true"></i></span>
<input id="pwd" type="password" class="form-control" name="password" id="password" min="6" max="25" required placeholder="Enter your Password"/>
</div>
</div>
</div>
<div class="form-group">
<label for="password" class="cols-sm-2 control-label">Confirm Password</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock fa-lg" aria-hidden="true"></i></span>
<input type="password" class="form-control" name="password" oninput="check(this)" id="password" min="6" max="25" required placeholder="Reenter your Password"/>
</div>
</div>
</div>
<script language='javascript' type='text/javascript'>
function check(input) {
if (input.value != document.getElementById('pwd').value) {
input.setCustomValidity('Password Must be Matching.');
} else {
// input is valid -- reset the error message
input.setCustomValidity('');
}
}
</script>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Name</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-bookmark" aria-hidden="true"></i></span>
<input type="text" class="form-control" name="name" id="username" min="3" max="25" required placeholder="Enter your name"/>
</div>
</div>
</div>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Address</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-globe" aria-hidden="true"></i></span>
<input type="text" class="form-control" name="address" id="username" min="3" max="25" required placeholder="Enter your address"/>
</div>
</div>
</div>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Age</label>
<div class="cols-sm-10">
<div class="input-group date">
<span class="input-group-addon"><i class="glyphicon glyphicon-link" aria-hidden="true"></i></span>
<input type="number" class="form-control" name="age" id="username" required min="0" max="100" placeholder="Enter your age"/>
</div>
</div>
</div>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Gender</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-leaf" aria-hidden="true"></i></span>
<select class="input-group" name="gender" required>
<option value="">----Select Gender---</option>
<option value="L">Male</option>
<option value="P">Female</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<label for="username" class="cols-sm-2 control-label">Phone Number</label>
<div class="cols-sm-10">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-phone" aria-hidden="true"></i></span>
<input type="text" class="form-control" name="notel" id="username" required min="0" placeholder="Enter your phone number"/>
</div>
</div>
</div>
<div class="form-group ">
<input type="submit" class="btn btn-primary btn-lg btn-block login-button" value="Registrasi">
</div>
</form>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.js"></script>
</html>