forked from arjanvillon/caredex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_nurse.html
421 lines (342 loc) · 21 KB
/
add_nurse.html
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE html>
<html lang="en">
<head>
<!--meta tags-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="TeamKitty">
<!--title-->
<title>Add Nurse | Caredex</title>
<!--icons-->
<link href="assets/icons/fontawesome-free-5.7.2-web/css/fontawesome.css" rel="stylesheet" />
<link href="assets/icons/fontawesome-free-5.7.2-web/css/solid.css" rel="stylesheet" />
<!--bootstrap core css-->
<link rel="stylesheet" href="assets/styles/bootstrapcss/bootstrap.css" />
<!-- Material Design Bootstrap -->
<link href="assets/plugins/mdb-free_4.7.5/css/mdb.css" rel="stylesheet">
<!--logo-->
<link rel="icon" type="image/png" sizes="32x32" href="assets/images/output-1.png">
<!--custom styles-->
<link rel="stylesheet" href="assets/styles/custom.css" />
<!--internal style-->
<style>
body {
overflow-x: hidden !important;
}
</style>
</head>
<body class="grey lighten-3">
<!--=================NAVBAR======================-->
<!--Main Navigation-->
<nav class="p-3 navbar navbar-expand-xl navbar-light bg-white sticky sticky-top">
<a class="navbar-brand" href="#">
<img class="img-fluid pt-0" src="assets/images/Caredex-2.png" width="150px;" />
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-main" aria-controls="navbar-main" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-main">
<ul class="navbar-nav ml-auto ">
<li class="nav-item pr-3">
<a class="nav-link waves-effect waves-light pl-5 pr-5" href="admin_dashboard.html"><i class="fas fa-th-large"> Dashboard</i>
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item dropdown pr-3 no-arrow">
<a class="nav-link dropdown-toggle waves-effect waves-light pl-5 pr-5" id="agents-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user-injured"></i> Patient
</a>
<div class="dropdown-menu fadeIn dropdown-secondary" aria-labelledby="agents-dropdown">
<a class="dropdown-item waves-effect waves-light" href="admin_add_patient.html"><i class="fas fa-plus"></i> Add</a>
<a class="dropdown-item waves-effect waves-light" href="admin_view_patient.php"><i class="fas fa-search"></i> View</a>
</div>
</li>
<li class="nav-item dropdown active pr-3 no-arrow">
<a class="text-white nav-link dropdown-toggle waves-effect waves-light pl-5 pr-5" id="agents-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user-injured"></i> Nurse
</a>
<div class="dropdown-menu fadeIn dropdown-secondary" aria-labelledby="agents-dropdown">
<a class="dropdown-item waves-effect waves-light" href="add_nurse.html"><i class="fas fa-plus"></i> Add</a>
<a class="dropdown-item waves-effect waves-light" href="admin_nurse.php"><i class="fas fa-search"></i> View</a>
</div>
</li>
<li class="nav-item dropdown pr-3 no-arrow">
<a class="nav-link dropdown-toggle waves-effect waves-light pl-5 pr-5" id="agents-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-clock"></i> Schedule
</a>
<div class="dropdown-menu fadeIn dropdown-secondary" aria-labelledby="agents-dropdown">
<a class="dropdown-item waves-effect waves-light" href="admin_mng_schedule.php"><i class="fas fa-edit"></i> Manage</a>
</div>
</li>
</ul>
<ul class="navbar-nav ml-auto nav-flex-icons">
<li class="nav-item pt-2">
Denielle
</li>
<li class="nav-item avatar dropdown">
<a class="nav-link dropdown-toggle waves-effect waves-light" id="navbarDropdownMenuLink-5" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<img src="assets/images/profile-holder.jpg" class="img-fluid rounded-circle z-depth-0" style="width:30px" alt="Material Design for Bootstrap - example photo">
</a>
<div class="dropdown-menu fadeIn dropdown-menu-right dropdown-secondary" aria-labelledby="navbarDropdownMenuLink-5">
<a class="dropdown-item waves-effect waves-light" href="#">Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item waves-effect waves-light" href="#">Sign Out</a>
</div>
</li>
</ul>
</div>
</nav>
<!--Main Navigation-->
<!--Main Layout-->
<main class="grey lighten-3" style="min-height:80vh">
<!--breadcrumb-->
<div class="row"><!--first row-->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"><!--first col of 1st row-->
<h4 class="pl-5 page-title">Nurse </h4>
</div><!--first col of 1st row-->
</div><!--first row-->
<!--breadcrumb-->
<div class="card mx-5 mb-5"><!--card-->
<div class="card-body">
<div class="form-row">
<div class="md-form col-md-6 mb-0">
<div class="form-row">
<!--id-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Nurse ID</span>
<input type="text" class="form-control" id="n_ID" length="25" name="n_ID" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--first name-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">First Name</span>
<input type="text" class="form-control" id="n_firstname" length="25" name="n_firstname" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--middle name-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Middle Name</span>
<input type="text" class="form-control" id="n_middlename" length="25" name="n_middlename" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--last name-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Last Name</span>
<input type="text" class="form-control" id="n_lastname" length="25" name="n_lastname" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Civil Status</span>
<input type="text" class="form-control" id="n_civilstatus" length="25" name="n_civilstatus" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Title</span>
<input type="text" class="form-control" id="title" length="25" name="title" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
</div><!--2nd row of 1st column-->
</div><!--1st form column-->
<div class="md-form col-md-6 mb-0">
<div class="form-row">
<!--date of admission-->
<div class="md-form col-md-10 mt-0 mb-0">
<div class="row">
<div class="col-sm-5">
</div>
<div class="col-sm-7">
</div>
</div>
</div><!--form column-->
<!--nationality-->
<div class="md-form md-outline col-md-10 mb-0">
<div class="form-row">
<span class="font-weight-bold">Sex</span>
<input type="text" class="form-control" id="sex" length="25" name="sex" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--row for bed and ward-->
</div>
<!--doctore-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Nationality</span>
<input type="text" class="form-control" id="n_nationality" length="25" name="n_nationality" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--diagnosis-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Age</span>
<input type="text" class="form-control" id="age" length="25" name="age" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--id-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Username</span>
<input type="text" class="form-control" id="user" length="25" name="user" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--id-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Password</span>
<input type="password" class="form-control" id="pass" length="25" name="pass" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
</div><!--1st form column-->
</div><!--main row of form-->
<div class="form-row w-100">
<div class="col-12">
<span class="font-weight-bold">Address</span>
<hr class="mt-0 shadow grey lighten-3" style="padding:1px;">
</div>
</div>
<div class="form-row">
<div class="md-form col-md-6 mb-0">
<div class="form-row">
<!--first name-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Street</span>
<input type="text" class="form-control" id="street" length="25" name="street" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<!--middle name-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Barangay</span>
<input type="text" class="form-control" id="brgy" length="25" name="brgy" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
</div><!--2nd row of 1st column-->
</div><!--1st form column-->
<div class="md-form col-md-6 mb-0">
<div class="form-row">
<!--date of admission-->
<div class="md-form col-md-10 mt-0 mb-0">
<div class="row">
<div class="col-sm-5">
</div>
<div class="col-sm-7">
</div>
</div>
</div><!--form column-->
<!--nationality-->
<div class="md-form md-outline col-md-10 mb-0">
<span class="font-weight-bold">Municipality</span>
<input type="text" class="form-control" id="municipality" length="25" name="municipality" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--form column-->
<div class="md-form md-outline col-md-10 mb-0">
<div class="form-row">
<span class="font-weight-bold">Region</span>
<input type="text" class="form-control" id="region" length="25" name="region" placeholder="" value="" autocomplete="off" required>
<div class="valid-feedback">
<!--code for validation-->
</div>
</div><!--row for bed and ward-->
</div>
</div><!--1st form column-->
</div><!--main row of form-->
</div>
<div class="form-row w-100">
<div class="md-form md-outline col-md-12 mb-0">
<div class="d-flex justify-content-md-center">
<input class="btn btn-submit btn-gradient-submit p-2 pl-4 pr-4 mx-2 btn-bordred btn-oblong" type="submit" name="save_admin_add_patient" onclick="add_nurse()" />
<button type="reset" onclick="cancel1()" class="btn-reset btn btn-grey waves-effect p-2 pl-4 pr-4 btn btn-oblong btn-secondary btn-bodred waves-effect waves-light mr-5 m-l-5">
Cancel
</button>
</div>
</div><!--form column-->
</div><!--form row-->
</div>
</div><!--card-->
</main>
<!--Main Layout-->
<!-- Footer -->
<footer class="page-footer font-small grey lighten-5">
<!-- Copyright -->
<div class="footer-copyright font-weight-normal text-center blue-grey-text py-3">© 2019 Copyright:
<a href="#" class="light-blue-text"> TeamKitty</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="assets/scripts/jqueryjs/jquery.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="assets/scripts/popperjs/popper.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="assets/scripts/boostrapjs/bootstrap.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="assets/plugins/mdb-free_4.7.5/js/modules/waves.js"></script>
<script type="text/javascript" src="assets/plugins/mdb-free_4.7.5/js/modules/forms-free.js"></script>
<script type="text/javascript" src="assets/plugins/mdb-free_4.7.5/js/bootstrap.js"></script>
<!--Custom Javascript-->
<script type="text/javascript" src="assets/scripts/script.js"></script>
<script src="assets/scripts/jqueryjs/jquery.min.js"></script>
</html>
<script>
function add_nurse(){
var n_ID=$("#n_ID").val();
var n_firstname=$("#n_firstname").val();
var n_middlename=$("#n_middlename").val();
var n_lastname=$("#n_lastname").val();
var age=$("#age").val();
var sex=$("#sex").val();
var n_civilstatus=$("#n_civilstatus").val();
var n_nationality=$("#n_nationality").val();
var title=$("#title").val();
var user=$("#user").val();
var pass=$("#pass").val();
var street=$("#street").val();
var brgy=$("#brgy").val();
var municipality=$("#municipality").val();
var region=$("#region").val();
if(n_ID=="" || n_firstname=="" || n_middlename=="" || n_lastname=="" || age=="" || sex=="" || n_civilstatus=="" || title=="" || user=="" || pass=="" || street=="" || brgy=="" || municipality=="" || region=="" || n_nationality==""
){
alert("Please Fill Up The Form Completely");
return false;
}
$.ajax({
url:"save_nurse.php",
method:"POST",
data:{n_ID:n_ID,n_firstname:n_firstname,n_middlename:n_middlename,n_lastname:n_lastname,age:age,sex:sex,n_civilstatus:n_civilstatus,n_nationality:n_nationality,title:title,user:user,pass:pass,street:street,brgy:brgy,municipality:municipality,region:region},
dataType:"text",
success: function (data){
alert(data);
$("input:text").val("");
$("input:password").val("");
}
});
}
function cancel1(){
if(confirm("Are you sure you want to Cancel?"))
{
$("input:text").val("");
}
}
</script>