133 lines
5.1 KiB
PHP
Executable File
133 lines
5.1 KiB
PHP
Executable File
<style>.libelleLV{font-weight:normal; padding-top:7px;}</style>
|
|
<?php
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
|
|
// ---------------------------------------------------
|
|
// Init var
|
|
// ---------------------------------------------------
|
|
include ("messCom.ressource.php");
|
|
$theAfficher='';
|
|
$theIco='';
|
|
$theMessage='';
|
|
$theAlt='';
|
|
$theTitle='';
|
|
$theClasse='';
|
|
$theStyle='';
|
|
$admMsg='';
|
|
$validLogin='O';
|
|
|
|
$trouveLG=false;
|
|
$FIN='N';
|
|
|
|
// ---------------------------------------------------
|
|
// Post
|
|
// ---------------------------------------------------
|
|
if (!empty($_POST['idLanguenav'])) {$idLanguenav=$_POST['idLanguenav'];}
|
|
if (!empty($_POST['theAfficher'])) {$theAfficher=$_POST['theAfficher'];}
|
|
if (!empty($_POST['theIco'])) {$theIco=$_POST['theIco'];}
|
|
if (!empty($_POST['theTitle'])) {$theTitle=$_POST['theTitle'];}
|
|
if (isset($_POST['theMessage'])) {$theMessage=$_POST['theMessage'];}
|
|
if (isset($_POST['theStyle'])) {$theStyle=$_POST['theStyle'];}
|
|
|
|
if (isset($debug[1]) && $debug[1] == '1') {
|
|
$debugMsg .= monDebug(1, [
|
|
'theAfficher' => $theAfficher,
|
|
'theIco' => $theIco,
|
|
'theTitle' => $theTitle,
|
|
'theMessage' => $theMessage,
|
|
'theClasse' => $theClasse,
|
|
'theStyle' => $theStyle,
|
|
'codeOpe' => $codeOpe,
|
|
'idLanguenav' => $idLanguenav,
|
|
'SESSION[lgCouranteCode]' => $_SESSION['lgCouranteCode'],
|
|
'lg' => $lg
|
|
], 'message.modale.php');
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// Controler & requete Select
|
|
// ---------------------------------------------------
|
|
if ($codeOpe=="validerForm") {
|
|
require_once ($includePath. "/_fonctions/fonctions.gene.php");
|
|
include ("messCom.controler.php");
|
|
if ($validLogin!='N') {
|
|
include ("reqUpdate.messCom.php");
|
|
include ($includePathAdmin. "/drapeaux/changementLg.php");
|
|
}
|
|
}
|
|
|
|
// Debug
|
|
if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .= monDebug(2, ['validLogin' => $validLogin], '');}
|
|
|
|
// ---------------------------------------------------
|
|
// ReqSelect
|
|
// ---------------------------------------------------
|
|
include ("reqSelect.messCom.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire
|
|
// -----------------------------------------------------
|
|
echo '<form name="messCommF" id="messCommF" method="POST" >';
|
|
|
|
// ---------------------------------------------------
|
|
// zoneFormModales
|
|
// ---------------------------------------------------
|
|
echo '<div id="zoneFormModales" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Menu popup info
|
|
// -----------------------------------------------------
|
|
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>' .$messCommItem[0]. '</p>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Langue affichage du drapeaux
|
|
// -----------------------------------------------------
|
|
echo '<span>';
|
|
include ($includePathAdmin. "/drapeaux/drapeauxAff.php");
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton retour agencement
|
|
// -----------------------------------------------------
|
|
echo '<span class="boutonsWebmaster" onClick="document.location=\'./frmAdmin.php?affAdmin=2\';" >';
|
|
echo '<i class="fad fa-chevron-circle-left"></i> ';
|
|
echo ' ' .$messCommItem[9]. '';
|
|
echo '</span>';
|
|
echo '<br><br>';
|
|
|
|
// -----------------------------------------------------
|
|
// Champs cachés
|
|
// -----------------------------------------------------
|
|
echo '<input type="hidden" name="idLanguenav" id="idLanguenav" value="' .$idLanguenav. '" >';
|
|
echo '<input type="hidden" name="theAfficher" id="theAfficher" value="' .$theAfficher. '" >';
|
|
echo '<input type="hidden" name="theIco" id="theIco" value="' .$theIco. '" >';
|
|
echo '<input type="hidden" name="theTitle" id="theTitle" value="' .$theTitle. '" >';
|
|
echo '<input type="hidden" name="theMessage" id="theMessage" value="' .$theMessage. '" >';
|
|
echo '<input type="hidden" name="theStyle" id="theStyle" value="' .$theStyle. '" >';
|
|
echo '<input type="hidden" name="codeOpe" id="codeOpe" value="' .$codeOpe. '" >';
|
|
echo '<input type="hidden" name="lg" id="lg" value="' .$lg. '" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire
|
|
// -----------------------------------------------------
|
|
echo '<div style="display:flex; flex-wrap:wrap;" >';
|
|
include ("messCom.form.php");
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</form>';
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|