Changeset 65 for Dev/trunk/classes/SessionCreationTool.php
- Timestamp:
- 08/02/11 14:13:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.