86 lines
4.3 KiB
PHP
Executable File
86 lines
4.3 KiB
PHP
Executable File
<style>
|
|
.libChampsWebmaster {margin-top:0px; margin-bottom:1px; }
|
|
.btnG {text-align:left; padding-top:10px;}
|
|
</style>
|
|
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
echo '<div style="display:grid; grid-template-columns: 25% auto; background:lightgrey; grid-gap:1px">';
|
|
|
|
// -----------------------------------------------------
|
|
// Destinataire
|
|
// -----------------------------------------------------
|
|
echo '<div style="grid-column:1; background:white" class="btnG">🧑<b> Liste des inscrits</b> : </div>';
|
|
echo '<div class="libChampsWebmaster" style="grid-column:2; background:lightgrey;">';
|
|
if(empty($listeMails)) echo '<textarea class="inputWebmaster" rows="2" style="min-width:80%;max-width:100%" name="listeMails" id="listeMails" >!Aucun inscrit dans cette langue</textarea>';
|
|
else echo '<textarea class="inputWebmaster" rows="2" style="min-width:80%;max-width:100%" name="listeMails" id="listeMails" >' .$listeMails. '</textarea>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Sujet
|
|
// -----------------------------------------------------
|
|
echo '<div style="grid-column:1; background:white" class="btnG">📝<b> Sujet</b> : </div>';
|
|
echo '<div class="libChampsWebmaster" style="grid-column:2; ">';
|
|
echo '<input class="inputWebmaster" style="width:50%;" type="text" name="sujet" id="sujet" value="' .$sujet. '"/>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton Modifier Corps
|
|
// -----------------------------------------------------
|
|
echo '<div style="grid-column:1; background:white" class="btnG">';
|
|
echo '<span class="boutonsWebmaster" >';
|
|
echo ' <i class="fad fa-upload" ></i>';
|
|
echo '<span onClick="top.location.href=\'./frmAdmin.php?affAdmin=2&numeroMenuPrpal=31&numeroSousMenu=32&jeViensDe=news&theIdPage=5\';" >';
|
|
echo ' Modifier le corps du message';
|
|
echo '</span>';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Message corps
|
|
// -----------------------------------------------------
|
|
echo '<div class="libChampsWebmaster" style="grid-column:2" >';
|
|
$file_path="../Publication/newsLetter/NewsLetter_" .$_SESSION['lgCouranteCode']. ".php";
|
|
if (file_exists($file_path)) include($file_path);
|
|
else {
|
|
// Afficher un message d'erreur si le fichier n'existe pas
|
|
$adminMsg .= '<span style="color: red;">Le fichier spécifié est introuvable.</span>';
|
|
}
|
|
echo '</div>';
|
|
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton Modifier pdp
|
|
// -----------------------------------------------------
|
|
echo '<div style="grid-column:1; background:white" class="btnG">';
|
|
echo '<span class="boutonsWebmaster">';
|
|
echo ' <i class="fad fa-upload" ></i>';
|
|
echo '<span onClick="top.location.href=\'./frmAdmin.php?affAdmin=2&numeroMenuPrpal=31&numeroSousMenu=32&jeViensDe=pdp&theIdPage=4\';"> Modifier le pied de page</span> ';
|
|
echo '</span>';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
// -----------------------------------------------------
|
|
// Modifier pdp
|
|
// -----------------------------------------------------
|
|
echo '<span class="libChampsWebmaster" style="grid-column:2">';
|
|
$file_path="../Publication/piedDePageMail/pdpMail_" .$_SESSION['lgCouranteCode']. ".php";
|
|
if (file_exists($file_path)) include($file_path);
|
|
else {
|
|
// Afficher un message d'erreur si le fichier n'existe pas
|
|
$adminMsg .= '<span style="color: red;">Le fichier pied de page est introuvable.</span>';
|
|
}
|
|
echo '</span>';
|
|
|
|
// -----------------------------------------------------
|
|
// Désabonnement
|
|
// -----------------------------------------------------
|
|
echo '<div style="grid-column:1; background:white" class="btnG">⬇️<b> Désabonnement</b> :</div>';
|
|
echo '<div class="libChampsWebmaster" style="grid-column:2; padding-top:10px; padding-bottom:10px;" >';
|
|
$desabo=($messages[1]);
|
|
$desabo= gTranslate($desabo, strtolower( substr ($_SESSION['lgCouranteCode'], 0, -1) ) ) ;
|
|
// echo $desabo;
|
|
echo '<input class="inputWebmaster" style="width:100%;grid-column:1 / span 2;" type="text" name="desabo" id="desabo" value="' .htmlspecialchars($desabo). '" >';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
?>
|