
28/02/2006, 13:06
|
| | Fecha de Ingreso: febrero-2006
Mensajes: 98
Antigüedad: 19 años, 2 meses Puntos: 0 | |
aki les dejo el codigo de mi pag:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Consulta Abierta</title>
<style type="text/css">
<!--
.style1 {
color: #07488F;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: xx-large;
}
.style2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style3 { font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style8 {font-size: xx-large}
-->
</style>
</head>
<body>
<!--#include file="../misitio/adovbs.inc" -->
<form>
<%
Set connection=Server.CreateObject("ADODB.Connection")
set solic = CreateObject("ADODB.Recordset")
connection.ConnectionString="Driver={SQL Server};Server=192.168.xx.xx;User Id=xx; password='xx'"
connection.Mode=3
connection.opensql = " trabajo.dbo.seleccionar_solicitud'" & request.form("tipo") & "'" & request.form("estado") & "''"
solic.Open sql, connection,1,2 tipo = "C1"'consulta
estado = "A"'abierta%>
<div align="center">
<p> </p>
<p><img src="file:///C|/Documents%20and%20Settings/debora/Mis%20documentos/Mis%20imágenes/dddddddd.JPG" width="491" height="84">
</p>
<p class="style1">
<span class="style8">Consultas Abiertas </span></p>
<table width="522" border="1" align="center">
<tr>
<td width="107" bgcolor="#C6E0FD"><span class="style2">Nro Solicitud</span></td>
<td width="171" bgcolor="#C6E0FD"><span class="style2">Asunto</span></td>
<td width="90" bgcolor="#C6E0FD"><span class="style2">Urgencia</span></td>
<td width="126" bgcolor="#C6E0FD"><span class="style2">Fecha</span></td>
</tr>
</table>
<%do while not solic.eof%>
<table width="522" border="1" align="center" bordercolor="#CCCCFF">
<tr bordercolor="#CCCCFF" bgcolor="#CCCCFF">
<td width="107" bgcolor="#A5CDFA"><% response.write solic("nro_solicitud")%></td>
<td width="171" bgcolor="#A5CDFA"><a href="solicitud_abierta.asp?id_solic=<%solic("nro_ solicitud")%>">
<%solic("asunto")%></a></td>
<td width="90" bgcolor="#A5CDFA"><%response.write solic("urgencia")%></td>
<td width="126" bgcolor="#A5CDFA"><%response.write solic("ult_fecha_mod")%></td>
</tr>
</table>
<% solic.movenext
loop%>
<p class="style1"> </p>
<p class="style1"> </p>
<table width="200" border="0">
<tr>
<td><div align="center">
<input name="menu" type="button" onclick="location.href = 'menu_principal.asp'" class="style3" value=" Menú ">
</div></td>
</tr>
</table>
<p class="style1"> </p>
</div>
</form>
</body>
</html>y el del procedimeinto almacenado:
CREATE PROCEDURE Seleccionar_solicitud (
@tipo char(2), @estado char(1) ) as
select * from trabajo.dbo.solicitud
where tipo_solic = @tipo and estado = @estado
order by ult_fecha_mod
GO |