| Current File : C:/Inetpub/vhosts/escuderiaarico.com/httpdocs/SEGURIDAD/control/premodificarentrada.asp |
<%
if Session("autentificado")<>true then
Response.Status="401 Prohibido"
Response.End
end if
Response.CharSet = "UTF-8"
idpet=request.form("id")
conexion="PROVIDER=SQLOLEDB;DATA SOURCE=147.135.183.197;UID=escuderiaarico;PWD=Cocococo1;DATABASE=escuderiaarico"
tabla="entradas"
' CONSULTO datso de la entrada pedida
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open(conexion)
sSQL="Select * From " & tabla & " where id='" & idpet & "'"
set RS = Conn.Execute(sSQL)
titular=rs("titular")
cabecera=rs("cabecera")
cuerpo=rs("cuerpo")
dia=rs("dia")
mes=rs("mes")
ano=rs("ano")
extra1=rs("extra1")
Conn.Close
%>
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="modificar.asp?id=<%=idpet%>">
<table border="0" width="100%" id="table1">
<tr>
<td align="left" valign="top">
<font color="#003399" face="Trebuchet MS"><font size="2">Titular:<br>
</font>
<input type="text" name="titular" size="70" style="font-family: Trebuchet MS; font-size: 10pt; font-weight: bold; color: #003399" tabindex="1" value="<%=titular%>"></font><p>
<font face="Trebuchet MS" color="#003399" size="2">Cabecera:<br>
<textarea rows="10" name="cabecera" cols="70" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399" tabindex="2"><%=cabecera%></textarea></font></td>
<td align="left" valign="top">
<font face="Trebuchet MS" color="#003399" size="2">Cuerpo:<br>
<textarea rows="20" name="cuerpo" cols="90" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399" tabindex="3"><%=cuerpo%></textarea></font><p>
<font color="#003399" face="Trebuchet MS"><font size="2">Galer a:<br>
</font>
<input type="text" name="extra1" size="70" style="font-family: Trebuchet MS; font-size: 10pt; font-weight: bold; color: #003399" tabindex="4" value="<%=extra1%>"></font></p>
<p>
<font face="Trebuchet MS" size="2" color="#003399">Dia:
<input type="text" name="dia" size="2" tabindex="5" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399" maxlength="2" value="<%=dia%>">
Mes:
<input type="text" name="mes" size="2" tabindex="6" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399" maxlength="2" value="<%=mes%>">
A o:
<input type="text" name="ano" size="2" tabindex="7" value="<%=ano%>" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399" maxlength="2">
</font>
<input type="submit" value="Enviar" name="enviar" style="font-family: Trebuchet MS; font-size: 10pt; color: #FFFFFF; font-style: italic; font-weight: bold; background-color: #003399" tabindex="8"></td>
</tr>
</table>
<p align="center"> </p>
</form>
</body>
</html>