if (isset($_GET["action"]) && $_GET["action"] == "verwijder") { $modLijst->deleteModule($_GET["id"]); } ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>Modules</title> </head> <body> <h1>Modules</h1> <?php $tab = $modLijst->getLijst(); ?> <ul> <?php foreach ($tab as $module) { $moduleNaam = $module->getNaam(); $moduleId = $module->getId(); print "<li>" . $moduleNaam . " (<a \n\t\t\t\t\thref=\"dbGegevensVerwijderen.php? \n\t\t\t\t\taction=verwijder&id=" . $moduleId . "\">Verwijderen</a>) </li>"; } ?> </ul> </body> </html>
<?php require_once "module.class.php"; require_once "moduleLijst.class.php"; $ml = new ModuleLijst(); if (isset($_GET["action"]) && $_GET["action"] == "verwijder") { $ml->deleteModule($_GET["id"]); } ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>Modules</title> </head> <body> <?php $tab = $ml->getLijst(); ?> <ul> <?php foreach ($tab as $module) { $moduleNaam = $module->getNaam(); $moduleId = $module->getId(); print "<li>" . $moduleNaam . " (<a href=\"oef91.php?action=verwijder&id=" . $moduleId . "\">Verwijderen</a>) \n\t\t\t\t\t(<a href=\"modulebewerking.php?id=" . $moduleId . "\">Bewerken</a>)</li>"; } ?> </ul> </body> </html>
<?php include_once 'moduleLijst.php'; ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>gegevensOphalen</title> </head> <body> <h1>Resultaat</h1> <?php $pl = new ModuleLijst(); $tab = $pl->getLijst(); ?> <ul> <?php foreach ($tab as $module) { print "<li>" . $module . "</li>"; } ?> </ul> </body> </html>
To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>resultaat Form modules opzoeken</title> </head> <body> <h1>Zoekresultaat</h1> <?php $min = $_POST["minimum"]; $max = $_POST["maximum"]; //echo $min, " ", $max; $pl = new ModuleLijst(); $tab = $pl->getLijst($min, $max); //$bat = $pl->getLijst($max); //$tab = $pl->getLijst('Peeters','V'); ?> <ul> <?php foreach ($tab as $naam) { print "<li>" . $naam . "</li>"; } //foreach ($bat as $maan) { // print("<li>" . $maan . "</li>"); //} ?> </ul> </body> </html>