Code comment
This commit is contained in:
parent
0a11d52d53
commit
c67e57836e
@ -156,6 +156,7 @@ if (empty($reshook))
|
|||||||
$sql = "SELECT mc.rowid, mc.fk_mailing, mc.lastname, mc.firstname, mc.email, mc.other, mc.source_url, mc.source_id, mc.source_type, mc.tag";
|
$sql = "SELECT mc.rowid, mc.fk_mailing, mc.lastname, mc.firstname, mc.email, mc.other, mc.source_url, mc.source_id, mc.source_type, mc.tag";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."mailing_cibles as mc";
|
$sql .= " FROM ".MAIN_DB_PREFIX."mailing_cibles as mc";
|
||||||
$sql .= " WHERE mc.statut < 1 AND mc.fk_mailing = ".$object->id;
|
$sql .= " WHERE mc.statut < 1 AND mc.fk_mailing = ".$object->id;
|
||||||
|
$sql .= " ORDER BY mc.statut DESC"; // first status 0, then status -1
|
||||||
|
|
||||||
dol_syslog("card.php: select targets", LOG_DEBUG);
|
dol_syslog("card.php: select targets", LOG_DEBUG);
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|||||||
@ -171,6 +171,7 @@ if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x',
|
|||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader('',$langs->trans("Mailing"),'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
|
llxHeader('',$langs->trans("Mailing"),'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
@ -578,7 +579,7 @@ if ($object->fetch($id) >= 0)
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Statut pour l'email destinataire (Attentioon != statut du mailing)
|
// Status of recipient sending email (Warning != status of emailing)
|
||||||
if ($obj->statut == 0)
|
if ($obj->statut == 0)
|
||||||
{
|
{
|
||||||
print '<td align="center"> </td>';
|
print '<td align="center"> </td>';
|
||||||
@ -589,18 +590,22 @@ if ($object->fetch($id) >= 0)
|
|||||||
{
|
{
|
||||||
print '<td align="center">'.$obj->date_envoi.'</td>';
|
print '<td align="center">'.$obj->date_envoi.'</td>';
|
||||||
print '<td align="right" class="nowrap">';
|
print '<td align="right" class="nowrap">';
|
||||||
print $object::libStatutDest($obj->statut,2,$obj->error_text);
|
print $object::libStatutDest($obj->statut, 2, $obj->error_text);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search Icon
|
// Search Icon
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
if ($obj->statut == 0)
|
if ($obj->statut == 0) // Not sent yet
|
||||||
{
|
{
|
||||||
if ($user->rights->mailing->creer && $allowaddtarget) {
|
if ($user->rights->mailing->creer && $allowaddtarget) {
|
||||||
print '<a href="'.$_SERVER['PHP_SELF'].'?action=delete&rowid='.$obj->rowid.$param.'">'.img_delete($langs->trans("RemoveRecipient"));
|
print '<a href="'.$_SERVER['PHP_SELF'].'?action=delete&rowid='.$obj->rowid.$param.'">'.img_delete($langs->trans("RemoveRecipient")).'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*if ($obj->statut == -1) // Sent with error
|
||||||
|
{
|
||||||
|
print '<a href="'.$_SERVER['PHP_SELF'].'?action=retry&rowid='.$obj->rowid.$param.'">'.$langs->trans("Retry").'</a>';
|
||||||
|
}*/
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user