This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz_stud.txt
79 lines (70 loc) · 2.11 KB
/
quiz_stud.txt
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
<!doctype html>
<?php
session_start();
require_once 'dbconfig.php';
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ELEARN | Quiz</title>
<link href="//cdn.muicss.com/mui-latest/css/mui.min.css" rel="stylesheet" type="text/css" />
<link href="static/style.css" rel="stylesheet" type="text/css" />
<link href="css/tooltip.css" rel="stylesheet" type="text/css" />
<script src="//cdn.muicss.com/mui-latest/js/mui.min.js"></script>
<link href="static/style2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header class="mui-appbar mui--z1 mui--bg-danger">
<div class="mui-container">
<table width="100%">
<tr class="mui--appbar-height">
<td class="mui--text-title">ELEARN | Quiz</td>
</tr>
</table>
</div>
</header>
<div id="content-wrapper" class="mui--text-center">
<div class="mui--appbar-height"></div>
<br><BR>
<div class="mui-container">
<form class="mui-form" method="POST" action="muifill_eval.php">
<table class="mui-table mui-table--bordered">
<thead>
<tr>
<th>Question</th>
<th>Answer</th>
</tr>
</thead>
<tbody>
<?php
$query = sprintf('SELECT questions,answers FROM quiz_it1000_c where quiztype="fib" ');
$result = mysqli_query($conn,$query);
while($row=mysqli_fetch_array($result)){
$select='<tr>
<td>
<div class="mui-text mui-col-xs-12 mui-col-md-12">
'.$row[0].'
</div>
</td>
<td>
<div class="mui-textfield mui-textfield--float-label">
<input type="text" name="ans[]">
<label>Answer</label>
</div>
</td>
</tr>';
echo $select;
}
?>
</tbody>
</table>
<div class="mui-container mui--text-center">
<button type="submit" name="submit" class="mui-btn mui-btn--primary mui-btn--raised">Submit</button>
</div>
</form>
</div>
</div>
</body>
</html>