Try:
<table id="site" class="display">
<thead>
<tr>
<th></th>
<th>time</th>
<th>program</th>
<th>level</th>
<th>location</th>
</tr>
</thead>
<tbody>
{{oldday=None}}
{{for program in timetable:}}
{{if program.day!=oldday:}}
<tr>
<td>{{=program.day}}</td>
</tr>
{{oldday=program.day}}
{{pass}}
<tr>
<td>{{=program.time}}</td>
<td>{{=program.program}}</td>
<td>{{=program.level}}</td>
<td>{{=program.location}}</td>
</tr>
{{pass}}
</tbody>
</table>
Note that you could use COLSPAN on the program.day TD if you want it
to span several columns.
Denes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---