<%@LANGUAGE="VBSCRIPT"%> <% Dim foto__MMColParam foto__MMColParam = "22" If (Request.QueryString("IdGalleria") <> "") Then foto__MMColParam = Request.QueryString("IdGalleria") End If %> <% Dim foto Dim foto_cmd Dim foto_numRows Set foto_cmd = Server.CreateObject ("ADODB.Command") foto_cmd.ActiveConnection = MM_amici_STRING foto_cmd.CommandText = "SELECT * FROM fotopergallerie WHERE IdGalleria = ?" foto_cmd.Prepared = true foto_cmd.Parameters.Append foto_cmd.CreateParameter("param1", 5, 1, -1, foto__MMColParam) ' adDouble Set foto = foto_cmd.Execute foto_numRows = 0 %> <% Dim gallerie__MMColParam gallerie__MMColParam = "22" If (Request("MM_EmptyValue") <> "") Then gallerie__MMColParam = Request("MM_EmptyValue") End If %> <% Dim gallerie Dim gallerie_cmd Dim gallerie_numRows Set gallerie_cmd = Server.CreateObject ("ADODB.Command") gallerie_cmd.ActiveConnection = MM_amici_STRING gallerie_cmd.CommandText = "SELECT * FROM [gallerie Query] WHERE IdGalleria >= ?" gallerie_cmd.Prepared = true gallerie_cmd.Parameters.Append gallerie_cmd.CreateParameter("param1", 5, 1, -1, gallerie__MMColParam) ' adDouble Set gallerie = gallerie_cmd.Execute gallerie_numRows = 0 %> <% Dim fotogrande__MMColParam fotogrande__MMColParam = "158" If (Request.QueryString("IdFoto") <> "") Then fotogrande__MMColParam = Request.QueryString("IdFoto") End If %> <% Dim fotogrande Dim fotogrande_cmd Dim fotogrande_numRows Set fotogrande_cmd = Server.CreateObject ("ADODB.Command") fotogrande_cmd.ActiveConnection = MM_amici_STRING fotogrande_cmd.CommandText = "SELECT * FROM fotopergallerie WHERE IdFoto = ? ORDER BY IdFoto ASC" fotogrande_cmd.Prepared = true fotogrande_cmd.Parameters.Append fotogrande_cmd.CreateParameter("param1", 5, 1, -1, fotogrande__MMColParam) ' adDouble Set fotogrande = fotogrande_cmd.Execute fotogrande_numRows = 0 %> <% Dim Repeat_foto__numRowsHL Dim Repeat_foto__indexHL Repeat_foto__numRowsHL = -1 Repeat_foto__indexHL = 0 foto_numRows = foto_numRows + Repeat_foto__numRowsHL %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 gallerie_numRows = gallerie_numRows + Repeat1__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Disabili mentali: amici senza limiti

Disabili all'Università

<% ' Horizontal Looper version 3 While ((Repeat_foto__numRowsHL <> 0) AND (NOT foto.EOF)) %> <% 'Horizontal Looper version 3 Repeat_foto__indexHL=Repeat_foto__indexHL+1 Repeat_foto__numRowsHL=Repeat_foto__numRowsHL-1 foto.MoveNext() if len(nested_foto)<=0 then nested_foto = 1 end if if ((Repeat_foto__numRowsHL <> 0) AND (NOT foto.EOF) AND (nested_foto mod 3 = 0)) then Response.Write "" end if nested_foto = nested_foto + 1 'end horizontal looper version 3 Wend %>
&<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "IdGalleria=" & foto.Fields.Item("IdGalleria").Value %>#abbasso">" alt="<%=(foto.Fields.Item("descrizione").Value)%>" width="85" />
<% While ((Repeat1__numRows <> 0) AND (NOT gallerie.EOF)) %> &<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "IdFoto=" & gallerie.Fields.Item("IdFoto").Value %>#abbasso"><%=(gallerie.Fields.Item("sottotitolo").Value)%>

 

<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 gallerie.MoveNext() Wend %>

 

" alt="<%=(fotogrande.Fields.Item("descrizione").Value)%>" />

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hai stampato una pagina del sito www.santegidio.org

<% gallerie.Close() Set gallerie = Nothing %> <% fotogrande.Close() Set fotogrande = Nothing %> <% foto.Close() Set foto = Nothing %>