".$lang_label["alert_listing"]."".$lang_label["help"].""; $id_agente = $_GET["id_agente"]; $query_gen='SELECT talerta_agente_modulo.id_alerta, talerta_agente_modulo.descripcion, talerta_agente_modulo.last_fired, talerta_agente_modulo.times_fired, tagente_modulo.nombre, talerta_agente_modulo.dis_max, talerta_agente_modulo.dis_min, talerta_agente_modulo.max_alerts, talerta_agente_modulo.time_threshold, talerta_agente_modulo.min_alerts, talerta_agente_modulo.id_agente_modulo, tagente_modulo.id_agente_modulo FROM tagente_modulo, talerta_agente_modulo WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = talerta_agente_modulo.id_agente_modulo order by tagente_modulo.nombre'; $result_gen=mysql_query($query_gen); if (mysql_num_rows ($result_gen)) { echo "
".$lang_label["type"]." | ".$lang_label["name"]." | ".$lang_label["description"]." | ".$lang_label["min_max"]." | ".$lang_label["time_threshold"]." | ".$lang_label["last_fired"]." | ".$lang_label["times_fired"]." | ".$lang_label["status"]." | "; $color=1; while ($data=mysql_fetch_array($result_gen)){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } echo "||
---|---|---|---|---|---|---|---|---|---|
".dame_nombre_alerta($data["id_alerta"]); echo " | ".$data["nombre"]; echo " | ".$data["descripcion"]; echo " | ".$data["dis_max"]."/".$data["dis_min"]; echo " | ".$data["time_threshold"]; if ($data["last_fired"] == "0000-00-00 00:00:00") { echo " | ".$lang_label["never"]; } else { echo " | ".$data["last_fired"]; } echo " | ".$data["times_fired"]; if ($data["times_fired"] <> 0) echo " | "; else echo " | "; } echo ' |