%@LANGUAGE="VBSCRIPT"%> <% Dim ents__idcf ents__idcf = "-1" If (request("id") <> "") Then ents__idcf = request("id") End If %> <% Dim ents Dim ents_numRows Set ents = Server.CreateObject("ADODB.Recordset") ents.ActiveConnection = MM_maq_STRING ents.Source = "SELECT CLAVE, DESCR FROM COTDET WHERE IDMAQUINA=" + strreplace(ents__idcf, "'", "''") + "" ents.CursorType = 0 ents.CursorLocation = 2 ents.LockType = 1 ents.Open() ents_numRows = 0 %> <% Dim eq__vidma eq__vidma = "-1" If (request("id") <> "") Then eq__vidma = request("id") End If %> <% Dim eq Dim eq_numRows Set eq = Server.CreateObject("ADODB.Recordset") eq.ActiveConnection = MM_maq_STRING eq.Source = "SELECT FECHA, CLAVE, MAQUINA, DESCR FROM MAQUINA WHERE IDMAQUINA=" + strreplace(eq__vidma, "'", "''") + "" eq.CursorType = 0 eq.CursorLocation = 2 eq.LockType = 1 eq.Open() eq_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 30 Repeat1__index = 0 ents_numRows = ents_numRows + Repeat1__numRows %> <% dim SZ() dim DT() dim head() dim cpos() KEYFL="" imgfld="STATUS" oclt="" redim SZ(ents.Fields.Count) redim DT(ents.Fields.Count) redim head(ents.Fields.Count) redim cpos(ents.Fields.Count) for n=0 to ents.Fields.Count-1 SZ(n)= cstr(ents.Fields.Item(n).DefinedSize ) DT(n)= cstr(ents.Fields.Item(n).Type ) head(n)=cstr(ents.Fields.Item(n).name) cpos(n)=cstr(ents.Fields.Item(n).name) next %> <%rem response.Redirect("es.asp?cmd="+cpos(4))%>