mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added the policies tree tab
This commit is contained in:
parent
52f6bf0794
commit
ad3715f46c
@ -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…
x
Reference in New Issue
Block a user