Changeset 59 for Dev/trunk/classes


Ignore:
Timestamp:
07/27/11 18:57:54 (14 years ago)
Author:
fpvanagthoven
Message:

Absolutely had to do something about styling. Also some other things.

Location:
Dev/trunk/classes
Files:
2 added
5 edited

Legend:

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

    r58 r59  
    66 * @author fpvanagthoven
    77 */
    8 class ApplicationMenu {
     8class ApplicationMenu extends Menu {
    99
    1010    public function __construct() {
    11         ?> <div id="menu2" class="menu"> <?php
     11       
     12        ?><fieldset class="menu"><?php
     13        parent::__construct('Application');
    1214        ?> <div class="menuButtons"> <?php
    1315        ApplicationMenu::createApplicationButton();
     
    1517        ?> </div> <?php
    1618        ApplicationMenu::loadApplicationList(null);
    17         ?> </div> <?php
     19        ?></fieldset><?php
    1820    }
    1921
  • Dev/trunk/classes/SessionMenu.php

    r58 r59  
    1313        SessionMenu::createSessionButton();
    1414        SessionMenu::loadSessionButton();
     15        SessionMenu::startSessionButton();
    1516        ?> </div> <?php
    1617        SessionMenu::loadSessionList(null);
     
    3839    }
    3940
     41    public static function startSessionButton() {
     42        ?>
     43        <form action="session.php" method="post">
     44            <input type="button" onclick="startSession()" value="Start session" class="surveyButton bigSurveyButton" />
     45        </form>
     46        <?php
     47    }
     48
    4049    public static function loadSessionList($sessions) {
    4150        ?>
  • Dev/trunk/classes/SurveyCreationTool.php

    r54 r59  
    370370                else
    371371                {
    372                     input.style.border = '1px solid #abadb3';
     372                    input.style.border = '1px solid #888;';
    373373                    input.checkPassed = null;
    374374                }
  • Dev/trunk/classes/SurveyMenu.php

    r58 r59  
    1717        SurveyMenu::newSurveyButton();
    1818        SurveyMenu::loadSurveyButton();
     19        SurveyMenu::deleteSurveyButton();
    1920        ?> </div> <?php
    2021        SurveyMenu::loadSurveyList($surveys);
     
    3435    }
    3536
    36     /**
    37      *
    38      * @param Survey $surveys An array of surveys
    39      */
    4037    public static function loadSurveyButton() {
    4138        ?>
     
    4643    }
    4744
     45    public static function deleteSurveyButton() {
     46        ?>
     47        <form action="" method="post">
     48            <input type="button" onclick="delSurvey()" value="Delete survey" class="surveyButton bigSurveyButton" />
     49        </form>
     50        <?php
     51    }
     52
     53    /**
     54     *
     55     * @param Survey $surveys An array of surveys
     56     */
    4857    public static function loadSurveyList($surveys) {
    4958        ?>
     
    5665        </select>
    5766        <?php
    58 
    5967    }
    6068
  • Dev/trunk/classes/SurveyTool.php

    r55 r59  
    147147    private function submitSurvey() {
    148148        ?>
    149         <input type="submit" value="Submit survey!" class="topMargin surveyButton bigSurveyButton"/>
     149        <input type="submit" value="Submit survey!" id="submitSurvey" class="topMargin surveyButton bigSurveyButton"/>
    150150        <?php
    151151    }
Note: See TracChangeset for help on using the changeset viewer.