-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewans.php
139 lines (95 loc) · 3.61 KB
/
viewans.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
<?php
$filepath = realpath(dirname(__FILE__));
include_once($filepath."/inc/header.php");
Session::checkSession();
?>
<section class="top-banner">
<div class="container">
<h1>Đáp án đúng</h1>
</div><!--/.container-->
</section><!--/.top-banner-->
<section class="content-wrap">
<div class="container">
<div class="content-inner">
<div class="q-timer-bar">
<div class="row">
<div class="col-sm-6 mb-sm-10">
<h4>Câu hỏi và đáp án: <span></span></h4>
</div><!--/.col-xs-6-->
<div class="col-sm-6 txt-sm-right">
</div><!--/.col-xs-6-->
</div><!--/.row-->
</div><!--/.q-timer-bar-->
<div class="wizard-wrap" id="wizard">
<div id="rootwizard">
<div class="navbar">
<div class="navbar-inner">
<!--<div id="bar" class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
</div>--><!--/.progress-->
<ul class="wizard-nav">
<li><a href="#tab1" data-toggle="tab"></a></li>
<li><a href="#tab2" data-toggle="tab"></a></li>
<li><a href="#tab3" data-toggle="tab"></a></li>
<li><a href="#tab4" data-toggle="tab"></a></li>
<li><a href="#tab5" data-toggle="tab"></a></li>
<li><a href="#tab6" data-toggle="tab"></a></li>
<li><a href="#tab7" data-toggle="tab"></a></li>
</ul><!--/.wizard-nav-->
</div>
</div>
<div class="row">
<table>
<?php $getQues = $exm->getQuesByOrder();
if($getQues)
{
while($question = $getQues->fetch_assoc())
{
?>
<tr>
<td colspan="2">
<h3>Câu hỏi<?php echo $question['quesNo']; ?>:<?php echo $question['que']; ?></h3>
</td>
</tr>
<?php
$number = $question['quesNo'];
$answer = $exm->getAnswer($number);
if($answer)
{
while($result = $answer->fetch_assoc())
{
?>
<tr>
<td>
<input type="radio" disabled/>
<?php
if($result['rightAns'] == '1')
{
echo "<span style='color:green;'>".$result['ans']."<img src='./img/tick.png'/></span>";
}else{
echo $result['ans'];
}
?>
</td>
</tr>
<?php } }?>
<?php } } ?>
</table>
</div><!--/.row-->
</div>
</div><!--/.wizard wrap-->
</div><!--/.content-inner-->
</div><!--/.container-->
</section><!--/.content-wrap-->
<footer class="footer-wrap">
<div class="container">
<p class="copyrights-txt">Copyrights (C) 2018 NDTeam</p>
</div><!--/.container-->
</footer><!--/.footer-wrap-->
</div><!--/.site-wrapper-->
<script src="js/main//jquery-1.12.4.js"></script>
<script src="js/main/bootstrap.min.js"></script>
<script src="js/main/jquery-wizard.js"></script>
<script src="js/main/custom.js"></script>
</body>
</html>