Change siual of view in any view
This commit is contained in:
parent
a7117fca61
commit
3d2adc315e
|
@ -74,12 +74,12 @@ function mainAgentsModules() {
|
|||
$filter_module_groups = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => $offset, 'hor_offset' => $offset,'group_id' => $group_id, 'modulegroup' => $modulegroup)).'">';
|
||||
$filter_module_groups .= '<b>'.__('Module group').'</b>';
|
||||
$filter_module_groups .= html_print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name",
|
||||
'modulegroup', $modulegroup, 'this.form.submit()',__('All'), 0, true, false, true, false, 'width: 100px; margin-right: 10px; margin-top: 5px;');
|
||||
'modulegroup', $modulegroup, 'this.form.submit()',__('All'), 0, true, false, true, false, 'width: auto;');
|
||||
$filter_module_groups .= '</form>';
|
||||
|
||||
$filter_groups = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => $offset, 'hor_offset' => $offset,'group_id' => $group_id, 'modulegroup' => $modulegroup)).'">';
|
||||
$filter_groups .= '<b>'.__('Group').'</b>';
|
||||
$filter_groups .= html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', true, false, true, '', false , 'width: 100px; margin-right: 10px;; margin-top: 5px;');
|
||||
$filter_groups .= html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', true, false, true, '', false , 'width: auto;');
|
||||
$filter_groups .= '</form>';
|
||||
|
||||
$comborefr = '<form method="post" action="' . ui_get_url_refresh (array ('offset' => $offset, 'hor_offset' => $offset,'group_id' => $group_id, 'modulegroup' => $modulegroup)).'">';
|
||||
|
@ -116,10 +116,19 @@ function mainAgentsModules() {
|
|||
}
|
||||
|
||||
// Header
|
||||
ui_print_page_header (__("Agents/Modules"), "images/module_mc.png", false, "", false, $onheader);
|
||||
ui_print_page_header (__("Agents/Modules"), "images/module_mc.png", false, "", false, $updated_time);
|
||||
|
||||
// Old style table, we need a lot of special formatting,don't use table function
|
||||
// Prepare old-style table
|
||||
echo '<table class="databox filters" cellpadding="0" cellspacing="0" border="0" style="width:100%;">';
|
||||
echo "<tr>";
|
||||
echo "<td>" . $filter_module_groups . "</td>";
|
||||
echo "<td>" . $filter_groups . "</td>";
|
||||
if ($config['pure'] == 1)
|
||||
echo "<td>" . $comborefr . "</td>";
|
||||
echo "<td> <strong>" . __("Full screen") . "</strong>" . $fullscreen['text'] . "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
$agents = '';
|
||||
$agents = agents_get_group_agents($group_id,array('disabled' => 0));
|
||||
|
@ -172,7 +181,7 @@ function mainAgentsModules() {
|
|||
$nagents = count($agents);
|
||||
|
||||
if ($all_modules == false || $agents == false) {
|
||||
echo "<div class='nf'>".__('There are no agents with modules')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no agents with modules') ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -180,7 +189,7 @@ function mainAgentsModules() {
|
|||
|
||||
echo "<tr>";
|
||||
|
||||
echo "<th width='140px' height='25px' valign='bottom' style='text-align: right !important;'>" . __("Agents") . " / " . __("Modules") . "</th>";
|
||||
echo "<th width='140px' style='text-align: right !important;'>" . __("Agents") . " / " . __("Modules") . "</th>";
|
||||
|
||||
if ($hor_offset > 0) {
|
||||
$new_hor_offset = $hor_offset-$block;
|
||||
|
|
|
@ -167,9 +167,9 @@ function mainModuleGroups() {
|
|||
|
||||
ui_print_page_header (__("Combined table of agent group and module group"), "images/module_group.png", false, "", false, '');
|
||||
|
||||
echo "<p>" .
|
||||
__("This table shows in columns the modules group and in rows agents group. The cell shows all modules") .
|
||||
"</p>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=>
|
||||
__("This table shows in columns the modules group and in rows agents group. The cell shows all modules") )
|
||||
);
|
||||
|
||||
|
||||
$agentGroups = users_get_groups ($config['id_user'], "AR", false);
|
||||
|
@ -182,7 +182,7 @@ function mainModuleGroups() {
|
|||
$table->headstyle[] = "width: 20%";
|
||||
foreach ($modelGroups as $i => $n) {
|
||||
$table->headstyle[] = "width: 7%";
|
||||
$modelGroups[$i] = ui_print_truncate_text($n, GENERIC_SIZE_TEXT);
|
||||
$modelGroups[$i] = ui_print_truncate_text($n, GENERIC_SIZE_TEXT, true, true, true, '…', 'color:#FFF');
|
||||
}
|
||||
|
||||
$head = $modelGroups;
|
||||
|
@ -203,7 +203,7 @@ function mainModuleGroups() {
|
|||
$fired = false;
|
||||
$row = array();
|
||||
|
||||
array_push($row, ui_print_truncate_text($name, GENERIC_SIZE_TEXT));
|
||||
array_push($row, ui_print_truncate_text($name, GENERIC_SIZE_TEXT, true, true, true, '…', 'color:#FFF'));
|
||||
|
||||
foreach ($modelGroups as $idModelGroup => $modelGroup) {
|
||||
$fired = false;
|
||||
|
|
|
@ -119,8 +119,6 @@ if ($new_agent) {
|
|||
$server_name = reset(array_keys($servers));
|
||||
}
|
||||
|
||||
echo '<div style="height: 5px"> </div>';
|
||||
|
||||
if (!$new_agent) {
|
||||
// Agent remote configuration editor
|
||||
enterprise_include_once('include/functions_config_agents.php');
|
||||
|
|
|
@ -128,7 +128,7 @@ echo "</form>";
|
|||
|
||||
echo '<div style="text-align: right; width: 100%;padding-top:10px;padding-bottom:10px">';
|
||||
echo "<strong>";
|
||||
echo "<a style='color: #004A1B;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules in Pandora FMS Library")."</a>";
|
||||
echo "<a style='color: #373737;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules in Pandora FMS Library")."</a>";
|
||||
echo "</strong>";
|
||||
echo '</div>';
|
||||
|
||||
|
|
|
@ -503,7 +503,7 @@ if ($create_alert || $update_alert) {
|
|||
|
||||
/* SNMP alert filters */
|
||||
|
||||
echo '<table cellpadding="4" cellspacing="4" width="98%" class="databox" style="font-weight: bold">';
|
||||
echo '<table cellpadding="0" cellspacing="0" width="100%" class="databox filter" style="font-weight: bold">';
|
||||
|
||||
// Description
|
||||
echo '<tr><td class="datos" valign="top">'.__('Description').'</td><td class="datos">';
|
||||
|
@ -863,7 +863,8 @@ else {
|
|||
$offset = (int) get_parameter ('offset');
|
||||
|
||||
$table_filter = new stdClass();
|
||||
$table_filter->width = "98%";
|
||||
$table_filter->width = "100%";
|
||||
$table_filter->class = "databox filters";
|
||||
$table_filter->data = array();
|
||||
$table_filter->data[0][0] = __('Free search') . ui_print_help_tip(
|
||||
__('Search by these fields description, OID, Custom Value, SNMP Agent (IP), Single value, each Variable bindings/Datas.'), true);
|
||||
|
@ -884,7 +885,7 @@ else {
|
|||
$form_filter .= '</div>';
|
||||
$form_filter .= '</form>';
|
||||
|
||||
echo "<br>";
|
||||
//echo "<br>";
|
||||
ui_toggle($form_filter,__('Alert SNMP control filter'), __('Toggle filter(s)'));
|
||||
|
||||
$filter = array();
|
||||
|
@ -948,7 +949,7 @@ else {
|
|||
//Overview
|
||||
if ($count == 0) {
|
||||
$result = array ();
|
||||
echo "<div class='nf'>" . __('There are no SNMP alerts') . "</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP alerts') ) );
|
||||
}
|
||||
else {
|
||||
ui_pagination ($count, $url_pagination);
|
||||
|
@ -965,8 +966,8 @@ else {
|
|||
$table->size = array ();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = "98%";
|
||||
$table->class= "databox";
|
||||
$table->width = "100%";
|
||||
$table->class= "databox data";
|
||||
$table->align = array ();
|
||||
|
||||
$table->head[0] = '<span title="' . __('Position') . '">' . __('P.') . '</span>';
|
||||
|
|
|
@ -58,7 +58,8 @@ if ($generate_trap) {
|
|||
}
|
||||
|
||||
$traps_generator = '<form method="POST" action="index.php?sec=snmpconsole&sec2=godmode/snmpconsole/snmp_trap_generator">';
|
||||
$table->width = '90%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
|
||||
|
|
|
@ -484,37 +484,36 @@ function snmp_browser_print_oid ($oid = array(), $custom_action = '',
|
|||
* @return string The container div.
|
||||
*
|
||||
*/
|
||||
function snmp_browser_print_container ($return = false, $width = '95%', $height = '500px', $display = '') {
|
||||
function snmp_browser_print_container ($return = false, $width = '100%', $height = '500px', $display = '') {
|
||||
|
||||
// Target selection
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
|
||||
$table->data[0][0] = '<strong>'.__('Target IP').'</strong><br>';
|
||||
$table->data[0][0] = '<strong>'.__('Target IP').'</strong> ';
|
||||
$table->data[0][0] .= html_print_input_text ('target_ip', '', '', 25, 0, true);
|
||||
$table->data[0][1] = '<strong>'.__('Community').'</strong><br>';
|
||||
$table->data[0][1] = '<strong>'.__('Community').'</strong> ';
|
||||
$table->data[0][1] .= html_print_input_text ('community', '', '', 25, 0, true);
|
||||
$table->data[0][2] = '<strong>'.__('Starting OID').'</strong><br>';
|
||||
$table->data[0][2] = '<strong>'.__('Starting OID').'</strong> ';
|
||||
$table->data[0][2] .= html_print_input_text ('starting_oid', '.1.3.6.1.2', '', 25, 0, true);
|
||||
|
||||
$table->data[0][3] = '<strong>' . __('Version') . '</strong>';
|
||||
$table->data[0][3] = '<strong>' . __('Version') . '</strong> ';
|
||||
$table->data[0][3] .= html_print_select (
|
||||
array ('1' => 'v. 1',
|
||||
'2' => 'v. 2',
|
||||
'2c' => 'v. 2c',
|
||||
'3' => 'v. 3'),
|
||||
'snmp_browser_version', '', 'checkSNMPVersion();', '', '', true, false, false, '');
|
||||
$table->cellstyle[0][3] = 'width: 15px;';
|
||||
|
||||
$table->data[0][4] = html_print_button(__('Browse'), 'browse', false, 'snmpBrowse()', 'class="sub search"', true);
|
||||
$table->cellstyle[0][4] = 'vertical-align: bottom;';
|
||||
|
||||
$table->data[0][4] = html_print_button(__('Browse'), 'browse', false, 'snmpBrowse()', 'class="sub search" style="margin-top:0px;"', true);
|
||||
|
||||
// SNMP v3 options
|
||||
$table3->width = '98%';
|
||||
$table3->width = '100%';
|
||||
|
||||
$table3->valign[0] = 'top';
|
||||
$table3->valign[1] = 'top';
|
||||
$table3->valign[0] = '';
|
||||
$table3->valign[1] = '';
|
||||
|
||||
$table3->data[2][1] = '<b>'.__('Auth user').'</b>';
|
||||
$table3->data[2][2] = html_print_input_text ('snmp3_browser_auth_user', '', '', 15, 60, true);
|
||||
|
@ -535,6 +534,7 @@ function snmp_browser_print_container ($return = false, $width = '95%', $height
|
|||
|
||||
// Search tools
|
||||
$table2->width = '100%';
|
||||
$table2->class = 'databox filters';
|
||||
$table2->size = array ();
|
||||
$table2->data = array ();
|
||||
|
||||
|
|
|
@ -90,7 +90,6 @@ li:hover ul { display: block; }
|
|||
.submenu2 li a {
|
||||
margin-left: 0px;
|
||||
padding-left: 0px;
|
||||
display:block;
|
||||
}
|
||||
|
||||
.menu li img.toggle {
|
||||
|
@ -221,11 +220,6 @@ ul li {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* Styles for Menu Items */
|
||||
ul li a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Fix IE. Hide from IE Mac \*/
|
||||
* html ul li { float: left; height: 1%; }
|
||||
* html ul li a { height: 1%; }
|
||||
|
|
|
@ -126,7 +126,7 @@ a {
|
|||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #003a3a;
|
||||
color: #373737;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a.white_bold {
|
||||
|
@ -657,7 +657,6 @@ input.target, input.search, input.copy, input.add, input.graph,
|
|||
input.percentile, input.binary, input.camera, input.config,
|
||||
input.cancel, input.default, input.filter, input.pdf {
|
||||
padding-right: 30px;
|
||||
margin-top: 15px;
|
||||
height: 23px;
|
||||
|
||||
}
|
||||
|
@ -2942,8 +2941,8 @@ table#policy_modules td * {
|
|||
margin-top: 0px !important ;
|
||||
}
|
||||
|
||||
.databox.filters{
|
||||
margin-bottom: 17px;
|
||||
.databox.filters, .databox.data{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.databox.filters td{
|
||||
|
@ -2957,7 +2956,7 @@ table#policy_modules td * {
|
|||
vertical-align: middle;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.databox.data td>img, .databox.data td>div>a>img,
|
||||
.databox.data td>img,.databox.data th>img, .databox.data td>div>a>img,
|
||||
.databox.data td>span>img, .databox.data td>span>a>img,
|
||||
.databox.data td>a>img{
|
||||
vertical-align: middle;
|
||||
|
|
|
@ -124,7 +124,7 @@ $table_agent->cellstyle[count($table_agent->data)][0] =
|
|||
|
||||
$data[2] = ui_print_os_icon ($agent["id_os"], false, true, true, false, false, false, array('title' => __('OS') . ': ' . get_os_name ($agent["id_os"])));
|
||||
$table_agent->cellstyle[count($table_agent->data)][2] =
|
||||
'width: 16px; text-align: right; padding: 0px; vertical-align: top;';
|
||||
'width: 16px; text-align: right; padding: 0px;';
|
||||
$data[3] = empty($agent["os_version"]) ? get_os_name ((int) $agent["id_os"]) : $agent["os_version"];
|
||||
$table_agent->colspan[count($table_agent->data)][3] = 2;
|
||||
|
||||
|
@ -144,7 +144,7 @@ if (!empty($address)) {
|
|||
$data = array();
|
||||
$data[2] = html_print_image('images/world.png', true, array('title' => __('IP address')));
|
||||
$table_agent->cellstyle[count($table_agent->data)][2] =
|
||||
'width: 16px; text-align: right; padding: 0px; vertical-align: top;';
|
||||
'width: 16px; text-align: right; padding: 0px;';
|
||||
$data[3] = '<span style="vertical-align:top; display: inline-block;">';
|
||||
$data[3] .= empty($address) ? '<em>' . __('N/A') . '</em>' : $address;
|
||||
$data[3] .= '</span>';
|
||||
|
@ -156,7 +156,7 @@ if (!empty($address)) {
|
|||
$data = array();
|
||||
$data[2] = html_print_image('images/version.png', true, array('title' => __('Agent Version')));
|
||||
$table_agent->cellstyle[count($table_agent->data)][2] =
|
||||
'width: 16px; text-align: right; padding: 0px; vertical-align: top;';
|
||||
'width: 16px; text-align: right; padding: 0px;';
|
||||
$data[3] = '<span style="vertical-align:top; display: inline-block;">';
|
||||
$data[3] .= empty($agent["agent_version"]) ? '<i>' . __('N/A') . '</i>' : $agent["agent_version"];
|
||||
$data[3] .= '</span>';
|
||||
|
@ -168,7 +168,7 @@ $data = array();
|
|||
$data[2] = html_print_image('images/default_list.png', true,
|
||||
array('title' => __('Description')));
|
||||
$table_agent->cellstyle[count($table_agent->data)][2] =
|
||||
'width: 16px; text-align: right; padding: 0px; vertical-align: top;';
|
||||
'width: 16px; text-align: right; padding: 0px;';
|
||||
$data[3] = '<span style="vertical-align:top; display: inline-block;">';
|
||||
$data[3] .= empty($agent["comentarios"]) ?
|
||||
'<em>' . __('N/A') . '</em>' :
|
||||
|
|
|
@ -181,7 +181,7 @@ enterprise_hook('open_meta_frame');
|
|||
if (defined ('METACONSOLE')){
|
||||
$class = "databox data";
|
||||
}else{
|
||||
$class = "databox";
|
||||
$class = "databox filters";
|
||||
}
|
||||
|
||||
echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&sec2=operation/netflow/nf_live_view&pure='.$pure.'">';
|
||||
|
@ -395,24 +395,20 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
|
|||
|
||||
echo "<br />";
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
echo "<table class='' width='100%' style='border: 0px; text-align:right;'><tr><td>";
|
||||
}
|
||||
|
||||
|
||||
echo "<table class='' width='100%' style='border: 0px; text-align:right;'><tr><td>";
|
||||
|
||||
html_print_submit_button (__('Draw'), 'draw_button', false, 'class="sub upd"');
|
||||
|
||||
if (!$netflow_disable_custom_lvfilters) {
|
||||
if (check_acl ($config["id_user"], 0, "AW")) {
|
||||
html_print_submit_button (__('Save as new filter'), 'save_button', false, 'class="sub upd" onClick="return defineFilterName();"');
|
||||
|
||||
." ".
|
||||
html_print_submit_button (__('Update current filter'), 'update_button', false, 'class="sub upd"');
|
||||
}
|
||||
}
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
|
||||
echo'</form>';
|
||||
|
||||
if ($draw != '') {
|
||||
|
|
|
@ -94,7 +94,7 @@ $traps_generated_by_oid = db_get_all_rows_sql($sql_traps_generated_by_oid);
|
|||
|
||||
// No traps
|
||||
if (empty($traps_generated_by_source) || empty($traps_generated_by_oid)) {
|
||||
echo '<div class="nf">'.__('There are no SNMP traps in database').'</div>';
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP traps in database') ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,7 @@ $water_mark = array('file' => $config['homedir'] . "/images/logo_vertical_water
|
|||
// By SOURCE
|
||||
$table_source = new StdClass();
|
||||
$table_source->width = '100%';
|
||||
$table_source->class = 'databox data';
|
||||
$table_source->head[] = __("Traps received by source") . " - " . sprintf(__('Top %d'), 25);
|
||||
$table_source->head_colspan[] = 2;
|
||||
$table_source->headstyle[] = "background-color: #82b92e";
|
||||
|
|
|
@ -285,7 +285,10 @@ switch ($config["dbtype"]) {
|
|||
$sql_all = sprintf($sql_all, $whereSubquery);
|
||||
$sql_count = sprintf($sql_count, $whereSubquery);
|
||||
|
||||
$table->width = '90%';
|
||||
$table->width = '100%';
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->class = 'databox filters';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '120px';
|
||||
$table->data = array ();
|
||||
|
@ -351,8 +354,7 @@ $trapcount = (int) db_get_value_sql($sql_count);
|
|||
|
||||
// No traps
|
||||
if (empty ($traps)) {
|
||||
echo '<div class="nf">' .
|
||||
__('There are no SNMP traps in database') . '</div>';
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no SNMP traps in database') ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -381,10 +383,10 @@ ui_pagination ($trapcount, $urlPagination, $offset, $pagination);
|
|||
|
||||
echo '<form name="eventtable" method="POST" action="' . $url_snmp . '">';
|
||||
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '99%';
|
||||
$table->class = "databox";
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->width = '100%';
|
||||
$table->class = "databox data";
|
||||
$table->head = array ();
|
||||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
|
|
Loading…
Reference in New Issue