%
Dim conR, rsR, sqlR, hayDatosR
Dim idSitioR, nombreR, urlR, descripcionR, imagenR
Dim activoC, textoC, mostrarCursos
if Request("checkLogin")="Ok" then
Dim usuarioLogin, claveLogin
usuarioLogin = Request("txtUsuarioLogin")
claveLogin = Request("txtClaveLogin")
' response.redirect ""
end if
Set conR = ObtenerConexion()
Set rsR = ObtenerRecordSet()
Set rsC = ObtenerRecordSet()
sqlR = "SELECT * FROM SitiosInteres ORDER BY nombre"
rsR.open sqlR, conR
if NOT rsR.EOF then
hayDatosR=true
end if
sqlR = "SELECT * FROM SeccionCursos WHERE IDCurso=1"
rsC.open sqlR, conR
mostrarCursos = false
if NOT rsC.EOF then
if cint(rsC("activo"))=1 then
mostrarCursos = true
textoC = trim(rsC("texto"))
TituloC = trim(rsC("titulo"))
end if
end if
Set conR = nothing
%>
|
|
<%
if mostrarCursos then
%>
 |
|
<%=TituloC%> |
|
|
|
|
<%=textoC%> |
|
|
|
|
|
 |
<%
end if
%>
<%
if hayDatosR then
%>
 |
|
Sitios de
Interés |
|
|
<%
Do while NOT rsR.EOF
url = replace(trim(rsR("url")), "http://", "")
urlR = trim(rsR("url"))
descripcionR = trim(rsR("descripcion"))
%>
|
<%=url%> |
<%=descripcionR%> |
|
|
|
<%
rsR.Movenext
Loop
%>
|
|
|
 |
<%
end if
%>
|
|
|