Trad: Traduction du code client
This commit is contained in:
parent
3e66849767
commit
770a8e50c3
@ -20,6 +20,14 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/comm/clients.php
|
||||||
|
\ingroup commercial, societe
|
||||||
|
\brief Liste des clients
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -99,9 +107,9 @@ if ($result)
|
|||||||
$addu = "&page=$page&begin=$begin&search_nom=".$_GET["search_nom"];
|
$addu = "&page=$page&begin=$begin&search_nom=".$_GET["search_nom"];
|
||||||
print '<table class="liste">';
|
print '<table class="liste">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Companies"),"clients.php","s.nom",$addu,"",'');
|
print_liste_field_titre($langs->trans("Companies"),"clients.php","s.nom",$addu,"","",$sortfield);
|
||||||
print_liste_field_titre($langs->trans("Code"),"clients.php","s.code_client",$addu,"",'');
|
print_liste_field_titre($langs->trans("CustomerCode"),"clients.php","s.code_client",$addu,"","",$sortfield);
|
||||||
print_liste_field_titre($langs->trans("Town"),"clients.php","s.ville",$addu);
|
print_liste_field_titre($langs->trans("Town"),"clients.php","s.ville",$addu,"","",$sortfield);
|
||||||
print "<td> </td></tr>\n";
|
print "<td> </td></tr>\n";
|
||||||
|
|
||||||
print '<form method="get" action="clients.php">';
|
print '<form method="get" action="clients.php">';
|
||||||
@ -110,7 +118,7 @@ if ($result)
|
|||||||
print '<input type="text" name="search_nom" value="'.stripslashes($_GET["search_nom"]).'">';
|
print '<input type="text" name="search_nom" value="'.stripslashes($_GET["search_nom"]).'">';
|
||||||
print '</td><td valign="right">';
|
print '</td><td valign="right">';
|
||||||
print '<input type="text" name="search_code" value="'.$_GET["search_code"].'">';
|
print '<input type="text" name="search_code" value="'.$_GET["search_code"].'">';
|
||||||
print '</td><td colspan="2"><input type="submit">';
|
print '</td><td> </td><td align="center"><input type="submit" value="'.$langs->trans("Search").'">';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -128,7 +136,7 @@ if ($result)
|
|||||||
print "</a> <a href=\"fiche.php?socid=$obj->idp\">".stripslashes($obj->nom)."</A></td>\n";
|
print "</a> <a href=\"fiche.php?socid=$obj->idp\">".stripslashes($obj->nom)."</A></td>\n";
|
||||||
print "<td>".$obj->code_client." </td>\n";
|
print "<td>".$obj->code_client." </td>\n";
|
||||||
print "<td>".$obj->ville." </td>\n";
|
print "<td>".$obj->ville." </td>\n";
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/dossier/client/fiche.php?id='.$obj->idp.'">';
|
print '<td align="center"><a href="'.DOL_URL_ROOT.'/dossier/client/fiche.php?id='.$obj->idp.'">';
|
||||||
print img_folder();
|
print img_folder();
|
||||||
print "</a></td></tr>\n";
|
print "</a></td></tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
@ -21,6 +21,14 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/comm/contact.php
|
||||||
|
\ingroup commercial
|
||||||
|
\brief Liste des contacts
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
@ -133,7 +141,7 @@ if ($result)
|
|||||||
|
|
||||||
print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num);
|
print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num);
|
||||||
|
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");
|
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");
|
||||||
print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin,"&type=$type");
|
print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin,"&type=$type");
|
||||||
@ -150,8 +158,8 @@ if ($result)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/comm/people.php?contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.img_file();
|
print '<td><a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->cidp.'&socid='.$obj->idp.'">'.img_file();
|
||||||
print '</a> <a href="'.DOL_URL_ROOT.'/comm/people.php?contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->name.'</a></td>';
|
print '</a> <a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->name.'</a></td>';
|
||||||
print "<td>$obj->firstname</TD>";
|
print "<td>$obj->firstname</TD>";
|
||||||
|
|
||||||
print '<td><a href="contact.php?type='.$type.'&socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a> ';
|
print '<td><a href="contact.php?type='.$type.'&socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a> ';
|
||||||
|
|||||||
@ -31,3 +31,4 @@ Supplier=Supplier
|
|||||||
CompanyList=Companies' list
|
CompanyList=Companies' list
|
||||||
AddContact=Add new contact
|
AddContact=Add new contact
|
||||||
PersonalInformations=Personal data
|
PersonalInformations=Personal data
|
||||||
|
CustomerCode=Customer code
|
||||||
|
|||||||
@ -34,4 +34,5 @@ AddContact=Ajouter un contact
|
|||||||
NewSocGroup=Nouveau groupement de sociétés
|
NewSocGroup=Nouveau groupement de sociétés
|
||||||
SocGroup=Groupement de sociétés
|
SocGroup=Groupement de sociétés
|
||||||
Created=Date saisie
|
Created=Date saisie
|
||||||
PersonalInformations=Informations personnelles
|
PersonalInformations=Informations personnelles
|
||||||
|
CustomerCode=Code client
|
||||||
@ -181,7 +181,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" name="tel"></td>';
|
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" name="tel"></td>';
|
||||||
print '<td>'.$langs->trans('Fax').'</td><td><input type="text" name="fax"></td></tr>';
|
print '<td>'.$langs->trans('Fax').'</td><td><input type="text" name="fax"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Code client').'</td><td colspan="3"><input size="16" type="text" name="code_client" maxlength="15" value="'.$soc->code_client.'"></td></tr>';
|
print '<tr><td>'.$langs->trans('CustomerCode').'</td><td colspan="3"><input size="16" type="text" name="code_client" maxlength="15" value="'.$soc->code_client.'"></td></tr>';
|
||||||
print '<tr><td>'.$langs->trans('Web').'</td><td colspan="3"><input size="40" type="text" name="url"></td></tr>';
|
print '<tr><td>'.$langs->trans('Web').'</td><td colspan="3"><input size="40" type="text" name="url"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('ProfIdSiren').'</td><td><input type="text" name="siren"></td>';
|
print '<tr><td>'.$langs->trans('ProfIdSiren').'</td><td><input type="text" name="siren"></td>';
|
||||||
@ -271,7 +271,7 @@ elseif ($_GET["action"] == 'edit')
|
|||||||
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" name="tel" value="'.$soc->tel.'"></td>';
|
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" name="tel" value="'.$soc->tel.'"></td>';
|
||||||
print '<td>'.$langs->trans('Fax').'</td><td><input type="text" name="fax" value="'.$soc->fax.'"></td></tr>';
|
print '<td>'.$langs->trans('Fax').'</td><td><input type="text" name="fax" value="'.$soc->fax.'"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Code client').'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans('CustomerCode').'</td><td colspan="3">';
|
||||||
|
|
||||||
if ($soc->codeclient_modifiable == 1)
|
if ($soc->codeclient_modifiable == 1)
|
||||||
{
|
{
|
||||||
@ -416,7 +416,7 @@ else
|
|||||||
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
print '<td>'.$langs->trans('Fax').'</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print $langs->trans('Code client').'</td><td colspan="3">';
|
print $langs->trans('CustomerCode').'</td><td colspan="3">';
|
||||||
print $soc->code_client;
|
print $soc->code_client;
|
||||||
if ($soc->check_codeclient() <> 0)
|
if ($soc->check_codeclient() <> 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user