bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
1
by Henrik G.
First seed of Lenasys ... Needs to be Organized Further |
1 |
<?php
|
2 |
//quizAnswerDetails.html.php
|
|
3 |
addBackLink(array("checkQuizzesLink"=>"", "checkSelectedQuiz"=>"","courseName"=>$_POST['courseName'], "courseOccasion"=>$_POST['courseOccasion'], "quizNr"=>$_POST['quizNr'])); |
|
4 |
||
5 |
echo "<h2>Details view</h2>"; |
|
6 |
// echo "<pre>";
|
|
7 |
// print_r($quizAnswerData);
|
|
8 |
// echo "</pre>";
|
|
9 |
echo "<table class='dataTable' style=''>"; |
|
10 |
echo "<caption style='white-space:nowrap;'>Quiz ".$_POST['quizNr']." ".$_POST['courseName']." ".$_POST['courseOccasion']."</caption>"; |
|
11 |
||
12 |
echo "<tr><th>SSN:</th><td style='width:100%;'>".$quizAnswerData['ssn']."</td></tr>"; |
|
13 |
echo "<tr><th>Name:</th><td>".$quizAnswerData['name']."</td></tr>"; |
|
14 |
echo "<tr><th>Login name:</th><td>".$quizAnswerData['loginName']."</td></tr>"; |
|
15 |
echo "<tr><th>Answer submitted:</th><td>".$quizAnswerData['answeredDateTime']."</td></tr>"; |
|
16 |
echo "<tr><th>Quiz variation nr:</th><td>".$quizAnswerData['qVarNr']."</td></tr>"; |
|
17 |
echo "<tr><th>Correct answer:</th><td>".$quizAnswerData['correctAnswer']."</td></tr>"; |
|
18 |
echo "<tr><th>Submitted answer:</th><td>".$quizAnswerData['answer']; |
|
19 |
echo "<form name='displayQuizAnswerForm' action='.' method='post'> |
|
20 |
<input type='submit' name='displayQuizAnswer' value='Display answer' disabled='disabled'/>
|
|
21 |
<input type='hidden' name='courseOccasion' value='".$_POST['courseOccasion']."' /> |
|
22 |
<input type='hidden' name='courseName' value='".$_POST['courseName']."' /> |
|
23 |
<input type='hidden' name='quizNr' value='".$quizAnswerData['quizNr']."' /> |
|
24 |
<input type='hidden' name='qVarNr' value='".$quizAnswerData['qVarNr']."' /> |
|
25 |
<input type='hidden' name='answer' value='".$quizAnswerData['answer']."' /> |
|
26 |
<input type='hidden' name='checkQuizzesLink' />
|
|
27 |
<input type='hidden' name='displayQuizAnswerDetails' />
|
|
28 |
<input type='hidden' name='scrolly' id='scrolly' value='0' />
|
|
29 |
</form>"; |
|
30 |
echo "</td></tr>"; |
|
31 |
echo "<tr><th>Answer hash:</th><td>".$quizAnswerData['answerHash']; |
|
32 |
echo "<form name='clearHashAnswerForm' action='.' method='post'> |
|
33 |
<input type='submit' name='checkAnswerHash' value='Check' />"; |
|
34 |
if(isset($hashCompareMsg)) echo "<label>".$hashCompareMsg."</label>"; |
|
35 |
echo" <input type='submit' name='clearAnswerHash' value='Clear hash' class='confirm' /> |
|
36 |
<label>Clearing the hash allows the student to answer the quiz again</label>
|
|
37 |
<input type='hidden' name='courseOccasion' value='".$_POST['courseOccasion']."' /> |
|
38 |
<input type='hidden' name='courseName' value='".$_POST['courseName']."' /> |
|
39 |
<input type='hidden' name='quizNr' value='".$quizAnswerData['quizNr']."' /> |
|
40 |
<input type='hidden' name='qVarNr' value='".$quizAnswerData['qVarNr']."' /> |
|
41 |
<input type='hidden' name='ssn' value='".$quizAnswerData['ssn']."' /> |
|
42 |
<input type='hidden' name='loginName' value='".$quizAnswerData['loginName']."' /> |
|
43 |
<input type='hidden' name='answer' value='".$quizAnswerData['answer']."' /> |
|
44 |
<input type='hidden' name='answerHash' value='".$quizAnswerData['answerHash']."' /> |
|
45 |
<input type='hidden' name='checkQuizzesLink' />
|
|
46 |
<input type='hidden' name='displayQuizAnswerDetails' />
|
|
47 |
<input type='hidden' name='scrolly' id='scrolly' value='0' />"; |
|
48 |
echo "</form>"; |
|
49 |
echo "</td></tr>"; |
|
50 |
echo "<tr><th>Grade:</th><td>"; |
|
51 |
echo "<form name='saveGradeCommentForm' action='.' method='post'> |
|
52 |
<input type='text' name='grade' "; |
|
53 |
echo "value='".$quizAnswerData['grade']."' "; |
|
54 |
echo "/> |
|
55 |
<input type='submit' name='saveGrade' value='Save' />
|
|
56 |
<input type='hidden' name='courseOccasion' value='".$_POST['courseOccasion']."' /> |
|
57 |
<input type='hidden' name='courseName' value='".$_POST['courseName']."' /> |
|
58 |
<input type='hidden' name='quizNr' value='".$quizAnswerData['quizNr']."' /> |
|
59 |
<input type='hidden' name='qVarNr' value='".$quizAnswerData['qVarNr']."' /> |
|
60 |
<input type='hidden' name='ssn' value='".$quizAnswerData['ssn']."' /> |
|
61 |
<input type='hidden' name='checkQuizzesLink' />
|
|
62 |
<input type='hidden' name='displayQuizAnswerDetails' />
|
|
63 |
<input type='hidden' name='scrolly' id='scrolly' value='0' />"; |
|
64 |
if(isset($gradeSavedMsg)) echo "<label>".$gradeSavedMsg."</label>"; |
|
65 |
echo "</form>"; |
|
66 |
echo "</td></tr>"; |
|
67 |
echo "<tr><th>Grade comment:</th><td>"; |
|
68 |
echo "<form name='saveGradeForm' action='.' method='post'> |
|
69 |
<textarea name='gradeComment' cols='70' rows='10'>"; |
|
70 |
echo $quizAnswerData['gradeComment']; |
|
71 |
echo " </textarea> |
|
72 |
<input type='submit' name='saveGradeComment' value='Save' />
|
|
73 |
<input type='hidden' name='courseOccasion' value='".$_POST['courseOccasion']."' /> |
|
74 |
<input type='hidden' name='courseName' value='".$_POST['courseName']."' /> |
|
75 |
<input type='hidden' name='quizNr' value='".$quizAnswerData['quizNr']."' /> |
|
76 |
<input type='hidden' name='qVarNr' value='".$quizAnswerData['qVarNr']."' /> |
|
77 |
<input type='hidden' name='ssn' value='".$quizAnswerData['ssn']."' /> |
|
78 |
<input type='hidden' name='checkQuizzesLink' />
|
|
79 |
<input type='hidden' name='displayQuizAnswerDetails' />
|
|
80 |
<input type='hidden' name='scrolly' id='scrolly' value='0' />"; |
|
81 |
if(isset($gradeCommentSavedMsg)) echo "<label>".$gradeCommentSavedMsg."</label>"; |
|
82 |
echo "</form>"; |
|
83 |
echo "</td></tr>"; |
|
84 |
echo "<tr><th>IP of submitter:</th><td>".$quizAnswerData['userIP']."</td></tr>"; |
|
85 |
echo "<tr><th>Recorded user agent:</th><td>".$quizAnswerData['userAgent']."</td></tr>"; |
|
86 |
// echo "<th>SSN</th><th>Name</th><th>Login name</th><th>
|
|
87 |
// echo "</tr>";
|
|
88 |
echo "</table>"; |
|
89 |
// echo "<form name='detailedViewQuizAnswerForm' action='.' method='.'>";
|
|
90 |
// echo "</form>";
|
|
91 |
?>
|