Re: [SMARTY] alternating background colors

From: Date: Wed, 14 Aug 2002 15:30:52 +0000
Subject: Re: [SMARTY] alternating background colors
References: 1 2 3 4 5 6  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5705@lists.php.net to get a copy of this message
{section name=foo loop=$data} {if $smarty.section.foo.index % 2} EVEN ROWS {else} ODD ROWS {/if} {/section} ----- Original Message ----- From: Blue Presley <blue928@carolina.rr.com> To: <smarty-general@lists.php.net> Sent: Wednesday, August 14, 2002 12:25 PM Subject: [SMARTY] alternating background colors > I'm using <section></section> to repeat a list of rows from a mysql > query. it would be great it there were a parameter to provide 2 colors to > alternate in the background cell results. > > having said that, is anyone out there doing that and if so how are they > transferring the color from the php script to the smarty template? > > blue > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/3/02

« previous php.smarty.general (#5705) next »