-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
368 lines (361 loc) · 19.6 KB
/
index.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ondo State Centralized Census Board</title>
<!-- Styling Rules -->
<link rel="stylesheet" href="./assets/css/style.css">
<!-- Javascript Dependencies -->
<script src="./assets/js/vue.js"></script>
</head>
<body>
<div id="app">
<div class="wrapper">
<!-- Cover Layer -->
<div class="coverLayer loading" v-bind:class="{ active: isActive }">
</div>
<!-- Main Card -->
<div class="card loading" v-bind:class="{ active: isActive }">
<div class="logo">
<h4>ondo state centralized census board</h4>
<p>census card</p>
</div>
<div class="body">
<div class="passport">
<img v-bind:src="profilePicture" alt="">
</div>
<div class="details">
<div>
<p>Card No</p>
<p class="details">ONCC{{userID}}</p>
</div>
<div>
<p class='name'>{{fullName}}</p>
</div>
<div>
<div class="special">
<p>Age</p>
<p class="details">{{age}}</p>
</div>
<div class="special">
<p>Gender</p>
<p class="details">{{gender}}</p>
</div>
</div>
<div>
<p>Address</p>
<p class="details">{{homeAddress}}</p>
</div>
<div>
<p>Ethnic Group</p>
<p class="details">{{ethnicGroup}}</p>
</div>
<div>
<p>State of Origin</p>
<p class="details">{{stateOfOrigin}}</p>
</div>
<div>
<p>Phone Number</p>
<p class="details">{{phoneNumber}}</p>
</div>
</div>
</div>
</div>
<div class="leftTab">
<div class="content">
<div class="wrapLogo">
<div class="brandLogo"></div>
</div>
<div class="brandName">
<h3>ONDO STATE CENTRALIZED CENSUS BOARD</h3>
<p>
Project Proposal to Census Department of Ondo state, to enhance
data acquisition from the public.
</p>
</div>
</div>
</div>
<div class="rightTab">
<div id="loader"></div>
<div class="content" v-if="isInitStarted">
<div class="brandName r_tab">
<p>welcome to</p>
<h3>ONDO-CCBS</h3>
</div>
<div class="mainContent">
<h1>Censused made easy.</h1>
<h4>Join millions in getting registered today.</h4>
</div>
<div class="action_button">
<button type="submit" v-on:click="getStarted">Get Started</button>
</div>
</div>
<div class="wrap-form" v-if="isStarted">
<div id="alert" class="alert">
<p id="msgAlert">Whats up guy</p>
</div>
<div id="image_section">
<div class="setImage">
<input type="file" name="" v-on:change="setImage">
</div>
<img v-bind:src="profilePicture" alt="">
</div>
<div id="tabs">
<div v-if="formOne" class="tab">
<h3>Personal Information</h3>
<div id="before_line">
<div id="after_line" :style="{width: growthBar + '%'}"></div>
</div>
<form action="">
<div>
<label for="fullName">Full Name</label><span id="required">*</span>
<input type="text" v-model="fullName" name="fn" id="fullName" placeholder="Full Name">
</div>
<div>
<label for="DOB">Date of birth</label><span id="required">*</span>
<input type="date" v-on:change="changeDOB" v-model="dob" name="dob" id="DOB">
</div>
<div>
<label for="age">Age</label>
<input type="number" disabled v-model="age" name="age" id="age">
</div>
<div>
<label for="gender">Gender</label><span id="required">*</span>
<select name="gender" v-model="gender" id="gender">
<option value="" disabled>Gender</option>
<option value="Female">Female</option>
<option value="Male">Male</option>
</select>
</div>
<div>
<label for="homeAddress">Home Address</label><span id="required">*</span>
<input type="text" v-model="homeAddress" name="" placeholder="eg: !2 Rufus Giwa, Way">
</div>
</form>
<div class="btn_group">
<button id="next" @click="validatePerson" type="submit">Next</button>
</div>
</div>
<div v-if="formTwo" class="tab">
<h3>Location Information</h3>
<div id="before_line">
<div id="after_line" :style="{width: growthBar + '%'}"></div>
</div>
<form action="">
<div>
<label for="stateOfOrigin">State of origin</label><span id="required">*</span>
<select name="" v-on:change="getLGA" id='state' v-model="stateOfOrigin">
<option value="" disabled></option>
<option v-for="e in AvailableStates" v-bind:value="e">{{e}}</option>
</select>
</div>
<div>
<label for="lga">local government area</label><span id="required">*</span>
<select name="lga" id='lga' v-model="lga">
<option value="" disabled>LGA</option>
<option v-for="e in stateLGAs" v-bind:value="e">{{e}}</option>
</select>
</div>
<div>
<label for="">Hometown</label><span id="required">*</span>
<input type="text" name="" v-model="hometown" id="" placeholder="eg: owo">
</div>
<div>
<label for="">State of residence</label>
<select name="sor" v-model="stateOfResidence" id="">
<option value="" disabled>Residence</option>
<option value="ondo">Ondo</option>
</select>
</div>
<div>
<label for="">lga of residence</label>
<select name="" v-model="lgaOfResidence" id="">
<option value="" disabled>LGA</option>
<option v-for="lga in ondoLGA" v-bind:value="lga">{{lga}}</option>
</select>
</div>
</form>
<div class="btn_group">
<button id="previous" @click="previousForm" type="submit">Previous</button>
<button id="next" @click="validateLocation" type="submit">Next</button>
</div>
</div>
<div v-if="formThree" class="tab">
<h3>General Information</h3>
<div id="before_line">
<div id="after_line" :style="{width: growthBar + '%'}"></div>
</div>
<form action="">
<div>
<label for="ethnicGroup">Ethnic Group</label><span id="required">*</span>
<input type="text" name="" id="" v-model="ethnicGroup" id="ethnicGroup" placeholder='Ethnic group'>
</div>
<div>
<label for="religion">Religion</label><span id="required">*</span>
<select name="religion" v-model="religion" required='required' id="religion">
<option value="" disabled>Religion</option>
<option value="christian">Christianity</option>
<option value="islam">Islam</option>
<option value="others">Others</option>
</select>
</div>
<div>
<label for="occupation">occupation</label>
<select name="occupation" v-model="occupation" id="occupation">
<option value="" disabled>Occupation</option>
<option value="student">Student</option>
<option value="business">Business</option>
<option value="teacher">Teacher</option>
<option value="military">Militiary Personnel</option>
</select>
</div>
<div>
<label for="phone-number">phone number</label>
<input type="tel" v-model="phoneNumber" name="" id="phone-number" placeholder="08012345678">
</div>
<div>
<label for="email">Email Address</label>
<input type="email" v-model="email" name="" id="email" placeholder="[email protected]">
</div>
</form>
<div class="btn_group">
<button id="previous" @click="previousForm" type="submit">Previous</button>
<button id="next" @click="validateGeneral" type="submit">Next</button>
</div>
</div>
<div v-if="formFour" class="tab">
<h3>National Information</h3>
<div id="before_line">
<div id="after_line" :style="{width: growthBar + '%'}"></div>
</div>
<form action="">
<div>
<label for="bvn">Bank Verification Number</label>
<input type="text" v-model="bvn" name="" placeholder="">
</div>
<div>
<label for="nin">National Identification Number</label>
<input type="text" v-model="nin" name="" placeholder="">
</div>
<div>
<label for="vin">Voters Identification Number</label>
<input type="text" v-model="vin" name="" placeholder="">
</div>
<div>
<label for="passNum">International Passport Number</label>
<input type="text" v-model="passNum" name="" placeholder="">
</div>
</form>
<div class="btn_group">
<button id="previous" @click="previousForm" type="submit">Previous</button>
<button id="next" @click="validateNational" type="submit">Preview</button>
</div>
</div>
<div v-if="formCompleted" class="tab">
<div class="wrap_forms">
<div class="form_details">
<p>full name</p>
<h5>{{fullName}}</h5>
</div>
<div class="form_details">
<p>date of birth</p>
<h5>{{dob}}</h5>
</div>
<div class="form_details">
<p>age</p>
<h5>{{age}}</h5>
</div>
<div class="form_details">
<p>gender</p>
<h5>{{gender}}</h5>
</div>
<div class="form_details">
<p>home address</p>
<h5>{{homeAddress}}</h5>
</div>
<div class="form_details">
<p>state of origin</p>
<h5>{{stateOfOrigin}}</h5>
</div>
<div class="form_details">
<p>local government area</p>
<h5>{{lga}}</h5>
</div>
<div class="form_details">
<p>hometown</p>
<h5>{{hometown}}</h5>
</div>
<div class="form_details">
<p>state of residence</p>
<h5>{{stateOfResidence}}</h5>
</div>
<div class="form_details">
<p>LGA of residence</p>
<h5>{{lgaOfResidence}}</h5>
</div>
<div class="form_details">
<p>ethnic group</p>
<h5>{{ethnicGroup}}</h5>
</div>
<div class="form_details">
<p>religion</p>
<h5>{{religion}}</h5>
</div>
<div class="form_details">
<p>occupation</p>
<h5>{{occupation}}</h5>
</div>
<div class="form_details">
<p>phone number</p>
<h5>{{phoneNumber}}</h5>
</div>
<div class="form_details">
<p>email</p>
<h5 class="email">{{email}}</h5>
</div>
<div class="form_details">
<p>bank verification number</p>
<h5>{{bvn}}</h5>
</div>
<div class="form_details">
<p>national identification number</p>
<h5>{{nin}}</h5>
</div>
<div class="form_details">
<p>voters identification number</p>
<h5>{{vin}}</h5>
</div>
<div class="form_details">
<p>International Passport Number</p>
<h5 class="email">{{passNum}}</h5>
</div>
</div>
<div class="btn_group form_btn">
<button @click="cancelForm" id="cancel" type="submit"></button>
<button @click="confirmForm" id="confirm" type="submit"></button>
</div>
</div>
</div>
</div>
<div class="processing" v-bind:class="{active: isProcessing}">
<div id="completed">
<div class="completedIcon"></div>
<h3 class="inform">Your form was submitted successfully.</h3>
<h4 class="action">Generating the Census Card</h4>
<div class="loader">
<div class='active'></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./assets/js/axios.min.js"></script>
<script src="./assets/js/databinds.js"></script>
</body>
</html>