Clean code
This commit is contained in:
parent
f850f058fa
commit
c4e8866727
@ -21,7 +21,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/comm/mailing/index.php
|
* \file htdocs/comm/mailing/index.php
|
||||||
* \ingroup mailing
|
* \ingroup mailing
|
||||||
* \brief Page accueil de la zone mailing
|
* \brief Home page for emailing area
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
@ -34,8 +34,9 @@ $hookmanager = new HookManager($db);
|
|||||||
$hookmanager->initHooks(array('mailingindex'));
|
$hookmanager->initHooks(array('mailingindex'));
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('commercial', 'orders'));
|
$langs->loadLangs(array('commercial', 'orders', 'mails'));
|
||||||
|
|
||||||
|
$object = new Mailing($db);
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$result = restrictedArea($user, 'mailing');
|
$result = restrictedArea($user, 'mailing');
|
||||||
@ -46,9 +47,11 @@ $result = restrictedArea($user, 'mailing');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$help_url = 'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing';
|
$help_url = 'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing';
|
||||||
llxHeader('', 'EMailing', $help_url);
|
$title = $langs->trans('MailingArea');
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("MailingArea"));
|
llxHeader('', $title, $help_url);
|
||||||
|
|
||||||
|
print load_fiche_titre($title);
|
||||||
|
|
||||||
//print '<table class="notopnoleftnoright" width="100%">';
|
//print '<table class="notopnoleftnoright" width="100%">';
|
||||||
//print '<tr><td valign="top" width="30%" class="notopnoleft">';
|
//print '<tr><td valign="top" width="30%" class="notopnoleft">';
|
||||||
@ -190,19 +193,9 @@ if ($result) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//print '</td></tr></table>';
|
|
||||||
print '</div></div></div>';
|
print '</div></div></div>';
|
||||||
|
|
||||||
|
|
||||||
if ($langs->file_exists("html/spam.html", 0)) {
|
|
||||||
print "<br><br><br><br>".$langs->trans("Note")."<br>";
|
|
||||||
print '<div style="padding: 4px; background: #FAFAFA; border: 1px solid #BBBBBB;" >';
|
|
||||||
dol_print_file($langs, "html/spam.html", 0);
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '<br>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$parameters = array('user' => $user);
|
$parameters = array('user' => $user);
|
||||||
$reshook = $hookmanager->executeHooks('dashboardEmailings', $parameters, $object); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('dashboardEmailings', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user