Steve,
Try something like this. request$SelectedProducts is an array with 2 columns description and price. The code below will step through each row of an array and display it in a html table @@request$NumCols columns wide. It will then add a fill in cell if required in the last row of the table.



<@ASSIGN request$NumCols "3">
<table border="0">
<tr>
<@FOR START="1" STEP="1" STOP="<@numrows array='request$SelectedProducts'>">
<td>@@request$SelectedProducts[<@CURROW>,description] @@request$SelectedProducts[<@CURROW>,price]</td>
<@IF "!(<@CURROW>%<@VAR request$NumCols>)"></tr><tr></@IF>
</@FOR>
<@IF "<@numrows array='request$SelectedProducts'>%<@VAR request$NumCols>">
<td colspan="<@CALC EXPR='<@VAR request$NumCols>-(<@VAR request$currow>%<@VAR request$NumCols>)'>"></td></tr>
</@IF>
</table>




Witango Support


On 12/05/2004, at 12:16 AM, Steve Campbell wrote:


Hello..been a while and I haven’t posted to the list so, I hope someone out there can help me with my problem.

This is a taf embedded into a php page.  

http://www.forerunners.org/archived_news.php

Basically the php script pulls three different parts together to make the page.  Two php pages and one taf  The taf is pulled into the middle of the page and lists all the linked items in the long list in the middle.

The part that I have a question about is the   http://www.forerunners.org/tafs/archivednews.taf?_function=list

I have to find a way to wrap this long list back up and not make people scroll down to the depths of where ever to get to months that might be at the bottom.  I am also trying to find a way to gather up by month so you don’t see every listing but you see months listed, but, that’s another problem.

Any help would be appreciated..thanks for anyone’s time and/or help.

Steve

________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to