function allespagina() { include "mysqlsecrets.php"; $sql = "select stamnr from Hleerlingen order by locatie, klas, achternaam"; ($result = mysql_query($sql)) || die("Fout in query: {$sql}"); $html = "<FORM><INPUT TYPE=submit NAME=doeterniettoe VALUE=\"Terug naar leerlingenoverzicht\"></FORM><BR> \n"; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $nr = $row[0]; $html .= leerlingscherm($nr); $html .= "<HR>"; } return $html; }
<?php include "includes/functions.php"; include "includes/appadmin_auth.php"; if (login_beheer($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { if ($nr = $_GET['nr']) { $html = leerlingscherm($nr); } else { if ($_GET['overzicht']) { $html = allespagina(); } else { if ($_GET['docoverzicht']) { $html = docallespagina(); } else { $html = beheerscherm(); } } } } else { authenticate(); } ?> <HTML> <HEAD> <TITLE>Examenboek Het Hogeland College - beheer</TITLE> </HEAD> <BODY> <FONT FACE="verdana,arial" SIZE=-1>