153 lines
5.3 KiB
PHP
Executable File
153 lines
5.3 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
|
|
// -----------------------------------------------------
|
|
// Variables
|
|
// -----------------------------------------------------
|
|
$affValCli=1;
|
|
// $affCli=1; dans admin.post
|
|
$idON =1;
|
|
$libON =1;
|
|
$wbmTitle ='';
|
|
$affAdmin=10;
|
|
|
|
// -----------------------------------------------------
|
|
// Post
|
|
// -----------------------------------------------------
|
|
include("clients.post.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Mode Test
|
|
// -----------------------------------------------------
|
|
if ($modeTest==2) {
|
|
// prendre la BDD prod
|
|
include ($includePathConf. "/prod.dbConnect.php");
|
|
$idPdo=$idPdoProd;
|
|
// pour affichage environnement
|
|
$bdd=$bddProd;
|
|
}
|
|
else {
|
|
// prendre la BDD wbadm
|
|
$idPdoProd=$idPdo;
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// Debug
|
|
// -----------------------------------------------------
|
|
if (isset($debug[2]) && $debug[2] == '1') {
|
|
$debugMsg .= monDebug(2, [
|
|
'bdd' => $bdd,
|
|
'modeTest' => $modeTest,
|
|
'codeOpe' => $codeOpe
|
|
], '');
|
|
}
|
|
|
|
|
|
// if ($modeTest==1) {echo ' <div style="z-index:-10;position: fixed;width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(100,10,10,0.3); ;" ></div>';}
|
|
|
|
// -----------------------------------------------------
|
|
// Page container
|
|
// -----------------------------------------------------
|
|
echo '<div id="zonePageWbm" >';
|
|
|
|
// -----------------------------------------------------
|
|
// titre de la page
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneTitreWbm" >';
|
|
echo '<span id="resize" class="jsResize fad fa-arrow-circle-left" onClick="jsResize();"></span> ';
|
|
echo '<span class="titreWbm" >';
|
|
echo '<img border="0" valign="middle" align="center" src="' .$includeAdminDesign. '/clients.png" alt="clients" title="clients" /> ';
|
|
switch ($affCli) {
|
|
// Liste cli
|
|
case 1:
|
|
$wbmTitle="Les clients de " .$_SESSION['nomSiteAff']. "";
|
|
break;
|
|
|
|
// Liste valeurs
|
|
case 2:
|
|
$wbmTitle="Gestion des listes de valeur pour les écrans clients";
|
|
break;
|
|
}
|
|
echo '<span id="TitrePageClients"><a href="./frmAdmin.php?affAdmin=10&affCli=' .$affCli. '&affValCli=' .$affValCli. '&lg=' .$lg. '" target="_top" >' .$wbmTitle. '</a></span>';
|
|
echo '</span>';
|
|
include($includePathAdmin. "/zoneMonCompte.php");
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Menu clients
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneMenuWbmContainer" >';
|
|
echo '<div id="zoneMenuWbm" >';
|
|
include ("./clients/clientsListeMenu.php");
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Zone recherche ou aide ou sous-menus
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneRechercheWbm" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Boite aide
|
|
// -----------------------------------------------------
|
|
echo '<span class="info-icon fad fa-info-circle" onMouseOver="openPopup(\'T\');" onMouseLeave="closePopup(\'T\');"></span>';
|
|
echo '<div id="popupInfoT" class="popup">';
|
|
echo '<div class="popup-content">';
|
|
echo '<span class="popup-close" onClick="closePopup(\'T\');">×</span>';
|
|
echo '<img src="./adminInclude/designAdmin/info.png" alt="Info" class="popup-icon" />';
|
|
echo '<p>Pour chaque client vous pouvez modifier son statut ou son taux de remise. Cela enverra un mail au client et aux gestionaires le cas échéant.</p>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
if($affCli==1) {
|
|
echo 'Codes couleur =>  <span style="margin:3px; padding:5px; border-radius:5px; background:lightgreen; color:black;">Creation</span>';
|
|
echo ' <span style="margin:3px; padding:5px; border-radius:5px; background:white; color:green;">Actif</span>';
|
|
echo ' <span style="margin:3px; padding:5px; border-radius:5px; background:red; color:white;">Bloqué</span>';
|
|
echo ' <span class="fondColorListe" style=margin:3px; padding:5px; "border-radius:5px; color:black;">Desactivé</span>';
|
|
}
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Form
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneFormWbm" >';
|
|
switch ($affCli) {
|
|
// clients
|
|
case 1:
|
|
$src="./clients/clientsListe.php";
|
|
break;
|
|
|
|
// valeurs
|
|
case 2:
|
|
$src="./clients/valCli.php";
|
|
break;
|
|
|
|
default:
|
|
$src="./clients/clientsListe.php";
|
|
break;
|
|
}
|
|
include ($src);
|
|
echo '</div>'; //zoneForm
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher messages webmaster
|
|
// -----------------------------------------------------
|
|
if (!empty($admMsg) || !empty($debugMsg) ) {
|
|
echo '<div id="zoneMsgWbm">';
|
|
include ($includePathAdmin. "/adminMsg.php");
|
|
echo '</div>'; //zoneMsg
|
|
}
|
|
|
|
echo '</div>'; // zone page
|
|
include("clients.fin_session.php");
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|