ajout arbo complete des cate
This commit is contained in:
parent
7cd1fed281
commit
1c763abab0
@ -95,37 +95,22 @@ if($_POST['catname']) {
|
|||||||
/*
|
/*
|
||||||
* Catégories principales
|
* Catégories principales
|
||||||
*/
|
*/
|
||||||
$cats = $c->get_main_categories ();
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("AllCats").'</td></tr>';
|
||||||
if ($cats != -1)
|
|
||||||
{
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("MainCats").'</td></tr>';
|
|
||||||
|
|
||||||
foreach ($cats as $cat)
|
$c->get_categories_arbo();
|
||||||
{
|
$cate_arbo = $c->get_arbo_each_cate();
|
||||||
$i = !$i;
|
|
||||||
print "\t<tr ".$bc[$i].">\n";
|
foreach($cate_arbo as $key => $value)
|
||||||
print "\t\t<td><a href='viewcat.php?id=".$cat->id."'>".$cat->label."</a></td>\n";
|
{
|
||||||
print "\t\t<td>".$cat->description."</td>\n";
|
$i = !$i;
|
||||||
|
print "\t<tr ".$bc[$i].">\n";
|
||||||
if ($cat->visible == 1)
|
print '<td><a href="viewcat.php?id='.$value[1].'">'.$value[0].'</a></td>';
|
||||||
{
|
print "\t</tr>\n";
|
||||||
print "\t\t<td>".$langs->trans("ContentsVisibleByAllShort")."</td>\n";
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "\t\t<td>".$langs->trans("ContentsNotVisibleByAllShort")."</td>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
print "\t</tr>\n";
|
|
||||||
}
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dolibarr_print_error();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user