From 8784f0956b5c1d4465498ebb4c67ce9ed300299c Mon Sep 17 00:00:00 2001 From: nicosomb Date: Tue, 9 Apr 2013 11:49:22 +0200 Subject: [PATCH] background sur le menu pour savoir sur quelle page on se trouve --- css/style.css | 8 ++++++++ index.php | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index 0e31865..812ccca 100644 --- a/css/style.css +++ b/css/style.css @@ -49,6 +49,14 @@ header { #main ul#links li { display: inline; } + +#main ul#links li a.current { + -webkit-border-radius: 2px; + border-radius: 2px; + background-color: #040707; + color: #F1F1F1; +} + #links a, .backhome a{ text-decoration: none; padding: 5px 10px; diff --git a/index.php b/index.php index 399dec7..1e40289 100755 --- a/index.php +++ b/index.php @@ -101,6 +101,7 @@ switch ($view) default: $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; $params = array(0); + $view = 'index'; break; } @@ -141,9 +142,9 @@ catch (Exception $e)