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 '
| '; 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 ' | ';
@@ -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();