session_start(); ?>
"; if ($stampata[$posizionearrayx][$posizionearrayy]==="N") { $fd=fopen($schema[$posizionearrayx][$posizionearrayy]."-desc.txt","r"); $lun=0; $lun=fread($fd,4); $desc=fread($fd,$lun); fclose($fd); echo ' | '.$prefisso[$geppo].$mossa[$posizionearrayx][$posizionearrayy]." ".$desc." | ";
$stampata[$posizionearrayx][$posizionearrayy]="S";
}
else {
echo ""; } for ($geppo=$posizionearrayx+1;$geppo<40;$geppo++) { if (isset($padre[$geppo][$indicey[$geppo]])) { if ($padre[$geppo][$indicey[$geppo]]==$schema[$geppo-1][$indicey[$geppo-1]]) { $posizionearrayx=$geppo; $posizionearrayy=$indicey[$geppo]; if ($stampata[$geppo][$indicey[$geppo]]==="N") { $fd=fopen($schema[$posizionearrayx][$posizionearrayy]."-desc.txt","r"); $lun=0; $lun=fread($fd,4); $desc=fread($fd,$lun); fclose($fd); echo ' | '.$prefisso[$geppo].$mossa[$geppo][$indicey[$geppo]]." ".$desc." | ";
$stampata[$geppo][$indicey[$geppo]]="S";
}
else {
echo ""; } } else { for($jeep=$geppo;$jeep<40;$jeep++) echo " | "; $indicey[$geppo-1]++; $posizionearrayy++; for ($jeep=$geppo-1;$jeep>0;$jeep--) { if (isset($padre[$jeep][$indicey[$jeep]])) { if ($padre[$jeep][$indicey[$jeep]]!=$schema[$jeep-1][$indicey[$jeep-1]]) { $indicey[$jeep-1]++; $posizionearrayy=$indicey[$jeep-1]; $posizionearrayx=$jeep-1; } else { $jeep=-1; } } else { $indicey[$jeep-1]++; $posizionearrayy=$indicey[$jeep-1]; $posizionearrayx=$jeep-1; } } $geppo=40; } } else { for($jeep=$geppo;$jeep<40;$jeep++) echo " | "; $geppo=40; } } echo " |