début ajout possibilité de déterminer si le contenu d'une catégorie sera visible ou
non dans la liste des produits/services, ceci afin de pouvoir cacher les sous-produits par exemple.
This commit is contained in:
parent
1c763abab0
commit
fa2c27ae18
@ -106,7 +106,7 @@ else
|
|||||||
{
|
{
|
||||||
print "<br>";
|
print "<br>";
|
||||||
print "<table class='noborder' width='100%'>\n";
|
print "<table class='noborder' width='100%'>\n";
|
||||||
print "<tr class='liste_titre'><td colspan='2'>".$langs->trans("ProductsAndServices")."</td></tr>\n";
|
print "<tr class='liste_titre'><td colspan='3'>".$langs->trans("ProductsAndServices")."</td></tr>\n";
|
||||||
|
|
||||||
if (sizeof ($prods) > 0)
|
if (sizeof ($prods) > 0)
|
||||||
{
|
{
|
||||||
@ -116,7 +116,11 @@ else
|
|||||||
$i++;
|
$i++;
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "\t<tr ".$bc[$var].">\n";
|
print "\t<tr ".$bc[$var].">\n";
|
||||||
print "\t\t<td><a href='".DOL_URL_ROOT."/product/fiche.php?id=".$prod->id."'>".$prod->libelle."</a></td>\n";
|
print "\t\t<td>";
|
||||||
|
if ($prod->type == 1) print img_object($langs->trans("ShowService"),"service");
|
||||||
|
else print img_object($langs->trans("ShowProduct"),"product");
|
||||||
|
print "<a href='".DOL_URL_ROOT."/product/fiche.php?id=".$prod->id."'>".$prod->ref."</a></td>\n";
|
||||||
|
print "\t\t<td>".$prod->libelle."</td>\n";
|
||||||
print "\t\t<td>".$prod->description."</td>\n";
|
print "\t\t<td>".$prod->description."</td>\n";
|
||||||
print "\t</tr>\n";
|
print "\t</tr>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user