Ignore:
Timestamp:
07/27/11 15:01:07 (14 years ago)
Author:
fpvanagthoven
Message:

mainmenu.php tweaked for usability. When not logged in, the user gets redirected to index.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/SessionMenu.php

    r57 r58  
    99
    1010    public function __construct() {
     11        ?> <div id="menu1" class="menu"> <?php
     12        ?> <div class="menuButtons"> <?php
    1113        SessionMenu::createSessionButton();
     14        SessionMenu::loadSessionButton();
     15        ?> </div> <?php
     16        SessionMenu::loadSessionList(null);
     17        ?> </div> <?php
    1218    }
    1319
     
    2430    }
    2531
     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
    2652}
    2753?>
Note: See TracChangeset for help on using the changeset viewer.