-
Notifications
You must be signed in to change notification settings - Fork 13
/
customer_add.php
184 lines (131 loc) · 5.01 KB
/
customer_add.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
include "validate_admin.php";
include "header.php";
include "user_navbar.php";
include "admin_sidebar.php";
include "session_timeout.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="customer_add_style.css">
</head>
<body>
<form class="add_customer_form" action="customer_add_action.php" method="post">
<div class="flex-container-form_header">
<h1 id="form_header">Please fill in the following details . . .</h1>
</div>
<div class="flex-container">
<div class=container>
<label>First Name :</label><br>
<input name="fname" size="30" type="text" required />
</div>
<div class=container>
<label>Last Name :</b></label><br>
<input name="lname" size="30" type="text" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Gender :</label>
</div>
<div class="flex-container-radio">
<div class="container">
<input type="radio" name="gender" value="male" id="male-radio" checked>
<label id="radio-label" for="male-radio"><span class="radio">Male</span></label>
</div>
<div class="container">
<input type="radio" name="gender" value="female" id="female-radio">
<label id="radio-label" for="female-radio"><span class="radio">Female</span></label>
</div>
<div class="container">
<input type="radio" name="gender" value="others" id="other-radio">
<label id="radio-label" for="other-radio"><span class="radio">Others</span></label>
</div>
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Date of Birth :</label><br>
<input name="dob" size="30" type="text" placeholder="yyyy-mm-dd" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Aadhar No :</label><br>
<input name="aadhar" size="25" type="text" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Email-ID :</label><br>
<input name="email" size="30" type="text" required />
</div>
<div class=container>
<label>Phone No. :</b></label><br>
<input name="phno" size="30" type="text" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Address :</label><br>
<textarea name="address" required /></textarea>
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Bank Branch :</label>
</div>
<div class=container>
<select name="branch">
<option value="SHIVAMOGA">SHIVAMOGA</option>
<option value="BANGALORE">BANGALORE</option>
<option value="CHITRADURGA">CHIRADURGA</option>
<option value="BHADRAVATHI">BHADRAVATHI</option>
<option value="MYSORE">MYSORE</option>
</select>
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Account No :</label><br>
<input name="acno" size="25" type="text" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Opening Balance :</label><br>
<input name="o_balance" size="20" type="text" required />
</div>
<div class=container>
<label>PIN(4 digit) :</b></label><br>
<input name="pin" size="15" type="password" required />
</div>
</div>
<div class="flex-container">
<div class=container>
<label>Username :</label><br>
<input name="cus_uname" size="30" type="text" required />
</div>
<div class=container>
<label>Password :</b></label><br>
<input name="cus_pwd" type="password" required />
</div>
</div>
<div class="flex-container">
<div class="container">
<button type="submit">Submit</button>
</div>
<div class="container">
<button type="reset" class="reset" onclick="return confirmReset();">Reset</button>
</div>
</div>
</form>
<script>
function confirmReset() {
return confirm('Do you really want to reset?')
}
</script>
</body>
</html>