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/SurveyMenu.php

    r57 r58  
    1313
    1414    public function __construct($surveys) {
     15        ?> <div id="menu3" class="menu"> <?php
     16        ?> <div class="menuButtons"> <?php
    1517        SurveyMenu::newSurveyButton();
    16         SurveyMenu::loadSurveyButton($surveys);
     18        SurveyMenu::loadSurveyButton();
     19        ?> </div> <?php
     20        SurveyMenu::loadSurveyList($surveys);
     21        ?> </div> <?php
    1722    }
    1823
     
    3338     * @param Survey $surveys An array of surveys
    3439     */
    35     public static function loadSurveyButton($surveys) {
     40    public static function loadSurveyButton() {
    3641        ?>
    3742        <form id="loadForm" action="surveycreation.php" method="post">
    38             <input type="button" onclick="loadSurvey()" value="Load survey" class="surveyButton bigSurveyButton" />
     43            <input type="button" onclick="loadSurvey()" value="Load/Edit survey" class="surveyButton bigSurveyButton" />
    3944        </form>
    40         <br/>
    41         <select id="surveysToLoad" size="1000">
     45        <?php
     46    }
     47
     48    public static function loadSurveyList($surveys) {
     49        ?>
     50        <select id="surveysToLoad" class="toLoad" size="1000">
    4251            <?php
    4352            foreach ($surveys as $survey) {
     
    4756        </select>
    4857        <?php
     58
    4959    }
    5060
Note: See TracChangeset for help on using the changeset viewer.