|
|
|
@ -25,8 +25,8 @@ class CheckBoxQuestion extends BoxQuestion
|
|
|
|
|
$possibleResponses = $this->getPossibleResponses();
|
|
|
|
|
$categories = $this->getCategories();
|
|
|
|
|
|
|
|
|
|
$html = "<div id='question'>
|
|
|
|
|
<label>$content</label>";
|
|
|
|
|
$html = "\t\t\t<div id='question'>
|
|
|
|
|
\t\t\t\t<label>$content</label>\n";
|
|
|
|
|
|
|
|
|
|
for($i = 0; $i < count($possibleResponses); $i++)
|
|
|
|
|
{
|
|
|
|
@ -35,10 +35,10 @@ class CheckBoxQuestion extends BoxQuestion
|
|
|
|
|
{
|
|
|
|
|
$categoriesSplit.= $category."_";
|
|
|
|
|
}
|
|
|
|
|
$html.= "<input type='checkbox' id='checkBoxQuestion' name='answers[]' value='$categoriesSplit' />
|
|
|
|
|
<label>$possibleResponses[$i]</label>";
|
|
|
|
|
$html.= "\t\t\t\t<input type='checkbox' id='checkBoxQuestion' name='answers[]' value='$categoriesSplit' />
|
|
|
|
|
\t\t\t\t<label>$possibleResponses[$i]</label>\n";
|
|
|
|
|
}
|
|
|
|
|
$html.= "</div>";
|
|
|
|
|
$html.= "\t\t\t</div>\n";
|
|
|
|
|
|
|
|
|
|
return $html;
|
|
|
|
|
}
|
|
|
|
|