source: Dev/trunk/surveycreation.php @ 32

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

Survey now gets fully rebuilt. Minor user interaction issues.

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