summaryrefslogtreecommitdiff
path: root/beta_old1/app/include/ludo/mail_textarea.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:26:37 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:26:37 +0200
commit19cdd5e2fde57d53f05570cd50f5ffd223182566 (patch)
treeed6a50c73c16b3c5a2cee8c8954e46268c256ee3 /beta_old1/app/include/ludo/mail_textarea.php
parent3c8d3719af0f77f8a01881b022e548d3a7d4604e (diff)
download2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.tar.gz
2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.tar.bz2
2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.zip
Renommage pour diff entre appli_3_alpha_old et beta_old1
Diffstat (limited to 'beta_old1/app/include/ludo/mail_textarea.php')
-rw-r--r--beta_old1/app/include/ludo/mail_textarea.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/beta_old1/app/include/ludo/mail_textarea.php b/beta_old1/app/include/ludo/mail_textarea.php
new file mode 100644
index 0000000..cf4b6d7
--- /dev/null
+++ b/beta_old1/app/include/ludo/mail_textarea.php
@@ -0,0 +1,44 @@
+<?php
+require_once('session_verify.inc.php');
+include('config.inc.php');
+//~ require_once('/home/lud/shares/public_html/awor/appli_3_alpha/include/connect.inc.php');
+
+//include('include/connect.inc.php');
+
+if ( isset($_GET['model']) ) { $model=$_GET['model']; } else { $model='empty'; }
+?>
+
+<textarea name="msgText" cols="80" rows="15">
+<?php
+ if ( $model != 'empty')
+ {
+ include('../connect.inc.php');
+ if ( ! isset($CONFIG['MAIL']['TEMPLATES'][$model]['tpl_file']) )
+ {
+ echo 'Désolé, modèle indisponible...';
+ }
+ else
+ {
+ // On récupère quelques information à propos de la réunion pour que les templates puissent être customisés
+ $objetR=$ordreJourR=$lieuR=$remarquesR="";
+ if (isset( $_GET['idR']) )
+ {
+ $idR=addslashes($_GET['idR']);
+ $result = mysql_query("SELECT objetR, ordreJourR, lieuR, remarquesR FROM Reunion WHERE idR='$idR'");
+ if (mysql_num_rows($result)===1)
+ {
+ list($objetR, $ordreJourR, $lieuR, $remarquesR) = mysql_fetch_array($result);
+ }
+ }
+ //echo 'DEBUG : ../../templates/' . $CONFIG['MAIL']['TEMPLATES'][$model]['tpl_file'] . "\n";
+ if (!@include('../../templates/' . $CONFIG['MAIL']['TEMPLATES'][$model]['tpl_file']) )
+ {
+ echo 'Désolé, impossible de charger le fichier modèle...';
+ }
+ }
+ }
+ //print_r($_REQUEST);
+ //print_r($CONFIG);
+?>
+</textarea>
+