Last change
on this file since 80 was
80,
checked in by basvannuland, 14 years ago
|
Application save load from db should work. styles not part of save yet.
More work on session save load
|
File size:
1.0 KB
|
Rev | Line | |
---|
[51] | 1 | <?php |
---|
[50] | 2 | require 'classes/master.php'; |
---|
[51] | 3 | |
---|
[80] | 4 | //var_dump($_POST); |
---|
[78] | 5 | |
---|
[58] | 6 | if (is_null($_SESSION['username'])) |
---|
| 7 | redirect('index.php'); |
---|
| 8 | |
---|
[51] | 9 | if (isset($_GET['id'])) |
---|
| 10 | { |
---|
| 11 | $surveyID = $_GET['id']; |
---|
| 12 | |
---|
| 13 | $surveyDBI = new SurveyDatabaseInterface($surveyID); |
---|
| 14 | $info = $surveyDBI->getSurveyInfo(); |
---|
| 15 | |
---|
| 16 | $savedSurvey = Survey::getSurvey($info); |
---|
| 17 | |
---|
[80] | 18 | var_dump($_POST); |
---|
[51] | 19 | } |
---|
| 20 | else |
---|
| 21 | redirect('index.php'); |
---|
[50] | 22 | ?> |
---|
| 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"> |
---|
[52] | 29 | <title>Survey</title> |
---|
[59] | 30 | <?php new StyleSheet(); ?> |
---|
[51] | 31 | <script type="text/javascript" src="js/menu.js"></script> |
---|
[50] | 32 | </head> |
---|
[51] | 33 | |
---|
[50] | 34 | <body> |
---|
| 35 | <div id="header"> |
---|
[51] | 36 | <?php new Logo(); ?> |
---|
[50] | 37 | </div> |
---|
| 38 | |
---|
| 39 | <div id="wrapper"> |
---|
| 40 | <div id="content"> |
---|
[51] | 41 | <?php new SurveyTool($savedSurvey); ?> |
---|
[50] | 42 | </div> |
---|
| 43 | </div> |
---|
| 44 | </body> |
---|
| 45 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.