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
|
Rev | Line | |
---|
[29] | 1 | <?php |
---|
| 2 | require 'classes/master.php'; |
---|
[10] | 3 | |
---|
[29] | 4 | $savedSurvey = null; |
---|
[38] | 5 | $timeStamp = null; |
---|
| 6 | var_dump($_POST); |
---|
[29] | 7 | |
---|
[38] | 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'])) { |
---|
[24] | 19 | $timeStamp = $_POST['timeStamp']; |
---|
[38] | 20 | |
---|
| 21 | echo 'This is what gets sent:'; |
---|
| 22 | var_dump($_POST); |
---|
| 23 | echo '<br/><br/>'; |
---|
[41] | 24 | $surveyDBI = new SurveyDatabaseInterface($_POST['surveyID']); |
---|
[38] | 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); |
---|
[26] | 32 | } |
---|
[24] | 33 | ?> |
---|
| 34 | |
---|
[10] | 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"> |
---|
[41] | 46 | <?php new Logo(); ?> |
---|
[29] | 47 | </div> |
---|
[10] | 48 | <div id="wrapper"> |
---|
[29] | 49 | |
---|
[10] | 50 | <div id="content"> |
---|
[38] | 51 | <?php |
---|
| 52 | new SurveyCreationTool($savedSurvey, $timeStamp); |
---|
| 53 | ?> |
---|
[10] | 54 | </div> |
---|
| 55 | </div> |
---|
| 56 | </body> |
---|
| 57 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.