";
- print '| ';
+ print ' | ';
print img_object($langs->trans("ShowProspect"),"company");
print ' '.$obj->nom.' | ';
print "".$obj->ville." | ";
@@ -174,7 +174,7 @@ if ($result)
print "";
$sts = array(-1,0,1,2,3);
- print '';
+ print ' | ';
foreach ($sts as $key => $value)
{
if ($value <> $obj->fk_stcomm)
diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 1dd7acb68d9..77f65be05ea 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -215,7 +215,7 @@ if ($account > 0)
print ' | | ';
print ' | ';
print ' | ';
- print ' | ';
+ print ' | ';
print '';
if ($user->rights->banque->modifier)
{
diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php
index f67d36e44fa..70ad8c86838 100644
--- a/htdocs/compta/bank/search.php
+++ b/htdocs/compta/bank/search.php
@@ -35,42 +35,47 @@ $user->getrights('banque');
if (!$user->rights->banque->lire)
accessforbidden();
+$description=$_POST["description"];
+$debit=$_POST["debit"];
+$credit=$_POST["credit"];
+$type=$_POST["type"];
+$account=$_POST["account"];
+
llxHeader();
-if ($vline) {
- $viewline = $vline;
-} else {
- $viewline = 50;
-}
+if ($vline) $viewline = $vline;
+else $viewline = 50;
-print_titre("Recherche écriture bancaire");
+
+print_titre($langs->trans("SearchBankMovement"));
print ' ';
-print '';
-print "";
-print '| Date | '.$langs->trans("Description").' | ';
-print ''.$langs->trans("Debit").' | ';
-print ''.$langs->trans("Credit").' | ';
-print "".$langs->trans("Type")." | ";
-print ''.$langs->trans("Account").' | ';
+print '';
+print '';
+print '| '.$langs->trans("Date").' | ';
+print ''.$langs->trans("Description").' | ';
+print ''.$langs->trans("Debit").' | ';
+print ''.$langs->trans("Credit").' | ';
+print ''.$langs->trans("Type").' | ';
+print ''.$langs->trans("Account").' | ';
print " \n";
?>
";
// Si accès issu d'une recherche et rien de trouvé
-if ($_POST["submit"] && ! $num) {
+if ($_POST["action"] == "search" && ! $num) {
print "Aucune écriture bancaire répondant aux critères n'a été trouvée.";
}
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index e3d409282b4..1c51f67d34b 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -1636,7 +1636,7 @@ else
print_barre_liste($langs->trans("BillsCustomers")." ".($socidp?" $soc->nom":""),$page,"facture.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0;
- print '';
+ print '';
print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"f.facnumber","","&socidp=$socidp","",$sortfield);
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"f.datef","","&socidp=$socidp",'align="center"',$sortfield);
@@ -1650,17 +1650,17 @@ else
// Lignes des champs de filtre
print '';
diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php
index 72d87c0bf65..a80310e741a 100644
--- a/htdocs/compta/resultat/clientfourn.php
+++ b/htdocs/compta/resultat/clientfourn.php
@@ -147,7 +147,7 @@ if ($modecompta != 'CREANCES-DETTES') {
$var=!$var;
print " |   | ";
- print "".$langs->trans("Bills")." ".$langs->trans("Other")."\n";
+ print " | ".$langs->trans("Bills")." ".$langs->trans("Other")." (anciens paiements liés à aucune facture)\n";
if ($modecompta == 'CREANCES-DETTES') print " | ".price($objp->amount_ht)." | \n";
print "".price($objp->amount_ttc)." | \n";
@@ -158,17 +158,20 @@ if ($modecompta != 'CREANCES-DETTES') {
$i++;
}
}
- else {
- $var=!$var;
- print " |   | ";
- print ''.$langs->trans("None").' | ';
- print ' ';
- }
$db->free($result);
} else {
dolibarr_print_error($db);
}
}
+
+if ($total_ttc == 0)
+{
+ $var=!$var;
+ print "|   | ";
+ print ''.$langs->trans("None").' | ';
+ print ' ';
+}
+
print '';
if ($modecompta == 'CREANCES-DETTES') print '| '.price($total_ht).' | ';
print ''.price($total_ttc).' | ';
diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php
index c83560557c9..6ca392b5f2e 100644
--- a/htdocs/contact/index.php
+++ b/htdocs/contact/index.php
@@ -152,7 +152,7 @@ if ($result)
print_barre_liste($titre ,$page, "index.php", '&begin='.$_GET["begin"].'&view='.$_GET["view"].'&userid='.$_GET["userid"], $sortfield, $sortorder,'',$num);
- print '';
+ print '';
if ($contactname)
{
@@ -164,18 +164,18 @@ if ($result)
print_liste_field_titre($langs->trans("Lastname"),"index.php","p.name", $begin, "&type=$type&view=$view&search_nom=$search_nom&search_prenom=$search_prenom&search_societe=$search_societe&search_email=$search_email", "", $sortfield);
print_liste_field_titre($langs->trans("Firstname"),"index.php","p.firstname", $begin, "&type=$type&view=$view&search_nom=$search_nom&search_prenom=$search_prenom&search_societe=$search_societe&search_email=$search_email", "", $sortfield);
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom", $begin, "&type=$type&view=$view&search_nom=$search_nom&search_prenom=$search_prenom&search_societe=$search_societe&search_email=$search_email", "", $sortfield);
- print '| '.$langs->trans("Phone").' | ';
+ print ''.$langs->trans("Phone").' | ';
if ($_GET["view"] == 'phone')
{
- print ''.$langs->trans("Mobile").' | ';
- print ''.$langs->trans("Fax").' | ';
+ print ''.$langs->trans("Mobile").' | ';
+ print ''.$langs->trans("Fax").' | ';
}
else
{
print_liste_field_titre($langs->trans("EMail"),"index.php","p.email", $begin, "&type=$type&view=$view&search_nom=$search_nom&search_prenom=$search_prenom&search_societe=$search_societe&search_email=$search_email", "", $sortfield);
}
- print ' | ';
+ print ' | ';
print "\n";
// Ligne des champs de filtres
@@ -184,38 +184,38 @@ if ($result)
print '';
print '';
print '';
- print '| ';
+ print ' | ';
print '';
print ' | ';
- print '';
+ print ' | ';
print '';
print ' | ';
- print '';
+ print ' | ';
print '';
print ' | ';
- print '';
+ print ' | ';
print ' ';
print ' | ';
if ($_GET["view"] == 'phone')
{
- print '';
+ print ' | ';
print ' ';
print ' | ';
- print '';
+ print ' | ';
print ' ';
print ' | ';
}
else
{
- print '';
+ print ' | ';
print '';
print ' | ';
}
- print '';
- print '';
- print ' ';
+ print ' | ';
+ print '';
+ print ' ';
print ' | ';
print ' ';
print '';
diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php
index e3f05d9f1a9..bdd50d6cbaa 100644
--- a/htdocs/fourn/contact.php
+++ b/htdocs/fourn/contact.php
@@ -89,12 +89,13 @@ if ($result) {
print_barre_liste($langs->trans("ListOfContacts")." (".$langs->trans("Suppliers").")",$page, "contact.php", "",$sortfield,$sortorder,"",$num);
- print '';
- print "";
+ print '';
+ print '';
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin, "", "", $sortfield);
print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin, "", "", $sortfield);
print_liste_field_titre($langs->trans("Company"),"contact.php","lower(s.nom)", $begin, "", "", $sortfield);
- print '| '.$langs->trans("Email").' | '.$langs->trans("Phone").' | ';
+ print ''.$langs->trans("Email").' | ';
+ print ''.$langs->trans("Phone").' | ';
print " \n";
$var=True;
$i = 0;
diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php
index f7be089c41b..4e7e81e469d 100644
--- a/htdocs/fourn/facture/index.php
+++ b/htdocs/fourn/facture/index.php
@@ -152,7 +152,7 @@ if ($result)
print_barre_liste($langs->trans("BillsSuppliers").($socid?" $soc->nom":""),$page,"index.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
- print '';
+ print '';
print '';
print_liste_field_titre($langs->trans("Ref"),"index.php","facnumber","&socid=$socid","","",$sortfield);
print_liste_field_titre($langs->trans("Date"),"index.php","fac.datef","&socid=$socid","","",$sortfield);
@@ -166,20 +166,20 @@ if ($result)
// Lignes des champs de filtre
print '';
diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php
index 64ae3d7d219..234844da1af 100644
--- a/htdocs/fourn/index.php
+++ b/htdocs/fourn/index.php
@@ -57,15 +57,8 @@ if ($page == -1) { $page = 0 ; }
$offset = $conf->liste_limit * $page ;
$pageprev = $page - 1;
$pagenext = $page + 1;
-
-if ($sortorder == "")
-{
- $sortorder="ASC";
-}
-if ($sortfield == "")
-{
- $sortfield="nom";
-}
+if (! $sortorder) $sortorder="ASC";
+if (! $sortfield) $sortfield="nom";
/*
@@ -105,19 +98,19 @@ if ($result)
print_barre_liste($langs->trans("ListOfSuppliers"), $page, "index.php", "", $sortfield, $sortorder, '', $num);
- print '';
+ print '';
print '';
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","",'valign="center"',$sortfield);
- print '| '.$langs->trans("Town").' | ';
- print ' | ';
+ print ''.$langs->trans("Town").' | ';
+ print ' | ';
print " \n";
print '';
print '';
print ' ';
diff --git a/htdocs/langs/en_US/banks.lang b/htdocs/langs/en_US/banks.lang
index 7a1dc399dc2..ddb553d1c9b 100644
--- a/htdocs/langs/en_US/banks.lang
+++ b/htdocs/langs/en_US/banks.lang
@@ -27,3 +27,4 @@ StandingOrderProcessed=Processed
NewAccount=New account
NewFinancialAccount=New financial account
AccountSetup=Account setup
+SearchBankMovement=search bank movement
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/banks.lang b/htdocs/langs/fr_FR/banks.lang
index 22fea5585f4..24a938c0f3f 100644
--- a/htdocs/langs/fr_FR/banks.lang
+++ b/htdocs/langs/fr_FR/banks.lang
@@ -27,3 +27,4 @@ StandingOrderProcessed=Trait
NewAccount=Nouveau compte
NewFinancialAccount=Nouveau compte financier
AccountSetup=Configuration des comptes
+SearchBankMovement=Recherche écriture bancaire
diff --git a/htdocs/societe.php b/htdocs/societe.php
index a640e51ebe2..9fceab686b4 100644
--- a/htdocs/societe.php
+++ b/htdocs/societe.php
@@ -102,7 +102,10 @@ if ($mode == 'search')
$socid = $user->societe_id;
}
}
-if ($_POST["button_removefilter"] == $langs->trans("RemoveFilter")) {
+
+// As-t-on cliqué sur purge des criètres de recherche
+if (isset($_POST["button_removefilter_x"]))
+{
$socname="";
$search_nom="";
$search_ville="";
@@ -161,29 +164,29 @@ if ($result)
print_barre_liste($title, $page, "societe.php",$params,$sortfield,$sortorder,'',$num);
// Lignes des titres
- print '';
+ print '';
print '';
print_liste_field_titre($langs->trans("Company"),"societe.php","s.nom", $params,"&search_nom=$search_nom&search_ville=$search_ville","",$sortfield);
print_liste_field_titre($langs->trans("Town"),"societe.php","s.ville",$params,"&search_nom=$search_nom&search_ville=$search_ville",'',$sortfield);
print_liste_field_titre($langs->trans("SIREN"),"societe.php","s.siren",$params,"&search_nom=$search_nom&search_ville=$search_ville",'',$sortfield);
- print '| | ';
+ print ' | ';
print " \n";
// Lignes des champs de filtre
- print '';
|