172 lines
7.6 KiB
PHP
Executable File
172 lines
7.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
|
|
// -----------------------------------------------------
|
|
// init
|
|
// -----------------------------------------------------
|
|
include ("mails.init.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Post
|
|
// -----------------------------------------------------
|
|
include ("mails.post.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Traitements
|
|
// -----------------------------------------------------
|
|
include ("mails.traitements.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Debug
|
|
// -----------------------------------------------------
|
|
if (isset($debug[1]) && $debug[1] == '1') {include ("mailsDebug.php"); }
|
|
|
|
echo '<div id="zonePageWbm" >';
|
|
echo '<div id="zoneTitreWbm">';
|
|
|
|
// -----------------------------------------------------
|
|
// Titre de la page
|
|
// -----------------------------------------------------
|
|
echo '<span id="resize" class="jsResize fad fa-arrow-circle-left" onClick="jsResize();"></span>  ';
|
|
echo '<span class="titreWbm" style="text-decoration:none; padding:0px; margin:0px; valign:middle; height:25px;width:30%;">   ';
|
|
if ($typeMails==3) {
|
|
echo '<img border="0" style="padding:0px; margin:0px; valign:middle; height:25px;" valign="middle" src="' .$includeAdminDesign. '/contact.png" alt="News" title="News" />  ';
|
|
echo '<span >Lettre d\'information</span>';
|
|
}
|
|
else { echo '<img border="0" valign="middle" align="center" src="' .$includeAdminDesign. '/comm.png" alt="Mails" title="Mails" />  ';
|
|
echo '<span><a style="text-decoration:none;" target="_top" href="./frmAdmin.php?affAdmin=5&typeMails=' .$typeMails. '&affMails=' .$affMails. '&lg=' .$lg. '&affAdmin=' .$affAdmin. '">Gestion des e-mails</a></span>    ';
|
|
}
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Types de Mails
|
|
// -----------------------------------------------------
|
|
echo '<span style="display:inline; border:0px; font-weight:bold; padding-top:15px; padding-bottom:0px; height:50px;" >';
|
|
include("./mails/mails.menus.php");
|
|
echo '</span>';
|
|
|
|
include($includePathAdmin. "/zoneMonCompte.php");
|
|
echo '</div>'; //titre
|
|
|
|
// -----------------------------------------------------
|
|
// Barre onglets menus
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneMenuWbmContainer" >';
|
|
if ($typeMails!=3) {
|
|
echo '<div id="zoneMenuWbm">';
|
|
include ("./mails/mails.sousMenus.php");
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Zone recherche ou aide ou sous-menus Wbm
|
|
// -----------------------------------------------------
|
|
echo '<div id="zoneRechercheWbm">';
|
|
// if ($typeMails!=3) {
|
|
// echo '<span style="margin-top:0px; display:inline; clear:both;" >';
|
|
if ($_SESSION['nbLg']>1) {
|
|
$lgLien="affAdmin=5&typeMails=" .$typeMails. "&affMails=" .$affMails;
|
|
include ($includePathAdmin. "/drapeaux/drapeauxListBox.php");
|
|
}
|
|
// echo '</span>';
|
|
// }
|
|
|
|
if ($typeMails==1) {
|
|
|
|
// -----------------------------------------------------
|
|
// Btn prévisualisation
|
|
// -----------------------------------------------------
|
|
echo '<span class="boutonsWebmaster" onClick="window.self.location=\'./frmModale.php?affModale=5-1&affMails=' .$affMails. '\';" >';
|
|
echo '  <i class="fad fa-eye" style="color:green;"></i>';
|
|
echo '  Prévisualiser un exemple  ';
|
|
echo ' ' .$prodServer. ' ';
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Boite aide
|
|
// -----------------------------------------------------
|
|
echo '<span id="bandeauAideInfo" >';
|
|
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 visualiser votre mail final, cliquez sur publier maintenant et exportez la personnalisation.</p>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</span>';
|
|
}
|
|
|
|
if ($typeMails==2) {
|
|
// -----------------------------------------------------
|
|
// Boite aide
|
|
// -----------------------------------------------------
|
|
echo '<span id="bandeauAideInfo" >';
|
|
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>Les mails gestionnaires sont modifiables en mode expert depuis le menu \'textes avancés\' ( N° 20 et 21 ).</p>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Aller dans le contenu
|
|
// -----------------------------------------------------
|
|
echo '<span class="boutonsWebmaster" onClick="window.location=\'./frmAdmin.php?affAdmin=4&textesAffSection=9&\'" style="margin:7px;" >';
|
|
echo '<i class="fad fa-edit"></i>';
|
|
echo 'Textes avancés';
|
|
echo '</span>';
|
|
}
|
|
|
|
if ($typeMails==3) {
|
|
include ("./mails/news/news.menus.php");
|
|
}
|
|
echo '</div>';
|
|
|
|
echo '<div id="zoneFormWbm" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Formulaire
|
|
// -----------------------------------------------------
|
|
echo '<form method="POST" name="menuSiteForm" id="menuSiteForm" enctype="multipart/form-data" >';
|
|
|
|
// ------------------------------------------------------
|
|
// Champs cachés
|
|
// ------------------------------------------------------
|
|
echo '<input type="hidden" value="' .$typeMails. '" name="typeMails" id="typeMails" >';
|
|
echo '<input type="hidden" value="' .$affMails. '" name="affMails" id="affMails" >';
|
|
echo '<input type="hidden" value="' .$codeOpe. '" name="codeOpe" id="codeOpe" >';
|
|
// echo '<input type="hidden" name="modifLg" id="modifLg" value="' .$modifLg. '" />';
|
|
echo '<input type="hidden" name="lgCourante" id="lgCourante" value="' .$_SESSION['lgCouranteCode']. '" />';
|
|
|
|
if ($typeMails==1) include ("./mails/mailsEnvoyes.form.php");
|
|
if ($typeMails==2) include ("./mails/mailsRecus.form.php");
|
|
if ($typeMails==3) include ("./mails/news/news.php");
|
|
echo '</form>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Afficher messages webmaster
|
|
// -----------------------------------------------------
|
|
if (!empty($admMsg) || !empty($debugMsg) ) {
|
|
echo '<div id="zoneMsgWbm">';
|
|
include ($includePathAdmin. "/adminMsg.php");
|
|
echo '</div>'; //zoneMsg
|
|
}
|
|
|
|
echo '</div>'; //page
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|