Last change
on this file since 78 was
78,
checked in by basvannuland, 14 years ago
|
save and load application
start with save and load session
|
File size:
1.2 KB
|
Rev | Line | |
---|
[56] | 1 | <?php |
---|
| 2 | require 'classes/master.php'; |
---|
[58] | 3 | |
---|
| 4 | if (is_null($_SESSION['username'])) |
---|
| 5 | redirect('index.php'); |
---|
[75] | 6 | |
---|
| 7 | $application = null; |
---|
| 8 | |
---|
| 9 | /* TODO: Bas! Dit aanpassen zodat application wordt opgeslagen. */ |
---|
[78] | 10 | if(isset($_POST['applicationUID'])) |
---|
[75] | 11 | { |
---|
[78] | 12 | $id = $_POST['applicationUID']; |
---|
| 13 | $title = $_POST['applicationTitle']; |
---|
| 14 | $description = $_POST['applicationDescription']; |
---|
| 15 | $application = new Application($id, $title, $description); |
---|
| 16 | |
---|
| 17 | $applicationDBI = new ApplicationDatabaseInterface($id); |
---|
| 18 | $applicationDBI->setApplicationInfo($application); |
---|
[75] | 19 | } |
---|
| 20 | |
---|
[56] | 21 | ?> |
---|
| 22 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 23 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
| 24 | |
---|
| 25 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 26 | <head> |
---|
| 27 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 28 | <title>Application Creation</title> |
---|
[66] | 29 | <?php new StyleSheet(); ?> |
---|
[56] | 30 | </head> |
---|
| 31 | <body> |
---|
| 32 | <div id="header"> |
---|
| 33 | <?php new Logo(); ?> |
---|
| 34 | </div> |
---|
| 35 | <div id="wrapper"> |
---|
| 36 | |
---|
| 37 | <div id="content"> |
---|
| 38 | <?php |
---|
[75] | 39 | new ApplicationCreationTool($application); |
---|
[56] | 40 | ?> |
---|
| 41 | </div> |
---|
| 42 | </div> |
---|
| 43 | </body> |
---|
| 44 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.