@@ -1,19 +1,19 @@ |
||
1 | 1 | <nav class="nav-page"> |
2 | 2 | <div class="inner"> |
3 | 3 | <ul> |
4 | - <?php for ($i=0 ; $i<count($id_page) ; $i++): ?> |
|
4 | + <?php for ($i = 0; $i < count($id_page); $i++): ?> |
|
5 | 5 | <?php if ($parent[$i] == 0): ?> |
6 | 6 | <li><a href="<?=ADMWEBROOT?>gestion-contenus/modifier-contenu?id=<?=$id_page[$i]?>"><?=$titre[$i]?></a> |
7 | 7 | <ul> |
8 | - <?php for ($j=0 ; $j<count($id_page) ; $j++): ?> |
|
8 | + <?php for ($j = 0; $j < count($id_page); $j++): ?> |
|
9 | 9 | <?php if ($parent[$j] == $id_page[$i]): ?> |
10 | 10 | <li><a href="<?=ADMWEBROOT?>gestion-contenus/modifier-contenu?id=<?=$id_page[$j]?>"><?=$titre[$j]?></a></li> |
11 | - <?php endif;?> |
|
12 | - <?php endfor;?> |
|
11 | + <?php endif; ?> |
|
12 | + <?php endfor; ?> |
|
13 | 13 | </ul> |
14 | 14 | </li> |
15 | - <?php endif;?> |
|
16 | - <?php endfor;?> |
|
15 | + <?php endif; ?> |
|
16 | + <?php endfor; ?> |
|
17 | 17 | </ul> |
18 | 18 | </div> |
19 | 19 | </nav> |
@@ -3,8 +3,8 @@ |
||
3 | 3 | <h1>Gestion des contenus</h1> |
4 | 4 | </div> |
5 | 5 | </header> |
6 | -<?php include("header.php");?> |
|
6 | +<?php include("header.php"); ?> |
|
7 | 7 | |
8 | 8 | <?php if ($droit_acces->getDroitAccesContenu("CREATION PAGE", "gestion-contenus/creer-une-page")):?> |
9 | 9 | <a class="submit-contenu" href="<?=ADMWEBROOT?>gestion-contenus/creer-une-page"><i class="fa fa-newspaper-o"></i>Créer une page</a> |
10 | -<?php endif;?> |
|
11 | 10 | \ No newline at end of file |
11 | +<?php endif; ?> |
|
12 | 12 | \ No newline at end of file |
@@ -4,18 +4,18 @@ discard block |
||
4 | 4 | <h2>Modification de la page <?=$titre_courant?></h2> |
5 | 5 | </div> |
6 | 6 | </header> |
7 | -<?php include("header.php");?> |
|
8 | -<?php require_once("admin/controller/ckeditor.php");?> |
|
7 | +<?php include("header.php"); ?> |
|
8 | +<?php require_once("admin/controller/ckeditor.php"); ?> |
|
9 | 9 | <?php $droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_GET['id']); ?> |
10 | 10 | |
11 | 11 | <form action="<?=ADMWEBROOT?>controller/core/admin/contenus/modifier_contenus" method="post"> |
12 | 12 | <?php if (($droit_acces->getModifSeo() == 1) || ($droit_acces->getModifNavigation() == 1) || ($droit_acces->getModifContenu() == 1)):?> |
13 | 13 | <button type="submit" class="submit-contenu" type="submit"><i class="fa fa-check"></i>Valider</button> |
14 | - <?php endif;?> |
|
14 | + <?php endif; ?> |
|
15 | 15 | <input type="hidden" name="id_page" value="<?=$id_page_courante?>"> |
16 | 16 | <?php if (($_GET['id'] != 1) && ($droit_acces->getSupprimerPage() == 1)):?> |
17 | 17 | <button id="supprimer-page-contenu" type="button" class="submit-contenu supprimer-page" href="<?=ADMWEBROOT?>controller/core/admin/contenus/supprimer_page?id=<?=$id_page_courante?>"><i class="fa fa-times"></i>Supprimer cette page</button> |
18 | - <?php endif;?> |
|
18 | + <?php endif; ?> |
|
19 | 19 | |
20 | 20 | <div class="inner"> |
21 | 21 | <?php if (($droit_acces->getModifSeo() == 0) && ($droit_acces->getModifNavigation() == 0) && ($droit_acces->getModifContenu() == 0)):?> |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | |
25 | 25 | <?php if ($droit_acces->getSupprimerPage() == 1):?> |
26 | 26 | <h3>Vous pouvez uniquement supprimer cette page</h3> |
27 | - <?php endif;?> |
|
27 | + <?php endif; ?> |
|
28 | 28 | |
29 | 29 | <p>Si vous voulez pouvoir modifier cette page, contactez votre gérant.</p> |
30 | 30 | </section> |
31 | - <?php endif;?> |
|
31 | + <?php endif; ?> |
|
32 | 32 | |
33 | 33 | <?php if ($droit_acces->getModifSeo() == 1):?> |
34 | 34 | <section class="contenu modifier-contenu"> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | <div class="colonne"> |
43 | 43 | <div class="bloc"> |
44 | 44 | <label class="label" for="url" data-error="L'url doit être comprise entre 3 et 92 caractères">Url affichée dans le navigateur</label> |
45 | - <input type="text" name="url" type-val="string" min="3" max="92" value="<?=$url?>" <?php if($id_page_courante==1): ?>disabled<?php endif;?>/> |
|
45 | + <input type="text" name="url" type-val="string" min="3" max="92" value="<?=$url?>" <?php if ($id_page_courante == 1): ?>disabled<?php endif; ?>/> |
|
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | <textarea name="meta_description" type-val="string" min="10" max="158" required=""><?=$meta_description?></textarea> |
52 | 52 | </div> |
53 | 53 | </section> |
54 | - <?php endif;?> |
|
54 | + <?php endif; ?> |
|
55 | 55 | |
56 | 56 | <?php if ($droit_acces->getModifNavigation() == 1):?> |
57 | 57 | <section class="contenu modifier-contenu"> |
@@ -86,13 +86,13 @@ discard block |
||
86 | 86 | </div> |
87 | 87 | </div> |
88 | 88 | </section> |
89 | - <?php endif;?> |
|
89 | + <?php endif; ?> |
|
90 | 90 | |
91 | 91 | <?php if ($droit_acces->getModifContenu() == 1):?> |
92 | 92 | <section class="contenu modifier-contenu"> |
93 | 93 | <h2>Partie concernant l'affichage dans le navigateur</h2> |
94 | 94 | <div class="bloc"> |
95 | - <?php if ($droit_acces->getDroitAccesAction("GESTION_CONTENU_DANS_PAGE") == 1){ ?> |
|
95 | + <?php if ($droit_acces->getDroitAccesAction("GESTION_CONTENU_DANS_PAGE") == 1) { ?> |
|
96 | 96 | <?php $ckeditor->editor('contenu', $contenu_page); ?> |
97 | 97 | <?php } else {?> |
98 | 98 | <p>Vous n'êtes pas autorisé à créer / modifier des contenus sur ce site internet</p> |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | <?php }?> |
101 | 101 | </div> |
102 | 102 | </section> |
103 | - <?php endif;?> |
|
103 | + <?php endif; ?> |
|
104 | 104 | </div> |
105 | 105 | </form> |
106 | 106 |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | <h2>Création d'une page</h2> |
5 | 5 | </div> |
6 | 6 | </header> |
7 | -<?php include("header.php");?> |
|
8 | -<?php include("admin/controller/ckeditor.php");?> |
|
7 | +<?php include("header.php"); ?> |
|
8 | +<?php include("admin/controller/ckeditor.php"); ?> |
|
9 | 9 | |
10 | 10 | <form action="<?=ADMWEBROOT?>controller/core/admin/contenus/creer_page" method="post"> |
11 | 11 | <button type="submit" class="submit-contenu" type="submit"><i class="fa fa-check"></i>Valider</button> |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | <div class="colonne"> |
23 | 23 | <div class="bloc"> |
24 | 24 | <label class="label" for="url" data-error="L'url doit être comprise entre 3 et 92 caractères">Url affichée dans le navigateur</label> |
25 | - <input type="text" name="url" type-val="string" min="3" max="92" value="<?=$url?>" <?php if($id_page_courante==1): ?>disabled<?php endif;?> required=""/> |
|
25 | + <input type="text" name="url" type-val="string" min="3" max="92" value="<?=$url?>" <?php if ($id_page_courante == 1): ?>disabled<?php endif; ?> required=""/> |
|
26 | 26 | </div> |
27 | 27 | </div> |
28 | 28 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | <section class="contenu modifier-contenu"> |
60 | 60 | <h2>Partie concernant l'affichage dans le navigateur</h2> |
61 | 61 | <div class="bloc"> |
62 | - <?php if ($droit_acces->getDroitAccesAction("GESTION_CONTENU_DANS_PAGE") == 1){ ?> |
|
62 | + <?php if ($droit_acces->getDroitAccesAction("GESTION_CONTENU_DANS_PAGE") == 1) { ?> |
|
63 | 63 | <?php $ckeditor->editor('contenu', $contenu_page); ?> |
64 | 64 | <?php } else {?> |
65 | 65 | <p>Vous n'êtes pas autorisé à créer / modifier des contenus sur ce site internet</p> |
@@ -3,7 +3,7 @@ |
||
3 | 3 | <h1>Gestion des droits d'accès | modifier la liste : </h1> |
4 | 4 | </div> |
5 | 5 | </header> |
6 | -<?php include("header.php");?> |
|
6 | +<?php include("header.php"); ?> |
|
7 | 7 | |
8 | 8 | <form action="<?=ADMWEBROOT?>controller/core/admin/modules/blog/article/modifier" method="post"> |
9 | 9 | <button type="submit" class="submit-contenu" type="submit"><i class="fa fa-pencil"></i>Modifier</button> |
@@ -3,11 +3,11 @@ discard block |
||
3 | 3 | <h1>Gestion des droits d'accès | toutes les listes</h1> |
4 | 4 | </div> |
5 | 5 | </header> |
6 | -<?php include("header.php");?> |
|
6 | +<?php include("header.php"); ?> |
|
7 | 7 | |
8 | 8 | <div class="inner"> |
9 | 9 | <div class="droit-acces"> |
10 | - <?php for ($i=0 ; $i<count($gestion_droit_acces->getIdListeDroitAcces()) ; $i++):?> |
|
10 | + <?php for ($i = 0; $i < count($gestion_droit_acces->getIdListeDroitAcces()); $i++):?> |
|
11 | 11 | <div class="bloc"> |
12 | 12 | <h2><?=$gestion_droit_acces->getNomListe()[$i]?></h2> |
13 | 13 | |
@@ -22,27 +22,27 @@ discard block |
||
22 | 22 | |
23 | 23 | <div id="droit-acces-<?=$gestion_droit_acces->getIdListeDroitAcces()[$i]?>-detail"> |
24 | 24 | <h2>Liste des droits d'acces</h2> |
25 | - <?php for ($j=0 ; $j<count($gestion_droit_acces->getDroitAcces()) ; $j++):?> |
|
25 | + <?php for ($j = 0; $j < count($gestion_droit_acces->getDroitAcces()); $j++):?> |
|
26 | 26 | <h4><?=$gestion_droit_acces->getDroitAcces()[$j]?></h4> |
27 | - <?php endfor;?> |
|
27 | + <?php endfor; ?> |
|
28 | 28 | </div> |
29 | 29 | <div id="droit-acces-page-<?=$gestion_droit_acces->getIdListeDroitAcces()[$i]?>-detail"> |
30 | 30 | <h2>Liste des droits d'acces pour les pages</h2> |
31 | - <?php for ($j=0 ; $j<count($gestion_droit_acces->getIdPage()) ; $j++):?> |
|
31 | + <?php for ($j = 0; $j < count($gestion_droit_acces->getIdPage()); $j++):?> |
|
32 | 32 | <h4><?=$gestion_droit_acces->getTitrePage()[$j]?></h4> |
33 | - <?php endfor;?> |
|
33 | + <?php endfor; ?> |
|
34 | 34 | </div> |
35 | 35 | <div id="droit-acces-user-<?=$gestion_droit_acces->getIdListeDroitAcces()[$i]?>-detail"> |
36 | 36 | <h2>Liste utilisateurs dans cette liste</h2> |
37 | - <?php for ($j=0 ; $j<count($gestion_droit_acces->getIdidentite()) ; $j++):?> |
|
37 | + <?php for ($j = 0; $j < count($gestion_droit_acces->getIdidentite()); $j++):?> |
|
38 | 38 | <h4><?=$gestion_droit_acces->getPseudo()[$j]?></h4> |
39 | - <?php endfor;?> |
|
39 | + <?php endfor; ?> |
|
40 | 40 | </div> |
41 | 41 | </div> |
42 | 42 | |
43 | 43 | <a href="<?=ADMWEBROOT?>gestion-droits-acces/modifier-liste?id_liste=<?=$gestion_droit_acces->getIdListeDroitAcces()[$i]?>" titre="" class="modifier">Modifier cette liste</a> |
44 | 44 | <a href="controller/core/admin/droitacces/liste/supprimer?id_liste=<?=$gestion_droit_acces->getIdListeDroitAcces()[$i]?>" class="supprimer popup-delete">Supprimer cette liste</a> |
45 | 45 | </div> |
46 | - <?php endfor;?> |
|
46 | + <?php endfor; ?> |
|
47 | 47 | </div> |
48 | 48 | </div> |
49 | 49 | \ No newline at end of file |
@@ -1,3 +1,3 @@ |
||
1 | -<?=\core\HTML\flashmessage\FlashMessage::getFlash();?> |
|
1 | +<?=\core\HTML\flashmessage\FlashMessage::getFlash(); ?> |
|
2 | 2 | <div class="inner"> |
3 | 3 | </div> |
4 | 4 | \ No newline at end of file |
@@ -15,7 +15,7 @@ |
||
15 | 15 | <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>font_awesome/css/font-awesome.min.css"> |
16 | 16 | <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>font_awesome/css/animate.css"> |
17 | 17 | </head> |
18 | - <?=core\HTML\flashmessage\FlashMessage::getFlash();?> |
|
18 | + <?=core\HTML\flashmessage\FlashMessage::getFlash(); ?> |
|
19 | 19 | <body class="login"> |
20 | 20 | <div id="particles-js"></div> |
21 | 21 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <script src="<?=LIBSWEBROOT?>input_type_admin/js/effet_input.js"></script> |
20 | 20 | <script src="<?=LIBSWEBROOT?>scrollbar/js/scrollbar.js"></script> |
21 | 21 | </head> |
22 | - <?=\core\HTML\flashmessage\FlashMessage::getFlash();?> |
|
22 | + <?=\core\HTML\flashmessage\FlashMessage::getFlash(); ?> |
|
23 | 23 | <body> |
24 | 24 | <nav class="menu active"> |
25 | 25 | <div class="titre"> |
@@ -31,42 +31,42 @@ discard block |
||
31 | 31 | <li><i class="fa fa-user"></i><a href="<?=ADMWEBROOT?>gestion-comptes/mon-compte">Mon compte</a></li> |
32 | 32 | |
33 | 33 | <!-- Pour avoir accès à la gestion des autres comptes --> |
34 | - <?php if($droit_acces->getDroitAccesPage("gestion-comptes/index") == true):?> |
|
34 | + <?php if ($droit_acces->getDroitAccesPage("gestion-comptes/index") == true):?> |
|
35 | 35 | <li><i class="fa fa-users"></i><a href="<?=ADMWEBROOT?>gestion-comptes/index">Gestion des comptes</a></li> |
36 | - <?php endif;?> |
|
36 | + <?php endif; ?> |
|
37 | 37 | |
38 | 38 | <!-- Pour avoir accès à la gestion des autres comptes --> |
39 | - <?php if($droit_acces->getDroitAccesPage("gestion-droits-acces/index") == true):?> |
|
39 | + <?php if ($droit_acces->getDroitAccesPage("gestion-droits-acces/index") == true):?> |
|
40 | 40 | <li><i class="fa fa-lock"></i><a href="<?=ADMWEBROOT?>gestion-droits-acces/index">Gestion des droits d'accès</a></li> |
41 | - <?php endif;?> |
|
41 | + <?php endif; ?> |
|
42 | 42 | |
43 | 43 | <!-- Pour avoir accès à la gestion des autres comptes --> |
44 | - <?php if($droit_acces->getDroitAccesPage("gestion-contenus/index") == true):?> |
|
44 | + <?php if ($droit_acces->getDroitAccesPage("gestion-contenus/index") == true):?> |
|
45 | 45 | <li><i class="fa fa-file-text"></i><a href="<?=ADMWEBROOT?>gestion-contenus/index">Gestion des contenus</a></li> |
46 | - <?php endif;?> |
|
46 | + <?php endif; ?> |
|
47 | 47 | |
48 | 48 | <!-- pour afficher le menu des modules --> |
49 | - <?php for ($i=0 ; $i<count($gestion_module->getUrl()) ; $i++):?> |
|
50 | - <?php if((\core\modules\GestionModule::getModuleActiver($gestion_module->getNom()[$i]) == true) && ($droit_acces->getDroitAccesPage($gestion_module->getUrl()[$i]."index") == true)):?> |
|
49 | + <?php for ($i = 0; $i < count($gestion_module->getUrl()); $i++):?> |
|
50 | + <?php if ((\core\modules\GestionModule::getModuleActiver($gestion_module->getNom()[$i]) == true) && ($droit_acces->getDroitAccesPage($gestion_module->getUrl()[$i]."index") == true)):?> |
|
51 | 51 | <li> |
52 | 52 | <i class="fa <?=$gestion_module->getIcone()[$i]?>"></i> |
53 | 53 | <a href="<?=MODULEADMWEBROOT.$gestion_module->getUrl()[$i]?>index">Gestion <?=$gestion_module->getNom()[$i]?> (V<?=$gestion_module->getVersion()[$i]?>)</a> |
54 | 54 | </li> |
55 | - <?php endif;?> |
|
56 | - <?php endfor;?> |
|
55 | + <?php endif; ?> |
|
56 | + <?php endfor; ?> |
|
57 | 57 | </div> |
58 | 58 | |
59 | 59 | |
60 | 60 | <!-- lien fixes en bas de la page --> |
61 | 61 | <?php if ($droit_acces->getSuperAdmin() == 1):?> |
62 | - <li class="notification <?php if ($admin->getNotification() == 1): ?> non-vue<?php endif;?>"> |
|
63 | - <i class="fa fa-exclamation <?php if ($admin->getNotification() == 1):?> animated infinite swing<?php endif;?>"></i> |
|
62 | + <li class="notification <?php if ($admin->getNotification() == 1): ?> non-vue<?php endif; ?>"> |
|
63 | + <i class="fa fa-exclamation <?php if ($admin->getNotification() == 1):?> animated infinite swing<?php endif; ?>"></i> |
|
64 | 64 | <a href="<?=ADMWEBROOT?>notifications">Notifications systèmes</a> |
65 | 65 | </li> |
66 | - <?php endif;?> |
|
67 | - <?php if($droit_acces->getSuperAdmin() == 1):?> |
|
66 | + <?php endif; ?> |
|
67 | + <?php if ($droit_acces->getSuperAdmin() == 1):?> |
|
68 | 68 | <li class="configuration"><i class="fa fa-gear"></i><a href="<?=ADMWEBROOT?>configuration/index">Configuration</a></li> |
69 | - <?php endif;?> |
|
69 | + <?php endif; ?> |
|
70 | 70 | <li class="support"><i class="fa fa-envelope"></i><a href="<?=ADMWEBROOT?>contacter-support">Contacter le support</a></li> |
71 | 71 | <li class="logout"><i class="fa fa-times animated activate swing infinite"></i><a href="<?=WEBROOT?>administrator/controller/core/auth/logout">Déconexion</a></li> |
72 | 72 | </ul> |