<%If Proceso="Consultar" then
Set Conn = Server.CreateObject("Adodb.Connection")
Set Rs = Server.CreateObject("Adodb.Recordset")
strConn = "dsn=coe; UID=coe; PWD=coe"
Conn.Open strConn
var_aux = "exec FOE_ConsultarNoticia " & Codigo & ";"
Rs.Open var_aux,Conn
If Rs.eof then%>
No se encontron registro...
<%Else%>
<%=MonthName(Month(Rs("Fecha")),true) & " - " & Day(Rs("Fecha")) & " de " & Year(Rs("Fecha"))%>
|
<% If Proceso="Consultar" then %>
<%End If%> |
<%=Rs("Titulo")%>
|
|
<%If Len(Rs("Imagen")) > 0 then %>
.jpg" align="left" vspace="5" hspace="5" >
<%End If %>
<%=Rs("Texto1")%>
<%=Rs("Texto2")%> <%=Rs("Texto3")%> |
<%End If
Set Rs = Nothing
Set Con = Nothing%>
<%else
Set Conn = Server.CreateObject("Adodb.Connection")
Set Rs = Server.CreateObject("Adodb.Recordset")
strConn = "dsn=coe; UID=coe; PWD=coe"
Conn.Open strConn
var_aux = "exec FOE_ListarNoticias;"
Rs.Open var_aux,Conn
If Rs.eof then%>
No se encontraron registros...
<%Else
Salir = True
indice = 1
Do While not Rs.eof and Salir
if indice < 6 then%>
|
<%=MonthName(Month(Rs("Fecha")),true) & "," & Day(Rs("Fecha")) & " de " & Year(Rs("Fecha"))%>
|
<% If Rs("Texto2") <> "" and Rs("Texto2") <> " " then %>
">
<% End If %>
" class="EnlacesNoticias"><%=Rs("Titulo")%> |
<%If Len(Rs("Imagen")) > 0 then %>
_1.jpg" align="left" vspace="5" hspace="5" >
<%End If %>
<%=Rs("Texto1")%>
|
<%Else
If Indice = 6 then%>
Noticias Anteriores
|
<% End If%>
|
<%=MonthName(Month(Rs("Fecha")),true) & "," & Day(Rs("Fecha")) & " de " & Year(Rs("Fecha"))%>
" class="EnlacesGris"><%=Rs("Titulo")%>
|
<% End If
Rs.Movenext
indice = indice + 1
if indice <= 30 then
Salir = True
Else
Salir = False
End if
loop
End If
Set Rs = Nothing
Set Con = Nothing%>
<%end if%>
|
|