Last change
on this file since 26 was
26,
checked in by basvannuland, 14 years ago
|
made some changes to way rdf database is constructed.
Made an interface class to write to db and read from db.
interface returns array with survey information in the same way it gets it from the surveyCreationTool.
TODO, override existing survey when it is modified.
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php require 'classes/master.php'; |
---|
2 | |
---|
3 | if (isset($_POST['timeStamp'])) |
---|
4 | { |
---|
5 | $timeStamp = $_POST['timeStamp']; |
---|
6 | |
---|
7 | var_dump($_POST); |
---|
8 | echo '<br/><br/>'; |
---|
9 | $surveyDBI = SurveyDatabaseInterface::getInstance(); |
---|
10 | $surveyDBI->setSurveyInfo($_POST); |
---|
11 | $info = $surveyDBI->getSurveyInfo(); |
---|
12 | echo '<br/><br/>'; |
---|
13 | var_dump($info); |
---|
14 | } |
---|
15 | else { |
---|
16 | $timeStamp = null; |
---|
17 | } |
---|
18 | |
---|
19 | |
---|
20 | ?> |
---|
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>Survey</title> |
---|
29 | <link rel="stylesheet" type="text/css" href="css/style.css" /> |
---|
30 | </head> |
---|
31 | <body> |
---|
32 | <div id="header"> |
---|
33 | <div id="logo">CPSFacilitator Tool </div> |
---|
34 | </div> |
---|
35 | <div id="wrapper"> |
---|
36 | |
---|
37 | <div id="content"> |
---|
38 | <?php |
---|
39 | new SurveyCreationTool(null, $timeStamp); |
---|
40 | ?> |
---|
41 | </div> |
---|
42 | </div> |
---|
43 | </body> |
---|
44 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.