summaryrefslogtreecommitdiff
path: root/final/app/sendmail.php
diff options
context:
space:
mode:
Diffstat (limited to 'final/app/sendmail.php')
-rw-r--r--final/app/sendmail.php31
1 files changed, 17 insertions, 14 deletions
diff --git a/final/app/sendmail.php b/final/app/sendmail.php
index 4aeba4a..2013a4d 100644
--- a/final/app/sendmail.php
+++ b/final/app/sendmail.php
@@ -2,6 +2,7 @@
require('include/ludo/session_verify.inc.php');
require_once('include/ludo/html_elements.inc.php');
require_once('include/connect.inc.php');
+include 'include/ludo/config.inc.php';
@@ -33,8 +34,6 @@ else
if( isset($_POST['envoi']) )
{
- include 'include/ludo/config.inc.php';
-
if ( !isset($_POST['msgObject']) || !isset($_POST['msgText']) || !is_array($_POST['dataParticipants']) )
{
$errmsg = "Erreur lors de l'émission de l'email : Paramètre manquant ou érroné";
@@ -107,7 +106,7 @@ else
<div id="contenu">
<form id="formmail" action="sendmail.php" method="post" onsubmit="return dataListe('participants','dataParticipants');">
- <table>
+ <table summary="Contacts disponibles et participants">
<tbody>
<tr>
<td>Contacts disponibles</td>
@@ -165,19 +164,23 @@ else
</tr>
</tbody>
</table>
- <div>
- Modèle :&nbsp;
+
<?php
- echo '<select name="modelsList" id="modelsList" onchange="loadlist(\'include/ludo/mail_textarea.php?idR=';
- echo $idR . "&amp;model=','modelsList','divMsg');\">\n";
+ if ( isset($CONFIG['MAIL']['TEMPLATES']) && is_array($CONFIG['MAIL']['TEMPLATES']) )
+ {
+ echo ' <div>' . "\n";
+ echo ' Mod&egrave;le :&nbsp;' . "\n";
+ echo ' <select name="modelsList" id="modelsList" onchange="loadlist(\'include/ludo/mail_textarea.php?idR=';
+ echo $idR . "&amp;model=','modelsList','divMsg');\">\n";
+ echo ' <option value="empty">Vierge</option>';
+ foreach( $CONFIG['MAIL']['TEMPLATES'] as $mail_model_id => $mail_model_par )
+ {
+ echo ' <option value="' . $mail_model_id . '">' . $mail_model_par['caption'] . "</option>\n";
+ }
+ echo ' </select>' . "\n";
+ echo ' </div>' . "\n";
+ }
?>
- <option value="empty">Vierge</option>
- <option value="cree">Nouvelle Réunion</option>
- <option value="modif">Réunion modifiée</option>
- <option value="annul">Réunion annulée</option>
- <option value="fixee">Réunion fixée</option>
- </select>
- </div>
<div>
Objet :&nbsp;<input name="msgObject" type="text" size="40" value="AWOR : Courriel de notification" />
</div>