2
0
forked from Wavyzz/dolibarr

according to new tree directory

This commit is contained in:
Philippe Grand
2010-05-03 08:43:32 +00:00
parent 8a9fe373d6
commit a981577553
49 changed files with 1768 additions and 51 deletions

View File

@@ -787,7 +787,7 @@ if ($_POST['addfile'])
{
$mesg = '<div class="ok">'.$langs->trans("FileTransferComplete").'</div>';
include_once(DOL_DOCUMENT_ROOT.'/html.formmail.class.php');
include_once(DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php');
$formmail = new FormMail($db);
// Add file in list of files in session
$formmail->add_attached_files($upload_dir . "/" . $_FILES['addedfile']['name'],$_FILES['addedfile']['name'],$_FILES['addedfile']['type']);
@@ -842,7 +842,7 @@ if (! empty($_POST['removedfile']))
$message = '<div class="ok">'.$langs->trans("FileWasRemoved",$filetodelete).'</div>';
//print_r($_FILES);
include_once(DOL_DOCUMENT_ROOT.'/html.formmail.class.php');
include_once(DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php');
$formmail = new FormMail($db);
$formmail->remove_attached_files($keytodelete);
}
@@ -915,7 +915,7 @@ if ($_POST['action'] == 'send' && ! $_POST['addfile'] && ! $_POST['removedfile']
}
// Create form object
include_once('../html.formmail.class.php');
include_once('../core/class/html.formmail.class.php');
$formmail = new FormMail($db);
$attachedfiles=$formmail->get_attached_files();
@@ -2280,7 +2280,7 @@ else
print_titre($langs->trans('SendOrderByMail'));
// Cree l'objet formulaire mail
include_once(DOL_DOCUMENT_ROOT.'/html.formmail.class.php');
include_once(DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php');
$formmail = new FormMail($db);
$formmail->fromtype = 'user';
$formmail->fromid = $user->id;