- Timestamp:
- 08/02/11 16:15:51 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SessionCreationTool.php
r66 r67 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 pipeline = document.getElementById("pipeline"); 79 79 var surveysList = document.getElementById("surveysList"); 80 80 81 81 var entry = document.createElement("option"); 82 82 entry.setAttribute("value", surveys[surveysList.selectedIndex].id); 83 entry.style.backgroundColor = "#88c5e4"; 83 84 entry.innerHTML = surveys[surveysList.selectedIndex].title; 85 86 pipeline.appendChild(entry); 87 } 88 89 function addDashboard() { 90 var pipeline = document.getElementById("pipeline"); 91 92 var entry = document.createElement("option"); 93 entry.setAttribute("value", "dashboard"); 94 entry.style.backgroundColor = "#555"; 95 entry.style.color = "white"; 96 entry.innerHTML = "Dashboard"; 97 84 98 85 99 pipeline.appendChild(entry); 86 100 } 87 101 88 102 </script> 89 103 <?php … … 142 156 private function pipelineSelect() { 143 157 ?> 144 <select id="pipeline" size=" 5">158 <select id="pipeline" size="1000"> 145 159 146 160 </select> … … 166 180 private function applicationsSelect() { 167 181 ?> 168 <select size="5" class="width100p">182 <select id="applicationsList" size="5" class="width100p"> 169 183 </select> 170 184 <?php … … 185 199 private function addDashboardToPipelineButton() { 186 200 ?> 187 <input type="button" class="surveyButton nextLine pipelineButton leftAlign leftPadding1" value="+ Dashboard" />201 <input type="button" class="surveyButton nextLine pipelineButton leftAlign leftPadding1" value="+ Dashboard" onclick="addDashboard()"/> 188 202 <?php 189 203 } -
Dev/trunk/css/awesome.css
r66 r67 397 397 ===================== STYLESHEET OF GLORY ======================== */ 398 398 #sessionCreationForm { 399 padding-bottom: 1 0em;399 padding-bottom: 16em; 400 400 } 401 401 … … 413 413 display: block; 414 414 width: 100%; 415 height: 15em; 415 416 overflow: hidden; 416 417 } 417 418 419 #surveysList { 420 height: 15em; 421 } 422 423 #applicationsList { 424 height: 15em; 425 } 426 418 427 .pipelineButton { 419 428 420 429 } 421 430
Note: See TracChangeset
for help on using the changeset viewer.