source: Dev/trunk/surveycreation.php @ 36

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

QuestionID gets removed when answerType changes. Not yet when answers change.

File size: 1.2 KB
Line 
1<?php
2require 'classes/master.php';
3
4$savedSurvey = null;
5
6if (isset($_POST['timeStamp']))
7{
8    $timeStamp = $_POST['timeStamp'];
9       
10        echo 'This is what gets sent:';
11        var_dump($_POST);
12        echo '<br/><br/>';
13        $surveyDBI =  new SurveyDatabaseInterface();
14        $surveyDBI->setSurveyInfo($_POST);
15        $info = $surveyDBI->getSurveyInfo();
16        echo '<br/><br/>';
17        echo 'This is what I get back:';
18        var_dump($info);
19       
20        $savedSurvey = Survey::getSurvey($info);
21}
22else {
23    $timeStamp = null;
24}
25
26?>
27
28<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
29    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
30
31<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
32    <head>
33        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
34            <title>Survey</title>
35            <link rel="stylesheet" type="text/css" href="css/style.css" />
36    </head>
37    <body>
38        <div id="header">
39            <div id="logo">CPSFacilitator Tool </div>
40        </div>
41        <div id="wrapper">
42
43            <div id="content">
44                <?php
45     
46                new SurveyCreationTool($savedSurvey, $timeStamp);
47                ?>
48            </div>
49        </div>
50    </body>
51</html>
Note: See TracBrowser for help on using the repository browser.