From 0e69a0873837ab3676851b15dee144e145624e7e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 13 Apr 2005 13:39:51 +0000 Subject: [PATCH] =?UTF-8?q?Debut=20d'integration=20des=20cat=E9gories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/product/liste.php | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php index 0d3515823ae..77e597bfe70 100644 --- a/htdocs/fourn/product/liste.php +++ b/htdocs/fourn/product/liste.php @@ -118,6 +118,7 @@ if ($result) Header("Location: fiche.php?id=$objp->rowid"); } + $texte = $langs->trans("List"); llxHeader("","",$texte); @@ -130,6 +131,47 @@ if ($result) print_barre_liste($texte, $page, "liste.php", "&sref=$sref&snom=$snom&fourn_id=$fourn_id".(isset($type)?"&type=$type":""), $sortfield, $sortorder,'',$num); } + +/* + * + * + */ + if (strlen($_REQUEST['catid']) == 0) + { + $_REQUEST['catid'] = 1; + } + + $c = new Categorie ($db, $_REQUEST['catid']); + + $ways = $c->print_all_ways(' > ','fourn/product/liste.php'); + print "
"; + + print $ways[0]."
\n"; + + print "
"; + + $cats = $c->get_filles(); + + print '
'; + print '
'; + if ($cats < 0) + { + print "-"; + } + elseif (sizeof ($cats) > 0) + { + print "\n"; + foreach ($cats as $cat) + { + $i++; + print "\n"; + print "\n"; + print "\n"; + } + print "
".$cat->label."
\n"; + } + + print '
'; print ''; // Lignes des titres @@ -178,6 +220,7 @@ if ($result) $db->free(); print "
"; + print '
'; } else