From e869392fc7c5f76b96c354ff3c24603e0417c91f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 May 2007 00:41:35 +0000 Subject: [PATCH] Fix: Deroulement arbre sur categories tiers --- htdocs/categories/index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 509d313c2cc..ff6c93ebcac 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -30,6 +30,8 @@ require "./pre.inc.php"; +$type=$_GET['type']; + if (!$user->rights->categorie->lire) accessforbidden(); @@ -41,8 +43,13 @@ if (!$user->rights->categorie->lire) accessforbidden(); $c = new Categorie($db); $html = new Form($db); -llxHeader("","",$langs->trans("ProductsCategoriesArea")); -print_fiche_titre($langs->trans("ProductsCategoriesArea")); +if (! $type) $title=$langs->trans("ProductsCategoriesArea"); +if ($type == 1) $title=$langs->trans("ThirdPartyCategoriesArea"); + + +llxHeader("","",$title); + +print_fiche_titre($title); print ''; @@ -119,12 +126,12 @@ if ($conf->use_javascript) print ''; @@ -134,7 +141,6 @@ if ($conf->use_javascript) if (sizeof($cate_arbo)) { - require_once(DOL_DOCUMENT_ROOT.'/includes/treemenu/TreeMenu.php'); $menu = new HTML_TreeMenu();
'; if ($_GET["expand"] != 'all') { - print ''.$langs->trans("ExpandAll").''; + print ''.$langs->trans("ExpandAll").''; print ''; } if ($_GET["expand"] && $_GET["expand"] != 'none') { - print ''.$langs->trans("UndoExpandAll").''; + print ''.$langs->trans("UndoExpandAll").''; print ''; } print '