'.$conf->global->MAIN_MAIL_EMAIL_FROM;
if (!empty($conf->global->MAIN_MAIL_EMAIL_FROM) && ! isValidEmail($conf->global->MAIN_MAIL_EMAIL_FROM)) print img_warning($langs->trans("ErrorBadEMail"));
print '
';
-
+
// Errors To
$var=!$var;
print '
'.$langs->trans("MAIN_MAIL_ERRORS_TO").'
';
@@ -737,5 +737,5 @@ else
$db->close();
-llxFooter('$Date: 2011/07/09 06:10:06 $ - $Revision: 1.72 $');
+llxFooter('$Date: 2011/07/10 20:03:39 $ - $Revision: 1.73 $');
?>
diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index 0de9a763c66..3164f86d8e1 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -22,7 +22,7 @@
* \file htdocs/core/class/html.formmail.class.php
* \ingroup core
* \brief Fichier de la classe permettant la generation du formulaire html d'envoi de mail unitaire
- * \version $Id: html.formmail.class.php,v 1.30 2011/07/09 10:26:19 hregis Exp $
+ * \version $Id: html.formmail.class.php,v 1.31 2011/07/10 20:03:41 eldy Exp $
*/
require_once(DOL_DOCUMENT_ROOT ."/core/class/html.form.class.php");
@@ -124,9 +124,9 @@ class FormMail
/**
* Add a file into the list of attached files (stored in SECTION array)
*
- * @param $path
- * @param $file
- * @param $type
+ * @param string $path Full absolute path on filesystem of file, including file name
+ * @param string $file Only filename
+ * @param string $type Mime type
*/
function add_attached_files($path,$file,$type)
{
@@ -505,14 +505,26 @@ class FormMail
$out.= '
';
$out.= '
'.$langs->trans("MailFile").'
';
$out.= '
';
- //print '
';
+ // FIXME Trick to have param removedfile containing nb of image to delete. But this does not works without javascript
+ $out.= ''."\n";
+ $out.= ''."\n";
if (sizeof($listofpaths))
{
foreach($listofpaths as $key => $val)
{
$out.= '