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