Last change
on this file since 113 was
112,
checked in by fpvanagthoven, 14 years ago
|
Code to get questions and put them in objects
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | require 'classes/master.php'; |
---|
3 | |
---|
4 | /* If a question is saved */ |
---|
5 | if(isset($_POST['questionCode'])) |
---|
6 | { |
---|
7 | $questionDBI = new QuestionCreationDatabaseInterface(); |
---|
8 | echo $questionDBI->setQuestionInfo($_POST); // save to DB |
---|
9 | } |
---|
10 | |
---|
11 | $questions = Loader::loadQuestions(); |
---|
12 | var_dump($questions); |
---|
13 | |
---|
14 | //$dbi = new QuestionCreationDatabaseInterface(); |
---|
15 | //$info = $dbi->getQuestionInfo("testcode1"); |
---|
16 | |
---|
17 | //var_dump($info); |
---|
18 | |
---|
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> |
---|
25 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
26 | <title>Question Database</title> |
---|
27 | <?php new StyleSheet(); ?> |
---|
28 | </head> |
---|
29 | <body> |
---|
30 | <div id="header"> |
---|
31 | <?php new Logo(); ?> |
---|
32 | </div> |
---|
33 | <div id="wrapper"> |
---|
34 | |
---|
35 | <div id="content"> |
---|
36 | <?php var_dump($_POST); ?> |
---|
37 | <?php |
---|
38 | new QuestionCreationTool($questions); |
---|
39 | ?> |
---|
40 | </div> |
---|
41 | </div> |
---|
42 | </body> |
---|
43 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.