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

Refactoring main menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.