From 52801e65027dc25160472dc46387c68202975bda Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 12 Aug 2004 22:16:30 +0000 Subject: [PATCH] Fix: Correction pour register_globals --- htdocs/product/liste.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index ab5f38fdb13..c8febe16779 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * 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 @@ -30,6 +31,8 @@ if (!$user->rights->produit->lire) * * */ +$type=$_GET["type"]; + $page = $_GET["page"]; $sortfield = $_GET["sortfield"]; $sortorder = $_GET["sortorder"]; @@ -112,7 +115,8 @@ if ($result) { llxHeader("","","Recherche Produit/Service"); - print_barre_liste("Recherche d'un produit ou service", $page, "liste.php", "&sref=$sref&snom=$snom&envente=$envente", $sortfield, $sortorder,'',$num); + $texte = "Recherche d'un produit ou service"; + print_barre_liste($texte, $page, "liste.php", "&sref=".$_POST["sref"]."&snom=".$_POST["snom"]."&envente=".$_POST["envente"], $sortfield, $sortorder,'',$num); } else { @@ -130,12 +134,12 @@ if ($result) print_barre_liste($texte, $page, "liste.php", "&sref=$sref&snom=$snom&fourn_id=$fourn_id&type=$type", $sortfield, $sortorder,'',$num); } - print ''; + print '
'; print "\n"; @@ -157,10 +161,10 @@ if ($result) print "rowid\">"; print img_file(); print " "; - print "rowid\">$objp->ref\n"; - print "\n"; - print ''; - print "\n"; + print "rowid\">$objp->ref\n"; + print "\n"; + print ''; + print "\n"; $i++; } $db->free(); @@ -170,7 +174,7 @@ if ($result) } else { - print $db->error() . "
" .$sql; + dolibarr_print_error($db); }
"; print_liste_field_titre($langs->trans("Ref"),"liste.php", "p.ref","&envente=$envente&type=$type&fourn_id=$fourn_id"); print ""; - print_liste_field_titre("Libellé","liste.php", "p.label","&envente=$envente&type=$type&fourn_id=$fourn_id"); + print_liste_field_titre($langs->trans("Label"),"liste.php", "p.label","&envente=$envente&type=$type&fourn_id=$fourn_id"); print ""; print_liste_field_titre("Prix de vente","liste.php", "p.price","&envente=$envente&type=$type&fourn_id=$fourn_id"); print "
$objp->label'.price($objp->price).'
$objp->label'.price($objp->price).'