Changed visual of metaconsole
This commit is contained in:
parent
c9a56639a7
commit
58722a5891
|
@ -23,6 +23,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "LM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Alert actions");
|
||||
|
@ -65,7 +67,6 @@ if ((!$copy_action) && (!$delete_action) && (!$update_action)) {
|
|||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($copy_action) {
|
||||
$id = get_parameter ('id');
|
||||
|
@ -333,6 +334,8 @@ if ($delete_action) {
|
|||
}
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
|
|
|
@ -22,6 +22,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "LM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
|
@ -166,7 +168,6 @@ if (defined('METACONSOLE'))
|
|||
else
|
||||
ui_print_page_header (__('Alerts').' » '.__('Alert commands'), "images/gm_alerts.png", false, "alerts_config", true);
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$update_command = (bool) get_parameter ('update_command');
|
||||
$create_command = (bool) get_parameter ('create_command');
|
||||
|
@ -293,6 +294,8 @@ if ($delete_command) {
|
|||
}
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
|
|
|
@ -23,6 +23,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (is_ajax ()) {
|
||||
$get_template_tooltip = (bool) get_parameter ('get_template_tooltip');
|
||||
|
||||
|
@ -131,7 +133,6 @@ if (!$delete_template) {
|
|||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($update_template) {
|
||||
$id = (int) get_parameter ('id');
|
||||
|
@ -230,11 +231,18 @@ $search_string = (string) get_parameter ('search_string');
|
|||
$search_type = (string) get_parameter ('search_type');
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '50%';
|
||||
$table->class = 'databox_filters';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
|
||||
if (!defined("METACONSOLE")){
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
}
|
||||
|
||||
$table->data[0][0] = __('Type');
|
||||
$table->data[0][1] = html_print_select (alerts_get_alert_templates_types (), 'search_type',
|
||||
|
@ -247,7 +255,11 @@ $table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false,
|
|||
'class="sub search"', true);
|
||||
$table->data[0][4] .= '</div>';
|
||||
|
||||
echo '<form method="post" action="' . $url . '">';
|
||||
if (defined("METACONSOLE"))
|
||||
echo '<form class="filters_form" method="post" action="' . $url . '">';
|
||||
else
|
||||
echo '<form method="post" action="' . $url . '">';
|
||||
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
|
||||
|
@ -271,6 +283,8 @@ if ($templates === false)
|
|||
$templates = array ();
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
|
|
|
@ -22,6 +22,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "LM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
|
@ -61,7 +63,6 @@ else {
|
|||
ui_print_page_header (__('Alerts').' » '.__('Configure alert action'), "images/gm_alerts.png", false, "alert_config", true);
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$name = '';
|
||||
$id_command = '';
|
||||
|
@ -82,6 +83,19 @@ html_print_div(array('id' => 'help_alert_macros_hint', 'content' => ui_print_hel
|
|||
|
||||
$table->id = 'table_macros';
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->class = 'databox data';
|
||||
$table->width = '100%';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Action');
|
||||
}
|
||||
else {
|
||||
$table->head[0] = __('Create Action');
|
||||
}
|
||||
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
|
|
|
@ -20,6 +20,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "LM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
|
@ -60,12 +62,26 @@ else
|
|||
ui_print_page_header (__('Alerts') . ' » ' .
|
||||
__('Configure alert command'), "images/gm_alerts.png", false, "alerts_config", true);
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Command');
|
||||
}
|
||||
else {
|
||||
$table->head[0] = __('Create Command');
|
||||
}
|
||||
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
if (!defined('METACONSOLE')){
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
}
|
||||
$table->size = array ();
|
||||
$table->size[0] = '20%';
|
||||
$table->data = array ();
|
||||
|
|
|
@ -21,6 +21,8 @@ enterprise_include_once ('meta/include/functions_alerts_meta.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "LM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Alert Management");
|
||||
|
@ -99,7 +101,6 @@ else {
|
|||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($duplicate_template) {
|
||||
$source_id = (int) get_parameter ('source_id');
|
||||
|
@ -470,9 +471,18 @@ print_alert_template_steps ($step, $id);
|
|||
|
||||
$table->id = 'template';
|
||||
$table->width = '98%';
|
||||
if(defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Create Template');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align: top';
|
||||
$table->style[2] = 'font-weight: bold; vertical-align: top';
|
||||
if(!defined("METACONSOLE")){
|
||||
$table->style[0] = 'font-weight: bold; vertical-align: top';
|
||||
$table->style[2] = 'font-weight: bold; vertical-align: top';
|
||||
}
|
||||
$table->size = array ();
|
||||
$table->size[0] = '20%';
|
||||
$table->size[2] = '20%';
|
||||
|
|
|
@ -19,6 +19,8 @@ global $config;
|
|||
// Check login and ACLs
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
db_pandora_audit("ACL Violation", "Trying to access Categories Management");
|
||||
require ("general/noaccess.php");
|
||||
|
@ -34,11 +36,20 @@ $search = (int) get_parameter ("search_category", 0);
|
|||
$category_name = (string) get_parameter ("category_name","");
|
||||
$tab = (string) get_parameter ("tab", "list");
|
||||
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=galertas&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
if(defined('METACONSOLE')) {
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=advanced&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
}
|
||||
else{
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=galertas&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
}
|
||||
|
||||
$buttons[$tab]['active'] = true;
|
||||
|
||||
|
@ -50,7 +61,6 @@ else {
|
|||
ui_print_page_header (__('Categories configuration'), "images/gm_modules.png", false, "", true, $buttons);
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Two actions can performed in this page: search and delete categories
|
||||
|
||||
|
@ -79,16 +89,18 @@ $result = false;
|
|||
$result = categories_get_all_categories ();
|
||||
|
||||
// Form to add new categories or search categories
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
if(!defined('METACONSOLE')){
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='databox' width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
// Prepare pagination
|
||||
ui_pagination ($total_categories, $url);
|
||||
|
@ -100,6 +112,8 @@ $iterator = 0;
|
|||
if (!empty($result)) {
|
||||
|
||||
$table->width = '98%';
|
||||
if(defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
|
@ -126,6 +140,19 @@ if (!empty($result)) {
|
|||
}
|
||||
|
||||
html_print_table ($table);
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
}
|
||||
else {
|
||||
// No categories available or selected
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
//Include functions code
|
||||
require_once ($config['homedir'].'/include/functions_categories.php');
|
||||
|
||||
|
@ -33,11 +35,20 @@ $create_category = (int) get_parameter ("create_category", 0);
|
|||
$name_category = (string) get_parameter ("name_category", "");
|
||||
$tab = (string) get_parameter ("tab", "list");
|
||||
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=gmodules&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
if(defined('METACONSOLE')) {
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=advanced&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
}
|
||||
else{
|
||||
$buttons = array(
|
||||
'list' => array(
|
||||
'active' => false,
|
||||
'text' => '<a href="index.php?sec=gmodules&sec2=godmode/category/category&tab=list&pure='.(int)$config['pure'].'">' .
|
||||
html_print_image ("images/list.png", true, array ("title" => __('List categories'))) .'</a>'));
|
||||
}
|
||||
|
||||
$buttons[$tab]['active'] = false;
|
||||
|
||||
|
@ -107,41 +118,90 @@ else {
|
|||
$name_category = "";
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Create/Update category form
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=' . $action . '&id_category=' . $id_category . '&pure='.(int)$config['pure'].'" enctype="multipart/form-data">';
|
||||
|
||||
echo '<div align=left style="width: 98%" class="pandora_form">';
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<div align=left style="width: 98%" class="pandora_form">';
|
||||
else
|
||||
echo '<div align=left style="width: 100%" class="pandora_form">';
|
||||
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
if(!defined('METACONSOLE'))
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=100%>";
|
||||
else
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='databox data' width=100%>";
|
||||
if (defined("METACONSOLE")){
|
||||
if ($action == "update") {
|
||||
echo "<thead>
|
||||
<tr>
|
||||
<th align=center colspan=5>" .
|
||||
__('Update category') .
|
||||
"</th>
|
||||
</tr>
|
||||
</thead>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<thead>
|
||||
<tr>
|
||||
<th align=center colspan=5>" .
|
||||
__('Create category') .
|
||||
"</th>
|
||||
</tr>
|
||||
</thead>";
|
||||
}
|
||||
}
|
||||
echo "<tr>";
|
||||
echo "<td align=center>";
|
||||
if(defined('METACONSOLE'))
|
||||
echo "<td>";
|
||||
else
|
||||
echo "<td align=center>";
|
||||
html_print_label (__("Name"),'name');
|
||||
echo "</td>";
|
||||
echo "<td align=center>";
|
||||
if(defined('METACONSOLE'))
|
||||
echo "<td>";
|
||||
else
|
||||
echo "<td align=center>";
|
||||
html_print_input_text ('name_category', $name_category);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
if ($action == "update") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Update'), 'update_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
if(!defined('METACONSOLE')){
|
||||
echo "<tr>";
|
||||
if ($action == "update") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Update'), 'update_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
if(defined('METACONSOLE')){
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
if ($action == "update") {
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
html_print_submit_button (__('Update'), 'update_button', false, 'class="sub next"');
|
||||
}
|
||||
if ($action == "new") {
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"');
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
|
|
|
@ -157,7 +157,16 @@ $table->class = "databox";
|
|||
$table->style[0] = 'vertical-align: top;';
|
||||
|
||||
$table->valign[1] = 'top';
|
||||
|
||||
if (defined('METACONSOLE')){
|
||||
echo '<div class="title_tactical">' . __('Create Filter') . '</div>';
|
||||
$table->width = '100%';
|
||||
$table->border = 0;
|
||||
$table->cellspacing = 3;
|
||||
$table->cellpadding = 5;
|
||||
$table->class = "databox data";
|
||||
$table->style[0] = '';
|
||||
$table->valign[1] = '';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = '<b>'.__('Filter name').'</b>';
|
||||
$table->data[0][1] = html_print_input_text ('id_name', $id_name, false, 20, 80, true);
|
||||
|
@ -492,4 +501,4 @@ function replace_hidden_tags(what_button) {
|
|||
$(id_hidden).val(Base64.encode(jQuery.toJSON(value_store)));
|
||||
}
|
||||
/* ]]> */
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -85,6 +85,8 @@ if ($filters === false)
|
|||
$filters = array ();
|
||||
|
||||
$table->width = '98%';
|
||||
if(defined("METACONSOLE"))
|
||||
$table->width = '98%';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Filter group');
|
||||
|
|
|
@ -57,6 +57,14 @@ else {
|
|||
|
||||
$table->width = '90%';
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Edit event responses');
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
|
||||
$table->size = array();
|
||||
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
|
@ -119,7 +127,10 @@ $table->data[4] = $data;
|
|||
if ($event_response_id == 0) {
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=list&action=create_response&pure='.$config['pure'].'">';
|
||||
html_print_table($table);
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
else
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
html_print_submit_button(__('Create'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
@ -127,7 +138,10 @@ if ($event_response_id == 0) {
|
|||
else {
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=list&action=update_response&pure='.$config['pure'].'">';
|
||||
html_print_table($table);
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
else
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
html_print_submit_button(__('Update'), 'update_response_button', false, array('class' => 'sub next'));
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
|
|
@ -25,11 +25,13 @@ if (! check_acl($config['id_user'], 0, "PM")) {
|
|||
return;
|
||||
}
|
||||
|
||||
echo '<br><br><div style="width:99%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
if(!defined('METACONSOLE')){
|
||||
echo '<br><br><div style="width:99%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if (!is_user_admin($config['id_user'])) {
|
||||
$id_groups = array_keys(users_get_groups(false, "PM"));
|
||||
|
@ -47,7 +49,8 @@ if(empty($event_responses)) {
|
|||
}
|
||||
|
||||
$table->width = '99%';
|
||||
|
||||
if(defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->size = array();
|
||||
$table->size[0] = '200px';
|
||||
$table->size[2] = '70px';
|
||||
|
@ -75,4 +78,11 @@ foreach($event_responses as $response) {
|
|||
|
||||
html_print_table($table);
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config["id_user"], 0, "EW")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access event manage");
|
||||
|
@ -86,7 +88,6 @@ switch ($section) {
|
|||
|
||||
include_once($config["homedir"] . '/include/functions_events.php');
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
switch($section) {
|
||||
case 'edit_filter':
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||
db_pandora_audit("ACL Violation", "Trying to access Group Management2");
|
||||
require ("general/noaccess.php");
|
||||
|
@ -94,9 +96,18 @@ else {
|
|||
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id_group)
|
||||
$table->head[0] = __('Update Group');
|
||||
else
|
||||
$table->head[0] = __('Create Group');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true);
|
||||
|
|
|
@ -19,6 +19,8 @@ global $config;
|
|||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
require_once($config['homedir'] . "/include/functions_groups.php");
|
||||
require_once($config['homedir'] . "/include/functions_agents.php");
|
||||
require_once($config['homedir'] . '/include/functions_users.php');
|
||||
|
@ -154,7 +156,6 @@ else {
|
|||
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$update_group = (bool) get_parameter ('update_group');
|
||||
|
@ -290,6 +291,8 @@ db_clean_cache();
|
|||
$groups = users_get_groups_tree ($config['id_user'], "AR", true);
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
|
||||
$all_parents = array();
|
||||
$groups_count = 0;
|
||||
|
@ -316,12 +319,14 @@ foreach ($all_parents as $parent) {
|
|||
$groups_count = count($groups);
|
||||
|
||||
if (check_acl($config['id_user'], 0, "PM")) {
|
||||
echo '<br />';
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/groups/configure_group&pure='.$pure.'">';
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button (__('Create group'), 'crt', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
if (!defined("METACONSOLE")){
|
||||
echo '<br />';
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/groups/configure_group&pure='.$pure.'">';
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button (__('Create group'), 'crt', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($groups)) {
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "PM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access SNMP Group Management");
|
||||
|
@ -39,7 +41,6 @@ else {
|
|||
$sec = 'gmodules';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$create = (bool) get_parameter ('create');
|
||||
$update = (bool) get_parameter ('update');
|
||||
|
@ -187,6 +188,8 @@ foreach ($groups as $group_key => $group_val) {
|
|||
$groups = component_groups_get_groups_tree_recursive($groups_clean,0,0);
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Action') .
|
||||
|
|
|
@ -45,6 +45,18 @@ else {
|
|||
}
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Group Component');
|
||||
}
|
||||
else {
|
||||
$table->head[0] = __('Create Group Component');
|
||||
}
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->data = array ();
|
||||
|
@ -70,4 +82,4 @@ else {
|
|||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "PM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Agent Management");
|
||||
|
@ -42,7 +44,6 @@ else {
|
|||
$sec = 'gmodules';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$type = (int) get_parameter ('type');
|
||||
$name = (string) get_parameter ('name');
|
||||
|
@ -442,9 +443,15 @@ $search_id_group = (int) get_parameter ('search_id_group');
|
|||
$search_string = (string) get_parameter ('search_string');
|
||||
|
||||
$table->width = '98%';
|
||||
if(defined("METACONSOLE")){
|
||||
$table->width = '50%';
|
||||
$table->class = 'databox_filters';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
if (!defined('METACONSOLE')){
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
}
|
||||
$table->data = array ();
|
||||
|
||||
$table->data[0][0] = __('Group');
|
||||
|
@ -492,7 +499,10 @@ $table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false,
|
|||
'class="sub search"', true);
|
||||
$table->data[0][4] .= '</div>';
|
||||
|
||||
echo '<form method="post" action="'.$url.'">';
|
||||
if(defined("METACONSOLE"))
|
||||
echo '<form class="filters_form" method="post" action="'.$url.'">';
|
||||
else
|
||||
echo '<form method="post" action="'.$url.'">';
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
|
||||
|
|
|
@ -233,6 +233,18 @@ else {
|
|||
echo '<form name="component" method="post">';
|
||||
|
||||
/* $table came from manage_network_components_form_common.php */
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Network Component');
|
||||
}
|
||||
else {
|
||||
$table->head[0] = __('Create Network Component');
|
||||
}
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->colspan['description'][1] = 3;
|
||||
$data = array ();
|
||||
$data[0] = __('Description');
|
||||
|
|
|
@ -23,6 +23,8 @@ include_once($config['homedir'] . "/include/functions_netflow.php");
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config["id_user"], 0, "AW")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access event viewer");
|
||||
|
@ -110,6 +112,9 @@ if ($filters === false)
|
|||
$filters = array ();
|
||||
|
||||
$table->width = '90%';
|
||||
f (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
}
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Group');
|
||||
|
@ -149,7 +154,11 @@ if (isset($data)) {
|
|||
echo "<form method='post' action='" . $config['homeurl'] . "index.php?sec=netf&sec2=godmode/netflow/nf_edit&pure=$pure'>";
|
||||
html_print_input_hidden('multiple_delete', 1);
|
||||
html_print_table ($table);
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
if (defined('METACONSOLE'))
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
@ -158,11 +167,13 @@ else {
|
|||
echo "<div class='nf'>".__('There are no defined filters')."</div>";
|
||||
}
|
||||
|
||||
echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&sec2=godmode/netflow/nf_edit_form&pure='.$pure.'">';
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
html_print_submit_button (__('Create filter'), 'crt', false, 'class="sub wand"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&sec2=godmode/netflow/nf_edit_form&pure='.$pure.'">';
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
html_print_submit_button (__('Create filter'), 'crt', false, 'class="sub wand"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ include_once ($config['homedir'] . "/include/functions_groups.php");
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Fix: Netflow have to check RW ACL
|
||||
if (! check_acl ($config["id_user"], 0, "RW")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
|
@ -171,7 +173,19 @@ $table->border = 0;
|
|||
$table->cellspacing = 3;
|
||||
$table->cellpadding = 5;
|
||||
$table->class = "databox_color";
|
||||
$table->style[0] = 'vertical-align: top;';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if($id)
|
||||
$table->head[0] = __("Update filter");
|
||||
else
|
||||
$table->head[0] = __("Create filter");
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
else{
|
||||
$table->style[0] = 'vertical-align: top;';
|
||||
}
|
||||
|
||||
$table->data = array ();
|
||||
|
||||
|
@ -234,6 +248,9 @@ else {
|
|||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -502,8 +502,25 @@ $urlForm = $config['homeurl'] . 'index.php?sec=reporting&sec2=godmode/reporting/
|
|||
|
||||
echo '<form action="' . $urlForm . '" method="post">';
|
||||
html_print_input_hidden('id_item', $idItem);
|
||||
|
||||
if (defined("METACONSOLE"))
|
||||
$class = 'databox data';
|
||||
else
|
||||
$class = 'databox';
|
||||
|
||||
?>
|
||||
<table style="" class="databox" id="" border="0" cellpadding="4" cellspacing="4" width="98%">
|
||||
<table style="" class="<?php echo $class;?>" id="" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<?php
|
||||
if (defined("METACONSOLE")){
|
||||
echo "<thead>
|
||||
<tr>
|
||||
<th align=center colspan=5>
|
||||
" . __('Wizard') . "
|
||||
</th>
|
||||
</tr>
|
||||
</thead>";
|
||||
}
|
||||
?>
|
||||
<tbody>
|
||||
<tr id="row_type" style="" class="datos">
|
||||
<td style="vertical-align: top; width: 220px;"><?php echo __('Type'); ?></td>
|
||||
|
@ -1126,7 +1143,7 @@ html_print_input_hidden('id_item', $idItem);
|
|||
<?php
|
||||
print_SLA_list('95%', $action, $idItem);
|
||||
print_General_list('95%', $action, $idItem);
|
||||
echo '<div class="action-buttons" style="width: 95%">';
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
if ($action == 'new') {
|
||||
html_print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"');
|
||||
}
|
||||
|
@ -1153,7 +1170,7 @@ function print_SLA_list($width, $action, $idItem = null) {
|
|||
|
||||
$report_item_type = db_get_value ('type', 'treport_content', 'id_rc', $idItem);
|
||||
?>
|
||||
<table class="databox" id="sla_list" border="0" cellpadding="4" cellspacing="4" width="98%">
|
||||
<table class="databox" id="sla_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="header sla_list_agent_col" scope="col"><?php echo __('Agent');?></th>
|
||||
|
@ -1317,7 +1334,7 @@ function print_General_list($width, $action, $idItem = null) {
|
|||
|
||||
include_once($config['homedir'] . '/include/functions_html.php');
|
||||
?>
|
||||
<table class="databox" id="general_list" border="0" cellpadding="4" cellspacing="4" width="98%">
|
||||
<table class="databox" id="general_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="header" scope="col"><?php echo __('Agent');?></th>
|
||||
|
|
|
@ -141,11 +141,12 @@ if (($agentFilter == 0) && ($moduleFilter == 0) && ($typeFilter == 0)) {
|
|||
|
||||
$urlFilter = '&agent_filter=' . $agentFilter . '&module_filter=' . $moduleFilter . '&type_filter=' . $typeFilter;
|
||||
|
||||
echo '<a href="javascript: toggleFormFilter();"><b>' .
|
||||
__('Items filter') . '</b> ' .
|
||||
html_print_image("images/down.png", true,
|
||||
array("title" => __('Toggle filter(s)'),
|
||||
"id" => 'image_form_filter')) . '</a>';
|
||||
if (!defined("METACONSOLE"))
|
||||
echo '<a href="javascript: toggleFormFilter();"><b>' .
|
||||
__('Items filter') . '</b> ' .
|
||||
html_print_image("images/down.png", true,
|
||||
array("title" => __('Toggle filter(s)'),
|
||||
"id" => 'image_form_filter')) . '</a>';
|
||||
|
||||
$table = null;
|
||||
$table->width = '100%';
|
||||
|
@ -157,17 +158,27 @@ $table->data[1][0] = __('Type');
|
|||
$table->data[1][1] = html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true);
|
||||
$table->data[1][2] = $table->data[1][3] = '';
|
||||
|
||||
echo '<div id="form_filter" style="display: none;">';
|
||||
echo '<form method="post" action ="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=filter&id_report=' . $idReport . '">';
|
||||
|
||||
html_print_table ($table);
|
||||
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"');
|
||||
html_print_input_hidden('action', 'filter');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
if (!defined("METACONSOLE")){
|
||||
echo '<div id="form_filter" style="display: none;">';
|
||||
echo '<form method="post" action ="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=filter&id_report=' . $idReport . '">';
|
||||
|
||||
html_print_table ($table);
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"');
|
||||
html_print_input_hidden('action', 'filter');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
else{
|
||||
$table->class = "databox_filters";
|
||||
$table->width = '70%';
|
||||
echo '<form class="filters_form" method="post" action ="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=
|
||||
list_items&action=filter&id_report=' . $idReport . '">';
|
||||
$table->data[1][4] = html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"',true) . html_print_input_hidden('action', 'filter',true);
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
$where = '1=1';
|
||||
if ($typeFilter != '0') {
|
||||
|
@ -232,7 +243,10 @@ $table->style[0] = 'text-align: right;';
|
|||
|
||||
if ($items) {
|
||||
$table->width = '98%';
|
||||
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = "databox data";
|
||||
}
|
||||
$table->size = array();
|
||||
$table->size[0] = '5px';
|
||||
$table->size[1] = '15%';
|
||||
|
@ -404,7 +418,11 @@ ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/repo
|
|||
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
|
@ -418,7 +436,15 @@ $table->size[0] = '25%';
|
|||
$table->size[1] = '25%';
|
||||
$table->size[2] = '25%';
|
||||
$table->size[3] = '25%';
|
||||
$table->data[0][0] = "<b>". __("Sort items") . "</b>";
|
||||
if (defined("METACONSOLE")){
|
||||
$table->class = "databox data";
|
||||
$table->head[0] = __("Sort items");
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
else{
|
||||
$table->data[0][0] = "<b>". __("Sort items") . "</b>";
|
||||
}
|
||||
$table->data[1][0] = __('Sort selected items from position: ');
|
||||
$table->data[1][1] = html_print_select_style(
|
||||
array('before' => __('Move before to'), 'after' => __('Move after to')), 'move_to',
|
||||
|
@ -441,7 +467,15 @@ $table->size[0] = '25%';
|
|||
$table->size[1] = '25%';
|
||||
$table->size[2] = '25%';
|
||||
$table->size[3] = '25%';
|
||||
$table->data[0][0] = "<b>". __("Delete items") . "</b>";
|
||||
if (defined("METACONSOLE")){
|
||||
$table->class = "databox data";
|
||||
$table->head[0] = __("Delete items");
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
else{
|
||||
$table->data[0][0] = "<b>". __("Delete items") . "</b>";
|
||||
}
|
||||
$table->data[1][0] = __('Delete selected items from position: ');
|
||||
$table->data[1][1] = html_print_select_style(
|
||||
array('above' => __('Delete above to'), 'below' => __('Delete below to')), 'delete_m',
|
||||
|
|
|
@ -45,12 +45,22 @@ $table->width = '98%';
|
|||
$table->id = 'add_alert_table';
|
||||
$table->class = 'databox';
|
||||
$table->head = array ();
|
||||
|
||||
if(defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Main data');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
|
||||
$table->data = array ();
|
||||
$table->size = array ();
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
$table->size[1] = '90%';
|
||||
$table->style[0] = 'font-weight: bold; vertical-align: top;';
|
||||
if(!defined("METACONSOLE"))
|
||||
$table->style[0] = 'font-weight: bold; vertical-align: top;';
|
||||
|
||||
$table->data['name'][0] = __('Name');
|
||||
$table->data['name'][1] = html_print_input_text('name', $reportName,
|
||||
|
|
|
@ -20,6 +20,8 @@ global $config;
|
|||
// Login check
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "RR")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access report builder");
|
||||
|
@ -307,7 +309,6 @@ switch ($action) {
|
|||
else
|
||||
ui_print_page_header (__('Reporting').' » '.__('Custom reporting'), "images/op_reporting.png", false, "", false, $buttons);
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($action == 'delete_report') {
|
||||
$delete = false;
|
||||
|
@ -367,6 +368,10 @@ switch ($action) {
|
|||
}
|
||||
|
||||
$table_aux->width = '99%';
|
||||
if(defined('METACONSOLE')){
|
||||
$table_aux->class = 'databox_filters';
|
||||
$table_aux->width = '70%';
|
||||
}
|
||||
$table_aux->colspan[0][0] = 4;
|
||||
$table_aux->data[0][0] = "<b>". __("Group") . "</b>";
|
||||
|
||||
|
@ -377,8 +382,14 @@ switch ($action) {
|
|||
|
||||
$table_aux->data[0][6] = html_print_submit_button(__('Search'), 'search_submit', false, 'class="sub upd"', true);
|
||||
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&id_group=$id_group&pure=$pure'
|
||||
method='post'>";
|
||||
if(defined('METACONSOLE')){
|
||||
echo "<form class ='filters_form' action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&id_group=$id_group&pure=$pure'
|
||||
method='post'>";
|
||||
}
|
||||
else{
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&id_group=$id_group&pure=$pure'
|
||||
method='post'>";
|
||||
}
|
||||
html_print_table($table_aux);
|
||||
echo "</form>";
|
||||
|
||||
|
@ -438,6 +449,10 @@ switch ($action) {
|
|||
if (sizeof ($reports)) {
|
||||
$table->id = 'report_list';
|
||||
$table->width = '98%';
|
||||
if(defined('METACONSOLE')){
|
||||
echo "<br>";
|
||||
$table->width = '100%';
|
||||
}
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
$table->align[2] = 'center';
|
||||
|
@ -611,7 +626,10 @@ switch ($action) {
|
|||
|
||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||
echo '<form method="post" action="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=main&action=new&pure='.$pure.'">';
|
||||
echo '<div class="action-buttons" style="width: 98%; margin-top: 5px;">';
|
||||
if (defined("METACONSOLE"))
|
||||
echo '<div class="action-buttons" style="width: 100%; ">';
|
||||
else
|
||||
echo '<div class="action-buttons" style="width: 98%; margin-top: 5px;">';
|
||||
html_print_submit_button (__('Create report'), 'create', false, 'class="sub next"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
|
|
@ -67,6 +67,11 @@ switch ($action) {
|
|||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __("Create visual console");
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
$table->align[0] = 'left';
|
||||
$table->align[1] = 'left';
|
||||
}
|
||||
|
|
|
@ -205,6 +205,7 @@ if ($filemanager) {
|
|||
$sec = 'gservers';
|
||||
|
||||
if (($create != "") OR ($view != "")) {
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
components_meta_print_header();
|
||||
|
@ -220,7 +221,6 @@ if (($create != "") OR ($view != "")) {
|
|||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($create == "") {
|
||||
$plugin_id = get_parameter ("view", "");
|
||||
|
@ -263,12 +263,24 @@ if (($create != "") OR ($view != "")) {
|
|||
$table->colspan['plugin_desc'][1] = 3;
|
||||
$table->data['plugin_desc'] = $data;
|
||||
|
||||
echo '<br>';
|
||||
echo '<table class="databox" style="margin: 0 auto; width: 98%;"><tr><td>';
|
||||
if (!defined("METACONSOLE")){
|
||||
echo '<br>';
|
||||
echo '<table class="databox" style="margin: 0 auto; width: 98%;"><tr><td>';
|
||||
}
|
||||
|
||||
echo '<fieldset style="width:96%"><legend>'.__('General').'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('General');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
echo '<br>';
|
||||
html_print_table($table);
|
||||
}else{
|
||||
echo '<fieldset style="width:96%"><legend>'.__('General').'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
$table->data = array();
|
||||
|
||||
|
@ -318,9 +330,19 @@ if (($create != "") OR ($view != "")) {
|
|||
$data[1] = '<div id="command_preview" style="font-style:italic"></div>';
|
||||
$table->data['plugin_preview'] = $data;
|
||||
|
||||
echo '<fieldset style="width:96%"><legend>'.__('Command').'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Command');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
echo '<br>';
|
||||
html_print_table($table);
|
||||
}else{
|
||||
echo '<fieldset style="width:96%"><legend>'.__('Command').'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
$data = array();
|
||||
|
||||
|
@ -424,11 +446,24 @@ if (($create != "") OR ($view != "")) {
|
|||
$table->data['plugin_action'] = $datam;
|
||||
}
|
||||
|
||||
echo '<fieldset style="width:96%"><legend>'.__('Parameters macros').ui_print_help_icon ('macros', true).'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Parameters macros');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
echo '<br>';
|
||||
html_print_table($table);
|
||||
}else{
|
||||
echo '<fieldset style="width:96%"><legend>'.__('Parameters macros').ui_print_help_icon ('macros', true).'</legend>';
|
||||
html_print_table($table);
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
echo '<table width="98%">';
|
||||
if (defined("METACONSOLE"))
|
||||
echo '<table width="100%">';
|
||||
else
|
||||
echo '<table width="98%">';
|
||||
echo '<tr><td align="right">';
|
||||
|
||||
if ($create != "") {
|
||||
|
@ -441,11 +476,17 @@ if (($create != "") OR ($view != "")) {
|
|||
}
|
||||
echo '</form></table>';
|
||||
|
||||
echo '</td></tr></table>';
|
||||
if (defined("METACONSOLE"))
|
||||
echo '</td></tr>';
|
||||
else
|
||||
echo '</td></tr></table>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
}
|
||||
else {
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if(defined('METACONSOLE')) {
|
||||
components_meta_print_header();
|
||||
$sec = 'advanced';
|
||||
|
@ -460,8 +501,7 @@ else {
|
|||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
|
||||
// Update plugin
|
||||
if (isset($_GET["update_plugin"])) { // if modified any parameter
|
||||
|
@ -609,7 +649,11 @@ else {
|
|||
$rows = db_get_all_rows_sql('SELECT * FROM tplugin ORDER BY name');
|
||||
|
||||
if ($rows !== false) {
|
||||
echo '<table width="98%" cellspacing="4" cellpadding="4" class="databox">';
|
||||
if(defined('METACONSOLE'))
|
||||
echo '<table width="100%" cellspacing="4" cellpadding="4" class="databox">';
|
||||
else
|
||||
echo '<table width="98%" cellspacing="4" cellpadding="4" class="databox">';
|
||||
|
||||
echo "<th>" . __('Name') . "</th>";
|
||||
echo "<th>" . __('Type') . "</th>";
|
||||
echo "<th>" . __('Command') . "</th>";
|
||||
|
@ -669,7 +713,11 @@ else {
|
|||
'</div>';
|
||||
echo "<br>";
|
||||
}
|
||||
echo "<table width='98%'>";
|
||||
if(defined('METACONSOLE'))
|
||||
echo "<table width='100%'>";
|
||||
else
|
||||
echo "<table width='98%'>";
|
||||
|
||||
echo "<tr><td align=right>";
|
||||
echo "<form name=plugin method='post' action='index.php?sec=gservers&sec2=godmode/servers/plugin&tab=$tab&create=1&pure=" . $config['pure'] . "'>";
|
||||
echo "<input name='crtbutton' type='submit' class='sub next' value='".__('Add')."'>";
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
//Include functions code
|
||||
require_once ($config['homedir'].'/include/functions_tags.php');
|
||||
|
||||
|
@ -142,14 +144,25 @@ else {
|
|||
$phone_tag = "";
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
if (defined('METACONSOLE')) {
|
||||
if ($action == "update") {
|
||||
echo "<div class='title_tactical'>" . __("Update Tag") . "</div>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<div class='title_tactical'>" . __("Create Tag") . "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
// Create/Update tag form
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=' . $action . '&id_tag=' . $id_tag . '" enctype="multipart/form-data">';
|
||||
|
||||
echo '<div align=left style="width: 100%" class="pandora_form">';
|
||||
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
if (defined('METACONSOLE'))
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='databox data' width=100%>";
|
||||
else
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td align='left'>";
|
||||
html_print_label (__("Name"),'name');
|
||||
|
@ -193,6 +206,31 @@ echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
|||
html_print_textarea('phone_tag', 5, 20, $phone_tag);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<tr>";
|
||||
if ($action == "update") {
|
||||
echo "<td align='center'>";
|
||||
html_print_input_hidden ('update_tag', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Update'), 'update_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('create_tag', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
||||
echo '</div>';
|
||||
if (defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
if ($action == "update") {
|
||||
echo "<td align='center'>";
|
||||
|
@ -211,8 +249,8 @@ echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
|||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo '</div>';
|
||||
echo "</table>";
|
||||
}
|
||||
echo '</form>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
|
|
@ -19,6 +19,8 @@ global $config;
|
|||
// Check login and ACLs
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||
db_pandora_audit("ACL Violation", "Trying to access Tag Management");
|
||||
require ("general/noaccess.php");
|
||||
|
@ -82,7 +84,6 @@ else {
|
|||
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Two actions can performed in this page: search and delete tags
|
||||
|
||||
|
@ -117,6 +118,7 @@ else {
|
|||
}
|
||||
|
||||
// Form to add new tags or search tags
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
|
@ -138,6 +140,24 @@ echo "<td align=right>";
|
|||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}else{
|
||||
|
||||
echo '<form method=post class="filters_form" action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class=databox_filters width=50%>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
echo __("Name") . "/" . __("Description");
|
||||
echo " ";
|
||||
html_print_input_hidden ("search_tag", "1");
|
||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
}
|
||||
|
||||
// Prepare pagination
|
||||
ui_pagination ($total_tags, $url);
|
||||
|
@ -149,6 +169,8 @@ $iterator = 0;
|
|||
if (!empty($result)) {
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
|
@ -220,6 +242,18 @@ if (!empty($result)) {
|
|||
|
||||
html_print_table ($table);
|
||||
}
|
||||
if(defined("METACONSOLE")){
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=new">';
|
||||
html_print_input_hidden ("create_tag", "1", true);
|
||||
html_print_submit_button (__('Create tag'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "PM")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access Profile Management");
|
||||
|
@ -54,7 +56,6 @@ else {
|
|||
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$new_profile = (bool) get_parameter ('new_profile');
|
||||
$id_profile = (int) get_parameter ('id');
|
||||
|
@ -140,6 +141,16 @@ if ($id_profile || $new_profile) {
|
|||
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id_profile)
|
||||
$table->head[0] = __('Update Profile');
|
||||
else
|
||||
$table->head[0] = __('Create Profile');
|
||||
$table->head_colspan[0] = 4;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->size = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
include_once($config['homedir'] . "/include/functions_profile.php");
|
||||
include_once($config['homedir'] . '/include/functions_users.php');
|
||||
include_once ($config['homedir'] . '/include/functions_groups.php');
|
||||
|
@ -89,7 +91,6 @@ else {
|
|||
$sec = 'gusuarios';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($config['user_can_update_info']) {
|
||||
$view_mode = false;
|
||||
|
@ -414,6 +415,18 @@ if ($delete_profile) {
|
|||
|
||||
$table->id = 'user_configuration_table';
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update User');
|
||||
}
|
||||
else {
|
||||
$table->head[0] = __('Create User');
|
||||
}
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->colspan = array ();
|
||||
$table->size = array ();
|
||||
|
@ -579,15 +592,24 @@ echo '<br />';
|
|||
|
||||
/* Don't show anything else if we're creating an user */
|
||||
if (!empty ($id) && !$new_user) {
|
||||
echo '<h4>'. __('Profiles/Groups assigned to this user') . '</h4>';
|
||||
if (!defined("METACONSOLE"))
|
||||
echo '<h4>'. __('Profiles/Groups assigned to this user') . '</h4>';
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->head_colspan[0] = 0;
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox_tactical data';
|
||||
$table->title = '<span>' . __('Profiles/Groups assigned to this user') . '</span>';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[1] = 'font-weight: bold';
|
||||
if (!defined("METACONSOLE")){
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[1] = 'font-weight: bold';
|
||||
}
|
||||
$table->head[0] = __('Profile name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('Tags');
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
include_once($config['homedir'] . "/include/functions_profile.php");
|
||||
include_once ($config['homedir'].'/include/functions_users.php');
|
||||
require_once ($config['homedir'] . '/include/functions_groups.php');
|
||||
|
@ -56,7 +58,6 @@ else {
|
|||
$sec = 'advanced';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$delete_profile = (bool) get_parameter ('delete_profile');
|
||||
$create_profile = (bool) get_parameter ('create_profile');
|
||||
|
@ -208,6 +209,8 @@ $table->cellpadding = 4;
|
|||
$table->cellspacing = 4;
|
||||
$table->class = 'databox';
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
include_once($config['homedir'] . "/include/functions_profile.php");
|
||||
include_once ($config['homedir'].'/include/functions_users.php');
|
||||
require_once ($config['homedir'] . '/include/functions_groups.php');
|
||||
|
@ -122,7 +124,6 @@ else {
|
|||
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$disable_user = get_parameter ("disable_user", false);
|
||||
|
||||
|
@ -218,8 +219,10 @@ if (($filter_group == 0) && ($filter_search == '')) {
|
|||
}
|
||||
|
||||
$table = null;
|
||||
$table->width = '99%';
|
||||
$table->width = '100%';
|
||||
$table->class = "databox";
|
||||
if(defined('METACONSOLE'))
|
||||
$table->class = "databox_filters";
|
||||
$table->rowclass[0] = '';
|
||||
$table->data[0][0] = '<b>' . __('Group') . '</b>';
|
||||
$table->data[0][1] = html_print_select_groups(false, "AR", true,
|
||||
|
@ -232,18 +235,33 @@ $table->data[0][4] = html_print_submit_button(__('Search'), 'search',
|
|||
false, array('class' => 'sub search'), true);
|
||||
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$table->width = '50%';
|
||||
$form_filter = "<form class='filters_form' method='post'>";
|
||||
$form_filter .= html_print_table($table, true);
|
||||
$form_filter .= "</form>";
|
||||
echo $form_filter;
|
||||
}else{
|
||||
$form_filter = "<form method='post'>";
|
||||
$form_filter .= html_print_table($table, true);
|
||||
$form_filter .= "</form>";
|
||||
ui_toggle($form_filter, __('Users control filter'), __('Toggle filter(s)'), !$search);
|
||||
|
||||
$form_filter = "<form method='post'>";
|
||||
$form_filter .= html_print_table($table, true);
|
||||
$form_filter .= "</form>";
|
||||
|
||||
ui_toggle($form_filter, __('Users control filter'), __('Toggle filter(s)'), !$search);
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '99%';
|
||||
$table->class = "databox";
|
||||
if(defined('METACONSOLE')){
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->width = '100%';
|
||||
$table->class = "databox";
|
||||
}
|
||||
else{
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '99%';
|
||||
$table->class = "databox";
|
||||
}
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
$table->align = array ();
|
||||
|
|
|
@ -543,7 +543,11 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
$table->width = '98%';
|
||||
$table->id = 'table_filemanager';
|
||||
$table->class = 'databox alternate';
|
||||
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox_tactical';
|
||||
$table->title = '<span>' . __('Index of images') . '</span>';
|
||||
}
|
||||
$table->colspan = array ();
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
|
@ -730,7 +734,10 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
if (is_writable ($real_directory)) {
|
||||
//The buttons to make actions
|
||||
|
||||
echo "<div style='text-align: right; width: " . $table->width . ";'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: left; width: " . $table->width . ";'>";
|
||||
else
|
||||
echo "<div style='text-align: right; width: " . $table->width . ";'>";
|
||||
|
||||
echo "<a href='javascript: show_form_create_folder();' style='margin-right: 3px; margin-bottom: 5px;'>";
|
||||
echo html_print_image('images/create_directory.png', true,
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
// modify it under the terms of the GNU Lesser General Public License
|
||||
// as published by the Free Software Foundation; version 2
|
||||
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
|
@ -1610,12 +1611,21 @@ function reporting_get_stats_alerts($data, $links = false) {
|
|||
$table_al->rowclass[] = '';
|
||||
$table_al->data[] = $tdata;
|
||||
|
||||
$output = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Defined and fired alerts') .
|
||||
'</legend>' .
|
||||
html_print_table($table_al, true) . '</fieldset>';
|
||||
|
||||
if(!defined('METACONSOLE')){
|
||||
$output = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Defined and fired alerts') .
|
||||
'</legend>' .
|
||||
html_print_table($table_al, true) . '</fieldset>';
|
||||
}else{
|
||||
$table_al->class = "tactical_view";
|
||||
$table_al->style = array();
|
||||
$output = '<fieldset class="tactical_set">
|
||||
<legend>' .
|
||||
__('Defined and fired alerts') .
|
||||
'</legend>' .
|
||||
html_print_table($table_al, true) . '</fieldset>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
@ -8155,12 +8165,23 @@ function reporting_get_agents_by_status ($data, $graph_width = 250, $graph_heigh
|
|||
$agent_data[1] = "<a style='color: #729fcf;' href='" . $links['agents_not_init'] . "'><b><span style='font-size: 12pt; font-weight: bold; color: #729fcf;'>".format_numeric($data['agent_not_init'])."</span></b></a>";
|
||||
$table_agent->data[] = $agent_data;
|
||||
|
||||
$agents_data = '<fieldset class="databox tactical_set">
|
||||
if (!defined('METACONSOLE')){
|
||||
$agents_data = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Agents by status') .
|
||||
'</legend>' .
|
||||
html_print_table($table_agent, true) . '</fieldset>';
|
||||
|
||||
}
|
||||
else{
|
||||
$table_agent->style=array();
|
||||
$table_agent->class = "tactical_view";
|
||||
$agents_data = '<fieldset class="tactical_set">
|
||||
<legend>' .
|
||||
__('Agents by status') .
|
||||
'</legend>' .
|
||||
html_print_table($table_agent, true) . '</fieldset>';
|
||||
}
|
||||
|
||||
return $agents_data;
|
||||
}
|
||||
|
||||
|
@ -8196,11 +8217,23 @@ function reporting_get_total_servers ($num_servers) {
|
|||
$node_data[0] = html_print_image('images/server_export.png', true, array('title' => __('Nodes')));
|
||||
$node_data[1] = "<b><span style='font-size: 12pt; font-weight: bold; color: black;'>".format_numeric($num_servers)."</span></b>";
|
||||
$table_node->data[] = $node_data;
|
||||
$node_overview = '<fieldset class="databox tactical_set">
|
||||
|
||||
if (!defined('METACONSOLE')){
|
||||
$node_overview = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Node overview') .
|
||||
'</legend>' .
|
||||
html_print_table($table_node, true) . '</fieldset>';
|
||||
}else{
|
||||
$table_node->style = array();
|
||||
$table_node->class = "tactical_view";
|
||||
$node_overview = '<fieldset class="tactical_set">
|
||||
<legend>' .
|
||||
__('Node overview') .
|
||||
'</legend>' .
|
||||
html_print_table($table_node, true) . '</fieldset>';
|
||||
}
|
||||
|
||||
return $node_overview;
|
||||
}
|
||||
|
||||
|
@ -8221,12 +8254,22 @@ function reporting_get_events ($data, $links = false) {
|
|||
$table_events->data[0][4] = html_print_image('images/agent_notinit.png', true, array('title' => __('Not init events')));
|
||||
$table_events->data[0][4] .= " "."<a style='color: #729fcf;' href='" . $links['not_init'] . "'><b><span style='font-size: 12pt; font-weight: bold; color: #729fcf;'>".format_numeric($data['not_init'])."</span></b></a>";
|
||||
|
||||
$event_view = '<fieldset class="databox tactical_set">
|
||||
if(!defined('METACONSOLE')){
|
||||
$event_view = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Events by criticity') .
|
||||
'</legend>' .
|
||||
html_print_table($table_events, true) . '</fieldset>';
|
||||
|
||||
}
|
||||
else{
|
||||
$table_events->class="tactical_view";
|
||||
$event_view = '<fieldset class="tactical_set">
|
||||
<legend>' .
|
||||
__('Events by criticity') .
|
||||
'</legend>' .
|
||||
html_print_table($table_events, true) . '</fieldset>';
|
||||
}
|
||||
|
||||
return $event_view;
|
||||
}
|
||||
|
||||
|
@ -8375,12 +8418,19 @@ function reporting_get_event_histogram ($events) {
|
|||
$table->data[0][0] = __('No events');
|
||||
}
|
||||
|
||||
$event_graph = '<fieldset class="databox tactical_set">
|
||||
if(!defined('METACONSOLE')){
|
||||
$event_graph = '<fieldset class="databox tactical_set">
|
||||
<legend>' .
|
||||
__('Events info (1hr)') .
|
||||
'</legend>' .
|
||||
html_print_table($table, true) . '</fieldset>';
|
||||
|
||||
}
|
||||
else{
|
||||
$table->class='tactical_view';
|
||||
$event_graph = '<fieldset class="tactical_set">' .
|
||||
html_print_table($table, true) . '</fieldset>';
|
||||
}
|
||||
|
||||
return $event_graph;
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -40,6 +40,10 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
|
|||
require_once ($config['homedir'] . "/include/functions_tags.php");
|
||||
|
||||
$table->width = '100%';
|
||||
if(defined('METACONSOLE')){
|
||||
$table->class = 'databox_filters';
|
||||
$table->width = '60%';
|
||||
}
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
|
||||
|
@ -79,9 +83,16 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
|
|||
$table->data[1][1] = html_print_input_text('free_search', $free_search, '', 20, 40, true);
|
||||
$table->data[1][2] = __('Standby');
|
||||
$table->data[1][3] = html_print_select ($alert_standby, "filter_standby", $filter_standby, '', '', '', true);
|
||||
$table->data[1][4] = html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub filter"', true);
|
||||
|
||||
$data = '<form method="post" action="'.$url.'">';
|
||||
if(defined('METACONSOLE')){
|
||||
$table->data[0][4] = html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub filter"', true);
|
||||
$table->rowspan[0][4] = 2;
|
||||
$data = '<form style="background-color: #ECECEC;" method="post" action="'.$url.'">';
|
||||
}
|
||||
else{
|
||||
$table->data[1][4] = html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub filter"', true);
|
||||
$data = '<form method="post" action="'.$url.'">';
|
||||
}
|
||||
$data .= html_print_table ($table, true);
|
||||
$data .= '</form>';
|
||||
|
||||
|
|
|
@ -373,13 +373,21 @@ if ($pure) {
|
|||
|
||||
// Filter form
|
||||
if ($print_agent) {
|
||||
echo '<br>';
|
||||
ui_toggle(printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_standby, $tag_filter, true, $strict_user),__('Alert control filter'), __('Toggle filter(s)'));
|
||||
if(defined('METACONSOLE')){
|
||||
echo printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_standby, $tag_filter, true, $strict_user);
|
||||
}
|
||||
else{
|
||||
echo '<br>';
|
||||
ui_toggle(printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_standby, $tag_filter, true, $strict_user),__('Alert control filter'), __('Toggle filter(s)'));
|
||||
}
|
||||
}
|
||||
|
||||
$table->width = '100%';
|
||||
$table->class = "databox";
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$table->cellpadding = '0';
|
||||
$table->cellspacing = '0';
|
||||
}
|
||||
$table->size = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
|
|
|
@ -89,12 +89,18 @@ if ($id_module) {
|
|||
$ag_freestring = modules_get_agentmodule_agent_name($id_module);
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=' . $sortField . '&sort=' . $sort .'&pure=' . $config['pure'] . $ag_custom_fields_params . '">';
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
echo '<table cellspacing="4" cellpadding="4" width="100%" class="databox">
|
||||
<tr>';
|
||||
if (!defined('METACONSOLE')){
|
||||
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&ag_group=' .
|
||||
$ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=' .
|
||||
$sortField . '&sort=' . $sort .'&pure=' . $config['pure'] . $ag_custom_fields_params . '">';
|
||||
echo '<table cellspacing="4" cellpadding="4" width="100%" class="databox"><tr>';
|
||||
}else{
|
||||
echo '<form class="filters_form" method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&ag_group=' .
|
||||
$ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=' .
|
||||
$sortField . '&sort=' . $sort .'&pure=' . $config['pure'] . $ag_custom_fields_params . '">';
|
||||
echo '<table cellspacing="" cellpadding="" width="70%" class="databox_filters"><tr>';
|
||||
}
|
||||
|
||||
// Get Groups and profiles from user
|
||||
$user_groups = implode (",", array_keys (users_get_groups ()));
|
||||
|
@ -399,8 +405,6 @@ echo '
|
|||
|
||||
echo '<td>' . __('Monitor status') . "</td>";
|
||||
|
||||
|
||||
|
||||
echo "<td>";
|
||||
|
||||
$fields = array ();
|
||||
|
@ -434,14 +438,10 @@ $rows_select[0] = __('Not assigned');
|
|||
html_print_select($rows_select, 'modulegroup', $modulegroup, '', __('All'),-1,false, false, true, '', false, 'width: 120px;');
|
||||
echo '</td>';
|
||||
|
||||
|
||||
|
||||
echo '</tr>';
|
||||
|
||||
echo '<tr>';
|
||||
|
||||
|
||||
|
||||
echo '<td valign="middle">' . __('Module name') . '</td>';
|
||||
echo '<td valign="middle">';
|
||||
|
||||
|
@ -453,18 +453,27 @@ html_print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename",
|
|||
|
||||
echo '</td>';
|
||||
|
||||
if (!defined('METACONSOLE'))
|
||||
echo '<td valign="middle" align="right">' .
|
||||
__('Search') .
|
||||
'</td>';
|
||||
else
|
||||
echo '<td valign="middle">' .
|
||||
__('Search') .
|
||||
'</td>';
|
||||
|
||||
|
||||
echo '<td valign="middle" align="right">' .
|
||||
__('Search') .
|
||||
'</td>';
|
||||
echo '<td valign="middle">';
|
||||
html_print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false);
|
||||
echo '</td>';
|
||||
|
||||
echo '<td valign="middle" align="right" id="tag_td">' .
|
||||
__('Tags') .
|
||||
ui_print_help_tip(__('Only it is show tags in use.'), true);
|
||||
if (!defined('METACONSOLE'))
|
||||
echo '<td valign="middle" align="right" id="tag_td">' .
|
||||
__('Tags') .
|
||||
ui_print_help_tip(__('Only it is show tags in use.'), true);
|
||||
else
|
||||
echo '<td valign="middle" id="tag_td">' .
|
||||
__('Tags') .
|
||||
ui_print_help_tip(__('Only it is show tags in use.'), true);
|
||||
echo '<td>';
|
||||
|
||||
$tags = tags_get_user_tags();
|
||||
|
@ -479,24 +488,26 @@ else {
|
|||
}
|
||||
echo '</td>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo '<td valign="middle">';
|
||||
html_print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"');
|
||||
echo "</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
|
||||
$table_custom_fields = new stdClass();
|
||||
$table_custom_fields->class = 'databox';
|
||||
$table_custom_fields->width = '99%';
|
||||
if(defined('METACONSOLE')){
|
||||
$table_custom_fields->width = '100%';
|
||||
$table_custom_fields->class = 'databox_filters';
|
||||
$table_custom_fields->styleTable = 'margin-left:0px';
|
||||
$table_custom_fields->cellpadding = '0';
|
||||
$table_custom_fields->cellspacing = '0';
|
||||
}
|
||||
$table_custom_fields->style = array();
|
||||
$table_custom_fields->style[0] = 'font-weight: bold; width: 150px;';
|
||||
f(!defined('METACONSOLE'))
|
||||
$table_custom_fields->style[0] = 'font-weight: bold; width: 150px;';
|
||||
$table_custom_fields->colspan = array();
|
||||
$table_custom_fields->data = array();
|
||||
|
||||
|
@ -520,7 +531,10 @@ foreach ($custom_fields as $custom_field) {
|
|||
}
|
||||
|
||||
echo '<td valign="middle" colspan=7>';
|
||||
ui_toggle(html_print_table($table_custom_fields, true), __('Agent custom fields'));
|
||||
if(defined('METACONSOLE'))
|
||||
echo html_print_table($table_custom_fields, true);
|
||||
else
|
||||
ui_toggle(html_print_table($table_custom_fields, true), __('Agent custom fields'));
|
||||
echo "</td>";
|
||||
|
||||
echo "<tr>";
|
||||
|
@ -900,7 +914,11 @@ $table->cellpadding = 4;
|
|||
$table->cellspacing = 4;
|
||||
$table->width = "98%";
|
||||
$table->class = "databox";
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$table->width = "100%";
|
||||
$table->cellpadding = '0';
|
||||
$table->cellspacing = '0';
|
||||
}
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
$table->size = array ();
|
||||
|
@ -938,7 +956,8 @@ if (! defined ('METACONSOLE')) {
|
|||
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&modulegroup='.$modulegroup . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . $ag_custom_fields_params . '&sort_field=interval&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . '</a>';
|
||||
}
|
||||
|
||||
$table->align[5] = "center";
|
||||
if (! defined ('METACONSOLE'))
|
||||
$table->align[5] = "center";
|
||||
|
||||
$table->head[6] = __('Status');
|
||||
if (! defined ('METACONSOLE')) {
|
||||
|
@ -968,7 +987,8 @@ if (! defined ('METACONSOLE')) {
|
|||
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&modulegroup='.$modulegroup . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . $ag_custom_fields_params . '&sort_field=timestamp&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectTimestampDown, "alt" => "down")) . '</a>';
|
||||
}
|
||||
|
||||
$table->align[10] = "right";
|
||||
if (! defined ('METACONSOLE'))
|
||||
$table->align[10] = "right";
|
||||
|
||||
$rowPair = true;
|
||||
$iterator = 0;
|
||||
|
|
|
@ -25,6 +25,8 @@ require_once ($config['homedir'].'/include/functions_ui.php');
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl ($config["id_user"], 0, "ER")) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
"Trying to access event viewer");
|
||||
|
@ -477,7 +479,7 @@ echo "<div id='event_response_window'></div>";
|
|||
|
||||
ui_require_jquery_file ('bgiframe');
|
||||
ui_require_javascript_file('pandora_events');
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
|
|
|
@ -149,7 +149,6 @@ $id_name = get_parameter('id_name', '');
|
|||
|
||||
echo "<br>";
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Trick to catch if any filter button has been pushed (don't collapse filter)
|
||||
// or the filter was open before click or autorefresh is in use (collapse filter)
|
||||
|
@ -169,6 +168,11 @@ $table->style[1] = 'text-align: right;';
|
|||
$table->data[0][1] = '<a id="events_graph_link" href="javascript: show_events_graph_dialog()">' . html_print_image('images/chart_curve.png', true, array('title' => __('Show events graph'))) . '</a>';
|
||||
$table->cellstyle[0][1] = 'background: #ECECEC;';
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class='events_list';
|
||||
}
|
||||
|
||||
html_print_table($table);
|
||||
|
||||
unset($table);
|
||||
|
@ -192,6 +196,11 @@ if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0,
|
|||
$table->width = '98%';
|
||||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
if(defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->cellspacing = 0;
|
||||
$table->cellpadding = 0;
|
||||
}
|
||||
$table->class = 'databox';
|
||||
$table->styleTable = 'font-weight: bold; color: #555; text-align:left;';
|
||||
$table->style[0] = 'width: 50%; width:50%;';
|
||||
|
@ -243,6 +252,11 @@ $table->id = 'load_filter_form';
|
|||
$table->width = '98%';
|
||||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
f(defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
}
|
||||
$table->class = 'databox';
|
||||
$table->styleTable = 'font-weight: bold; color: #555; text-align:left;';
|
||||
$table->style[0] = 'width: 50%; width:50%;';
|
||||
|
@ -291,6 +305,10 @@ $tabletags_with->width = '100%';
|
|||
$tabletags_with->cellspacing = 4;
|
||||
$tabletags_with->cellpadding = 4;
|
||||
$tabletags_with->class = 'noshadow';
|
||||
if(defined('METACONSOLE')){
|
||||
$tabletags_with->width = '100%';
|
||||
$tabletags_with->class = 'nobady';
|
||||
}
|
||||
$tabletags_with->styleTable = 'border: 0px;';
|
||||
|
||||
$data = array();
|
||||
|
@ -305,13 +323,16 @@ $tabletags_with->data[] = $data;
|
|||
$tabletags_with->rowclass[] = '';
|
||||
|
||||
|
||||
|
||||
$tabletags_without = html_get_predefined_table('transparent', 2);
|
||||
$tabletags_without->id = 'filter_events_tags_without';
|
||||
$tabletags_without->width = '100%';
|
||||
$tabletags_without->cellspacing = 4;
|
||||
$tabletags_without->cellpadding = 4;
|
||||
$tabletags_without->class = 'noshadow';
|
||||
if(defined('METACONSOLE')){
|
||||
$tabletags_without->width = '100%';
|
||||
$tabletags_without->class = 'nobady';
|
||||
}
|
||||
$tabletags_without->styleTable = 'border: 0px;';
|
||||
|
||||
$data = array();
|
||||
|
@ -330,8 +351,16 @@ $tabletags_without->rowclass[] = '';
|
|||
|
||||
// EVENTS FILTER
|
||||
// Table for filter controls
|
||||
$events_filter = '<form id="form_filter" method="post" action="index.php?sec=eventos&sec2=operation/events/events&refr='. (int)get_parameter("refr", 0) .'&pure='.$config["pure"].'&section=' . $section . '&history='.(int)$history.'">';
|
||||
|
||||
if(defined('METACONSOLE')){
|
||||
$jump = ' ';
|
||||
$events_filter = '<form id="form_filter" class="filters_form" method="post" action="index.php?sec=eventos&sec2=operation/events/events&refr='.
|
||||
(int)get_parameter("refr", 0) .'&pure='.$config["pure"].'&section=' . $section . '&history='.(int)$history.'">';
|
||||
}
|
||||
else{
|
||||
$jump = "<br>";
|
||||
$events_filter = '<form id="form_filter" method="post" action="index.php?sec=eventos&sec2=operation/events/events&refr='.
|
||||
(int)get_parameter("refr", 0) .'&pure='.$config["pure"].'&section=' . $section . '&history='.(int)$history.'">';
|
||||
}
|
||||
// Hidden field with the loaded filter name
|
||||
$events_filter .= html_print_input_hidden('id_name', $id_name, true);
|
||||
|
||||
|
@ -345,8 +374,6 @@ else {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//- INI ADVANCE FILTER -------------------------------------------------
|
||||
$table_advanced->id = 'events_filter_form_advanced';
|
||||
|
@ -358,9 +385,9 @@ $table_advanced->styleTable = 'font-weight: bold; color: #555;';
|
|||
$table_advanced->data = array();
|
||||
|
||||
$data = array();
|
||||
$data[0] = __('Free search') . '<br>';
|
||||
$data[0] = __('Free search') . $jump;
|
||||
$data[0] .= html_print_input_text ('search', $search, '', 25, 255, true);
|
||||
$data[1] = __('Agent search') . '<br>';
|
||||
$data[1] = __('Agent search') . $jump;
|
||||
$params = array();
|
||||
$params['show_helptip'] = true;
|
||||
$params['input_name'] = 'text_agent';
|
||||
|
@ -382,19 +409,19 @@ $table_advanced->rowclass[] = '';
|
|||
|
||||
|
||||
$data = array();
|
||||
$data[0] = __('User ack.') . '<br>';
|
||||
$data[0] = __('User ack.') . $jump;
|
||||
|
||||
$user_users = users_get_user_users($config['id_user'], "ER", users_can_manage_group_all(0));
|
||||
|
||||
$data[0] .= html_print_select($user_users, "id_user_ack", $id_user_ack, '',
|
||||
__('Any'), 0, true);
|
||||
if (!$meta) {
|
||||
$data[1] = __('Module search') . '<br>';
|
||||
$data[1] = __('Module search') . $jump;
|
||||
$data[1] .= html_print_autocomplete_modules('module_search',
|
||||
$text_module, false, true, '', array(), true);
|
||||
}
|
||||
else {
|
||||
$data[1] = __('Server') . '<br>';
|
||||
$data[1] = __('Server') . $jump;
|
||||
$data[1] .= html_print_select_from_sql(
|
||||
'SELECT id, server_name FROM tmetaconsole_setup',
|
||||
'server_id', $server_id, 'script', __('All'), '0', true);
|
||||
|
@ -404,7 +431,7 @@ $table_advanced->data[] = $data;
|
|||
$table_advanced->rowclass[] = '';
|
||||
|
||||
$data = array();
|
||||
$data[0] = __("Alert events") . '<br>';
|
||||
$data[0] = __("Alert events") . $jump;
|
||||
$data[0] .= html_print_select (array('-1' => __('All'), '0' => __('Filter alert events'), '1' => __('Only alert events')), "filter_only_alert", $filter_only_alert, '', '', '', true);
|
||||
$data[1] = __('Block size for pagination') . '<br>';
|
||||
$lpagination[25] = 25;
|
||||
|
@ -417,31 +444,48 @@ $table_advanced->data[] = $data;
|
|||
$table_advanced->rowclass[] = '';
|
||||
|
||||
$data = array();
|
||||
$data[0] = __('Date from') . '<br>';
|
||||
$data[0] = __('Date from') . $jump;
|
||||
|
||||
$user_users = users_get_user_users($config['id_user'], "ER", users_can_manage_group_all(0));
|
||||
|
||||
$data[0] .= html_print_input_text ('date_from', $date_from, '', 15, 10, true);
|
||||
|
||||
$data[1] = __('Date to') . '<br>';
|
||||
$data[1] = __('Date to') . $jump;
|
||||
$data[1] .= html_print_input_text ('date_to', $date_to, '', 15, 10, true);
|
||||
|
||||
$table_advanced->data[] = $data;
|
||||
$table_advanced->rowclass[] = '';
|
||||
|
||||
$data = array();
|
||||
$data[0] = '<fieldset class="databox" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events with following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_with, true) .
|
||||
'</fieldset>';
|
||||
$data[1] = '<fieldset class="databox" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events without following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_without, true) .
|
||||
'</fieldset>';
|
||||
if(defined('METACONSOLE'))
|
||||
{
|
||||
$data[0] = '<fieldset class="" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events with following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_with, true) .
|
||||
'</fieldset>';
|
||||
$data[1] = '<fieldset class="" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events without following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_without, true) .
|
||||
'</fieldset>';
|
||||
}
|
||||
else{
|
||||
$data[0] = '<fieldset class="databox" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events with following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_with, true) .
|
||||
'</fieldset>';
|
||||
$data[1] = '<fieldset class="databox" style="width: 310px;">' .
|
||||
'<legend>' .
|
||||
__('Events without following tags') .
|
||||
'</legend>' .
|
||||
html_print_table($tabletags_without, true) .
|
||||
'</fieldset>';
|
||||
}
|
||||
$table_advanced->data[] = $data;
|
||||
$table_advanced->rowclass[] = '';
|
||||
//- END ADVANCE FILTER -------------------------------------------------
|
||||
|
@ -455,6 +499,10 @@ $table->width = '100%';
|
|||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
$table->class = 'databox';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '70%';
|
||||
$table->class = 'databox_filters';
|
||||
}
|
||||
$table->styleTable = 'font-weight: bold; color: #555;';
|
||||
$table->data = array();
|
||||
|
||||
|
@ -471,22 +519,22 @@ $data[0] .= html_print_select_groups($config["id_user"], "ER", true,
|
|||
//$data[0] .= html_print_checkbox ("recursion", 1, $recursion, true, false);
|
||||
//**********************************************************************
|
||||
|
||||
$data[1] = __('Event type') . '<br>';
|
||||
$data[1] = __('Event type') . $jump;
|
||||
$types = get_event_types ();
|
||||
// Expand standard array to add not_normal (not exist in the array, used only for searches)
|
||||
$types["not_normal"] = __("Not normal");
|
||||
$data[1] .= html_print_select ($types, 'event_type', $event_type, '', __('All'), '', true);
|
||||
|
||||
$data[2] = __('Severity') . '<br>';
|
||||
$data[2] = __('Severity') . $jump;
|
||||
$data[2] .= html_print_select (get_priorities (), "severity", $severity, '', __('All'), '-1', true, false, false);
|
||||
$table->data[] = $data;
|
||||
$table->rowclass[] = '';
|
||||
|
||||
$data = array();
|
||||
$data[0] = __('Event status') . '<br>';
|
||||
$data[0] = __('Event status') . $jump;
|
||||
$fields = events_get_all_status();
|
||||
$data[0] .= html_print_select ($fields, 'status', $status, '', '', '', true);
|
||||
$data[1] = __('Max. hours old') . '<br>';
|
||||
$data[1] = __('Max. hours old') . $jump;
|
||||
$data[1] .= html_print_input_text ('event_view_hr', $event_view_hr, '', 5, 255, true);
|
||||
$data[2] = __("Repeated") . '<br>';
|
||||
$repeated_sel[0] = __("All events");
|
||||
|
@ -540,7 +588,10 @@ unset($table);
|
|||
|
||||
$events_filter .= "</form>"; //This is the filter div
|
||||
|
||||
ui_toggle($events_filter, __('Event control filter'), '', !$open_filter);
|
||||
if (defined('METACONSOLE'))
|
||||
echo $events_filter;
|
||||
else
|
||||
ui_toggle($events_filter, __('Event control filter'), '', !$open_filter);
|
||||
|
||||
$event_table = events_get_events_table($meta, $history);
|
||||
|
||||
|
|
|
@ -177,8 +177,15 @@ if (isset($config['netflow_disable_custom_lvfilters'])) {
|
|||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined ('METACONSOLE')){
|
||||
echo "<div class='title_tactical'>". __("Draw live filter")."</div>";
|
||||
$class = "databox data";
|
||||
}else{
|
||||
$class = "databox";
|
||||
}
|
||||
|
||||
echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&sec2=operation/netflow/nf_live_view&pure='.$pure.'">';
|
||||
echo "<table class='databox' width='99%'>";
|
||||
echo "<table class='databox' width='100%'>";
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
$list_servers = array();
|
||||
|
@ -375,7 +382,7 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
|
|||
echo "<br />";
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
echo "<table class='databox' width='99%' style='border: 0px;'><tr><td>";
|
||||
echo "<table class='' width='100%' style='border: 0px;'><tr><td>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$id_report = (int) get_parameter ('id');
|
||||
|
||||
if (! $id_report) {
|
||||
|
@ -131,6 +133,14 @@ if ($enable_init_date) {
|
|||
$table->id = 'controls_table';
|
||||
$table->width = '99%';
|
||||
$table->class = 'databox';
|
||||
if (defined("METACONSOLE")){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->head[0] = __('View Report');
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'width: 60px;';
|
||||
$table->rowspan[0][0] = 2;
|
||||
|
@ -178,7 +188,6 @@ $table->data[1][2] .= html_print_input_text ('date', $date, '', 12, 10, true). '
|
|||
$table->data[1][2] .= html_print_input_text ('time', $time, '', 10, 7, true). ' ';
|
||||
$table->data[1][2] .= html_print_submit_button (__('Update'), 'date_submit', false, 'class="sub next"', true);
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
echo '<form method="post" action="'.$url.'&pure='.$config["pure"].'" style="margin-right: 0px;">';
|
||||
html_print_table ($table);
|
||||
|
|
|
@ -80,6 +80,8 @@ if (!$strict_acl) {
|
|||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$header_title = __('Tree view');
|
||||
$header_sub_title = __('Sort the agents by %s');
|
||||
switch ($tab) {
|
||||
|
@ -185,15 +187,22 @@ $row[] = html_print_input_text("search_module", $search_module, '', 40, 30, true
|
|||
|
||||
$table->data[] = $row;
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = "70%";
|
||||
$table->class='tree_filters';
|
||||
echo "<div class='view_tree'>";
|
||||
}
|
||||
if (!$strict_acl) {
|
||||
$form_html = '<form id="tree_search" method="post" action="index.php?sec=monitoring&sec2=operation/tree&refr=0&tab='.$tab.'&pure='.$config['pure'].'">';
|
||||
$form_html .= html_print_table($table, true);
|
||||
$form_html .= '</form>';
|
||||
|
||||
echo "<br>";
|
||||
ui_toggle($form_html, __('Tree search'));
|
||||
if (defined('METACONSOLE')) {
|
||||
echo $form_html;
|
||||
echo "<br>";
|
||||
}else{
|
||||
echo "<br>";
|
||||
ui_toggle($form_html, __('Tree search'));
|
||||
}
|
||||
}
|
||||
// --------------------- form filter -----------------------------------
|
||||
|
||||
|
@ -219,6 +228,10 @@ echo "</div>";
|
|||
echo "</div>";
|
||||
echo "</div>";
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
@ -264,7 +277,7 @@ enterprise_hook('close_meta_frame');
|
|||
detailRecipient: $("div#tree-controller-detail-recipient"),
|
||||
page: parameters['page'],
|
||||
tree: data.tree,
|
||||
baseURL: "<?php echo ui_get_full_url(false, false, false, false); ?>",
|
||||
baseURL: "<?php echo ui_get_full_url(false, false, false, defined('METACONSOLE')); ?>",
|
||||
ajaxURL: "<?php echo ui_get_full_url('ajax.php', false, false, false); ?>",
|
||||
filter: parameters['filter'],
|
||||
counterTitles: {
|
||||
|
|
|
@ -19,6 +19,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
include_once($config['homedir'] . "/include/functions_profile.php");
|
||||
include_once($config['homedir'] . '/include/functions_users.php');
|
||||
include_once ($config['homedir'] . '/include/functions_groups.php');
|
||||
|
@ -85,7 +87,6 @@ else {
|
|||
$url = 'index.php?sec=workspace&sec2=operation/users/user_edit';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
// Update user info
|
||||
if (isset ($_GET["modified"]) && !$view_mode) {
|
||||
|
@ -183,6 +184,13 @@ $table->width = '98%';
|
|||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
$table->class = 'vertical_fields';
|
||||
if (defined('METACONSOLE')){
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Edit my User');
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
$table->style[2] = 'width: 175px;';
|
||||
|
||||
$data = array();
|
||||
|
@ -385,15 +393,26 @@ echo '</div></form>';
|
|||
|
||||
unset($table);
|
||||
|
||||
echo '<h4>'.__('Profiles/Groups assigned to this user').'</h4>';
|
||||
if (!defined('METACONSOLE'))
|
||||
echo '<h4>'.__('Profiles/Groups assigned to this user').'</h4>';
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE')){
|
||||
echo '<br />';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox_tactical data';
|
||||
$table->title = __('Profiles/Groups assigned to this user');
|
||||
$table->head_colspan[0] = 0;
|
||||
}
|
||||
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[1] = 'font-weight: bold';
|
||||
if (!defined('METACONSOLE')){
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[1] = 'font-weight: bold';
|
||||
}
|
||||
$table->head[0] = __('Profile name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('Tags');
|
||||
|
|
Loading…
Reference in New Issue