summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorpolo-pc-greta <ordipolo@gmx.fr>2025-05-08 12:32:34 +0200
committerpolo-pc-greta <ordipolo@gmx.fr>2025-05-08 12:32:34 +0200
commit28698982ff6dc67a331788c2637bce8689121769 (patch)
tree6df30593fdcdd2ead77dd894467e5031a31cfde9 /public
parent2d8ec75f4aaf3b93fd9f6758f8dcb4f1f9f03d0c (diff)
downloadcms-28698982ff6dc67a331788c2637bce8689121769.zip
modif page, création d'un bloc
Diffstat (limited to 'public')
-rw-r--r--public/css/main.css52
-rw-r--r--public/css/menu.css6
-rw-r--r--public/index.php6
3 files changed, 58 insertions, 6 deletions
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
57} 57}
58article img 58article img
59{ 59{
60 max-width: 100%; 60 width: 100%;
61 height: auto; 61 height: auto;
62} 62}
63 63
@@ -131,4 +131,54 @@ main button:hover
131article a:hover 131article a:hover
132{ 132{
133 cursor: pointer; 133 cursor: pointer;
134}
135
136
137
138/* -- mode modification d'une page -- */
139/*.modif_page_explanations
140{
141 background-color: white;
142 padding: 10px;
143 margin: 10px 20px;
144}
145.modif_page_explanations div
146{
147 display: flex;
148 flex-wrap: wrap;
149 font-size: smaller;
150}*/
151.new_bloc
152{
153 background-color: white;
154 padding: 10px;
155 margin: 10px 20px;
156
157}
158.new_bloc p
159{
160 margin: 5px;
161}
162.new_bloc #bloc_title
163{
164 width: 100%;
165 max-width: 300px;
166}
167.new_bloc form select, .new_bloc form input[type=submit]
168{
169 color: #ff1d04;
170 font-size: medium;
171 border-radius: 4px;
172 background-color: white;
173 border: lightgrey 2px outset;
174}
175select:hover
176{
177 cursor: pointer;
178}
179.new_bloc form input[type=submit]:hover
180{
181 background-color: #ffff00;
182 border-radius: 4px;
183 cursor: pointer;
134} \ No newline at end of file 184} \ 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 @@
37{ 37{
38 display: flex; 38 display: flex;
39 flex-wrap: wrap; 39 flex-wrap: wrap;
40}
41.menu aside .controls_explanations p
42{
43 font-size: smaller; 40 font-size: smaller;
44} 41}
45.menu aside img 42.menu aside img, .menu aside input
46{ 43{
47 vertical-align: bottom; 44 vertical-align: bottom;
48} 45}
49.menu aside input 46.menu aside input
50{ 47{
51 pointer-events: none; /* case non clicable, sauf action au clavier... */ 48 pointer-events: none; /* case non clicable, sauf action au clavier... */
52 vertical-align: bottom;
53} 49}
54.menu #location, .menu input[type=submit] 50.menu #location, .menu input[type=submit]
55{ 51{
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')
60{ 60{
61 changePassword($entityManager); 61 changePassword($entityManager);
62} 62}
63elseif($_SESSION['admin'] && isset($_GET['page']) && isset($_GET['action']) && $_GET['action'] === 'modif_page'
64 && $_GET['page'] !== 'connexion' && $_GET['page'] !== 'article' && $_GET['page'] !== 'menu_chemins')
65{
66 // les contrôles de la 2è ligne devraient utiliser un tableau
67 MainBuilder::$modif_mode = true;
68}
63 69
64// -- contrôleurs -- 70// -- contrôleurs --
65$director = new Director($entityManager, true); 71$director = new Director($entityManager, true);