From 96eb39ebf745d3ea2c6aaf4e1388399c841474f7 Mon Sep 17 00:00:00 2001 From: Philippe Grand Date: Thu, 9 Jun 2011 10:22:14 +0000 Subject: [PATCH] enhancements --- htdocs/fourn/liste.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/htdocs/fourn/liste.php b/htdocs/fourn/liste.php index b2ebc102075..827aee6f43b 100644 --- a/htdocs/fourn/liste.php +++ b/htdocs/fourn/liste.php @@ -2,6 +2,7 @@ /* Copyright (C) 2001-2006 Rodolphe Quiedeville * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2011 Philippe Grand * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,11 +33,12 @@ $langs->load("suppliers"); $langs->load("orders"); $langs->load("companies"); -$socname = GETPOST("socname"); -$search_nom = GETPOST("search_nom"); -$search_ville = GETPOST("search_ville"); -$search_code_fournisseur=GETPOST("search_code_fournisseur"); -$search_compta_fournisseur=GETPOST("search_compta_fournisseur"); +$socname = GETPOST("socname"); +$search_nom = GETPOST("search_nom"); +$search_ville = GETPOST("search_ville"); +$search_code_fournisseur = GETPOST("search_code_fournisseur"); +$search_compta_fournisseur = GETPOST("search_compta_fournisseur"); +$search_datec = GETPOST("search_datec"); $langs->load("suppliers"); $langs->load("orders"); @@ -91,6 +93,8 @@ if ($search_ville) $sql .= " AND s.ville LIKE '%".$db->escape($search_ville)."%' if ($search_nom) $sql .= " AND s.nom LIKE '%".$db->escape($search_nom)."%'"; if ($search_code_fournisseur) $sql .= " AND s.code_fournisseur LIKE '%".$db->escape($search_code_fournisseur)."%'"; if ($search_compta_fournisseur) $sql .= " AND s.code_compta_fournisseur LIKE '%".$db->escape($search_compta_fournisseur)."%'"; +if ($search_datec) $sql .= " AND s.datec LIKE '%".$db->escape($search_datec)."%'"; + // Insert categ filter if ($search_categ) { @@ -131,7 +135,7 @@ if ($resql) if ($moreforfilter) { print ''; - print ''; + print ''; print $moreforfilter; print ''; } @@ -141,7 +145,7 @@ if ($resql) print_liste_field_titre($langs->trans("Town"),$_SERVER["PHP_SELF"],"s.ville","",$param,'valign="middle"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("SupplierCode"),$_SERVER["PHP_SELF"],"s.code_fournisseur","",$param,'align="left"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("AccountancyCode"),$_SERVER["PHP_SELF"],"s.code_compta_fournisseur","",$param,'align="left"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans("DateCreation"),$_SERVER["PHP_SELF"],"datec","",$param,'align="right"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans("DateCreation"),$_SERVER["PHP_SELF"],"s.datec","",$param,'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"s.status","",$params,'align="right"',$sortfield,$sortorder); print "\n"; @@ -159,7 +163,9 @@ if ($resql) print ''; print ''; - print ' '; + print ''; + print ''; + print ''; print ''; @@ -201,4 +207,4 @@ else $db->close(); llxFooter('$Date$ - $Revision$'); -?> +?> \ No newline at end of file