Clean code
This commit is contained in:
parent
c58d901b6b
commit
2c74444b1d
8 changed files with 27 additions and 237 deletions
|
|
@ -557,7 +557,6 @@ class ExternalModules
|
|||
$urldownload = 'https://www.dolistore.com/_service_download.php?t=free&p='.$reg[1];
|
||||
$download_link .= '<a class="paddingleft paddingright valignmiddle" target="_blank" title="'.$langs->trans("Download").'" href="'.$urldownload.'" rel="noopener noreferrer">';
|
||||
$download_link .= img_picto('', 'download', 'class="size2x paddingright"');
|
||||
//$download_link .= '<img width="32" src="'.DOL_URL_ROOT.'/admin/remotestore/img/download.png" />';
|
||||
$download_link .= '</a>';
|
||||
}
|
||||
}
|
||||
|
|
@ -569,7 +568,6 @@ class ExternalModules
|
|||
$download_link .= '</a>';
|
||||
$download_link .= '<a class="paddingleft paddingright" target="_blank" title="'.$langs->trans("Download").'" href="'.$urldownload.'" rel="noopener noreferrer">';
|
||||
$download_link .= img_picto('', 'download', 'class="size2x paddingright"');
|
||||
//$download_link .= '<img width="32" src="'.DOL_URL_ROOT.'/admin/remotestore/img/download.png" />';
|
||||
$download_link .= '</a>';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -406,7 +406,7 @@ foreach ($moduleList as $module) {
|
|||
if (getDolGlobalString('MAIN_SHOW_PERMISSION')) {
|
||||
if (empty($langs->tab_translate[$translationKey])) {
|
||||
$tooltip = 'Missing translation (key '.$translationKey.' not found in admin.lang)';
|
||||
$idperms .= ' <img src="../../theme/eldy/img/warning.png" alt="Warning" title="'.$tooltip.'">';
|
||||
$idperms .= ' <img src="../../theme/common/img/warning.png" alt="Warning" title="'.$tooltip.'">';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ jQuery(document).ready(function() {
|
|||
getimgurl = $.ajax({
|
||||
type: "GET",
|
||||
data: { token: \'notrequired\' },
|
||||
url: \''.DOL_URL_ROOT.'/theme/eldy/img/help.png\',
|
||||
url: \''.DOL_URL_ROOT.'/theme/common/img/help.png\',
|
||||
cache: false,
|
||||
/* async: false, */
|
||||
/* crossDomain: true,*/
|
||||
|
|
|
|||
|
|
@ -1,208 +0,0 @@
|
|||
<?php
|
||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/comm/contact.php
|
||||
* \ingroup commercial
|
||||
* \brief Liste des contacts
|
||||
*/
|
||||
|
||||
// Load Dolibarr environment
|
||||
require '../main.inc.php';
|
||||
|
||||
/**
|
||||
* @var Conf $conf
|
||||
* @var DoliDB $db
|
||||
* @var HookManager $hookmanager
|
||||
* @var Translate $langs
|
||||
* @var User $user
|
||||
*/
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->load("companies");
|
||||
|
||||
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
||||
$sortorder = GETPOST('sortorder', 'aZ09comma');
|
||||
$page = GETPOSTISSET('pageplusone') ? (GETPOSTINT('pageplusone') - 1) : GETPOSTINT("page");
|
||||
if (!$sortorder) {
|
||||
$sortorder = "ASC";
|
||||
}
|
||||
if (!$sortfield) {
|
||||
$sortfield = "p.lastname";
|
||||
}
|
||||
if ($page < 0) {
|
||||
$page = 0;
|
||||
}
|
||||
$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
|
||||
$offset = $limit * $page;
|
||||
|
||||
$type = GETPOST('type', 'alpha');
|
||||
$search_lastname = GETPOST('search_nom') ? GETPOST('search_nom') : GETPOST('search_lastname'); // For backward compatibility
|
||||
$search_firstname = GETPOST('search_firstname') ? GETPOST('search_firstname') : GETPOST('search_firstname'); // For backward compatibility
|
||||
$search_company = GETPOST('search_societe') ? GETPOST('search_societe') : GETPOST('search_company'); // For backward compatibility
|
||||
$contactname = GETPOST('contactname');
|
||||
$begin = GETPOST('begin', 'alpha');
|
||||
|
||||
// Security check
|
||||
$socid = GETPOSTINT('socid');
|
||||
if ($user->socid) {
|
||||
$action = '';
|
||||
$socid = $user->socid;
|
||||
}
|
||||
|
||||
$hookmanager->initHooks(array('contactlist'));
|
||||
$result = restrictedArea($user, 'societe', $socid, '');
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('', $langs->trans("Contacts"));
|
||||
|
||||
$urlfiche = null;
|
||||
|
||||
$label = $langs->trans("Unknown"); // Ensure label is defined
|
||||
|
||||
if ($type == "c" || $type == "p") {
|
||||
$label = $langs->trans("Customers");
|
||||
$urlfiche = "card.php";
|
||||
}
|
||||
if ($type == "f") {
|
||||
$label = $langs->trans("Suppliers");
|
||||
$urlfiche = "card.php";
|
||||
}
|
||||
|
||||
/*
|
||||
* List mode
|
||||
*/
|
||||
|
||||
$sql = "SELECT s.rowid, s.nom as name, st.libelle as stcomm,";
|
||||
$sql .= " p.rowid as cidp, p.lastname, p.firstname, p.email, p.phone";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_stcomm as st,";
|
||||
$sql .= " ".MAIN_DB_PREFIX."socpeople as p";
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = p.fk_soc";
|
||||
$sql .= " WHERE s.fk_stcomm = st.id";
|
||||
$sql .= " AND p.entity IN (".getEntity('contact').")";
|
||||
if ($type == "c") {
|
||||
$sql .= " AND s.client IN (1, 3)";
|
||||
}
|
||||
if ($type == "p") {
|
||||
$sql .= " AND s.client IN (2, 3)";
|
||||
}
|
||||
if ($type == "f") {
|
||||
$sql .= " AND s.fournisseur = 1";
|
||||
}
|
||||
if (!empty($search_lastname)) {
|
||||
$sql .= " AND p.lastname LIKE '%".$db->escape($search_lastname)."%'";
|
||||
}
|
||||
if (!empty($search_firstname)) {
|
||||
$sql .= " AND p.firstname LIKE '%".$db->escape($search_firstname)."%'";
|
||||
}
|
||||
if (!empty($search_company)) {
|
||||
$sql .= " AND s.nom LIKE '%".$db->escape($search_company)."%'";
|
||||
}
|
||||
if (!empty($contactname)) { // access a partir du module de recherche
|
||||
$sql .= " AND (p.lastname LIKE '%".$db->escape($contactname)."%' OR p.firstname LIKE '%".$db->escape($contactname)."%') ";
|
||||
$sortfield = "p.lastname";
|
||||
$sortorder = "ASC";
|
||||
}
|
||||
// If the internal user must only see his customers, force searching by him
|
||||
$search_sale = 0;
|
||||
if (!$user->hasRight('societe', 'client', 'voir')) {
|
||||
$search_sale = $user->id;
|
||||
}
|
||||
// Search on sale representative
|
||||
if ($search_sale && $search_sale != '-1') {
|
||||
if ($search_sale == -2) {
|
||||
$sql .= " AND NOT EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = p.fk_soc)";
|
||||
} elseif ($search_sale > 0) {
|
||||
$sql .= " AND EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX."societe_commerciaux as sc WHERE sc.fk_soc = p.fk_soc AND sc.fk_user = ".((int) $search_sale).")";
|
||||
}
|
||||
}
|
||||
// Search on socid
|
||||
if ($socid) {
|
||||
$sql .= " AND p.fk_soc = ".((int) $socid);
|
||||
}
|
||||
|
||||
$sql .= $db->order($sortfield, $sortorder);
|
||||
$sql .= $db->plimit($limit + 1, $offset);
|
||||
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
$param = "&type=".$type;
|
||||
|
||||
$title = (getDolGlobalString('SOCIETE_ADDRESSES_MANAGEMENT') ? $langs->trans("ListOfContacts") : $langs->trans("ListOfContactsAddresses"));
|
||||
print_barre_liste($title.($label ? " (".$label.")" : ""), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num);
|
||||
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'?type='.GETPOST("type", "alpha").'" method="GET">';
|
||||
|
||||
print '<table class="liste centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Lastname", $_SERVER["PHP_SELF"], "p.lastname", $begin, $param, "", $sortfield, $sortorder);
|
||||
print_liste_field_titre("Firstname", $_SERVER["PHP_SELF"], "p.firstname", $begin, $param, "", $sortfield, $sortorder);
|
||||
print_liste_field_titre("Company", $_SERVER["PHP_SELF"], "s.nom", $begin, $param, "", $sortfield, $sortorder);
|
||||
print_liste_field_titre("Email");
|
||||
print_liste_field_titre("Phone");
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td class="liste_titre"><input class="flat" name="search_lastname" size="12" value="'.$search_lastname.'"></td>';
|
||||
print '<td class="liste_titre"><input class="flat" name="search_firstname" size="12" value="'.$search_firstname.'"></td>';
|
||||
print '<td class="liste_titre"><input class="flat" name="search_company" size="12" value="'.$search_company.'"></td>';
|
||||
print '<td class="liste_titre"> </td>';
|
||||
print '<td class="liste_titre right"><input type="image" class="liste_titre" src="'.img_picto($langs->trans("Search"), 'search.png', '', 0, 1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'"></td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$i = 0;
|
||||
while ($i < min($num, $limit)) {
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/contact/card.php?id='.$obj->cidp.'&socid='.$obj->rowid.'">'.img_object($langs->trans("ShowContact"), "contact");
|
||||
print '</a> <a href="'.DOL_URL_ROOT.'/contact/card.php?id='.$obj->cidp.'&socid='.$obj->rowid.'">'.$obj->name.'</a></td>';
|
||||
print '<td>'.dol_escape_htmltag($obj->firstname).'</td>';
|
||||
|
||||
print '<td><a href="'.$_SERVER["PHP_SELF"].'?type='.$type.'&socid='.$obj->rowid.'">'.img_object($langs->trans("ShowCompany"), "company").'</a> ';
|
||||
print '<a href="'.$urlfiche."?socid=".$obj->rowid.'">'.$obj->name."</a></td>\n";
|
||||
|
||||
print '<td>'.dol_print_email($obj->email, $obj->cidp, $obj->rowid, 'AC_EMAIL').'</td>';
|
||||
|
||||
print '<td>'.dol_print_phone($obj->phone, $obj->country_code, $obj->cidp, $obj->rowid, 'AC_TEL').' </td>';
|
||||
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</table>";
|
||||
|
||||
print '</form>';
|
||||
|
||||
$db->free($resql);
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
}
|
||||
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
|
@ -718,7 +718,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Code Client
|
||||
print '<tr><td>'.$langs->trans('CustomerCode');
|
||||
if (!empty($array_query['cust_code'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
$cust_code_str = (string) $array_query['cust_code'];
|
||||
} else {
|
||||
$cust_code_str = null;
|
||||
|
|
@ -730,7 +730,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Address Client
|
||||
print '<tr><td>'.$langs->trans('Address');
|
||||
if (!empty($array_query['cust_adress'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td><input type="text" name="cust_adress" value="'.$array_query['cust_adress'].'"/></td><td>'."\n";
|
||||
print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
|
||||
|
|
@ -739,7 +739,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Zip Client
|
||||
print '<tr><td>'.$langs->trans('Zip');
|
||||
if (!empty($array_query['cust_zip'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td><input type="text" name="cust_zip" value="'.$array_query['cust_zip'].'"/></td><td>'."\n";
|
||||
print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
|
||||
|
|
@ -748,7 +748,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// City Client
|
||||
print '<tr><td>'.$langs->trans('Town');
|
||||
if (!empty($array_query['cust_city'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td><input type="text" name="cust_city" value="'.$array_query['cust_city'].'"/></td><td>'."\n";
|
||||
print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
|
||||
|
|
@ -757,7 +757,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// State Client
|
||||
print '<tr><td>'.$langs->trans('State');
|
||||
if (!empty($array_query['cust_state'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->multiselectState('cust_state', $array_query['cust_state']);
|
||||
|
|
@ -767,7 +767,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Customer Country
|
||||
print '<tr><td>'.$langs->trans("Country");
|
||||
if (!empty($array_query['cust_country'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->multiselectCountry('cust_country', $array_query['cust_country']);
|
||||
|
|
@ -777,7 +777,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// State Customer
|
||||
print '<tr><td>'.$langs->trans('Status').' '.$langs->trans('ThirdParty');
|
||||
if (!empty($array_query['cust_status'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->advMultiselectarray(
|
||||
|
|
@ -794,7 +794,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Mother Company
|
||||
print '<tr><td>'.$langs->trans("ParentCompany");
|
||||
if (!empty($array_query['cust_mothercompany'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print '<input type="text" name="cust_mothercompany" value="'.$array_query['cust_mothercompany'].'"/>';
|
||||
|
|
@ -806,7 +806,7 @@ if ($object->fetch($id) >= 0) {
|
|||
$selected = $array_query['cust_typecust'];
|
||||
print '<tr><td>'.$langs->trans('ProspectCustomer').' '.$langs->trans('ThirdParty');
|
||||
if (!empty($array_query['cust_typecust'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
$options_array = array(
|
||||
|
|
@ -822,7 +822,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Prospection status
|
||||
print '<tr><td>'.$langs->trans('ProspectLevel');
|
||||
if (!empty($array_query['cust_prospect_status'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->multiselectProspectionStatus($array_query['cust_prospect_status'], 'cust_prospect_status');
|
||||
|
|
@ -832,7 +832,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Prospection comm status
|
||||
print '<tr><td>'.$langs->trans('StatusProsp');
|
||||
if (!empty($array_query['cust_comm_status'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->advMultiselectarray('cust_comm_status', $advTarget->type_statuscommprospect, $array_query['cust_comm_status']);
|
||||
|
|
@ -842,7 +842,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Customer Type
|
||||
print '<tr><td>'.$langs->trans("ThirdPartyType");
|
||||
if (!empty($array_query['cust_typeent'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->advMultiselectarray('cust_typeent', $formcompany->typent_array(0, "(id:<>:0)"), $array_query['cust_typeent']);
|
||||
|
|
@ -852,7 +852,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Staff number
|
||||
print '<td>'.$langs->trans("Staff");
|
||||
if (!empty($array_query['cust_effectif_id'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->advMultiselectarray("cust_effectif_id", $formcompany->effectif_array(0, "(id:<>:0)"), $array_query['cust_effectif_id']);
|
||||
|
|
@ -862,7 +862,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Sales manager
|
||||
print '<tr><td>'.$langs->trans("SalesRepresentatives");
|
||||
if (!empty($array_query['cust_saleman'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->multiselectselectSalesRepresentatives('cust_saleman', $array_query['cust_saleman'], $user);
|
||||
|
|
@ -873,7 +873,7 @@ if ($object->fetch($id) >= 0) {
|
|||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||
print '<tr><td>'.$langs->trans("DefaultLang");
|
||||
if (!empty($array_query['cust_language'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->multiselectselectLanguage('cust_language', $array_query['cust_language']);
|
||||
|
|
@ -904,7 +904,7 @@ if ($object->fetch($id) >= 0) {
|
|||
}
|
||||
print '<tr><td>'.$langs->trans($extrafieldinfo['label'][$key]);
|
||||
if (!empty($array_query['options_'.$key]) || (is_array($array_query['options_'.$key]) && count($array_query['options_'.$key]) > 0)) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
if (($extrafieldinfo['type'][$key] == 'varchar') || ($extrafieldinfo['type'][$key] == 'text')) {
|
||||
|
|
@ -973,7 +973,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// State Contact
|
||||
print '<tr><td>'.$langs->trans('Status').' '.$langs->trans('Contact');
|
||||
if (!empty($array_query['contact_status'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->advMultiselectarray(
|
||||
|
|
@ -991,7 +991,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Civility
|
||||
print '<tr><td>'.$langs->trans("UserTitle");
|
||||
if (!empty($array_query['contact_civility'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
print $formadvtargetemaling->multiselectCivility('contact_civility', $array_query['contact_civility']);
|
||||
|
|
@ -1000,14 +1000,14 @@ if ($object->fetch($id) >= 0) {
|
|||
// contact name
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans('Lastname');
|
||||
if (!empty($array_query['contact_lastname'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td><input type="text" name="contact_lastname" value="'.$array_query['contact_lastname'].'"/></td><td>'."\n";
|
||||
print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
|
||||
print '</td></tr>'."\n";
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans('Firstname');
|
||||
if (!empty($array_query['contact_firstname'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td><input type="text" name="contact_firstname" value="'.$array_query['contact_firstname'].'"/></td><td>'."\n";
|
||||
print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
|
||||
|
|
@ -1016,7 +1016,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Contact Country
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans("Country");
|
||||
if (!empty($array_query['contact_country'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $formadvtargetemaling->multiselectCountry('contact_country', $array_query['contact_country']);
|
||||
|
|
@ -1026,7 +1026,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Never send mass mailing
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans("No_Email");
|
||||
if (!empty($array_query['contact_no_email'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print $form->selectarray(
|
||||
|
|
@ -1044,7 +1044,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Contact Date Create
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans("DateCreation");
|
||||
if (!empty($array_query['contact_create_st_dt'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print '<table class="nobordernopadding"><tr>';
|
||||
|
|
@ -1059,7 +1059,7 @@ if ($object->fetch($id) >= 0) {
|
|||
// Contact update Create
|
||||
print '<tr><td>'.$langs->trans('Contact').' '.$langs->trans("DateLastModification");
|
||||
if (!empty($array_query['contact_update_st_dt'])) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>'."\n";
|
||||
print '<table class="nobordernopadding"><tr>';
|
||||
|
|
@ -1099,7 +1099,7 @@ if ($object->fetch($id) >= 0) {
|
|||
foreach ($extrafieldinfo['label'] as $key => $val) {
|
||||
print '<tr><td>'.$extrafieldinfo['label'][$key];
|
||||
if ($array_query['options_'.$key.'_cnct'] != '' || (is_array($array_query['options_'.$key.'_cnct']) && count($array_query['options_'.$key.'_cnct']) > 0)) {
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing');
|
||||
print img_picto($langs->trans('AdvTgtUse'), 'tick');
|
||||
}
|
||||
print '</td><td>';
|
||||
if (($extrafieldinfo['type'][$key] == 'varchar') || ($extrafieldinfo['type'][$key] == 'text')) {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 232 B |
BIN
htdocs/theme/common/warning.png
Normal file
BIN
htdocs/theme/common/warning.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 241 B |
|
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
Loading…
Reference in a new issue