- Timestamp:
- 08/02/11 14:13:36 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/ApplicationMenu.php
r60 r65 9 9 10 10 public function __construct() { 11 12 11 ?><fieldset class="menu"><?php 13 12 parent::__construct('Application'); … … 50 49 <select id="applicationsToLoad" class="toLoad" size="1000"> 51 50 <?php 52 foreach ($applications as $application) { 53 ?><option value='<?php echo $application->id; ?>'><?php echo $application->name; ?></option><?php 51 if (!empty($applications)) { 52 foreach ($applications as $application) { 53 ?><option value='<?php echo $application->id; ?>'><?php echo $application->name; ?></option><?php 54 } 54 55 } 55 56 ?> 56 57 </select> 57 58 <?php 58 59 59 } 60 60 -
Dev/trunk/classes/SessionCreationTool.php
r64 r65 42 42 <script type="text/javascript"> 43 43 var surveys = new Array(); 44 44 45 45 init(); 46 46 47 47 function init() { 48 48 loadSurveys(); 49 49 loadApplications(); 50 50 } 51 51 52 52 function loadSurveys() { 53 53 <?php … … 62 62 ?> 63 63 } 64 64 65 65 function loadApplications() { 66 67 } 68 66 67 } 68 69 69 function Survey(title, id) 70 70 { … … 72 72 this.id = id; 73 73 } 74 74 75 75 // ============================================================= 76 76 77 77 function addSurvey() { 78 78 var surveyList = document.createElement("select"); 79 surveyList.setAttribute("size", "1000"); 80 surveyList.className = "toLoad"; 81 79 surveyList.size = 1000; 80 surveyList.style.height = "10em"; 81 surveyList.style.width = "15em"; 82 82 83 for (var i = 0; i < surveys.length; i++) 83 84 { … … 87 88 surveyList.appendChild(option); 88 89 } 89 90 91 92 90 93 var sessionCreation = document.getElementById("sessionCreationForm"); 91 94 var pipelineOptions = document.getElementById("pipelineOptions"); 92 95 93 96 sessionCreation.replaceChild(surveyList, pipelineOptions); 94 97 } 95 98 96 99 </script> 97 100 <?php … … 120 123 private function pipeline() { 121 124 ?> 122 <h2 id="pipelineHead">Pipeline</h2> 123 <div id="pipeline" class="padding2em"> 124 <i>-Empty- </i> 125 <div id="pipelineWrapper"> 126 <h2 class="pipelineHead">Pipeline</h2> 127 <?php $this->pipelineSelect(); ?> 128 <div id="pipelineOptions"> 129 <?php 130 $this->addDashboardToPipelineButton(); 131 ?> 132 </div> 125 133 </div> 126 <div id="pipelineOptions"> 134 <div id="surveysApplicationsWrapper"> 135 <div id="surveysForPipelineWrapper"> 136 <h2 class="pipelineHead">Surveys</h2> 137 <?php $this->surveysSelect(); ?> 138 </div> 139 <div id="applicationsForPipelineWrapper"> 140 <h2 class="pipelineHead">Applications</h2> 141 <?php $this->applicationsSelect(); ?> 142 </div> 143 </div> 144 <?php 145 } 146 147 private function pipelineSelect() { 148 ?> 149 <select id="pipeline" size="5"> 150 151 </select> 152 <?php 153 } 154 155 private function surveysSelect() { 156 ?> 157 <select size="5" class="width100p"> 127 158 <?php 128 $this->addSurveyToPipelineButton(); 129 $this->addApplicationToPipelineButton(); 130 $this->addDashboardToPipelineButton(); 131 ?></div> 159 foreach ($this->surveys as $survey) { 160 ?> 161 <option value="<?php echo $survey->id; ?>"> 162 <?php echo $survey->title; ?> 163 </option> 164 <?php 165 } 166 ?> 167 </select> 168 <?php 169 } 170 171 private function applicationsSelect() { 172 ?> 173 <select size="5" class="width100p"> 174 </select> 132 175 <?php 133 176 } … … 135 178 private function addSurveyToPipelineButton() { 136 179 ?> 137 <input type="button" id="surveyToPipeline" class="surveyButton nextLinepipelineButton leftAlign leftPadding1" value="+ Survey" onclick="addSurvey()"/>180 <input type="button" id="surveyToPipeline" class="surveyButton pipelineButton leftAlign leftPadding1" value="+ Survey" onclick="addSurvey()"/> 138 181 <?php 139 182 } … … 141 184 private function addApplicationToPipelineButton() { 142 185 ?> 143 <input type="button" class="surveyButton nextLinepipelineButton leftAlign leftPadding1" value="+ Application" />186 <input type="button" class="surveyButton pipelineButton leftAlign leftPadding1" value="+ Application" /> 144 187 <?php 145 188 } -
Dev/trunk/classes/SessionMenu.php
r60 r65 6 6 * @author fpvanagthoven 7 7 */ 8 class SessionMenu extends Menu {8 class SessionMenu extends Menu { 9 9 10 10 public function __construct() { … … 52 52 <select class="toLoad" size="1000"> 53 53 <?php 54 foreach ($sessions as $session) { 55 ?><option value='<?php echo $session->id; ?>'><?php echo $session->title; ?></option><?php 54 if (!empty($sessions)) { 55 foreach ($sessions as $session) { 56 ?><option value='<?php echo $session->id; ?>'><?php echo $session->title; ?></option><?php 57 } 56 58 } 57 59 ?> -
Dev/trunk/css/awesome.css
r64 r65 360 360 } 361 361 362 .width100p { 363 width: 100%; 364 } 365 362 366 /* ################################################################## 363 367 ===================== STYLESHEET OF GLORY ======================== */ … … 392 396 /* ################################################################## 393 397 ===================== STYLESHEET OF GLORY ======================== */ 394 #pipelineHead { 398 #sessionCreationForm { 399 padding-bottom: 10em; 400 } 401 402 #pipelineWrapper { 403 float: left; 404 width: 40%; 405 } 406 407 .pipelineHead { 395 408 margin-top: 1em; 396 409 text-shadow: #fff 0px 0px 1px; … … 398 411 399 412 #pipeline { 400 413 display: block; 414 width: 100%; 415 overflow: hidden; 401 416 } 402 417 … … 412 427 padding-right: 1em; 413 428 } 429 430 #surveysApplicationsWrapper { 431 float: left; 432 width: 60%; 433 } 434 435 #surveysForPipelineWrapper { 436 float: left; 437 width: 50%; 438 } 439 440 #applicationsForPipelineWrapper { 441 float: left; 442 width: 50%; 443 } -
Dev/trunk/register.php
r58 r65 6 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 7 <title>Facilitator</title> 8 < link rel="stylesheet" type="text/css" href="css/style.css" />8 <?php new StyleSheet(); ?> 9 9 <script type="text/javascript" src="js/menu.js"></script> 10 10 </head>
Note: See TracChangeset
for help on using the changeset viewer.