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
This commit is contained in:
mdtrooper 2009-07-22 16:21:21 +00:00
parent 946f547e39
commit edfa0eae36
2 changed files with 20 additions and 10 deletions

View File

@ -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

View File

@ -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);
}