source: Dev/trunk/survey.php @ 80

Last change on this file since 80 was 80, checked in by basvannuland, 14 years ago

Application save load from db should work. styles not part of save yet.
More work on session save load

File size: 1.0 KB
Line 
1<?php
2require 'classes/master.php';
3
4    //var_dump($_POST);
5   
6if (is_null($_SESSION['username']))
7    redirect('index.php');
8
9if (isset($_GET['id']))
10{
11    $surveyID = $_GET['id'];
12
13    $surveyDBI = new SurveyDatabaseInterface($surveyID);
14    $info = $surveyDBI->getSurveyInfo();
15
16    $savedSurvey = Survey::getSurvey($info);
17   
18    var_dump($_POST);
19}
20else
21    redirect('index.php');
22?>
23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
24    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
25
26<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
27    <head>
28        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
29            <title>Survey</title>
30            <?php new StyleSheet(); ?>
31            <script type="text/javascript" src="js/menu.js"></script>
32    </head>
33
34    <body>
35        <div id="header">
36            <?php new Logo(); ?>
37        </div>
38
39        <div id="wrapper">
40            <div id="content">
41                <?php new SurveyTool($savedSurvey); ?>
42            </div>
43        </div>
44    </body>
45</html>
Note: See TracBrowser for help on using the repository browser.