Changed visual of any views

This commit is contained in:
m-lopez-f 2015-04-23 17:52:16 +02:00
parent 079b05b63e
commit b2ef7bc304
18 changed files with 134 additions and 107 deletions

View File

@ -36,7 +36,7 @@ $agent_name = md5($agent_name);
/* Map with the current position */
echo "<div id=\"" . $agent_name . "_agent_map\" style=\"border:1px solid black; width:100%; height: 30em;\"></div>";
if (!gis_get_agent_map($id_agente, "500px", "98%", false)) {
if (!gis_get_agent_map($id_agente, "500px", "100%", false)) {
ui_print_error_message(__("There is no default map. Please go to the setup for to set a default map."));
echo "<script type='text/javascript'>
$(document).ready(function() {
@ -46,10 +46,11 @@ if (!gis_get_agent_map($id_agente, "500px", "98%", false)) {
}
if ($agentData === false) {
ui_print_info_message ( __("There is no GIS data for this agent, so it's positioned in default position of map.") );
ui_print_info_message ( array ( 'no_close' => true, 'message' =>
__("There is no GIS data for this agent, so it's positioned in default position of map.") ) );
}
ui_print_warning_message (
__("When you change the Agent position, the agent automatically activates the 'Ignore new GIS data' option") );
ui_print_warning_message (array ( 'no_close' => true, 'message' =>
__("When you change the Agent position, the agent automatically activates the 'Ignore new GIS data' option") ) );
$table->width = '100%';
$table->class = 'databox filters';
@ -59,6 +60,8 @@ $table->cellspacing = 0;
$table->head[0] =__('Agent position');
$table->head_colspan[0] = 4;
$table->headstyle[0] = "text-align:center";
$table->style[0] = 'font-weight: bold; ';
$table->style[2] = 'font-weight: bold; ';
$table->data[1][0] = __('Latitude: ');
$table->data[1][1] = html_print_input_text_extended ('latitude', $agentData['stored_latitude'], 'text-latitude', '', 20, 20, false, '',

View File

@ -33,7 +33,7 @@ $search_string = io_safe_output(urldecode(trim(get_parameter ("search_string", "
//echo '<form id="create_module_type" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'">';
echo '<form id="create_module_type" method="post" action="'.$url.'">';
echo '<table width="100%" cellpadding="2" cellspacing="2" class="databox filters" >';
echo "<tr><td class='datos' style='width:20%'>";
echo "<tr><td class='datos' style='width:20%; font-weight: bold;'>";
echo __('Search') . ' ' .
html_print_input_text ('search_string', $search_string, '', 15, 255, true);
echo "</td>";
@ -111,7 +111,8 @@ if (($policy_page) || (isset($agent))) {
if ($show_creation) {
// Create module/type combo
//echo '<form id="create_module_type" method="post" action="'.$url.'">';
echo '<td class="datos">';
echo '<td class="datos" style="font-weight: bold;">';
echo __("Type");
html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' );
html_print_input_hidden ('edit_module', 1);
echo '</td>';
@ -529,7 +530,7 @@ $table->rowstyle = array();
$table->style = array ();
$table->style[0] = 'font-weight: bold';
$table->size = array ();
$table->size[2] = '55px';
$table->size[2] = '70px';
$table->align = array ();
$table->align[2] = 'left';
$table->align[8] = 'left';

View File

@ -38,10 +38,14 @@ $table->data = array ();
$table->size = array ();
$table->size = array ();
$table->size[0] = '10%';
$table->size[1] = '30%';
$table->style[0] = 'font-weight: bold; vertical-align: top;';
$table->align[0] = 'left';
$table->align[1] = 'left';
$table->size[1] = '25%';
$table->size[2] = '10%';
$table->size[3] = '20%';
$table->style[0] = 'font-weight: bold; ';
$table->style[1] = 'font-weight: bold; ';
$table->style[2] = 'font-weight: bold; ';
$table->style[3] = 'font-weight: bold; ';
// This is because if this view is reused after list alert view then
// styles in the previous view can affect this table.
$table->rowstyle[0] = '';

View File

@ -48,13 +48,14 @@ else {
}
// Table for filter controls
$form_filter = '<form method="post" action="index.php?sec=' . $sec . '&amp;sec2=' . $sec2 . '&amp;refr=' . ((int)get_parameter('refr', 0)) . '&amp;pure='.$config["pure"].'">';
$form_filter .= "<input type='hidden' name='search' value='1' />\n";
$form_filter .= '<table style="width: 100%;" cellpadding="0" cellspacing="0" class="databox filters">'."\n";
$form_filter .= "<tr>\n";
$form_filter .= "<td>" . __('Template name') . "</td><td>";
$form_filter = '<form method="post" action="index.php?sec=' . $sec . '&amp;sec2=' . $sec2 . '&amp;refr=' . ((int)get_parameter('refr', 0)) .
'&amp;pure='.$config["pure"].'">';
$form_filter .= "<input type='hidden' name='search' value='1' />";
$form_filter .= '<table style="width: 100%;" cellpadding="0" cellspacing="0" class="databox filters">';
$form_filter .= "<tr>";
$form_filter .= "<td style='font-weight: bold;'>" . __('Template name') . "</td><td>";
$form_filter .= html_print_input_text ('template_name', $templateName, '', 12, 255, true);
$form_filter .= "</td>\n";
$form_filter .= "</td>";
$temp = agents_get_agents();
$arrayAgents = array();
@ -65,7 +66,7 @@ if ($temp) {
}
}
$form_filter .= "<td>".__('Agents')."</td><td>";
$form_filter .= "<td style='font-weight: bold;'>".__('Agents')."</td><td>";
$params = array();
@ -79,12 +80,12 @@ $params['metaconsole_enabled'] = false;
$form_filter .= ui_print_agent_autocomplete_input($params);
$form_filter .= "</td>\n";
$form_filter .= "</td>";
$form_filter .= "<td>".__('Module name')."</td><td>";
$form_filter .= "<td style='font-weight: bold;'>".__('Module name')."</td><td>";
$form_filter .= html_print_input_text ('module_name', $moduleName, '', 12, 255, true);
$form_filter .= "</td>\n";
$form_filter .= "</tr>\n";
$form_filter .= "</td>";
$form_filter .= "</tr>";
$all_groups = db_get_value('is_admin', 'tusuario', 'id_user', $config['id_user']);
@ -94,7 +95,7 @@ if ($groups_user === false) {
}
$groups_id = implode(',', array_keys($groups_user));
$form_filter .= "<tr>\n";
$form_filter .= "<tr>";
switch ($config["dbtype"]) {
case "mysql":
case "postgresql":
@ -111,37 +112,44 @@ if (is_array($temp)) {
$arrayActions[$actionElement['id']] = $actionElement['name'];
}
}
$form_filter .= "<td>".__('Actions')."</td><td>";
$form_filter .= "<td style='font-weight: bold;'>".__('Actions')."</td><td>";
$form_filter .= html_print_select ($arrayActions, "action_id", $actionID, '', __('All'), -1, true);
$form_filter .= "</td>\n";
$form_filter .= "<td>".__('Field content')."</td><td>";
$form_filter .= html_print_input_text ('field_content', $fieldContent, '', 12, 255, true);
$form_filter .= "</td>\n";
$form_filter .= "<td>".__('Priority')."</td><td>";
$form_filter .= html_print_select (get_priorities (), 'priority',$priority, '', __('All'), -1, true);
$form_filter .= "</td>";
$form_filter .= "</tr>\n";
$form_filter .= "<td style='font-weight: bold;'>".__('Field content')."</td><td>";
$form_filter .= html_print_input_text ('field_content', $fieldContent, '', 12, 255, true);
$form_filter .= "</td>";
$form_filter .= "<td style='font-weight: bold;'>".__('Priority')."</td><td>";
$form_filter .= html_print_select (get_priorities (), 'priority',$priority, '', __('All'), -1, true);
$form_filter .= "</td style='font-weight: bold;'>";
$form_filter .= "</tr>";
$form_filter .= "<tr>\n";
$form_filter .= "<td>".__('Enabled / Disabled')."</td><td>";
$form_filter .= "<tr>";
$form_filter .= "<td style='font-weight: bold;'>".__('Enabled / Disabled')."</td><td>";
$ed_list = array ();
$ed_list[0] = __('Enable');
$ed_list[1] = __('Disable');
$form_filter .= html_print_select ($ed_list, 'enabledisable', $enabledisable, '', __('All'), -1, true);
$form_filter .= "</td><td>".__('Standby')."</td><td>";
$form_filter .= "</td><td style='font-weight: bold;'>".__('Standby')."</td><td>";
$sb_list = array ();
$sb_list[1] = __('Standby on');
$sb_list[0] = __('Standby off');
$form_filter .= html_print_select ($sb_list, 'standby', $standby, '', __('All'), -1, true);
$form_filter .= "</td></tr>\n";
$form_filter .= "</td></tr>";
if ( defined("METACONSOLE") ) {
$form_filter .= "<tr>";
$form_filter .= "<td colspan='6' align='right'>";
$form_filter .= html_print_submit_button (__('Update'), '', false, 'class="sub upd"', true);
$form_filter .= "</td>";
$form_filter .= "</tr>";
$form_filter .= "</table>";
}else{
$form_filter .= "</table>";
$form_filter .= "<div style='text-align:right; height:100%;'>";
$form_filter .= html_print_submit_button (__('Update'), '', false, 'class="sub upd"', true);
$form_filter .= "</div>";
}
$form_filter .= "<tr>\n";
$form_filter .= "<td colspan='6' align='right'>";
$form_filter .= html_print_submit_button (__('Update'), '', false, 'class="sub upd"', true);
$form_filter .= "</td>";
$form_filter .= "</tr>\n";
$form_filter .= "</table>\n";
$form_filter .= "</form>\n";
$form_filter .= "</form>";
if ( defined("METACONSOLE"))
echo "<br>";
@ -680,7 +688,7 @@ if (isset($data)) {
html_print_table ($table);
}
else {
ui_print_empty_data ( __('No alerts defined') );
ui_print_info_message ( array('no_close' => true, 'message' => __('No alerts defined') ) );
}
// Create alert button

View File

@ -178,7 +178,7 @@ if ($delete_layout || $copy_layout) {
}
}
$table->width = '98%';
$table->width = '100%';
$table->data = array ();
$table->head = array ();
$table->head[0] = __('Map name');
@ -194,10 +194,10 @@ if ($vconsoles_write || $vconsoles_manage) {
$table->align = array ();
$table->align[0] = 'left';
$table->align[1] = 'center';
$table->align[2] = 'center';
$table->align[3] = 'center';
$table->align[4] = 'center';
$table->align[1] = 'left';
$table->align[2] = 'left';
$table->align[3] = 'left';
$table->align[4] = 'left';
// Only display maps of "All" group if user is administrator
// or has "VR" privileges, otherwise show only maps of user group
@ -208,7 +208,7 @@ else
$maps = visual_map_get_user_layouts ($config['id_user'], false, false, false);
if (!$maps) {
echo '<div class="nf">'.__('No maps defined').'</div>';
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No maps defined') ) );
}
else {
foreach ($maps as $map) {

View File

@ -84,7 +84,7 @@ switch ($action) {
break;
}
$table->width = '98%';
$table->width = '100%';
if (defined('METACONSOLE')) {
$table->width = '100%';
$table->class = 'databox data';

View File

@ -47,7 +47,8 @@ $table->id = 'wizard_table';
$table->head = array ();
if (!defined('METACONSOLE')) {
$metaconsole_hack = '';
$table->width = '98%';
$table->width = '100%';
$table->class = 'databox filters';
}
else {
$metaconsole_hack = '../../';
@ -59,21 +60,17 @@ else {
}
$table->style = array ();
if (!defined('METACONSOLE')) {
$table->style[0] = 'font-weight: bold; vertical-align: text-top;';
$table->style[1] = 'font-weight: bold; vertical-align: middle;';
$table->style[2] = 'font-weight: bold; vertical-align: top';
}
else{
$table->style[0] = 'font-weight: bold; ';
$table->style[1] = 'font-weight: bold; ';
$table->style[2] = 'font-weight: bold; ';
}
$table->style[0] = 'font-weight: bold; ';
$table->style[1] = 'font-weight: bold; ';
$table->style[2] = 'font-weight: bold; ';
$table->size = array ();
$table->size[0] = "20%";
$table->size[1] = "20%";
$table->size[2] = "20%";
$table->size[3] = "20%";
$table->size[0] = "15%";
$table->size[1] = "15%";
$table->size[2] = "15%";
$table->size[3] = "15%";
$table->align = array();
$table->align[0] = 'left';

View File

@ -66,23 +66,23 @@ $table->data = array ();
$table->data[0][0] = __('Host address');
$table->data[0][1] = html_print_input_text('snmp_host_address', $snmp_host_address, '', 50, 255, true);
$table->data[1][0] = __('Community');
$table->data[1][1] = html_print_input_text('snmp_community', $snmp_community, '', 50, 255, true);
$table->data[0][2] = __('Community');
$table->data[0][3] = html_print_input_text('snmp_community', $snmp_community, '', 50, 255, true);
$table->data[2][0] = __('Enterprise String');
$table->data[2][1] = html_print_input_text('snmp_oid', $snmp_oid, '', 50, 255, true);
$table->data[2][2] = __('Value');
$table->data[2][3] = html_print_input_text('snmp_value', $snmp_value, '', 50, 255, true);
$table->data[3][0] = __('SNMP Agent');
$table->data[3][1] = html_print_input_text('snmp_agent', $snmp_agent, '', 50, 255, true);
$table->data[4][0] = __('SNMP Type').' '.ui_print_help_icon ("snmp_trap_types", true);
$table->data[4][1] = html_print_input_text('snmp_type', $snmp_type, '', 50, 255, true);
$table->data[3][2] = __('SNMP Type').' '.ui_print_help_icon ("snmp_trap_types", true);
$table->data[3][3] = html_print_input_text('snmp_type', $snmp_type, '', 50, 255, true);
$types = array(0 => 'Cold start (0)', 1 => 'Warm start (1)', 2 => 'Link down (2)', 3 => 'Link up (3)', 4 => 'Authentication failure (4)', 5 => 'EGP neighbor loss (5)', 6 => 'Enterprise (6)');
$table->data[4][1] = html_print_select($types, 'snmp_type', $snmp_type, '', __('Select'), -1, true, false, false);
$table->data[5][0] = __('Value');
$table->data[5][1] = html_print_input_text('snmp_value', $snmp_value, '', 50, 255, true);
$table->data[3][3] = html_print_select($types, 'snmp_type', $snmp_type, '', __('Select'), -1, true, false, false);
$traps_generator .= html_print_table($table, true);

View File

@ -540,9 +540,12 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$files = filemanager_list_dir ($real_directory);
$table->width = '98%';
$table->id = 'table_filemanager';
$table->class = 'databox alternate';
if (!defined('METACONSOLE')) {
$table->width = '100%';
$table->class = 'databox data';
$table->title = '<span>' . __('Index of %s', $relative_directory) . '</span>';
}
if (defined('METACONSOLE')){
$table->width = '100%';
$table->class = 'databox_tactical';
@ -565,7 +568,13 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$table->head[2] = __('Last modification');
$table->head[3] = __('Size');
$table->head[4] = __('Actions');
if (!defined('METACONSOLE')) {
$table->headstyle[0] = 'background-color:#80BA27';
$table->headstyle[1] = 'background-color:#80BA27';
$table->headstyle[2] = 'background-color:#80BA27';
$table->headstyle[3] = 'background-color:#80BA27';
$table->headstyle[4] = 'background-color:#80BA27';
}
$prev_dir = explode ("/", $relative_directory);
$prev_dir_str = "";
for ($i = 0; $i < (count ($prev_dir) - 1); $i++) {
@ -590,15 +599,13 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$table->data[1][1] = '';
$table->data[1][1] .= '<div id="create_folder" style="display: none;">';
if(!defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
$table->data[1][1] .= '<form method="post" action="' . $url . '">';
$table->data[1][1] .= html_print_input_text ('dirname', '', '', 15, 255, true);
$table->data[1][1] .= html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"', true);
if(defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"', true);
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
$table->data[1][1] .= html_print_input_hidden ('create_dir', 1, true);
$table->data[1][1] .= html_print_input_hidden('hash', md5($relative_directory . $config['dbpass']), true);
@ -607,9 +614,7 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$table->data[1][1] .= '</div>';
$table->data[1][1] .= '<div id="upload_file" style="display: none;">';
if(!defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
$table->data[1][1] .= '<form method="post" action="' . $url . '" enctype="multipart/form-data">';
$table->data[1][1] .= ui_print_help_tip (__("The zip upload in this dir, easy to upload multiple files."), true);
$table->data[1][1] .= html_print_input_file ('file', true, false);
@ -617,10 +622,11 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$table->data[1][1] .= html_print_checkbox('decompress', 1, false, true);
$table->data[1][1] .= __('Decompress');
$table->data[1][1] .= '&nbsp;&nbsp;&nbsp;';
$table->data[1][1] .= html_print_submit_button (__('Go'), 'go', false, 'class="sub next"', true);
if(defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_submit_button (__('Go'), 'go', false, 'class="sub next"', true);
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
$table->data[1][1] .= html_print_input_hidden ('real_directory', $real_directory, true);
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), true);
@ -630,15 +636,13 @@ function filemanager_file_explorer($real_directory, $relative_directory,
$table->data[1][1] .= '</div>';
$table->data[1][1] .= '<div id="create_text_file" style="display: none;">';
if(!defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
$table->data[1][1] .= '<form method="post" action="' . $url . '">';
$table->data[1][1] .= html_print_input_text('name_file', '', '', 30, 50, true);
$table->data[1][1] .= html_print_submit_button (__('Create'), 'create', false, 'class="sub next"', true);
if(defined("METACONSOLE"))
$table->data[1][1] .= html_print_button(__('Close'), 'close',
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_submit_button (__('Create'), 'create', false, 'class="sub next"', true);
$table->data[1][1] .= '&nbsp;&nbsp;' . html_print_button(__('Close'), 'close',
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
$table->data[1][1] .= html_print_input_hidden ('real_directory', $real_directory, true);
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), true);

View File

@ -727,6 +727,10 @@ input.pdf {
input.pdf:disabled {
background-image: url(../../images/input_pdf.disabled.png) !important;
}
input.camera {
background-image: url(../../images/camera.png) !important;
}
#toolbox #auto_save {
padding-top: 5px;
}

View File

@ -107,10 +107,13 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
$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);
if ( !defined("METACONSOLE") )
$data .= "<div style='height:100%; text-align:right;'>" .
html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub filter"', true) . "</div>";
$data .= '</form>';
if ($return) {

View File

@ -584,7 +584,7 @@ if (!empty ($table->data)) {
echo '</form>';
}
else {
ui_print_empty_data ( __('No alerts found') );
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No alerts found') ) );
}
//strict user hidden

View File

@ -569,7 +569,7 @@ if (!empty ($table->data)) {
}
else {
ui_print_info_message (__('There are no defined agents') );
ui_print_info_message ( array ( 'no_close' => true, 'message' => __('There are no defined agents') ) );
}
?>

View File

@ -419,6 +419,9 @@ function print_form_filter_monitors($id_agent, $status_filter_monitor = -1,
$form_text = '';
$table->class = "databox filters";
$table->width = "100%";
$table->style[0] = 'font-weight: bold;';
$table->style[2] = 'font-weight: bold;';
$table->style[4] = 'font-weight: bold;';
$table->data[0][0] = html_print_input_hidden('filter_monitors', 1, true);
$table->data[0][0] .= html_print_input_hidden('monitors_change_filter', 1, true);
$table->data[0][0] .= __('Status:');

View File

@ -1333,7 +1333,7 @@ if (!empty ($table->data)) {
html_print_table ($table);
}
else {
echo "<div class='nf'>".__('This group doesn\'t have any monitor')."</div>";
ui_print_info_message ( array ( 'no_close' => true, 'message' => __('This group doesn\'t have any monitor') ) );
}
echo "<div id='monitor_details_window'></div>";

View File

@ -332,7 +332,7 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
echo "<td></td>";
}
else {
echo "<td>" . __('Dst Ip'). ui_print_help_tip (__("Destination IP. A comma separated list of destination ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249"), true) . "</td>";
echo "<td style='font-weight:bold;'>" . __('Dst Ip'). ui_print_help_tip (__("Destination IP. A comma separated list of destination ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249"), true) . "</td>";
echo "<td colspan='2'>" . html_print_input_text ('ip_dst', $filter['ip_dst'], false, 30, 80, true) . "</td>";
}
@ -341,7 +341,7 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
echo "<td></td>";
}
else {
echo "<td>" . __('Src Ip'). ui_print_help_tip (__("Source IP. A comma separated list of source ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249"), true) . "</td>";
echo "<td style='font-weight:bold;'>" . __('Src Ip'). ui_print_help_tip (__("Source IP. A comma separated list of source ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249"), true) . "</td>";
echo "<td colspan='2'>" . html_print_input_text ('ip_src', $filter['ip_src'], false, 30, 80, true) . "</td>";
}
@ -353,7 +353,7 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
echo "<td></td>";
}
else {
echo "<td>" . __('Dst Port'). ui_print_help_tip (__("Destination port. A comma separated list of destination ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22"), true) . "</td>";
echo "<td style='font-weight:bold;'>" . __('Dst Port'). ui_print_help_tip (__("Destination port. A comma separated list of destination ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22"), true) . "</td>";
echo "<td colspan='2'>" . html_print_input_text ('dst_port', $filter['dst_port'], false, 30, 80, true) . "</td>";
}
@ -362,7 +362,7 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
echo "<td></td>";
}
else {
echo "<td>" . __('Src Port'). ui_print_help_tip (__("Source port. A comma separated list of source ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22"), true) . "</td>";
echo "<td style='font-weight:bold;'>" . __('Src Port'). ui_print_help_tip (__("Source port. A comma separated list of source ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22"), true) . "</td>";
echo "<td colspan='2'>" . html_print_input_text ('src_port', $filter['src_port'], false, 30, 80, true) . "</td>";
}
@ -393,16 +393,15 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
echo "</table>";
echo "<br />";
//echo "<br />";
echo "<table class='' width='100%' style='border: 0px; text-align:right;'><tr><td>";
html_print_submit_button (__('Draw'), 'draw_button', false, 'class="sub upd"');
echo html_print_submit_button (__('Draw'), 'draw_button', false, 'class="sub upd"',true) . "&nbsp;&nbsp;" ;
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();"');
."&nbsp;&nbsp;".
html_print_submit_button (__('Update current filter'), 'update_button', false, 'class="sub upd"');
}
}

View File

@ -65,7 +65,7 @@ $real_directory = realpath ($config['homedir'] . '/' . $directory);
ui_print_info_message(__("MIB files will be installed on the system. Please note that a MIB may depend on other MIB. To customize trap definitions use the SNMP trap editor."));
echo '<h4>' . __('Index of %s', $directory) . '</h4>';
//echo '<h4>' . __('Index of %s', $directory) . '</h4>';
filemanager_file_explorer($real_directory,
$directory,

View File

@ -129,7 +129,8 @@ $table->width = "100%";
$table->class='databox filters';
$table->data = array();
$table->rowspan = array();
$table->style[0] = 'font-weight: bold;';
$table->style[2] = 'font-weight: bold;';
// Agent filter
$agent_status_arr = array();
$agent_status_arr[AGENT_STATUS_ALL] = __('All'); //default