Debut d'integration des catégories
This commit is contained in:
parent
c76263d651
commit
0e69a08738
@ -118,6 +118,7 @@ if ($result)
|
|||||||
Header("Location: fiche.php?id=$objp->rowid");
|
Header("Location: fiche.php?id=$objp->rowid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$texte = $langs->trans("List");
|
||||||
|
|
||||||
llxHeader("","",$texte);
|
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);
|
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 "<div id='ways'>";
|
||||||
|
|
||||||
|
print $ways[0]."<br />\n";
|
||||||
|
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
$cats = $c->get_filles();
|
||||||
|
|
||||||
|
print '<br><table class="noborder" width="100%">';
|
||||||
|
print '<tr><td valign="top" width="10%">';
|
||||||
|
if ($cats < 0)
|
||||||
|
{
|
||||||
|
print "-";
|
||||||
|
}
|
||||||
|
elseif (sizeof ($cats) > 0)
|
||||||
|
{
|
||||||
|
print "<table class='noborder' width='100%'>\n";
|
||||||
|
foreach ($cats as $cat)
|
||||||
|
{
|
||||||
|
$i++;
|
||||||
|
print "<tr ".$bc[$i%2].">\n";
|
||||||
|
print "<td><a href='liste.php?catid=".$cat->id."'>".$cat->label."</a></td>\n";
|
||||||
|
print "</tr>\n";
|
||||||
|
}
|
||||||
|
print "</table>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</td><td valign="top" width="90%">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
// Lignes des titres
|
// Lignes des titres
|
||||||
@ -178,6 +220,7 @@ if ($result)
|
|||||||
$db->free();
|
$db->free();
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
print '</td></tr></table>';
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user