'".$periodo."' ORDER BY timestamp DESC"; $string_type = 1; } 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"; $string_type = 0; } $result = mysql_query ($sql1); $nombre_agente = dame_nombre_agente_agentemodulo ($id_agente_modulo); $nombre_modulo = dame_nombre_modulo_agentemodulo ($id_agente_modulo); echo "

".__('Received data from')." '$nombre_agente' / '$nombre_modulo'

"; echo "

". $et ."

"; if (mysql_num_rows ($result)) { echo ""; $color=1; echo ""; echo ""; echo ""; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } echo ""; if ((give_acl ($config['id_user'], $id_group, "AW") ==1) && ($string_type == 0)) { echo ""; echo ""; } echo "
".__('Delete')."".__('Timestamp')."".__('Data')."
"; echo ""; } else { echo ""; } echo "".$row["timestamp"].""; if (is_numeric ($row["datos"])) { echo format_for_graph ($row["datos"]); } else { echo salida_limpia ($row["datos"]); } echo "
"; } else { echo "
no_data
"; } } // --------------- // Page begin // --------------- if (isset ($_GET["tipo"]) && isset ($_GET["id"])) { $id = get_parameter ("id"); $tipo= get_parameter ("tipo"); } else { echo "

".__('There was a problem locating the source of the graph')."

"; exit; } if (isset($_GET["delete"])) { $delete =$_GET["delete"]; $sql = "DELETE FROM tagente_datos WHERE id_agente_datos = $delete"; $result = process_sql ($sql); } datos_raw ($id, $tipo); ?>