Skip to content

Commit

Permalink
Add "other" option on "P" question types to the presentation of the d…
Browse files Browse the repository at this point in the history
…ata entry screen.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@89 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
James Richards committed Mar 20, 2003
1 parent 2760040 commit d69d48e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions admin/dataentry.php
Expand Up @@ -590,7 +590,7 @@
}
break;
case "P": //MULTIPLE OPTIONS (with comments)
echo "<table>\n";
echo "<table border='0'>\n";
$meaquery = "SELECT * FROM answers WHERE qid={$deqrow['qid']} ORDER BY code";
$mearesult = mysql_query($meaquery);
while ($mearow = mysql_fetch_array($mearesult))
Expand All @@ -603,9 +603,18 @@
echo "\t\t</td>\n";
//This is the commments field:
echo "\t\t<td>\n";
echo " \t\t\t<input type='text' name='$fieldname{$mearow['code']}comment' size='50' />\n";
echo "\t\t\t<input type='text' name='$fieldname{$mearow['code']}comment' size='50' />\n";
echo "\t\t</td>\n";
echo "\t</td>\n";
echo "\t</tr>\n";
}
if ($deqrow['other'] == "Y")
{
echo "\t<tr>\n";
echo "\t\t<td style='padding-left: 22px'>$setfont"."Other:</td>\n";
echo "\t\t<td>\n";
echo "\t\t\t<input type='text' name='$fieldname"."other' size='50'/>\n";
echo "\t\t</td>\n";
echo "\t</tr>\n";
}
echo "</table>\n";
break;
Expand Down

0 comments on commit d69d48e

Please sign in to comment.