diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 32143793ea..b91eedbf7e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2011-02-07 Juan Manuel Ramon + + * extensions/update_manager.php + extensions/update_manager/main.php + operation/search_modules.php + operation/search_agents.php + operation/gis_maps/render_view.php: Changed the way of print images from " * include/functions_menu.php diff --git a/pandora_console/extensions/update_manager.php b/pandora_console/extensions/update_manager.php index 75664d5c57..5b988db6c5 100644 --- a/pandora_console/extensions/update_manager.php +++ b/pandora_console/extensions/update_manager.php @@ -105,7 +105,7 @@ function pandora_update_manager_login () { if (is_object ($package)) { echo '
'; - echo 'info '; + echo print_image("images/information.png", true, array("alt" => 'info')); echo __('There\'s a new update for Pandora'); echo '. '; echo __('More info'); diff --git a/pandora_console/extensions/update_manager/main.php b/pandora_console/extensions/update_manager/main.php index bd7808f287..c5ce77d154 100644 --- a/pandora_console/extensions/update_manager/main.php +++ b/pandora_console/extensions/update_manager/main.php @@ -26,7 +26,7 @@ print_page_header (__('Update manager'), "images/extensions.png", false, "", fal if ($settings->customer_key == FREE_USER) { echo '
'; - echo ' '; + echo print_image("images/information.png", true) . ' '; /* Translators: Do not translade Update Manager, it's the name of the program */ echo __('The new Update Manager client is shipped with Pandora FMS 3.0. It helps system administrators to update their Pandora FMS automatically, since the Update Manager does the task of getting new modules, new plugins and new features (even full migrations tools for future versions) automatically.'); echo '

'; diff --git a/pandora_console/operation/gis_maps/render_view.php b/pandora_console/operation/gis_maps/render_view.php index b84a200779..fd7c4e3304 100644 --- a/pandora_console/operation/gis_maps/render_view.php +++ b/pandora_console/operation/gis_maps/render_view.php @@ -116,13 +116,13 @@ $buttons[] = ' ' . __('Refresh: ') . print_select($times, 'refresh_time', 6 $buttons[] = '' . __('All') . ''; $buttons[] = '

' . - '
'; + print_image("images/status_sets/default/agent_critical_ball.png", true, array("title" => __('Critical'))) . '
'; $buttons[] = '
' . - '
'; + print_image("images/status_sets/default/agent_warning_ball.png", true, array("title" => __('Warning'))) . '
'; $buttons[] = '
' . - '
'; + print_image("images/status_sets/default/agent_ok_ball.png", true, array("title" => __('Ok'))) . ''; $buttons[] = '
' . - '
'; + print_image("images/status_sets/default/agent_no_monitors_ball.png", true, array("title" => __('Other'))) . ''; $buttons[] = __('Show agents by state: '); diff --git a/pandora_console/operation/search_agents.php b/pandora_console/operation/search_agents.php index 16a490f340..3ab5733e60 100755 --- a/pandora_console/operation/search_agents.php +++ b/pandora_console/operation/search_agents.php @@ -164,25 +164,25 @@ else { $table->width = "98%"; $table->class = "databox"; - $table->head = array (); - $table->head[0] = __('Agent') . ' ' . - '' . - ''; - $table->head[1] = __('OS'). ' ' . - '' . - ''; - $table->head[2] = __('Interval'). ' ' . - '' . - ''; - $table->head[3] = __('Group'). ' ' . - '' . - ''; + $table->head = array (); + $table->head[0] = __('Agent') . ' ' . + '' . print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '' . + '' . print_image("images/sort_down.png", true, array("style" => $selectNameDown)) . ''; + $table->head[1] = __('OS'). ' ' . + '' . print_image("images/sort_up.png", true, array("style" => $selectOsUp)) . '' . + '' . print_image("images/sort_down.png", true, array("style" => $selectOsDown)) . ''; + $table->head[2] = __('Interval'). ' ' . + '' . print_image("images/sort_up.png", true, array("style" => $selectIntervalUp)) . '' . + '' . print_image("images/sort_down.png", true, array("style" => $selectIntervalDown)) . ''; + $table->head[3] = __('Group'). ' ' . + '' . print_image("images/sort_up.png", true, array("style" => $selectGroupUp)) . '' . + '' . print_image("images/sort_down.png", true, array("style" => $selectGroupDown)) . ''; $table->head[4] = __('Modules'); $table->head[5] = __('Status'); $table->head[6] = __('Alerts'); $table->head[7] = __('Last contact'). ' ' . - '' . - ''; + '' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp)) . '' . + '' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown)) . ''; $table->head[8] = ''; $table->align = array (); @@ -231,7 +231,7 @@ else { $manage_agent = ''; if (check_acl ($config['id_user'], $agent['id_grupo'], "AW")) { $manage_agent = '' . - '' . __('Manage') . ''; + print_image("images/setup.png", true, array("title" => __('Manage'), "alt" => __('Manage'))) . ''; } array_push($table->data, array( diff --git a/pandora_console/operation/search_modules.php b/pandora_console/operation/search_modules.php index 6add02014d..7373996798 100644 --- a/pandora_console/operation/search_modules.php +++ b/pandora_console/operation/search_modules.php @@ -108,17 +108,17 @@ else { $table->head[0] = __('Module') . ' ' . '' . + '&sort_field=module_name&sort=up">'. print_image("images/sort_up.png", true, array("style" => $selectModuleNameUp)) . '' . ''; + '&sort_field=module_name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectModuleNameDown)) . ''; $table->head[1] = __('Agent') . ' ' . '' . + '&sort_field=agent_name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectAgentNameUp)) . '' . ''; + '&sort_field=agent_name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectAgentNameDown)) .''; $table->head[2] = __('Type'); $table->head[3] = __('Interval'); $table->head[4] = __('Status'); @@ -187,8 +187,8 @@ else { $link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$module["module_name"]."&refresh=600','day_".$win_handle."')"; - $graphCell = ''; - $graphCell .= " "; + $graphCell = '' . print_image("images/chart_curve.png", true, array("border" => 0, "alt" => "")) . ''; + $graphCell .= " " . print_image('images/binary.png', true, array("border" => "0", "alt" => "")) . ""; } if (is_numeric($module["datos"])) @@ -221,4 +221,4 @@ else { unset($table); pagination ($totalModules); } -?> \ No newline at end of file +?>