mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed module proc data in tree view(Now respect module types). Ticket #2713
This commit is contained in:
parent
e30c210fd6
commit
6e60292673
@ -168,17 +168,26 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head =
|
|||||||
// Data
|
// Data
|
||||||
$last_data = db_get_row_filter ('tagente_estado', array('id_agente_modulo' => $module['id_agente_modulo'], 'order' => array('field' => 'id_agente_estado', 'order' => 'DESC')));
|
$last_data = db_get_row_filter ('tagente_estado', array('id_agente_modulo' => $module['id_agente_modulo'], 'order' => array('field' => 'id_agente_estado', 'order' => 'DESC')));
|
||||||
if ($config["render_proc"]) {
|
if ($config["render_proc"]) {
|
||||||
if (is_numeric($last_data["datos"]) && $last_data["datos"] == 1) {
|
switch($module["id_tipo_modulo"]) {
|
||||||
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . $config["render_proc_ok"] . "</span>";
|
case 2:
|
||||||
}
|
case 6:
|
||||||
else if (is_numeric($last_data["datos"]) && $last_data["datos"] == 0){
|
case 9:
|
||||||
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . $config["render_proc_fail"] . "</span>";
|
case 18:
|
||||||
}
|
case 21:
|
||||||
else {
|
case 31:
|
||||||
if (is_numeric($last_data["datos"]))
|
if (is_numeric($last_data["datos"]) && $last_data["datos"] >= 1) {
|
||||||
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . format_numeric($last_data["datos"]) . "</span>";
|
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . $config["render_proc_ok"] . "</span>";
|
||||||
else
|
}
|
||||||
$data = "<span title='" . $last_data["datos"] . "' style='white-space: nowrap;'>" . substr(io_safe_output($last_data['datos']),0,12) . "</span>";
|
else {
|
||||||
|
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . $config["render_proc_fail"] . "</span>";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (is_numeric($last_data["datos"]))
|
||||||
|
$data = "<span style='height: 20px; display: inline-table; vertical-align: top;'>" . format_numeric($last_data["datos"]) . "</span>";
|
||||||
|
else
|
||||||
|
$data = "<span title='" . $last_data["datos"] . "' style='white-space: nowrap;'>" . substr(io_safe_output($last_data['datos']),0,12) . "</span>";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user