fs
By: sd | Date: Oct 29 2008 19:02 | Format: PHP | Expires: never | Size: 1.63 KB | Hits: 1038
- <?php
- if($_GET['p'] == 'ziekmelden') {
- switch($_GET['a']) { case 'zoeken':
- echo "Hier kun je je ziek melden.<br><br>
- <form action='?p=ziekmelden&a=zoeken' method='post'>Personeel nummer: <input type='text' name='pid' id='pid' size='40'>
- <input type='submit' name='submit' value='Meld me ziek!'>
- </form>";
- $sql = "SELECT pid,name FROM care_personell WHERE pid = '$pid'";
- echo "<b>Personeel nummer: - Naam:</b>";
- echo "$pid - $name <a href=?p=ziekenhuis&a=toevoegen&id=$pid><img src='images/plus.gif></a>'"; }
- }
- break;
- case 'toevoegen':
- $pid = $_GET['pid'];
- $insert = "INSERT INTO ziekmelden (pid, name, ziek, opmerking)
- values ('". $_POST["pid"] ."', '". $_POST["name"] ."', '". $_POST["ziek"] ."', '". $_POST["opmerking"] .")";
- echo "<font face=verdana size=2 color=green>U ben met succes ziek gemeld. Beterschap!</font>";
- }
- else {
- echo "<form action='?p=ziekmelden&a=toevoegen' method='post'>";
- echo "<b>Personeel nummer</b>: <input type='text' name='pid' size='49' value='$pid' READONLY/><br>";
- echo "<b>Naam: <input type='text' name='name' size='49' value='$name' READONLY/><br>";
- echo "<b>Ziek: <input type='text' name='ziek' size='49' value=''/><br>";
- echo "<b>Opmerking</b>: <input type='text' name='opmerking' size='49' value=''/><br><br>";
- echo "<center><input type='submit' name='submit' value='Meld me ziek!'></center></form>";
- }
- break;
- }
- }
- ?>
Latest pastes
6 hours ago
2 days ago
3 days ago
6 days ago
7 days ago