2011-02-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_menu.php include/functions_html.php include/functions_modules.php include/functions_reporting.php include/functions_filemanager.php include/functions_gis.php include/functions_networkmap.php include/functions_visual_map.php include/help/en/help_gis_map_builder.php include/help/en/help_agent_status.php include/help/en/help_eventview.php include/help/en/help_configure_gis_map.php include/help/en/help_cascade_protection.php include/help/en/help_setup_gis_index.php include/help/es/help_gis_map_builder.php include/help/es/help_agent_status.php include/help/es/help_eventview.php include/help/es/help_configure_gis_map.php include/help/es/help_cascade_protection.php include/help/es/modu_group_list.php include/help/ja/help_gis_map_builder.php include/help/ja/help_agent_status.php include/help/ja/help_eventview.php include/help/ja/help_configure_gis_map.php include/help/ja/help_cascade_protection.php include/help/ja/help_setup_gis_index.php include/functions.php include/functions_db.php include/functions_fsgraph.php operation/incidents/incident_detail.php operation/agentes/status_monitor.php operation/agentes/estado_ultimopaquete.php operation/agentes/alerts_status.php operation/agentes/estado_generalagente.php operation/agentes/estado_agente.php operation/agentes/estado_monitores.php operation/agentes/ver_agente.php operation/agentes/group_view.php operation/servers/view_server_detail.php operation/snmpconsole/snmp_view.php operation/users/user_edit.php operation/gis_maps/render_view.php operation/events/sound_events.php operation/search_alerts.php operation/reporting/reporting_viewer.php operation/reporting/custom_reporting.php operation/search_reports.php operation/search_users.php general/pandora_help.php general/noaccess.php general/ui/agents_list.php general/header.php godmode/groups/modu_group_list.php godmode/groups/configure_group.php godmode/groups/group_list.php godmode/extensions.php godmode/db/db_sanity.php godmode/db/db_info.php godmode/agentes/agent_template.php godmode/agentes/module_manager_editor_common.php godmode/agentes/module_manager_editor_network.php godmode/agentes/fields_manager.php godmode/agentes/module_manager.php godmode/agentes/modificar_agente.php godmode/agentes/planned_downtime.php godmode/agentes/agent_manager.php godmode/servers/recon_script.php godmode/servers/plugin.php godmode/servers/manage_recontask.php godmode/alerts/alert_list.list.php godmode/alerts/configure_alert_compound.php godmode/alerts/alert_compounds.php godmode/alerts/alert_actions.php godmode/alerts/alert_list.builder.php godmode/alerts/alert_commands.php godmode/snmpconsole/snmp_alert.php godmode/snmpconsole/snmp_filters.php godmode/setup/os.list.php godmode/setup/news.php godmode/setup/links.php godmode/setup/setup.php godmode/users/user_list.php godmode/gis_maps/configure_gis_map.php godmode/massive/massive_add_alerts.php godmode/massive/massive_delete_agents.php godmode/massive/massive_enable_disable_alerts.php godmode/massive/massive_delete_profiles.php godmode/massive/massive_edit_agents.php godmode/massive/massive_delete_action_alerts.php godmode/massive/massive_delete_modules.php godmode/massive/massive_add_profiles.php godmode/massive/massive_delete_alerts.php godmode/massive/massive_edit_modules.php godmode/massive/massive_standby_alerts.php godmode/massive/massive_add_action_alerts.php godmode/modules/module_list.php godmode/modules/manage_network_templates_form.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/reporting_builder.preview.php godmode/reporting/visual_console_builder.elements.php godmode/reporting/graph_builder.graph_editor.php godmode/reporting/reporting_builder.item_editor.php godmode/reporting/graphs.php: Changed the way of print images from "<src=.." html tag to print_image function. * include/functions_ui.php mobile/operation/agents/view_agents.php: print_group_icon2 function renamed to print_group_icon_with_path git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3800 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5d23835a94
commit
f431a62697
|
@ -1,3 +1,113 @@
|
|||
2011-02-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_menu.php
|
||||
include/functions_html.php
|
||||
include/functions_modules.php
|
||||
include/functions_reporting.php
|
||||
include/functions_filemanager.php
|
||||
include/functions_gis.php
|
||||
include/functions_networkmap.php
|
||||
include/functions_visual_map.php
|
||||
include/help/en/help_gis_map_builder.php
|
||||
include/help/en/help_agent_status.php
|
||||
include/help/en/help_eventview.php
|
||||
include/help/en/help_configure_gis_map.php
|
||||
include/help/en/help_cascade_protection.php
|
||||
include/help/en/help_setup_gis_index.php
|
||||
include/help/es/help_gis_map_builder.php
|
||||
include/help/es/help_agent_status.php
|
||||
include/help/es/help_eventview.php
|
||||
include/help/es/help_configure_gis_map.php
|
||||
include/help/es/help_cascade_protection.php
|
||||
include/help/es/modu_group_list.php
|
||||
include/help/ja/help_gis_map_builder.php
|
||||
include/help/ja/help_agent_status.php
|
||||
include/help/ja/help_eventview.php
|
||||
include/help/ja/help_configure_gis_map.php
|
||||
include/help/ja/help_cascade_protection.php
|
||||
include/help/ja/help_setup_gis_index.php
|
||||
include/functions.php
|
||||
include/functions_db.php
|
||||
include/functions_fsgraph.php
|
||||
operation/incidents/incident_detail.php
|
||||
operation/agentes/status_monitor.php
|
||||
operation/agentes/estado_ultimopaquete.php
|
||||
operation/agentes/alerts_status.php
|
||||
operation/agentes/estado_generalagente.php
|
||||
operation/agentes/estado_agente.php
|
||||
operation/agentes/estado_monitores.php
|
||||
operation/agentes/ver_agente.php
|
||||
operation/agentes/group_view.php
|
||||
operation/servers/view_server_detail.php
|
||||
operation/snmpconsole/snmp_view.php
|
||||
operation/users/user_edit.php
|
||||
operation/gis_maps/render_view.php
|
||||
operation/events/sound_events.php
|
||||
operation/search_alerts.php
|
||||
operation/reporting/reporting_viewer.php
|
||||
operation/reporting/custom_reporting.php
|
||||
operation/search_reports.php
|
||||
operation/search_users.php
|
||||
general/pandora_help.php
|
||||
general/noaccess.php
|
||||
general/ui/agents_list.php
|
||||
general/header.php
|
||||
godmode/groups/modu_group_list.php
|
||||
godmode/groups/configure_group.php
|
||||
godmode/groups/group_list.php
|
||||
godmode/extensions.php
|
||||
godmode/db/db_sanity.php
|
||||
godmode/db/db_info.php
|
||||
godmode/agentes/agent_template.php
|
||||
godmode/agentes/module_manager_editor_common.php
|
||||
godmode/agentes/module_manager_editor_network.php
|
||||
godmode/agentes/fields_manager.php
|
||||
godmode/agentes/module_manager.php
|
||||
godmode/agentes/modificar_agente.php
|
||||
godmode/agentes/planned_downtime.php
|
||||
godmode/agentes/agent_manager.php
|
||||
godmode/servers/recon_script.php
|
||||
godmode/servers/plugin.php
|
||||
godmode/servers/manage_recontask.php
|
||||
godmode/alerts/alert_list.list.php
|
||||
godmode/alerts/configure_alert_compound.php
|
||||
godmode/alerts/alert_compounds.php
|
||||
godmode/alerts/alert_actions.php
|
||||
godmode/alerts/alert_list.builder.php
|
||||
godmode/alerts/alert_commands.php
|
||||
godmode/snmpconsole/snmp_alert.php
|
||||
godmode/snmpconsole/snmp_filters.php
|
||||
godmode/setup/os.list.php
|
||||
godmode/setup/news.php
|
||||
godmode/setup/links.php
|
||||
godmode/setup/setup.php
|
||||
godmode/users/user_list.php
|
||||
godmode/gis_maps/configure_gis_map.php
|
||||
godmode/massive/massive_add_alerts.php
|
||||
godmode/massive/massive_delete_agents.php
|
||||
godmode/massive/massive_enable_disable_alerts.php
|
||||
godmode/massive/massive_delete_profiles.php
|
||||
godmode/massive/massive_edit_agents.php
|
||||
godmode/massive/massive_delete_action_alerts.php
|
||||
godmode/massive/massive_delete_modules.php
|
||||
godmode/massive/massive_add_profiles.php
|
||||
godmode/massive/massive_delete_alerts.php
|
||||
godmode/massive/massive_edit_modules.php
|
||||
godmode/massive/massive_standby_alerts.php
|
||||
godmode/massive/massive_add_action_alerts.php
|
||||
godmode/modules/module_list.php
|
||||
godmode/modules/manage_network_templates_form.php
|
||||
godmode/reporting/reporting_builder.list_items.php
|
||||
godmode/reporting/reporting_builder.preview.php
|
||||
godmode/reporting/visual_console_builder.elements.php
|
||||
godmode/reporting/graph_builder.graph_editor.php
|
||||
godmode/reporting/reporting_builder.item_editor.php
|
||||
godmode/reporting/graphs.php: Changed the way of print images from "<src=.."
|
||||
html tag to print_image function.
|
||||
|
||||
* include/functions_ui.php
|
||||
mobile/operation/agents/view_agents.php: print_group_icon2 function renamed to print_group_icon_with_path
|
||||
|
||||
2011-02-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
* operation/search_alerts.php: Actions_name array now is initialized to void value.
|
||||
|
||||
|
|
|
@ -24,15 +24,20 @@ $msg_cnt = 0;
|
|||
<a href="index.php?sec=main">
|
||||
<?php
|
||||
if (!defined ('PANDORA_ENTERPRISE')){
|
||||
echo "<img border='0' src='images/pandora_header_logo.png' alt='Pandora FMS Opensource' />";
|
||||
echo print_image('images/pandora_header_logo.png', true, array("alt" => 'Pandora FMS Opensource', "border" => '0'));
|
||||
} else {
|
||||
echo "<img border='0' src='images/pandora_header_logo_enterprise.png' alt='Pandora FMS Enterprise' />";
|
||||
echo print_image('images/pandora_header_logo_enterprise.png', true, array("alt" => 'Pandora FMS Enterprise', "border" => '0'));
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
</td>
|
||||
<td width="20%">
|
||||
<img src="images/user_<?php if (is_user_admin ($config["id_user"]) == 1) echo 'suit'; else echo 'green'; ?>.png" class="bot" alt="user" />
|
||||
<?php
|
||||
if (is_user_admin ($config["id_user"]) == 1)
|
||||
print_image("images/user_suit.png" , false, array("class" => 'bot', "alt" => 'user'));
|
||||
else
|
||||
print_image("images/user_green.png" , false, array("class" => 'bot', "alt" => 'user'));
|
||||
?>
|
||||
<a href="index.php?sec=usuarios&sec2=operation/users/user_edit" class="white"> [<b><?php echo $config["id_user"];?></b>]</a>
|
||||
<?php
|
||||
|
||||
|
@ -52,7 +57,7 @@ $msg_cnt = 0;
|
|||
}
|
||||
?>
|
||||
|
||||
<a class="white_bold" href="index.php?bye=bye"><img src="images/log-out.png" alt="<?php echo __('Logout');?>" class="bot" title="<?php echo __('Logout');?>" /></a>
|
||||
<a class="white_bold" href="index.php?bye=bye"><?php print_image("images/log-out.png", false, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout')))?></a>
|
||||
</td>
|
||||
|
||||
<td width="20%">
|
||||
|
@ -66,15 +71,15 @@ $msg_cnt = 0;
|
|||
$servers["down"] = $servers["all"] - $servers["up"];
|
||||
if ($servers["up"] == 0) {
|
||||
//All Servers down or no servers at all
|
||||
echo '<img src="images/cross.png" alt="cross" class="bot" /> '.__('All systems').': '.__('Down');
|
||||
echo print_image("images/cross.png", true, array("alt" => 'cross', "class" => 'bot')) . ' '.__('All systems').': '.__('Down');
|
||||
}
|
||||
elseif ($servers["down"] != 0) {
|
||||
//Some servers down
|
||||
echo '<img src="images/error.png" alt="error" class="bot" /> '.$servers["down"].' '.__('servers down');
|
||||
echo print_image("images/error.png", true, array("alt" => 'error', "class" => 'bot')) . ' '.$servers["down"].' '.__('servers down');
|
||||
}
|
||||
else {
|
||||
//All servers up
|
||||
echo '<img src="images/ok.png" alt="ok" class="bot" /> '.__('All systems').': '.__('Ready');
|
||||
echo print_image("images/ok.png", true, array("alt" => 'ok', "class" => 'bot')) . ' '.__('All systems').': '.__('Ready');
|
||||
}
|
||||
unset ($servers); // Since this is the header, we don't like to trickle down variables.
|
||||
echo '</a>';
|
||||
|
@ -91,13 +96,13 @@ $msg_cnt = 0;
|
|||
$ignored_params = array ('agent_config' => false, 'code' => false);
|
||||
if ($config["refr"]) {
|
||||
$ignored_params['refr'] = 0;
|
||||
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'"><img src="images/page_refresh.png" class="bot" alt="lightning" /> '. __('Autorefresh');
|
||||
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
||||
echo ' (<span id="refrcounter">'.date ("i:s", $config["refr"]).'</span>)';
|
||||
echo '</a>';
|
||||
}
|
||||
else {
|
||||
$ignored_params['refr'] = '';
|
||||
echo '<a id="autorefresh" class="white_bold" href="'.get_url_refresh ($ignored_params).'"><img src="images/page_refresh.png" class="bot" alt="lightning" /> '.__('Autorefresh').'</a>';
|
||||
echo '<a id="autorefresh" class="white_bold" href="'.get_url_refresh ($ignored_params).'">' . print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh');
|
||||
$values = array (
|
||||
'5' => '5 '.__('seconds'),
|
||||
'10' => '10 '.__('seconds'),
|
||||
|
@ -118,7 +123,7 @@ $msg_cnt = 0;
|
|||
echo "<td width='20%' rowspan='2'>";
|
||||
echo "<a href='index.php?sec=main'>";
|
||||
if (isset($config["custom_logo"]))
|
||||
echo "<img height='60' width='139' src='images/custom_logo/" . $config["custom_logo"] . "' alt='Logo' />";
|
||||
echo print_image("images/custom_logo/" . $config["custom_logo"], true,array("height" => '60', "width" => '139', "alt" => 'Logo'));
|
||||
echo "</a>";
|
||||
?>
|
||||
</td>
|
||||
|
@ -153,7 +158,7 @@ if ($config["metaconsole"] == 0){
|
|||
<td>
|
||||
<?php
|
||||
if ($config["metaconsole"] == 0){
|
||||
echo '<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events"><img src="images/lightning_go.png" alt="lightning_go" class="bot" /> '.__('Events').'</a>';
|
||||
echo '<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events">' . print_image("images/lightning_go.png", true, array("alt" => 'lightning_go', "class" => 'bot')) . ' '.__('Events').'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
|
|
@ -24,7 +24,7 @@ if (file_exists("images/noaccess.png")){
|
|||
|
||||
<?php
|
||||
if (file_exists("images/noaccess.png")){
|
||||
echo "<img src='images/noaccess.png' alt='No access'>";
|
||||
echo print_image('images/noaccess.png', true, array("alt" => __('No access')));
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
require_once ("../include/config.php");
|
||||
require_once ("../include/functions.php");
|
||||
require_once ("../include/functions_html.php");
|
||||
?>
|
||||
<html><head><title>
|
||||
<?php
|
||||
|
@ -48,7 +49,7 @@ if (! $id || ! file_exists ($help_file)) {
|
|||
echo __('Help system error');
|
||||
echo "</h1>";
|
||||
echo "<div class='noa'>";
|
||||
echo '<a href="../index.php"><img src="../images/pandora_logo.png" border="0"></a><br>';
|
||||
echo '<a href="../index.php">' . print_image("../images/pandora_logo.png", array("border" => '0')) . '</a><br>';
|
||||
echo "</div>";
|
||||
echo '<div class="msg">'.__('Pandora FMS help system has been called with a help reference that currently don\'t exist. There is no help content to show.').'</div></div></div>';
|
||||
return;
|
||||
|
@ -57,7 +58,7 @@ if (! $id || ! file_exists ($help_file)) {
|
|||
/* Show help */
|
||||
echo '<div>';
|
||||
echo '<span style="float:left; margin: 0px; padding: 0px">';
|
||||
echo '<img src="../images/pandora_textlogo.png" border=0>';
|
||||
echo print_image('../images/pandora_textlogo.png', true, array("border" => '0'));
|
||||
echo "</span>";
|
||||
echo '<p style="text-align: right"><strong>'.__('Pandora FMS help system').'</strong></p>';
|
||||
echo '</div>';
|
||||
|
|
|
@ -116,7 +116,7 @@ unset ($filter['offset']);
|
|||
|
||||
if (! is_ajax ()) {
|
||||
echo '<div id="agents_loading" class="loading invisible">';
|
||||
echo '<img src="images/spinner.png" />';
|
||||
echo print_image('images/spinner.png', true);
|
||||
echo __('Loading').'…';
|
||||
echo '</div>';
|
||||
}
|
||||
|
|
|
@ -223,11 +223,13 @@ $path = 'images/gis_map/icons/'; //TODO set better method the path
|
|||
|
||||
$table->data[4][0] = __('Agent icon');
|
||||
$table->data[4][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
|
||||
' ' . __('Without status') . ': <img id="icon_without_status" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Default') . ': <img id="icon_default" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Ok') . ': <img id="icon_ok" src="' . $path . $icon_path . 'ok.png" style="display:none;" />' .
|
||||
' ' . __('Bad') . ': <img id="icon_bad" src="' . $path . $icon_path . 'bad.png" style="display:none;" />' .
|
||||
' ' . __('Warning') . ': <img id="icon_warning" src="' . $path . $icon_path . 'warning.png" style="display:none;" />';
|
||||
' ' . __('Without status') . ': ' . print_image($path . $icon_path . "default.png", true, array("id" => "icon_without_status", "style" => "display:none;")) .
|
||||
' ' . __('Default') . ': ' . print_image($path . $icon_path . "default.png", true, array("id" => "icon_default", "style" => "display:none;")) .
|
||||
' ' . __('Ok') . ': ' . print_image($path . $icon_path . "ok.png", true, array("id" => "icon_ok", "style" => "display:none;")) .
|
||||
|
||||
' ' . __('Bad') . ': ' . print_image($path . $icon_path . "bad.png", true, array("id" => "icon_bad", "style" => "display:none;")) .
|
||||
|
||||
' ' . __('Warning') . ': ' . print_image($path . $icon_path . "warning.png", true, array("id" => "icon_warning", "style" => "display:none;"));
|
||||
|
||||
if ($config['activate_gis']) {
|
||||
$table->data[5][0] = __('Ignore new GIS data:');
|
||||
|
|
|
@ -138,15 +138,15 @@ foreach ($result as $row) {
|
|||
|
||||
$data[0] = $row["nombre"];
|
||||
if ($row["id_tipo_modulo"] > 0) {
|
||||
$data[1] = '<img src="images/'.show_icon_type ($row["id_tipo_modulo"]).'" border="0" />';
|
||||
$data[1] = print_image("images/" . show_icon_type ($row["id_tipo_modulo"]), true, array("border" => "0"));
|
||||
} else {
|
||||
$data[1] = '';
|
||||
}
|
||||
$data[2] = mb_substr ($row["descripcion"], 0, 60);
|
||||
|
||||
$data[3] = '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&tab=template&id_agente='.$id_agente.'&delete_module='.$row["id_agente_modulo"].'"><img src="images/cross.png" border="0" alt="'.__('Delete').'" onclick="if (!confirm(\''.__('Are you sure?').'\')) return false;" /></a> ';
|
||||
$data[3] = '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&tab=template&id_agente='.$id_agente.'&delete_module='.$row["id_agente_modulo"].'">' . print_image("images/cross.png", true, array("border" => "0", "alt" => __('Delete'), "onclick" => "if (!confirm('".__('Are you sure?') . "')) return false;")) . '</a> ';
|
||||
|
||||
$data[3] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$row["id_agente_modulo"].'"><img src="images/config.png" border="0" alt="'.__('Update').'" /></a>';
|
||||
$data[3] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$row["id_agente_modulo"].'">' . print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -113,8 +113,8 @@ foreach ($fields as $field) {
|
|||
$data[1] = print_image('images/delete.png', true);
|
||||
}
|
||||
|
||||
$data[2] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configure_field&id_field='.$field['id_field'].'"><img border="0" src="images/config.png" alt="' . __('Edit') . '" title="' . __('Edit') . '" /></a>';
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/fields_manager&delete_field=1&id_field='.$field['id_field'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img alt="' . __('Delete') . '" alt="' . __('Delete') . '" border="0" src="images/cross.png"></a>';
|
||||
$data[2] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configure_field&id_field='.$field['id_field'].'">' . print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0')) . '</a>';
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/fields_manager&delete_field=1&id_field='.$field['id_field'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("alt" => __('Delete'), "title" => __('Delete'), "border" => '0')) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -225,17 +225,17 @@ if ($agents !== false) {
|
|||
|
||||
echo "<table cellpadding='4' id='agent_list' cellspacing='4' width='95%' class='databox'>";
|
||||
echo "<th>".__('Agent name') . ' ' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" /></a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" /></a>';
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '</a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown)) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th title='".__('Remote agent configuration')."'>".__('R')."</th>";
|
||||
echo "<th>".__('OS'). ' ' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=up"><img src="images/sort_up.png" style="' . $selectOsUp . '" /></a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=down"><img src="images/sort_down.png" style="' . $selectOsDown . '" /></a>';
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectOsUp)) . '</a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectOsDown)) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Group'). ' ' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=group&sort=up"><img src="images/sort_up.png" style="' . $selectGroupUp . '" /></a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=group&sort=down"><img src="images/sort_down.png" style="' . $selectGroupDown . '" /></a>';
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=group&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectGroupUp)) . '</a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&search='.$search .'&offset='.$offset.'&sort_field=group&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectGroupDown)) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Description')."</th>";
|
||||
echo "<th>".__('Delete')."</th>";
|
||||
|
@ -301,7 +301,7 @@ if ($agents !== false) {
|
|||
$agent_md5 = md5 ($agent["nombre"], false);
|
||||
if (file_exists ($config["remote_config"]."/md5/".$agent_md5.".md5")) {
|
||||
echo "<a href='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente=".$agent["id_agente"]."&disk_conf=1'>";
|
||||
echo "<img src='images/application_edit.png' align='middle' title='".__('Edit remote config')."'>";
|
||||
echo print_image("images/application_edit.png", true, array("align" => 'middle', "title" => __('Edit remote config')));
|
||||
echo "</a>";
|
||||
}
|
||||
echo "</td>";
|
||||
|
@ -325,7 +325,7 @@ if ($agents !== false) {
|
|||
echo "<td class='$tdcolor' align='center' valign='middle'><a href='index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&
|
||||
borrar_agente=".$agent["id_agente"]."&search=$search&offset=$offsetArg&sort_field=$sortField&sort=$sort'";
|
||||
echo ' onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
|
||||
echo "<img border='0' src='images/cross.png'></a></td>";
|
||||
echo print_image('images/cross.png', true, array("border" => '0')) . "</a></td>";
|
||||
}
|
||||
echo "</table>";
|
||||
pagination ($total_agents, "index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id=$ag_group&search=$search&sort_field=$sortField&sort=$sort", $offset);
|
||||
|
|
|
@ -224,19 +224,19 @@ if ($modules === false) {
|
|||
$table->width = '95%';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown)) . '</a>';
|
||||
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK)
|
||||
$table->head[1] = "<span title='" . __('Policy') . "'>" . __('P.') . "</span>";
|
||||
$table->head[2] = "<span title='" . __('Server') . "'>" . __('S.') . "</span>" . ' ' .
|
||||
'<a href="' . $url . '&sort_field=server&sort=up"><img src="images/sort_up.png" style="' . $selectServerUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=server&sort=down"><img src="images/sort_down.png" style="' . $selectServerDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=server&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectServerUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=server&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectServerDown)) . '</a>';
|
||||
$table->head[3] = __('Type') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=type&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp)) .'</a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown)) . '</a>';
|
||||
$table->head[4] = __('Interval') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown)) . '</a>';
|
||||
$table->head[5] = __('Description');
|
||||
$table->head[6] = __('Max/Min');
|
||||
$table->head[7] = __('Action');
|
||||
|
|
|
@ -80,7 +80,7 @@ function add_component_selection ($id_network_component_type) {
|
|||
'---'.__('Manual setup').'---', 0, true);
|
||||
$data[1] .= '</span>';
|
||||
$data[1] .= ' <span id="component_loading" class="invisible">';
|
||||
$data[1] .= '<img src="images/spinner.png" />';
|
||||
$data[1] .= print_image('images/spinner.png', true);
|
||||
$data[1] .= '</span>';
|
||||
|
||||
$table_simple->colspan['module_component'][1] = 3;
|
||||
|
|
|
@ -82,11 +82,11 @@ $data[1] = '<span class="left"; style="width: 50%">';
|
|||
$data[1] .= print_input_text ('snmp_oid', $snmp_oid, '', 30, 255, true, $disabledBecauseInPolicy);
|
||||
$data[1] .= '<span class="invisible" id="oid">';
|
||||
$data[1] .= print_select (array (), 'select_snmp_oid', $snmp_oid, '', '', 0, true, false, false, '', $disabledBecauseInPolicy);
|
||||
$data[1] .= '<img src="images/edit.png" class="invisible clickable" id="edit_oid" />';
|
||||
$data[1] .= print_image("images/edit.png", true, array("class" => "invisible clickable", "id" => "edit_oid"));
|
||||
$data[1] .= '</span>';
|
||||
$data[1] .= '<span id="no_snmp" class="error invisible">'.__('Unable to do SNMP walk').'</span>';
|
||||
$data[1] .= '</span> <span class="right" style="width: 50%; text-align: right"><span id="oid_loading" class="invisible">';
|
||||
$data[1] .= '<img src="images/spinner.gif" />';
|
||||
$data[1] .= print_image('images/spinner.gif', true);
|
||||
$data[1] .= '</span>';
|
||||
if ($disabledBecauseInPolicy)
|
||||
$disableButton = true;
|
||||
|
|
|
@ -252,10 +252,9 @@ if ($create_downtime || $update_downtime) {
|
|||
$data[3] = $downtime["ultimo_contacto"];
|
||||
|
||||
$data[4] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime&id_agent='.
|
||||
$id_agent.'&delete_downtime_agent=1&first_update=1&id_downtime_agent='.$downtime["id"].'&id_downtime='.$id_downtime.'">
|
||||
<img src="images/cross.png" border="0" alt="'.__('Delete').'" /></a>';
|
||||
$id_agent.'&delete_downtime_agent=1&first_update=1&id_downtime_agent='.$downtime["id"].'&id_downtime='.$id_downtime.'">' .
|
||||
print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete')));
|
||||
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
print_table ($table);
|
||||
|
@ -299,10 +298,10 @@ if ($create_downtime || $update_downtime) {
|
|||
$data[4] = date ("Y-m-d H:i", $downtime['date_to']);
|
||||
if ($downtime["executed"] == 0){
|
||||
$data[5] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime&id_agent='.
|
||||
$id_agent.'&delete_downtime=1&id_downtime='.$downtime['id'].'">
|
||||
<img src="images/cross.png" border="0" alt="'.__('Delete').'" /></a>';
|
||||
$data[6] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime&edit_downtime=1&first_update=1&id_downtime='.$downtime['id'].'">
|
||||
<img src="images/config.png" border="0" alt="'.__('Update').'" /></a>';
|
||||
$id_agent.'&delete_downtime=1&id_downtime='.$downtime['id'].'">' .
|
||||
print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete')));
|
||||
$data[6] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/planned_downtime&edit_downtime=1&first_update=1&id_downtime='.$downtime['id'].'">' .
|
||||
print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
|
||||
} else {
|
||||
$data[5]= "N/A";
|
||||
$data[6]= "N/A";
|
||||
|
|
|
@ -180,11 +180,11 @@ foreach ($actions as $action) {
|
|||
$action['name'].'</a>';
|
||||
$data[1] = print_group_icon ($action["id_group"], true) .' '. get_group_name ($action["id_group"], true);
|
||||
$data[2] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_actions©_action=1&id='.$action['id'].'"
|
||||
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">'.
|
||||
'<img src="images/copy.png"></a>';
|
||||
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||
print_image("images/copy.png", true) . '</a>';
|
||||
$data[3] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_actions&delete_action=1&id='.$action['id'].'"
|
||||
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">'.
|
||||
'<img src="images/cross.png"></a>';
|
||||
print_image("images/cross.png", true) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ foreach ($commands as $command) {
|
|||
if (! $command['internal'])
|
||||
$data[2] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_commands&delete_command=1&id='.$command['id'].'"
|
||||
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">'.
|
||||
'<img src="images/cross.png"></a>';
|
||||
print_image("images/cross.png", true) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ $table->data[0][1] = print_select_groups(0, "LM", true, 'id_group', $id_group, f
|
|||
'', true);
|
||||
$table->data[0][2] = __('Agent');
|
||||
$table->data[0][2] .= ' <span id="agent_loading" class="invisible">';
|
||||
$table->data[0][2] .= '<img src="images/spinner.png" />';
|
||||
$table->data[0][2] .= print_image("images/spinner.png", true);
|
||||
$table->data[0][2] .= '</span>';
|
||||
$table->data[0][3] = print_select ($agents, 'id_agent', $id_agent, false,
|
||||
__('All'), 0, true);
|
||||
|
@ -202,7 +202,7 @@ foreach ($id_alerts as $alert) {
|
|||
$data[2] = get_agent_name ($alert['id_agent']);
|
||||
$data[3] = '<a href="'.$url.'&delete_alert=1&id='.$alert['id'].'"
|
||||
onClick="javascript:confirm(\''.__('Are you sure?').'\')">';
|
||||
$data[3] .= '<img src="images/cross.png" title="'.__('Delete').'" />';
|
||||
$data[3] .= print_image("images/cross.png", true, array("title" => __('Delete')));
|
||||
$data[3] .= '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
|
|
|
@ -59,7 +59,7 @@ $table->data[0][1] = print_select ($modules, 'id_agent_module', 0, true,
|
|||
$table->data[0][1] .= ' <span id="latest_value" class="invisible">'.__('Latest value').': ';
|
||||
$table->data[0][1] .= '<span id="value"> </span></span>';
|
||||
$table->data[0][1] .= ' <span id="module_loading" class="invisible">';
|
||||
$table->data[0][1] .= '<img src="images/spinner.png" /></span>';
|
||||
$table->data[0][1] .= print_image('images/spinner.png', true) . '</span>';
|
||||
|
||||
$table->data[1][0] = __('Template');
|
||||
|
||||
|
@ -68,8 +68,8 @@ $templates = get_alert_templates (false, array ('id', 'name'));
|
|||
|
||||
$table->data[1][1] = print_select (index_array ($templates, 'id', 'name'),
|
||||
'template', '', '', __('Select'), 0, true);
|
||||
$table->data[1][1] .= ' <a class="template_details invisible" href="#">
|
||||
<img class="img_help" src="images/zoom.png" /></a>';
|
||||
$table->data[1][1] .= ' <a class="template_details invisible" href="#">' .
|
||||
print_image("images/zoom.png", true, array("class" => 'img_help')) . '</a>';
|
||||
|
||||
$table->data[1][1] .= print_image ('images/add.png', true);
|
||||
$table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template">';
|
||||
|
@ -83,7 +83,7 @@ $actions = array ('0' => __('None'));
|
|||
$table->data[2][1] = '<div class="actions_container">';
|
||||
$table->data[2][1] = print_select($actions,'action_select','','','','',true);
|
||||
$table->data[2][1] .= ' <span id="action_loading" class="invisible">';
|
||||
$table->data[2][1] .= '<img src="images/spinner.png" /></span>';
|
||||
$table->data[2][1] .= print_image('images/spinner.png', true) . '</span>';
|
||||
$table->data[2][1] .= ' <span id="advanced_action" class="advanced_actions invisible">';
|
||||
$table->data[2][1] .= __('Number of alerts match from').' ';
|
||||
$table->data[2][1] .= print_input_text ('fires_min', '', '', 4, 10, true);
|
||||
|
|
|
@ -277,17 +277,17 @@ $table->align[1] = 'center';
|
|||
|
||||
$table->head = array ();
|
||||
$table->head[0] = "<span title='" . __('Enabled / Disabled') . "'>" . __('E/D') . "</span><br>" .
|
||||
'<a href="' . $url . '&sort_field=disabled&sort=up"><img src="images/sort_up.png" style="' . $selectDisabledUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=disabled&sort=down"><img src="images/sort_down.png" style="' . $selectDisabledDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=disabled&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectDisabledUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=disabled&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectDisabledDown)) . '</a>';
|
||||
$table->head[1] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span><br>" .
|
||||
'<a href="' . $url . '&sort_field=standby&sort=up"><img src="images/sort_up.png" style="' . $selectStandbyUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=standby&sort=down"><img src="images/sort_down.png" style="' . $selectStandbyDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=standby&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectStandbyUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=standby&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectStandbyDown)) . '</a>';
|
||||
if (! $id_agente) {
|
||||
$table->style = array ();
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->head[2] = __('Agent') . '<br>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up"><img src="images/sort_up.png" style="' . $selectAgentUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down"><img src="images/sort_down.png" style="' . $selectAgentDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . '</a>';
|
||||
$table->size[0] = '6%';
|
||||
$table->size[1] = '6%';
|
||||
$table->size[2] = '20%';
|
||||
|
@ -313,11 +313,11 @@ else {
|
|||
}
|
||||
|
||||
$table->head[3] = __('Module') . '<br>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=up"><img src="images/sort_up.png" style="' . $selectModuleUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down"><img src="images/sort_down.png" style="' . $selectModuleDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=module&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
|
||||
$table->head[4] = __('Template') . '<br>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=up"><img src="images/sort_up.png" style="' . $selectTemplateUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down"><img src="images/sort_down.png" style="' . $selectTemplateDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=template&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
|
||||
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->head[5] = "<span title='" . __('Policy') . "'>" . __('P.') . "</span>";
|
||||
}
|
||||
|
@ -398,8 +398,8 @@ foreach ($simple_alerts as $alert) {
|
|||
}
|
||||
$data[3] = printTruncateText(get_agentmodule_name ($alert['id_agent_module']), 25, false);
|
||||
$data[4] = ' <a class="template_details"
|
||||
href="ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$alert['id_alert_template'].'">
|
||||
<img id="template-details-'.$alert['id_alert_template'].'" class="img_help" src="images/zoom.png"/></a> ';
|
||||
href="ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$alert['id_alert_template'].'">' .
|
||||
print_image("images/zoom.png", true, array("id" => 'template-details-'.$alert['id_alert_template'], "class" => "img_help")) . '</a> ';
|
||||
|
||||
$data[4] .= "<a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id=".$alert['id_alert_template']."'>";
|
||||
$data[4] .= printTruncateText(get_alert_template_name ($alert['id_alert_template']), 15, false);
|
||||
|
|
|
@ -471,7 +471,7 @@ if ($step == 2) {
|
|||
|
||||
$alert = get_alert_agent_module ($condition['id_alert_template_module']);
|
||||
$data[0] = '<a href="#" class="remove_alert" id="alert-'.$alert['id'].'" />';
|
||||
$data[0] .= '<img src="images/delete.png" />';
|
||||
$data[0] .= print_image("images/delete.png", true);
|
||||
$data[0] .= '</a>';
|
||||
$idAgent = get_agent_module_id($alert['id_agent_module']);
|
||||
$nameAgent = get_agent_name($idAgent);
|
||||
|
@ -542,12 +542,12 @@ if ($step == 1) {
|
|||
$table->data[0][3] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'search_id_agent', $id_agent, false, __('Select'), 0, true);
|
||||
$table->data[0][3] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[0][3] .= '<img src="images/spinner.png" />';
|
||||
$table->data[0][3] .= print_image('images/spinner.png', true);
|
||||
$table->data[0][3] .= '</span>';
|
||||
|
||||
print_table ($table);
|
||||
echo '<div id="alerts_loading" class="loading invisible">';
|
||||
echo '<img src="images/spinner.png" />';
|
||||
echo print_image('images/spinner.png', true);
|
||||
echo __('Loading').'…';
|
||||
echo '</div>';
|
||||
|
||||
|
@ -572,7 +572,7 @@ if ($step == 1) {
|
|||
$data = array ();
|
||||
|
||||
$data[0] = '<a href="#" class="add_alert" id="add-'.$alert['id'].'" />';
|
||||
$data[0] .= '<img src="images/add.png" />';
|
||||
$data[0] .= print_image('images/add.png', true);
|
||||
$data[0] .= '</a>';
|
||||
$data[1] = get_agentmodule_name ($alert['id_agent_module']);
|
||||
$data[2] = get_alert_template_name ($alert['id_alert_template']);
|
||||
|
@ -586,11 +586,11 @@ if ($step == 1) {
|
|||
/* Pager for alert list using Javascript */
|
||||
echo '<div id="alerts_pager" class="'.($id_agent ? '' : 'invisible ').'pager">';
|
||||
echo '<form>';
|
||||
echo '<img src="images/go_first.png" class="first" />';
|
||||
echo '<img src="images/go_previous.png" class="prev" />';
|
||||
echo print_image("images/go_first.png", true, array("class" => "first"));
|
||||
echo print_image("images/go_previous.png", true, array("class" => "prev"));
|
||||
echo '<input type="text" class="pagedisplay" />';
|
||||
echo '<img src="images/go_next.png" class="next" />';
|
||||
echo '<img src="images/go_last.png" class="last" />';
|
||||
echo print_image("images/go_next.png", true, array("class" => "next"));
|
||||
echo print_image("images/go_last.png", true, array("class" => "last"));
|
||||
echo '<select class="pagesize invisible">';
|
||||
echo '<option selected="selected" value="'.$config['block_size'].'">'.$config['block_size'].'</option>';
|
||||
echo '</select>';
|
||||
|
|
|
@ -71,7 +71,7 @@ if ($config['flash_charts']) {
|
|||
echo '<img src="include/fgraph.php?tipo=db_agente_paquetes&width=600&height=200"><br />';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '<a href="#" onClick="toggleDiv(\'db_info_data\'); toggleDiv(\'db_info_graph\'); return false;"><b>'.__('Press here to get database information as text').'</b> <img src="images/down.png" alt="down" title="down"></a></div>';
|
||||
echo '<a href="#" onClick="toggleDiv(\'db_info_data\'); toggleDiv(\'db_info_graph\'); return false;"><b>'.__('Press here to get database information as text').'</b> ' . print_image("images/down.png", true, array("alt" => "down", "title" => "down")) . '</a></div>';
|
||||
echo '<div id="db_info_data" style="display:none">';
|
||||
|
||||
//Merged from db_info_data.php because the queries are the same, so the cache
|
||||
|
|
|
@ -87,14 +87,14 @@ echo __('Pandora FMS Sanity tool is used to remove bad database structure data,
|
|||
|
||||
echo "<br><br>";
|
||||
echo "<b><a href='index.php?sec=gdbman&sec2=godmode/db/db_sanity&sanity=1'>";
|
||||
echo "<img src='images/status_away.png'> ";
|
||||
echo print_image('images/status_away.png', true) . " ";
|
||||
echo __('Sanitize my database now');
|
||||
echo "</a></b>";
|
||||
|
||||
|
||||
echo "<br><br>";
|
||||
echo "<b><a href='index.php?sec=gdbman&sec2=godmode/db/db_sanity&sanity=2'>";
|
||||
echo "<img src='images/status_away.png'> ";
|
||||
echo print_image('images/status_away.png', true) . " ";
|
||||
echo __('Delete non-initialized modules now');
|
||||
echo "</a></b>";
|
||||
|
||||
|
|
|
@ -182,11 +182,11 @@ foreach ($extensions as $file => $extension) {
|
|||
$data = array();
|
||||
|
||||
|
||||
$on = '<img src="images/dot_green.png" />';
|
||||
$off = '<img src="images/dot_red.png" />';
|
||||
$on = print_image("images/dot_green.png", true);
|
||||
$off = print_image("images/dot_red.png", true);
|
||||
if (!$extension['enabled']) {
|
||||
$on = '<img src="images/dot_green.disabled.png" />';
|
||||
$off = '<img src="images/dot_red.disabled.png" />';
|
||||
$on = print_image("images/dot_green.disabled.png", true);
|
||||
$off = print_image("images/dot_red.disabled.png", true);
|
||||
$data[] = '<i style="color: grey;">' . $file . '</i>';
|
||||
}
|
||||
else {
|
||||
|
@ -250,12 +250,12 @@ foreach ($extensions as $file => $extension) {
|
|||
}
|
||||
|
||||
if (!$extension['enabled']) {
|
||||
$data[] = '<a title="' . __('Delete') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&delete='.$file.'" class="mn"><img src="images/cross.disabled.png"></a>' .
|
||||
' <a title="' . __('Enable') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&enabled='.$file.'" class="mn"><img src="images/lightbulb_off.png"></a>';
|
||||
$data[] = '<a title="' . __('Delete') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&delete='.$file.'" class="mn">' . print_image("images/cross.disabled.png", true) . '</a>' .
|
||||
' <a title="' . __('Enable') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&enabled='.$file.'" class="mn">' . print_image("images/lightbulb_off.png", true) . '</a>';
|
||||
}
|
||||
else {
|
||||
$data[] = '<a title="' . __('Delete') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&delete='.$file.'" class="mn"><img src="images/cross.png"></a>' .
|
||||
' <a title="' . __('Disable') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&disabled='.$file.'" class="mn"><img src="images/lightbulb.png"></a>';
|
||||
$data[] = '<a title="' . __('Delete') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&delete='.$file.'" class="mn">' . print_image("images/cross.png", true) . '</a>' .
|
||||
' <a title="' . __('Disable') . '" href="index.php?sec=gextensions&sec2=godmode/extensions&enterprise=' . (int)$extension['enterprise'] . '&disabled='.$file.'" class="mn">' . print_image("images/lightbulb.png", true) . '</a>';
|
||||
}
|
||||
|
||||
$table->data[] = $data;
|
||||
|
|
|
@ -308,7 +308,7 @@ $table->rowspan[0][2] = 9;
|
|||
$iconError = '';
|
||||
if (isset($invalidFields['map_connection_list'])) {
|
||||
if ($invalidFields['map_connection_list']) {
|
||||
$iconError = '<img src="images/dot_red.png" />';
|
||||
$iconError = print_image("images/dot_red.png", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -445,7 +445,7 @@ echo "</form>";
|
|||
<tr class="row_0">
|
||||
<td><?php print_input_text ('map_connection_name', $map_name, '', 20, 40, false, true); ?></td>
|
||||
<td><?php print_radio_button_extended('map_connection_default', '', '', true, false, 'changeDefaultConection(this.value)', '');?></td>
|
||||
<td><a id="delete_row" href="none"><img src="images/cross.png" alt=""></a></td>
|
||||
<td><a id="delete_row" href="none"><?php print_image("images/cross.png", false, array("alt" => ""));?></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -456,7 +456,7 @@ echo "</form>";
|
|||
<td class="col1">XXXX</td>
|
||||
<td class="col2">
|
||||
<input type="hidden" id="name_agent" name="name_agent" value="" />
|
||||
<a id="delete_row" href="none"><img src="images/cross.png" alt=""></a>
|
||||
<a id="delete_row" href="none"><?php print_image("images/cross.png", false, array("alt" => ""));?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -466,14 +466,14 @@ echo "</form>";
|
|||
<tbody id="chuck_layer_item">
|
||||
<tr>
|
||||
<td class="col1">XXXXXXXXXXXXXXXXXX</td>
|
||||
<td class="up_arrow"><a id="up_arrow" href="javascript: upLayer();"><img src="images/up.png" alt=""></a></td>
|
||||
<td class="down_arrow"><a id="down_arrow" href="javascript: downLayer();"><img src="images/down.png" alt=""></a></td>
|
||||
<td class="up_arrow"><a id="up_arrow" href="javascript: upLayer();"><?php print_image("images/up.png", false, array("alt" => ""));?></a></td>
|
||||
<td class="down_arrow"><a id="down_arrow" href="javascript: downLayer();"><?php print_image("images/down.png", false, array("alt" => ""));?></a></td>
|
||||
<td class="col3">
|
||||
<a id="edit_layer" href="javascript: editLayer(none);"><img src="images/config.png" alt="" /></a>
|
||||
<a id="edit_layer" href="javascript: editLayer(none);"><?php print_image("images/config.png", false, array("alt" => ""));?></a>
|
||||
</td>
|
||||
<td class="col4">
|
||||
<input type="hidden" name="layer_values" id="layer_values" />
|
||||
<a id="delete_row" href="none"><img src="images/cross.png" alt=""></a>
|
||||
<a id="delete_row" href="none"><?php print_image("images/cross.png", false, array("alt" => ""));?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -69,7 +69,7 @@ $files = list_files ('images/groups_small/', "png", 1, 0);
|
|||
$table->data[1][1] = print_select ($files, 'icon', $icon, '', 'None', '', true);
|
||||
$table->data[1][1] .= ' <span id="icon_preview">';
|
||||
if ($icon) {
|
||||
$table->data[1][1] .= '<img src="images/groups_small/'.$icon.'" />';
|
||||
$table->data[1][1] .= print_image("images/groups_small/".$icon, true);
|
||||
}
|
||||
$table->data[1][1] .= '</span>';
|
||||
|
||||
|
@ -86,7 +86,7 @@ else {
|
|||
$table->data[2][1] = print_select_groups(false, "AR", true, 'id_parent', $id_parent, '', '', '', true);
|
||||
}
|
||||
$table->data[2][1] .= ' <span id="parent_preview">';
|
||||
$table->data[2][1] .= '<img src="images/groups_small/'.get_group_icon ($id_parent).'.png" />';
|
||||
$table->data[2][1] .= print_image("images/groups_small/".get_group_icon ($id_parent).".png", true);
|
||||
$table->data[2][1] .= '</span>';
|
||||
|
||||
$table->data[3][0] = __('Alerts');
|
||||
|
|
|
@ -266,8 +266,8 @@ foreach ($groups as $id_group => $group) {
|
|||
$data[3] = '';
|
||||
}
|
||||
else {
|
||||
$data[3] = '<a href="index.php?sec=gagente&sec2=godmode/groups/configure_group&id_group='.$group['id_grupo'].'"><img border="0" src="images/config.png" alt="' . __('Edit') . '" title="' . __('Edit') . '" /></a>';
|
||||
$data[3] .= '<a href="index.php?sec=gagente&sec2=godmode/groups/group_list&id_group='.$id_group.'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img alt="' . __('Delete') . '" alt="' . __('Delete') . '" border="0" src="images/cross.png"></a>';
|
||||
$data[3] = '<a href="index.php?sec=gagente&sec2=godmode/groups/configure_group&id_group='.$group['id_grupo'].'">' . print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0'));
|
||||
$data[3] .= '<a href="index.php?sec=gagente&sec2=godmode/groups/group_list&id_group='.$id_group.'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("alt" => __('Delete'), "border" => '0'));
|
||||
}
|
||||
|
||||
array_push ($table->data, $data);
|
||||
|
|
|
@ -134,7 +134,7 @@ foreach ($groups as $id_group ) {
|
|||
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.printTruncateText($id_group["name"], 50).'</a></strong>';
|
||||
// $data[2] = get_group_name ($group["parent"]);
|
||||
// $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>';
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'id_agents[]', 0, false, '', '', true, true);
|
||||
|
@ -162,7 +162,7 @@ else {
|
|||
}
|
||||
$table->data[2][0] = __('Alert templates');
|
||||
$table->data[2][0] .= '<span id="template_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$table->data[2][1] = print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0);
|
||||
|
||||
|
@ -181,7 +181,7 @@ else {
|
|||
}
|
||||
$table->data[3][0] = __('Alert compounds');
|
||||
$table->data[3][0] .= '<span id="compound_loading" class="invisible">';
|
||||
$table->data[3][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[3][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[3][0] .= '</span>';
|
||||
$table->data[3][1] = print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0);
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ $table->data[0][3] = '';
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$agents_alerts = get_agents_with_alert_template ($id_alert_template, $id_group,
|
||||
false, array ('tagente.nombre', 'tagente.id_agente'));
|
||||
|
|
|
@ -97,7 +97,7 @@ $data[0] .= print_select (get_profiles (), 'profiles_id[]', '', '', '',
|
|||
$data[1] = print_select_groups($config['id_user'], "UM", true,
|
||||
'groups_id[]', '', '', '', '', true, true, false, '', false, 'width: 100%');
|
||||
$data[2] = '<span id="alerts_loading" class="invisible">';
|
||||
$data[2] .= '<img src="images/spinner.png" />';
|
||||
$data[2] .= print_image('images/spinner.png', true);
|
||||
$data[2] .= '</span>';
|
||||
$users_profiles = "";
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'id_agents[]', 0, false, '', '', true, true);
|
||||
|
@ -170,7 +170,7 @@ if (empty($id_agents)) {
|
|||
}
|
||||
$table->data[2][0] = __('Alert templates');
|
||||
$table->data[2][0] .= '<span id="template_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$table->data[2][1] = print_select (index_array ($alert_templates, 'id_alert_template', 'template_name'), 'id_alert_templates[]', '', '', '', '', true, true, true, '', $alert_templates == 0);
|
||||
|
||||
|
@ -188,7 +188,7 @@ if (empty($id_agents)) {
|
|||
}
|
||||
$table->data[3][0] = __('Alert compounds');
|
||||
$table->data[3][0] .= '<span id="compound_loading" class="invisible">';
|
||||
$table->data[3][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[3][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[3][0] .= '</span>';
|
||||
$table->data[3][1] = print_select (index_array ($alert_compounds, 'id', 'name'), 'id_alert_compounds[]', '', false, '', '', true, true, true, '', $alert_compounds == 0);
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'id_agents[]', 0, false, '', '', true, true);
|
||||
|
|
|
@ -136,7 +136,7 @@ $table->data[1][3] = '';
|
|||
|
||||
$table->data[2][0] = __('Agents');
|
||||
$table->data[2][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$agents_alerts = get_agents_with_alert_template ($id_alert_template, $id_group,
|
||||
false, array ('tagente.nombre', 'tagente.id_agente'));
|
||||
|
|
|
@ -119,7 +119,7 @@ $table->data[1][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[2][0] = __('Agent');
|
||||
$table->data[2][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$agents = get_agents_with_module_name ($module_name, $id_group,
|
||||
array ('delete_pending' => 0,
|
||||
|
|
|
@ -107,7 +107,7 @@ $data[0] .= print_select (get_profiles (), 'profiles_id[]', '', '', '',
|
|||
$data[1] = print_select_groups($config['id_user'], "UM", true,
|
||||
'groups_id[]', '', '', '', '', true, false, false, '', false, 'width: 100%');
|
||||
$data[2] = '<span id="users_loading" class="invisible">';
|
||||
$data[2] .= '<img src="images/spinner.png" />';
|
||||
$data[2] .= print_image('images/spinner.png', true);
|
||||
$data[2] .= '</span>';
|
||||
$users_profiles = "";
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$enabled_agents = get_group_agents ($id_group, array('disabled' => 0), "none");
|
||||
$all_agents = get_group_agents ($id_group, array('disabled' => 1), "none") + $enabled_agents;
|
||||
|
@ -323,11 +323,10 @@ $path = 'images/gis_map/icons/'; //TODO set better method the path
|
|||
|
||||
$table->data[4][0] = __('Agent icon');
|
||||
$table->data[4][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
|
||||
' ' . __('Without status') . ': <img id="icon_without_status" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Default') . ': <img id="icon_default" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Ok') . ': <img id="icon_ok" src="' . $path . $icon_path . 'ok.png" style="display:none;" />' .
|
||||
' ' . __('Bad') . ': <img id="icon_bad" src="' . $path . $icon_path . 'bad.png" style="display:none;" />' .
|
||||
' ' . __('Warning') . ': <img id="icon_warning" src="' . $path . $icon_path . 'warning.png" style="display:none;" />';
|
||||
' ' . __('Without status') . ': ' . print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_without_status',"style" => 'display:none;')) .
|
||||
' ' . __('Default') . ': ' . print_image($path . $icon_path . 'default.png', true, array("id" => 'icon_default',"style" => 'display:none;')) .
|
||||
' ' . __('Ok') . ': ' . print_image($path . $icon_path . 'ok.png', true, array("id" => 'icon_ok',"style" => 'display:none;')) .
|
||||
' ' . __('Bad') . ': ' . print_image($path . $icon_path . 'bad.png', true, array("id" => 'icon_bad',"style" => 'display:none;')) . ' ' . __('Warning') . ': ' . print_image($path . $icon_path . 'warning.png', true, array("id" => 'icon_warning',"style" => 'display:none;'));
|
||||
|
||||
if ($config['activate_gis']) {
|
||||
$table->data[5][0] = __('Ignore new GIS data:');
|
||||
|
|
|
@ -226,7 +226,7 @@ $table->data[0][3] = __('Select agents first').' '.print_radio_button_extended (
|
|||
$table->rowclass[1] = 'select_modules_row';
|
||||
$table->data[1][0] = __('Module type');
|
||||
$table->data[1][0] .= '<span id="module_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$types[0] = __('All');
|
||||
$table->colspan[1][1] = 2;
|
||||
|
|
|
@ -127,20 +127,20 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image("images/spinner.png", true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'id_agents[]', 0, false, '', '', true, true);
|
||||
|
||||
$table->data[2][0] = __('Alert template');
|
||||
$table->data[2][0] .= '<span id="template_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image("images/spinner.png", true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
||||
|
||||
$table->data[3][0] = __('Enabled alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
||||
$table->data[3][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[3][0] .= print_image("images/spinner.png", true);
|
||||
$table->data[3][0] .= '</span>';
|
||||
$agents_alerts = get_agents_with_alert_template ($id_alert_templates, $id_group,
|
||||
false, array ('tagente.nombre', 'tagente.id_agente'));
|
||||
|
@ -157,7 +157,7 @@ $table->data[4][1] .= print_input_image ('enable_alerts', 'images/darrowup.png',
|
|||
|
||||
$table->data[5][0] = __('Disabled alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
||||
$table->data[5][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[5][0] .= print_image("images/spinner.png", true);
|
||||
$table->data[5][0] .= '</span>';
|
||||
$table->data[5][1] = print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'),
|
||||
'id_disabled_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0);
|
||||
|
|
|
@ -129,20 +129,20 @@ $table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_grou
|
|||
|
||||
$table->data[1][0] = __('Agents');
|
||||
$table->data[1][0] .= '<span id="agent_loading" class="invisible">';
|
||||
$table->data[1][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[1][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[1][0] .= '</span>';
|
||||
$table->data[1][1] = print_select (get_group_agents ($id_group, false, "none"),
|
||||
'id_agents[]', 0, false, '', '', true, true);
|
||||
|
||||
$table->data[2][0] = __('Alert template');
|
||||
$table->data[2][0] .= '<span id="template_loading" class="invisible">';
|
||||
$table->data[2][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[2][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[2][0] .= '</span>';
|
||||
$table->data[2][1] = print_select ('', 'id_alert_templates[]', '', '', '', '', true, true, true, '', true);
|
||||
|
||||
$table->data[3][0] = __('Not standby alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||
$table->data[3][0] .= '<span id="alerts_loading" class="invisible">';
|
||||
$table->data[3][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[3][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[3][0] .= '</span>';
|
||||
$agents_alerts = get_agents_with_alert_template ($id_alert_templates, $id_group,
|
||||
false, array ('tagente.nombre', 'tagente.id_agente'));
|
||||
|
@ -159,7 +159,7 @@ $table->data[4][1] .= print_input_image ('set_off_standby_alerts', 'images/darro
|
|||
|
||||
$table->data[5][0] = __('Standby alerts').print_help_tip(__('Format').":<br> ".__('Agent')." - ".__('Module'), true);
|
||||
$table->data[5][0] .= '<span id="alerts_loading2" class="invisible">';
|
||||
$table->data[5][0] .= '<img src="images/spinner.png" />';
|
||||
$table->data[5][0] .= print_image('images/spinner.png', true);
|
||||
$table->data[5][0] .= '</span>';
|
||||
$table->data[5][1] = print_select (index_array ($agents_alerts, 'id_agente2', 'nombre'),
|
||||
'id_standby_alerts[]', '', '', '', '', true, true, true, '', $id_alert_templates == 0);
|
||||
|
|
|
@ -163,7 +163,7 @@ if ($id_np > 0) {
|
|||
foreach ($result as $row) {
|
||||
$data = array ();
|
||||
$data[0] = $row["name"];
|
||||
$data[1] = '<img src="images/'.show_icon_type($row["type"]).'" border="0" />';
|
||||
$data[1] = print_image("images/".show_icon_type($row["type"]), true, array("border" => '0'));
|
||||
$data[2] = mb_strimwidth($row["description"],0,30,"...");
|
||||
$data[3] = get_network_component_group_name ($row["group"]);
|
||||
$data[4] = print_checkbox ("components[]", $row["component_id"], false, true);
|
||||
|
|
|
@ -67,10 +67,9 @@ while ($row = mysql_fetch_array ($result)){
|
|||
}
|
||||
echo "
|
||||
<tr>
|
||||
<td class='$tdcolor' align='center'>
|
||||
<img src='images/".$row["icon"]."'
|
||||
border='0'>
|
||||
</td>
|
||||
<td class='$tdcolor' align='center'>" .
|
||||
print_image("images/".$row["icon"], true, array("border" => '0')) .
|
||||
"</td>
|
||||
<td class='$tdcolor'>
|
||||
<b>".$row[0]."
|
||||
</b></td>
|
||||
|
|
|
@ -129,7 +129,7 @@ echo "<td></td>";
|
|||
echo "<td style='vertical-align: top;'>".__('Modules')."</td>";
|
||||
echo "</tr><tr>";
|
||||
echo "<td>".print_select (get_group_agents(), 'id_agents[]', 0, false, '', '', true, true, true, '', false, 'width:200px;')."</td>";
|
||||
echo "<td style='vertical-align: center; text-align: center;'><img src='images/darrowright.png' /></td>";
|
||||
echo "<td style='vertical-align: center; text-align: center;'>" . print_image("images/darrowright.png", true) . "</td>";
|
||||
echo "<td>".print_select (array (), 'module[]', 0, false, '', 0, true, true, true, '', false, 'width:200px;')."</td>";
|
||||
echo "</tr><tr>";
|
||||
echo "<td colspan='3'>";
|
||||
|
|
|
@ -85,7 +85,7 @@ if (! empty ($graphs)) {
|
|||
$data = array ();
|
||||
|
||||
$data[0] = '<a href="index.php?sec=reporting&sec2=operation/reporting/graph_viewer&view_graph=1&id='.
|
||||
$graph['id_graph'].'">' . "<img src='images/eye.png'></a>" . '</a>';
|
||||
$graph['id_graph'].'">' . print_image('images/eye.png', true) . "</a>" . '</a>';
|
||||
$data[1] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/graph_builder&edit_graph=1&id='.
|
||||
$graph['id_graph'].'">'.$graph['name'].'</a>';
|
||||
$data[2] = $graph["description"];
|
||||
|
@ -96,7 +96,7 @@ if (! empty ($graphs)) {
|
|||
if (give_acl ($config['id_user'], 0, "AW")) {
|
||||
$data[5] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/graphs&delete_graph=1&id='
|
||||
.$graph['id_graph'].'" onClick="if (!confirm(\''.__('Are you sure?').'\'))
|
||||
return false;"><img src="images/cross.png" /></a>';
|
||||
return false;">' . print_image("images/cross.png", true) . '</a>';
|
||||
}
|
||||
|
||||
array_push ($table->data, $data);
|
||||
|
|
|
@ -414,7 +414,7 @@ function print_SLA_list($width, $action, $idItem = null) {
|
|||
<td>' . $item['sla_max'] . '</td>
|
||||
<td>' . $item['sla_limit'] . '</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="javascript: deleteSLARow(' . $item['id'] . ');"><img src="images/cross.png" /></a>
|
||||
<a href="javascript: deleteSLARow(' . $item['id'] . ');">' . print_image("images/cross.png", true) . '</a>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
|
@ -427,7 +427,7 @@ function print_SLA_list($width, $action, $idItem = null) {
|
|||
<td class="sla_min"></td>
|
||||
<td class="sla_max"></td>
|
||||
<td class="sla_limit"></td>
|
||||
<td style="text-align: center;"><a class="delete_button" href="javascript: deleteSLARow(0);"><img src="images/cross.png"></a></td>
|
||||
<td style="text-align: center;"><a class="delete_button" href="javascript: deleteSLARow(0);"><?php print_image("images/cross.png", false); ?></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody>
|
||||
|
@ -439,7 +439,7 @@ function print_SLA_list($width, $action, $idItem = null) {
|
|||
<td><input name="sla_min" id="text-sla_min" size="10" maxlength="10" type="text"></td>
|
||||
<td><input name="sla_max" id="text-sla_max" size="10" maxlength="10" type="text"></td>
|
||||
<td><input name="sla_limit" id="text-sla_limit" size="10" maxlength="10" type="text"></td>
|
||||
<td style="text-align: center;"><a href="javascript: addSLARow();"><img src="images/disk.png"></a></td>
|
||||
<td style="text-align: center;"><a href="javascript: addSLARow();"><?php print_image("images/disk.png", false); ?></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<?php
|
||||
|
|
|
@ -86,7 +86,7 @@ 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> <img id="image_form_filter" src="images/down.png" "title"=' . __('Toggle filter(s)') . ' /></a>';
|
||||
echo '<a href="javascript: toggleFormFilter();"><b>'.__('Items filter').'</b> ' . print_image("images/down.png", true, array("title" => __('Toggle filter(s)'), "id" => 'image_form_filter')) . '</a>';
|
||||
|
||||
$table = null;
|
||||
$table->width = '80%';
|
||||
|
@ -129,18 +129,18 @@ if ($items){
|
|||
$table->head[0] = '<span title="' . __('Sort') . '">' . __('S.') . '</span>';
|
||||
$table->head[1] = __('Type');
|
||||
if (!$filterEnable) {
|
||||
$table->head[1] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=type&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_up.png" title="' . __('Ascendent') . '" /></a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=type&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_down.png" title="' . __('Descent') . '" /></a>';
|
||||
$table->head[1] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=type&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '</a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=type&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . '</a>';
|
||||
}
|
||||
$table->head[2] = __('Agent');
|
||||
if (!$filterEnable) {
|
||||
$table->head[2] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=agent&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_up.png" title="' . __('Ascendent') . '" /></a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=agent&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_down.png" title="' . __('Descent') . '" /></a>';
|
||||
$table->head[2] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=agent&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '</a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=agent&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . '</a>';
|
||||
}
|
||||
$table->head[3] = __('Module');
|
||||
if (!$filterEnable) {
|
||||
$table->head[3] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=module&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_up.png" title="' . __('Ascendent') . '" /></a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=module&id_report=' . $idReport . $urlFilter . '"><img src="images/sort_down.png" title="' . __('Descent') . '" /></a>';
|
||||
$table->head[3] .= ' <a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&field=module&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_up.png", true, array("title" => __('Ascendent'))) . '</a>' .
|
||||
'<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&field=module&id_report=' . $idReport . $urlFilter . '">' . print_image("images/sort_down.png", true, array("title" => __('Descent'))) . '</a>';
|
||||
}
|
||||
$table->head[4] = __('Period');
|
||||
$table->head[5] = __('Description');
|
||||
|
@ -177,14 +177,14 @@ foreach ($items as $item) {
|
|||
$row[0] = '<span style="display: block; float: left; width: 16px;"> </span>';
|
||||
}
|
||||
else {
|
||||
$row[0] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '"><img src="images/up.png" title="' . __('Move to up') . '" /></a>';
|
||||
$row[0] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=up&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '">' . print_image("images/up.png", true, array("title" => __('Move to up'))) . '</a>';
|
||||
}
|
||||
|
||||
if ((end($items) == $item) && $lastPage) {
|
||||
$row[0] .= '<span style="width: 16px;"> </span>';
|
||||
}
|
||||
else {
|
||||
$row[0] .= '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '"><img src="images/down.png" title="' . __('Move to down') . '" /></a>';
|
||||
$row[0] .= '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=order&dir=down&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '">' . print_image("images/down.png", true, array("title" => __('Move to down'))) . '</a>';
|
||||
}
|
||||
|
||||
if ($filterEnable) {
|
||||
|
@ -223,9 +223,9 @@ foreach ($items as $item) {
|
|||
$row[5] = printTruncateText($item['description'], 25, true, true);
|
||||
}
|
||||
|
||||
$row[6] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . '"><img src="images/wrench_orange.png" title="' . __('Edit') . '" /></a>';
|
||||
$row[6] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . '">' . print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . '</a>';
|
||||
$row[6] .= ' ';
|
||||
$row[6] .= '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '"><img src="images/cross.png" title="' . __('Delete') . '" /></a>';
|
||||
$row[6] .= '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '">' . print_image("images/cross.png", true, array("title" => __('Delete'))) .'</a>';
|
||||
|
||||
$table->data[] = $row;
|
||||
$count++;
|
||||
|
|
|
@ -63,7 +63,7 @@ $table->style[0] = 'font-weight: bold';
|
|||
$table->size = array ();
|
||||
$table->size[0] = '50px';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = '<img src="images/reporting.png" width="32" height="32" />';
|
||||
$table->data[0][0] = print_image("images/reporting.png", true, array("width" => '32', "height" => '32'));
|
||||
if ($report['description'] != '') {
|
||||
$table->data[0][1] = $report['description'];
|
||||
} else {
|
||||
|
@ -80,7 +80,7 @@ print_input_hidden ('id_report', $id_report);
|
|||
echo '</form>';
|
||||
|
||||
echo '<div id="loading">';
|
||||
echo '<img src="images/wait.gif" border="0" /><br />';
|
||||
echo print_image("images/wait.gif", true, array("border" => '0')) . '<br />';
|
||||
echo '<strong>'.__('Loading').'...</strong>';
|
||||
echo '</div>';
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||
'parent_' . $idLayoutData, $layoutData['parent_item'], '', 'None', 0, true);
|
||||
$table->data[$i + 1][5] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/visual_console_builder&tab=' .
|
||||
$activeTab . '&action=delete&id_visual_console=' . $visualConsole["id"] . '&id_element=' . $idLayoutData . '" ' .
|
||||
'onclick="javascript: if (!confirm(\'' . __('Are you sure?') . '\')) return false;"><img src="images/cross.png" /></a>';
|
||||
'onclick="javascript: if (!confirm(\'' . __('Are you sure?') . '\')) return false;">' . print_image('images/cross.png', true) . '</a>';
|
||||
|
||||
$table->data[$i + 2]['icon'] = '';
|
||||
$table->data[$i + 2][0] = '<a href="#" class="tip"> <span>' . __("Type at least two characters to search.") . '</span></a>' .
|
||||
|
|
|
@ -186,9 +186,9 @@ if ($result !== false) {
|
|||
}
|
||||
|
||||
// ACTION
|
||||
$data[8] = "<a href='index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id=".$row["id_recon_server"]."'><img src='images/eye.png'></a> ".
|
||||
'<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete='.$row["id_rt"].'"><img src="images/cross.png" border="0" /></a> <a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update='.$row["id_rt"].'">
|
||||
<img src="images/config.png"/></a>';
|
||||
$data[8] = "<a href='index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id=".$row["id_recon_server"]."'>" . print_image("images/eye.png", true) . "</a> ".
|
||||
'<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete='.$row["id_rt"].'">' . print_image("images/cross.png", true, array("border" => '0')) . '</a> <a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update='.$row["id_rt"].'">' .
|
||||
print_image("images/config.png", true) . '</a>';
|
||||
|
||||
$table->data[] = $data;
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ else {
|
|||
echo "</td><td class=$tdcolor>";
|
||||
echo $row["execute"];
|
||||
echo "</td><td class=$tdcolor>";
|
||||
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/plugin&kill_plugin=".$row["id"]."'><img src='images/cross.png' border=0></a>";
|
||||
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/plugin&kill_plugin=".$row["id"]."'>" . print_image("images/cross.png", true, array("border" => '0')) . "</a>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
|
|
@ -185,7 +185,7 @@ else {
|
|||
echo "</td><td class='$tdcolor'>";
|
||||
echo $row["description"];
|
||||
echo "</td><td align='center' class='$tdcolor'>";
|
||||
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/recon_script&kill_reconscript=".$row["id_recon_script"]."'><img src='images/cross.png' border=0></a>";
|
||||
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/recon_script&kill_reconscript=".$row["id_recon_script"]."'>" . print_image("images/cross.png", true, array("border" => '0')) . "</a>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
|
|
@ -125,7 +125,7 @@ else { // Main list view for Links editor
|
|||
$color = 1;
|
||||
}
|
||||
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=gsetup&sec2=godmode/setup/links&form_edit=1&id_link=".$row["id_link"]."'>".$row["name"]."</a></b></td>";
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border=0 src="images/cross.png"></a></td></tr>';
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true) . '</a></td></tr>';
|
||||
}
|
||||
echo "</table>";
|
||||
echo "<table width='290px'>";
|
||||
|
|
|
@ -147,7 +147,7 @@ else {
|
|||
echo "<td class='$tdcolor'>".$row["author"]."</b></td>";
|
||||
echo "<td class='$tdcolor'>".$row["timestamp"]."</b></td>";
|
||||
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/news&id_news='.$row["id_news"].'&borrar='.$row["id_news"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border=0 src="images/cross.png"></a></td></tr>';
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/news&id_news='.$row["id_news"].'&borrar='.$row["id_news"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image("images/cross.png", true, array("border" => '0')) . '</a></td></tr>';
|
||||
}
|
||||
echo "</table>";
|
||||
echo "<table width='90%'>";
|
||||
|
|
|
@ -45,7 +45,7 @@ foreach ($osList as $os) {
|
|||
$data[] = '<a href="index.php?sec=gsetup&sec2=godmode/setup/os&action=edit&tab=builder&id_os=' . $os['id_os'] . '">' . safe_output($os['name']) . '</a>';
|
||||
$data[] = printTruncateText(safe_output($os['description']), 25, true, true);
|
||||
if ($os['id_os'] > 13) {
|
||||
$data[] = '<a href="index.php?sec=gsetup&sec2=godmode/setup/os&action=delete&tab=list&id_os=' . $os['id_os'] . '"><img src="images/cross.png" /></a>';
|
||||
$data[] = '<a href="index.php?sec=gsetup&sec2=godmode/setup/os&action=delete&tab=list&id_os=' . $os['id_os'] . '">' . print_image("images/cross.png", true) . '</a>';
|
||||
}
|
||||
else {
|
||||
//The original icons of pandora don't delete.
|
||||
|
|
|
@ -111,17 +111,17 @@ $table->data[19][1] = print_input_text ('timezone', $config["timezone"], '', 25,
|
|||
$sounds = get_sounds();
|
||||
$table->data[20][0] = __('Sound for Alert fired');
|
||||
$table->data[20][1] = print_select($sounds, 'sound_alert', $config['sound_alert'], 'replaySound(\'alert\');', '', '', true);
|
||||
$table->data[20][1] .= ' <a href="javascript: toggleButton(\'alert\');"><img id="button_sound_alert" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[20][1] .= ' <a href="javascript: toggleButton(\'alert\');">' . print_image("images/control_play.png", true, array("id" => "button_sound_alert", "style" => "vertical-align: middle;", "width" => "16")) . '</a>';
|
||||
$table->data[20][1] .= '<div id="layer_sound_alert"></div>';
|
||||
|
||||
$table->data[21][0] = __('Sound for Monitor critical');
|
||||
$table->data[21][1] = print_select($sounds, 'sound_critical', $config['sound_critical'], 'replaySound(\'critical\');', '', '', true);
|
||||
$table->data[21][1] .= ' <a href="javascript: toggleButton(\'critical\');"><img id="button_sound_critical" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[21][1] .= ' <a href="javascript: toggleButton(\'critical\');">' . print_image("images/control_play.png", true, array("id" => "button_sound_critical", "style" => "vertical-align: middle;", "width" => "16")) . '</a>';
|
||||
$table->data[21][1] .= '<div id="layer_sound_critical"></div>';
|
||||
|
||||
$table->data[22][0] = __('Sound for Monitor warning');
|
||||
$table->data[22][1] = print_select($sounds, 'sound_warning', $config['sound_warning'], 'replaySound(\'warning\');', '', '', true);
|
||||
$table->data[22][1] .= ' <a href="javascript: toggleButton(\'warning\');"><img id="button_sound_warning" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[22][1] .= ' <a href="javascript: toggleButton(\'warning\');">' . print_image("images/control_play.png", true, array("id" => "button_sound_warning", "style" => "vertical-align: middle;", "width" => "16")) . '</a>';
|
||||
$table->data[22][1] .= '<div id="layer_sound_warning"></div>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -302,10 +302,10 @@ if (isset ($_GET["update_alert"])) {
|
|||
$data[6] = __('Never');
|
||||
}
|
||||
|
||||
$data[7] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">
|
||||
<img src="images/cross.png" border="0" alt="'.__('Delete').'"></a>
|
||||
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">
|
||||
<img src="images/config.png" border="0" alt="'.__('Update').'"></a>';
|
||||
$data[7] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">' .
|
||||
print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>
|
||||
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">' .
|
||||
print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
|
||||
$idx = count ($table->data); //The current index of the table is 1 less than the count of table data so we count before adding to table->data
|
||||
array_push ($table->data, $data);
|
||||
|
||||
|
|
|
@ -124,10 +124,10 @@ if ($edit_filter > -2) {
|
|||
$data = array ();
|
||||
$data[0] = $row['description'];
|
||||
$data[1] = $row['filter'];
|
||||
$data[2] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&delete_filter='.$row['id_snmp_filter'].'">
|
||||
<img src="images/cross.png" border="0" alt="'.__('Delete').'"></a>
|
||||
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter='.$row['id_snmp_filter'].'">
|
||||
<img src="images/config.png" border="0" alt="'.__('Update').'"></a>';
|
||||
$data[2] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&delete_filter='.$row['id_snmp_filter'].'">' .
|
||||
print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>
|
||||
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter='.$row['id_snmp_filter'].'">' .
|
||||
print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,14 +123,14 @@ $table->align = array ();
|
|||
$table->size = array ();
|
||||
|
||||
$table->head[0] = __('User ID') . ' ' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=id_user&sort=up"><img src="images/sort_up.png" style="' . $selectUserIDUp . '" /></a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=id_user&sort=down"><img src="images/sort_down.png" style="' . $selectUserIDDown . '" /></a>';
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=id_user&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectUserIDUp)) . '</a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=id_user&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectUserIDDown)) . '</a>';
|
||||
$table->head[1] = __('Name') . ' ' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=fullname&sort=up"><img src="images/sort_up.png" style="' . $selectFullnameUp . '" /></a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=fullname&sort=down"><img src="images/sort_down.png" style="' . $selectFullnameDown . '" /></a>';
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=fullname&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectFullnameUp )) . '</a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=fullname&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectFullnameDown)) . '</a>';
|
||||
$table->head[2] = __('Last contact') . ' ' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=last_connect&sort=up"><img src="images/sort_up.png" style="' . $selectLastConnectUp . '" /></a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=last_connect&sort=down"><img src="images/sort_down.png" style="' . $selectLastConnectDown . '" /></a>';
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=last_connect&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectLastConnectUp )) . '</a>' .
|
||||
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=last_connect&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectLastConnectDown)) . '</a>';
|
||||
$table->head[3] = __('Profile');
|
||||
$table->head[4] = __('Description');
|
||||
$table->head[5] = __('Delete');
|
||||
|
@ -261,7 +261,7 @@ foreach ($profiles as $profile) {
|
|||
$data[8] = ($profile["db_management"] ? $img : '');
|
||||
$data[9] = ($profile["alert_management"] ? $img : '');
|
||||
$data[10] = ($profile["pandora_management"] ? $img : '');
|
||||
$data[11] = '<a href="index.php?sec=gagente&sec2=godmode/users/configure_profile&delete_profile=1&id='.$profile["id_perfil"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img src="images/cross.png"></a>';
|
||||
$data[11] = '<a href="index.php?sec=gagente&sec2=godmode/users/configure_profile&delete_profile=1&id='.$profile["id_perfil"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'. print_image("images/cross.png", true) . '</a>';
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ function popup_help ($help_id, $return = false) {
|
|||
function no_permission () {
|
||||
require ("config.php");
|
||||
echo "<h3 class='error'>".__('You don\'t have access')."</h3>";
|
||||
echo "<img src='images/noaccess.png' alt='No access' width='120'><br /><br />";
|
||||
echo print_image('images/noaccess.png', true, array("alt" => 'No access', "width" => '120')) . "<br /><br />";
|
||||
echo "<table width=550>";
|
||||
echo "<tr><td>";
|
||||
echo __('You don\'t have enough permission to access this resource');
|
||||
|
@ -151,7 +151,7 @@ function no_permission () {
|
|||
function unmanaged_error ($error = "") {
|
||||
require_once ("config.php");
|
||||
echo "<h3 class='error'>".__('Unmanaged error')."</h3>";
|
||||
echo "<img src='images/error.png' alt='error'><br /><br />";
|
||||
echo print_image('images/error.png', true, array("alt" => 'error')) . "<br /><br />";
|
||||
echo "<table width=550>";
|
||||
echo "<tr><td>";
|
||||
echo __('Unmanaged error');
|
||||
|
|
|
@ -1746,22 +1746,22 @@ function show_server_type ($id) {
|
|||
global $config;
|
||||
switch ($id) {
|
||||
case 1:
|
||||
return '<img src="images/database.png" title="Pandora FMS Data server">';
|
||||
return print_image("images/database.png", true, array("title" => "Pandora FMS Data server"));
|
||||
break;
|
||||
case 2:
|
||||
return '<img src="images/network.png" title="Pandora FMS Network server">';
|
||||
return print_image("images/network.png", true, array("title" => "Pandora FMS Network server"));
|
||||
break;
|
||||
case 4:
|
||||
return '<img src="images/plugin.png" title="Pandora FMS Plugin server">';
|
||||
return print_image("images/plugin.png", true, array("title" => "Pandora FMS Plugin server"));
|
||||
break;
|
||||
case 5:
|
||||
return '<img src="images/chart_bar.png" title="Pandora FMS Prediction server">';
|
||||
return print_image("images/chart_bar.png", true, array("title" => "Pandora FMS Prediction server"));
|
||||
break;
|
||||
case 6:
|
||||
return '<img src="images/wmi.png" title="Pandora FMS WMI server">';
|
||||
return print_image("images/wmi.png", true, array("title" => "Pandora FMS WMI server"));
|
||||
break;
|
||||
case 7:
|
||||
return '<img src="images/server_web.png" title="Pandora FMS WEB server">';
|
||||
return print_image("images/server_web.png", true, array("title" => "Pandora FMS WEB server"));
|
||||
break;
|
||||
default:
|
||||
return "--";
|
||||
|
@ -3203,9 +3203,9 @@ function show_alert_row_mini ($id_combined_alert) {
|
|||
|
||||
// Fired ?
|
||||
if ($row2["times_fired"]>0) {
|
||||
echo "<td class='".$tdcolor."' align='center'><img width='20' height='9' src='images/pixel_red.png' title='".__('Alert fired')."'></td>";
|
||||
echo "<td class='".$tdcolor."' align='center'>" . print_image('images/pixel_red.png', true, array("title" => __('Alert fired'), "width" => '20', "height" => '9')) . "</td>";
|
||||
} else {
|
||||
echo "<td class='".$tdcolor."' align='center'><img width='20' height='9' src='images/pixel_green.png' title='".__('Alert not fired')."'></td>";
|
||||
echo "<td class='".$tdcolor."' align='center'>" . print_image('images/pixel_green.png', true, array("title" => __('Alert not fired'), "width" => '20', "height" => '9')) . "</td>";
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
|
|
|
@ -602,7 +602,7 @@ function file_explorer($real_directory, $relative_directory, $url, $father = '',
|
|||
|
||||
if (($editor) && (!$readOnly)) {
|
||||
if ($fileinfo['mime'] == MIME_TEXT) {
|
||||
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&location_file=" . $fileinfo['realpath'] . "&hash=" . md5($fileinfo['realpath'] . $config['dbpass']) . "' style='float: left;'><img src='images/edit.png' style='margin-top: 2px;' /></a>";
|
||||
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&location_file=" . $fileinfo['realpath'] . "&hash=" . md5($fileinfo['realpath'] . $config['dbpass']) . "' style='float: left;'>" . print_image('images/edit.png', true, array("style" => 'margin-top: 2px;')) . "</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -615,13 +615,13 @@ function file_explorer($real_directory, $relative_directory, $url, $father = '',
|
|||
if (is_writable ($real_directory)) {
|
||||
echo "<div style='text-align: right; width: " . $table->width . ";'>";
|
||||
echo "<a href='javascript:show_form_create_folder();' style='margin-right: 3px;' title='" . __('Create directory') . "'>";
|
||||
echo "<img src='images/mimetypes/directory.png' />";
|
||||
echo print_image('images/mimetypes/directory.png', true);
|
||||
echo "</a>";
|
||||
echo "<a href='javascript: show_create_text_file();' style='margin-right: 3px;' title='" . __('Create text') . "'>";
|
||||
echo "<img src='images/mimetypes/text.png' />";
|
||||
echo print_image('images/mimetypes/text.png', true);
|
||||
echo "</a>";
|
||||
echo "<a href='javascript: show_upload_file();' title='" . __('Upload file/s') . "'>";
|
||||
echo "<img src='images/mimetypes/unknown.png' />";
|
||||
echo print_image('images/mimetypes/unknown.png', true);
|
||||
echo "</a>";
|
||||
echo "</div>";
|
||||
}
|
||||
|
|
|
@ -362,7 +362,7 @@ function clean_flash_string ($string) {
|
|||
function fs_error_image () {
|
||||
global $config;
|
||||
|
||||
return '<img border="0" src="' . $config['homeurl'] . '/images/image_problem.png" />';
|
||||
return print_image("images/image_problem.png", true, array("border" => '0'));
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1056,7 +1056,7 @@ function addConectionMapsInForm($map_connection_list) {
|
|||
<tr class="row_0">
|
||||
<td>' . print_input_text ('map_connection_name_' . $mapConnection['id_conection'], $mapConnectionRowDB['conection_name'], '', 20, 40, true, true) . '</td>
|
||||
<td>' . $radioButton . '</td>
|
||||
<td><a id="delete_row" href="javascript: deleteConnectionMap(\'' . $mapConnection['id_conection'] . '\')"><img src="images/cross.png" alt=""></a></td>
|
||||
<td><a id="delete_row" href="javascript: deleteConnectionMap(\'' . $mapConnection['id_conection'] . '\')">' . print_image("images/cross.png", true, array("alt" => "")) . '</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<script type="text/javascript">
|
||||
|
@ -1114,14 +1114,14 @@ function addLayerList($layer_list) {
|
|||
<tbody id="layer_item_' . $count . '">
|
||||
<tr>
|
||||
<td class="col1">' . $layer['layer_name'] . '</td>
|
||||
<td class="up_arrow"><a id="up_arrow" href="javascript: upLayer(' . $count . ');"><img src="images/up.png" alt=""></a></td>
|
||||
<td class="down_arrow"><a id="down_arrow" href="javascript: downLayer(' . $count . ');"><img src="images/down.png" alt=""></a></td>
|
||||
<td class="up_arrow"><a id="up_arrow" href="javascript: upLayer(' . $count . ');">' . print_image("images/up.png", true, array("alt" => "")) . '</a></td>
|
||||
<td class="down_arrow"><a id="down_arrow" href="javascript: downLayer(' . $count . ');">' . print_image("images/down.png", true, array("alt" => "")) . '</a></td>
|
||||
<td class="col3">
|
||||
<a id="edit_layer" href="javascript: editLayer(' . $count . ');"><img src="images/config.png" alt="" /></a>
|
||||
<a id="edit_layer" href="javascript: editLayer(' . $count . ');">' . print_image("images/config.png", true, array("alt" => "")) . '</a>
|
||||
</td>
|
||||
<td class="col4">
|
||||
<input type="hidden" name="layer_values_' . $count . '" value=\'' . $layerDataJSON . '\' id="layer_values_' . $count . '" />
|
||||
<a id="delete_row" href="javascript: deleteLayer(' . $count . ')"><img src="images/cross.png" alt=""></a>
|
||||
<a id="delete_row" href="javascript: deleteLayer(' . $count . ')">' . print_image("images/cross.png", true, array("alt" => "")) . '</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -1079,11 +1079,12 @@ function print_checkbox ($name, $value, $checked = false, $return = false, $disa
|
|||
* @param string $src Image source filename.
|
||||
* @param bool $return Whether to return or print
|
||||
* @param array $options Array with optional HTML options to set. At this moment, the
|
||||
* following options are supported: alt, style, title, width, height, class.
|
||||
* following options are supported: alt, style, title, width, height, class, pos_tree.
|
||||
*
|
||||
* @return string HTML code if return parameter is true.
|
||||
*/
|
||||
function print_image ($src, $return = false, $options = false) {
|
||||
global $config;
|
||||
|
||||
/* Checks if user's skin is available */
|
||||
$isFunctionSkins = enterprise_include_once ('include/functions_skins.php');
|
||||
|
@ -1093,6 +1094,9 @@ function print_image ($src, $return = false, $options = false) {
|
|||
if ($skin_path)
|
||||
$src = $skin_path;
|
||||
}
|
||||
// absolute path to image
|
||||
$urlImage = ($config['https'])?'https://':'http://';
|
||||
$src = $urlImage . $config["dbhost"] . $config["homeurl"] . '/' . $src;
|
||||
|
||||
$output = '<img src="'.safe_input ($src).'" '; //safe input necessary to strip out html entities correctly
|
||||
$style = '';
|
||||
|
|
|
@ -170,7 +170,7 @@ function print_menu (&$menu) {
|
|||
|
||||
//Print out the first level
|
||||
$output .= '<li class="'.implode (" ", $classes).'" id="icon_'.$id.'">';
|
||||
$output .= '<a href="index.php?sec='.$mainsec.'&sec2='.$main["sec2"].($main["refr"] ? '&refr='.$main["refr"] : '').'">'.$main["text"].'</a><img class="toggle" src="include/styles/images/toggle.png" alt="toggle" />';
|
||||
$output .= '<a href="index.php?sec='.$mainsec.'&sec2='.$main["sec2"].($main["refr"] ? '&refr='.$main["refr"] : '').'">'.$main["text"].'</a>' . print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));
|
||||
if ($submenu_output != '') {
|
||||
//WARNING: IN ORDER TO MODIFY THE VISIBILITY OF MENU'S AND SUBMENU'S (eg. with cookies) YOU HAVE TO ADD TO THIS ELSEIF. DON'T MODIFY THE CSS
|
||||
if ($visible || in_array ("selected", $classes)) {
|
||||
|
|
|
@ -283,7 +283,7 @@ function format_delete($id)
|
|||
$txt = "";
|
||||
|
||||
if (give_acl ($config['id_user'], $group, "AW") ==1) {
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete='.$id.'"><img src="images/cross.png" border="0" /></a>';
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete='.$id.'">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
||||
}
|
||||
return $txt;
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ function format_delete_string($id)
|
|||
$txt = "";
|
||||
|
||||
if (give_acl ($config['id_user'], $group, "AW") ==1) {
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete_string='.$id.'"><img src="images/cross.png" border="0" /></a>';
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete_string='.$id.'">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
||||
}
|
||||
return $txt;
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ function format_delete_log4x($id)
|
|||
$txt = "";
|
||||
|
||||
if (give_acl ($config['id_user'], $group, "AW") ==1) {
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete_log4x='.$id.'"><img src="images/cross.png" border="0" /></a>';
|
||||
$txt = '<a href="index.php?sec=estado&sec2=operation/agentes/datos_agente&period='.$period.'&id='.$module_id.'&delete_log4x='.$id.'">' . print_image("images/cross.png", true, array("border" => '0')) . '</a>';
|
||||
}
|
||||
return $txt;
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@ function create_group_node ($group, $simple = 0, $font_size = 10) {
|
|||
if ($simple == 0){
|
||||
// Set node icon
|
||||
if (file_exists ('images/groups_small/'.$icon.'.png')) {
|
||||
$img_node = '<img src="images/groups_small/'.$icon.'.png"/>';
|
||||
$img_node = print_image("images/groups_small/" . $icon . ".png", true);
|
||||
} else {
|
||||
$img_node = '-';
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ function create_agent_node ($agent, $simple = 0, $font_size = 10) {
|
|||
$img_node = 'images/networkmap/0.png';
|
||||
}
|
||||
|
||||
$node = $agent['id_node'].' [ color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD><IMG SRC="'.$img_node.'"/></TD></TR>
|
||||
$node = $agent['id_node'].' [ color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' . print_image($img_node, true) . '</TD></TR>
|
||||
<TR><TD>'.$name.'</TD></TR></TABLE>>,
|
||||
shape="doublecircle", URL="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent['id_agente'].'",
|
||||
tooltip="ajax.php?page=operation/agentes/ver_agente&get_agent_status_tooltip=1&id_agent='.$agent['id_agente'].'"];';
|
||||
|
@ -419,7 +419,7 @@ function create_module_node ($module, $simple = 0, $font_size = 10) {
|
|||
|
||||
// Returns the definition of the central module
|
||||
function create_pandora_node ($name, $font_size = 10, $simple = 0) {
|
||||
$img = '<TR><TD><IMG SRC="images/networkmap/pandora_node.png"/></TD></TR>';
|
||||
$img = '<TR><TD>' . print_image("images/networkmap/pandora_node.png", true) . '</TD></TR>';
|
||||
$name = '<TR><TD BGCOLOR="#FFFFFF">'.$name.'</TD></TR>';
|
||||
$label = '<TABLE BORDER="0">'.$img.$name.'</TABLE>';
|
||||
if ($simple == 1){
|
||||
|
@ -439,7 +439,7 @@ function open_group ($id) {
|
|||
|
||||
$group = 'subgraph cluster_' . $id .
|
||||
' { style=filled; color=darkolivegreen3; label=<<TABLE BORDER="0">
|
||||
<TR><TD><IMG SRC="'.$img.'"/></TD><TD>'.$name.'</TD></TR>
|
||||
<TR><TD>' . print_image($img, true) . '</TD><TD>'.$name.'</TD></TR>
|
||||
</TABLE>>; tooltip="'.$name.'";
|
||||
URL="index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id='
|
||||
. $id . '";';
|
||||
|
|
|
@ -693,9 +693,9 @@ function event_reporting ($id_group, $period, $date = 0, $return = false) {
|
|||
foreach ($events as $event) {
|
||||
$data = array ();
|
||||
if ($event["estado"] == 0)
|
||||
$data[0] = '<img src="images/dot_red.png" />';
|
||||
$data[0] = print_image("images/dot_red.png", true);
|
||||
else
|
||||
$data[0] = '<img src="images/dot_green.png" />';
|
||||
$data[0] = print_image("images/dot_green.png", true);
|
||||
$data[1] = $event['evento'];
|
||||
$data[2] = $event['id_usuario'] != '0' ? $event['id_usuario'] : '';
|
||||
$data[3] = $event["timestamp"];
|
||||
|
@ -1825,12 +1825,12 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
|
|||
$monitor_value = format_numeric ($monitor_value);
|
||||
}
|
||||
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">';
|
||||
$data[0] .= $monitor_value.' % <img src="images/b_green.png" height="32" width="32" /></p>';
|
||||
$data[0] .= $monitor_value.' % ' . print_image("images/b_green.png", true, array("height" => "32", "width" => "32")) . '</p>';
|
||||
if ($monitor_value !== __('Unknown')) {
|
||||
$monitor_value = format_numeric (100 - $monitor_value, 2) ;
|
||||
}
|
||||
$data[1] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #ff0000;">';
|
||||
$data[1] .= $monitor_value.' % <img src="images/b_red.png" height="32" width="32" /></p>';
|
||||
$data[1] .= $monitor_value.' % ' . print_image("images/b_red.png", true, array("height" => "32", "width" => "32")) . '</p>';
|
||||
array_push ($table->data, $data);
|
||||
|
||||
break;
|
||||
|
|
|
@ -271,7 +271,7 @@ function print_group_icon ($id_group, $return = false, $path = "groups_small", $
|
|||
if (empty ($icon))
|
||||
$output .= '<span title="'. get_group_name($id_group, true).'"> - </span>';
|
||||
else
|
||||
$output .= '<img style="' . $style . '" class="bot" src="images/'.$path.'/'.$icon.'.png" alt="'.get_group_name ($id_group, true).'" title="'.get_group_name ($id_group, true).'" />';
|
||||
$output .= print_image("images/" . $path . "/" . $icon . ".png", true, array("style" => $style, "class" => "bot", "alt" => get_group_name($id_group, true), "title" => get_group_name ($id_group, true)));
|
||||
|
||||
if ($link)
|
||||
$output .= '</a>';
|
||||
|
@ -291,7 +291,7 @@ function print_group_icon ($id_group, $return = false, $path = "groups_small", $
|
|||
*
|
||||
* @return string HTML code if return parameter is true.
|
||||
*/
|
||||
function print_group_icon2($id_group, $return = false, $path = "images/groups_small", $style='', $link = true) {
|
||||
function print_group_icon_with_path ($id_group, $return = false, $path = "images/groups_small", $style='', $link = true) {
|
||||
if($id_group > 0)
|
||||
$icon = (string) get_db_value ('icon', 'tgrupo', 'id_grupo', (int) $id_group);
|
||||
else
|
||||
|
@ -334,7 +334,7 @@ function print_os_icon ($id_os, $name = true, $return = false) {
|
|||
return "-";
|
||||
}
|
||||
|
||||
$output = '<img src="images/os_icons/'.$icon.'" alt="'.$os_name.'" title="'.$os_name.'" />';
|
||||
$output = print_image("images/os_icons/".$icon, true, array("alt" => $os_name, "title" => $os_name));
|
||||
|
||||
if ($name === true) {
|
||||
$output .= ' - '.$os_name;
|
||||
|
@ -470,11 +470,11 @@ function format_alert_row ($alert, $compound = false, $agent = true, $url = '')
|
|||
if (! $compound) {
|
||||
if ($alert["force_execution"] == 0) {
|
||||
$data[$index['force_execution']] =
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&force_execution=1&refr=60"><img src="images/target.png" /></a>';
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&force_execution=1&refr=60">' . print_image("images/target.png", true) . '</a>';
|
||||
}
|
||||
else {
|
||||
$data[$index['force_execution']] =
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&refr=60"><img src="images/refresh.png" /></a>';
|
||||
'<a href="'.$url.'&id_alert='.$alert["id"].'&refr=60">' . print_image("images/refresh.png", true) . '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -596,7 +596,7 @@ function print_string_substr ($string, $cutoff = 16, $return = false) {
|
|||
function print_alert_template_example ($id_alert_template, $return = false, $print_values = true) {
|
||||
$output = '';
|
||||
|
||||
$output .= '<img src="images/information.png" /> ';
|
||||
$output .= print_image("images/information.png", true);
|
||||
$output .= '<span id="example">';
|
||||
$template = get_alert_template ($id_alert_template);
|
||||
|
||||
|
@ -1585,7 +1585,7 @@ function print_page_header ($title, $icon = "", $return = false, $help = "", $go
|
|||
$buffer = '<div id="'.$type2.'" style=""><div id="menu_tab_left">';
|
||||
|
||||
|
||||
$buffer .= '<ul class="mn"><li class="'.$type.'"> <img src="'.$icon.'" style="margin-bottom: -3px;" class="bottom" border="0" alt="" /> ';
|
||||
$buffer .= '<ul class="mn"><li class="'.$type.'"> ' . print_image($icon, true, array("style" => "margin-bottom: -3px;", "class" => "bottom", "border" => "0", "alt" => "")) . ' ';
|
||||
$buffer .= $title;
|
||||
if ($help != "")
|
||||
$buffer .= " " . print_help_icon ($help, true);
|
||||
|
|
|
@ -80,11 +80,13 @@ function printItemInVisualConsole($layoutData) {
|
|||
$sizeStyle = 'width: ' . $width . 'px; height: ' . $height . 'px;';
|
||||
$imageSize = 'width="' . $width . '" height="' . $height . '"';
|
||||
}
|
||||
echo '<div id="' . $id . '"
|
||||
class="item static_graph"
|
||||
style="left: 0px; top: 0px; text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
|
||||
echo '<div id="' . $id . '" class="item static_graph" style="text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
|
||||
if ($layoutData['image'] != null) {
|
||||
echo '<img class="image" id="image_' . $id . '" src="' . $img . '" ' . $imageSize . ' style="'.$borderStyle.'" /><br />';
|
||||
if (($width != 0) && ($height != 0))
|
||||
echo print_image($img, true, array("class" => "image", "id" => "image_" . $id, "width" => "$width", "height" => "$height", "style" => $borderStyle));
|
||||
else
|
||||
echo print_image($img, true, array("class" => "image", "id" => "image_" . $id, "style" => $borderStyle));
|
||||
echo '<br />';
|
||||
}
|
||||
echo $text;
|
||||
echo "</div>";
|
||||
|
@ -133,9 +135,14 @@ function printItemInVisualConsole($layoutData) {
|
|||
$sizeStyle = 'width: ' . $width . 'px; height: ' . $height . 'px;';
|
||||
$imageSize = 'width="' . $width . '" height="' . $height . '"';
|
||||
}
|
||||
echo '<div id="' . $id . '" class="item icon" style="left: 0px; top: 0px; text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
|
||||
echo '<div id="' . $id . '" class="item icon" style="text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
|
||||
if ($layoutData['image'] != null) {
|
||||
echo '<img class="image" id="image_' . $id . '" src="' . $img . '" ' . $imageSize . ' /><br />';
|
||||
|
||||
if (($width != 0) && ($height != 0))
|
||||
echo print_image($img, true, array("class" => "image", "id" => "image_" . $id, "width" => "$width", "height" => "$height"));
|
||||
else
|
||||
echo print_image($img, true, array("class" => "image", "id" => "image_" . $id));
|
||||
echo '<br />';
|
||||
}
|
||||
echo "</div>";
|
||||
break;
|
||||
|
|
|
@ -21,14 +21,14 @@ Possible values of an <b>agent status</b> are:
|
|||
|
||||
<table width="750px">
|
||||
<tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_critical.png" title="At least one monitor fails" alt="At least one monitor fails"><img src="../images/status_sets/faces/module_critical.png" title="At least one monitor fails" alt="At least one monitor fails"></td><td>At least one monitor fails</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_warning.png" title="Change between Green/Red state" alt="Change between Green/Red state"><img src="../images/status_sets/faces/module_warning.png" title="Change between Green/Red state" alt="Change between Green/Red state"></td><td>Change between Green/Red state</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_ok.png" title="All Monitors OK" alt="All Monitors OK"><img src="../images/status_sets/faces/agent_ok.png" title="All Monitors OK" alt="All Monitors OK"></td><td>All Monitors OK</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_critical.png", false, array("title" => "At least one monitor fails", "alt" => "At least one monitor fails")); ?><?php print_image("images/status_sets/faces/module_critical.png", false, array("title" => "At least one monitor fails", "alt" => "At least one monitor fails")); ?></td><td>At least one monitor fails</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_warning.png", false, array("title" => "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?><?php print_image("images/status_sets/faces/module_warning.png", false, array("title" => "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?></td><td>Change between Green/Red state</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_ok.png", false, array("title" => "All Monitors OK", "alt" => "All Monitors OK")); ?><?php print_image("images/status_sets/faces/agent_ok.png", false, array("title" => "All Monitors OK", "alt" => "All Monitors OK")); ?></td><td>All Monitors OK</td>
|
||||
|
||||
</tr><tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_monitors.png" title="Agent without monitors" alt="Agent without monitors"><img src="../images/status_sets/faces/agent_no_monitors.png" title="Agent without monitors" alt="Agent without monitors"></td><td>Agent without monitors</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_data.png" title="Agent without data" alt="Agent without data"><img src="../images/status_sets/faces/agent_no_data.png" title="Agent without data" alt="Agent without data"></td><td>Agent without data</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_down.png" title="Agent down" alt="Agent down"><img src="../images/status_sets/faces/agent_down.png" title="Agent down" alt="Agent down"></td><td>Agent down</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_monitors.png", false, array("title" => "Agent without monitors", "alt" => "Agent without monitors")); ?><?php print_image("images/status_sets/faces/agent_no_monitors.png", false, array("title" => "Agent without monitors", "alt" => "Agent without monitors")); ?></td><td>Agent without monitors</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_data.png", false, array("title" => "Agent without data", "alt" => "Agent without data")); ?><?php print_image("images/status_sets/faces/agent_no_data.png", false, array("title" => "Agent without data", "alt" => "Agent without data")); ?></td><td>Agent without data</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_down.png", false, array("title" => "Agent down", "alt" => "Agent down")); ?><?php print_image("images/status_sets/faces/agent_down.png", false, array("title" => "Agent down", "alt" => "Agent down")); ?></td><td>Agent down</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -38,9 +38,9 @@ Possible values of <b>alert status</b> are:
|
|||
<br><br>
|
||||
<table width="450px">
|
||||
<tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_fired.png" title="Alert fired" alt="Alert fired"><img src="../images/status_sets/faces/alert_fired.png" title="Alert fired" alt="Alert fired"></td><td>Alert fired</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_disabled.png" title="Alert disabled" alt="Alert disabled"><img src="../images/status_sets/faces/alert_disabled.png" title="Alert disabled" alt="Alert disabled"></td><td>Alerts disabled</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_not_fired.png" title="Alert not fired" alt="Alert not fired"><img src="../images/status_sets/faces/alert_not_fired.png" title="Alert not fired" alt="Alert not fired"></td><td>Alert not fired</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_fired.png", false, array("title" => "Alert fired", "alt" => "Alert fired")); ?><?php print_image("images/status_sets/faces/alert_fired.png", false, array("title" => "Alert fired", "alt" => "Alert fired")); ?></td><td>Alert fired</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_disabled.png", false, array("title" => "Alert disabled", "alt" => "Alert disabled")); ?><?php print_image("images/status_sets/faces/alert_disabled.png", false, array("title" => "Alert disabled", "alt" => "Alert disabled")); ?></td><td>Alerts disabled</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_not_fired.png", false, array("title" => "Alert not fired", "alt" => "Alert not fired")); ?><?php print_image("images/status_sets/faces/alert_not_fired.png", false, array("title" => "Alert not fired", "alt" => "Alert not fired")); ?></td><td>Alert not fired</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h1>Cascade protection</h1>
|
||||
|
||||
|
||||
<img src='../images/help/cascade_protection_ilustration.png'>
|
||||
<?php print_image("images/help/cascade_protection_ilustration.png", false); ?>
|
||||
<br>
|
||||
<p>
|
||||
This option is designed to avoid a "storm" of alerts coming because a group of agents are unreachable. This kind of behaviour happen when an intermediate device, as for example a router, is down, and all devices behind it are just not reachable, probably that devices are not down and even that devices are working behind another router, in HA mode, but if you don't do nothing probably Pandora FMS thinks they are down because cannot remotely test it with a Remote ICMP Proc test (a ping).
|
||||
|
|
|
@ -14,7 +14,7 @@ Each map has a desciptive name used to recognice the map within Pandora FMS.
|
|||
</p>
|
||||
<h2>Select Connections</h2>
|
||||
<p>
|
||||
The first step is to select the main <strong>connection</strong> used in this GIS Map. At least one connection must be selected to configure the GIS Map, but it's possible to add more by pressing the <img src="../images/add.png" alt="Add" /> (Add) icon.
|
||||
The first step is to select the main <strong>connection</strong> used in this GIS Map. At least one connection must be selected to configure the GIS Map, but it's possible to add more by pressing the <?php print_image("images/add.png", false, array("alt" => "Add")); ?> (Add) icon.
|
||||
</p>
|
||||
<p>
|
||||
When the firs connection is set, Pandora FMS asks if you want to use the default values of the connection for the map, to avoid to write again all the information. Also if the default connection for the map is changed (using the radio button), Pandora FMS will ask again if you want to use the values of the new default connection.
|
||||
|
@ -49,7 +49,7 @@ Once the selection of the connection (or connections) is done, there is a posibi
|
|||
Each map has one or more layers<sup><span style="font-size:75%">1</span></sup> to show the agents. Each layer can have show the agents of a <strong>group</strong> and/or a <strong>list of agents</strong>. This way it's easy to set up the agents that will be shown on each Layer.
|
||||
</p>
|
||||
<p>
|
||||
The layers can be set as <strong>visible</strong> or <strong>hidden</strong>, and select the <strong>group</strong> with the selector or add <strong>agents</strong> with the box. Once the layer is defined (it will not be completely saved until the whole map is saved) it will be moved to the left column of defined layers, where it is possible to <strong>order</strong> (<img src="../images/up.png" alt="move up icon"/> and <img src="../images/down.png" alt="move down icon" />) them, <strong>delete</strong> (<img src="../images/cross.png" alt="delete icon"/>), or <strong>edited</strong> (<img src="../images/config.png" alt="edit icon" />) again.
|
||||
The layers can be set as <strong>visible</strong> or <strong>hidden</strong>, and select the <strong>group</strong> with the selector or add <strong>agents</strong> with the box. Once the layer is defined (it will not be completely saved until the whole map is saved) it will be moved to the left column of defined layers, where it is possible to <strong>order</strong> (<?php print_image("images/up.png", false, array("alt" => "move up icon")); ?> and <?php print_image("images/down.png", false, array("alt" => "move down icon")); ?>) them, <strong>delete</strong> (<?php print_image("images/cross.png", false, array("alt" => "delete icon")); ?>), or <strong>edited</strong> (<?php print_image("images/config.png", false, array("alt" => "edit icon")); ?>) again.
|
||||
</p>
|
||||
<hr/>
|
||||
<sup><span style="font-size:75%;">1</span></sup> <span style="font-size:85%;">The default map can have 0 layers as is the one used in the agent GIS view and only uses one layer with the agent name.</span>
|
||||
|
|
|
@ -10,24 +10,24 @@
|
|||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Validate</h3>
|
||||
<img src="../images/tick.png" title="Validated event" alt="Validated event" width="10" height="10"> - Validated event<br>
|
||||
<img src="../images/cross.png" title="Event not validated" alt="Event not validated" width="10" height="10"> - Event not validated
|
||||
<?php print_image("images/tick.png", false, array("title" => "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validated event<br>
|
||||
<?php print_image("images/cross.png", false, array("title" => "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Event not validated
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Severity</h3>
|
||||
<img src="../images/status_sets/default/severity_maintenance.png" title="Maintenance event" alt="Maintenance event"> - Maintenance event<br>
|
||||
<img src="../images/status_sets/default/severity_informational.png" title="Informational event" alt="Informational event"> - Informational event<br>
|
||||
<img src="../images/status_sets/default/severity_normal.png" title="Normal event" alt="Normal event"> - Normal event<br>
|
||||
<img src="../images/status_sets/default/severity_warning.png" title="Warning event" alt="Warning event"> - Warning event<br>
|
||||
<img src="../images/status_sets/default/severity_critical.png" title="Critical event" alt="Critical event"> - Critical event<br>
|
||||
<?php print_image("images/status_sets/default/severity_maintenance.png", false, array("title" => "Maintenance event", "alt" => "Maintenance event")); ?> - Maintenance event<br>
|
||||
<?php print_image("images/status_sets/default/severity_informational.png", false, array("title" => "Informational event", "alt" => "Informational event")); ?> - Informational event<br>
|
||||
<?php print_image("images/status_sets/default/severity_normal.png", false, array("title" => "Normal event", "alt" => "Normal event")); ?> - Normal event<br>
|
||||
<?php print_image("images/status_sets/default/severity_warning.png", false, array("title" => "Warning event", "alt" => "Warning event")); ?> - Warning event<br>
|
||||
<?php print_image("images/status_sets/default/severity_critical.png", false, array("title" => "Critical event", "alt" => "Critical event")); ?> - Critical event<br>
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Actions</h3>
|
||||
<img src="../images/ok.png" title="Validate event" alt="Validate event"> - Validate event<br>
|
||||
<img src="../images/cross.png" title="Delete event" alt="Delete event"> - Delete event<br>
|
||||
<img src="../images/page_lightning.png" title="Create incident from event" alt="Create incident from event"> - Create incident from event
|
||||
<?php print_image("images/ok.png", false, array("title" => "Validate event", "alt" => "Validate event")); ?> - Validate event<br>
|
||||
<?php print_image("images/cross.png", false, array("title" => "Delete event", "alt" => "Delete event")); ?> - Delete event<br>
|
||||
<?php print_image("images/page_lightning.png", false, array("title" => "Create incident from event", "alt" => "Create incident from event")); ?> - Create incident from event
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"> </div>
|
||||
|
|
|
@ -18,11 +18,11 @@ Options:
|
|||
<dl>
|
||||
<dt>Map name</dt>
|
||||
<dd>Click on the <strong>Map Name</strong> corresponding to the map you want edit the map </dd>
|
||||
<dt><img src="../images/eye.png" alt="View" /> View</dt>
|
||||
<dt><?php print_image("images/eye.png", false, array("alt" => "View")); ?> View</dt>
|
||||
<dd>Click on the view icon to <strong>view</strong> the map.</dd>
|
||||
<dt>Default radio button</dt>
|
||||
<dd>Click on the <strong>radio button</strong> corresponding to the map you want to make the default to set the <strong>default map</strong> </dd>
|
||||
<dt><img src="../images/cross.png" alt="Delete" /> Delete</dt>
|
||||
<dt><?php print_image("images/cross.png", false, array("alt" => "Delete")); ?> Delete</dt>
|
||||
<dd>Click on the delete icon to <strong>delete</strong> the map.</dd>
|
||||
<dt>Create Button</dt>
|
||||
<dd>Click on Create button to <strong>create</strong> a new map.</dd>
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
This page is the place where the admin can configure <strong>connections to GIS Map Servers</strong>.
|
||||
</p>
|
||||
<p>
|
||||
Here it is possible to see the list of defined connections, <strong>edit</strong> any one of them by clicking on their name, <strong>delete</strong> any connection by clicking on the delete icon (<img src="../images/cross.png" alt="delete icon" />) or <strong>create</strong> new connections using the create button.
|
||||
Here it is possible to see the list of defined connections, <strong>edit</strong> any one of them by clicking on their name, <strong>delete</strong> any connection by clicking on the delete icon (<?php print_image("images/cross.png", false, array("alt" => "delete icon")); ?>) or <strong>create</strong> new connections using the create button.
|
||||
</p>
|
||||
|
|
|
@ -23,14 +23,14 @@ Los valores posibles del <b>estado de un agente </b> son:
|
|||
|
||||
<table width="750px">
|
||||
<tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_critical.png" title="At least one monitor fails" alt="At least one monitor fails"><img src="../images/status_sets/faces/module_critical.png" title="At least one monitor fails" alt="At least one monitor fails"></td><td>Al menos un monitor falla</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_warning.png" title="Change between Green/Red state" alt="Change between Green/Red state"><img src="../images/status_sets/faces/module_warning.png" title="Change between Green/Red state" alt="Change between Green/Red state"></td><td>Cambia entre el estado Verde/Rojo</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_ok.png" title="All Monitors OK" alt="All Monitors OK"><img src="../images/status_sets/faces/agent_ok.png" title="All Monitors OK" alt="All Monitors OK"></td><td>Todos los monitores están OK</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_critical.png", false, array("title" => "At least one monitor fails", "alt" => "At least one monitor fails")); ?><?php print_image("images/status_sets/faces/module_critical.png", false, array("title" => "At least one monitor fails", "alt" => "At least one monitor fails")); ?></td><td>Al menos un monitor falla</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_warning.png", false, array("title" => "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?><?php print_image("images/status_sets/faces/module_warning.png", false, array("title" => "Change between Green/Red state", "alt" => "Change between Green/Red state")); ?></td><td>Cambia entre el estado Verde/Rojo</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_ok.png", false, array("title" => "All Monitors OK", "alt" => "All Monitors OK")); ?><?php print_image("images/status_sets/faces/agent_ok.png", false, array("title" => "All Monitors OK", "alt" => "All Monitors OK")); ?></td><td>Todos los monitores están OK</td>
|
||||
|
||||
</tr><tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_monitors.png" title="Agent without monitors" alt="Agent without monitors"><img src="../images/status_sets/faces/agent_no_monitors.png" title="Agent without monitors" alt="Agent without monitors"></td><td>Agente sin monitores</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_data.png" title="Agent without data" alt="Agent without data"><img src="../images/status_sets/faces/agent_no_data.png" title="Agent without data" alt="Agent without data"></td><td>Agente sin datos</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_down.png" title="Agent down" alt="Agent down"><img src="../images/status_sets/faces/agent_down.png" title="Agent down" alt="Agent down"></td><td>Agente caído</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_monitors.png", false, array("title" => "Agent without monitors", "alt" => "Agent without monitors")); ?><?php print_image("images/status_sets/faces/agent_no_monitors.png", false, array("title" => "Agent without monitors", "alt" => "Agent without monitors")); ?></td><td>Agente sin monitores</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_data.png", false, array("title" => "Agent without data", "alt" => "Agent without data")); ?><?php print_image("images/status_sets/faces/agent_no_data.png", false, array("title" => "Agent without data", "alt" => "Agent without data")); ?></td><td>Agente sin datos</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_down.png", false, array("title" => "Agent down", "alt" => "Agent down")); ?><?php print_image("images/status_sets/faces/agent_down.png", false, array("title" => "Agent down", "alt" => "Agent down")); ?></td><td>Agente caído</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -40,9 +40,9 @@ Los valores posibles del <b>estado de alerta </b> son:
|
|||
<br><br>
|
||||
<table width="450px">
|
||||
<tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_fired.png" title="Alert fired" alt="Alert fired"><img src="../images/status_sets/faces/alert_fired.png" title="Alert fired" alt="Alert fired"></td><td>Alerta disparada</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_disabled.png" title="Alert disabled" alt="Alert disabled"><img src="../images/status_sets/faces/alert_disabled.png" title="Alert disabled" alt="Alert disabled"></td><td>Alerta desactivada</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_not_fired.png" title="Alert not fired" alt="Alert not fired"><img src="../images/status_sets/faces/alert_not_fired.png" title="Alert not fired" alt="Alert not fired"></td><td>Alerta no disparada</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_fired.png", false, array("title" => "Alert fired", "alt" => "Alert fired")); ?><?php print_image("images/status_sets/faces/alert_fired.png", false, array("title" => "Alert fired", "alt" => "Alert fired")); ?></td><td>Alerta disparada</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_disabled.png", false, array("title" => "Alert disabled", "alt" => "Alert disabled")); ?><?php print_image("images/status_sets/faces/alert_disabled.png", false, array("title" => "Alert disabled", "alt" => "Alert disabled")); ?></td><td>Alerta desactivada</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_not_fired.png", false, array("title" => "Alert not fired", "alt" => "Alert not fired")); ?><?php print_image("images/status_sets/faces/alert_not_fired.png", false, array("title" => "Alert not fired", "alt" => "Alert not fired")); ?></td><td>Alerta no disparada</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h1>Protección en Cascada</h1>
|
||||
|
||||
|
||||
<img src='../images/help/cascade_protection_ilustration.png'>
|
||||
<?php print_image("images/help/cascade_protection_ilustration.png", false); ?>
|
||||
<br>
|
||||
<p>
|
||||
Esta opción se designa para evitar una "tormenta" de alertas que entren porque un grupo de agentes son inalcanzables. Este tipo de comportamiento ocurre cuando un dispositivo intermedio, como por ejemplo un router, está caido, y todos los dispositivos que están tras él no se pueden alcanzar. Probablemente estos dispositivos no estén caídos e incluso estos dispositivos estén trabajando junto con otro router, en modo HA. Pero si no hace nada, probablemente Pandora FMS piense que estén caídos porque no los pueden testar con un Remote ICMP Proc Test (un ping).
|
||||
|
|
|
@ -15,7 +15,7 @@ Cada mapa tiene un nombre descriptivo que se utiliza para reconocer el mapa dent
|
|||
</p>
|
||||
<h2>Seleccionar Conexiones</h2>
|
||||
<p>
|
||||
El primer paso es seleccionar la principal <strong>conexión </strong> empleada en este Mapa GIS. Al menos una conexión debe ser seleccionada para configurar el MAPA GIS, pero es posible añadir más presionando el icono(Add) <img src="../images/add.png" alt="Add" />
|
||||
El primer paso es seleccionar la principal <strong>conexión </strong> empleada en este Mapa GIS. Al menos una conexión debe ser seleccionada para configurar el MAPA GIS, pero es posible añadir más presionando el icono(Add) <?php print_image("images/add.png", false, array("alt" => "Add")); ?>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
@ -10,24 +10,24 @@
|
|||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Validar</h3>
|
||||
<img src="../images/tick.png" title="Validated event" alt="Validated event" width="10" height="10"> - Validar evento<br>
|
||||
<img src="../images/cross.png" title="Event not validated" alt="Event not validated" width="10" height="10"> - Evento no validado
|
||||
<?php print_image("images/tick.png", false, array("title" => "Validated event", "alt" => "Validated event", "width" => '10', "height" => '10')); ?> - Validar evento<br>
|
||||
<?php print_image("images/cross.png", false, array("title" => "Event not validated", "alt" => "Event not validated", "width" => '10', "height" => '10')); ?> - Evento no validado
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Severidad</h3>
|
||||
<img src="../images/status_sets/default/severity_maintenance.png" title="Maintenance event" alt="Maintenance event"> - Evento de mantenimiento<br>
|
||||
<img src="../images/status_sets/default/severity_informational.png" title="Informational event" alt="Informational event"> - Evento informativo<br>
|
||||
<img src="../images/status_sets/default/severity_normal.png" title="Normal event" alt="Normal event"> - Evento normal<br>
|
||||
<img src="../images/status_sets/default/severity_warning.png" title="Warning event" alt="Warning event"> - Evento de alerta<br>
|
||||
<img src="../images/status_sets/default/severity_critical.png" title="Critical event" alt="Critical event"> - Evento crítico<br>
|
||||
<?php print_image("images/status_sets/default/severity_maintenance.png", false, array("title" => "Maintenance event", "alt" => "Maintenance event")); ?> - Evento de mantenimiento<br>
|
||||
<?php print_image("images/status_sets/default/severity_informational.png", false, array("title" => "Informational event", "alt" => "Informational event")); ?> - Evento informativo<br>
|
||||
<?php print_image("images/status_sets/default/severity_normal.png", false, array("title" => "Normal event", "alt" => "Normal event")); ?> - Evento normal<br>
|
||||
<?php print_image("images/status_sets/default/severity_warning.png", false, array("title" => "Warning event", "alt" => "Warning event")); ?> - Evento de alerta<br>
|
||||
<?php print_image("images/status_sets/default/severity_critical.png", false, array("title" => "Critical event", "alt" => "Critical event")); ?> - Evento crítico<br>
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>Acciones</h3>
|
||||
<img src="../images/ok.png" title="Validate event" alt="Validate event"> - Validar evento<br>
|
||||
<img src="../images/cross.png" title="Delete event" alt="Delete event"> - Borrar evento<br>
|
||||
<img src="../images/page_lightning.png" title="Create incident from event" alt="Create incident from event"> - Crear incidente del evento
|
||||
<?php print_image("images/ok.png", false, array("title" => "Validate event", "alt" => "Validate event")); ?> - Validar evento<br>
|
||||
<?php print_image("images/cross.png", false, array("title" => "Delete event", "alt" => "Delete event")); ?> - Borrar evento<br>
|
||||
<?php print_image("images/page_lightning.png", false, array("title" => "Create incident from event", "alt" => "Create incident from event")); ?> - Crear incidente del evento
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"> </div>
|
||||
|
|
|
@ -22,11 +22,11 @@ Opciones:
|
|||
<dl>
|
||||
<dt>Nombre del Mapa</dt>
|
||||
<dd>Haga click en el<strong>Nombre del Mapa</strong> que se corresponda con el mapa que quiere editar </dd>
|
||||
<dt><img src="../images/eye.png" alt="View" />Vista</dt>
|
||||
<dt><?php print_image("images/eye.png", false, array("alt" => "View")); ?>Vista</dt>
|
||||
<dd>Haga click en icono de visualizar para <strong>visualizar</strong> el mapa.</dd>
|
||||
<dt>Botón radio por defecto</dt>
|
||||
<dd>Haga click en el <strong> botón radio </strong> que se corresponda con el mapa que quiere por defecto para instalar <strong>mapa por defecto</strong> </dd>
|
||||
<dt><img src="../images/cross.png" alt="Delete" /> Eliminar</dt>
|
||||
<dt><?php print_image("images/cross.png", false, array("alt" => "Delete")); ?> Eliminar</dt>
|
||||
<dd>Haga click en el botón de eliminar para <strong>eliminar</strong> el mapa</dd>
|
||||
<dt>Crear botón </dt>
|
||||
<dd>Haga click en el Botón de Crear para <strong>crear</strong> un mapa nuevo</dd>
|
||||
|
|
|
@ -133,7 +133,7 @@ foreach ($groups as $id_group ) {
|
|||
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.$id_group["name"].'</a></strong>';
|
||||
// $data[2] = get_group_name ($group["parent"]);
|
||||
// $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled');
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>';
|
||||
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . print_image('images/cross.png', true, array("border" => '0')) . '</a>';
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
|
|
@ -10,20 +10,20 @@
|
|||
<br><br>
|
||||
|
||||
<table width=750px><tr>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_ok.png" title="すべての監視項目が正常" alt="すべての監視項目が正常"></td><td>すべての監視項目が正常</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_critical.png" title="1つ以上の監視項目で障害" alt="1つ以上の監視項目で障害"></td><td>1つ以上の監視項目で障害</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/module_warning.png" title="緑/赤 の状態変化発生" alt="緑/赤 の状態変化発生"></td><td>緑/赤 の状態変化発生</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_ok.png", false, array("title" => "すべての監視項目が正常", "alt" => "すべての監視項目が正常")); ?></td><td>すべての監視項目が正常</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_critical.png", false, array("title" => "1つ以上の監視項目で障害", "alt" => "1つ以上の監視項目で障害")); ?></td><td>1つ以上の監視項目で障害</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/module_warning.png", false, array("title" => "緑/赤 の状態変化発生", "alt" => "緑/赤 の状態変化発生")); ?></td><td>緑/赤 の状態変化発生</td>
|
||||
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_fired.png" title="アラート発生中" alt="アラート発生中"></td><td>アラート発生中</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_disabled.png" title="アラートが無効" alt="アラートが無効"></td><td>アラートが無効</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_fired.png", false, array("title" => "アラート発生中", "alt" => "アラート発生中")); ?></td><td>アラート発生中</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_disabled.png", false, array("title" => "アラートが無効", "alt" => "アラートが無効")); ?></td><td>アラートが無効</td>
|
||||
|
||||
</tr><tr>
|
||||
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_monitors.png" title="監視対象外エージェント" alt="監視対象外エージェント"></td><td>監視対象外エージェント</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_no_data.png" title="データ収集対象外エージェント" alt="データ収集対象外エージェント"></td><td>データ収集対象外エージェント</td>
|
||||
<td class="f9i"><img src="../images/status_sets/default/agent_down.png" title="エージェント停止中" alt="エージェント停止中"></td><td>エージェント停止中</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_monitors.png", false, array("title" => "監視対象外エージェント", "alt" => "監視対象外エージェント")); ?></td><td>監視対象外エージェント</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_no_data.png", false, array("title" => "データ収集対象外エージェント", "alt" => "データ収集対象外エージェント")); ?></td><td>データ収集対象外エージェント</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/agent_down.png", false, array("title" => "エージェント停止中", "alt" => "エージェント停止中")); ?></td><td>エージェント停止中</td>
|
||||
|
||||
<td class="f9i"><img src="../images/status_sets/default/alert_not_fired.png" title="アラート未発生" alt="アラート未発生"></td><td>アラート未発生</td>
|
||||
<td class="f9i"><?php print_image("images/status_sets/default/alert_not_fired.png", false, array("title" => "アラート未発生", "alt" => "アラート未発生")); ?></td><td>アラート未発生</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h1>関連障害検知抑制</h1>
|
||||
|
||||
|
||||
<img src='../images/help/cascade_protection_ilustration.png'>
|
||||
<?php print_image("images/help/cascade_protection_ilustration.png", false); ?>
|
||||
<br>
|
||||
<p>
|
||||
このオプションは、あるエージェントの障害により他のエージェントの状態が確認できなくなった時に、大量のアラートが上がるのを避けるために利用します。
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<p>
|
||||
最初のステップは、GIS マップで利用する<strong>メインのマップ</strong>を定義することです。
|
||||
GIS マップを設定するためには、少なくとも一つ選択されている必要があります。
|
||||
<img src="../images/add.png" alt="Add" />(追加)アイコンをクリックして、追加することも可能です。
|
||||
<?php print_image("images/add.png", false, array("alt" => "Add")); ?>(追加)アイコンをクリックして、追加することも可能です。
|
||||
</p>
|
||||
<p>
|
||||
意図しない設定情報の再入力を防ぐために、利用マップが設定されると、それを Pandora FMS はデフォルトのマップとして利用するかどうか尋ねます。
|
||||
|
@ -57,7 +57,7 @@ GIS マップを設定するためには、少なくとも一つ選択されて
|
|||
<p>
|
||||
レイヤは、<strong>表示</strong>、<strong>非表示</strong>の設定ができ、<strong>グループ</strong>を選択や<strong>エージェント</strong>の追加ができます。
|
||||
一度レイヤが定義されると、左側の定義済レイヤに移ります。(定義は、マップ全体が保存されるまでは保存されません。)
|
||||
ここでは、再度、<strong>順番の変更</strong> (<img src="../images/up.png" alt="move up icon"/>、<img src="../images/down.png" alt="move down icon" />)、<strong>削除</strong> (<img src="../images/cross.png" alt="delete icon"/>)、<strong>編集</strong> (<img src="../images/config.png" alt="edit icon" />) ができます。
|
||||
ここでは、再度、<strong>順番の変更</strong> (<?php print_image("images/up.png", false, array("alt" => "move up icon")); ?>、<?php print_image("images/down.png", false, array("alt" => "move down icon")); ?>)、<strong>削除</strong> (<?php print_image("images/cross.png", false, array("alt" => "delete icon")); ?>)、<strong>編集</strong> (<?php print_image("images/config.png", false, array("alt" => "edit icon")); ?>) ができます。
|
||||
</p>
|
||||
<hr/>
|
||||
<sup><span style="font-size:75%;">1</span></sup> <span style="font-size:85%;">デフォルトマップでは、エージェント名で一つのレイヤしか表示しない場合は、レイヤを持たない設定も可能です。</span>
|
||||
|
|
|
@ -10,24 +10,24 @@
|
|||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>承諾</h3>
|
||||
<img src="../images/tick.png" title="承諾済" alt="承諾済" width="10" height="10"> - 承諾済<br>
|
||||
<img src="../images/tick_off.png" title="未承諾" alt="未承諾" width="10" height="10"> - 未承諾
|
||||
<?php print_image("images/tick.png", false, array("title" => "承諾済", "alt" => "承諾済", "width" => '10', "height" => '10')); ?> - 承諾済<br>
|
||||
<?php print_image("images/tick_off.png", false, array("title" => "未承諾", "alt" => "未承諾", "width" => '10', "height" => '10')); ?> - 未承諾
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>重要度</h3>
|
||||
<img src="../images/status_sets/default/severity_maintenance.png" title="メンテナンス" alt="メンテナンス"> - メンテナンス<br>
|
||||
<img src="../images/status_sets/default/severity_informational.png" title="情報" alt="情報"> - 情報<br>
|
||||
<img src="../images/status_sets/default/severity_normal.png" title="正常" alt="正常"> - 正常<br>
|
||||
<img src="../images/status_sets/default/severity_warning.png" title="警告" alt="警告"> - 警告<br>
|
||||
<img src="../images/status_sets/default/severity_critical.png" title="障害" alt="障害"> - 障害<br>
|
||||
<?php print_image("images/status_sets/default/severity_maintenance.png", false, array("title" => "メンテナンス", "alt" => "メンテナンス")); ?> - メンテナンス<br>
|
||||
<?php print_image("images/status_sets/default/severity_informational.png", false, array("title" => "情報", "alt" => "情報")); ?> - 情報<br>
|
||||
<?php print_image("images/status_sets/default/severity_normal.png", false, array("title" => "正常", "alt" => "正常")); ?> - 正常<br>
|
||||
<?php print_image("images/status_sets/default/severity_warning.png", false, array("title" => "警告", "alt" => "警告")); ?> - 警告<br>
|
||||
<?php print_image("images/status_sets/default/severity_critical.png", false, array("title" => "障害", "alt" => "障害")); ?> - 障害<br>
|
||||
</div>
|
||||
|
||||
<div style="padding-left: 30px; width: 150px; float: left; line-height: 17px;">
|
||||
<h3>アクション</h3>
|
||||
<img src="../images/ok.png" title="承諾する" alt="承諾する"> - 承諾する<br>
|
||||
<img src="../images/cross.png" title="削除する" alt="削除する"> - 削除する<br>
|
||||
<img src="../images/page_lightning.png" title="インシデントを作成する" alt="インシデントを作成する"> - インシデントを作成する
|
||||
<?php print_image("images/ok.png", false, array("title" => "承諾する", "alt" => "承諾する")); ?> - 承諾する<br>
|
||||
<?php print_image("images/cross.png", false, array("title" => "削除する", "alt" => "削除する")); ?> - 削除する<br>
|
||||
<?php print_image("images/page_lightning.png", false, array("title" => "インシデントを作成する", "alt" => "インシデントを作成する")); ?> - インシデントを作成する
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"> </div>
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
<dl>
|
||||
<dt>マップ名</dt>
|
||||
<dd><strong>マップ名</strong>をクリックすると、そのマップを編集できます。</dd>
|
||||
<dt><img src="../images/eye.png" alt="View" /> View</dt>
|
||||
<dt><?php print_image("images/eye.png", false, array("alt" => "View")); ?> View</dt>
|
||||
<dd>表示アイコンをクリックすると、マップを<strong>参照</strong>できます。</dd>
|
||||
<dt>デフォルトラジオボタン</dt>
|
||||
<dd><strong>ラジオボタン</strong>をクリックすると、そのマップが<strong>デフォルトマップ</strong>に設定されます。</dd>
|
||||
<dt><img src="../images/cross.png" alt="Delete" /> 削除</dt>
|
||||
<dt><?php print_image("images/cross.png", false, array("alt" => "Delete")); ?> 削除</dt>
|
||||
<dd>削除アイコンをクリックすると、そのマップを<strong>削除</strong>します。</dd>
|
||||
<dt>作成ボタン</dt>
|
||||
<dd>作成ボタンをクリックすると、新しいマップを<strong>作成</strong>できます。</dd>
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
<p>
|
||||
設定済の利用マップ定義一覧の参照できます。
|
||||
<strong>編集</strong>するにはマップ名をクリックします。
|
||||
<strong>削除</strong>するには削除アイコン(<img src="../images/cross.png" alt="delete icon" />)をクリックします。
|
||||
<strong>削除</strong>するには削除アイコン(<?php print_image("images/cross.png", false, array("alt" => "delete icon")) ?> )をクリックします。
|
||||
また、新たな設定を<strong>作成</strong>するには、「作成」ボタンをクリックします。
|
||||
</p>
|
||||
|
|
|
@ -109,7 +109,7 @@ class ViewAgents {
|
|||
|
||||
$truncName = printTruncateText($agent['nombre'], 25, true, true);
|
||||
|
||||
$data[] = print_group_icon2($agent["id_grupo"], true, "../images/groups_small", '', false);
|
||||
$data[] = print_group_icon_with_path($agent["id_grupo"], true, "../images/groups_small", '', false);
|
||||
$data[] = '<a href="index.php?page=agent&id=' . $agent['id_agente'] . '">' . $truncName . '</a>';
|
||||
|
||||
$moduleInfo = '<b>';
|
||||
|
|
|
@ -229,14 +229,14 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
$table->head[1] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span>";
|
||||
$table->head[2] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
||||
$table->head[3] = __('Agent') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up"><img src="images/sort_up.png" style="' . $selectAgentUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down"><img src="images/sort_down.png" style="' . $selectAgentDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . '</a>';
|
||||
$table->head[4] = __('Module') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=up"><img src="images/sort_up.png" style="' . $selectModuleUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down"><img src="images/sort_down.png" style="' . $selectModuleDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=module&sort=up">' . print_image("images/sort_up.png", true, array("style" =>$selectModuleUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
|
||||
$table->head[5] = __('Template') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=up"><img src="images/sort_up.png" style="' . $selectTemplateUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down"><img src="images/sort_down.png" style="' . $selectTemplateDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=template&sort=up">' . print_image("images/sort_up.png", true, array("style" =>$selectTemplateUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
|
||||
$table->head[6] = __('Action');
|
||||
$table->head[7] = __('Last fired');
|
||||
$table->head[8] = __('Status');
|
||||
|
@ -259,11 +259,11 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
$table->head[1] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span>";
|
||||
$table->head[2] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
||||
$table->head[3] = __('Module') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=up"><img src="images/sort_up.png" style="' . $selectModuleUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down"><img src="images/sort_down.png" style="' . $selectModuleDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=module&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
|
||||
$table->head[4] = __('Template') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=up"><img src="images/sort_up.png" style="' . $selectTemplateUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down"><img src="images/sort_down.png" style="' . $selectTemplateDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=template&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
|
||||
$table->head[5] = __('Action');
|
||||
$table->head[6] = __('Last fired');
|
||||
$table->head[7] = __('Status');
|
||||
|
@ -288,14 +288,14 @@ else
|
|||
$table->head[0] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span>";
|
||||
$table->head[1] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
||||
$table->head[2] = __('Agent') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up"><img src="images/sort_up.png" style="' . $selectAgentUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down"><img src="images/sort_down.png" style="' . $selectAgentDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=agent&sort=up">'. print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=agent&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . '</a>';
|
||||
$table->head[3] = __('Module') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=up"><img src="images/sort_up.png" style="' . $selectModuleUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down"><img src="images/sort_down.png" style="' . $selectModuleDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=module&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
|
||||
$table->head[4] = __('Template') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=up"><img src="images/sort_up.png" style="' . $selectTemplateUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down"><img src="images/sort_down.png" style="' . $selectTemplateDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=template&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
|
||||
$table->head[5] = __('Action');
|
||||
$table->head[6] = __('Last fired');
|
||||
$table->head[7] = __('Status');
|
||||
|
@ -316,11 +316,11 @@ else
|
|||
$table->head[0] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span>";
|
||||
$table->head[1] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
||||
$table->head[2] = __('Module') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=up"><img src="images/sort_up.png" style="' . $selectModuleUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down"><img src="images/sort_down.png" style="' . $selectModuleDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=module&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=module&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
|
||||
$table->head[3] = __('Template') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=up"><img src="images/sort_up.png" style="' . $selectTemplateUp . '" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down"><img src="images/sort_down.png" style="' . $selectTemplateDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=template&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=template&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
|
||||
$table->head[4] = __('Action');
|
||||
$table->head[5] = __('Last fired');
|
||||
$table->head[6] = __('Status');
|
||||
|
|
|
@ -247,23 +247,23 @@ $table->class = "databox";
|
|||
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Agent'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . '</a>';
|
||||
$table->head[1] = __('OS'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=up"><img src="images/sort_up.png" style="' . $selectOsUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=down"><img src="images/sort_down.png" style="' . $selectOsDown . '" alt="down" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectOsUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=os&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectOsDown, "alt" => "down")) . '</a>';
|
||||
$table->head[2] = __('Interval'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" alt="down" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=interval&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . '</a>';
|
||||
$table->head[3] = __('Group'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=up"><img src="images/sort_up.png" style="' . $selectGroupUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=down"><img src="images/sort_down.png" style="' . $selectGroupDown . '" alt="down" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectGroupUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=group&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectGroupDown, "alt" => "down")) . '</a>';
|
||||
$table->head[4] = __('Modules');
|
||||
$table->head[5] = __('Status');
|
||||
$table->head[6] = __('Alerts');
|
||||
$table->head[7] = __('Last contact'). ' ' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" alt="up" /></a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" alt="down" /></a>';
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=' . $refr . '&offset=' . $offset . '&group_id=' . $group_id . '&search=' . $search . '&sort_field=last_contact&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>';
|
||||
|
||||
$table->align = array ();
|
||||
$table->align[1] = "center";
|
||||
|
|
|
@ -75,8 +75,8 @@ else {
|
|||
$cellName = print_agent_name ($agent["id_agente"], true, 35, "upper", true);
|
||||
}
|
||||
echo '<td class="datos"><b>'.$cellName.'</b></td>';
|
||||
echo '<td class="datos" width="40"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60"><img src="images/refresh.png" border="0" title="'.__('Refresh data').'" alt="" /></a> ';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'"><img src="images/target.png" border="0" title="'.__('Flag').'" alt="" /></a></td></tr>';
|
||||
echo '<td class="datos" width="40"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60">' . print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . '</a> ';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'">' . print_image("images/target.png", true, array("border" => '0', "title" => __('Flag'), "alt" => "")) . '</a></td></tr>';
|
||||
|
||||
//Addresses
|
||||
echo '<tr><td class="datos2"><b>'.__('IP Address').'</b></td>';
|
||||
|
|
|
@ -151,22 +151,22 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
}
|
||||
|
||||
$table->head[2] = __('Type') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=type&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . '</a>';
|
||||
$table->head[3] = __('Module name') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . '</a>';
|
||||
$table->head[4] = __('Description');
|
||||
$table->head[5] = __('Status') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=up"><img src="images/sort_up.png" style="' . $selectStatusUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=down"><img src="images/sort_down.png" style="' . $selectStatusDown . '" /></a>';
|
||||
'<a href="' . $url . '&sort_field=status&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=status&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . '</a>';
|
||||
$table->head[6] = __('Data') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=data&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . '</a>';
|
||||
$table->head[7] = __('Graph');
|
||||
$table->head[8] = __('Last contact') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=up"><img src="images/sort_up.png" style="' . $selectLastContactUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=down"><img src="images/sort_down.png" style="' . $selectLastContactDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=last_contact&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>';
|
||||
|
||||
$table->align = array("left","left","left","left","left","center");
|
||||
|
||||
|
@ -191,10 +191,10 @@ foreach ($modules as $module) {
|
|||
$data = array ();
|
||||
if (($module["id_modulo"] != 1) && ($module["id_tipo_modulo"] != 100)) {
|
||||
if ($module["flag"] == 0) {
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&flag=1&refr=60"><img src="images/target.png" border="0" alt="target" /></a>';
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&flag=1&refr=60">' . print_image("images/target.png", true, array("border" => '0', "alt" => "target")) . '</a>';
|
||||
}
|
||||
else {
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&refr=60"><img src="images/refresh.png" border="0" alt="refresh" /></a>';
|
||||
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&refr=60">' . print_image("images/refresh.png", true, array("border" => "0", "alt" => "refresh")) . '</a>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -246,7 +246,7 @@ foreach ($modules as $module) {
|
|||
$data[2] = show_server_type ($module['id_modulo']);
|
||||
|
||||
if (give_acl ($config['id_user'], $id_grupo, "AW"))
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module["id_agente_modulo"].'&edit_module='.$module["id_modulo"].'"><img src="images/config.png" alt="" border="0" /></a>';
|
||||
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module["id_agente_modulo"].'&edit_module='.$module["id_modulo"].'">' . print_image("images/config.png", true, array("alt" => '0', "border" => "")) . '</a>';
|
||||
|
||||
$data[3] = print_string_substr ($module["nombre"], 25, true);
|
||||
$data[4] = print_string_substr ($module["descripcion"], 30, true);
|
||||
|
@ -326,8 +326,8 @@ foreach ($modules as $module) {
|
|||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$module["nombre"]."&refresh=600','day_".$win_handle."')";
|
||||
|
||||
// if ($nombre_tipo_modulo != "log4x")
|
||||
$data[7] .= '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border="0" alt="" /></a>';
|
||||
$data[7] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img border='0' src='images/binary.png' alt='' /></a>";
|
||||
$data[7] .= '<a href="javascript:'.$link.'">' . print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
||||
$data[7] .= '<td class="datos" width="40"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60">' . print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . '</a> ';
|
||||
}
|
||||
|
||||
if ($module['estado'] == 3) {
|
||||
|
|
|
@ -44,7 +44,7 @@ $last_label = "";
|
|||
|
||||
// Title
|
||||
echo "<h3>".__('Display of last data modules received by agent');
|
||||
echo " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'><img src='images/refresh.png' alt='' /></a>";
|
||||
echo " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data'>" . print_image('images/refresh.png', true, array("alt" => '')) . "</a>";
|
||||
echo "</h3>";
|
||||
|
||||
$sortField = get_parameter('sort_field');
|
||||
|
@ -159,27 +159,27 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|||
echo "<th><span title='" . __('Policy') . "'>".__('P.')."</span></th>";
|
||||
}
|
||||
echo "<th>".__('Module name') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=up"><img src="images/sort_up.png" style="' . $selectNameUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down"><img src="images/sort_down.png" style="' . $selectNameDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Type') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=up"><img src="images/sort_up.png" style="' . $selectTypeUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down"><img src="images/sort_down.png" style="' . $selectTypeDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=type&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=type&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('int') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up"><img src="images/sort_up.png" style="' . $selectIntervalUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down"><img src="images/sort_down.png" style="' . $selectIntervalDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=interval&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=interval&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Description') . "</th>";
|
||||
echo "<th>".__('Data') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=up"><img src="images/sort_up.png" style="' . $selectDataUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down"><img src="images/sort_down.png" style="' . $selectDataDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=data&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=data&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>".__('Graph')."</th>";
|
||||
echo "<th>".__('Raw Data')."</th>";
|
||||
echo "<th>".__('Timestamp') . ' ' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=up"><img src="images/sort_up.png" style="' . $selectTimestampUp . '" alt="up" /></a>' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=down"><img src="images/sort_down.png" style="' . $selectTimestampDown . '" alt="down" /></a>';
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTimestampUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="' . $url . '&sort_field=timestamp&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTimestampDown, "alt" => "down")) . '</a>';
|
||||
echo "</th>";
|
||||
$texto=''; $last_modulegroup = 0;
|
||||
$color = 1;
|
||||
|
@ -212,10 +212,10 @@ foreach ($modules as $module) {
|
|||
// Has flag = 0
|
||||
if ($write && $module["id_modulo"] > 1 && $module["id_tipo_modulo"] < 100) {
|
||||
if ($module["flag"] == 0) {
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&flag=1&tab=data&refr=60'><img src='images/target.png' border='0' alt='' /></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&flag=1&tab=data&refr=60'>" . print_image('images/target.png', true, array("border" => '0', "alt" => "")) . "</a>";
|
||||
}
|
||||
else {
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&tab=data&refr=60'><img src='images/refresh.png' border='0' alt='' /></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$module["id_agente_modulo"]."&tab=data&refr=60'>" . print_image('images/refresh.png', true, array("border" => '0', "alt" => '')) . "</a>";
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
|
@ -344,16 +344,16 @@ foreach ($modules as $module) {
|
|||
echo "<td class=".$tdcolor." width='78'>";
|
||||
$graph_label = output_clean_strict ($module["nombre"]);
|
||||
|
||||
echo "<a href='javascript:winopeng(\"operation/agentes/stat_win.php?type=$graph_type&period=2419200&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=180000\", \"month_".$win_handle."\")'><img src='images/grafica_m.png' border='0' alt='' /></a> ";
|
||||
echo "<a href='javascript:winopeng(\"operation/agentes/stat_win.php?type=$graph_type&period=2419200&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=180000\", \"month_".$win_handle."\")'>" . print_image('images/grafica_m.png' , true, array("border" => '0', "alt" => '')) . "</a> ";
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=604800&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=6000','week_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_w.png" border="0" alt="" /></a> ';
|
||||
echo '<a href="javascript:'.$link.'">' . print_image("images/grafica_w.png", true, array("border" => '0', "alt" => '')) . '</a> ';
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=600','day_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_d.png" border="0" alt="" /></a> ';
|
||||
echo '<a href="javascript:'.$link.'">' . print_image("images/grafica_d.png", true, array("border" => '0', "alt" => '')) . '</a> ';
|
||||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=3600&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=60','hour_".$win_handle."')";
|
||||
echo '<a href="javascript:'.$link.'"><img src="images/grafica_h.png" border="0" alt="" /></a>';
|
||||
echo '<a href="javascript:'.$link.'">' . print_image("images/grafica_h.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
||||
|
||||
}
|
||||
|
||||
|
@ -361,9 +361,9 @@ foreach ($modules as $module) {
|
|||
if ($module['history_data'] == 1) {
|
||||
// RAW Table data
|
||||
echo "<td class=".$tdcolor." width=70>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=2592000&id=".$module["id_agente_modulo"]."'><img src='images/data_m.png'border='0' alt='' /></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=604800&id=".$module["id_agente_modulo"]."'><img src='images/data_w.png'border='0' alt='' /></a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'><img src='images/data_d.png'border='0' alt='' /></a>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=2592000&id=".$module["id_agente_modulo"]."'>" . print_image('images/data_m.png', true, array("border" => '0', "alt" => '')) . "</a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=604800&id=".$module["id_agente_modulo"]."'>" . print_image('images/data_w.png', true, array("border" => '0', "alt" => '')) . "</a> ";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'>" . print_image('images/data_d.png', true, array("border" => '0', "alt" => '')) . "</a>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=".$tdcolor."></td>";
|
||||
|
|
|
@ -119,7 +119,7 @@ foreach ($groups as $id_group => $group_name) {
|
|||
echo "</td>";
|
||||
echo "<td style='text-align: center; vertica-align: middle;'>";
|
||||
if (give_acl ($config['id_user'], $id_group, "AW")) {
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/group_view&update_netgroup='.$id_group.'"><img src="images/target.png" border="0"></a>';
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/group_view&update_netgroup='.$id_group.'">' . print_image("images/target.png", true, array("border" => '0')) . '</a>';
|
||||
}
|
||||
echo "</td>";
|
||||
|
||||
|
|
|
@ -294,7 +294,7 @@ foreach ($result as $row) {
|
|||
$data[1] .= substr ($row["agent_name"], 0, 25);
|
||||
$data[1] .= '</a></strong>';
|
||||
|
||||
$data[2] = '<img src="images/'.show_icon_type ($row["module_type"]).'" border="0" />';
|
||||
$data[2] = print_image("images/" . show_icon_type ($row["module_type"]), true);
|
||||
|
||||
$data[3] = mb_strimwidth (safe_output($row["module_name"]), 0, 30);
|
||||
|
||||
|
@ -340,8 +340,8 @@ foreach ($result as $row) {
|
|||
|
||||
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$row["id_agente_modulo"]."&label=".$row["module_name"]."&refresh=600','day_".$win_handle."')";
|
||||
|
||||
$data[6] = '<a href="javascript:'.$link.'"><img src="images/chart_curve.png" border="0" alt="" /></a>';
|
||||
$data[6] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&id=".$row["id_agente_modulo"]."'><img src='images/binary.png' border='0' alt='' /></a>";
|
||||
$data[6] = '<a href="javascript:'.$link.'">' . print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
||||
$data[6] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&id=".$row["id_agente_modulo"]."'>" . print_image('images/binary.png', true, array("style" => '0', "alt" => '')) . "</a>";
|
||||
}
|
||||
|
||||
if (is_numeric($row["datos"]))
|
||||
|
|
|
@ -169,7 +169,7 @@ if (is_ajax ()) {
|
|||
echo '<h3>'.$agent['nombre'].'</h3>';
|
||||
echo '<strong>'.__('Main IP').':</strong> '.$agent['direccion'].'<br />';
|
||||
echo '<strong>'.__('Group').':</strong> ';
|
||||
echo '<img src="images/groups_small/'.get_group_icon ($agent['id_grupo']).'.png" /> ';
|
||||
echo print_image('images/groups_small/'.get_group_icon ($agent['id_grupo']).'.png', true);
|
||||
echo get_group_name ($agent['id_grupo']).'<br />';
|
||||
|
||||
echo '<strong>'.__('Last contact').':</strong> '.human_time_comparation($agent['ultimo_contacto']).'<br />';
|
||||
|
@ -246,12 +246,12 @@ if (is_ajax ()) {
|
|||
$id_module = (int) get_parameter ('id_module');
|
||||
$module = get_db_row ('tagente_modulo', 'id_agente_modulo', $id_module);
|
||||
echo '<h3>';
|
||||
echo '<img src="images/brick.png" /> ';
|
||||
echo print_image("images/brick.png", true) . ' ';
|
||||
echo printTruncateText($module['nombre'],25,false,true,false).'</h3>';
|
||||
echo '<strong>'.__('Type').':</strong> ';
|
||||
$agentmoduletype = get_agentmodule_type ($module['id_agente_modulo']);
|
||||
echo get_moduletype_name ($agentmoduletype).' ';
|
||||
echo '<img src="images/'.get_module_type_icon ($agentmoduletype).'" /> <br />';
|
||||
echo print_image("images/" . get_module_type_icon ($agentmoduletype), true) . '<br />';
|
||||
echo '<strong>'.__('Module group').':</strong> ';
|
||||
$modulegroup = get_modulegroup_name (get_agentmodule_modulegroup ($module['id_agente_modulo']));
|
||||
if($modulegroup === false){
|
||||
|
@ -269,7 +269,7 @@ if (is_ajax ()) {
|
|||
if ($get_group_status_tooltip) {
|
||||
$id_group = (int) get_parameter ('id_group');
|
||||
$group = get_db_row ('tgrupo', 'id_grupo', $id_group);
|
||||
echo '<h3><img src="images/groups_small/'.get_group_icon ($group['id_grupo']).'.png" /> ';
|
||||
echo '<h3>' . print_image("images/groups_small/" . get_group_icon ($group['id_grupo']) . ".png", true);
|
||||
echo printTruncateText($group['nombre'],25,false,true,false).'</h3>';
|
||||
echo '<strong>'.__('Parent').':</strong> ';
|
||||
if($group['parent'] == 0) {
|
||||
|
@ -277,7 +277,7 @@ if (is_ajax ()) {
|
|||
}
|
||||
else {
|
||||
$group_parent = get_db_row ('tgrupo', 'id_grupo', $group['parent']);
|
||||
echo '<img src="images/groups_small/'.get_group_icon ($group['parent']).'.png" /> ';
|
||||
echo print_image("images/groups_small/" . get_group_icon ($group['parent']) . ".png", true);
|
||||
echo $group_parent['nombre'].'<br />';
|
||||
}
|
||||
echo '<strong>'.__('Sons').':</strong> ';
|
||||
|
@ -288,7 +288,7 @@ if (is_ajax ()) {
|
|||
else{
|
||||
echo '<br /><br />';
|
||||
foreach($groups_sons as $group_son) {
|
||||
echo '<img src="images/groups_small/'.get_group_icon ($group_son['id_grupo']).'.png" /> ';
|
||||
echo print_image("images/groups_small/" . get_group_icon ($group_son['id_grupo']) . ".png", true);
|
||||
echo $group_son['nombre'].'<br />';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/
|
|||
echo "</head>";
|
||||
echo "<body>";
|
||||
|
||||
echo "<h1 style='background: #66AA44; color: #fff;'><img src='../../images/pandora_header_logo.png'/>" . __("Sound Events") . "</h1>";
|
||||
echo "<h1 style='background: #66AA44; color: #fff;'>" . print_image('images/pandora_header_logo.png', true) . __("Sound Events") . "</h1>";
|
||||
|
||||
$table = null;
|
||||
$table->width = '100%';
|
||||
|
@ -78,8 +78,8 @@ $table->data[1][1] = print_checkbox('alert_fired', 'alert_fired', true, true, fa
|
|||
print_checkbox('critical', 'critical', true, true, false, 'changeType();') . __('Monitor critical') . '<br />' .
|
||||
print_checkbox('warning', 'warning', true, true, false, 'changeType();') . __('Monitor warning') . '<br />' .
|
||||
$table->data[2][0] = '';
|
||||
$table->data[2][1] = '<a href="javascript: toggleButton();"><img id="button" src="../../images/play.button.png" /></a>';
|
||||
$table->data[2][1] .= '<a href="javascript: ok();"><img style="margin-left: 10px;" src="../../images/ok.button.png" /></a>';
|
||||
$table->data[2][1] = '<a href="javascript: toggleButton();">' . print_image("images/play.button.png", true, array("id" => "button")) . '</a>';
|
||||
$table->data[2][1] .= '<a href="javascript: ok();">' . print_image("images/ok.button.png", true, array("style" => "margin-left: 10px;")) . '</a>';
|
||||
|
||||
print_table($table);
|
||||
?>
|
||||
|
|
|
@ -97,7 +97,7 @@ else {
|
|||
if (check_acl ($config["id_user"], $map['group_id'], "IW"))
|
||||
$buttons [] = '<a href="index.php?sec=godgismaps&sec2=godmode/gis_maps/configure_gis_map&action=edit_map&map_id='. $idMap.'">'.print_image ("images/setup.png", true, array ("title" => __('Setup'))).'</a>';
|
||||
|
||||
$buttonsString = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3"><img src="images/bricks.png" class="top" border="0"> Agent - test_gis1</a></li></ul></div><div id="menu_tab"><ul class="mn"><li class="nomn"><a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=3"><img src="images/setup.png" class="top" title="Manage" border="0" width="16"> </a></li><li class="nomn_high"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3"><img src="images/monitor.png" class="top" title="Main" border="0"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3&tab=data"><img src="images/lightbulb.png" class="top" title="Data" border="0"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3&tab=alert"><img src="images/bell.png" class="top" title="Alerts" border="0"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=sla&id_agente=3"><img src="images/images.png" class="top" title="S.L.A." border="0"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=2"><img src="images/agents_group.png" class="top" title="Group" border="0"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=inventory&id_agente=3"><img src="images/page_white_text.png" class="top" title="Inventory" border="0" width="16"> </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente=3"><img src="images/world.png" class="top" title="GIS data" border="0"> </a>';
|
||||
$buttonsString = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3">' . print_image("images/bricks.png", true, array("class" => "top", "border" => '0')) . ' Agent - test_gis1</a></li></ul></div><div id="menu_tab"><ul class="mn"><li class="nomn"><a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=3">' . print_image("images/setup.png", true, array("class" => "top", "title" => "Manage", "border" => "0", "width" => "16", "title" => "Manage")) . ' </a></li><li class="nomn_high"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3">' . print_image("images/monitor.png", true, array("class" => "top", "title" => "Main", "border" => "0")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3&tab=data">' . print_image("images/lightbulb.png", true, array("class" => "top", "title" => "Data", "border" => "0")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=3&tab=alert">' . print_image("images/bell.png", true, array("class" => "top", "title" => "Alerts", "border" => "0")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=sla&id_agente=3">' . print_image("images/images.png", true, array("class" => "top", "title" => "S.L.A.", "border" => "0")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=2">' . print_image("images/agents_group.png", true, array("class" => "top", "title" => "Group", "border" => "0")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=inventory&id_agente=3">' . print_image("images/page_white_text.png", true, array("class" => "top", "title" => "Inventory", "border" => "0", "width" => "16")) . ' </a></li><li class="nomn"><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente=3">' . print_image("images/world.png", array("class" => "top", "title" => "GIS data", "border" => "0")) . ' </a>';
|
||||
|
||||
$times = array(
|
||||
5 => 5 . ' ' . __('seconds'),
|
||||
|
|
|
@ -329,7 +329,7 @@ if (isset ($id_inc)) {
|
|||
|
||||
foreach ($result as $row) {
|
||||
$data = array ();
|
||||
$data[0] = '<img src="images/page_white_text.png" border="0" />';
|
||||
$data[0] = print_image("images/page_white_text.png", true, array("border" => '0'));
|
||||
$data[1] = __('Author').': '.print_username ($row["id_usuario"], true).' ('.print_timestamp ($row["timestamp"], true).')';
|
||||
array_push ($table->data, $data);
|
||||
|
||||
|
@ -373,7 +373,7 @@ if (isset ($id_inc)) {
|
|||
$table->align[3] = "center";
|
||||
|
||||
foreach ($result as $row) {
|
||||
$data[0] = '<img src="images/disk.png" border="0" align="top" /> <a target="_new" href="attachment/pand'.$row["id_attachment"].'_'.$row["filename"].'"><b>'.$row["filename"].'</b></a>';
|
||||
$data[0] = print_image("images/disk.png", true, array("border" => '0', "align" => "top")) . ' <a target="_new" href="attachment/pand'.$row["id_attachment"].'_'.$row["filename"].'"><b>'.$row["filename"].'</b></a>';
|
||||
$data[1] = $row["description"];
|
||||
$data[2] = format_for_graph ($row["size"])."B";
|
||||
if ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $config["id_user"])) {
|
||||
|
|
|
@ -57,9 +57,9 @@ foreach ($reports as $report) {
|
|||
|
||||
$data[0] = $report['name'];
|
||||
$data[1] = $report['description'];
|
||||
$data[2] = '<a href="index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$report['id_report'].'">
|
||||
<img src="images/reporting.png" /></a>';
|
||||
$data[3] = '<a href="ajax.php?page=operation/reporting/reporting_xml&id='.$report['id_report'].'"><img src="images/database_lightning.png" /></a>'; //I chose ajax.php because it's supposed to give XML anyway
|
||||
$data[2] = '<a href="index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id='.$report['id_report'].'">' .
|
||||
print_image("images/reporting.png", true) . '</a>';
|
||||
$data[3] = '<a href="ajax.php?page=operation/reporting/reporting_xml&id='.$report['id_report'].'">' . print_image("images/database_lightning.png", true) . '</a>'; //I chose ajax.php because it's supposed to give XML anyway
|
||||
|
||||
enterprise_hook ('load_custom_reporting_2');
|
||||
array_push ($table->data, $data);
|
||||
|
|
|
@ -73,7 +73,7 @@ $table->style[0] = 'font-weight: bold';
|
|||
$table->size = array ();
|
||||
$table->size[0] = '50px';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = '<img src="images/reporting.png" width="32" height="32" />';
|
||||
$table->data[0][0] = print_image("images/reporting.png", true, array("width" => "32", "height" => "32"));
|
||||
if ($report['description'] != '') {
|
||||
$table->data[0][1] = $report['description'];
|
||||
} else {
|
||||
|
@ -90,7 +90,7 @@ print_input_hidden ('id_report', $id_report);
|
|||
echo '</form>';
|
||||
|
||||
echo '<div id="loading">';
|
||||
echo '<img src="images/wait.gif" border="0" /><br />';
|
||||
echo print_image("images/wait.gif", true, array("border" => '0'));
|
||||
echo '<strong>'.__('Loading').'...</strong>';
|
||||
echo '</div>';
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue