Modificare il file:
\Backup 02-06-2024\home_OLD.asp
<% Set marca = Server.CreateObject("ADODB.Recordset") marca.ActiveConnection = MM_ecommerce_STRING marca.Source = "SELECT DISTINCT Marca FROM Prodotti" marca.CursorType = 0 marca.CursorLocation = 2 marca.LockType = 1 marca.Open() marca_numRows = 0 %> <% Set Tipo = Server.CreateObject("ADODB.Recordset") Tipo.ActiveConnection = MM_ecommerce_STRING Tipo.Source = "SELECT DISTINCT Classe FROM Prodotti" Tipo.CursorType = 0 Tipo.CursorLocation = 2 Tipo.LockType = 1 Tipo.Open() Tipo_numRows = 0 %> <% if Request.QueryString("fcampo") <> "" Or Request.QueryString("fcosa") <> "" then Set Prodo = Server.CreateObject("ADODB.Recordset") Prodo.ActiveConnection = MM_ecommerce_STRING 'Prodo.Source = "SELECT * FROM Prodotti WHERE Dispo = 'Y' AND "&Request.QueryString("fcampo")&"='"&Request.QueryString("fcosa")&"'" Prodo.Source = "SELECT * FROM Prodotti WHERE Dispo = 'Y' AND lista = '&elenco'" Prodo.CursorType = 0 Prodo.CursorLocation = 2 Prodo.LockType = 1 Prodo.Open() Prodo_numRows = 0 end if %> <% Repeat1__numRows = -1 Repeat1__index = 0 marca_numRows = marca_numRows + Repeat1__numRows %> <% Repeat2__numRows = -1 Repeat2__index = 0 Tipo_numRows = Tipo_numRows + Repeat2__numRows %> <% Repeat3__numRows = -1 Repeat3__index = 0 Prodo_numRows = Prodo_numRows + Repeat3__numRows %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Liste di Nascite - Martinucci regali e ...</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .Stile1 {font-family: verdana} .Stile2 {font-size: x-small} .Stile3 {font-family: verdana; font-size: x-small; } a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: none; color: #000000; } a:active { text-decoration: none; color: #000000; } --> </style> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <div align="center"> <table height="285" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <td height="266" valign="top"><span class="Stile3"><strong> <%if Request.QueryString("fcampo") <> "" Or Request.QueryString("fcosa") <> "" then%> </strong></span> <table width="501" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="599" height="19" bgcolor="#efefef"><div align="right"><span class="Stile3"><strong> Lista Articoli </strong></span></div></td> </tr> </table> <span class="Stile3"><strong> <%end if%> </strong></span> <div align="right" class="Stile3"><strong> </strong></div> <table border="0"> <tr> <td> </td> </tr> </table> <%if Request.QueryString("fcampo") <> "" Or Request.QueryString("fcosa") <> "" then%> <% While ((Repeat3__numRows <> 0) AND (NOT Prodo.EOF)) %> <% ci=(Prodo.Fields.Item("Foto").Value) if ci <> "" then fotina="Admin/ImagesProd/"&(Prodo.Fields.Item("Foto").Value) else fotina="Admin/ImagesProd/nd.jpg" end if descpro=mid((Prodo.Fields.Item("Descrizione").Value),1,300)&"....." %><% If (Repeat3__numRows Mod 2) Then col="#f0f0f0" col2="#c0c0c0" Else col="#e5e5e5" col2="#c0c0c0" End IF %> <table width="501" height="51" border="0" class="Stile3" cellspacing="0" cellpadding="0"> <tr> <td width="84" bgcolor="<%=col%>" style="border-left: 1px solid #C0C0C0; border-top: 1px solid #C0C0C0; border-bottom: 0px solid #C0C0C0; "><div align="center"><br> <a href="?az=prod&IDpr=<%=(Prodo.Fields.Item("ID").Value)%>&fcampo=<%=Request.QueryString("fcampo")%>&fcosa=<%=Request.QueryString("fcosa")%>"><img src="<%=fotina%>" alt="" width="70" height="50" border="0"></a><br> <br> </div></td> <td width="6" bgcolor="<%=col%>" style="border-top: 1px solid #C0C0C0; border-bottom: 0px solid #C0C0C0; "><div align="left"> <br> </div></td> <td width="411" valign="top" bgcolor="<%=col%>" style="border-right: 1px solid #C0C0C0; border-top: 1px solid #C0C0C0; border-bottom: 0px solid #C0C0C0; "><div align="left"><a href="?az=prod&IDpr=<%=(Prodo.Fields.Item("ID").Value)%>&fcampo=<%=Request.QueryString("fcampo")%>&fcosa=<%=Request.QueryString("fcosa")%>"><b><%=Prodo("Nome")%></b><br> <br><%=descpro%></a></div></td> </tr> </table> <% Repeat3__index=Repeat3__index+1 Repeat3__numRows=Repeat3__numRows-1 Prodo.MoveNext() Wend %> <table width="501" border="0" cellpadding="0" cellspacing="0" style="border-left: 0px solid #C0C0C0; border-top: 1px solid #C0C0C0; border-bottom: 0px solid #C0C0C0; "> <tr> <td> </td> </tr> </table> <div align="right"> <%else%> <br> <br> <br> <img border="0" src="images/baby.jpg" width="380" height="276"> <%end if%> </div></td></tr> </table> </div> </body> </html> <%if Request.QueryString("fcampo") <> "" Or Request.QueryString("fcosa") <> "" then end if%>
[
Íàçàä
]