diff --git a/html/editpage.php b/html/editpage.php index 1f109fd6..9634e45d 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -119,7 +119,7 @@ if(isset($fichier)) { echo "
"; echo "

Articles

"; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID, titre, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10"); + $req = $bdd->prepare("SELECT ID, titre, date FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -131,8 +131,7 @@ if(isset($fichier)) { echo "

"; echo ""; echo "
" . $row['titre'] . "
"; - echo ""; - echo "
" . $classifications[(int)$row['classification']] . "
"; + echo "
"; } } echo "
"; diff --git a/html/src/css/style.css b/html/src/css/style.css index 386a38b1..818e2ec6 100644 --- a/html/src/css/style.css +++ b/html/src/css/style.css @@ -109,7 +109,8 @@ a { } .article-titre { - + font: 1.5em crfont, Arial; + padding: 0.3em 0; } .article-auteur { @@ -121,7 +122,7 @@ a { } .article-date { - + font-size: 0.8em; } .article {