changed helps

Former-commit-id: 3319f3d09d695e2b9f2958f1ac013eb2e0a001b4
This commit is contained in:
manuel 2019-04-29 14:36:02 +02:00
parent ac41e9255f
commit 6bd8221bc0
33 changed files with 237 additions and 87 deletions

View File

@ -25,7 +25,7 @@ function extension_db_status()
__('DB Schema check'),
'images/extensions.png',
false,
'',
'db_status_tab',
true,
''
);

View File

@ -345,15 +345,21 @@ full path to Pandora FMS 'config.php' file.
include '../include/config.php';
}
// Not from console, this is a web session
if ((!isset($config['id_user'])) or (!check_acl($config['id_user'], 0, 'PM'))) {
// Not from console, this is a web session.
if ((!isset($config['id_user'])) || (!check_acl($config['id_user'], 0, 'PM'))) {
echo "<h2>You don't have privileges to use diagnostic tool</h2>";
echo '<p>Please login with an administrator account before try to use this tool</p>';
exit;
}
// Header
ui_print_page_header(__('Pandora FMS Diagnostic tool'), '', false, '', true);
// Header.
ui_print_page_header(
__('Pandora FMS Diagnostic tool'),
'',
false,
'diagnostic_tool_tab',
true
);
echo "<table width='1000px' border='0' style='border:0px;' class='databox data' cellpadding='4' cellspacing='4'>";
echo "<tr><th style='background-color:#b1b1b1;font-weight:bold;font-style:italic;border-radius:2px;' align=center colspan='2'>".__('Pandora status info').'</th></tr>';
@ -678,7 +684,7 @@ render_info_data(
$read_rnd_buffer_size = (db_get_value_sql('SELECT @@read_rnd_buffer_size') / 1024);
$query_cache_min_res_unit = (db_get_value_sql('SELECT @@query_cache_min_res_unit') / 1024);
$innodb_file_per_table = db_get_value_sql('SELECT @@innodb_file_per_table');
echo "<tr><th style='background-color:#b1b1b1;font-weight:bold;font-style:italic;border-radius:2px;' align=center colspan='2'>".__('MySQL Performance metrics').'</th></tr>';
echo "<tr><th style='background-color:#b1b1b1;font-weight:bold;font-style:italic;border-radius:2px;' align=center colspan='2'>".__('MySQL Performance metrics').' '.ui_print_help_icon('performance_metrics_tab', true).'</th></tr>';
render_row(status_values($innodb_log_file_size_min_rec_value, $innodb_log_file_size), 'InnoDB log file size ', 'InnoDB log file size ');
render_row(status_values($innodb_log_buffer_size_min_rec_value, $innodb_log_buffer_size), 'InnoDB log buffer size ', 'InnoDB log buffer size ');

View File

@ -317,7 +317,6 @@ $table->data[0][0] = '<b>'.__('Target IP').'</b>';
$table->data[0][1] = html_print_input_text('ip_target', $ip_target, '', 15, 60, true);
$table->data[0][2] = '<b>'.__('Namespace').'</b>';
$table->data[0][2] .= ui_print_help_icon('wminamespace', true);
$table->data[0][3] = html_print_input_text('tcp_send', $tcp_send, '', 15, 60, true);
$table->data[1][0] = '<b>'.__('Username').'</b>';

View File

@ -583,7 +583,6 @@ if ($id_agente) {
case 'collection':
$tab_description = '- '.__('Collection');
$help_header = 'collection_tab';
break;
case 'inventory':
@ -611,7 +610,6 @@ if ($id_agente) {
case 'template':
$tab_description = '- '.__('Templates');
$help_header = 'template_tab';
break;
case 'gis':
@ -631,14 +629,17 @@ if ($id_agente) {
switch (get_parameter('wizard_section')) {
case 'snmp_explorer':
$tab_description = '- '.__('SNMP Wizard');
$help_header = 'agent_snmp_explorer_tab';
break;
case 'snmp_interfaces_explorer':
$tab_description = '- '.__('SNMP Interfaces wizard');
$help_header = 'agent_snmp_interfaces_explorer_tab';
break;
case 'wmi_explorer':
$tab_description = '- '.__('WMI Wizard');
$help_header = 'agent_snmp_wmi_explorer_tab';
break;
}
break;

View File

@ -62,7 +62,7 @@ if ((!$copy_action) && (!$delete_action)) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert actions'), 'images/gm_alerts.png', false, 'alerts_config', true);
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert actions'), 'images/gm_alerts.png', false, 'alerts_action', true);
}
}

View File

@ -272,7 +272,13 @@ if ($update_command) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert commands'), 'images/gm_alerts.png', false, 'alerts_config', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Alert commands'),
'images/gm_alerts.png',
false,
'alerts_command_tab',
true
);
}
if ($create_command) {

View File

@ -41,7 +41,13 @@ if (is_ajax()) {
}
// Header
ui_print_page_header(__('Alerts').' &raquo; '.__('Special days list'), 'images/gm_alerts.png', false, 'alert_special_days', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Special days list'),
'images/gm_alerts.png',
false,
'alert_special_days',
true
);
$update_special_day = (bool) get_parameter('update_special_day');
$create_special_day = (bool) get_parameter('create_special_day');

View File

@ -132,7 +132,13 @@ if (!$delete_template) {
alerts_meta_print_header();
} else {
// ~ ui_print_page_header (__('Alerts')." &raquo; ". __('Alert templates'), "images/gm_alerts.png", false, "alerts_config", true);
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert templates'), 'images/gm_alerts.png', false, '', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Alert templates'),
'images/gm_alerts.png',
false,
'alert_templates_tab',
true
);
}
}
@ -201,7 +207,13 @@ if ($delete_template) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert templates'), 'images/gm_alerts.png', false, 'alerts_config', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Alert templates'),
'images/gm_alerts.png',
false,
'alerts_config',
true
);
}
} else {
db_pandora_audit(
@ -216,7 +228,13 @@ if ($delete_template) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Alert templates'), 'images/gm_alerts.png', false, 'alerts_config', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Alert templates'),
'images/gm_alerts.png',
false,
'alerts_config',
true
);
}
}

