the templates of the style below a problem, it is tested number of columns, does not function
for exemple: myalbum_block_rphoto.php
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<{foreach item=photo key=count from=$block.photo}>
<td align='center' style='margin:0px;padding:5px 0px;'>
<a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
</td>
<{if $count is div by $block.cols }>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>
a code of table of too is generated
</td></tr><tr></tr></table>
sorry for my english