- Timestamp:
- 08/31/11 15:35:10 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Survey.php
r75 r95 1 1 <?php 2 2 3 /* 3 4 * To change this template, choose Tools | Templates … … 16 17 public $description; 17 18 public $questions; 18 19 public $results; 19 public $results; 20 21 const DEFAULT_DESCRIPTION = "Write a helpful description for this survey here."; 20 22 21 23 public function __construct($id, $title, $description = null) { … … 24 26 $this->description = $description; 25 27 $this->questions = array(); 26 27 28 29 $this->results = null; 28 30 } 29 30 public function addQuestion($question) 31 { 32 array_push($this->questions, $question); 33 } 34 35 public function setResults($surveyResults) 36 { 37 $this->results = $surveyResults; 38 } 31 32 public function addQuestion($question) { 33 array_push($this->questions, $question); 34 } 35 36 public function setResults($surveyResults) { 37 $this->results = $surveyResults; 38 } 39 39 40 40 public static function getSurvey($info) { … … 70 70 return $survey; 71 71 } 72 73 /** 74 * TODO: Should return Results-object from reading RDF-database 75 * @param type $surveyID 76 */ 77 public static function getResults($surveyID) 78 { 79 80 } 72 73 /** 74 * TODO: Should return Results-object from reading RDF-database 75 * @param type $surveyID 76 */ 77 public static function getResults($surveyID) { 78 79 } 81 80 82 81 } 82 83 83 ?> -
Dev/trunk/classes/SurveyTool.php
r59 r95 70 70 71 71 private function displayDescription() { 72 if ($this->survey->description != Survey::DEFAULT_DESCRIPTION) 73 $description = $this->survey->description; 74 else 75 $description = ""; 72 76 ?> 73 <p class='centerBoxed'><?php echo $ this->survey->description; ?></p>77 <p class='centerBoxed'><?php echo $description; ?></p> 74 78 <?php 75 79 } … … 97 101 98 102 private function displayQuestionDescription($question) { 103 if ($question->description != "Write a question description here.") 104 $description = $question->description; 105 else 106 $description = ""; 99 107 ?> 100 <p><?php echo "<div class='questionDescription noPadding'>" . $ question->description . "</div>"; ?></p>108 <p><?php echo "<div class='questionDescription noPadding'>" . $description . "</div>"; ?></p> 101 109 <?php 102 110 } -
Dev/trunk/doc/DONE
r92 r95 6 6 7 7 Session 8 8 Application inladen in SessionCreationTool 9 Repopulate session pipeline when "making" 9 10 10 11 Application … … 12 13 Load Application 13 14 14 Survey 15 SurveyCreationTool 15 16 Title + Descriptions CRUD 16 17 New Survey … … 19 20 Questions CRUD 20 21 22 SurveyTool 23 Default question description / leeg -> Niet displayen -
Dev/trunk/doc/TODO
r92 r95 9 9 Load / Edit Session 10 10 Session starten -> inlogscherm -> session start * 11 **Application inladen in session12 11 13 12 Application … … 28 27 Survey voor users 29 28 Bounds checking -> js erna van 30 Default question description / leeg -> Niet displayen31 29 32 30 BUGS - Hoge prioriteit 31 Question title en description worden niet geupdate 32 Application description wordt niet geupdate 33 33 34 34 BUGS - Lage prioriteit -
Dev/trunk/surveycreation.php
r83 r95 22 22 $timeStamp = $_POST['timeStamp']; 23 23 24 //echo 'This is what gets sent:';25 //var_dump($_POST);26 //echo '<br/><br/>';24 echo 'This is what gets sent:'; 25 var_dump($_POST); 26 echo '<br/><br/>'; 27 27 $surveyDBI = new SurveyCreationDatabaseInterface($_POST['surveyID']); 28 28 $surveyDBI->setSurveyInfo($_POST,$_SESSION); 29 29 $info = $surveyDBI->getSurveyInfo(); 30 //echo '<br/><br/>';31 //echo 'This is what I get back:';32 //var_dump($info);30 echo '<br/><br/>'; 31 echo 'This is what I get back:'; 32 var_dump($info); 33 33 34 34 $savedSurvey = Survey::getSurvey($info); … … 41 41 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 42 42 <head> 43 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >43 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 44 44 <title>Survey Creation</title> 45 45 <?php new StyleSheet(); ?>
Note: See TracChangeset
for help on using the changeset viewer.