Changeset 57 for Dev/trunk/classes


Ignore:
Timestamp:
07/26/11 17:49:26 (14 years ago)
Author:
fpvanagthoven
Message:

Refactoring main menu

Location:
Dev/trunk/classes
Files:
3 added
3 edited

Legend:

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

    r56 r57  
    1616    }
    1717
    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         <?php
    27     }
    2818
    2919}
  • Dev/trunk/classes/Session.php

    r56 r57  
    1818    }
    1919
    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         <?php
    30     }
    31 
    3220}
    3321?>
  • Dev/trunk/classes/Survey.php

    r56 r57  
    5757    }
    5858
    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         <?php
    69     }
    70 
    71     /**
    72      *
    73      * @param Survey $surveys An array of surveys
    74      */
    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             <?php
    83             foreach ($surveys as $survey) {
    84                 ?><option value='<?php echo $survey->id; ?>'><?php echo $survey->title; ?></option><?php
    85         }
    86             ?>
    87         </select>
    88         <?php
    89     }
    90 
    9159}
    9260?>
Note: See TracChangeset for help on using the changeset viewer.