[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Item listings/Row color
****** message to minivend-users from jojo@buchonline.net ******
On 3 Feb, Humberto T Reyes wrote:
> ****** message to minivend-users from "Humberto T Reyes" <htreyes@earthlink.net> ******
>
> Hello to all,
>
>
> I searched the list and did not find an answer--In the results page I want
> to list a large number of items in a row and I want to change the color of
> every other row.
>
> How can I do that within the search loop??
>
> I welcome all any ideas.
>
> Thanks to all,
>
> Humberto Reyes
> htreyes@earthlink.net
This is a html question. The answer is "<TD BGCOLOR="yellow">....</TD>.
Changing every row...? Maybe this can helps you:
At the top of your page:
[perl arg=scratch]
$Safe{'scratch'}->{'rowflag'} = 'no';
return '';
[/perl]
inside the search results loop:
[if scratch rowflag eq no]
<TD BGCOLOR="yellow">....</TD>
[perl arg=scratch]
$Safe{'scratch'}->{'rowflag'} = 'yes';
return '';
[/perl]
[else]
<TD BGCOLOR="red">....</TD>
[perl arg=scratch]
$Safe{'scratch'}->{'rowflag'} = 'no';
return '';
[/perl]
[/else]
[/if]
Regards,
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen FAX: 0209 1671449
-
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