Skip to content

Commit

Permalink
Fixed #904: Column alignment in individual survey edit view
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2875 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed May 9, 2007
1 parent d958b85 commit 3fb7ab7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/demosurveys/sample_survey.csv
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#
"qid","sid","gid","type","title","question","preg","help","other","mandatory","lid","question_order","language"
"72","40","15","M","M","Type M - Multiple Options Question","","This is a type M multiple Options questions.","Y","N","0","1","en"
"68","40","14","L","L","Type L - List Radio qeustion","","","Y","N","0","3","en"
"68","40","14","L","L","Type L - List Radio question","","","Y","N","0","3","en"
"69","40","14","5","5","Type 5 - 5 point choice","","Help2","N","N","0","4","en"
"70","40","14","!","!","Type ! - List Dropdown Question","","","Y","N","0","5","en"
"71","40","15","P","P","Type P: Multiple Options Question with Comments ","","This is a Multiple Options Question with the ability to comment it.","Y","N","0","0","en"
Expand Down
12 changes: 6 additions & 6 deletions qanda.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ function do_list_radio($ia)
{
$answer .= "\n\t\t\t\t\t<table class='question'>\n"
. "\t\t\t\t\t\t<tr>\n"
. "\t\t\t\t\t\t\t<td>\n";
. "\t\t\t\t\t\t\t<td align='left'>\n";
}
$rowcounter=0;
while ($ansrow = $ansresult->FetchRow())
Expand Down Expand Up @@ -907,7 +907,7 @@ function do_list_flexible_radio($ia)
{
$answer .= "\n\t\t\t\t\t<table class='question'>\n"
. "\t\t\t\t\t\t<tr>\n"
. "\t\t\t\t\t\t\t<td>\n";
. "\t\t\t\t\t\t\t<td align='left'>\n";
}
$rowcounter=0;
while ($ansrow = $ansresult->FetchRow())
Expand Down Expand Up @@ -991,7 +991,7 @@ function do_listwithcomment($ia)
. "\t\t\t\t\t<td><u><label for='$ia[1]comment'>".$clang->gT("Please enter your comment here").":</label></u></td>\n"
. "\t\t\t\t</tr>\n"
. "\t\t\t\t<tr>\n"
. "\t\t\t\t\t<td valign='top'>\n";
. "\t\t\t\t\t<td valign='top' align='left'>\n";

while ($ansrow=$ansresult->FetchRow())
{
Expand Down Expand Up @@ -1582,7 +1582,7 @@ function do_multipleshorttext($ia)
. "\t\t\t\t\t\t\t\t<td align='right' class='answertext'>\n"
. "\t\t\t\t\t\t\t\t\t<label for='answer$myfname'>{$ansrow['answer']}</label>\n"
. "\t\t\t\t\t\t\t\t</td>\n"
. "\t\t\t\t\t\t\t\t<td>\n"
. "\t\t\t\t\t\t\t\t<td align='left'>\n"
. "\t\t\t\t\t\t\t\t\t<input class='text' type='text' size='40' name='$myfname' id='answer$myfname' value='";
if (isset($_SESSION[$myfname])) {$answer .= $_SESSION[$myfname];}

Expand Down Expand Up @@ -1789,7 +1789,7 @@ function do_yesno($ia)
global $shownoanswer, $clang;
$answer = "\t\t\t<table class='question'>\n"
. "\t\t\t\t<tr>\n"
. "\t\t\t\t\t<td>\n"
. "\t\t\t\t\t<td align='left'>\n"
. "\t\t\t\t\t\t<input class='radio' type='radio' name='$ia[1]' id='answer$ia[1]Y' value='Y'";
if ($_SESSION[$ia[1]] == "Y") {$answer .= " checked";}
// --> START NEW FEATURE - SAVE
Expand Down Expand Up @@ -1824,7 +1824,7 @@ function do_gender($ia)
global $shownoanswer, $clang;
$answer = "\t\t\t<table class='question'>\n"
. "\t\t\t\t<tr>\n"
. "\t\t\t\t\t<td>\n"
. "\t\t\t\t\t<td align='left'>\n"
. "\t\t\t\t\t\t<input class='radio' type='radio' name='$ia[1]' id='answer$ia[1]F' value='F'";
if ($_SESSION[$ia[1]] == "F") {$answer .= " checked";}
// --> START NEW FEATURE - SAVE
Expand Down

0 comments on commit 3fb7ab7

Please sign in to comment.