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