Fix: different trad if addresses management
This commit is contained in:
parent
b1de2aced2
commit
551b9c619a
@ -126,7 +126,8 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
print_barre_liste($langs->trans("ListOfContacts").($label?" (".$label.")":""),$page, $_SERVER["PHP_SELF"], "&type=$type",$sortfield,$sortorder,"",$num);
|
$title = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("ListOfContacts") : $langs->trans("ListOfContactsAddresses"));
|
||||||
|
print_barre_liste($title.($label?" (".$label.")":""),$page, $_SERVER["PHP_SELF"], "&type=$type",$sortfield,$sortorder,"",$num);
|
||||||
|
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -62,9 +62,9 @@ class ActionsContactCardDefault extends ActionsContactCardCommon
|
|||||||
|
|
||||||
$out='';
|
$out='';
|
||||||
|
|
||||||
if ($action == 'view') $out.= $langs->trans("Contact");
|
if ($action == 'view') $out.= (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contact") : $langs->trans("ContactAddress"));
|
||||||
if ($action == 'edit') $out.= $langs->trans("EditContact");
|
if ($action == 'edit') $out.= (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("EditContact") : $langs->trans("EditContactAddress"));
|
||||||
if ($action == 'create') $out.= $langs->trans("NewContact");
|
if ($action == 'create') $out.= (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress"));
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -325,7 +325,8 @@ else
|
|||||||
// Show tabs
|
// Show tabs
|
||||||
$head = contact_prepare_head($object);
|
$head = contact_prepare_head($object);
|
||||||
|
|
||||||
dol_fiche_head($head, 'card', $langs->trans("ContactsAddresses"), 0, 'contact');
|
$title = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses"));
|
||||||
|
dol_fiche_head($head, 'card', $title, 0, 'contact');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->societe->contact->creer)
|
if ($user->rights->societe->contact->creer)
|
||||||
|
|||||||
@ -62,29 +62,31 @@ $limit = $conf->liste_limit;
|
|||||||
$offset = $limit * $page;
|
$offset = $limit * $page;
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$titre=$langs->trans("ListOfContacts");
|
$titre = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("ListOfContacts") : $langs->trans("ListOfContactsAddresses"));
|
||||||
if ($type == "c")
|
if ($type == "c")
|
||||||
{
|
{
|
||||||
$titre=$langs->trans("ListOfContacts").' ('.$langs->trans("ThirdPartyCustomers").')';
|
$titre.=' ('.$langs->trans("ThirdPartyCustomers").')';
|
||||||
$urlfiche="fiche.php";
|
$urlfiche="fiche.php";
|
||||||
}
|
}
|
||||||
if ($type == "p")
|
else if ($type == "p")
|
||||||
{
|
{
|
||||||
$titre=$langs->trans("ListOfContacts").' ('.$langs->trans("ThirdPartyProspects").')';
|
$titre.=' ('.$langs->trans("ThirdPartyProspects").')';
|
||||||
$urlfiche="prospect/fiche.php";
|
$urlfiche="prospect/fiche.php";
|
||||||
}
|
}
|
||||||
if ($type == "f") {
|
else if ($type == "f")
|
||||||
$titre=$langs->trans("ListOfContacts").' ('.$langs->trans("ThirdPartySuppliers").')';
|
{
|
||||||
|
$titre.=' ('.$langs->trans("ThirdPartySuppliers").')';
|
||||||
$urlfiche="fiche.php";
|
$urlfiche="fiche.php";
|
||||||
}
|
}
|
||||||
if ($type == "o") {
|
else if ($type == "o")
|
||||||
$titre=$langs->trans("ListOfContacts").' ('.$langs->trans("OthersNotLinkedToThirdParty").')';
|
{
|
||||||
|
$titre.=' ('.$langs->trans("OthersNotLinkedToThirdParty").')';
|
||||||
$urlfiche="";
|
$urlfiche="";
|
||||||
}
|
}
|
||||||
if ($view == 'phone') { $text=" (Vue Telephones)"; }
|
if ($view == 'phone') { $text=" (Vue Telephones)"; }
|
||||||
if ($view == 'mail') { $text=" (Vue EMail)"; }
|
if ($view == 'mail') { $text=" (Vue EMail)"; }
|
||||||
if ($view == 'recent') { $text=" (Recents)"; }
|
if ($view == 'recent') { $text=" (Recents)"; }
|
||||||
$titre = $titre." $text";
|
$titre.= " $text";
|
||||||
|
|
||||||
if ($_POST["button_removefilter"])
|
if ($_POST["button_removefilter"])
|
||||||
{
|
{
|
||||||
@ -109,7 +111,8 @@ if ($search_priv < 0) $search_priv='';
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader('',$langs->trans("ContactsAddresses"),'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas');
|
$title = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses"));
|
||||||
|
llxHeader('',$title,'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas');
|
||||||
|
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -760,8 +760,8 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Contacts
|
// Contacts
|
||||||
$newmenu->add("/contact/list.php?leftmenu=contacts", $langs->trans("ContactsAddresses"), 0, $user->rights->societe->contact->lire, '', $mainmenu, 'contacts');
|
$newmenu->add("/contact/list.php?leftmenu=contacts", (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses")), 0, $user->rights->societe->contact->lire, '', $mainmenu, 'contacts');
|
||||||
$newmenu->add("/contact/fiche.php?leftmenu=contacts&action=create", $langs->trans("NewContact"), 1, $user->rights->societe->contact->creer);
|
$newmenu->add("/contact/fiche.php?leftmenu=contacts&action=create", (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress")), 1, $user->rights->societe->contact->creer);
|
||||||
$newmenu->add("/contact/list.php?leftmenu=contacts", $langs->trans("List"), 1, $user->rights->societe->contact->lire);
|
$newmenu->add("/contact/list.php?leftmenu=contacts", $langs->trans("List"), 1, $user->rights->societe->contact->lire);
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) $newmenu->add("/contact/list.php?leftmenu=contacts&type=p", $langs->trans("Prospects"), 2, $user->rights->societe->contact->lire);
|
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) $newmenu->add("/contact/list.php?leftmenu=contacts&type=p", $langs->trans("Prospects"), 2, $user->rights->societe->contact->lire);
|
||||||
$newmenu->add("/contact/list.php?leftmenu=contacts&type=c", $langs->trans("Customers"), 2, $user->rights->societe->contact->lire);
|
$newmenu->add("/contact/list.php?leftmenu=contacts&type=c", $langs->trans("Customers"), 2, $user->rights->societe->contact->lire);
|
||||||
|
|||||||
@ -92,7 +92,8 @@ if ($result)
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
print_barre_liste($langs->trans("ListOfContacts")." (".$langs->trans("Suppliers").")",$page, "contact.php", "",$sortfield,$sortorder,"",$num);
|
$title = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("ListOfContacts") : $langs->trans("ListOfContactsAddresses"));
|
||||||
|
print_barre_liste($title." (".$langs->trans("Suppliers").")",$page, "contact.php", "",$sortfield,$sortorder,"",$num);
|
||||||
|
|
||||||
print '<table class="liste" width="100%">';
|
print '<table class="liste" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -269,7 +269,8 @@ NoContactForAnyOrder=This contact is not a contact for any order
|
|||||||
NoContactForAnyProposal=This contact is not a contact for any commercial proposal
|
NoContactForAnyProposal=This contact is not a contact for any commercial proposal
|
||||||
NoContactForAnyContract=This contact is not a contact for any contract
|
NoContactForAnyContract=This contact is not a contact for any contract
|
||||||
NoContactForAnyInvoice=This contact is not a contact for any invoice
|
NoContactForAnyInvoice=This contact is not a contact for any invoice
|
||||||
NewContact=New contact/address
|
NewContact=New contact
|
||||||
|
NewContactAddress=New contact/address
|
||||||
LastContacts=Last contacts
|
LastContacts=Last contacts
|
||||||
MyContacts=My contacts
|
MyContacts=My contacts
|
||||||
Phones=Phones
|
Phones=Phones
|
||||||
|
|||||||
@ -252,7 +252,8 @@ ThisIsModuleRules=Voici les règles de ce module
|
|||||||
LastProspect=Dernier prospect
|
LastProspect=Dernier prospect
|
||||||
ProspectToContact=Prospect à contacter
|
ProspectToContact=Prospect à contacter
|
||||||
CompanyDeleted=La société "%s" a été supprimée de la base.
|
CompanyDeleted=La société "%s" a été supprimée de la base.
|
||||||
ListOfContacts=Liste des contacts/adresses
|
ListOfContacts=Liste des contacts
|
||||||
|
ListOfContactsAddresses=Liste des contacts/adresses
|
||||||
ListOfCustomersContacts=Liste des contacts clients
|
ListOfCustomersContacts=Liste des contacts clients
|
||||||
ListOfProspectsContacts=Liste des contacts prospects
|
ListOfProspectsContacts=Liste des contacts prospects
|
||||||
ListOfSuppliersContacts=Liste des contacts fournisseurs
|
ListOfSuppliersContacts=Liste des contacts fournisseurs
|
||||||
@ -270,7 +271,8 @@ NoContactForAnyOrder=Ce contact n'est contact d'aucune commande
|
|||||||
NoContactForAnyProposal=Ce contact n'est contact d'aucune proposition commerciale
|
NoContactForAnyProposal=Ce contact n'est contact d'aucune proposition commerciale
|
||||||
NoContactForAnyContract=Ce contact n'est contact d'aucun contrat
|
NoContactForAnyContract=Ce contact n'est contact d'aucun contrat
|
||||||
NoContactForAnyInvoice=Ce contact n'est contact d'aucune facture
|
NoContactForAnyInvoice=Ce contact n'est contact d'aucune facture
|
||||||
NewContact=Nouveau contact/adresse
|
NewContact=Nouveau contact
|
||||||
|
NewContactAddress=Nouveau contact/adresse
|
||||||
LastContacts=Derniers contacts
|
LastContacts=Derniers contacts
|
||||||
MyContacts=Mes contacts
|
MyContacts=Mes contacts
|
||||||
Phones=Téléphones
|
Phones=Téléphones
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user