diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:10:17 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:10:17 +0200 |
commit | 1269889704386de951d7f91eb169eb1e1bb36cc0 (patch) | |
tree | ff0b0fbcf5d6cc6cb769ef25924721e348f339a5 /appli_3_alpha_old/app/include/ludo/mail_textarea.php | |
parent | c93c261a461c9a2359bdcd75f7136fcb05237106 (diff) | |
download | 2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.tar.gz 2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.tar.bz2 2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.zip |
Sous-dossier app entre old4 et old5
Diffstat (limited to 'appli_3_alpha_old/app/include/ludo/mail_textarea.php')
-rw-r--r-- | appli_3_alpha_old/app/include/ludo/mail_textarea.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/appli_3_alpha_old/app/include/ludo/mail_textarea.php b/appli_3_alpha_old/app/include/ludo/mail_textarea.php new file mode 100644 index 0000000..4861e1d --- /dev/null +++ b/appli_3_alpha_old/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="8"> +<?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> + |