Ho questa select (premetto che non sono programatore):
--------------codice:set rscatlist=db.execute ("SELECT price, ( price * ( 100 - scontoperc)) / 100 AS sconto, * FROM clientiart RIGHT JOIN products ON clientiart.productid=products.productid WHERE (((products.catcode)="&catcode&") AND ((clientiart.custid)="&custid&" Or (clientiart.custid) Is Null) AND ((clientiart.codcategoria)="&catcode&" Or (clientiart.codcategoria) Is Null))")
La stampa a video è questa:
<table width="90%" align="center" cellpadding="2" cellspacing="0" border="1" bgcolor="#ffffff"><%
'Display list of other products in category
if not rscatlist.eof then
rscatlist.movefirst
while not rscatlist.eof
%>
<tr><td width="70">
<font size="1" face="helvetica" color="<%= COLlight %>">
<form action="addprod.asp?productid=<%= rscatlist("productid")%>" method="post">
Q.tà:
<SELECT NAME="qty">
<OPTION SELECTED VALUE="1">1
<OPTION VALUE="2">2
<OPTION VALUE="3">3
<OPTION VALUE="4">4
</SELECT></td><td>
<input type="hidden" name="stage" value="2"><font size="1" face="verdan" color="<%= COLlight %>">&price=<%=rscatlist("sconto")%>"><%=rscatlist("nam e")%>
Il Tuo prezzo: € <%=rscatlist("sconto")%>
Listino: € <%=rscatlist("price")%>
</font>
<td><input type=image src="images/carr.gif" border=0 alt="Aggiungi l'articolo all'ordine"></td>
</td></tr><tr><td colspan="3" bgcolor="#eeeeee"></td></tr></form>
<%
rscatlist.movenext
wend
end if
%>
</table>
---------
Ho provato già ad impaginare usando questo sistema
http://freeasp.html.it/script/view_script.asp?id=137
ma non mi viene per niente.. la select è un pò incasianta
ma è testata e funziona perfettamente.
GRAZIE DELLA MANO


Rispondi quotando
help
