Skip to content

Commit

Permalink
Some improvements in formatting for the Dropdown List with comment ty…
Browse files Browse the repository at this point in the history
…pe question (centered, minimum and maximum widths for textarea)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@327 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 5, 2003
1 parent d53efa2 commit 007f2eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qanda.php
Expand Up @@ -206,11 +206,11 @@
$inputnames[]=$ia[1];
$inputnames[]=$ia[1]."comment";
}
else
else //Dropdown list
{
$answer .= "\t\t\t<table align='center'>\n";
$answer .= "\t\t\t\t<tr>\n";
$answer .= "\t\t\t\t\t<td valign='top'>\n";
$answer .= "\t\t\t\t\t<td valign='top' align='center'>\n";
$answer .= "\t\t\t\t\t<select class='select' name='$ia[1]' onClick='checkconditions(this.value, this.name, this.type)'>\n";
while ($ansrow=mysql_fetch_array($ansresult))
{
Expand Down Expand Up @@ -242,6 +242,8 @@
$fname2 = $ia[1]."comment";
if ($anscount > 8) {$tarows = $anscount/1.2;} else {$tarows = 4;}
$maxoptionsize=$maxoptionsize*0.72;
if ($maxoptionsize < 33) {$maxoptionsize=33;}
if ($maxoptionsize > 80) {$maxoptionsize=80;}
$answer .= "\t\t\t\t\t<td valign='top'>\n";
$answer .= "\t\t\t\t\t\t<textarea class='textarea' name='$ia[1]comment' rows='$tarows' cols='$maxoptionsize'>";
if ($_SESSION[$fname2])
Expand Down

0 comments on commit 007f2eb

Please sign in to comment.