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