Last change
on this file since 102 was
102,
checked in by fpvanagthoven, 14 years ago
|
Begin on questioncreation.php
|
File size:
2.0 KB
|
Rev | Line | |
---|
[102] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Tool that displays a list and an edit panel |
---|
| 5 | * |
---|
| 6 | * @author fpvanagthoven |
---|
| 7 | */ |
---|
| 8 | class QuestionCreationTool { |
---|
| 9 | |
---|
| 10 | private $list; |
---|
| 11 | private $questionEditPanel; |
---|
| 12 | |
---|
| 13 | public function __construct() { |
---|
| 14 | $this->displayList(); |
---|
| 15 | $this->displayEditPanel(); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | private function displayList() { |
---|
| 19 | ?> |
---|
| 20 | <div id="questionListWrapper"> |
---|
| 21 | <select id="questionsList" size="2"> |
---|
| 22 | </select> |
---|
| 23 | </div> |
---|
| 24 | <?php |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | private function displayEditPanel() { |
---|
| 28 | ?> |
---|
| 29 | <div class="creation"> |
---|
| 30 | <form id="questionEditForm" action=""> |
---|
| 31 | <table class="questionTable"> |
---|
| 32 | <tr> |
---|
| 33 | <td><label for="questionCode">Code</label></td> |
---|
| 34 | <td><input id="questionCode" name="questionCode" size="5" /></td> |
---|
| 35 | </tr> |
---|
| 36 | <tr> |
---|
| 37 | <td><label for="questionTitle">Title</label></td> |
---|
| 38 | <td><input id="questionTitle" name="questionTitle" size="30" /></td> |
---|
| 39 | </tr> |
---|
| 40 | <tr> |
---|
| 41 | <td><label for="questionDescription">Description</label></td> |
---|
| 42 | <td><input id="questionDescription" name="questionDescription" size="60" /></td> |
---|
| 43 | </tr> |
---|
| 44 | <tr> |
---|
| 45 | <td><label for="questionType">Type answer</label></td> |
---|
| 46 | <td> |
---|
| 47 | <select name="questionType" onchange> |
---|
| 48 | <option value='text' selected='selected'>Text</option> |
---|
| 49 | <option value='int'>Integer</option> |
---|
| 50 | <option value='mc'>Multiple choice</option> |
---|
| 51 | <option value='checkboxes'>Checkboxes</option> |
---|
| 52 | <option value='scale'>Scale</option> |
---|
| 53 | </select> |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | </table> |
---|
| 57 | </form> |
---|
| 58 | </div> |
---|
| 59 | <?php |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | } |
---|
| 63 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.