-
Notifications
You must be signed in to change notification settings - Fork 4
/
survey1.php
617 lines (587 loc) · 42.9 KB
/
survey1.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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
<?php
include('session.php');
include('db.php');
$survey_maxcount_qry = mysqli_query($con,"SELECT * FROM `survey_maxcount` WHERE survey_ownerID = '$login_id'");
$survey_maxattemp = mysqli_fetch_array($survey_maxcount_qry);
if ($survey_maxattemp['survey_ownerID'] == $login_id) {
//getting latest date base on server PC
$date_now = date("Y/m/d") ;
$year_now = date( "Y", strtotime( "$date_now"));
$date_now;
$survey_maxattemp['survey_maxattemp'];
if($survey_maxattemp['survey_maxattemp'] <= 0)
{
header('Location: surveyview.php');
}
}
else {
mysqli_query($con,"INSERT INTO `survey_maxcount` (`survey_ownerID`, `survey_maxattemp`) VALUES ('$login_id', '2')");
$last_id = mysqli_insert_id($con);
$survey_maxcount_qry = mysqli_query($con,"SELECT survey_maxattemp FROM `survey_maxcount` WHERE survey_id = '$last_id'");
}
$page = 'survey';
if ($login_level == '1')
{
$result = mysqli_query($con,"SELECT * FROM `user_student_detail` WHERE student_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['student_img'];
}
else if ($login_level == '2')
{
$result = mysqli_query($con,"SELECT * FROM `user_teacher_detail` WHERE teacher_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['teacher_img'];
}
else if ($login_level == '3')
{
$result = mysqli_query($con,"SELECT * FROM `user_admin_detail` WHERE admin_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['admin_img'];
}
else
{}
?>
<!DOCTYPE html>
<html>
<head>
<?php include('meta.php');?>
<?php include('style_css.php');?>
<title>Survey</title>
</head>
<script type="text/javascript">
$(document).ready(function(){
$("#ilabasmo").hide()
$("#washing").click(function(){
$("#ilabasmo").toggle();
});
});
</script>
<body class=" menu-affix">
<div class="bg-dark dk" id="wrap">
<div id="top">
<?php include ('top_navbar.php');?>
</div>
<!-- /#top -->
<?php
if ($login_level == '1')
{
include('sidebar_student.php');
}
if ($login_level == '2')
{
include('sidebar_teacher.php');
}
elseif ($login_level == '3')
{
include('sidebar_admin.php');
}
else
{
}
?>
<!-- /#left -->
<div id="content">
<div class="outer">
<header class="head">
<div class="main-bar">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Dashboard</a></li>
<li class="breadcrumb-item active"> Survey Questionaire</li>
</ol>
</div>
<!-- /.main-bar -->
</header>
<div class="inner bg-light lter">
<div>
<?php
if ($survey_maxattemp['survey_maxattemp'] == '0') {
# code...
}
else
{
?>
<h3 class="pull-right"><a href="" class="btn btn-default">Retake Remaining (<?php echo $survey_maxattemp['survey_maxattemp'];?>)</a></h3>
<?php
}
?>
<form class="form-horizontal" method="POST" action="action/surveyresult.php?ownerID=<?php echo $login_id;?>">
<h1>GRADUATE TRACER SURVEY (GTS)</h1>
<br>
<div class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">1. Reason (s) for taking the course (s) or pursuing degree (s). You may check (/) more than one answer.</span></h5>
<table class="table">
<thead>
<tr>
<th></th>
<th><span class="" style="">Undergraduate/AB/BS </span></th>
<th><span class="" style="">Graduate/MS/MA/Ph.D.</span></th>
</tr>
</thead>
<tbody>
<tr>
<td><span style="">High Grades in the course or subject area (s) related to the course</span></td>
<td>
<label class="">
<input type="checkbox" name="U_AB_BS1" value="U_AB_BS1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD1" value="G_MS_MA_PHD1"><span class="circle" style=""></span><span class="check" style=""></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Good grades in high school</span></td>
<td>
<label class="">
<input type="checkbox" name="U_AB_BS2" value="U_AB_BS2" class=""><span class="circle"></span><span class="check" style=""></span></label>
</td>
<td>
<label class="">
<input type="checkbox" name="G_MS_MA_PHD2" value="G_MS_MA_PHD2" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Influence of parents or relatives</span></td>
<td>
<label class="">
<input type="checkbox" name="U_AB_BS3" value="U_AB_BS3" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" name="G_MS_MA_PHD3" value="G_MS_MA_PHD3" class=""><span class="circle" style=""></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Peer Influence</span></td>
<td>
<label class="">
<input type="checkbox" name="U_AB_BS4" value="U_AB_BS4" class=""><span class="circle" style=""></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" name="G_MS_MA_PHD4" value="G_MS_MA_PHD4" class=""><span class="circle"></span><span class="check" style=""></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Inspired by a role model</span></td>
<td>
<label class="">
<input type="checkbox" name="U_AB_BS5" value="U_AB_BS5" class=""><span class="circle"></span><span class="check" style=""></span></label>
</td>
<td>
<label class="">
<input type="checkbox" name="G_MS_MA_PHD5" value="G_MS_MA_PHD5" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Strong passion for the profession</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS6" value="U_AB_BS6"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD6" value="G_MS_MA_PHD6"><span class="circle" style=""></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Prospect for immediate employment</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS7" value="U_AB_BS7"><span class="circle" style=""></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD7" value="G_MS_MA_PHD7"><span class="circle"></span><span class="check" style=""></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Status or prestige of the profession</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS8" value="U_AB_BS8"><span class="circle"></span><span class="check" style=""></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD8" value="G_MS_MA_PHD8"><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Availability of course offering in chosen institution</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS9" value="U_AB_BS9"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD9" value="G_MS_MA_PHD9"><span class="circle" style=""></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span class="" style="">Prospect of career advancement</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS10" value="U_AB_BS10"><span class="circle" style=""></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD10" value="G_MS_MA_PHD10"><span class="circle"></span><span class="check" style=""></span></label>
</td>
</tr>
<tr>
<td><span style="">Affordable for the family</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS11" value="U_AB_BS11"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD11" value="G_MS_MA_PHD11"><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Prospect of attractive compensation</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS12" value="U_AB_BS12"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD12" value="G_MS_MA_PHD12"><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Opportunity for employment abroad</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS13" value="U_AB_BS13"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD13" value="G_MS_MA_PHD13"><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">No particular choice or no better idea</span></td>
<td>
<label class="">
<input type="checkbox" class="" name="U_AB_BS14" value="U_AB_BS14"><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input type="checkbox" class="" name="G_MS_MA_PHD14" value="G_MS_MA_PHD14"><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Others, please specify</span></td>
<td>
<label class="">
<input type="text" class="form-control" name="Other_q1" value=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
<div id="sq_106" class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">2. What were your reasons for accepting the job? You may check (/) more than one answer.</span></h5>
<table class="table">
<thead>
<tr>
<th></th>
<th><span class="" style=""></span></th>
</tr>
</thead>
<tbody>
<tr>
<td><span style="">Salaries and benefits</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="Salaries_benefits" value="yes" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Career challenge</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="Career_challenge" value="yes" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Related to special skills</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="Related_to_special_skills" value="yes" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Proximity to residence</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="Proximity_to_residence" value="yes" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Other reason (s), please specify</span></td>
<td>
<label class="">
<input type="text" class="form-control" name="Other_q2" value=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
</tbody>
</table>
</div>
<div id="sq_106" class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">3. Job Level Position.</span></h5>
<table class="table">
<thead>
<tr>
<th><span class="" style="">Job Level</span></th>
<th><span class="" style="">First Job </span></th>
<th><span class="" style="">Current or Present Job</span></th>
</tr>
</thead>
<tbody>
<tr>
<td><span style="">Rank or Clerical</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="FJ_RankCleric" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="CPJ_RankCleric" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Professional, Technical or Supervisory</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="FJ_ProTecSup" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="CPJ_ProTecSup" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Managerial or Executive</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="FJ_Magex" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="CPJ_Magex" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td><span style="">Self-employed</span></td>
<td>
<label class="">
<input id="" type="checkbox" name="FJ_SelfEmp" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="CPJ_SelfEmp" value="1" class=""><span class="circle"></span><span class="check"></span></label>
</td>
</tr>
</tbody>
</table>
</div>
<div id="sq_106" class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">4. What is your initial gross monthly earning in your first job after college?</span></h5>
<table class="table">
<thead>
<tr>
<th><span class="" style=""></span></th>
<th><span class="" style=""></span></th>
<th><span class="" style=""></span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="Below5k" value="1" class=""><span class="circle"></span><span class="check">Below P 5,000.00 </span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="k15_less_than_20k" value="1" class="">P 15,000.00 to less than P 20,000.00<span class="circle"></span><span class="check"></span></label>
</td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="k5lessthan10k" value="1" class="">P 5,000.00 to less than P 10,000.00<span class="circle"></span><span class="check"></span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="k20_less_than_25k" value="1" class=""><span class="circle"></span><span class="check">P 20,000.00 to less than P 25,000.00</span></label>
</td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="k10_less_than_15k" value="1" class=""><span class="circle"></span><span class="check">P 10,000.00 to less than P 15,000.00 </span></label>
</td>
<td>
<label class="">
<input id="" type="checkbox" name="k25_and_above" value="1" class=""><span class="circle"></span><span class="check">P 25,000.00 and above</span></label>
</td>
</tr>
</tbody>
</table>
</div>
<div id="sq_106" class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">5. Are you presently employed?</span></h5>
<select id="" class="form-control" style="width: 300px;" name="pre_emp">
<option value=""></option>
<option value="yes">Yes</option>
<option value="no">No</option>
<option value="never">Never Employed</option>
</select>
</div>
<div id="Yes" class="x" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">6. Current Job</span></h5>
<input type="text" name="job" class="form-control">
</div>
<div id="" class="x" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">7. Rank</span></h5>
<select id="" class="form-control" style="width: 300px;" name="pre_stat">
<option value=""></option>
<option value="rop" >Regular or Permanent</option>
<option value="temp">Temporary</option>
<option value="cas">Casual</option>
<option value="con">Contractual</option>
<option value="self">Self- employed</option>
</select>
</div>
<div id="sq_106" class="" style="display: inline-block; vertical-align: top; width: 100%;">
<h5 class=""><span style="">8. Was the curriculum you had in college relevant to your first job?</span></h5>
<table class="table">
<thead>
<tr>
<th><span class="" style=""></span></th>
<th><span class="" style=""></span></th>
<th><span class="" style=""></span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<button id="btn1" type="button" class="btn btn-default" onclick="show('id1');">Yes</button>
</td>
<td>
<button id="btn2" type="button" class="btn btn-default" onclick="show('id2');">No</button>
</td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
function show(elementId) {
document.getElementById("id1").style.display="none";
document.getElementById("id2").style.display="none";
document.getElementById(elementId).style.display="block";
var btn = elementId;
if (btn =='id1') {
document.getElementById("btn1").className = "btn btn-primary";
document.getElementById("btn2").className = "btn btn-default";
}
if (btn =='id2')
{
document.getElementById("btn1").className = "btn btn-default";
document.getElementById("btn2").className = "btn btn-primary";
}
}
</script>
<div id="id2"></div>
<div id="id1" style="display: inline-block; vertical-align: top; width: 100%;display:none;">
<h5 class=""><span style="">9. what competencies learned in college did you find very useful in your first job? You may check (/) more than one answer.</span></h5>
<table class="table">
<thead>
<tr>
<th><span class="" style=""></span></th>
<th><span class="" style=""></span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="Communication_skills" value="1" class=""><span class="circle"></span><span class="check">Communication skills</span></label>
</td>
<td></td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="HumRelSkills" value="1" class=""><span class="circle"></span><span class="check">Human Relations skills</span></label>
</td>
<td></td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="EntreSkill" value="1" class=""><span class="circle"></span><span class="check">Entrepreneurial skills</span></label>
</td>
<td></td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="ProbsolbSkill" value="1" class=""><span class="circle"></span><span class="check">Problem-solving skills</span></label>
</td>
<td></td>
</tr>
<tr>
<td>
<label class="">
<input id="" type="checkbox" name="CritThinkSkill" value="1" class=""><span class="circle"></span><span class="check">Critical Thinking skills</span></label>
</td>
<td></td>
</tr>
<tr>
<td>
<label class="">
<span class="circle"></span><span class="check">Other skills, please specify </span></label>
</td>
<td>
<input id="" type="textbox" name="Other_q8" value="" class="form-control">
</td>
</tr>
</tbody>
</table>
</div>
<center><h2><i>Thank you for taking time out to fill out this questionnaire.</i></h2>
<br>
<div style="display: inline-block; vertical-align: top; width: 100%;">
<input type="submit" name="submit-survey" value="submit" class="btn btn-success">
<br><br>
</div>
</center>
<!-- <div class="form-group">
<label class="control-label col-lg-2">Change Picture</label>
<div class="col-lg-4">
<input type="password" class="validate[required] form-control" name="new_repassword" id="req" value="">
</div>
</div> -->
</form>
</div>
</head>
<body>
</div>
<!-- /.inner -->
</div>
<!-- /.outer -->
</div>
<!-- /#content -->
</div>
<!-- /#wrap -->
<?php include('footer.php');?>
<!-- /#footer -->
<?php include ('script.php');?>
</body>
</html>