-
Notifications
You must be signed in to change notification settings - Fork 0
/
quizzes.php
executable file
·410 lines (372 loc) · 21.1 KB
/
quizzes.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
<?php
require_once "start.php";
$request = new Request();
$user_id = $request->user_id;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $header = new Header("Teachman"); ?>
<?=Header::getTitle()?>
<?=Header::getMeta("utf-8")?>
<?=Header::getMeta(null,"IE=edge","X-UA-Compatible")?>
<?=Header::getMeta("viewport","width=device-width, initial-scale=1",null)?>
<?=Header::getLink("styles/custom.css")?>
<!-- Bootstrap -->
<?=Header::getLink("styles/bootstrap/css/bootstrap-select.css")?>
<?=Header::getLink("styles/bootstrap/css/bootstrap.min.css")?>
<?=Header::getScript("scripts/jquery.min.js")?>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<?=Header::getScript("scripts/bootstrap.min.js")?>
<?=Header::getScript("scripts/bootstrap/jquery.js")?>
<!-- JQUERY SCRIPTS -->
<!-- CUSTOM SCRIPTS -->
<?=Header::getScript("scripts/custom.js")?>
<?=Header::getScript("scripts/table.js")?>
<!-- METISMENU SCRIPTS -->
<?=Header::getScript("scripts/dataTables/jquery.dataTables.js")?>
<?=Header::getScript("scripts/dataTables/dataTables.bootstrap.js")?>
<!-- CUSTOM SCRIPTS -->
<?=Header::getScript("scripts/custom.js")?>
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div style="color: white; padding: 15px 50px 5px 50px; float: right;
font-size: 16px;">
<a href="dashboard.php?logoutid=<?=$user_id?>" class="btn btn-danger square-btn-adjust">Logout</a>
</div>
</nav>
<!-- /. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">
<li class="text-center">
<img src="assets/img/find_user.png" class="user-image img-responsive"/>
</li>
<li>
<a href="dashboard.php"><i class="glyphicon glyphicon-dashboard"></i> Dashboard</a>
</li>
<li>
<a href="teachers.php"><i class="glyphicon glyphicon-user"></i>Teachers</a>
</li>
<li>
<a href="categories.php"><i class=" glyphicon glyphicon-list-alt"></i> Categories</a>
</li>
<li>
<a href="courses.php"><i class="glyphicon glyphicon-book"></i>Courses</a>
</li>
<li >
<a href="syllabus.php"><i class="glyphicon glyphicon-th-list"></i>Syllabus</a>
</li>
<li >
<a class="active-menu" href="quizzes.php"><i class="glyphicon glyphicon-edit"></i>Quizzes</a>
</li>
</ul>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h2>Quiz</h2>
<h5>Welcome Jhon Deo , Love to see you back. </h5>
</div>
</div>
<!-- /. ROW -->
<hr />
<!-- <div class="row">
<div class="col-md-12">-->
<!-- Form Elements -->
<div class="panel panel-default">
<div class="panel-heading">Quiz Creating</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<label class="label-control"><p>Course: </p></label>
<select class="bootstrap-select">
<option value="math ">Math </option>
<option value="english">English</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label><p>Lesson: </p></label>
<select>
<option value="math ">Lesson1 </option>
<option value="english">Lesson2</option>
</select>
</div>
</div>
<div class ="question" >
<label><p>Question </p></label>
<input id="name" type="text" name="text" size="60" required >
<div class="answer">
<label><p>Answer </p></label>
<form action="" >
<label><p>A </p></label>
<input id="a" type="text" name="a" size="50" required ><br>
<label><p>B </p></label>
<input id="b" type="text" name="b" size="50" required ><br>
<label><p>C </p></label>
<input id="c" type="text" name="c" size="50" required ><br>
<label><p>D </p></label>
<input id="d" type="text" name="b" size="50" required><br>
</form>
</div>
<div class="submit" style="margin: auto; width: 20%;">
<label> <button id="save">Save</button>
<button id="edit">Edit</button>
<button id="delete">Delete</button>
</label>
</div>
</div>
<p class="then"></p>
<button id="add" type="button" > ADD</button>
</div>
<div class="panel-heading">
Form Element Examples
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<h3>Basic Form Examples</h3>
<form role="form">
<div class="form-group">
<label>Text Input</label>
<input class="form-control" />
<p class="help-block">Help text here.</p>
</div>
<div class="form-group">
<label>Text Input with Placeholder</label>
<input class="form-control" placeholder="PLease Enter Keyword" />
</div>
<div class="form-group">
<label>Just A Label Control</label>
<p class="form-control-static">[email protected]</p>
</div>
<div class="form-group">
<label>File input</label>
<input type="file" />
</div>
<div class="form-group">
<label>Text area</label>
<textarea class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<label>Checkboxes</label>
<div class="checkbox">
<label>
<input type="checkbox" value="" />Checkbox Example One
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value=""/>Checkbox Example Two
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value=""/>Checkbox Example Three
</label>
</div>
</div>
<div class="form-group">
<label>Inline Checkboxes Examples</label>
<label class="checkbox-inline">
<input type="checkbox"/> One
</label>
<label class="checkbox-inline">
<input type="checkbox"/> Two
</label>
<label class="checkbox-inline">
<input type="checkbox"/> Three
</label>
</div>
<div class="form-group">
<label>Radio Button Examples</label>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked />Radio Example One
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"/>Radio Example Two
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3"/>Radio Example Three
</label>
</div>
</div>
<div class="form-group">
<label>Select Example</label>
<select class="form-control">
<option>One Vale</option>
<option>Two Vale</option>
<option>Three Vale</option>
<option>Four Vale</option>
</select>
</div>
<div class="form-group">
<label>Multiple Select Example</label>
<select multiple class="form-control">
<option>One Vale</option>
<option>Two Vale</option>
<option>Three Vale</option>
<option>Four Vale</option>
</select>
</div>
<button type="submit" class="btn btn-default">Submit Button</button>
<button type="reset" class="btn btn-primary">Reset Button</button>
</form>
<br />
<h3>With radio & checkboxes</h3>
<form>
<div class="form-group input-group">
<span class="input-group-addon">
<input type="checkbox" />
</span>
<input type="text" class="form-control" />
</div>
<div class="form-group input-group">
<span class="input-group-addon">
<input type="radio" />
</span>
<input type="text" class="form-control" />
</div>
</form>
</div>
<div class="col-md-6">
<h3>Disabled Form State Examples</h3>
<form role="form">
<fieldset disabled="disabled">
<div class="form-group">
<label for="disabledSelect">Disabled input</label>
<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input" disabled />
</div>
<div class="form-group">
<label for="disabledSelect">Disabled select </label>
<select id="disabledSelect" class="form-control">
<option>Disabled select</option>
</select>
</div>
<div class="checkbox">
<label>
<input type="checkbox" />Disabled Checkbox
</label>
</div>
<button type="submit" class="btn btn-primary">Disabled Button</button>
</fieldset>
</form>
<h3>Validation State Examples</h3>
<form role="form">
<div class="form-group has-success">
<label class="control-label" for="inputSuccess">Input with success</label>
<input type="text" class="form-control" id="inputSuccess">
</div>
<div class="form-group has-warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<input type="text" class="form-control" id="inputWarning">
</div>
<div class="form-group has-error">
<label class="control-label" for="inputError">Input with error</label>
<input type="text" class="form-control" id="inputError">
</div>
</form>
<h3>Input Group Examples</h3>
<form role="form">
<div class="form-group input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username">
</div>
<div class="form-group input-group">
<input type="text" class="form-control">
<span class="input-group-addon">.00</span>
</div>
<div class="form-group input-group">
<span class="input-group-addon"><i class="fa fa-eur"></i>
</span>
<input type="text" class="form-control" placeholder="Font Awesome Icon">
</div>
<div class="form-group input-group">
<span class="input-group-addon">$</span>
<input type="text" class="form-control">
<span class="input-group-addon">.00</span>
</div>
<div class="form-group input-group">
<input type="text" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="button"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<h3>Different Size Input Groups</h3>
<form role="form">
<div class=" form-group input-group input-group-lg">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username" />
</div>
<div class="form-group input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username" />
</div>
<div class="form-group input-group input-group-sm">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username" />
</div>
</form>
<h3>Different Size Input Groups</h3>
<form role="form">
<div class="input-group">
<span class="form-group input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
<input type="text" class="form-control" />
</div>
<br />
<div class="input-group">
<input type="text" class="form-control" />
<span class="form-group input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- End Form Elements -->
</div>
</div>
<!-- /. ROW -->
<div class="row">
<div class="col-md-12">
<h3>More Customization</h3>
<p>
For more customization for this template or its components please visit official bootstrap website i.e getbootstrap.com or <a href="http://getbootstrap.com/components/" target="_blank">click here</a> . We hope you will enjoy our template. This template is easy to use, light weight and made with love by binarycart.com
</p>
</div>
</div>
<!-- /. ROW -->
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
</body>
</html>