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

+ + Forrige side'; + } + + if(($counter == $pageLimit) and (($pageLimit * $page) < count($events))){ + echo 'Neste side'; + } + ?>
diff --git a/www/admin/index.php b/www/admin/index.php index 6da25f1..ce649c5 100644 --- a/www/admin/index.php +++ b/www/admin/index.php @@ -1,3 +1,4 @@ + @@ -16,8 +17,9 @@

Verktรธy

- Aktiviteter/Hendelser + Aktiviteter/Hendelser Prosjekter
+ \ No newline at end of file diff --git a/www/css/admin.css b/www/css/admin.css index 8ab16a8..ffe4a35 100644 --- a/www/css/admin.css +++ b/www/css/admin.css @@ -74,4 +74,12 @@ header.admin { color: gray; font-size: .7em; font-style: italic; +} + +.float-right { + float: right; +} + +.float-left { + float: left; } \ No newline at end of file