Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Yii' into Yii
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 23, 2012
2 parents ffd139d + ad34a77 commit 619c43d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions application/helpers/qanda_helper.php
Expand Up @@ -1427,7 +1427,7 @@ function do_list_dropdown($ia)
if ($prefixStyle == 1) {
$_prefix = ++$_rowNum . ') ';
}
$answer .= "<option value='{$ansrow['code']}' {$opt_select}>{$_prefix}{$ansrow['answer']}</option>\n";
$answer .= "<option value='{$ansrow['code']}' {$opt_select}>".flattenText($_prefix.$ansrow['answer'])."</option>\n";
}
}
else
Expand All @@ -1451,7 +1451,7 @@ function do_list_dropdown($ia)

foreach ($optgroups as $categoryname => $optionlistarray)
{
$answer .= ' <optgroup class="dropdowncategory" label="'.$categoryname.'">
$answer .= ' <optgroup class="dropdowncategory" label="'.flattenText($categoryname).'">
';

foreach ($optionlistarray as $optionarray)
Expand All @@ -1465,7 +1465,7 @@ function do_list_dropdown($ia)
$opt_select = '';
}

$answer .= ' <option value="'.$optionarray['code'].'"'.$opt_select.'>'.$optionarray['answer'].'</option>
$answer .= ' <option value="'.$optionarray['code'].'"'.$opt_select.'>'.flattenText($optionarray['answer']).'</option>
';
}

Expand All @@ -1483,7 +1483,7 @@ function do_list_dropdown($ia)
$opt_select = '';
}

$answer .= ' <option value="'.$optionarray['code'].'"'.$opt_select.'>'.$optionarray['answer'].'</option>
$answer .= ' <option value="'.$optionarray['code'].'"'.$opt_select.'>'.flattenText($optionarray['answer']).'</option>
';
}
}
Expand All @@ -1506,7 +1506,7 @@ function do_list_dropdown($ia)
if ($prefixStyle == 1) {
$_prefix = ++$_rowNum . ') ';
}
$answer .= ' <option value="-oth-"'.$opt_select.'>'.$_prefix.$othertext."</option>\n";
$answer .= ' <option value="-oth-"'.$opt_select.'>'.flattenText($_prefix.$othertext)."</option>\n";
}

if (($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]] || $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]] != '') && $ia[6] != 'Y' && $ia[6] != 'Y' && SHOW_NO_ANSWER == 1)
Expand Down Expand Up @@ -2112,7 +2112,7 @@ function do_ranking($ia)
$answer .= SELECTED;
$thisvalue=$_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname];
}
$answer .=">".htmlspecialchars($ansrow['answer'], ENT_QUOTES)."</option>\n";
$answer .=">".flattenText($ansrow['answer'])."</option>\n";
}
$answer .="</select>";
// Hidden form: maybe can be replaced with ranking.js
Expand Down Expand Up @@ -5071,7 +5071,7 @@ function do_array($ia)
{
$answer .= SELECTED;
}
$answer .= '>'.$lrow['answer']."</option>\n";
$answer .= '>'.flattenText($lrow['answer'])."</option>\n";
}
// If not mandatory and showanswer, show no ans
if ($ia[6] != 'Y' && SHOW_NO_ANSWER == 1)
Expand Down Expand Up @@ -6517,7 +6517,7 @@ function do_array_dual($ia)
{
$answer .= SELECTED;
}
$answer .= '>'.$lrow['title']."</option>\n";
$answer .= '>'.flattenText($lrow['title'])."</option>\n";
}
// If not mandatory and showanswer, show no ans
if ($ia[6] != 'Y' && SHOW_NO_ANSWER == 1)
Expand Down Expand Up @@ -6571,7 +6571,7 @@ function do_array_dual($ia)
{
$answer .= SELECTED;
}
$answer .= '>'.$lrow1['title']."</option>\n";
$answer .= '>'.flattenText($lrow1['title'])."</option>\n";
}
// If not mandatory and showanswer, show no ans
if ($ia[6] != 'Y' && SHOW_NO_ANSWER == 1)
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/export/statistics_view.php
Expand Up @@ -1017,7 +1017,7 @@
//pre-select
if (isset($_POST[$myfield3]) && is_array($_POST[$myfield3]) && in_array("$ans[0]", $_POST[$myfield3])) {echo " selected";}

echo ">$ans[1]</option>\n";
echo ">".flattenText($ans[1])."</option>\n";
}

echo "\t</select>\n\t</td>\n";
Expand Down

0 comments on commit 619c43d

Please sign in to comment.