New: Ajout d'un visuel spécifique pour les liens "contacts" et "sociétés".

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

@ -17,3 +17,7 @@ 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

@ -48,3 +48,7 @@ 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é NoSalesRepresentativeAffected=Aucun commercial particulier affecté
ShowCustomer=Show customer
ShowProspect=Show prospect
ListOfProspects=Liste des prospects
ListOfCustomers=Liste des clients

View File

@ -48,3 +48,7 @@ CustomerAccount=Compte client
SupplierAccount=Compte fournisseur SupplierAccount=Compte fournisseur
LastProspect=Derniers LastProspect=Derniers
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
ListOfCompanies=Liste des sociétés
ShowCompany=Afficher société
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é SupplierRemoved=Fournisseur supprimé
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éro de telephone à formater \param phone Numéro de telephone à formater
\return phone numéro de téléphone formaté \return phone Numéro de téléphone formaté
\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é la prise en charge les numé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)." ".substr($phone,2,2)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2);
}
elseif (strlen($phone) == 7)
{
return substr($phone,0,3)." ".substr($phone,3,2)." ".substr($phone,5,2);
}
elseif (strlen($phone) == 9)
{
return substr($phone,0,2)." ".substr($phone,2,3)." ".substr($phone,5,2)." ".substr($phone,7,2);
}
elseif (strlen($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($phone) == 12)
{
return substr($phone,0,4)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2)." ".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édié aux actions \brief Affiche logo propre à une notion (fonction géné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