Changeset 23
- Timestamp:
- 07/18/11 19:38:51 (14 years ago)
- Location:
- Dev/trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SurveyCreationTool.php
r21 r23 38 38 "<th>Question " + questionCount + "</th>" + 39 39 "<tr><td><label for='questionTitle'>Title</label></td>" + 40 "<td><input type='text' class='questionTitle' name='questionTitle" + questionCount + "' size='30' value='Untitled Question' /></td></tr>" +40 "<td><input type='text' class='questionTitle' name='questionTitle" + questionCount + "' onfocus='handleFocus(this)' size='30' value='Untitled Question' /></td></tr>" + 41 41 "<tr><td><label for='questionDescription'>Description</label></td>" + 42 "<td><input type='text' class='questionDescription' name='questionDescription" + questionCount + "' size='60' value='Write a question description here.' /></td>" +42 "<td><input type='text' class='questionDescription' name='questionDescription" + questionCount + "' onfocus='handleFocus(this)' size='60' value='Write a question description here.' /></td>" + 43 43 "<tr><td><label for='questionType'>Answer type</label></td>" + 44 44 "<td><select id='" + questionCount + "' name='questionType" + questionCount + "' onchange='handleType(this)'><br />"+ … … 50 50 "</select></td></tr>" + 51 51 "</table>" + 52 "<div id='answersDiv" + questionCount + "' ></div>" +52 "<div id='answersDiv" + questionCount + "' class='answersDiv'></div>" + 53 53 "</div>"; 54 54 … … 173 173 174 174 answerDiv.className = "answerDiv"; 175 answerDiv.innerHTML = "<label for='min'>Min</label><input type='text' name=' min" + questionNumber + "' />" +176 "<label for='max'>Max</label><input type='text' name=' max" + questionNumber + "' />";175 answerDiv.innerHTML = "<label for='min'>Min</label><input type='text' name='q" + questionNumber + "ans1' />" + 176 "<label for='max'>Max</label><input type='text' name='q" + questionNumber + "ans2' />"; 177 177 178 178 answersDiv.appendChild(answerDiv); … … 181 181 function minMaxIncr(questionNumber) 182 182 { 183 minMax(questionNumber);184 183 var answersDiv = document.getElementById("answersDiv" + questionNumber); 185 184 186 185 var answerDiv = document.createElement("div"); 187 186 answerDiv.className = "answerDiv"; 188 answerDiv.innerHTML = "<label for='incr'>Increment by</label><input type='text' name='incr" + questionNumber + "' />"; 187 answerDiv.innerHTML = "<label>Left label</label><input type='text' name='q" + questionNumber + "ans1' />" + 188 "<label>Right label</label><input type='text' name='q" + questionNumber + "ans2' />" + 189 "<label>Scale count</label><input type='text' name='q" + questionNumber + "ans3' />"; 189 190 190 191 answersDiv.appendChild(answerDiv); -
Dev/trunk/css/style.css
r21 r23 101 101 } 102 102 103 .answersDiv { 104 margin-left: 0.5em; 105 } 106 103 107 #submitSurvey { 104 108 display: block;
Note: See TracChangeset
for help on using the changeset viewer.