Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560

    inserire uno spazio <br>

    questa tabella si ripete una sotto l'altra quando aggiungo più prodotti, io vorrei inserire uno spazio tra una tabella e l'altra, sennò mi vengono tutte attaccate..

    codice:
    <table width="500" border="0" align="center" cellpadding="3" cellspacing="0">
    		<tr> 
    			
    		</tr>
    <%
    		If (QSSCategoria = "") AND (QSCategoria = "") AND (QSQuery = "") Then
    			Response.Redirect session("referer")
    		Else
    '---Stampo a video i prodotti delle categorie richieste
    			Set RS = Server.CreateObject("ADODB.RecordSet")
    			RS.PageSize = MaxProdottiPerPagina
    			
    'MODIFICA DELLA SB SOFTWARE PER IL PREZZO MAX.
    if request.form("select") <> "" AND request.form("select") <> "" then
    	If (QSCategoria = "") Then
    		SQL = " SELECT * FROM Prodotti WHERE SCategoria = "& [QSSCategoria] &" AND Categoria = 0  AND Cancellato = False "
    		If Session("Rivenditore") = True then
    			SQL = SQL & "AND cLng(RPrezzo) <= "& cLng(FormattaPrezzoPerDB(request.form("select"))) &" "
    		else
    			SQL = SQL & "AND cLng(CPrezzo) <= "& cLng(FormattaPrezzoPerDB(request.form("select"))) &" "
    		End if
    		RS.Open SQL, Conn, 1
    	End If
    
    	If (QSCategoria <> "") Then
    		SQL = " SELECT * FROM Prodotti WHERE Categoria = "& [QSCategoria] &" AND Cancellato = False "
    		If Session("Rivenditore") = True then
    			SQL = SQL & "AND cLng(RPrezzo) <= "& cLng(FormattaPrezzoPerDB(request.form("select"))) &" "
    		else
    			SQL = SQL & "AND cLng(CPrezzo) <= "& cLng(FormattaPrezzoPerDB(request.form("select"))) &" "
    		End if
    		RS.Open SQL, Conn, 1
    	End If
    
    else
    			
    				If (QSCategoria = "") Then
    					SQL = " SELECT * FROM Prodotti WHERE SCategoria = "& [QSSCategoria] &" AND Cancellato = False ORDER BY Codice DESC"
    					RS.Open SQL, Conn, 1
    				End If
    	
    				If (QSCategoria <> "") Then
    					SQL = " SELECT * FROM Prodotti WHERE Categoria = "& [QSCategoria] &" AND Cancellato = False ORDER BY Codice DESC "
    					RS.Open SQL, Conn, 1
    				End If
    			End If
    
    			If Not RS.EoF Then 
    				RS.MoveFirst
    				RS.AbsolutePage = QSPg
    
    			Precedente = "Precedente"
                            Successiva = "Successiva"
    
                                   If QSPg <> 1 Then
    					Footer = "" & PrimaPagina & " "
                                            Footer = Footer & "" & Precedente & " - "
    				Else
    					Footer = PrimaPagina & " "
                                            Footer = Footer & Precedente & " - "
    				End If
    				
    
    				If QSPg <> RS.PageCount Then
    					Footer = Footer & "" & Successiva & " "
    					Footer = Footer & "" & UltimaPagina & ""
    				Else
    					Footer = Footer & Successiva & " " & UltimaPagina
    				End If
    
    				For I = 1 To RS.PageSize
    					If RS.EOF Then Exit For
    %>
    		<tr bgcolor="<%=Tabella_Colore_Cella%>">
    			<form method="get" action="prod_aggiungi.asp">
    				<td bgcolor="#999966" width="135" valign="top">
    <a href="scheda.asp?id=<%=RS("ID")%>">
    <%dim prodotto%>
    <%Prodotto=RS("Prodotto")%><img src="../
    <%
    					If RS("PFoto") <> ("public/imgprodotti/") Then
    						Response.Write RS("PFoto")
    					Else
    						Response.Write  Img_NonDisponibile_P
    					End If
    %>
    					" alt="<%=Prodotto%>" width="<%=PFoto_Larghezza%>" height="<%=PFoto_Altezza%>" border="0">			  </td>
    				<td align="center" bgcolor="#999966">
    <%
    					If RS("Offerta") = True Then
    %>
    					
    <%
    					End If
    					If StrToData(RS("Data")) > (Date - GiorniNovita) Then
    %>
    				
    <%
    					End If
    %>
    					
    					<p align="center">
    					</p>
    					<p align="center">"><%=RS("Prodotto")%>
                        <%	    
    					If  RS("Tipologia") = True Then
    %>
    				    
    				  </p>
    					<p align="center">
    <%
    						Set RStip = Server.CreateObject("ADODB.RecordSet")
    						SQL = " SELECT * FROM Tipologie WHERE IDProdotto = "& RS("ID")
    
    						With RStip
    							.Open SQL, Conn, 1
    							If Not (.BOF And .EOF) Then
    %>
    						<select name="Tipologia">
    <%
    								Index = 1
    								Do While Not .EOF
    									If Index = 1 Then
    %>
    							<option Selected value='<%=.Collect("ID")%>'><%=.Collect("Tipologia")%>
    <%
    									Else
    %>
    							<option value='<%=.Collect("ID")%>'><%=.Collect("Tipologia")%>
    <%
    									End If
    
    									Index = Index + 1
    									.MoveNext
    								Loop
    							End If
    
    							.Close
    						End With
    
        						Set RStip = Nothing
    %>           
    						</select>
    					</p>
    <%
    					End If
    %>					
    				
    
    					<p align="left">
    					
    
    					<%=RS("PDescrizione")%>
    					
    
    					<%If UtilizzaPrezzo(RS("PuntiSconto")) > 0 Then%>
    <%=PuntiUsabili%>: <%=VisualizzaPrezzo(RS("PuntiSconto"))%><%End If%>
    			  
    
    					
    
    					<%=SimboloValuta%> <%=VisualizzaPrezzo(RS("CPrezzo"))%>
    <%
    					If Session("Rivenditore") = False Then
    %>
    					
    
    					
    
    <%
    					End If
    %>
    					
    				
    
    					<%=RS("GDescrizione")%>
    <%
    					If (RS("Giacenza") > 0) OR RS("GiacenzaInfinita") Then
    %>
    			
    <%
    					Else
    %>
    					
    					
    
    					">Prenotalo ora!</p>
    					
    
    					<%
    					End If
    %>
    			  </td>
    				
    			</form>
    		</tr>
    <%
    					RS.MoveNext
    					Next
    			Else
    %>
    		<tr bgcolor="<%=Tabella_Colore_Cella%>"> 
    			<td colspan="5" align="center" height="18">
    				
    				<%=NoRecordTrovati%>
    			</td>
    		</tr>
    <%
    			End If
    		End If
    		RS.Close
    %>
      </table>
    dovrei inserire un "
    " in questo codice..almeno penso sia così..


    codice:
    <%
    					RS.MoveNext
    					Next
    			Else
    %>

  2. #2
    E metticelo, no?
    Comunque, il tuo html è pieno di errori.
    Ci sta un <tr></tr> inutile all'inizio... poveri clienti tuoi...

  3. #3
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560
    non far caso al codice mems.. è una bozza per provare il codice asp..

    cmq ho messo il "
    " nel codice ma mi da questo errore:

    Microsoft VBScript runtime error '800a01c2'

    Wrong number of arguments or invalid property assignment: 'MoveNext'

    /aspasp/include/inc_catalogo.asp, line 299

    codice:
    <%
    					RS.MoveNext "
    "
    					Next
    			Else
    %>

  4. #4
    scusa ma lo hai messo nel codice asp!!!
    devi inserirlo prima del movenext e nell'html

    cmq da un'occhiata veloce mi sembra tu doppi le righe con il ciclo e non le tabelle

  5. #5
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560
    l ho messo anche qua:

    codice:
    </td>
    				
    			</form>
    		</tr>
    
    <%
    					RS.MoveNext
    					Next
    			Else
    %>
    ma non si distaccano le 2 tabelle...

  6. #6
    le celle non si staccheranno mai perchè fanno parte della stessa tabella, o crei una tabella per ogni prodotto uppure dai un invio prima del tag </tr> ma in quest'ultimo caso rimarrà sempre un'unica table

  7. #7
    Utente di HTML.it L'avatar di Lino80
    Registrato dal
    Oct 2005
    Messaggi
    1,560
    si ho capito come fare..devo creare 2 table una dentro l altra... grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.