144 lines
3.9 KiB
PHP
Executable File
144 lines
3.9 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
$affAdmin=6;
|
|
$thePrivateKeyTest='';
|
|
|
|
// -----------------------------------------------------
|
|
// Post
|
|
// -----------------------------------------------------
|
|
include ("options.post.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Debug
|
|
// -----------------------------------------------------
|
|
$nomFicAppelant=basename(__FILE__);
|
|
if (isset($debug[1]) && $debug[1] == '1') {include ("options.debug.php");}
|
|
|
|
echo '<div id="zonePageWbm" style="margin:auto;width:99%;" >';
|
|
echo '<div id="zoneTitreWbm" >';
|
|
echo '<span id="resize" class="jsResize fad fa-arrow-circle-left" onClick="jsResize();"></span> ';
|
|
echo '<span class="titreWbm" >';
|
|
// flag edt: a faire :prendre le bouton menu 19
|
|
echo '<img border="0" valign="middle" align="center" src="' .$includeAdminDesign. '/options.png" alt="Options" title="Options" /> ';
|
|
switch ($optAff) {
|
|
// moyensP
|
|
case 1:
|
|
$wbmTitle="Gestion des moyens de paiement";
|
|
break;
|
|
|
|
// moyensL
|
|
case 2:
|
|
$wbmTitle="Gestion des modes de livraison";
|
|
break;
|
|
|
|
// Tarifs : annulé
|
|
case 3:
|
|
$wbmTitle="grilleTarifaire.modale";
|
|
break;
|
|
|
|
// Pays
|
|
case 4:
|
|
$wbmTitle="Gestion des pays";
|
|
break;
|
|
|
|
// contacts
|
|
case 5:
|
|
$wbmTitle="Information commerçant";
|
|
break;
|
|
|
|
// langues
|
|
case 6:
|
|
$wbmTitle="Langues";
|
|
break;
|
|
|
|
// environnement
|
|
case 7:
|
|
$wbmTitle="Environnement";
|
|
break;
|
|
|
|
default:
|
|
$wbmTitle="Gestion des moyens de paiement";
|
|
break;
|
|
}
|
|
echo '<span id="TitrePageOptions"><a href="./frmAdmin.php?affAdmin=6&optAff=' .$optAff. '&typeOfCommercant=' .$typeOfCommercant. '&lg=' .$lg. '" target="_top">' .$wbmTitle. '</a></span>';
|
|
echo '</span>';
|
|
include($includePathAdmin. "/zoneMonCompte.php");
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Menu
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneMenuWbmContainer" >';
|
|
echo '<div id="zoneMenuWbm" >';
|
|
require_once("options.menu.php");
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher details selon
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneFormWbm" style="margin:auto;width:100%;" >';
|
|
|
|
switch ($optAff) {
|
|
// moyensP
|
|
case 1:
|
|
$src="./options/moyensP/moyensP.php";
|
|
break;
|
|
|
|
// moyensL
|
|
case 2:
|
|
$src="./options/moyensL/moyensL.php";
|
|
break;
|
|
|
|
// Tarifs : annulée
|
|
case 3:
|
|
$src="./options/moyensL/grilleTarifaire/grilleTarifaire.modale.php";
|
|
break;
|
|
|
|
// Pays
|
|
case 4:
|
|
$src="./options/pays/lpays.php";
|
|
break;
|
|
|
|
// contacts
|
|
case 5:
|
|
$src="./options/commercant/commercant.php";
|
|
break;
|
|
|
|
// Langues
|
|
case 6:
|
|
$src="./options/langues/langues.php";
|
|
break;
|
|
|
|
// Environnement
|
|
case 7:
|
|
$src="./param/env/env.php";
|
|
break;
|
|
|
|
default:
|
|
$src="./options/moyensP/moyensP.php";
|
|
break;
|
|
}
|
|
include ($src);
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher messages webmaster
|
|
// -----------------------------------------------------
|
|
if (!empty($admMsg) || !empty($debugMsg) ) {
|
|
echo '<div id="zoneMsgWbm">';
|
|
include ($includePathAdmin. "/adminMsg.php");
|
|
echo '</div>'; //zoneMsg
|
|
}
|
|
|
|
echo '</div>'; //zonePageWbm
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|