- Timestamp:
- 07/26/11 17:49:26 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Application.php
r56 r57 16 16 } 17 17 18 public static function createApplicationButton() {19 ?>20 <form action="applicationcreation.php" method="post">21 22 <input type="submit" value="Create new application" class="surveyButton bigSurveyButton" />23 24 </form>25 26 <?php27 }28 18 29 19 } -
Dev/trunk/classes/Session.php
r56 r57 18 18 } 19 19 20 public static function createSessionButton() {21 ?>22 23 <form action="sessioncreation.php" method="post">24 25 <input type="submit" value="Create new session" class="surveyButton bigSurveyButton" />26 27 </form>28 29 <?php30 }31 32 20 } 33 21 ?> -
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 ?> -
Dev/trunk/mainmenu.php
r56 r57 49 49 <div id="menu"> 50 50 <?php 51 Session::createSessionButton(); 52 Application::createApplicationButton(); 53 Survey::newSurveyButton(); 54 Survey::loadSurveyButton($surveys); 51 new SessionMenu(); 52 new ApplicationMenu(); 53 new SurveyMenu($surveys); 55 54 ?> 56 55 </div>
Note: See TracChangeset
for help on using the changeset viewer.