source: Dev/trunk/survey.php @ 78

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

save and load application
start with save and load session

File size: 1.0 KB
RevLine 
[51]1<?php
[50]2require 'classes/master.php';
[51]3
[78]4    var_dump($_POST);
5   
[58]6if (is_null($_SESSION['username']))
7    redirect('index.php');
8
[51]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   
[78]18    //var_dump($_POST);
[51]19}
20else
21    redirect('index.php');
[50]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">
[52]29            <title>Survey</title>
[59]30            <?php new StyleSheet(); ?>
[51]31            <script type="text/javascript" src="js/menu.js"></script>
[50]32    </head>
[51]33
[50]34    <body>
35        <div id="header">
[51]36            <?php new Logo(); ?>
[50]37        </div>
38
39        <div id="wrapper">
40            <div id="content">
[51]41                <?php new SurveyTool($savedSurvey); ?>
[50]42            </div>
43        </div>
44    </body>
45</html>
Note: See TracBrowser for help on using the repository browser.