Repeat region laver to rækker
hvordan kan jeg få disse produkter op på samme linie. jeg synes jeg har prøvet en del, men de vil ikke stå på samme linielink: http://www.perchs.dk/dansk/ny_index.asp
kode:
<%
Dim HLooper1__numRows
HLooper1__numRows = 4
Dim HLooper1__index
HLooper1__index = 0
rsProdukter_numRows = rsProdukter_numRows + HLooper1__numRows
%>
<table border="0" cellpadding="2" cellspacing="0">
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 4
endrw = endrw + numberColumns
%>
<tr align="center" valign="top">
<%
While ((startrw <= endrw) AND (Not rsKampagne.EOF))
%>
<td>
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="border:1px solid #cccccc">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15" background="../images/frontend/bg_mini_squar.gif" style="border:1px solid #999999;padding-left: 2px"><table width="100%" border="0">
<tr>
<td class="darkGreenBold"><%=(rsKampagne.Fields.Item("Navn_dansk").Value)%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td style="border:1px solid #999999;padding: 5px" class="darkGreenNorm"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><%If (rsKampagne.Fields.Item("Billede").Value)<>"" Then%>
<a href="specifik.asp?IDprodukt=<%=(rsKampagne.Fields.Item("IDprodukt").Value)%>"><img src="../images/produkter/<%=(rsKampagne.Fields.Item("Billede").Value)%>" width="150" height="150" border="0"></a>
<%Else%>
<a href="specifik.asp?IDprodukt=<%=(rsKampagne.Fields.Item("IDprodukt").Value)%>"><img src="../images/produkter/billede_mangler.gif" width="150" height="150" border="0"></a>
<%End if%>
</td>
</tr>
<tr>
<td height="20">Pris per 100g: <%=FormatNumber((rsKampagne.Fields.Item("Pris").Value*100),2)%> kr.</td>
</tr>
<tr>
<form action="specifik.asp?IDprodukt=<%=(rsKampagne.Fields.Item("IDprodukt").Value)%>" method="post" name="se" id="se">
<td align="center">
<input name="Submit2" style="cursor:pointer" type="submit" class="buttons" value="Info / Køb">
</td>
</form>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<%
startrw = startrw + 1
rsKampagne.MoveNext()
Wend
%>
</tr>
</table><table border="0" cellpadding="2" cellspacing="0">
<%
startrw = 1
endrw = HLooper1__index
numberColumns = 4-(rsKampagne_total)
endrw = endrw + numberColumns
%>
<tr align="center" valign="top">
<%
While ((startrw <= endrw) AND (Not rsProdukter.EOF))
%>
<td> <table border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="border:1px solid #cccccc">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15" background="../images/frontend/bg_mini_squar.gif" style="border:1px solid #999999;padding-left: 2px"><table width="100%" border="0">
<tr>
<td class="darkGreenBold"><%=(rsProdukter.Fields.Item("Navn_dansk").Value)%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td style="border:1px solid #999999;padding: 5px" class="darkGreenNorm"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><%If (rsProdukter.Fields.Item("Billede").Value)<>"" Then%><a href="specifik.asp?IDprodukt=<%=(rsProdukter.Fields.Item("IDprodukt").Value)%>"><img src="../images/produkter/<%=(rsProdukter.Fields.Item("Billede").Value)%>" width="150" height="150" border="0"></a>
<%Else%>
<a href="specifik.asp?IDprodukt=<%=(rsProdukter.Fields.Item("IDprodukt").Value)%>"><img src="../images/produkter/billede_mangler.gif" width="150" height="150" border="0"></a>
<%End if%>
</td>
</tr>
<tr>
<td height="20">Pris per 100g: <%=FormatNumber((rsProdukter.Fields.Item("Pris").Value*100),2)%> kr.</td>
</tr>
<tr>
<form action="specifik.asp?IDprodukt=<%=(rsProdukter.Fields.Item("IDprodukt").Value)%>" method="post" name="se" id="se"><td align="center">
<input name="Submit" style="cursor:pointer" type="submit" class="buttons" value="Info / Køb">
</td></form>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<%
startrw = startrw + 1
rsProdukter.MoveNext()
Wend
%>
</tr>
</table>
