Esempio n. 1
0
        dol_print_error($db);
    }
}
if ($_POST["button_removefilter"]) {
    $search_lastname = '';
    $search_firstname = '';
    $search_email = '';
}
/*
 * View
 */
llxHeader('', $langs->trans("Mailing"), 'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
$form = new Form($db);
$formmailing = new FormMailing($db);
if ($object->fetch($id) >= 0) {
    $head = emailing_prepare_head($object);
    dol_fiche_head($head, 'targets', $langs->trans("Mailing"), 0, 'email');
    print '<table class="border" width="100%">';
    $linkback = '<a href="' . DOL_URL_ROOT . '/comm/mailing/list.php">' . $langs->trans("BackToList") . '</a>';
    print '<tr><td width="25%">' . $langs->trans("Ref") . '</td>';
    print '<td colspan="3">';
    print $form->showrefnav($object, 'id', $linkback);
    print '</td></tr>';
    print '<tr><td width="25%">' . $langs->trans("MailTitle") . '</td><td colspan="3">' . $object->titre . '</td></tr>';
    print '<tr><td width="25%">' . $langs->trans("MailFrom") . '</td><td colspan="3">' . dol_print_email($object->email_from, 0, 0, 0, 0, 1) . '</td></tr>';
    // Errors to
    print '<tr><td width="25%">' . $langs->trans("MailErrorsTo") . '</td><td colspan="3">' . dol_print_email($object->email_errorsto, 0, 0, 0, 0, 1);
    print '</td></tr>';
    // Status
    print '<tr><td width="25%">' . $langs->trans("Status") . '</td><td colspan="3">' . $object->getLibStatut(4) . '</td></tr>';
    // Nb of distinct emails
Esempio n. 2
0
 *		\brief      Page with log information for emailing
 */
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/comm/mailing/class/mailing.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/emailing.lib.php';
$langs->load("mails");
// Security check
if (!$user->rights->mailing->lire || $user->societe_id > 0) {
    accessforbidden();
}
/*
 * View
 */
llxHeader('', $langs->trans("Mailing"), 'EN:Module_EMailing|FR:Module_Mailing|ES:M&oacute;dulo_Mailing');
$form = new Form($db);
$mil = new Mailing($db);
if ($mil->fetch($_REQUEST["id"]) >= 0) {
    $head = emailing_prepare_head($mil);
    dol_fiche_head($head, 'info', $langs->trans("Mailing"), 0, 'email');
    print '<table width="100%"><tr><td>';
    $mil->user_creation = $mil->user_creat;
    $mil->date_creation = $mil->date_creat;
    $mil->user_validation = $mil->user_valid;
    $mil->date_validation = $mil->date_valid;
    dol_print_object_info($mil);
    print '</td></tr></table>';
    print '</div>';
}
llxFooter();
$db->close();