</script>
</head>
<body>
<h2>Ampel &Uuml;bersicht</h2>
<div style="text-align:right">
	<a href="ampel_details.php?action=new" target="detail_ampel">Neu</a>
</div>';
if (isset($_GET['action']) && $_GET['action'] == 'delete') {
    if (!$rechte->isBerechtigt('basis/ampel', null, 'suid')) {
        die('Sie haben keine Berechtigung fuer diese Seite');
    }
    if (!isset($_GET['ampel_id'])) {
        die('Fehlender Parameter Statistik');
    }
    $ampel = new ampel();
    if ($ampel->delete($_GET['ampel_id'])) {
        echo '<span class="ok">Eintrag wurde erfolgreich gelöscht</span>';
    } else {
        echo '<span class="error">' . $ampel->errormsg . '</span>';
    }
}
$ampel = new ampel();
if (!$ampel->getAll()) {
    die($ampel->errormsg);
}
echo '<table class="tablesorter" id="myTable">
	<thead>
		<tr>
			<th>ID</th>
			<th>Kurzbz</th>
			<th>Deadline</th>