| 5 | | echo "Question: " . $val["Question"]["question"] . "<br />"; |
| 6 | | echo "Hint: " . $val["Question"]["hint"] . "<br />"; |
| 7 | | echo "Explanation: " . $val["Question"]["explanation"] . "<br />"; |
| 8 | | echo "Worth: " . $val["Question"]["worth"] . "<br /><br />"; |
| 9 | | echo $html->link('View answers', '/admin/questions/answers/'.$val["Question"]["id"]) .'<br /><br />'; |
| | 8 | $answers = count($val["Answer"]); |
| | 9 | $i++; |
| | 10 | echo '<div style="padding:5px;border:1px dotted gray;margin:auto;width:60%"><b>' . $i . '.-</b> '; |
| | 11 | echo $html->div('butonright', $gags->sendEdit($val['id'], 'Question')); |
| | 12 | echo $html->div('butonright', $gags->confirmDel($val['id'], 'Question')); |
| | 13 | echo "Question: " . $val["question"] . "<br />"; |
| | 14 | echo "Hint: " . $val["hint"] . "<br />"; |
| | 15 | echo "Explanation: " . $val["explanation"] . "<br />"; |
| | 16 | echo "Worth: " . $val["worth"] . "<br /><br />"; |
| | 17 | echo $html->link('View answers ('.$answers.')', '/admin/questions/answers/'.$val["id"]); |
| | 18 | echo '</div>'; |