diff --git a/www/admin/aktiviteter/delete.php b/www/admin/aktiviteter/delete.php index ba517c2..2f8ab95 100644 --- a/www/admin/aktiviteter/delete.php +++ b/www/admin/aktiviteter/delete.php @@ -9,5 +9,7 @@ $query = 'DELETE FROM events WHERE id=\'' . $eventID . '\''; $statement = $pdo->prepare($query); $statement->execute(); -header('Location: ' . $_SERVER['HTTP_REFERER']); -?> \ No newline at end of file + +?> + +Om du ikke ble automatisk omdirigert tilbake klikk her \ No newline at end of file diff --git a/www/admin/aktiviteter/index.php b/www/admin/aktiviteter/index.php index b401d06..13fa155 100644 --- a/www/admin/aktiviteter/index.php +++ b/www/admin/aktiviteter/index.php @@ -8,8 +8,11 @@ require __DIR__ . '/../../../sql_config.php'; $pdo = new \PDO($dbDsn, $dbUser, $dbPass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $customActivity = new \pvv\side\DBActivity($pdo); + +$page = $_GET['page']; ?> + @@ -32,13 +35,23 @@ $customActivity = new \pvv\side\DBActivity($pdo);
Gjentagende aktiviteter vises ikke
= $event->getStart()->format("(Y-m-d H:i:s)") . " - " . $event->getStop()->format("(Y-m-d H:i:s)"); ?>
= implode($event->getDescription(), "
\n"); ?>