 |
<%
pathR = "http://www.msportservices.com/intranet/Fotos_PublicacioWeb/fotosr/"
CuantosRegistros=0
do while not TBL.EOF and CuantosRegistros < TamPagina
if TBL("Id_Galeria")<>0 then
'if not IsNull(TBL("Id_Galeria")) or TBL("Id_Galeria")=0 then
Id_Galeria=TBL("Id_Galeria")
set TBL2=Server.CreateObject("ADODB.Recordset")
SQL2 = "SELECT Arxiu_Contacte, Arxiu_Ampliacio FROM ActWebFotos where Id_Galeria="&TBL("Id_Galeria")
On Error Resume Next
TBL2.Open SQL2, DB, 1, 2
TBL2.movefirst
Arxiu_Contacte=TBL2("Arxiu_Contacte")
Arxiu_Ampliacio=TBL2("Arxiu_Ampliacio")
TBL2.Close
Set TBL2 = Nothing
else
Id_Galeria=0
Arxiu_Contacte=""
Arxiu_Ampliacio=""
end if
%>
<% if Arxiu_Contacte<>"" then%>
width="106" height="72" border="1">
<%else%>
<%end if%>
|
<%=TBL("titular")%>
<%=TBL("data")%>. <%=TBL("subtitular")%>
[Más información]
<% if Id_Galeria<>0 then%>
[Galería de Fotos]
<%end if%>
|
<%
CuantosRegistros=CuantosRegistros+1
'Movemos el puntero al siguiente registro del Recordset
TBL.MoveNext
'Finalizamos el bucle
Loop
'Cerramos el Recordset y lo destruimos
TBL.Close
Set TBL = Nothing
'Cerramos la conexión y la destruimos
DB.Close
Set DB = Nothing
%>
|
|