79 lines
3.1 KiB
PHP
Executable File
79 lines
3.1 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
include_once ("./styles/css.initVar.php");
|
|
|
|
$descDesign="Catalogue";
|
|
$faireSelect=1;
|
|
$bgColor='';
|
|
$fontColor='';
|
|
$fontColorNom='';
|
|
$propager=0;
|
|
|
|
// -----------------------------------------------------
|
|
// POST
|
|
// -----------------------------------------------------
|
|
if (isset($_POST['descDesign'])) {$descDesign=$_POST['descDesign'];}
|
|
if (isset($_POST['bgColor'])) {$bgColor=$_POST['bgColor'];}
|
|
if (isset($_POST['fontColor'])) {$fontColor=$_POST['fontColor'];}
|
|
if (isset($_POST['propager'])) {$propager=$_POST['propager'];}
|
|
$affAdmin=$_SESSION['affAdmin'];
|
|
|
|
if (isset($debug[1]) && $debug[1] == '1') {include ("couleursGeneDebug.php");}
|
|
|
|
// -----------------------------------------------------
|
|
// Req UPDATE
|
|
// -----------------------------------------------------
|
|
if ($codeOpe=='UPDATE') {include ("./styles/req/reqUpdateDesign.php");}
|
|
|
|
// -----------------------------------------------------
|
|
// Req select
|
|
// la couleur que l'on veut afficher en changeant le select, sauf si post
|
|
if ($codeOpe=='SelectCoul') {include ("./styles/req/coulGeneReqSelect.php");}
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire
|
|
// -----------------------------------------------------
|
|
echo '<form method="POST" name="fCoulGene" id="fCoulGene" >';
|
|
|
|
echo '<div id="zoneFormModales" >';
|
|
include ("couleursGene.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Nom du style input en caché
|
|
// -----------------------------------------------------
|
|
echo '<input type="hidden" id="codeOpe" name="codeOpe" value="' .$codeOpe. '" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Zone validate
|
|
// -----------------------------------------------------
|
|
echo '<br>';
|
|
echo '<div id="zoneValidateModales" >';
|
|
// -----------------------------------------------------
|
|
// bouton valider
|
|
// -----------------------------------------------------
|
|
echo '<button onClick="majCoul();" class="boutonsWebmaster" title="Cliquez pour valider vos changements" >';
|
|
echo '<i class="fad fa-check-circle"></i> ';
|
|
echo 'Valider';
|
|
echo '</button>';
|
|
|
|
// -----------------------------------------------------
|
|
// bouton quitter
|
|
// -----------------------------------------------------
|
|
echo '<span onClick="top.location.href=\'frmAdmin.php?affAdmin=' .$affAdmin. '&agencementOnglet=3&lg=' .$lg. '&codeOpe=genereCss\';" class="boutonsWebmaster" title="Retour" >';
|
|
echo '<i class="fad fa-chevron-circle-left" style="color:white !important;"></i> ';
|
|
echo 'Retour';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
echo '</div>'; //formModale
|
|
echo '</form>';
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|