Changeset 50 for Dev/trunk/classes
- Timestamp:
- 07/25/11 17:45:22 (14 years ago)
- File:
-
- 1 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 ?>
Note: See TracChangeset
for help on using the changeset viewer.