source: Dev/trunk/questioncreation.php @ 107

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

QuestionCreationDatabaseInterface? setQuestionInfo working. getExistingQuestions not working yet.

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