//$questions = read_questions("questions.xml"); //$questions = read_questions("zas_rad.xml"); $questions = read_questions("koresp_tele.xml"); $noOfQ = sizeof ($questions); $rq = random_array($noOfQ); $show_answers = 0; if (isset($_GET['odp'])) $show_answers = $_GET['odp']; if (isset($_GET['nq'])) $nq = $_GET['nq']; else $nq = 10; include "header.html"; $qst = $nq; if ($nq<=0) $qst = $noOfQ; for ($i=0; $i<$qst; $i++) { $q = $rq[$i]+1; echo "
".$questions[$q]['q']." [".$q."]
"; echo ''; echo ''; echo ' | '; if ($show_answers && $ra[$ia]==0) echo ""; echo $questions[$q][$ra[$ia]]; if ($show_answers && $ra[$ia]==0) echo ""; echo ' |