New: Ajout d'un visuel spcifique pour les liens "contacts" et "socits".

This commit is contained in:
Laurent Destailleur
2005-01-30 19:42:33 +00:00
parent d95afd0a5b
commit 518fdc73e2
22 changed files with 60 additions and 37 deletions

View File

@@ -16,4 +16,8 @@ TaskRDV=Rendez-vous
TaskRDVWith=Rendez-vous with %s TaskRDVWith=Rendez-vous with %s
SalesRepresentative=Sales representative SalesRepresentative=Sales representative
ErrorWrongCode=Wrong code ErrorWrongCode=Wrong code
NoSalesRepresentativeAffected=No particular sales representative affected NoSalesRepresentativeAffected=No particular sales representative affected
ShowCustomer=Show customer
ShowProspect=Show prospect
ListOfProspects=Prospects list
ListOfCustomers=Customers list

View File

@@ -47,4 +47,8 @@ SupplierCode=Supplier code
CustomerAccount=Customer account CustomerAccount=Customer account
SupplierAccount=Supplier account SupplierAccount=Supplier account
LastProspect=Last LastProspect=Last
CompanyDeleted=Company "%s" deleted from database. CompanyDeleted=Company "%s" deleted from database.
ListOfContacts=List of contacts
ListOfCompanies=List of companies
ShowCompany=Show company
ShowContact=Show contact

View File

@@ -1,7 +1,10 @@
# Dolibarr language file - en_US - suppliers # Dolibarr language file - en_US - suppliers
Suppliers=Suppliers Suppliers=Suppliers
Supplier=Supplier
AddSupplier=Add a supplier AddSupplier=Add a supplier
SupplierRemoved=Supplier removed SupplierRemoved=Supplier removed
NewSupplier=Nes supplier NewSupplier=New supplier
History=History History=History
OrderCard=Order card OrderCard=Order card
ListOfSuppliers=List of suppliers
ShowSupplier=Show supplier

View File

@@ -17,3 +17,7 @@ TaskRDVWith=Rendez-vous avec %s
SalesRepresentative=Commercial SalesRepresentative=Commercial
ErrorWrongCode=Code incorrect ErrorWrongCode=Code incorrect
NoSalesRepresentativeAffected=Aucun commercial particulier affect<63> NoSalesRepresentativeAffected=Aucun commercial particulier affect<63>
ShowCustomer=Show customer
ShowProspect=Show prospect
ListOfProspects=Liste des prospects
ListOfCustomers=Liste des clients

View File

@@ -47,4 +47,8 @@ SupplierCode=Code fournisseur
CustomerAccount=Compte client CustomerAccount=Compte client
SupplierAccount=Compte fournisseur SupplierAccount=Compte fournisseur
LastProspect=Derniers LastProspect=Derniers
CompanyDeleted=La soci<63>t<EFBFBD> "%s" a <20>t<EFBFBD> supprim<69>e de la base. CompanyDeleted=La soci<63>t<EFBFBD> "%s" a <20>t<EFBFBD> supprim<69>e de la base.
ListOfContacts=Liste des contacts
ListOfCompanies=Liste des soci<63>t<EFBFBD>s
ShowCompany=Afficher soci<63>t<EFBFBD>
ShowContact=Afficher contact

View File

@@ -1,7 +1,10 @@
# Dolibarr language file - fr_FR - suppliers # Dolibarr language file - fr_FR - suppliers
Suppliers=Fournisseurs Suppliers=Fournisseurs
Supplier=Fournisseur
AddSupplier=Ajouter un fournisseur AddSupplier=Ajouter un fournisseur
SupplierRemoved=Fournisseur supprim<69> SupplierRemoved=Fournisseur supprim<69>
NewSupplier=Nouveau fournisseur NewSupplier=Nouveau fournisseur
History=Historique History=Historique
OrderCard=Fiche commande OrderCard=Fiche commande
ListOfSuppliers=Liste des fournisseurs
ShowSupplier=Afficher fournisseur

View File

@@ -291,49 +291,50 @@ function dolibarr_print_object_info($object)
/** /**
\brief Formatage du telephone \brief Formatage du telephone
\param phone num<EFBFBD>ro de telephone <20> formater \param phone Num<EFBFBD>ro de telephone <20> formater
\return phone num<EFBFBD>ro de t<>l<EFBFBD>phone format<61> \return phone Num<EFBFBD>ro de t<>l<EFBFBD>phone format<61>
\remarks ne tient pas en compte le format belge 02/211 34 83 \remarks Ne tient pas en compte le format belge 02/211 34 83
\remarks formattage automatique des numero non formates \remarks Formattage automatique des numero non formates
\remarks ajout<75> la prise en charge les num<75>ros de 7, 9, 11 et 12 chiffres
*/ */
function dolibarr_print_phone($phone) function dolibarr_print_phone($phone,$country="FR")
{ {
$phone=trim($phone);
if (strstr($phone, ' ')) { return $phone; } if (strstr($phone, ' ')) { return $phone; }
if (strlen(trim($phone)) == 10) { if (strtoupper($country) == "FR") {
return substr($phone,0,2)." ".substr($phone,2,2)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2); // France
if (strlen($phone) == 10) {
return substr($phone,0,2)."&nbsp;".substr($phone,2,2)."&nbsp;".substr($phone,4,2)."&nbsp;".substr($phone,6,2)."&nbsp;".substr($phone,8,2);
}
elseif (strlen($phone) == 7)
{
return substr($phone,0,3)."&nbsp;".substr($phone,3,2)."&nbsp;".substr($phone,5,2);
}
elseif (strlen($phone) == 9)
{
return substr($phone,0,2)."&nbsp;".substr($phone,2,3)."&nbsp;".substr($phone,5,2)."&nbsp;".substr($phone,7,2);
}
elseif (strlen($phone) == 11)
{
return substr($phone,0,3)."&nbsp;".substr($phone,3,2)."&nbsp;".substr($phone,5,2)."&nbsp;".substr($phone,7,2)."&nbsp;".substr($phone,9,2);
}
elseif (strlen($phone) == 12)
{
return substr($phone,0,4)."&nbsp;".substr($phone,4,2)."&nbsp;".substr($phone,6,2)."&nbsp;".substr($phone,8,2)."&nbsp;".substr($phone,10,2);
}
} }
elseif (strlen(trim($phone)) == 7)
{
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2);
}
elseif (strlen(trim($phone)) == 9)
{
return substr($phone,0,2)." ".substr($phone,2,3)." ".substr($phone,5,2)." ".substr($phone,7,2);
}
elseif (strlen(trim($phone)) == 11)
{
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2)." ".substr($phone,7,2)." ".substr($phone,9,2);
}
elseif (strlen(trim($phone)) == 12)
{
return substr($phone,0,4)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2)." ".substr($phone,10,2);
}
else
{
return $phone; return $phone;
}
} }
/** /**
\brief Affiche logo d<EFBFBD>di<EFBFBD> aux actions \brief Affiche logo propre <20> une notion (fonction g<>n<EFBFBD>rique)
\param alt Texte sur le alt de l'image
\param object Objet pour lequel il faut afficher le logo (exemple: user, group, action, bill, contract, propal, product, ...)
*/ */
function img_actions($alt = "default") function img_object($alt, $object)
{ {
global $conf,$langs; global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Rendez-vous"); return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/object_'.$object.'.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/object_actions.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
} }
/** /**

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B