View File

@ -184,7 +184,6 @@ $table->colspan[2][1] = 2;
$table->data[3][0] = __('Threshold');
$table->data[3][1] = html_print_input_text('action_threshold', $action_threshold, '', 5, 7, true);
$table->data[3][1] .= ' '.__('seconds').ui_print_help_icon('action_threshold', true);
$table->colspan[3][1] = 2;
$table->data[4][0] = '';

View File

@ -42,7 +42,7 @@ if (defined('METACONSOLE')) {
__('Alerts').' &raquo; '.__('Configure alert command'),
'images/gm_alerts.png',
false,
'alerts_config',
'alerts_config_command_tab',
true
);
}
@ -153,7 +153,6 @@ $table->data['name'][2] = html_print_input_text('name', $name, '', 35, 255, true
$table->colspan['command'][1] = 3;
$table->data['command'][0] = __('Command');
$table->data['command'][0] .= ui_print_help_icon('alert_macros', true);
$table->data['command'][1] = html_print_textarea('command', 8, 30, $command, '', true);
$table->colspan['group'][1] = 3;
@ -178,11 +177,6 @@ $table->data['description'][1] = html_print_textarea('description', 10, 30, $des
for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
$table->data['field'.$i][0] = sprintf(__('Field %s description'), $i);
// Only show help on first row
if ($i == 1) {
$table->data['field'.$i][0] .= ui_print_help_icon('alert_fields_description', true);
}
if (!empty($fields_descriptions)) {
$field_description = $fields_descriptions[($i - 1)];
} else {
@ -193,11 +187,6 @@ for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
$table->data['field'.$i][2] = sprintf(__('Field %s values'), $i);
// Only show help on first row
if ($i == 1) {
$table->data['field'.$i][2] .= ui_print_help_icon('alert_fields_values', true);
}
if (!empty($fields_values)) {
$field_values = $fields_values[($i - 1)];
} else {

View File

@ -56,14 +56,20 @@ if ($a_template !== false) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
// ~ ui_print_page_header (__('Alerts') .
// ~ ' &raquo; ' . __('Configure alert template'), "",
// ~ false, "alerts_config", true);
$step = (int) get_parameter('step', 1);
if ($step == 1) {
$help_header = 'configure_alert_template_step_1';
} else if ($step == 2) {
$help_header = 'configure_alert_template_step_2';
} else if ($step == 3) {
$help_header = 'configure_alert_template_step_3';
}
ui_print_page_header(
__('Alerts').' &raquo; '.__('Configure alert template'),
'',
false,
'',
$help_header,
true
);
}
@ -83,7 +89,13 @@ if ($a_template !== false) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Configure alert template'), 'images/gm_alerts.png', false, 'conf_alert_template', true);
ui_print_page_header(
__('Alerts').' &raquo; '.__('Configure alert template'),
'images/gm_alerts.png',
false,
'conf_alert_template',
true
);
}
} else {
db_pandora_audit(
@ -101,7 +113,22 @@ if ($a_template !== false) {
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(__('Alerts').' &raquo; '.__('Configure alert template'), 'images/gm_alerts.png', false, 'conf_alert_template', true);
$step = (int) get_parameter('step', 1);
if ($step == 1) {
$help_header = 'configure_alert_template_step_1';
} else if ($step == 2) {
$help_header = 'configure_alert_template_step_2';
} else if ($step == 3) {
$help_header = 'configure_alert_template_step_3';
}
ui_print_page_header(
__('Alerts').' &raquo; '.__('Configure alert template'),
'images/gm_alerts.png',
false,
$help_header,
true
);
}
}

View File

@ -124,7 +124,7 @@ $data[3] .= '<span class="size">'.html_print_input_text('modal_height', $event_r
$table->data[2] = $data;
$data = [];
$data[0] = __('Parameters').ui_print_help_icon('response_parameters', true);
$data[0] = __('Parameters');
$data[1] = html_print_input_text(
'params',
$event_response['params'],

View File

@ -77,6 +77,7 @@ switch ($section) {
case 'responses':
$buttons['responses']['active'] = true;
$subpage = ' - '.__('Responses');
$help_header = 'events_responses_tab';
break;
case 'view':
@ -90,7 +91,14 @@ switch ($section) {
}
if (! defined('METACONSOLE')) {
ui_print_page_header(__('Manage events').$subpage, 'images/gm_events.png', false, '', true, $buttons);
ui_print_page_header(
__('Manage events').$subpage,
'images/gm_events.png',
false,
$help_header,
true,
$buttons
);
} else {
ui_meta_print_header(__('Manage events').$subpage, '', $buttons);
}

View File

@ -87,7 +87,14 @@ if (defined('METACONSOLE')) {
$title_in_header = __('Create group');
}
ui_print_page_header($title_in_header, 'images/group.png', false, '', true, '');
ui_print_page_header(
$title_in_header,
'images/group.png',
false,
'create_group_tab',
true,
''
);
$sec = 'gagente';
}
@ -175,11 +182,11 @@ if ($config['enterprise_installed']) {
}
$table->data[$i][0] = __('Alerts');
$table->data[$i][1] = html_print_checkbox('alerts_enabled', 1, ! $alerts_disabled, true);
$table->data[$i][1] = html_print_checkbox_switch('alerts_enabled', 1, ! $alerts_disabled, true);
$i++;
$table->data[$i][0] = __('Propagate ACL').ui_print_help_tip(__('Propagate the same ACL security into the child subgroups.'), true);
$table->data[$i][1] = html_print_checkbox('propagate', 1, $propagate, true).ui_print_help_icon('propagate_acl', true);
$table->data[$i][1] = html_print_checkbox_switch('propagate', 1, $propagate, true);
$i++;
$table->data[$i][0] = __('Custom ID');

View File

@ -275,7 +275,7 @@ if (defined('METACONSOLE')) {
__('Groups defined in %s', get_product_name()),
'images/group.png',
false,
'',
'group_list_tab',
true,
$buttons
);

View File

@ -118,6 +118,7 @@ switch ($tab) {
case 'massive_agents':
$options = $options_agents;
$help_header = 'massive_agents_tab';
break;
case 'massive_modules':
@ -235,7 +236,7 @@ ui_print_page_header(
__('Bulk operations').' &raquo; '.$options[$option],
'images/gm_massive_operations.png',
false,
'',
$help_header,
true,
$onheader,
true,

View File

@ -36,7 +36,13 @@ if (defined('METACONSOLE')) {
components_meta_print_header();
$sec = 'advanced';
} else {
ui_print_page_header(__('Module management').' &raquo; '.__('Component group management'), '', false, 'component_groups', true);
ui_print_page_header(
__('Module management').' &raquo; '.__('Component group management'),
'',
false,
'component_groups',
true
);
$sec = 'gmodules';
}

View File

@ -50,7 +50,7 @@ if (defined('METACONSOLE')) {
__('Module management').' &raquo; '.__('Network component management'),
'',
false,
'network_component',
'network_component_tab',
true,
'',
false,

View File

@ -35,7 +35,16 @@ if (! check_acl($config['id_user'], 0, 'PM')) {
*/
ui_print_page_header(__('Module management').' &raquo; '.__('Module template management'), 'images/gm_modules.png', false, 'template_tab', true, '', true, 'modulemodal');
ui_print_page_header(
__('Module management').' &raquo; '.__('Module template management'),
'images/gm_modules.png',
false,
'module_template_tab',
true,
'',
true,
'modulemodal'
);
require_once 'include/functions_network_profiles.php';

View File

@ -54,7 +54,14 @@ if (! defined('METACONSOLE')) {
$buttons['add']['text'] = '<a href="index.php?sec=netf&sec2=godmode/netflow/nf_edit_form">'.html_print_image('images/add_mc.png', true, ['title' => __('Add filter')]).'</a>';
ui_print_page_header(__('Netflow Filter'), 'images/gm_netflow.png', false, '', true, $buttons);
ui_print_page_header(
__('Netflow Filter'),
'images/gm_netflow.png',
false,
'pcap_filter',
true,
$buttons
);
} else {
$nav_bar = [
[
@ -230,10 +237,9 @@ $table->data[5][1] = html_print_input_text('dst_port', $dst_port, false, 40, 80,
$table->data[6][0] = __('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);
$table->data[6][1] = html_print_input_text('src_port', $src_port, false, 40, 80, true);
$table->data[7][0] = ui_print_help_icon('pcap_filter', true);
$table->data[7][1] = html_print_textarea('advanced_filter', 4, 40, $advanced_filter, '', true);
$table->data[8][0] = '<b>'.__('Aggregate by').'</b>'.ui_print_help_icon('aggregate_by', true);
$table->data[8][0] = '<b>'.__('Aggregate by').'</b>';
$aggregate_list = [
'srcip' => __('Src Ip Address'),
'dstip' => __('Dst Ip Address'),

View File

@ -404,7 +404,7 @@ if (($create != '') || ($view != '')) {
$table->data['plugin_command'] = $data;
$data = [];
$data[0] = __('Plug-in parameters').ui_print_help_icon('plugin_parameters', true);
$data[0] = __('Plug-in parameters');
$data[1] = '<input type="text" name="form_parameters" id="form_parameters" class="command_component command_advanced_conf" size=100 value="'.$parameters.'" '.$disabled.'>';
if ($locked) {
$data[1] .= html_print_image('images/lock.png', true, ['class' => 'command_advanced_conf lock']);
@ -550,7 +550,7 @@ if (($create != '') || ($view != '')) {
$table->headstyle[0] = 'text-align: center';
html_print_table($table);
} else {
echo '<fieldset>'.'<legend>'.__('Parameters macros').ui_print_help_icon('macros', true).'</legend>';
echo '<fieldset>'.'<legend>'.__('Parameters macros').'</legend>';
html_print_table($table);
echo '</fieldset>';
}
@ -613,7 +613,16 @@ if (($create != '') || ($view != '')) {
config_update_value('metaconsole_deploy_plugin_server', 1);
}
} else {
ui_print_page_header(__('Plug-ins registered on %s', get_product_name()), 'images/gm_servers.png', false, '', true);
ui_print_page_header(
__(
'Plug-ins registered on %s',
get_product_name()
),
'images/gm_servers.png',
false,
'',
true
);
$management_allowed = !is_central_policies_on_node();
if (!$management_allowed) {

View File

@ -28,8 +28,14 @@ require_once 'include/functions_gis.php';
ui_require_javascript_file('openlayers.pandora');
// Header
ui_print_page_header(__('Map conections GIS'), '', false, 'setup_gis_index', true);
// Header.
ui_print_page_header(
__('Map conections GIS'),
'',
false,
'',
true
);
$action = get_parameter('action');

View File

@ -628,7 +628,7 @@ $table_other->data[6][1] = html_print_input_text(
true
);
$table_other->data[7][0] = __('Use agent access graph').ui_print_help_icon('agent_access', true);
$table_other->data[7][0] = __('Use agent access graph');
$table_other->data[7][1] = html_print_checkbox_switch('agentaccess', 1, $config['agentaccess'], true);
$table_other->data[8][0] = __('Max. recommended number of files in attachment directory');
@ -707,24 +707,24 @@ $table_other->data[13][1] = html_print_input_text(
echo '<form id="form_setup" method="post">';
echo '<fieldset>';
echo '<legend>'.__('Database maintenance status').'</legend>';
echo '<legend>'.__('Database maintenance status').' '.ui_print_help_icon('database_maintenance_status_tab', true).'</legend>';
html_print_table($table_status);
echo '</fieldset>';
echo '<fieldset>';
echo '<legend>'.__('Database maintenance options').'</legend>';
echo '<legend>'.__('Database maintenance options').' '.ui_print_help_icon('database_maintenance_options_tab', true).'</legend>';
html_print_table($table);
echo '</fieldset>';
if ($config['history_db_enabled'] == 1) {
echo '<fieldset>';
echo '<legend>'.__('Historical database maintenance options').'</legend>';
echo '<legend>'.__('Historical database maintenance options').' '.ui_print_help_icon('historical_database_maintenance_options_tab', true).'</legend>';
html_print_table($table_historical);
echo '</fieldset>';
}
echo '<fieldset>';
echo '<legend>'.__('Others').'</legend>';
echo '<legend>'.__('Others').' '.ui_print_help_icon('others_database_maintenance_options_tab', true).'</legend>';
html_print_table($table_other);
echo '</fieldset>';

View File

@ -135,9 +135,9 @@ if (enterprise_installed()) {
switch ($section) {
case 'general':
default:
$buttons['general']['active'] = true;
$subpage = ' &raquo '.__('General');
$help_header = 'setup_general_tab';
break;
case 'auth':
@ -148,7 +148,7 @@ switch ($section) {
case 'perf':
$buttons['perf']['active'] = true;
$subpage = ' &raquo '.__('Performance');
$help_header = 'performance';
$help_header = '';
break;
case 'vis':
@ -164,16 +164,34 @@ switch ($section) {
case 'ehorus':
$buttons['ehorus']['active'] = true;
$subpage = ' &raquo '.__('eHorus');
$help_header = 'setup_ehorus_tab';
break;
case 'notifications':
$buttons['notifications']['active'] = true;
$subpage = ' &raquo '.__('Notifications');
break;
case 'enterprise':
$buttons['enterprise']['active'] = true;
$subpage = ' &raquo '.__('Enterprise');
$help_header = 'setup_enterprise_tab';
break;
default:
// Default.
break;
}
// Header.
ui_print_page_header(__('Configuration').$subpage, '', false, $help_header, true, $buttons);
ui_print_page_header(
__('Configuration').$subpage,
'',
false,
$help_header,
true,
$buttons
);
if (isset($config['error_config_update_config'])) {
if ($config['error_config_update_config']['correct'] == false) {

View File

@ -82,7 +82,7 @@ $table->data[2][1] = html_print_input_text('phantomjs_bin', io_safe_output($conf
$table->data[6][0] = __('Auto login (hash) password');
$table->data[6][1] = html_print_input_password('loginhash_pwd', io_output_password($config['loginhash_pwd']), '', 15, 15, true);
$table->data[9][0] = __('Time source').ui_print_help_icon('timesource', true);
$table->data[9][0] = __('Time source');
$sources['system'] = __('System');
$sources['sql'] = __('Database');
$table->data[9][1] = html_print_select($sources, 'timesource', $config['timesource'], '', '', '', true);
@ -107,7 +107,7 @@ $table->data[13][1] = html_print_input_text('cert_path', io_safe_output($config[
$table->data[14][0] = __('Attachment store').ui_print_help_tip(__('Directory where temporary data is stored.'), true);
$table->data[14][1] = html_print_input_text('attachment_store', io_safe_output($config['attachment_store']), '', 50, 255, true);
$table->data[15][0] = __('IP list with API access').ui_print_help_icon('ip_api_list', true);
$table->data[15][0] = __('IP list with API access');
if (isset($_POST['list_ACL_IPs_for_API'])) {
$list_ACL_IPs_for_API = get_parameter_post('list_ACL_IPs_for_API');
} else {

View File

@ -121,7 +121,7 @@ if (enterprise_installed()) {
}
echo '<fieldset>';
echo '<legend>'.__('Behaviour configuration').'</legend>';
echo '<legend>'.__('Behaviour configuration').' '.ui_print_help_icon('behavoir_conf_tab', true).'</legend>';
html_print_table($table_behaviour);
echo '</fieldset>';
// ----------------------------------------------------------------------
@ -267,12 +267,12 @@ function logo_custom_enterprise($name, $logo)
}
$table_styles->data[$row][0] = __('Custom logo (menu)').ui_print_help_icon('custom_logo', true);
$table_styles->data[$row][0] = __('Custom logo (menu)');
$table_styles->data[$row][1] = logo_custom_enterprise('custom_logo', $config['custom_logo']);
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'custom_logo_preview', $open, '', 'class="sub camera logo_preview"', true, false, $open, 'visualmodal');
$row++;
$table_styles->data[$row][0] = __('Custom logo collapsed (menu)').ui_print_help_icon('custom_logo_collapsed', true);
$table_styles->data[$row][0] = __('Custom logo collapsed (menu)');
$table_styles->data[$row][1] = logo_custom_enterprise('custom_logo_collapsed', $config['custom_logo_collapsed']);
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'custom_logo_collapsed_preview', $open, '', 'class="sub camera logo_preview"', true, false, $open, 'visualmodal');
$row++;
@ -316,7 +316,7 @@ if (enterprise_installed()) {
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'custom_logo_white_bg_preview', $open, '', 'class="sub camera logo_preview"', true, false, $open, 'visualmodal');
$row++;
$table_styles->data[$row][0] = __('Custom logo (login)').ui_print_help_icon('custom_logo', true);
$table_styles->data[$row][0] = __('Custom logo (login)');
if (enterprise_installed()) {
$table_styles->data[$row][1] = html_print_select(
@ -569,7 +569,7 @@ $row++;
echo '<fieldset>';
echo '<legend>'.__('Style configuration').'</legend>';
echo '<legend>'.__('Style configuration').' '.ui_print_help_icon('style_conf_tab', true).'</legend>';
html_print_table($table_styles);
echo '</fieldset>';
// ----------------------------------------------------------------------
@ -612,7 +612,7 @@ $row++;
$row++;
echo '<fieldset>';
echo '<legend>'.__('GIS configuration').'</legend>';
echo '<legend>'.__('GIS configuration').' '.ui_print_help_icon('gis_conf_tab', true).'</legend>';
html_print_table($table_gis);
echo '</fieldset>';
// ----------------------------------------------------------------------
@ -706,7 +706,7 @@ $row++;
$row++;
echo '<fieldset>';
echo '<legend>'.__('Font and Text configuration').'</legend>';
echo '<legend>'.__('Font and Text configuration').' '.ui_print_help_icon('front_and_text_conf_tab', true).'</legend>';
html_print_table($table_font);
echo '</fieldset>';
// ----------------------------------------------------------------------
@ -894,7 +894,7 @@ $row++;
*/
echo '<fieldset>';
echo '<legend>'.__('Charts configuration').'</legend>';
echo '<legend>'.__('Charts configuration').' '.ui_print_help_icon('charts_conf_tab', true).'</legend>';
html_print_table($table_chars);
echo '</fieldset>';
// ----------------------------------------------------------------------
@ -927,7 +927,7 @@ $row++;
echo '<fieldset>';
echo '<legend>'.__('Visual consoles configuration').'</legend>';
echo '<legend>'.__('Visual consoles configuration').' '.ui_print_help_icon('visual_consoles_conf_tab', true).'</legend>';
html_print_table($table_vc);
echo '</fieldset>';
@ -945,7 +945,7 @@ $row++;
$table_ser->data['number'][1] = "<input type ='number' value=".$config['ser_menu_items']." size='5' name='ser_menu_items' min='0' max='25'>";
echo '<fieldset>';
echo '<legend>'.__('Services configuration').'</legend>';
echo '<legend>'.__('Services configuration').' '.ui_print_help_icon('services_conf_tab', true).'</legend>';
html_print_table($table_ser);
echo '</fieldset>';
@ -1124,7 +1124,7 @@ $row++;
);
$row++;
$table_other->data[$row][0] = __('Date format string').ui_print_help_icon('date_format', true);
$table_other->data[$row][0] = __('Date format string');
$table_other->data[$row][1] = '<em>'.__('Example').'</em> '.date($config['date_format']);
$table_other->data[$row][1] .= html_print_input_text('date_format', $config['date_format'], '', 30, 100, true);
$row++;
@ -1137,7 +1137,7 @@ $row++;
$comparation = false;
}
$table_other->data[$row][0] = __('Timestamp or time comparation').ui_print_help_icon('time_stamp-comparation', true);
$table_other->data[$row][0] = __('Timestamp or time comparation');
$table_other->data[$row][1] = __('Comparation in rollover').' ';
$table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'comparation', '', $comparation, true);
$table_other->data[$row][1] .= '<br />'.__('Timestamp in rollover').' ';
@ -1243,7 +1243,7 @@ $row++;
echo '<fieldset>';
echo '<legend>'.__('Other configuration').'</legend>';
echo '<legend>'.__('Other configuration').' '.ui_print_help_icon('other_conf_tab', true).'</legend>';
html_print_table($table_other);
echo '</fieldset>';

View File

@ -76,7 +76,7 @@ if ($update_alert || $modify_alert) {
__('SNMP Console').' &raquo; '.__('Update alert'),
'images/op_snmp.png',
false,
'snmp_alert',
'snmp_alert_update_tab',
false
);
} else if ($create_alert || $save_alert) {
@ -84,7 +84,7 @@ if ($update_alert || $modify_alert) {
__('SNMP Console').' &raquo; '.__('Create alert'),
'images/op_snmp.png',
false,
'snmp_alert',
'snmp_alert_overview_tab',
false
);
} else {
@ -92,7 +92,7 @@ if ($update_alert || $modify_alert) {
__('SNMP Console').' &raquo; '.__('Alert overview'),
'images/op_snmp.png',
false,
'snmp_alert',
'snmp_alert_overview_tab',
false
);
}
@ -757,7 +757,6 @@ if ($create_alert || $update_alert) {
// Custom
echo '<tr id="tr-custom_value"><td class="datos" valign="top">'.__('Custom Value/OID');
echo ui_print_help_icon('snmp_alert_custom', true);
echo '</td><td class="datos">';
html_print_textarea('custom_value', 2, 2, $custom_value, 'style="width:400px;"');
@ -804,7 +803,7 @@ if ($create_alert || $update_alert) {
echo '</td></tr>';
// Variable bindings/Data #1
echo '<tr id="tr-custom_value">'.'<td class="datos" valign="top">'.__('Variable bindings/Data').ui_print_help_icon('field_match_snmp', true).'</td>'.'<td class="datos">';
echo '<tr id="tr-custom_value">'.'<td class="datos" valign="top">'.__('Variable bindings/Data').'</td><td class="datos">';
echo '#';
html_print_input_text('order_1', $order_1, '', 4);
html_print_input_text('custom_oid_data_1', $custom_oid_data_1, '', 60);
@ -1077,7 +1076,7 @@ if ($create_alert || $update_alert) {
}
echo '</td></tr>';
echo '<tr><td class="datos">'.__('Position').ui_print_help_icon('snmp_alert_position', true).'</td><td class="datos">';
echo '<tr><td class="datos">'.__('Position').'</td><td class="datos">';
html_print_input_text('position', $position, '', 3);
echo '</td></tr>';

View File

@ -117,7 +117,14 @@ if (is_metaconsole()) {
// ui_meta_print_header(__('Tags'), "", $buttons);
} else {
// Header
ui_print_page_header(__('Tags configuration'), 'images/tag.png', false, 'tags_config', true, $buttons);
ui_print_page_header(
__('Tags configuration'),
'images/tag.png',
false,
'tags_config',
true,
$buttons
);
}
// Two actions can performed in this page: search and delete tags

View File

@ -59,10 +59,12 @@ switch ($tab) {
case 'offline':
$title = __('Update manager » Offline');
$help_header = 'update_manager_offline_tab';
break;
case 'online':
$title = __('Update manager » Online');
$help_header = 'update_manager_online_tab';
break;
case 'messages':
@ -74,7 +76,7 @@ ui_print_page_header(
$title,
'images/gm_setup.png',
false,
'',
$help_header,
true,
$buttons
);

View File

@ -47,7 +47,14 @@ if (!is_metaconsole()) {
$buttons[$tab]['active'] = true;
ui_print_page_header(__('User management').' &raquo; '.__('Profiles defined on %s', get_product_name()), 'images/gm_users.png', false, '', true, $buttons);
ui_print_page_header(
__('User management').' &raquo; '.__('Profiles defined on %s', get_product_name()),
'images/gm_users.png',
false,
'configure_profiles_tab',
true,
$buttons
);
$sec2 = 'gusuarios';
} else {
user_meta_print_header();

View File

@ -90,7 +90,14 @@ if ($meta) {
$buttons[$tab]['active'] = true;
ui_print_page_header(__('User detail editor'), 'images/gm_users.png', false, '', true, $buttons);
ui_print_page_header(
__('User detail editor'),
'images/gm_users.png',
false,
'profile_tab',
true,
$buttons
);
$sec = 'gusuarios';
}

View File

@ -51,7 +51,14 @@ if (!defined('METACONSOLE')) {
$buttons[$tab]['active'] = true;
ui_print_page_header(__('User management').' &raquo; '.__('Profiles defined on %s', get_product_name()), 'images/gm_users.png', false, 'profile', true, $buttons);
ui_print_page_header(
__('User management').' &raquo; '.__('Profiles defined on %s', get_product_name()),
'images/gm_users.png',
false,
'profile_tab',
true,
$buttons
);
$sec = 'gusuarios';
} else {
user_meta_print_header();

View File

@ -165,7 +165,7 @@ ui_print_page_header(
__('Map').' &raquo; '.__('Map').'&nbsp;'.$map['map_name'],
'images/op_gis.png',
false,
'',
'render_view_tab',
false,
$buttons
);