Modificare il file:
\Lista\default.asp
<% Dim prodotti__MMColParam prodotti__MMColParam = "1" If (Request.QueryString("IDpr") <> "") Then prodotti__MMColParam = Request.QueryString("IDpr") End If %> <% Dim prodotti Dim prodotti_numRows Set prodotti = Server.CreateObject("ADODB.Recordset") prodotti.ActiveConnection = MM_ecommerce_STRING prodotti.Source = "SELECT * FROM Prodotti WHERE ID = " + Replace(prodotti__MMColParam, "'", "''") + "" prodotti.CursorType = 0 prodotti.CursorLocation = 2 prodotti.LockType = 1 prodotti.Open() prodotti_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 %> <% 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 %> <% Repeat1__numRows = 10 Repeat1__index = 0 prodotti_numRows = prodotti_numRows + Repeat1__numRows %> <% Repeat2__numRows = -1 Repeat2__index = 0 Tipo_numRows = Tipo_numRows + Repeat2__numRows %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script language="javascript"> function scrivi(idq) { nqnt=document.getElementById('a').value;//a.value; document.location.href="?az=carr&ID="+idq+"&qnt="+nqnt+"&fcampo=<%=Request.QueryString("fcampo")%>&fcosa=<%=Request.QueryString("fcosa")%>"; } </script> <script language="javascript"> <!-- function agg(valu) { alert(valu); } function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } //--> </script> <title>Articolo in dettaglio - Martinucci regali e ...</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .Stile1 { font-family: verdana; font-size: x-small; } --> </style> <link href="../CSS/style.css" rel="stylesheet" type="text/css"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table width="560" height="285" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <td height="19" valign="top"> </td> <td height="19" bgcolor="#EFEFEF"><div align="right" class="Stile3">Lista Articoli -> <strong><font color="#0000FF">Articoli in Dettaglio</font> </strong> </div></td> </tr> <tr> <td width="4" height="266" > </td> <td width="556" valign="top"> <table border="0"> <tr> <td> </td> </tr> </table> <% While ((Repeat1__numRows <> 0) AND (NOT prodotti.EOF)) %> <div align="center"> <% ci=(prodotti.Fields.Item("Foto").Value) if ci <> "" then fotina="Admin/ImagesProd/"&(prodotti.Fields.Item("Foto").Value) else fotina="Admin/ImagesProd/nd.jpg" end if %> </div> <table> <tr> <td> <table width="549" height="143" class="Stile1" style="border: 1px solid #000000"> <tr> <td colspan="4"><div align="center"><strong><%=(prodotti.Fields.Item("Nome").Value)%></strong><br> <br> <img src="<%=fotina%>" alt=""></div></td> </tr> <tr> <td><strong>Descrizione:</strong></td> <td valign="middle"> </td> <td valign="middle"> </td> <td> </td> </tr> <tr> <td height="37" colspan="4" bgcolor="#F0F0F0"><%=replace((prodotti.Fields.Item("Descrizione").Value),Vbcrlf,"<br>")%></td> </tr> <tr> <td width="215" height="28"><div align="center">Prezzo: <strong><%=FormatCurrency((prodotti.Fields.Item("Prezzo").Value),2)%> </strong></div></td> <td width="286" valign="middle" height="28" colspan="2"><div align="center"> Quantità: <input name="a" type="text" id="a" style="font-family: Verdana; font-size: 10px; border: 1px solid #000000" value="1" size="4" maxlength="4"> </div><b> </b></td> <td width="175" height="28"> <p align="center"> <input name="Submit" type="submit" class="Stile1" value="Aggiungi al Carrello" style="font-family: Verdana; font-size: 10px; float:right" onClick="javascript:scrivi('<%=(prodotti.Fields.Item("ID").Value)%>')"></td> </tr> </table></td> </tr> </table> <div align="center"><br> </div> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 prodotti.MoveNext() Wend %> <input name="Submit2" type="button" class="Stile1" style="font-family: Verdana; font-size: 10px" onClick="MM_goToURL('parent','?az=list&fcampo=<%=Request.QueryString("fcampo")%>&fcosa=<%=Request.QueryString("fcosa")%>');return document.MM_returnValue" value="Torna alla lista"><% if request.QueryString("campo") <> "" then%><input name="Submit22" type="button" class="Stile1" style="font-family: Verdana; font-size: 10px" onClick="MM_goToURL('parent','?az=ricerca&cosa=<%=Request.QueryString("cosa")%>&campo=<%=Request.QueryString("campo")%>');return document.MM_returnValue" value="Torna alla Ricerca"><%end if%> </td> </tr> </table> <div align="center"></div> </body> </html>
[
Íàçàä
]