Added the policies tree tab

This commit is contained in:
Alejandro Gallardo Escobar 2015-01-05 13:24:17 +01:00
parent bc6394dfad
commit ffd7eb1a23
1 changed files with 13 additions and 2 deletions

View File

@ -16,14 +16,17 @@
global $config;
require_once("include/class/Tree.class.php");
$tab = get_parameter('tab', 'group');
$search = get_parameter('search', '');
$status = get_parameter('status', AGENT_STATUS_ALL);
// ---------------------Tabs -------------------------------------------
$enterpriseEnable = false;
if (enterprise_include_once('include/functions_policies.php') !== ENTERPRISE_NOT_HOOK) {
$enterpriseEnable = true;
}
$url = 'index.php?' .
'sec=estado&' .
'sec2=operation/tree&' .
@ -62,6 +65,14 @@ $tabs['tag'] = array(
array("title" => __('Tags'))) . "</a>",
'active' => ($tab == "tag"));
if ($enterpriseEnable) {
$tabs['policies'] = array(
'text' => "<a href='" . sprintf($url, "policies") . "'>" .
html_print_image("images/policies_mc.png", true,
array("title" => __('Policies'))) . "</a>",
'active' => ($tab == "policies"));
}
$header_title = "";
switch ($tab) {
case 'os':