source: Dev/trunk/survey.php @ 52

Last change on this file since 52 was 52, checked in by fpvanagthoven, 14 years ago

survey.php all types implemented. Should do input checking also.

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