-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurvey-ques4.php
162 lines (157 loc) · 8.41 KB
/
survey-ques4.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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<style>
#myProgress {
width: 100%;
height: 30px;
position: relative;
background-color: #ddd;
}
#myBar {
background-color: #4CAF50;
width: 0px;
height: 30px;
position: absolute;
}
</style>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</head>
<body style="background-color:#006747">
<div class="container" style="height:100vh;width:100%;background-color:white ">
<div class="row" style="height:5vh; background-color:#CFC493">
<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#bgStorySetupModal" style="background-color:#4CAF50">Post Survey</button><br>
</div>
<form action="includes/db.sq4.php" method="POST">
<div class="row" style="background-color:white">
<div id="panas_div" style="padding: 30px 70px 0px 90px">
<table id="panas_table" class="table table-sm">
<thead>
<tr>
<th class="border" >Survey Question</th>
<th class="border">Strongly disagree</th>
<th class="border">Disagree</th>
<th class="border">Neither agree nor disagree</th>
<th class="border">Agree</th>
<th class="border">Strongly agree</th>
</tr>
</thead>
<tbody>
<tr>
<td class="border">I feel satisfied with the way my teammate performed in the electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st1" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st1" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st1" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st1" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st1" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I am happy with working with my teammate in the electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st2" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st2" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st2" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st2" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st2" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I feel satisfied with the way my teammate worked with me in the electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st3" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st3" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st3" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st3" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st3" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I feel satisfied with my teammate in the electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st4" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st4" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st4" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st4" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="st4" value="5"></label>
</td>
</tr>
</tbody>
</table>
</div>
</div><br>
<div id="disp" style=
"color:green; font-size:18px; font-weight:bold;">
</div>
<div style="background-color:white; height:50px; margin-right: -15px; margin-left: -15px;padding: 5px 20px 100px 0px;">
<div style="float:right; padding-right:50px">
<button onclick="display()" type="submit" id="consentNext" class="btn btn-primary">Next</button>
</div>
</div>
</form>
</div>
</body>
<script type="text/javascript">
function display() {
var checkRadio1 = document.querySelector(
'input[name="st1"]:checked');
var checkRadio2 = document.querySelector(
'input[name="st2"]:checked');
var checkRadio3 = document.querySelector(
'input[name="st3"]:checked');
var checkRadio4 = document.querySelector(
'input[name="st4"]:checked');
if((checkRadio1 == null) || (checkRadio2 == null) || (checkRadio3 == null) || (checkRadio4 == null)) {
document.getElementById("disp").innerHTML
= "Kindly provide all input to proceed to next page ";
return false;
window.location.replace(window.location.href.replace("survey-ques4", 'survey-ques4'))
} else if((checkRadio1 != null) && (checkRadio2 != null) && (checkRadio3 != null) || (checkRadio4 == null)) {
document.getElementById("disp").innerHTML
= "Thanks for answering all questions ";
}
}
</script>
</html>