source: Dev/branches/jQueryUI/client/pages_old/survey.php @ 254

Last change on this file since 254 was 249, checked in by hendrikvanantwerpen, 13 years ago

This one's for Subversion, because it's so close...

First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.

File size: 1.2 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 SurveyAnswerDatabaseInterface($surveyID,'123','321');
14    $info = $surveyDBI->getSurveyInfo();
15    $surveyDBI->setRespondentInfo($_SESSION);
16    $surveyDBI->setSurveyAnswers($_POST);
17
18    $savedSurvey = Survey::getSurvey($info);
19   
20    var_dump($_POST);
21}
22else
23    redirect('index.php');
24?>
25<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
26    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
27
28<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
29    <head>
30        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31            <title>Survey</title>
32            <?php new StyleSheet(); ?>
33            <script type="text/javascript" src="js/menu.js"></script>
34    </head>
35
36    <body>
37        <div id="header">
38            <?php new Logo(); ?>
39        </div>
40
41        <div id="wrapper">
42            <div id="content">
43                <?php new SurveyTool($savedSurvey); ?>
44            </div>
45        </div>
46    </body>
47</html>
Note: See TracBrowser for help on using the repository browser.