diff --git a/htdocs/user/notify/card.php b/htdocs/user/notify/card.php index 14742c13239..3e40c0b0bd5 100644 --- a/htdocs/user/notify/card.php +++ b/htdocs/user/notify/card.php @@ -1,11 +1,12 @@ - * Copyright (C) 2004-2014 Laurent Destailleur - * Copyright (C) 2010-2014 Juanjo Menent - * Copyright (C) 2015 Marcos García - * Copyright (C) 2016 Abbes Bahfir - * Copyright (C) 2024-2025 Frédéric France - * Copyright (C) 2024 MDW +/* Copyright (C) 2003 Rodolphe Quiedeville + * Copyright (C) 2004-2014 Laurent Destailleur + * Copyright (C) 2010-2014 Juanjo Menent + * Copyright (C) 2015 Marcos García + * Copyright (C) 2016 Abbes Bahfir + * Copyright (C) 2024-2025 Frédéric France + * Copyright (C) 2024 MDW + * Copyright (C) 2026 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -159,7 +160,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/thirdpartynameonly/', $help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas'; llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-notify_card'); - +$type = array('email' => $langs->trans("EMail"), 'sms' => $langs->trans("SMS")); if ($result > 0) { $langs->load("other"); @@ -252,6 +253,7 @@ if ($result > 0) { $sql .= " AND n.entity IN (".getEntity('notify_def').')'; $resql = $db->query($sql); + $num = 0; if ($resql) { $num = $db->num_rows($resql); } else { @@ -305,7 +307,6 @@ if ($result > 0) { print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright').$form->selectarray("actionid", $actions, '', 1); print ''; print ''; - $type = array('email' => $langs->trans("EMail")); print $form->selectarray("typeid", $type); print ''; print ''; @@ -354,12 +355,7 @@ if ($result > 0) { print ''; print ''; - if ($obj->type == 'email') { - print $langs->trans("Email"); - } - if ($obj->type == 'sms') { - print $langs->trans("SMS"); - } + print $type[$obj->type]; print ''; print ''.img_delete().''; print ''; @@ -460,9 +456,9 @@ if ($result > 0) { } print '
'; - if (isset($optioncss) && $optioncss != '') { - print ''; - } + //if (isset($optioncss) && $optioncss != '') { + // print ''; + //} print ''; print ''; print ''; @@ -516,12 +512,7 @@ if ($result > 0) { print img_picto('', 'object_action', '', 0, 0, 0, '', 'pictofixedwidth').$label; print ''; print ''; - if ($obj->type == 'email') { - print $langs->trans("Email"); - } - if ($obj->type == 'sms') { - print $langs->trans("Sms"); - } + print $type[$obj->type]; print ''; // TODO Add link to object here for other types /*print '';