<ul class="pic_list">
{loop $data $n $r}
<li><a href="{$r[url]}" target="{$target}"><img src="{thumb($r[thumb], $width, $height)}" width="{$width}" height="{$height}" alt="{$r[title]}" /></a><br /><a href="{$r[url]}" target="{$target}">{if $r[style]}<span class="{$r[style]}">{str_cut($r[title], $titlelen,'')}</span>{else}{str_cut($r[title], $titlelen,'')}{/if}</a></li>
{/loop}
</ul>
{if $pages}<p id="pages">{$pages}</p>{/if}