Modificare il file:
\default_OLD.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!--#include file="Connections/ecommerce.asp" --> <% Dim marca Dim marca_numRows Set marca = Server.CreateObject("ADODB.Recordset") marca.ActiveConnection = MM_ecommerce_STRING marca.Source = "SELECT DISTINCT Marca FROM Prodotti" ' ***** marca.Source = "SELECT DISTINCT Marca FROM Prodotti WHERE Dispo LIKE 'Y'" marca.CursorType = 0 marca.CursorLocation = 2 marca.LockType = 1 marca.Open() marca_numRows = 0 %> <% Dim Tipo Dim Tipo_numRows 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 Dim Prodo Dim Prodo_numRows Set Prodo = Server.CreateObject("ADODB.Recordset") Prodo.ActiveConnection = MM_ecommerce_STRING Prodo.Source = "SELECT * FROM Prodotti WHERE "&Request.QueryString("fcampo")&"='"&Request.QueryString("fcosa")&"' AND Dispo = 'Y'" ' ***Prodo.Source = "SELECT * FROM Prodotti WHERE Dispo = 'Y'" Prodo.CursorType = 0 Prodo.CursorLocation = 2 Prodo.LockType = 1 Prodo.Open() Prodo_numRows = 0 end if %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 marca_numRows = marca_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 Tipo_numRows = Tipo_numRows + Repeat2__numRows %> <% Dim Repeat3__numRows Dim Repeat3__index 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> <script language="javascript"> <!-- Questa è la funzione da utlilizzare per l'inserimento della password, Richiamata dal listbox --> function vai(val,campo) { if (val!="") { document.location.href="?az=list&fcampo="+campo+"&fcosa="+val; } } </script> <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; } .Stile4 {color: #E5E5E5} --> </style> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="0" width="83%" id="table1"> <tr> <td width="212"> <p align="center"> <img border="0" src="logo_73x78.jpg" width="73" height="78"></td> <td> <p align="justify"><font face="Verdana" size="2" color="#0000FF"> L'acquisto dell'articolo prenotato può essere effettuato attraverso il pagamento in contanti<br> oppure a mezzo Bonifico Bancario presso BCC di Anagni (FR) filiale di Montelanico (RM)<br> <b>intestato a: Martinucci Luigina & C. s.n.c. <br> Coord. Bancarie: <br> </b> </font> <b><font face="Verdana" size="2" color="#FF0000">EU IBAN: IT94 R083 4439 2100 0000 8827 626 </font> <font face="Verdana" size="2" color="#0000FF"><br> Tel. e FAX 06 97304143<br> </font> <font face="Verdana" size="2">E-mail:</font><font face="Verdana" size="2" color="#0000FF"> <a href="mailto:martinucci@martinucci-regali.com?subject=Richiesta da Lista NASCITE"> martinucci@martinucci-regali.com</a></font></b></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1977" height="19" bgcolor="#CCCCCC" class="Stile3 Stile4"><div align="right"> <a href="" target="_blank"><b><font color="#000080">Martinucci regali e ... </font></b> </a></div></td> </tr> </table> <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <td valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td width="200" valign="top"><table width="150" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#C0C0C0" style="border-collapse: collapse"> <tr> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td style="border: 1px solid #EBEBEB"><span class="Stile1 Stile2"><strong>Liste di Nascite</strong></span></td> </tr> <tr> <td><div align="center"> <br> <select name="Marca" id="Marca" style="font-family:Verdana; font-size:x-small" onChange="vai(this.value,'Marca')"> <option value="">..:: Elenco Liste Nascita ::..</option> <% '******************************** ' VISUALIZZA L'ELENCO DELLE LISTE ' CHE SI TROVANO NEL CAMPO MARCA '******************************** While ((Repeat1__numRows <> 0) AND (NOT marca.EOF)) %> <option value="<%=(marca.Fields.Item("Marca").Value)%>" <%if ucase(request.QueryString("fcosa"))=ucase((marca.Fields.Item("Marca").Value)) then response.Write(" selected") end if%>> <%=(marca.Fields.Item("Marca").Value)%></option> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 marca.MoveNext() Wend %> </select> </div></td> </tr> <tr> <td> </td> </tr> <tr> <td style="border: 1px solid #EBEBEB"> </td> </tr> <tr> <td> <div align="center"><br> <br> </div></td></tr> <tr> <td> </td> </tr> <tr> <td style="border: 1px solid #EBEBEB"><span class="Stile3"><strong>Azioni:</strong></span></td> </tr> <tr> <td bgcolor="#EBEBEB"><div align="left"><span class="Stile3"><img src="images/carrello.gif" width="14" height="10"> <a href="?az=carrList">Carrello</a> <br> <br> <img src="images/home.gif" width="15" height="15"> <a href="default.asp">Home</a> <br> <br> <img src="images/cerca.gif" width="15" height="15"><a href="?az=ricerca&campo=Nome&cosa=Inserisci cosa cercare">Cerca</a><br> <br> <img src="images/ordine.gif" width="15" height="15"> <a href="?az=ordina">Ordine</a></span><br> <br> <span class="Stile3"> <img src="images/login.gif" width="15" height="15"> <a href="/admin/default.asp">Login</a></span></div></td> </tr> </table> <div align="left"></div> </td> </tr> </table> <div align="left"></div></td> <td valign="top"> </td> </tr> </table> <p> <% if request.QueryString("az")="prod" then%> <!--#include file="Lista/default.asp" --> <%end if if request.QueryString("az")="list" then%> <!--#include file="home.asp" --> </p> <%end if if request.QueryString("az")="carr" then%> <!--#include file="Carrello/addCarrello.asp" --> </p> <%end if if request.QueryString("az")="carrList" then%> <!--#include file="Carrello/default.asp" --> </p> <%end if if request.QueryString("az")="" then%> <!--#include file="home.asp" --> </p> <%end if if request.QueryString("az")="ordina" then%> <!--#include file="Ordine/formdati.asp" --> </p> <%end if if request.QueryString("az")="ricerca" then%> <!--#include file="Ricerca/Search.asp" --> </p> <%end if %> </body> </html> <% marca.Close() Set marca = Nothing %> <% Tipo.Close() Set Tipo = Nothing %> <%if Request.QueryString("fcampo") <> "" Or Request.QueryString("fcosa") <> "" then Prodo.Close() Set Prodo = Nothing end if%>
[
Íàçàä
]