- Timestamp:
- 08/03/11 15:30:50 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/ApplicationCreationTool.php
r66 r68 65 65 private function done() { 66 66 ?> 67 <input type="submit" class="surveyButton " value="Done" />67 <input type="submit" class="surveyButton topRight" value="Done" /> 68 68 <?php 69 69 } -
Dev/trunk/classes/SessionCreationTool.php
r67 r68 17 17 18 18 $this->javascript(); 19 var_dump($_POST); 19 20 ?> 20 21 21 22 <div class="creation"> 22 <form id="sessionCreationForm" action="" method="post">23 <form id="sessionCreationForm" action="" onsubmit="submitPipeline()" method="post"> 23 24 <?php 24 25 $this->title(); … … 41 42 <script type="text/javascript" src="js/creation.js"></script> 42 43 <script type="text/javascript"> 44 var pipelineCount = 0; 43 45 var surveys = new Array(); 44 46 45 47 init(); 46 48 47 49 function init() { 48 50 loadSurveys(); 49 51 loadApplications(); 50 52 } 51 53 52 54 function loadSurveys() { 53 55 <?php … … 62 64 ?> 63 65 } 64 66 65 67 function loadApplications() { 66 67 } 68 68 69 } 70 69 71 function Survey(title, id) 70 72 { … … 72 74 this.id = id; 73 75 } 74 76 75 77 // ============================================================= 76 78 77 79 function addSurvey() { 80 pipelineCount++; 81 78 82 var pipeline = document.getElementById("pipeline"); 79 83 var surveysList = document.getElementById("surveysList"); 80 84 81 85 var entry = document.createElement("option"); 82 86 entry.setAttribute("value", surveys[surveysList.selectedIndex].id); 83 entry.style.backgroundColor = "#88c5e4"; 84 entry.innerHTML = surveys[surveysList.selectedIndex].title; 85 87 entry.style.backgroundColor = "#0090ac"; 88 entry.innerHTML = pipelineCount + ". " + surveys[surveysList.selectedIndex].title; 89 entry.name = pipelineCount + "s"; 90 86 91 pipeline.appendChild(entry); 87 92 } 88 93 89 94 function addDashboard() { 95 pipelineCount++; 90 96 var pipeline = document.getElementById("pipeline"); 91 97 92 98 var entry = document.createElement("option"); 93 99 entry.setAttribute("value", "dashboard"); 94 100 entry.style.backgroundColor = "#555"; 95 101 entry.style.color = "white"; 96 entry.innerHTML = "Dashboard"; 97 102 entry.innerHTML = pipelineCount + ". " + "Dashboard"; 103 entry.name = pipelineCount + "d"; 104 105 pipeline.appendChild(entry); 106 } 107 108 function submitPipeline() 109 { 110 var form = document.getElementById("sessionCreationForm"); 98 111 99 pipeline.appendChild(entry); 100 } 101 112 var pipeline = document.getElementById("pipeline").options; 113 114 115 for (var i = 0; i < pipeline.length; i++) 116 { 117 var pipelineElem = document.createElement("input"); 118 pipelineElem.name = pipeline[i].name; 119 pipelineElem.value = pipeline[i].value; 120 pipelineElem.type = "hidden"; 121 122 form.appendChild(pipelineElem); 123 } 124 125 } 102 126 </script> 103 127 <?php … … 205 229 private function makeSessionButton() { 206 230 ?> 207 <input type="submit" id="makeSessionButton" class=" surveyButton" value="Make session" />231 <input type="submit" id="makeSessionButton" class="topRight surveyButton" value="Make session" /> 208 232 <?php 209 233 } -
Dev/trunk/classes/SurveyCreationTool.php
r64 r68 15 15 $this->survey = $survey; 16 16 $this->timeStamp = $timeStamp; 17 17 var_dump($_POST); 18 18 if (isset($this->survey->id)) 19 19 SurveyCreationTool::javascript($this->survey->id); -
Dev/trunk/css/awesome.css
r67 r68 394 394 } 395 395 396 .topRight { 397 position: absolute; 398 top: 2.3em; 399 right: 2.3em; 400 padding-left: 1em; 401 padding-right: 1em; 402 } 403 396 404 /* ################################################################## 397 405 ===================== STYLESHEET OF GLORY ======================== */ … … 429 437 } 430 438 431 #makeSessionButton {432 position: absolute;433 top: 2.3em;434 right: 2.3em;435 padding-left: 1em;436 padding-right: 1em;437 }438 439 439 #surveysApplicationsWrapper { 440 440 float: left;
Note: See TracChangeset
for help on using the changeset viewer.