Esempio n. 1
0
		</div>
	</div>
	<?php 
$form = ActiveForm::begin();
?>
	<div class="anket-content">
		<?php 
$i = 0;
$pos = $anket->getPos($questions, $status);
$abort = false;
while (!$abort && $pos < count($questions)) {
    if ($anket->checkCondition($questions[$pos]['condition'])) {
        switch ($questions[$pos]['cmd']) {
            case 'header':
                //
                echo "<h3>" . \app\models\Bank::applyAlias($bank, $questions[$pos]['text']) . "</h3>";
                $pos++;
                break;
            case 'pagebreak':
                $abort = true;
                $pos++;
                break;
            case 'question':
                $multi = false;
                $m = array();
                while (count($a = @explode(";", $questions[$pos]['antworten'])) <= 6 && count($a = @explode(";", $questions[$pos]['antworten'])) > 1 && (isset($questions[$pos]['antworten']) && isset($questions[$pos + 1]['antworten'])) && $questions[$pos]['antworten'] == $questions[$pos + 1]['antworten'] && $questions[$pos + 1]['cmd'] == "question") {
                    $multi = true;
                    if ($anket->checkCondition($questions[$pos]['condition'])) {
                        $m[] = $questions[$pos];
                    }
                    $pos++;