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: sbadmin5 - Bootstrap 5 Theme Yesterday 9:11 goffy Re: sbadmin5 - Bootstrap 5 Theme Yesterday 6:59 Mamba Re: sbadmin5 - Bootstrap 5 Theme 9/27 8:00 goffy Re: sbadmin5 - Bootstrap 5 Theme 9/26 0:57 Mamba sbadmin5 - Bootstrap 5 Theme 9/25 18:15 goffy Re: XoopsFaq for 2.5.10 9/18 18:21 Mamba XoopsFaq for 2.5.10 9/16 16:22 Skype-Fr Re: activate block by default 9/3 16:09 goffy Re: wgFilemanager released for testing and contribution 8/30 7:29 goffy Re: wgFilemanager released for testing and contribution 8/27 0:03 liomj Who's Online 322 user(s) are online (52 user(s) are browsing Support Forums) Members: 0 Guests: 322 more... Donat-O-Meter Stats Goal: $100.00 Due Date: Sep 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: sbadmin5 - Bootstrap 5 Theme Yesterday 9:11 goffy Re: sbadmin5 - Bootstrap 5 Theme Yesterday 6:59 Mamba Re: sbadmin5 - Bootstrap 5 Theme 9/27 8:00 goffy Re: sbadmin5 - Bootstrap 5 Theme 9/26 0:57 Mamba sbadmin5 - Bootstrap 5 Theme 9/25 18:15 goffy Re: XoopsFaq for 2.5.10 9/18 18:21 Mamba XoopsFaq for 2.5.10 9/16 16:22 Skype-Fr Re: activate block by default 9/3 16:09 goffy Re: wgFilemanager released for testing and contribution 8/30 7:29 goffy Re: wgFilemanager released for testing and contribution 8/27 0:03 liomj Who's Online 322 user(s) are online (52 user(s) are browsing Support Forums) Members: 0 Guests: 322 more... Donat-O-Meter Stats Goal: $100.00 Due Date: Sep 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
322 user(s) are online (52 user(s) are browsing Support Forums)
Members: 0
Guests: 322