mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-14 21:41:23 +01:00
Trad: Encore une page traduite
Fix: register_globals=off sur la liste des socit.
This commit is contained in:
@@ -20,3 +20,4 @@ ProspectCustomer=Prospect / Customer
|
||||
Prospect=Prospect
|
||||
Customer=Customer
|
||||
Supplier=Supplier
|
||||
CompanyList=Companies' list
|
||||
@@ -31,6 +31,7 @@ DevelopmentTeam=Development Team
|
||||
Logout=Logout
|
||||
Setup=Setup
|
||||
Alert=Alert
|
||||
Previous=Pr<EFBFBD>c<EFBFBD>dent
|
||||
Next=Suivant
|
||||
Previous=Previous
|
||||
Next=Next
|
||||
ErrorForbidden=Access is forbidden
|
||||
Cards=Cards
|
||||
@@ -20,3 +20,4 @@ ProspectCustomer=Prospect / Client
|
||||
Prospect=Prospect
|
||||
Customer=Client
|
||||
Supplier=Fournisseur
|
||||
ComanyList=Liste des soci<63>t<EFBFBD>s
|
||||
@@ -34,3 +34,4 @@ Alert=Alerte
|
||||
Previous=Pr<50>c<EFBFBD>dent
|
||||
Next=Suivant
|
||||
ErrorForbidden=Acc<63>s non autoris<69>
|
||||
Cards=Fiches
|
||||
@@ -920,15 +920,15 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
|
||||
|
||||
function print_fleche_navigation($page,$file,$options='', $nextpage)
|
||||
{
|
||||
global $conf;
|
||||
global $conf, $langs;
|
||||
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)
|
||||
{
|
||||
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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@ if ($user->societe_id > 0)
|
||||
|
||||
llxHeader();
|
||||
|
||||
$sortorder=$_GET["sortorder"];
|
||||
$sortfield=$_GET["sortfield"];
|
||||
$page=$_GET["page"];
|
||||
|
||||
if ($sortorder == "") {
|
||||
$sortorder="ASC";
|
||||
}
|
||||
@@ -49,6 +53,10 @@ $offset = $conf->liste_limit * $page ;
|
||||
$pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("customers");
|
||||
$langs->load("suppliers");
|
||||
|
||||
|
||||
/*
|
||||
* Recherche
|
||||
@@ -106,7 +114,7 @@ if ($result)
|
||||
|
||||
$params = "&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")
|
||||
{
|
||||
@@ -117,13 +125,13 @@ if ($result)
|
||||
$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 '<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_liste_field_titre("Ville",$PHP_SELF,"s.ville",$params);
|
||||
print '</td><td colspan="2" align="center">Fiches</td>';
|
||||
print_liste_field_titre($langs->trans("Town"),$PHP_SELF,"s.ville",$params);
|
||||
print '</td><td colspan="2" align="center">'.$langs->trans("Cards").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
@@ -139,11 +147,11 @@ if ($result)
|
||||
print '<td align="center">';
|
||||
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)
|
||||
{
|
||||
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
|
||||
{
|
||||
@@ -152,7 +160,7 @@ if ($result)
|
||||
print "</td><td align=\"center\">";
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user