208 |
{ |
{ |
209 |
$msg='<div class="ok">'.$langs->trans('MailSuccessfulySent',$from,$sendto).'.</div>'; |
$msg='<div class="ok">'.$langs->trans('MailSuccessfulySent',$from,$sendto).'.</div>'; |
210 |
// Insertion action |
// Insertion action |
211 |
include_once('../contact.class.php'); |
include_once(DOL_DOCUMENT_ROOT."/contact.class.php"); |
212 |
$actioncomm = new ActionComm($db); |
$actioncomm = new ActionComm($db); |
213 |
$actioncomm->type_id = $actiontypeid; |
$actioncomm->type_id = $actiontypeid; |
214 |
$actioncomm->label = $actionmsg2; |
$actioncomm->label = $actionmsg2; |
504 |
if (!empty($propal->contactid)) |
if (!empty($propal->contactid)) |
505 |
{ |
{ |
506 |
print '<td colspan="3">'; |
print '<td colspan="3">'; |
507 |
require_once(DOL_DOCUMENT_ROOT.'/contact.class.php'); |
include_once(DOL_DOCUMENT_ROOT."/contact.class.php"); |
508 |
$contact=new Contact($db); |
$contact=new Contact($db); |
509 |
$contact->fetch($propal->contactid); |
$contact->fetch($propal->contactid); |
510 |
print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$propal->contactid.'" title="'.$langs->trans('ShowContact').'">'; |
print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$propal->contactid.'" title="'.$langs->trans('ShowContact').'">'; |