forked from narendrashetty/cmrit-feedback
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
332 lines (308 loc) · 8.28 KB
/
home.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
<?php
session_start();
if(!$_SESSION['usn'])
header('Location:index.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>HomePage</title>
<link href="css/style.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="container page">
<div id="header">
<div class="span2 pull-left">
<img src="images/logo-small.png" />
</div>
<div class="span4 header-title">
<h2>Feedback Form</h2>
</div>
<div class="span2 pull-right">
<a href="logout.php">Logout</a>
</div>
</div>
<hr />
<form id="f2" action="success.php" method="post">
<div class="row-fluid">
<div class="span4">
<label class="control-label" for="topic"><i class="icon-book"></i> Topic</label>
<input type="text" class="input-xlarge" id="topic" name="topic" placeholder="Topic">
<label class="control-label" for="presenter"><i class="icon-user"></i> Presenter</label>
<input type="text" class="input-xlarge" id="presenter" name="presenter" placeholder="Presenter">
</div>
<div class="span8" style="margin-top:10px;">
<table class="table table-bordered">
<tr>
<td colspan="5" style="text-align:center;font-weight:bold;">***Rating***</td>
</tr>
<tr>
<td>1 - Extremely poor</td>
<td>2 - Very poor</td>
<td>3 - Poor</td>
<td>4 - Below average</td>
<td>5 - Average</td>
</tr>
<tr>
<td>6 - Satisfactory</td>
<td>7 - Good</td>
<td>8 - Very good</td>
<td>9 - Great</td>
<td>10 - Excellent</td>
</tr>
</table>
</div>
</div>
<div class="row-fluid">
<div class="span12" style="margin-top:10px;">
<table class="table table-bordered">
<tr>
<td colspan="5" style="text-align:center;font-weight:bold;">Assessment of Content (Please tick appropriate ranking)</td>
</tr>
<tr>
<td>1.</td>
<td>General impression about the content of the event</td>
<td><select id="q1" name="q1" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>2.</td>
<td>How well did the content address your expectations?</td>
<td><select id="q2" name="q2" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>3.</td>
<td>How do you rate the quality of content presented?</td>
<td><select id="q3" name="q3" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>4.</td>
<td>How relevant was the content to your job?</td>
<td><select id="q4" name="q4" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>5.</td>
<td>How clear was the presentation of theory?</td>
<td><select id="q5" name="q5" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>6.</td>
<td>How relevant were the practical sections?</td>
<td><select id="q6" name="q6" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td colspan="5" style="text-align:center;font-weight:bold;">
Assessment of the Presenter/ Trainer
</td>
</tr>
<tr>
<td>7.</td>
<td>The presenter's ability to explain clearly was...</td>
<td><select id="q7" name="q7" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>8.</td>
<td>How flexible was the presenter to match your needs?</td>
<td><select id="q8" name="q8" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>9.</td>
<td>The presenter's knowledge of the subject matter...</td>
<td><select id="q9" name="q9" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>10.</td>
<td>How do your rate the presenter's ability to understand participants's questions and remarks?</td>
<td><select id="q10" name="q10" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>11.</td>
<td>How responsive was the trainer when prompted by participants to explain something or to help them?</td>
<td><select id="q11" name="q11" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
<tr>
<td>12.</td>
<td>How good was the presenter in practical demos of the subject matter?</td>
<td><select id="q12" name="q12" class="quest">
<option selected>-- Select --</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
</table>
</div>
<div class="span8 pull-left" style="margin-top:10px;text-align:center;">
<input type="button" class="btn btn-large disabled" id="submit-btn" value="Submit">
</div>
<div class="span3 pull-right final" style="margin-top:10px;">
Overall <span class="result">NaN</span>
</div>
</div>
</form>
<script>
$(document).ready(function()
{
$(".quest").change(function()
{
if($("#q1").val() == "-- Select --" || $("#q2").val()=="-- Select --" || $("#q3").val()=="-- Select --" || $("#q4").val()=="-- Select --" || $("#q5").val()=="-- Select --" || $("#q6").val()=="-- Select --" || $("#q7").val()=="-- Select --" || $("#q8").val()=="-- Select --" || $("#q9").val()=="-- Select --" || $("#q10").val()=="-- Select --" || $("#q11").val()=="-- Select --" || $("#q12").val()=="-- Select --")
{
$(".result").text("NaN");
$("#submit-btn").addClass("disabled");
}
else
{
var r = (parseInt($("#q1").val())+parseInt($("#q2").val())+parseInt($("#q3").val())+parseInt($("#q4").val())+parseInt($("#q5").val())+parseInt($("#q6").val())+parseInt($("#q7").val())+parseInt($("#q8").val())+parseInt($("#q9").val())+parseInt($("#q10").val())+parseInt($("#q11").val())+parseInt($("#q12").val()))/12;
$(".result").text(r.toFixed(2));
$("#submit-btn").removeClass("disabled");
}
});
$("#submit-btn").click(function()
{
if(!($("#submit-btn").hasClass("disabled")))
$("#f2").submit();
});
});
</script>
</body>
</html>