[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Result Page
At 11:15 AM 10/19/1999 , you wrote:
>****** message to minivend-users from ".cory.trese."
<digital@specialty-books.com> ******
>
>On Tue, 19 Oct 1999, you wrote:
>
>>I'm attaching a copy of my results page. The problem being, how would I
>>drop your code in to print the results horizontally?
>
>the only way I can think to do this is to create a table, and then use the
>results loop ("[search-list]") to create as set of cells going horizontally
>across the page.
>
>The logic I use above has a serious flaw, though. If you return more than
4 or
>5 results, you'll have an ugly page that ppl have to scroll over to see.
>Customers aren't usually smart (at least mine aren't ;) enough to use
scrolling.
>
>My solution to this is to increase (or set) a value after X number of
>horizontal cells, and then put in a new data row ("<TR>")
Just thought I'd chime in and contribute some code for that:
<TABLE BORDER=2 CELLSPACING=3 CELLPADDING=3 COLS=10>
<TR>
[loop arg=[item-field color]]
<TD align=center>
<A HREF="[area [loop-code]]"><IMG SRC="/order/images/chart/[loop-code].jpg"
WIDTH="40" HEIGHT="46" BORDER="0" LOWSRC="/0.gif" ALT="[loop-field
description]"></A><BR>[loop-code]</TD>
[calc] return '</TR><TR>' if '[loop-increment]' % 10 eq 0[/calc]
[set colorcount][loop-increment][/set]
[/loop]
</TR><CAPTION><B>[scratch colorcount] Available Colors:</B></CAPTION>
</TABLE>
The [calc] line is the magic one. Mine is set for 10 columns. Don't know
how effecient my counting code is, but it works - and it solved the eternal
question of 'how many darn colors you got?'
>
>This idea may be hopelessly flawed, but it also might point you in the right
>direction or give you an idea. Thus, I have posted it.
>
>>I'm using a
>>[search-region] [search-list] and these seem to do looping.
>
>I don't know [search-region] but I can confirm that it is [search list] that
>does the looping.
>
>>It looks
>>like you're doing an in-page loop search. Unless there's a way to pass
>>parameters to a results page.
>
>???
>
>>
>>--Brian
>>_________________________________________________________________________
>>Brian Wright Aturna Communications Inc.
>>bdw@aturna.com Internet Services
>> WWW http://www.aturna.net
>>_________________________________________________________________________
>>
>>
>>
>
>----------------------------------------
>Content-Type: text/html; name="results.html"
>Content-Transfer-Encoding: base64
>Content-Description:
>----------------------------------------
>
>--
>========================================
>Cory Trese
>email : digital@specialty-books.com
>fone : (740) 594 - 2274, ext 223
>phax : (740) 593 - 3045
>========================================
>Mail Sent from
>
>Specialty Books,
>Athens Ohio, 45701
>www.specialty-books.com
>
>RedHat Linux, Hedwig
>P][ / 2.3.5
>========================================
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
Ryan Hertz tel 800-645-BAIT
Webmaster fax 520-645-2588
Advertising Director http://www.insideline.net
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com