From 28698982ff6dc67a331788c2637bce8689121769 Mon Sep 17 00:00:00 2001 From: polo-pc-greta Date: Thu, 8 May 2025 12:32:34 +0200 Subject: =?UTF-8?q?modif=20page,=20cr=C3=A9ation=20d'un=20bloc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/main.css | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- public/css/menu.css | 6 +----- public/index.php | 6 ++++++ 3 files changed, 58 insertions(+), 6 deletions(-) (limited to 'public') diff --git a/public/css/main.css b/public/css/main.css index c5289f0..93a7bcf 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -57,7 +57,7 @@ article .logo2 } article img { - max-width: 100%; + width: 100%; height: auto; } @@ -131,4 +131,54 @@ main button:hover article a:hover { cursor: pointer; +} + + + +/* -- mode modification d'une page -- */ +/*.modif_page_explanations +{ + background-color: white; + padding: 10px; + margin: 10px 20px; +} +.modif_page_explanations div +{ + display: flex; + flex-wrap: wrap; + font-size: smaller; +}*/ +.new_bloc +{ + background-color: white; + padding: 10px; + margin: 10px 20px; + +} +.new_bloc p +{ + margin: 5px; +} +.new_bloc #bloc_title +{ + width: 100%; + max-width: 300px; +} +.new_bloc form select, .new_bloc form input[type=submit] +{ + color: #ff1d04; + font-size: medium; + border-radius: 4px; + background-color: white; + border: lightgrey 2px outset; +} +select:hover +{ + cursor: pointer; +} +.new_bloc form input[type=submit]:hover +{ + background-color: #ffff00; + border-radius: 4px; + cursor: pointer; } \ No newline at end of file diff --git a/public/css/menu.css b/public/css/menu.css index 3294c2b..61e8a01 100644 --- a/public/css/menu.css +++ b/public/css/menu.css @@ -37,19 +37,15 @@ { display: flex; flex-wrap: wrap; -} -.menu aside .controls_explanations p -{ font-size: smaller; } -.menu aside img +.menu aside img, .menu aside input { vertical-align: bottom; } .menu aside input { pointer-events: none; /* case non clicable, sauf action au clavier... */ - vertical-align: bottom; } .menu #location, .menu input[type=submit] { diff --git a/public/index.php b/public/index.php index abdac71..9f930fd 100644 --- a/public/index.php +++ b/public/index.php @@ -60,6 +60,12 @@ elseif(isset($_GET['action']) && $_GET['action'] === 'modif_mdp') { changePassword($entityManager); } +elseif($_SESSION['admin'] && isset($_GET['page']) && isset($_GET['action']) && $_GET['action'] === 'modif_page' + && $_GET['page'] !== 'connexion' && $_GET['page'] !== 'article' && $_GET['page'] !== 'menu_chemins') +{ + // les contrôles de la 2è ligne devraient utiliser un tableau + MainBuilder::$modif_mode = true; +} // -- contrôleurs -- $director = new Director($entityManager, true); -- cgit v1.2.3