Changeset 50
- Timestamp:
- 07/25/11 17:45:22 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SurveyCreationTool.php
r49 r50 22 22 ?> 23 23 24 <div id="surveyCreation"><form id="survey" action="su bmitsurvey.php" method="post">24 <div id="surveyCreation"><form id="survey" action="surveycreation.php" method="post"> 25 25 <?php 26 26 $this->surveyHead(); … … 28 28 SurveyCreationTool::addQuestionButton(); 29 29 SurveyCreationTool::removeLastQuestionButton(); 30 SurveyCreationTool::submitButton();31 30 ?></form></div> 32 31 <?php … … 338 337 form.submit(); 339 338 } 340 341 339 340 function selectAll(input) 341 { 342 input.select(); 343 } 344 342 345 </script> 343 346 <?php … … 350 353 $this->saveSurvey(); 351 354 $this->descriptionBox(); 355 $this->surveyLink(); 352 356 ?></div> 353 357 <?php … … 384 388 <textarea id="surveyDescription" name="surveyDescription" onblur="handleBlur(this)" onfocus="handleFocus(this)"><?php echo $value; ?></textarea> 385 389 <?php 390 } 391 392 private function surveyLink() { 393 if (isset($this->survey)) 394 { 395 $surveyID = $this->survey->id; 396 397 $link = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . 398 '/survey.php?id=' . $surveyID; 399 ?> 400 <input type="text" value="<?php echo $link; ?>" id="surveyLink" onclick="selectAll(this)"> 401 <?php 402 } 386 403 } 387 404 … … 449 466 } 450 467 451 private static function submitbutton() {452 ?>453 <input type="submit" name="submitSurvey"454 value="Submit Survey!" class="surveyButton" id="submitSurvey"/>455 <?php456 }457 458 468 } 459 469 ?> -
Dev/trunk/css/style.css
r48 r50 106 106 #surveyDescription { 107 107 display: block; 108 width: 3 5em;109 max-width: 3 5em;108 width: 30em; 109 max-width: 30em; 110 110 font-family: sans-serif; 111 111 color: gray; … … 130 130 #surveyDescription:hover { 131 131 color: black; 132 } 133 134 #surveyLink { 135 position: absolute; 136 top: -2em; 137 right: 0; 138 font-size: x-small; 139 color: gray; 140 width: 30em; 141 border-color: transparent; 142 background-color: transparent; 132 143 } 133 144 -
Dev/trunk/mainmenu.php
r47 r50 20 20 } 21 21 22 /* make an array of survey mock objects */ 22 23 23 $surveys = array(); 24 24 -
Dev/trunk/surveycreation.php
r44 r50 4 4 $savedSurvey = null; 5 5 $timeStamp = null; 6 var_dump($_POST);6 //var_dump($_POST); 7 7 8 8 /* LOAD SURVEY */ … … 11 11 $surveyDBI = new SurveyDatabaseInterface($surveyID); 12 12 $info = $surveyDBI->getSurveyInfo(); 13 13 14 14 $savedSurvey = Survey::getSurvey($info); 15 15 } 16 16 17 /* AUTOSAVE */ 18 else if (isset($_POST['timeStamp'])) { 17 /* AUTOSAVE */ else if (isset($_POST['timeStamp'])) { 19 18 $timeStamp = $_POST['timeStamp']; 20 19 21 echo 'This is what gets sent:';22 var_dump($_POST);23 echo '<br/><br/>';20 // echo 'This is what gets sent:'; 21 // var_dump($_POST); 22 // echo '<br/><br/>'; 24 23 $surveyDBI = new SurveyDatabaseInterface($_POST['surveyID']); 25 24 $surveyDBI->setSurveyInfo($_POST); 26 25 $info = $surveyDBI->getSurveyInfo(); 27 echo '<br/><br/>';28 echo 'This is what I get back:';29 var_dump($info);26 // echo '<br/><br/>'; 27 // echo 'This is what I get back:'; 28 // var_dump($info); 30 29 31 30 $savedSurvey = Survey::getSurvey($info); … … 49 48 50 49 <div id="content"> 51 52 53 50 <?php 51 new SurveyCreationTool($savedSurvey, $timeStamp); 52 ?> 54 53 </div> 55 54 </div>
Note: See TracChangeset
for help on using the changeset viewer.