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