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
RevLine 
[56]1<?php
2require 'classes/master.php';
[114]3$questionDBI = new QuestionCreationDatabaseInterface();
[107]4/* If a question is saved */
5if(isset($_POST['questionCode']))
6{
7    echo $questionDBI->setQuestionInfo($_POST); // save to DB
8}
9
[114]10$questions = Loader::loadFullQuestions();
[112]11var_dump($questions);
[56]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>
[89]18        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
[101]19            <title>Question Database</title>
[66]20            <?php new StyleSheet(); ?>
[56]21    </head>
22    <body>
23        <div id="header">
24            <?php new Logo(); ?>
25        </div>
26        <div id="wrapper">
27
28            <div id="content">
[104]29                <?php var_dump($_POST); ?>
[56]30                <?php
[112]31                    new QuestionCreationTool($questions);
[56]32                ?>
33            </div>
34        </div>
35    </body>
36</html>
Note: See TracBrowser for help on using the repository browser.