\n";
echo templatereplace(file_get_contents("$thistpl/startgroup.pstpl"));
echo "\n";
if ($groupdescription)
{
echo templatereplace(file_get_contents("$thistpl/groupdescription.pstpl"));
}
echo "\n";
// count the number of non-conditionnal and conditionnal questions in this group
$count_nocond_questions=0;
$count_cond_questions=0;
echo "\n\n\n";
if (is_array($qanda))
{
foreach ($qanda as $qa)
{
if ($gl[0] == $qa[6])
{
$q_class = question_class($qa[8]); // render question class (see common.php)
if ($qa[9] == 'Y')
{
$man_class = ' mandatory';
}
else
{
$man_class = '';
}
if ($qa[3] != 'Y')
{
$n_q_display = '';
$count_nocond_questions++;
}
else
{
$n_q_display = ' style="display: none;"';
$count_cond_questions++;
}
echo '
';
$question= $qa[0];
$answer=$qa[1];
$help=$qa[2];
$questioncode=$qa[5];
echo templatereplace(file_get_contents("$thistpl/question.pstpl"));
echo "\t\t\t\t
\n";
}
}
}
echo "\n\n\n";
if ($hide_groupdescr_allinone == true && $count_nocond_questions==0)
{
$show_hide_group_script = "\n\n"
."\n"
."\n";
}
else
{
// The groupdescr will not be hidden
// * either because the option to hide it when all conditional
// questions are hidden is not set
// * or if at least one question of the group is not conditionnal
$show_hide_group_script = "\n\n"
."\n"
."\n";
}
echo $show_hide_group_script;
echo templatereplace(file_get_contents("$thistpl/endgroup.pstpl"));
echo "\n\n
\n";
echo "\n";
}
//echo " \n";
$navigator = surveymover();
echo "\n\n\n";
echo templatereplace(file_get_contents("$thistpl/navigator.pstpl"));
echo "\n";
if ($thissurvey['active'] != "Y") {echo "\t\t