Last change
on this file since 156 was
116,
checked in by fpvanagthoven, 14 years ago
|
Some refactoring and commenting, plus, the questions within the categories in QuestionCreationTool? are now sorted aswell; on code.
|
File size:
980 bytes
|
Rev | Line | |
---|
[56] | 1 | <?php |
---|
| 2 | require 'classes/master.php'; |
---|
[114] | 3 | $questionDBI = new QuestionCreationDatabaseInterface(); |
---|
[107] | 4 | /* If a question is saved */ |
---|
| 5 | if(isset($_POST['questionCode'])) |
---|
| 6 | { |
---|
| 7 | echo $questionDBI->setQuestionInfo($_POST); // save to DB |
---|
| 8 | } |
---|
| 9 | |
---|
[114] | 10 | $questions = Loader::loadFullQuestions(); |
---|
[56] | 11 | ?> |
---|
| 12 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 13 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
| 14 | |
---|
| 15 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 16 | <head> |
---|
[89] | 17 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
[101] | 18 | <title>Question Database</title> |
---|
[66] | 19 | <?php new StyleSheet(); ?> |
---|
[56] | 20 | </head> |
---|
| 21 | <body> |
---|
| 22 | <div id="header"> |
---|
| 23 | <?php new Logo(); ?> |
---|
| 24 | </div> |
---|
| 25 | <div id="wrapper"> |
---|
| 26 | |
---|
| 27 | <div id="content"> |
---|
[116] | 28 | <?php var_dump($_POST); ?> |
---|
[56] | 29 | <?php |
---|
[112] | 30 | new QuestionCreationTool($questions); |
---|
[56] | 31 | ?> |
---|
| 32 | </div> |
---|
| 33 | </div> |
---|
| 34 | </body> |
---|
| 35 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.