Changeset 57 for Dev/trunk/classes/Survey.php
- Timestamp:
- 07/26/11 17:49:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Survey.php
r56 r57 57 57 } 58 58 59 public static function newSurveyButton() {60 ?>61 62 <form action="surveycreation.php" method="post">63 64 <input type="submit" value="Create new survey" class="surveyButton bigSurveyButton" />65 66 </form>67 68 <?php69 }70 71 /**72 *73 * @param Survey $surveys An array of surveys74 */75 public static function loadSurveyButton($surveys) {76 ?>77 <form id="loadForm" action="surveycreation.php" method="post">78 <input type="button" onclick="loadSurvey()" value="Load survey" class="surveyButton bigSurveyButton" />79 </form>80 <br/>81 <select id="surveysToLoad" size="1000">82 <?php83 foreach ($surveys as $survey) {84 ?><option value='<?php echo $survey->id; ?>'><?php echo $survey->title; ?></option><?php85 }86 ?>87 </select>88 <?php89 }90 91 59 } 92 60 ?>
Note: See TracChangeset
for help on using the changeset viewer.