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>
			<th>Publish</th>
			<th>ContentID</th>
			<th colspan="2">Aktion</th>
		</tr>
	</thead>
	<tbody>';
foreach ($statistik->result as $row) {