diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index c5a0cc574cb..1f9d8535f5e 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -16,15 +16,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/product/liste.php \ingroup produit \brief Page liste des produits ou services - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -65,6 +63,7 @@ if ($conf->categorie->enabled && isset($_REQUEST['catid'])) $catid = $_REQUEST['catid']; } + /* * Affichage mode liste * @@ -154,213 +153,209 @@ $resql = $db->query($sql) ; if ($resql) { - $num = $db->num_rows($resql); + $num = $db->num_rows($resql); - $i = 0; + $i = 0; - if ($num == 1 && ($sall or $snom or $sref)) - { - $objp = $db->fetch_object($resql); - Header("Location: fiche.php?id=$objp->rowid"); - exit; - } - - if (isset($_GET["envente"]) || isset($_POST["envente"])) - { - $envente = (isset($_GET["envente"])?$_GET["envente"]:$_POST["envente"]); - } - - llxHeader("","",$texte); - - if ($sref || $snom || $sall || $_POST["search"]) - { - print_barre_liste($texte, $page, "liste.php", "&sref=".$sref."&snom=".$snom."&sall=".$sall."&envente=".$_POST["envente"], $sortfield, $sortorder,'',$num); - } - else - { - print_barre_liste($texte, $page, "liste.php", "&sref=$sref&snom=$snom&fourn_id=$fourn_id".(isset($type)?"&type=$type":""), $sortfield, $sortorder,'',$num); - } - - if (isset($catid)) - { - print "