-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurvey-ques2.php
167 lines (158 loc) · 8.02 KB
/
survey-ques2.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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<style>
#myProgress {
width: 100%;
height: 30px;
position: relative;
background-color: #ddd;
}
#myBar {
background-color: #4CAF50;
width: 10px;
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.sq2.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 in which today's electronic brainstorming session was conducted.</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp1" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp1" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp1" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp1" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp1" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I feel good about today's electronic brainstorming process</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp2" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp2" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp2" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp2" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp2" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I feel satisfied with the procedures used in today's electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp3" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp3" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp3" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp3" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp3" value="5"></label>
</td>
</tr>
<tr>
<td class="border">I feel satisfied about the way we generated ideas in today's electronic brainstorming session</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp4" value="1"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp4" value="2"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp4" value="3"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp4" value="4"></label>
</td>
<td class="border">
<label class="radio-inline"><input type="radio" name="sp4" 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>
</div>
</form>
</body>
<script type="text/javascript">
function display() {
var checkRadio1 = document.querySelector(
'input[name="sp1"]:checked');
var checkRadio2 = document.querySelector(
'input[name="sp2"]:checked');
var checkRadio3 = document.querySelector(
'input[name="sp3"]:checked');
var checkRadio4 = document.querySelector(
'input[name="sp4"]: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-ques2", 'survey-ques2'))
} else if((checkRadio1 != null) && (checkRadio2 != null) && (checkRadio3 != null) && (checkRadio4 != null)) {
document.getElementById("disp").innerHTML
= "Thanks for answering all questions ";
}
}
</script>
</html>