From 641e7945ab1659898c8298b8be29c963a0f6e804 Mon Sep 17 00:00:00 2001
From: mdtrooper <tres.14159@gmail.com>
Date: Wed, 22 Jul 2009 16:21:21 +0000
Subject: [PATCH] 2009-07-22  Miguel de Dios  <miguel.dedios@artica.es>

	* operation/agentes/tactical.php: fix bug, and now show another column
	with the type of server.
	Fixes: 2825426



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1817 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                     |  6 +++++
 .../operation/agentes/tactical.php            | 24 +++++++++++--------
 2 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index a76b6b0a30..6bd5241c94 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-22  Miguel de Dios  <miguel.dedios@artica.es>
+
+	* operation/agentes/tactical.php: fix bug, and now show another column
+	with the type of server.
+	Fixes: 2825426
+
 2009-07-22  Miguel de Dios  <miguel.dedios@artica.es>
 
 	* godmode/modules/manage_network_templates_form.php: fix bug that the column
diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php
index c67787e387..02c0b3f8e4 100644
--- a/pandora_console/operation/agentes/tactical.php
+++ b/pandora_console/operation/agentes/tactical.php
@@ -169,29 +169,33 @@ $table->titlestyle = "background-color:#799E48;";
 
 $table->head = array ();
 $table->head[0] = __('Name');
-$table->head[1] = __('Status');
-$table->head[2] = __('Load');
-$table->head[3] = __('Lag').' '.print_help_icon ("serverlag", true);
-$table->align[1] = 'center';
+$table->head[1] = __('Type');
+$table->head[2] = __('Status');
+$table->head[3] = __('Load');
+$table->head[4] = __('Lag').' '.print_help_icon ("serverlag", true);
 $table->align[2] = 'center';
-$table->align[3] = 'right';
+$table->align[3] = 'center';
+$table->align[4] = 'right';
 
 $table->data = array ();
 
 foreach ($serverinfo as $server) {
 	$data = array ();
 	$data[0] = $server["name"];
-
+	$data[1] = '<span style="white-space:nowrap;">'.$server["img"].'</span> ('.ucfirst($server["type"]).")";
+	if ($server["master"] == 1)
+		$data[1] .= print_help_tip (__("This is a master server"), true);
+	
 	if ($server["status"] == 0){
-		$data[1] = print_status_image (STATUS_SERVER_DOWN, '', true);
+		$data[2] = print_status_image (STATUS_SERVER_DOWN, '', true);
 	} else {
-		$data[1] = print_status_image (STATUS_SERVER_OK, '', true);
+		$data[2] = print_status_image (STATUS_SERVER_OK, '', true);
 	}
 	
-	$data[2] = print_image ("include/fgraph.php?tipo=progress&percent=".$server["load"]."&height=20&width=80",
+	$data[3] = print_image ("include/fgraph.php?tipo=progress&percent=".$server["load"]."&height=20&width=80",
 		true, array ("title" => $server["lag_txt"]));
 	
-	$data[3] = $server["lag_txt"];
+	$data[4] = $server["lag_txt"];
 
 	array_push ($table->data, $data);
 }