Skip to content

Commit

Permalink
Bugfix - was not modified to handle question type "H" (flexible label…
Browse files Browse the repository at this point in the history
…s by column)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@992 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 22, 2004
1 parent d84f810 commit 21d7a26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/statistics.php
Expand Up @@ -134,7 +134,7 @@
$niceqtext = str_replace("\r", "", $niceqtext);
$niceqtext = str_replace("\n", "", $niceqtext);
//headings
if ($flt[2] != "A" && $flt[2] != "B" && $flt[2] != "C" && $flt[2] != "E" && $flt[2] != "F" && $flt[2] != "T" && $flt[2] != "S" && $flt[2] != "D" && $flt[2] != "R" && $flt[2] != "Q" && $flt[2] != "X") //Have to make an exception for these types!
if ($flt[2] != "A" && $flt[2] != "B" && $flt[2] != "C" && $flt[2] != "E" && $flt[2] != "F" && $flt[2] != "H" && $flt[2] != "T" && $flt[2] != "S" && $flt[2] != "D" && $flt[2] != "R" && $flt[2] != "Q" && $flt[2] != "X") //Have to make an exception for these types!
{
echo "\t\t\t\t<td align='center'>"
."$setfont<b>$flt[3]&nbsp;"; //Heading (Question No)
Expand Down Expand Up @@ -406,6 +406,7 @@
$counter=0;
break;
case "F": // ARRAY OF Flexible QUESTIONS
case "H": // ARRAY OF Flexible Questions (By Column)
echo "\t\t\t\t</tr>\n\t\t\t\t<tr>\n";
$query = "SELECT code, answer FROM {$dbprefix}answers WHERE qid='$flt[0][]' ORDER BY sortorder, answer";
$result = mysql_query($query) or die ("Couldn't get answers!<br />$query<br />".mysql_error());
Expand Down Expand Up @@ -962,6 +963,7 @@
$qtitle .= "($qanswer)";
break;
case "F": //Array of Flexible
case "H": //Array of Flexible by Column
$qanswer=substr($qqid, strlen($qiqid), strlen($qqid));
$qquery = "SELECT code, answer FROM {$dbprefix}answers WHERE qid='$qiqid' AND code='$qanswer' ORDER BY sortorder, answer";
$qresult=mysql_query($qquery) or die ("Couldn't get answer details<br />$qquery<br />".mysql_error());
Expand Down

0 comments on commit 21d7a26

Please sign in to comment.