Super, vielen Dank! Also die Fehlermeldung ist "Dieses Interview versuchte, auf Seite Nr. 21 (Kennung filter) zu springen, die bei der Ausgabe der aktuellen Darstellung bereits verarbeitet wurde."
Der relevante Code müsste folgender sein:
<!-- Seite 18 -->
<page ident="enc" intID="7">
<info>Instruktion 2. Teil (Enkodierung)</info>
<text id="Instruktion neu 11" intID="52">
<spacing>default</spacing>
</text>
<question id="IN40" intID="53" />
<php intID="50"><![CDATA[
if ($gruppe == 1 OR $gruppe == 2) {
replace('%AQ1%', value('WS07x01', 'label'));
replace('%AQ2%', value('WS07x02', 'label'));
replace('%AQ3%', value('WS07x03', 'label'));
replace('%AQ4%', value('WS07x04', 'label'));
replace('%AQ5%', value('WS07x05', 'label'));
replace('%AQ6%', value('WS07x06', 'label'));
replace('%AQ7%', value('WS05x01', 'label'));
replace('%AQ8%', value('WS05x02', 'label'));
replace('%AQ9%', value('WS05x03', 'label'));
replace('%AQ10%',value('WS05x04', 'label'));
replace('%AQ11%',value('WS05x05', 'label'));
replace('%AQ12%',value('WS05x06', 'label'));
} elseif ($gruppe == 3 OR $gruppe == 4) {
replace('%AQ1%', value('WS07x01', 'label'));
replace('%AQ2%', value('WS07x02', 'label'));
replace('%AQ3%', value('WS07x03', 'label'));
replace('%AQ4%', value('WS07x04', 'label'));
replace('%AQ5%', value('WS07x05', 'label'));
replace('%AQ6%', value('WS07x06', 'label'));
replace('%AQ7%', value('WS09x01', 'label'));
replace('%AQ8%', value('WS09x02', 'label'));
replace('%AQ9%', value('WS09x03', 'label'));
replace('%AQ10%',value('WS09x04', 'label'));
replace('%AQ11%',value('WS09x05', 'label'));
replace('%AQ12%',value('WS09x06', 'label'));
};
$o = array(1);
registerVariable('o');
]]></php>
</page>
<!-- Seite 19 -->
<page ident="WEcatch" intID="39">
<php intID="40"><![CDATA[
//leave empty
if ($o[0] == 97) {goToPage('WEout');};
]]></php>
</page>
<!-- Seite 20 -->
<page ident="AQpre" intID="41">
<php intID="44"><![CDATA[
$pseudo_random = array(73,49,43, 3,31,50,27, 1,74,21,17,51,39,40,35,47,52,53,48,13,75,11,76,54, 4,44,15,77,36,78,79,80,81,23,82,55,22,25,83,33,56,57,58,37,16,59, 9,60,61,84,45,85,34,86,87,88,62,63,64,65,66,41,29, 5,89,38, 7,67,19,68,69,14,24,28,10, 8,90,12,70,42,91,46,92,20,93,94, 2,18,32,71, 6,95,96,26,72,30);
for ($i = 0; $i <= 95; $i++) {
if ($o[0] == $i+1) {question('WE07',$pseudo_random[$i]);};
}
]]></php>
</page>
<!-- Seite 21 -->
<page ident="filter" intID="42">
<php intID="45"><![CDATA[
array($o[0]);
$item_name = array("WE07_73", "WE07_49", "WE07_43", "WE07_03", "WE07_31", "WE07_50", "WE07_27", "WE07_01", "WE07_74", "WE07_21", "WE07_17", "WE07_51", "WE07_39", "WE07_40", "WE07_35", "WE07_47", "WE07_52", "WE07_53", "WE07_48", "WE07_13", "WE07_75", "WE07_11", "WE07_76", "WE07_54", "WE07_04", "WE07_44", "WE07_15", "WE07_77", "WE07_36", "WE07_78", "WE07_79", "WE07_80", "WE07_81", "WE07_23", "WE07_82", "WE07_55", "WE07_22", "WE07_25", "WE07_83", "WE07_33", "WE07_56", "WE07_57", "WE07_58", "WE07_37", "WE07_16", "WE07_59", "WE07_09", "WE07_60", "WE07_61", "WE07_84", "WE07_45", "WE07_85", "WE07_34", "WE07_86", "WE07_87", "WE07_88", "WE07_62", "WE07_63", "WE07_64", "WE07_65", "WE07_66", "WE07_41", "WE07_29", "WE07_05", "WE07_89", "WE07_38", "WE07_07", "WE07_67", "WE07_19", "WE07_68", "WE07_69", "WE07_14", "WE07_24", "WE07_28", "WE07_10", "WE07_08", "WE07_90", "WE07_12", "WE07_70", "WE07_42", "WE07_91", "WE07_46", "WE07_92", "WE07_20", "WE07_93", "WE07_94", "WE07_02", "WE07_18", "WE07_32", "WE07_71", "WE07_06", "WE07_95", "WE07_96", "WE07_26", "WE07_72", "WE07_30" );
for ($i = 0; $i <= 95; $i++) {
if ($o[0] == $i + 1) {if (value($item_name[$i]) == 1) {goToPage('AQcontr');} elseif (value($item_name[$i]) == 2) {$o = array($i+2);registerVariable('o');goToPage('AQpre');} elseif (value($item_name[$i]) == -9) {$o = array($i+1);registerVariable('o');goToPage('AQpre');};};
}
]]></php>
</page>
<!-- Seite 22 -->
<page ident="AQcontr" intID="43">
<php intID="103"><![CDATA[
array($o[0]);
debug($o[0]);
$pseudo_rand = array(73,49,43, 3,31,50,27, 1,74,21,17,51,39,40,35,47,52,53,48,13,75,11,76,54, 4,44,15,77,36,78,79,80,81,23,82,55,22,25,83,33,56,57,58,37,16,59, 9,60,61,84,45,85,34,86,87,88,62,63,64,65,66,41,29, 5,89,38, 7,67,19,68,69,14,24,28,10, 8,90,12,70,42,91,46,92,20,93,94, 2,18,32,71, 6,95,96,26,72,30);
for ($i = 0; $i <= 95; $i++) {
if ($o[0] == $i+1) {question('WE08',$pseudo_rand[$i]);$o = array($i+2);registerVariable('o');goToPage('WEcatch');};
}
]]></php>
<php intID="46"><![CDATA[
//array($o[0]);
//debug($o[0]);
//
//$question_name = array("WE08_73", "WE08_49", "WE08_43", "WE08_03", "WE08_31", "WE08_50", "WE08_27", "WE08_01", "WE08_74", "WE08_21", "WE08_17", "WE08_51", "WE08_39", "WE08_40", "WE08_35", "WE08_47", "WE08_52", "WE08_53", "WE08_48", "WE08_13", "WE08_75", "WE08_11", "WE08_76", "WE08_54", "WE08_04", "WE08_44", "WE08_15", "WE08_77", "WE08_36", "WE08_78", "WE08_79", "WE08_80", "WE08_81", "WE08_23", "WE08_82", "WE08_55", "WE08_22", "WE08_25", "WE08_83", "WE08_33", "WE08_56", "WE08_57", "WE08_58", "WE08_37", "WE08_16", "WE08_59", "WE08_09", "WE08_60", "WE08_61", "WE08_84", "WE08_45", "WE08_85", "WE08_34", "WE08_86", "WE08_87", "WE08_88", "WE08_62", "WE08_63", "WE08_64", "WE08_65", "WE08_66", "WE08_41", "WE08_29", "WE08_05", "WE08_89", "WE08_38", "WE08_07", "WE08_67", "WE08_19", "WE08_68", "WE08_69", "WE08_14", "WE08_24", "WE08_28", "WE08_10", "WE08_08", "WE08_90", "WE08_12", "WE08_70", "WE08_42", "WE08_91", "WE08_46", "WE08_92", "WE08_20", "WE08_93", "WE08_94", "WE08_02", "WE08_18", "WE08_32", "WE08_71", "WE08_06", "WE08_95", "WE08_96", "WE08_26", "WE08_72", "WE08_30");
//
//for ($i = 0; $i <= 95; $i++) {
//if ($o[0] == $i+1) {question($question_name[$i]);$o = array($i+2);registerVariable('o');goToPage('WEcatch');};
//}
]]></php>
</page>
<!-- Seite 23 -->
<page ident="WEout" intID="48">
<php intID="49">
//leave empty
</php>
</page>