<showsource >
<block name="block1" var1="asdf" var2="ewr">
<datasource name="contacts" function="getContacts" />
<eval result="rows" function="sizeof" var1=contacts />
<datasource name="users" function="getUsers" />
<table width="400" border="1">
<foreach name="user" source="users" >
<tr>
<td rowspan="{rows}+1"><= {user.name}|strtolower /></td>
</tr>
<foreach name="contact" source="contacts">
<datasource name="usercontact" folder="" function="getUserContacts" var1=user.id var2=contact.id />
<tr>
<td><= {contact.type|strtolower} /></td>
<td><foreach name="uc" source="usercontact"><= {uc.c|strrev} /><br></foreach></td>
</tr>
</foreach>
</foreach>
</table>
</block>
<printblock name="block1" />
</showsource> |