{set $range = 10}
<table border=1>
<tr> <th>Level</th> <th>Occurence</th> </tr>
{sequence range='1..5', $abc=$range, %xyz=$range} <tr> <td>{$abc}</td> <td>{$xyz}</td> </tr> {/sequence}
</table>
|
|
Level
|
Occurence
|
|
10
|
1
|
|
10
|
2
|
|
10
|
3
|
|
10
|
4
|
|
10
|
5
|
|
<table border=1>
<tr> <th>Name</th> <th>Salary</th> <th>Bonus</th> <th>Total</th> </tr> {staff %total = $salary + $bonus}
<tr align="right"> <td align="left">{$name}</td> <td>{$salary | %.2f}</td> <td>{$bonus | %.2f}</td> <td>{$total | %.2f}</td> </tr>
{/staff} </table>
|
|
Name
|
Salary
|
Bonus
|
Total
|
|
joe
|
1000.00
|
500.00
|
1500.00
|
|
jim
|
2000.00
|
400.00
|
2400.00
|
|
john
|
3000.00
|
300.00
|
3300.00
|
|
jack
|
4000.00
|
200.00
|
4200.00
|
|
jerry
|
5000.00
|
100.00
|
5100.00
|
|