From 83b5c193f76646f0b62ce088fb1173b2886515c4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Jul 2013 14:00:08 +0200 Subject: [PATCH] Fix: move search_ville into search_town (search_ville no more used into 3.5). --- htdocs/comm/propal/list.php | 28 +++++++++++++++------------- htdocs/comm/prospect/list.php | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index e15f22220f1..a911797fd49 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -54,7 +54,7 @@ $search_refcustomer=GETPOST('search_refcustomer','alpha'); $search_societe=GETPOST('search_societe','alpha'); $search_montant_ht=GETPOST('search_montant_ht','alpha'); $search_author=GETPOST('search_author','alpha'); -$search_ville=GETPOST('search_ville','alpha'); +$search_town=GETPOST('search_town','alpha'); $sall=GETPOST("sall"); $mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg")); @@ -102,7 +102,7 @@ if (GETPOST("button_removefilter_x")) $search_societe=''; $search_montant_ht=''; $search_author=''; - $search_ville=''; + $search_town=''; $year=''; $month=''; } @@ -159,9 +159,9 @@ if (! $user->rights->societe->client->voir && ! $socid) //restriction { $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; } -if ($search_ville) //restriction +if ($search_town) //restriction { - $sql.= " AND s.town LIKE '%".$db->escape(trim($search_ville))."%'"; + $sql.= " AND s.town LIKE '%".$db->escape(trim($search_town))."%'"; } if ($search_ref) { @@ -235,7 +235,7 @@ if ($result) if ($search_sale > 0) $param.='&search_sale='.$search_sale; if ($search_montant_ht) $param.='&search_montant_ht='.$search_montant_ht; if ($search_author) $param.='&search_author='.$search_author; - if ($search_ville) $param.='&search_ville='.$search_ville; + if ($search_town) $param.='&search_town='.$search_town; print_barre_liste($langs->trans('ListOfProposals').' '.($socid?'- '.$soc->nom:''), $page, $_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num); // Lignes des champs de filtre @@ -288,7 +288,7 @@ if ($result) print ''; print ''; print ''; - print ''; + print ' '; print ''; print ''; print ''; @@ -302,7 +302,7 @@ if ($result) print ''; print ''; print ''; - + print ''; print ''; print ''; @@ -353,16 +353,18 @@ if ($result) print ''; print $companystatic->getNomUrl(1,'customer'); print ''; - + + // Town print ''; print $objp->town; print ''; + // Customer ref - print ''; + print ''; print $objp->ref_client; print ''; - // Date propale + // Date proposal print ''; $y = dol_print_date($db->jdate($objp->dp),'%Y'); $m = dol_print_date($db->jdate($objp->dp),'%m'); @@ -374,7 +376,7 @@ if ($result) print ' '; print $y."\n"; - // Date fin validite + // Date end validity if ($objp->dfv) { print ''.dol_print_date($db->jdate($objp->dfv),'day'); @@ -421,9 +423,9 @@ if ($result) print ''.price($total).''; print ''; } - + } - + print ''; print ''; diff --git a/htdocs/comm/prospect/list.php b/htdocs/comm/prospect/list.php index 873ef051612..ab42c2ffdaa 100755 --- a/htdocs/comm/prospect/list.php +++ b/htdocs/comm/prospect/list.php @@ -243,7 +243,7 @@ if ($resql) llxHeader('',$langs->trans("ThirdParty"),$help_url); } - $param='&stcomm='.$stcomm.'&search_nom='.urlencode($search_nom).'&search_zipcode='.urlencode($search_zipcode).'&search_ville='.urlencode($search_ville); + $param='&stcomm='.$stcomm.'&search_nom='.urlencode($search_nom).'&search_zipcode='.urlencode($search_zipcode).'&search_town='.urlencode($search_town); // Store the status filter in the URL if (isSet($search_cstc)) {