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
RevLine 
[29]1<?php
2require 'classes/master.php';
[10]3
[29]4$savedSurvey = null;
5
[24]6if (isset($_POST['timeStamp']))
[26]7{
[24]8    $timeStamp = $_POST['timeStamp'];
[26]9       
[32]10//      var_dump($_POST);
11//      echo '<br/><br/>';
[28]12        $surveyDBI =  new SurveyDatabaseInterface();
[26]13        $surveyDBI->setSurveyInfo($_POST);
14        $info = $surveyDBI->getSurveyInfo();
[32]15//      echo '<br/><br/>';
16//      var_dump($info);
[29]17       
18        $savedSurvey = Survey::getSurvey($info);
[26]19}
[24]20else {
21    $timeStamp = null;
22}
23
24?>
25
[10]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">
[29]37            <div id="logo">CPSFacilitator Tool </div>
38        </div>
[10]39        <div id="wrapper">
[29]40
[10]41            <div id="content">
42                <?php
[29]43     
44                new SurveyCreationTool($savedSurvey, $timeStamp);
[10]45                ?>
46            </div>
47        </div>
48    </body>
49</html>
Note: See TracBrowser for help on using the repository browser.