source: Dev/trunk/sessioncreation.php @ 90

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

Base for all databases done. not tested. Need frontend to properly test.

File size: 1.0 KB
RevLine 
[56]1<?php
2require 'classes/master.php';
[58]3
4if (is_null($_SESSION['username']))
5    redirect('index.php');
[69]6
[85]7var_dump($_POST);
8
9/* LOAD SURVEY */
10if (isset($_POST['UID'])) {
11    $sessionID = $_POST['UID'];
12    $sessionDBI = new SessionCreationDatabaseInterface($sessionID);
13    $info = $sessionDBI->getSurveyInfo();
14
15    $savedSurvey = Survey::getSurvey($info);
16}
17
[69]18$session = Session::getSession($_POST);
[56]19?>
[69]20
21
22
[56]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>Session Creation</title>
[61]30            <?php new StyleSheet(); ?>
[56]31    </head>
32    <body>
33        <div id="header">
34            <?php new Logo(); ?>
35        </div>
36        <div id="wrapper">
37
38            <div id="content">
39                <?php
[69]40                    new SessionCreationTool($session);
[56]41                ?>
42            </div>
43        </div>
44    </body>
45</html>
Note: See TracBrowser for help on using the repository browser.