Skip to content

Commit

Permalink
Fixed bugs related to flexible labels matching, and multiple options …
Browse files Browse the repository at this point in the history
…with comment labelling - incorrect display when reloading page.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@871 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 31, 2004
1 parent 4531fe5 commit 0bc9bd8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions qanda.php
Expand Up @@ -579,15 +579,17 @@
. "\t\t\t\t\t\t\t\t<td>\n"
. "\t\t\t\t\t\t\t\t\t<input class='checkbox' type='checkbox' name='$myfname' id='$myfname' value='Y'";
if (isset($_SESSION[$myfname]) && $_SESSION[$myfname] == "Y") {$answer .= " checked";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /><label for='$myfname' class='answertext'>{$ansrow['answer']}</label>\n"
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' />"
. "<label for='$myfname' class='answertext'>"
. $ansrow['answer']."</label>\n"
. "\t\t\t\t\t\t\t\t</td>\n"
. "\t\t\t\t<input type='hidden' name='java$myfname' id='java$myfname' value='";
if (isset($_SESSION[$myfname])) {$answer .= $_SESSION[$myfname];}
$answer .= "'>\n";
$fn++;
$answer .= "\t\t\t\t\t\t\t\t<td>\n"
. "\t\t\t\t\t\t\t\t\t<input class='text' type='text' size='40' name='$myfname2' value='";
if (isset($_SESSION[$myfname])) {$answer .= $_SESSION[$myfname];}
if (isset($_SESSION[$myfname2])) {$answer .= $_SESSION[$myfname2];}
$answer .= "' />\n"
. "\t\t\t\t\t\t\t\t</td>\n"
. "\t\t\t\t\t\t\t</tr>\n";
Expand Down Expand Up @@ -1024,8 +1026,9 @@
. "\t\t\t\t\t<td align='right' class='answertext' width='$percwidth%'>{$ansrow['answer']}</td>\n";
foreach ($labelcode as $ld)
{
$answer .= "\t\t\t\t\t<td align='center' width='$otherwidth%'><input class='radio' type='radio' name='$myfname' value='$ld'";
if (isset($_SESSION[$myfname]) && $_SESSION[$myfname] == $ld['code']) {$answer .= " checked";}
$answer .= "\t\t\t\t\t<td align='center' width='$otherwidth%'>";
$answer .= "<input class='radio' type='radio' name='$myfname' value='$ld'";
if (isset($_SESSION[$myfname]) && $_SESSION[$myfname] == $ld) {$answer .= " checked";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /></td>\n";
}
if ($ia[6] != "Y")
Expand Down

0 comments on commit 0bc9bd8

Please sign in to comment.