<% 'argument = Request.QueryString("scelta") 'If IsNumeric(argument) Then 'argument = Cint(argument) 'else argument = 6 'End If 'If argument =0 Or argument > 9 Then 'argument = 1 'End If %> Ristorante Sibilla
Home Page Chi Siamo Le Nostre Sale Il Giardino Virtual Tour Fotogallery Escursioni Dove Siamo Contattaci

<% if argument = 3 Then %>
<% else %><% end if %>


<% catid = Request.QueryString("catid") If Len(catid) = 0 Or Not IsNumeric(catid) Then catid = 1 End If Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& Server.MapPath(db_path) %>
<% selectSQL = "SELECT * FROM tbl_categories WHERE category_id = " & catid Set selectRS = Conn.Execute(selectSQL) ' If Not selectRS.EOF Then ' Do Until selectRS.EOF %> " alt="<%=selectRS("category_name")%>"> <% ' selectRS.MoveNext ' Loop ' End If selectRS.Close Set selectRS = nothing %>
<% sql = "SELECT * FROM tbl_photos " &_ "WHERE category_id = " & catid Set Rs = Conn.Execute(sql) If Not Rs.EOF Then %> <% Riga = 5 Conta = 1 Do Until Rs.EOF %> <% Rs.MoveNext If Conta = Riga Then Response.Write " " & chr(10) & " " Conta = 1 Else Conta = Conta + 1 End If Loop %>
','finestra','left=5,top=5,width=<%=Rs("photo_width")%>,height=<%=Rs("photo_height")%>');">">
<% Else %> Non ci sono foto disponibili
<% End If Rs.Close Set Rs = nothing %> <% Conn.Close Set Conn = Nothing %>
 

Designed by FPnet
© Copyright Sibilla 2003