"
if (imagen1 > "") then
info = info & ""
end if
info = info & descripcion1
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
if (destacado1 > "") then
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
" & destacado1 & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
end if
if (descripcion2 > "") then
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
if (imagen2 > "") then
info = info & ""
end if
info = info & descripcion2
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
end if
if (destacado2 > "") then
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
" & destacado2 & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
end if
if (descripcion3 > "") then
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
if (imagen3 > "") then
info = info & ""
end if
info = info & descripcion3
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
end if
info = info & "
"
info = info & "
"
info = info & "
"
info = info & "
"
end if
rs.close
else
if (tipo > 0) then
'seccion completa
end if
end if
'---------------------------------------------
'--- Obtener la fecha de edicion -------------
'---------------------------------------------
if numero > 0 then
condicion = " WHERE NUMERO = " & numero
else
condicion = " WHERE FECHA <= NOW() "
end if
sql = "SELECT * FROM TH_EDICIONES " & condicion
rs.open sql, cn, 3
if not rs.eof then
numero = rs("NUMERO")
anio = rs("ANIO")
fecha = rs("FECHA")
end if
dim dia(7)
dia(1) = "Domingo"
dia(2) = "Lunes"
dia(3) = "Martes"
dia(4) = "Miércoles"
dia(5) = "Jueves"
dia(6) = "Viernes"
dia(7) = "Sábado"
dim mes(12)
mes(1) = "Enero"
mes(2) = "Febrero"
mes(3) = "Marzo"
mes(4) = "Abril"
mes(5) = "Mayo"
mes(6) = "Junio"
mes(7) = "Julio"
mes(8) = "Agosto"
mes(9) = "Setpiembre"
mes(10) = "Octubre"
mes(11) = "Noviembre"
mes(12) = "Diciembre"
if fecha > "" then
'm_fecha = dia(weekday(fecha)) & " " & day(fecha) & " de " & mes(month(fecha)) & " de " & year(fecha)
m_fecha = mes(month(fecha)) & " de " & year(fecha)
end if
rs.close
'---------------------------------------------
'--- Cerrar las conexiones a db --------------
'---------------------------------------------
set rs = nothing
cn.close
set cn = nothing
'---------------------------------------------
'--- Funciones auxiliares --------------------
'---------------------------------------------
function FN_Reemplazar_Caracteres(cadena, OldStr, NewStr)
dim Pos1
dim Pos2
Pos1 = InStr(1, cadena, OldStr, 0)
Pos2 = Pos1 + len(OldStr)
do until Pos1 = 0
cadena = Left(cadena, Pos1 - 1) & NewStr & Mid(cadena, Pos2)
Pos1 = InStr(1, cadena, OldStr, Busqueda)
Pos2 = Pos1 + len(OldStr)
loop
FN_Reemplazar_Caracteres = cadena
end function
%>
The Howl