Last change
on this file since 41 was
41,
checked in by fpvanagthoven, 14 years ago
|
Logo is link. Surveys can be loaded.
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | require 'classes/master.php'; |
---|
3 | |
---|
4 | $savedSurvey = null; |
---|
5 | $timeStamp = null; |
---|
6 | var_dump($_POST); |
---|
7 | |
---|
8 | /* LOAD SURVEY */ |
---|
9 | if (isset($_POST['UID'])) { |
---|
10 | $surveyID = $_POST['UID']; |
---|
11 | $surveyDBI = new SurveyDatabaseInterface($surveyID); |
---|
12 | $info = $surveyDBI->getSurveyInfo(); |
---|
13 | |
---|
14 | $savedSurvey = Survey::getSurvey($info); |
---|
15 | } |
---|
16 | |
---|
17 | /* AUTOSAVE */ |
---|
18 | else if (isset($_POST['timeStamp'])) { |
---|
19 | $timeStamp = $_POST['timeStamp']; |
---|
20 | |
---|
21 | echo 'This is what gets sent:'; |
---|
22 | var_dump($_POST); |
---|
23 | echo '<br/><br/>'; |
---|
24 | $surveyDBI = new SurveyDatabaseInterface($_POST['surveyID']); |
---|
25 | $surveyDBI->setSurveyInfo($_POST); |
---|
26 | $info = $surveyDBI->getSurveyInfo(); |
---|
27 | echo '<br/><br/>'; |
---|
28 | echo 'This is what I get back:'; |
---|
29 | var_dump($info); |
---|
30 | |
---|
31 | $savedSurvey = Survey::getSurvey($info); |
---|
32 | } |
---|
33 | ?> |
---|
34 | |
---|
35 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
36 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
37 | |
---|
38 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
39 | <head> |
---|
40 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
41 | <title>Survey</title> |
---|
42 | <link rel="stylesheet" type="text/css" href="css/style.css" /> |
---|
43 | </head> |
---|
44 | <body> |
---|
45 | <div id="header"> |
---|
46 | <?php new Logo(); ?> |
---|
47 | </div> |
---|
48 | <div id="wrapper"> |
---|
49 | |
---|
50 | <div id="content"> |
---|
51 | <?php |
---|
52 | new SurveyCreationTool($savedSurvey, $timeStamp); |
---|
53 | ?> |
---|
54 | </div> |
---|
55 | </div> |
---|
56 | </body> |
---|
57 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.