Skip to content

Commit

Permalink
Modified newquestion and editquestion to allow setting text type ques…
Browse files Browse the repository at this point in the history
…tions as mandatory.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@352 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 11, 2003
1 parent da92c46 commit 01ad1ef
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions admin/html.php
Expand Up @@ -417,15 +417,6 @@
$newquestion .= "\t\tdocument.getElementById('OtherSelection').style.display = 'none';\n";
$newquestion .= "\t\tdocument.addnewquestion.other[1].checked = true;\n";
$newquestion .= "\t\t}\n";
$newquestion .= "\tif (QuestionType == 'S' || QuestionType == 'T' || QuestionType == '')\n";
$newquestion .= "\t\t{\n";
$newquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = 'none';\n";
$newquestion .= "\t\tdocument.editquestion.mandatory[1].checked=true;\n";
$newquestion .= "\t\t}\n";
$newquestion .= "\telse\n";
$newquestion .= "\t\t{\n";
$newquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = '';\n";
$newquestion .= "\t\t}\n";
$newquestion .= "\t}\n";
$newquestion .= "\tOtherSelection('{$eqrow['type']}');\n";
$newquestion .= "-->\n";
Expand Down Expand Up @@ -491,7 +482,7 @@
$editquestion .= "\t\t</td>\n";
$editquestion .= "\t</tr>\n";

$editquestion .= "\t<tr id='MandatorySelection' style='display: none'>\n";
$editquestion .= "\t<tr id='MandatorySelection'>\n";
$editquestion .= "\t\t<td align='right'>$setfont<b>Mandatory?</b></font></td>\n";
$editquestion .= "\t\t<td>$setfont\n";
$editquestion .= "\t\t\tYes <input type='radio' name='mandatory' value='Y'";
Expand All @@ -516,15 +507,6 @@
$editquestion .= "\t\tdocument.getElementById('OtherSelection').style.display = 'none';\n";
$editquestion .= "\t\tdocument.editquestion.other[1].checked = true;\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\tif (QuestionType == 'S' || QuestionType == 'T')\n";
$editquestion .= "\t\t{\n";
$editquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = 'none';\n";
$editquestion .= "\t\tdocument.editquestion.mandatory[1].checked=true;\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\telse\n";
$editquestion .= "\t\t{\n";
$editquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = '';\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\t}\n";
$editquestion .= "\tOtherSelection('{$eqrow['type']}');\n";
$editquestion .= "-->\n";
Expand Down Expand Up @@ -648,7 +630,7 @@
$editquestion .= "\t\t</select></td>\n";
$editquestion .= "\t</tr>\n";

$editquestion .= "\t<tr id='OtherSelection' style='display: none'>\n";
$editquestion .= "\t<tr id='OtherSelection'>\n";
$editquestion .= "\t\t<td align='right'>$setfont<b>Other?</b></font></td>\n";
$editquestion .= "\t\t<td>$setfont\n";
$editquestion .= "\t\t\tYes <input type='radio' name='other' value='Y'";
Expand All @@ -660,7 +642,7 @@
$editquestion .= "\t\t</td>\n";
$editquestion .= "\t</tr>\n";

$editquestion .= "\t<tr id='MandatorySelection' style='display: none'>\n";
$editquestion .= "\t<tr id='MandatorySelection'>\n";
$editquestion .= "\t\t<td align='right'>$setfont<b>Mandatory?</b></font></td>\n";
$editquestion .= "\t\t<td>$setfont\n";
$editquestion .= "\t\t\tYes <input type='radio' name='mandatory' value='Y'";
Expand All @@ -685,15 +667,6 @@
$editquestion .= "\t\tdocument.getElementById('OtherSelection').style.display = 'none';\n";
$editquestion .= "\t\tdocument.editquestion.other[1].checked = true;\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\tif (QuestionType == 'S' || QuestionType == 'T')\n";
$editquestion .= "\t\t{\n";
$editquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = 'none';\n";
$editquestion .= "\t\tdocument.editquestion.mandatory[1].checked=true;\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\telse\n";
$editquestion .= "\t\t{\n";
$editquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = '';\n";
$editquestion .= "\t\t}\n";
$editquestion .= "\t}\n";
$editquestion .= "\tOtherSelection('{$eqrow['type']}');\n";
$editquestion .= "-->\n";
Expand Down

0 comments on commit 01ad1ef

Please sign in to comment.