Added the policies tree tab
This commit is contained in:
parent
bc6394dfad
commit
ffd7eb1a23
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue