";
- print '| ' . $obj->email . ' | ';
- print '' . $obj->lastname . ' | ';
- print '' . $obj->firstname . ' | ';
- print '' . $obj->other . ' | ';
- print '';
- if (empty($obj->source_id) || empty($obj->source_type)) {
- print $obj->source_url; // For backward compatibility
- } else {
-
- if ($obj->source_type == 'thirdparty') {
- include_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
- $m = new Societe($db);
- $m->fetch($obj->source_id);
- print $m->getNomUrl(1);
- } elseif ($obj->source_type == 'contact') {
- include_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php';
- $m = new Contact($db);
- $m->fetch($obj->source_id);
- print $m->getNomUrl(1);
- }
- }
- print ' | ';
-
- // Statut pour l'email destinataire (Attentioon != statut du mailing)
- if ($obj->statut == 0) {
- print ' | ';
- print '' . $langs->trans("MailingStatusNotSent");
- if ($user->rights->mailing->creer) {
- print '' . img_delete($langs->trans("RemoveRecipient"));
- }
- print ' | ';
- } else {
- print '' . $obj->date_envoi . ' | ';
- print '';
- if ($obj->statut == - 1)
- print $langs->trans("MailingStatusError") . ' ' . img_error();
- if ($obj->statut == 1)
- print $langs->trans("MailingStatusSent") . ' ' . img_picto($langs->trans("MailingStatusSent"), 'statut4');
- if ($obj->statut == 2)
- print $langs->trans("MailingStatusRead") . ' ' . img_picto($langs->trans("MailingStatusRead"), 'statut6');
- if ($obj->statut == 3)
- print $langs->trans("MailingStatusNotContact") . ' ' . img_picto($langs->trans("MailingStatusNotContact"), 'statut8');
- print ' | ';
- }
- print '
';
-
- $i ++;
- }
- } else {
- print '