Trad: Encore une page traduite

Fix: register_globals=off sur la liste des socit.
This commit is contained in:
Laurent Destailleur
2004-07-25 18:45:03 +00:00
parent 9acd63c0ee
commit bee574a26c
6 changed files with 29 additions and 17 deletions

View File

@@ -19,4 +19,5 @@ TVAIntra=Intracommunautary VAT
ProspectCustomer=Prospect / Customer ProspectCustomer=Prospect / Customer
Prospect=Prospect Prospect=Prospect
Customer=Customer Customer=Customer
Supplier=Supplier Supplier=Supplier
CompanyList=Companies' list

View File

@@ -31,6 +31,7 @@ DevelopmentTeam=Development Team
Logout=Logout Logout=Logout
Setup=Setup Setup=Setup
Alert=Alert Alert=Alert
Previous=Pr<EFBFBD>c<EFBFBD>dent Previous=Previous
Next=Suivant Next=Next
ErrorForbidden=Access is forbidden ErrorForbidden=Access is forbidden
Cards=Cards

View File

@@ -19,4 +19,5 @@ TVAIntra=Num
ProspectCustomer=Prospect / Client ProspectCustomer=Prospect / Client
Prospect=Prospect Prospect=Prospect
Customer=Client Customer=Client
Supplier=Fournisseur Supplier=Fournisseur
ComanyList=Liste des soci<63>t<EFBFBD>s

View File

@@ -33,4 +33,5 @@ Setup=Configuration
Alert=Alerte Alert=Alerte
Previous=Pr<50>c<EFBFBD>dent Previous=Pr<50>c<EFBFBD>dent
Next=Suivant Next=Suivant
ErrorForbidden=Acc<63>s non autoris<69> ErrorForbidden=Acc<63>s non autoris<69>
Cards=Fiches

View File

@@ -920,15 +920,15 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
function print_fleche_navigation($page,$file,$options='', $nextpage) function print_fleche_navigation($page,$file,$options='', $nextpage)
{ {
global $conf; global $conf, $langs;
if ($page > 0) if ($page > 0)
{ {
print '<a href="'.$file.'?page='.($page-1).$options.'"><img alt="Page pr<70>c<EFBFBD>dente" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1leftarrow.png" border="0"></a>'; print '<a href="'.$file.'?page='.($page-1).$options.'"><img alt="'.$langs->trans("Previous").'" title="'.$langs->trans("Previous").'" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1leftarrow.png" border="0"></a>';
} }
if ($nextpage > 0) if ($nextpage > 0)
{ {
print '<a href="'.$file.'?page='.($page+1).$options.'"><img alt="Page suivante" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1rightarrow.png" border="0"></a>'; print '<a href="'.$file.'?page='.($page+1).$options.'"><img alt="'.$langs->trans("Next").'" title="'.$langs->trans("Next").'" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1rightarrow.png" border="0"></a>';
} }
} }

View File

@@ -36,6 +36,10 @@ if ($user->societe_id > 0)
llxHeader(); llxHeader();
$sortorder=$_GET["sortorder"];
$sortfield=$_GET["sortfield"];
$page=$_GET["page"];
if ($sortorder == "") { if ($sortorder == "") {
$sortorder="ASC"; $sortorder="ASC";
} }
@@ -49,6 +53,10 @@ $offset = $conf->liste_limit * $page ;
$pageprev = $page - 1; $pageprev = $page - 1;
$pagenext = $page + 1; $pagenext = $page + 1;
$langs->load("companies");
$langs->load("customers");
$langs->load("suppliers");
/* /*
* Recherche * Recherche
@@ -106,7 +114,7 @@ if ($result)
$params = "&amp;socname=$socname"; $params = "&amp;socname=$socname";
print_barre_liste("Liste des societes", $page, $PHP_SELF,$params,$sortfield,$sortorder,'',$num); print_barre_liste($langs->trans("CompanyList"), $page, $PHP_SELF,$params,$sortfield,$sortorder,'',$num);
if ($sortorder == "DESC") if ($sortorder == "DESC")
{ {
@@ -117,13 +125,13 @@ if ($result)
$sortorder="DESC"; $sortorder="DESC";
} }
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td>'; print '<td>';
print_liste_field_titre("Soci<EFBFBD>t<EFBFBD>",$PHP_SELF,"s.nom", $params); print_liste_field_titre($langs->trans("Company"),$PHP_SELF,"s.nom", $params);
print "</td><td>"; print "</td><td>";
print_liste_field_titre("Ville",$PHP_SELF,"s.ville",$params); print_liste_field_titre($langs->trans("Town"),$PHP_SELF,"s.ville",$params);
print '</td><td colspan="2" align="center">Fiches</td>'; print '</td><td colspan="2" align="center">'.$langs->trans("Cards").'</td>';
print "</tr>\n"; print "</tr>\n";
$var=True; $var=True;
@@ -139,11 +147,11 @@ if ($result)
print '<td align="center">'; print '<td align="center">';
if ($obj->client==1) if ($obj->client==1)
{ {
print "<a href=\"comm/fiche.php?socid=$obj->idp\">Client</a>\n"; print "<a href=\"comm/fiche.php?socid=$obj->idp\">".$langs->trans("Customer")."</a>\n";
} }
elseif ($obj->client==2) elseif ($obj->client==2)
{ {
print "<a href=\"comm/prospect/fiche.php?id=$obj->idp\">Prospect</a>\n"; print "<a href=\"comm/prospect/fiche.php?id=$obj->idp\">".$langs->trans("Prospect")."</a>\n";
} }
else else
{ {
@@ -152,7 +160,7 @@ if ($result)
print "</td><td align=\"center\">"; print "</td><td align=\"center\">";
if ($obj->fournisseur) if ($obj->fournisseur)
{ {
print '<a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->idp.'">fournisseur</a>'; print '<a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->idp.'">'.$langs->trans("Supplier").'</a>';
} }
else else
{ {