source: Dev/trunk/questioncreation.php @ 114

Last change on this file since 114 was 114, checked in by fpvanagthoven, 14 years ago

questions get loaded in fully

File size: 997 bytes
Line 
1<?php
2require 'classes/master.php';
3$questionDBI = new QuestionCreationDatabaseInterface();
4/* If a question is saved */
5if(isset($_POST['questionCode']))
6{
7    echo $questionDBI->setQuestionInfo($_POST); // save to DB
8}
9
10$questions = Loader::loadFullQuestions();
11var_dump($questions);
12?>
13<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
14    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
15
16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
17    <head>
18        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
19            <title>Question Database</title>
20            <?php new StyleSheet(); ?>
21    </head>
22    <body>
23        <div id="header">
24            <?php new Logo(); ?>
25        </div>
26        <div id="wrapper">
27
28            <div id="content">
29                <?php var_dump($_POST); ?>
30                <?php
31                    new QuestionCreationTool($questions);
32                ?>
33            </div>
34        </div>
35    </body>
36</html>
Note: See TracBrowser for help on using the repository browser.