<% @Language=VBScript%>
<% Option Explicit %>
<%
Dim ObjConn
Dim ObjRS
Dim SQL
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Pagina nueva 1</title>
</head>
<body>
<%
SQL = "SELECT * FROM prueba"
Set ObjConn = Server.CreateObject("ADODB.Connection")
Set ObjRS = Server.CreateObject("ADODB.RecordSet")
ObjConn.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("prueba.mdb"))
ObjRS.Open SQL, ObjConn, 3, 3%>
<form method="POST" action="borrar.asp">
<table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolor="#464646" style="font-family: Verdana; font-size: 8 pt">
<TR>
<td width="6%" bgcolor="#CCCCCC" style="font-weight: bold" align="center"> </TD>
<td width="3%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">ID</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">Nombre</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">Apellido</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">DNI</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">E-Mail</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">Usuario</TD>
<td width="11%" bgcolor="#CCCCCC" style="font-weight: bold" align="center">Contraseña</TD>
</TR>
<%Do While NOT ObjRS.EOF%>
<TR>
<td width="69%" bgcolor="#EEEEEE" colspan="8"></TD>
</TR>
<TR>
<TD width="6%" bgcolor="#EEEEEE" align="center">
<p><input type="checkbox" name="<%=ObjRS("id")%>" value="ON"></p>
</TD>
<td width="3%" bgcolor="#EEEEEE" style="font-weight: bold" align="center"><%=ObjRS("id")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("nombre")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("apellido")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("dni")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("email")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("usuario")%></TD>
<td width="10%" bgcolor="#EEEEEE" align="center"><%=ObjRS("contraseña")%></TD>
</TR>
<%ObjRS.MoveNext%>
<%
Loop
ObjRS.Close
ObjConn.Close
Set ObjRS = Nothing
Set ObjConn = Nothing
%>
<TR>
<td width="69%" bgcolor="#EEEEEE" colspan="8"></TD>
</TR>
<TR>
<td width="69%" bgcolor="#EEEEEE" colspan="8" align="center"><input type="submit" value="Borrar"></TD>
</td>
</TR>
</TB>
</table>
</form>
</body>