source: Dev/trunk/questioncreation.php @ 115

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

The existing categories are now selectable

File size: 975 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();
[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">
[104]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.