'".$periodo."' ORDER BY timestamp DESC"; } else { $sql1="SELECT * FROM tagente_datos WHERE id_agente_modulo = ". $id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."' ORDER BY timestamp DESC"; } $result=mysql_query($sql1); $nombre_agente = dame_nombre_agente_agentemodulo($id_agente_modulo); $nombre_modulo = dame_nombre_modulo_agentemodulo($id_agente_modulo); echo "
".$lang_label["timestamp"]." | "; echo "".$lang_label["data"]." | "; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } echo "|
---|---|---|
".$row["timestamp"]; echo " | "; if (is_numeric($row["datos"])) { $mytempdata = fmod($row["datos"], 1); if ($mytempdata == 0) $myvalue = intval($row["datos"]); else $myvalue = $row["datos"]; echo format_for_graph($myvalue ); } else echo salida_limpia($row["datos"]); } echo " | |