diff options
| author | polo-pc-greta <ordipolo@gmx.fr> | 2025-04-09 13:32:47 +0200 |
|---|---|---|
| committer | polo-pc-greta <ordipolo@gmx.fr> | 2025-04-09 13:32:47 +0200 |
| commit | 73d49e47fe1f74a65c3f39a293b0f9fab5bfdbd0 (patch) | |
| tree | aa602f8e4296f00c8d3723b8546baca5f70cfafb /public | |
| parent | 1937a2f49ebe920b79604cb5df3649f9f1dff738 (diff) | |
| download | cms-73d49e47fe1f74a65c3f39a293b0f9fab5bfdbd0.tar.gz cms-73d49e47fe1f74a65c3f39a293b0f9fab5bfdbd0.tar.bz2 cms-73d49e47fe1f74a65c3f39a293b0f9fab5bfdbd0.zip | |
simplification de l'après création d'une news, MAJ Config et fichier deploiement.txt
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/main.css | 3 | ||||
| -rw-r--r-- | public/images/meeting_aquabaie.png | bin | 0 -> 456439 bytes | |||
| -rw-r--r-- | public/index.php | 7 | ||||
| -rw-r--r-- | public/js/tinymce.js | 23 |
4 files changed, 8 insertions, 25 deletions
diff --git a/public/css/main.css b/public/css/main.css index cb44e16..b297a65 100644 --- a/public/css/main.css +++ b/public/css/main.css | |||
| @@ -76,6 +76,7 @@ button .action_icon | |||
| 76 | background-color: #ffff00; | 76 | background-color: #ffff00; |
| 77 | border-radius: 4px; | 77 | border-radius: 4px; |
| 78 | border: lightgrey 2px outset; | 78 | border: lightgrey 2px outset; |
| 79 | cursor: pointer; | ||
| 79 | } | 80 | } |
| 80 | button .action_icon:hover | 81 | button .action_icon:hover |
| 81 | { | 82 | { |
| @@ -122,9 +123,9 @@ main button | |||
| 122 | } | 123 | } |
| 123 | main button:hover | 124 | main button:hover |
| 124 | { | 125 | { |
| 125 | cursor: pointer; /* curseur qui pointe du doigt */ | ||
| 126 | background-color: #ffff00; | 126 | background-color: #ffff00; |
| 127 | border-radius: 4px; | 127 | border-radius: 4px; |
| 128 | cursor: pointer; | ||
| 128 | } | 129 | } |
| 129 | 130 | ||
| 130 | article a:hover | 131 | article a:hover |
diff --git a/public/images/meeting_aquabaie.png b/public/images/meeting_aquabaie.png new file mode 100644 index 0000000..58bc1f7 --- /dev/null +++ b/public/images/meeting_aquabaie.png | |||
| Binary files differ | |||
diff --git a/public/index.php b/public/index.php index 8cb2b9a..abdac71 100644 --- a/public/index.php +++ b/public/index.php | |||
| @@ -1,13 +1,6 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // public/index/php | 2 | // public/index/php |
| 3 | 3 | ||
| 4 | /* installation de composer sur un hébergement mutualisé | ||
| 5 | 1. télécharger le script d'installation: | ||
| 6 | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
| 7 | 2. installation: php composer-setup.php | ||
| 8 | 3. supprimer l'installateur: php -r "unlink('composer-setup.php');" | ||
| 9 | 4. utilisation: php composer.phar */ | ||
| 10 | |||
| 11 | declare(strict_types=1); | 4 | declare(strict_types=1); |
| 12 | 5 | ||
| 13 | // -- prétraitement -- | 6 | // -- prétraitement -- |
diff --git a/public/js/tinymce.js b/public/js/tinymce.js index 092698e..88d8474 100644 --- a/public/js/tinymce.js +++ b/public/js/tinymce.js | |||
| @@ -164,15 +164,6 @@ function closeEditor(id, page = '', restore_old = true) | |||
| 164 | document.querySelector(`#delete-${id}`).classList.remove('hidden'); | 164 | document.querySelector(`#delete-${id}`).classList.remove('hidden'); |
| 165 | } | 165 | } |
| 166 | } | 166 | } |
| 167 | if(page != 'article'){ | ||
| 168 | /*document.querySelector(`#position_up-${id}`).classList.remove('hidden'); | ||
| 169 | document.querySelector(`#position_down-${id}`).classList.remove('hidden'); | ||
| 170 | document.querySelector(`#delete-${id}`).classList.remove('hidden');*/ | ||
| 171 | } | ||
| 172 | else{ | ||
| 173 | //document.querySelector(`#delete-${real_id}`).classList.remove('hidden'); | ||
| 174 | } | ||
| 175 | |||
| 176 | } | 167 | } |
| 177 | 168 | ||
| 178 | function submitArticle(id, page = '', clone = null) | 169 | function submitArticle(id, page = '', clone = null) |
| @@ -227,17 +218,15 @@ function submitArticle(id, page = '', clone = null) | |||
| 227 | .then(response => response.json()) | 218 | .then(response => response.json()) |
| 228 | .then(data => { | 219 | .then(data => { |
| 229 | if (data.success) { | 220 | if (data.success) { |
| 230 | console.log(data.article_id); | 221 | //console.log(data.article_id); |
| 231 | if(id[0] === 'n' && page === 'article'){ | 222 | if(id[0] === 'n' && page === 'article'){ |
| 232 | console.log('données envoyées au serveur avec succès.'); | 223 | console.log('données envoyées au serveur avec succès.'); |
| 233 | 224 | ||
| 234 | // remplacer bouton Enregistrer par Supprimer | 225 | // redirection page de l'article |
| 235 | submit_btn = document.getElementById('save-' + id_from_builder); // id précédent par NewBuilder | 226 | window.setTimeout(function(){ |
| 236 | submit_btn.classList.add('hidden'); | 227 | location.href = "index.php?page=article&id=" + data.article_id; |
| 237 | delete_btn = document.getElementById('delete-' + id_from_builder); | 228 | }, 0); |
| 238 | delete_btn.id = data.article_id; | 229 | |
| 239 | delete_btn.querySelector('button').setAttribute('onclick', "deleteArticle('" + data.article_id + "', 'article')"); | ||
| 240 | delete_btn.classList.remove('hidden'); | ||
| 241 | } | 230 | } |
| 242 | else{ | 231 | else{ |
| 243 | // Fermer l'éditeur et mettre à jour le contenu de l'article | 232 | // Fermer l'éditeur et mettre à jour le contenu de l'article |
