-
Notifications
You must be signed in to change notification settings - Fork 0
/
staff.php
446 lines (411 loc) · 21.5 KB
/
staff.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
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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<?php
session_start();
$_SESSION['check'] = '1';
$_SESSION['rollno'] = "NA";
$_SESSION['staff'] = 'true';
// require 'logginsession.php';
$_SESSION['loggedin_time'] = time();
//echo $_SESSION['check'];
if (!isset($_SESSION['check'])){
header('location: index.php');
exit;
}else
if (isLoginSessionExpired()){
header("Location:logout.php?session_expired=1");
}
//echo $_SESSION['ldap_id'];
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title> Hospital Feedback System</title>
<!--Import Google Icon Font-->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> -->
<!--Import local material icon css -->
<link rel="stylesheet" href="css/materialicon.css">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!-- Import font-awesome.css -->
<link type="text/css" rel="stylesheet" href="css/font-awesome.min.css">
<!-- Import manual css file -->
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-fluid">
<div class="row light-blue darken-2 valign-wrapper">
<div class="col s10 m10 l10 xl10 center-align"><h3>Hospital FeedBack System</h3></div>
<div class="col s2 m2 l2 xl2 center-align"><a class="btn waves-effect waves-light" href="logout.php">Logout</a></div>
</div>
</div>
<div class="container">
<div class="row">
<form id="form1" method="post">
<div class="input-field col s4">
<input placeholder="Enter Your Name" id="name" type="text" class="validate" name="name" required>
<label for="name">Name</label>
</div>
<div class="input-field col s4">
<input placeholder="Enter LDAP ID" id="ldapid" type="text" class="validate" name="ldapid" required>
<label for="ldapid">LDAP ID</label>
</div>
<div class="input-field col s4 m4 l4 xl4">
<select name="occupation" required="true">
<option value="" disabled selected>Select Category</option>
<option value="Faculty">Faculty</option>
<option value="Staff">Staff</option>
</select>
<label>Occupation</label>
</div>
<input type="submit" name="details" hidden="true">
</form>
</div>
<div class="row">
<h5>You were in Hospital for:</h5>
</div>
<div class="row">
<ul class="collapsible popout">
<!-- Accordian for OPD Treatment -->
<li>
<div class="collapsible-header"><i class="material-icons">local_hospital</i>General OPD Treatment</div>
<div class="collapsible-body">
<form action="submit.php" method="post">
<div class="row valign-wrapper left-align">
<div class="col s6 m6 l6 xl6">
<p>
How much time did you have to wait?
</p>
</div>
<div class="col s6 m6 l6 xl6">
<p>
<label>
<input class="with-gap" name="waitingtime" type="radio" value="less than 10 minutes" checked />
<span> < 10 minutes </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="waitingtime" type="radio" value="10 - 30 minutes" />
<span> 10 - 30 minutes </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="waitingtime" type="radio" value="more than 30 minutes" />
<span> > 30 minutes </span>
</label>
</p>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row left-align">
<div class="col s12 m12 l12 xl12">
<p> Rate the treatment offered by Medical Officer (OPD) at the hospital</p>
</div>
</div>
<div class="row valign-wrapper center-align">
<div class="col s2 m2 l2 xl2"> 1 star : Poor </div><div class="col s2 m2 l2 xl2"> 3 star : Average </div><div class="col s2 m2 l2 xl2"> 5 star : Excellent</div>
<div class="col s6 m6 l6 xl6 star">
<input class="star star-5" id="ratetreatmentopd-5" type="radio" name="ratetreatmentopd" value="5" required/>
<label class="star star-5" for="ratetreatmentopd-5"></label>
<input class="star star-4" id="ratetreatmentopd-4" type="radio" name="ratetreatmentopd" value="4" />
<label class="star star-4" for="ratetreatmentopd-4"></label>
<input class="star star-3" id="ratetreatmentopd-3" type="radio" name="ratetreatmentopd" value="3" />
<label class="star star-3" for="ratetreatmentopd-3"></label>
<input class="star star-2" id="ratetreatmentopd-2" type="radio" name="ratetreatmentopd" value="2" />
<label class="star star-2" for="ratetreatmentopd-2"></label>
<input class="star star-1" id="ratetreatmentopd-1" type="radio" name="ratetreatmentopd" value="1" />
<label class="star star-1" for="ratetreatmentopd-1"></label>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row valign-wrapper left-align">
<div class="col s6 m6 l6 xl6">
<p> Have you been recommended to specialist ? </p>
</div>
<div class="col s6 m6 l6 xl6">
<p>
<label>
<input class="with-gap" name="specialistrecommended" type="radio" value="Yes" checked />
<span> Yes </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="specialistrecommended" type="radio" value="No" />
<span> No </span>
</label>
</p>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row left-align">
<div class="col s12 m12 l12 xl12">
<p> Rate Overall Experience </p>
</div>
</div>
<div class="row valign-wrapper">
<div class="col s2 m2 l2 xl2"> 1 star : Poor </div><div class="col s2 m2 l2 xl2"> 3 star : Average </div><div class="col s2 m2 l2 xl2"> 5 star : Excellent</div>
<div class="col s6 m6 l6 xl6 star">
<input class="star star-5" id="rateoverallopd-5" type="radio" name="rateoverallopd" value="5" required/>
<label class="star star-5" for="rateoverallopd-5"></label>
<input class="star star-4" id="rateoverallopd-4" type="radio" name="rateoverallopd" value="4" />
<label class="star star-4" for="rateoverallopd-4"></label>
<input class="star star-3" id="rateoverallopd-3" type="radio" name="rateoverallopd" value="3" />
<label class="star star-3" for="rateoverallopd-3"></label>
<input class="star star-2" id="rateoverallopd-2" type="radio" name="rateoverallopd" value="2" />
<label class="star star-2" for="rateoverallopd-2"></label>
<input class="star star-1" id="rateoverallopd-1" type="radio" name="rateoverallopd" value="1" />
<label class="star star-1" for="rateoverallopd-1"></label>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<h5> Suggestions and Feedback</h5>
<p> If you faced any issues during the treatment, mention them here </p>
<input placeholder="Problems and Issues, you faced or any related Suggestion" name="feedbackopd" id="feedbackopd" type="text" class="validate">
<label for="feedbackopd">Your FeedBack</label>
</div>
<!-- <input type="hidden" name="submitOPD" value="OPD"> -->
<button class="btn waves-effect waves-light" type="submit" name="submitOPD" id="form2" onclick="submitForm1">Submit
<i class="material-icons right">send</i>
</button>
</form>
</div>
</li>
<!-- Accordian for Appointment with Specialist -->
<li>
<div class="collapsible-header"><i class="material-icons">add_box</i>Appointment with Specialist Doctor</div>
<div class="collapsible-body">
<form action="submit.php" method="post">
<div class="row valign-wrapper left-align">
<div class="col s6 m6 l6 xl6">
<p>How much you waited to meet the specialist ?</p>
</div>
<div class="col s6 m6 l6 xl6">
<p>
<label>
<input class="with-gap" name="waitingtimeSpecialist" type="radio" value="less than 3 days" checked />
<span> < 3 days </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="waitingtimeSpecialist" type="radio" value="1 week" />
<span> 1 week </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="waitingtimeSpecialist" type="radio" value="1 - 2 week" />
<span> 1 - 2 weeks </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="waitingtimeSpecialist" type="radio" value="more than 2 weeks" />
<span> > 2 weeks </span>
</label>
</p>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row valign-wrapper left-align">
<div class="col s6 m6 l6 xl6">
<p> Was there any clash between your Academic Calender and Appointment ? </p>
</div>
<div class="col s6 m6 l6 xl6">
<p>
<label>
<input class="with-gap" name="clash" type="radio" value="Yes" checked />
<span> Yes </span>
</label>
</p>
<p>
<label>
<input class="with-gap" name="clash" type="radio" value="No" />
<span> No </span>
</label>
</p>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row valign-wrapper left-align">
<div class="col s6 m6 l6 xl6">
<p> If you were admitted to Hospital ? For what duration ?</p>
</div>
<div class="col s6 m6 l6 xl6">
<label>
<input class="with-gap" id="admitted" name="admitted" type="radio" value="No" checked/>
<span> No </span>
</label>
</p>
<p>
<label>
<input class="with-gap" id="admitted" name="admitted" type="radio" value="Yes" />
<span> Yes </span>
</label>
</p>
<input placeholder="Enter Number of Days" id="duration" name="duration" type="text" class="validate" disabled="true" >
<label for="duration">Duration</label>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row left-align">
<div class="col s12 m12 l12 xl12">
<p> Rate Treatment by Specialist: </p>
</div>
</div>
<div class="row valign-wrapper">
<div class="col s2 m2 l2 xl2"> 1 star : Poor </div><div class="col s2 m2 l2 xl2"> 3 star : Average </div><div class="col s2 m2 l2 xl2"> 5 star : Excellent</div>
<div class="col s6 m6 l6 xl6 star">
<input class="star star-5" id="ratetreatmentspecial-5" type="radio" name="ratetreatmentspecial" value="5" required/>
<label class="star star-5" for="ratetreatmentspecial-5"></label>
<input class="star star-4" id="ratetreatmentspecial-4" type="radio" name="ratetreatmentspecial" value="4" />
<label class="star star-4" for="ratetreatmentspecial-4"></label>
<input class="star star-3" id="ratetreatmentspecial-3" type="radio" name="ratetreatmentspecial" value="3" />
<label class="star star-3" for="ratetreatmentspecial-3"></label>
<input class="star star-2" id="ratetreatmentspecial-2" type="radio" name="ratetreatmentspecial" value="2" />
<label class="star star-2" for="ratetreatmentspecial-2"></label>
<input class="star star-1" id="ratetreatmentspecial-1" type="radio" name="ratetreatmentspecial" value="1" />
<label class="star star-1" for="ratetreatmentspecial-1"></label>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row left-align">
<div class="col s12 m12 l12 xl12">
<p> Rate Overall Experience </p>
</div>
</div>
<div class="row valign-wrapper">
<div class="col s2 m2 l2 xl2"> 1 star : Poor </div><div class="col s2 m2 l2 xl2"> 3 star : Average </div><div class="col s2 m2 l2 xl2"> 5 star : Excellent</div>
<div class="col s6 m6 l6 xl6 star">
<input class="star star-5" id="rateoverallspecial-5" type="radio" name="rateoverallspecial" value="5" required/>
<label class="star star-5" for="rateoverallspecial-5"></label>
<input class="star star-4" id="rateoverallspecial-4" type="radio" name="rateoverallspecial" value="4" />
<label class="star star-4" for="rateoverallspecial-4"></label>
<input class="star star-3" id="rateoverallspecial-3" type="radio" name="rateoverallspecial" value="3" />
<label class="star star-3" for="rateoverallspecial-3"></label>
<input class="star star-2" id="rateoverallspecial-2" type="radio" name="rateoverallspecial" value="2" />
<label class="star star-2" for="rateoverallspecial-2"></label>
<input class="star star-1" id="rateoverallspecial-1" type="radio" name="rateoverallspecial" value="1" />
<label class="star star-1" for="rateoverallspecial-1"></label>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<h5> Suggestions and Feedback</h5>
<p> If you faced any issues during the treatment, mention them here </p>
<input placeholder="Problems and Issues, you faced or any related Suggestion" id="feedbackspecial" name="feedbackspecial" type="text" class="validate">
<label for="feedbackspecial">Your FeedBack</label>
</div>
<!-- <input type="hidden" name="submitSpecialist" value="Specialist"> -->
<button class="btn waves-effect waves-light" type="submit" name="submitSpecialist" id="form3" onclick="submitForm2">Submit
<i class="material-icons right">send</i>
</button>
</form>
</div>
</li>
<!-- Accordian for Other Suggestions -->
<li>
<div class="collapsible-header"><i class="material-icons">chat_bubble_outline</i>Any Other Suggestions</div>
<div class="collapsible-body">
<form action="submit.php" method="post">
<input placeholder="Give Your Suggestions here" id="feedbackother" name="feedbackother" type="text" class="validate" required>
<label for="feedbackother">Your FeedBack</label>
<br>
<!-- <input type="hidden" name="submitOther" value="Other"> -->
<button class="btn waves-effect waves-light" type="submit" name="submitOther" id="form4" onclick="submitForm3">Submit
<i class="material-icons right">send</i>
</button>
</form>
</div>
</li>
</ul>
</div>
</div>
<!--JavaScript at end of body for optimized loading-->
<script src="js/jquery.min.js">
</script>
<script type="text/javascript">
submitForm1 = function(){
document.getElementById("form1").submit();
document.getElementById("form2").submit();
}
submitForm2 = function(){
document.getElementById("form1").submit();
document.getElementById("form3").submit();
}
submitForm3 = function(){
document.getElementById("form1").submit();
document.getElementById("form4").submit();
}
</script>
<script>
$(document).ready(function(){
$("button[name=submitSpecialist]").click(function(){
if(($.trim($('#name').val()) == '') || ($.trim($('#ldapid').val()) == '') || ($.trim($("select[name=occupation]").val()) == '')){
alert('Please Fill your details first!!!');
}
$("#form1").submit();
$("input[name=details]").trigger("click");
});
$("button[name=submitOPD]").click(function(){
if(($.trim($('#name').val()) == '') || ($.trim($('#ldapid').val()) == '') || ($.trim($("select[name=occupation]").val()) == '')){
alert('Please Fill your details first!!!');
}
$("#form1").submit();
$("input[name=details]").trigger("click");
});
$("button[name=submitOther]").click(function(){
if(($.trim($('#name').val()) == '') || ($.trim($('#ldapid').val()) == '') || ($.trim($("select[name=occupation]").val()) == '')){
alert('Please Fill your details first!!!');
}
$("#form1").submit();
$("input[name=details]").trigger("click");
});
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<script>
$(document).ready(function() {
$("input[name=admitted]").change(function(){
if (this.value == "Yes")
{
$("#duration").prop("required",true);
$("#duration").prop("disabled",false);
}else {
$("#duration").prop("required",false);
$("#duration").prop("disabled",true);
}
});
});
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.collapsible');
var instances = M.Collapsible.init(elems);
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('select');
var instances = M.FormSelect.init(elems);
});
</script>
</body>
</html>