Changeset 58 for Dev/trunk/classes/SessionMenu.php
- Timestamp:
- 07/27/11 15:01:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SessionMenu.php
r57 r58 9 9 10 10 public function __construct() { 11 ?> <div id="menu1" class="menu"> <?php 12 ?> <div class="menuButtons"> <?php 11 13 SessionMenu::createSessionButton(); 14 SessionMenu::loadSessionButton(); 15 ?> </div> <?php 16 SessionMenu::loadSessionList(null); 17 ?> </div> <?php 12 18 } 13 19 … … 24 30 } 25 31 32 public static function loadSessionButton() { 33 ?> 34 <form id="loadSessionForm" action="sessioncreation.php" method="post"> 35 <input type="button" onclick="loadSession()" value="Load/Edit session" class="surveyButton bigSurveyButton" /> 36 </form> 37 <?php 38 } 39 40 public static function loadSessionList($sessions) { 41 ?> 42 <select class="toLoad" size="1000"> 43 <?php 44 foreach ($sessions as $session) { 45 ?><option value='<?php echo $session->id; ?>'><?php echo $session->title; ?></option><?php 46 } 47 ?> 48 </select> 49 <?php 50 } 51 26 52 } 27 53 ?>
Note: See TracChangeset
for help on using the changeset viewer.