2005/5/16 22:18
DonXoop
Posts: 1171
Since: 2003/11/27
<tr>
<tr class="<{cycle values="even,odd"}>">
echo ""; but I'd like to use the cycle function in the tr.I need to use PHP as the code type because of all the db queries (that part works fine). 2 Re: Using smarty code in PHP 2005/5/16 22:34 skalpa Quite a regular Posts: 300 Since: 2003/4/16 1) About "using smarty code in PHP"Forget about it. Anyway, this is not your real problem, just a wrong solution2) $values = array( 'odd', 'even' ); $idx = 0; while ($loop) { echo "{$values[$idx]}'>"; $idx = $idx++ % count($values); // Replace with "2" if possible .... } 3 Re: Using smarty code in PHP 2005/5/17 12:06 DonXoop Posts: 1171 Since: 2003/11/27 Thank you!That was the hint I needed to make it work. Thanks again. Login Username Password Remember me Reset Search Advanced Search Recent Posts Re: Privacy 11/26 19:42 margoritka Privacy 11/26 19:38 kalibri XOOPS MyMenus 1.54.0 Beta 10 11/18 11:08 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/18 11:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/16 12:32 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 18:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:33 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:29 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 4:39 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 3:50 liomj Who's Online 328 user(s) are online (251 user(s) are browsing Support Forums) Members: 0 Guests: 328 more... Donat-O-Meter Stats Goal: $100.00 Due Date: Nov 30 Gross Amount: $0.00 Net Balance: $0.00 Left to go: $100.00 Latest GitHub Commits {{ record.sha.slice(0, 7) }} - {{ record.commit.message | truncate }} {{ record.commit.author.name }} {{ record.commit.author.date | formatDate }}
2005/5/16 22:34
skalpa
Quite a regular
Posts: 300
Since: 2003/4/16
$values = array( 'odd', 'even' ); $idx = 0; while ($loop) { echo "{$values[$idx]}'>"; $idx = $idx++ % count($values); // Replace with "2" if possible .... } 3 Re: Using smarty code in PHP 2005/5/17 12:06 DonXoop Posts: 1171 Since: 2003/11/27 Thank you!That was the hint I needed to make it work. Thanks again. Login Username Password Remember me Reset Search Advanced Search Recent Posts Re: Privacy 11/26 19:42 margoritka Privacy 11/26 19:38 kalibri XOOPS MyMenus 1.54.0 Beta 10 11/18 11:08 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/18 11:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/16 12:32 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 18:06 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:33 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 5:29 liomj Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 4:39 Mamba Re: XOOPS MyMenus 1.54.0 Beta 7 11/15 3:50 liomj Who's Online 328 user(s) are online (251 user(s) are browsing Support Forums) Members: 0 Guests: 328 more... Donat-O-Meter Stats Goal: $100.00 Due Date: Nov 30 Gross Amount: $0.00 Net Balance: $0.00 Left to go: $100.00 Latest GitHub Commits {{ record.sha.slice(0, 7) }} - {{ record.commit.message | truncate }} {{ record.commit.author.name }} {{ record.commit.author.date | formatDate }}
2005/5/17 12:06
Advanced Search
328 user(s) are online (251 user(s) are browsing Support Forums)
Members: 0
Guests: 328