2010-11-05 Sergio Martin <sergio.martin@artica.es>
* operation/search_agents.php: Fixed the last contact information in the agents search view for bug 3103501 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2e59d73a5c
commit
4829e73c5f
pandora_console
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-05 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* operation/search_agents.php: Fixed the last contact
|
||||||
|
information in the agents search view for bug 3103501
|
||||||
|
|
||||||
2010-11-05 Sergio Martin <sergio.martin@artica.es>
|
2010-11-05 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/javascript/pandora_modules.js: Changed the enable
|
* include/javascript/pandora_modules.js: Changed the enable
|
||||||
|
|
|
@ -105,7 +105,7 @@ switch ($sortField) {
|
||||||
|
|
||||||
$agents = false;
|
$agents = false;
|
||||||
if ($searchAgents) {
|
if ($searchAgents) {
|
||||||
$sql = "SELECT id_agente, tagente.nombre, tagente.id_os, tagente.intervalo, tagente.id_grupo, tagente.disabled
|
$sql = "SELECT id_agente, tagente.ultimo_contacto, tagente.nombre, tagente.id_os, tagente.intervalo, tagente.id_grupo, tagente.disabled
|
||||||
FROM tagente
|
FROM tagente
|
||||||
INNER JOIN tgrupo
|
INNER JOIN tgrupo
|
||||||
ON tgrupo.id_grupo = tagente.id_grupo
|
ON tgrupo.id_grupo = tagente.id_grupo
|
||||||
|
@ -206,7 +206,12 @@ else {
|
||||||
else {
|
else {
|
||||||
$cellName = print_agent_name ($agent["id_agente"], true, "upper");
|
$cellName = print_agent_name ($agent["id_agente"], true, "upper");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$last_time = strtotime ($agent["ultimo_contacto"]);
|
||||||
|
$now = time ();
|
||||||
|
$diferencia = $now - $last_time;
|
||||||
|
$time = print_timestamp ($last_time, true);
|
||||||
|
|
||||||
array_push($table->data, array(
|
array_push($table->data, array(
|
||||||
$cellName,
|
$cellName,
|
||||||
print_os_icon ($agent["id_os"], false, true),
|
print_os_icon ($agent["id_os"], false, true),
|
||||||
|
@ -215,7 +220,7 @@ else {
|
||||||
$modulesCell,
|
$modulesCell,
|
||||||
$agent_info["status_img"],
|
$agent_info["status_img"],
|
||||||
$agent_info["alert_img"],
|
$agent_info["alert_img"],
|
||||||
print_timestamp ($agent_info["last_contact"], true)));
|
'<b><span style="color: #ff0000">'.$time.'</span></b>'));
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br />";pagination ($totalAgents);
|
echo "<br />";pagination ($totalAgents);
|
||||||
|
|
Loading…
Reference in New Issue