{assign var="page_title" value="WEPs"}
{assign var="page_title_long" value="WEP-Galerie"}
{assign var="page_title_site" value="WEP-Galerie"}

<table>
    {assign var="i" value=0}
    <tr>
    {counter start=0 skip=1 print=false assign=i}
    {foreach from=$weps item=item}
        {counter}
        {if $i > $ppr}
    	</tr><tr>
        {counter start=1 skip=1 print=false assign=i}
        {/if}
        <td width="{$item.thumbsize.0}" height="{$item.thumbsize.1}" valign="top" align="center">
        {if $item.title == "Preview: Charaktererstellung"}
        	<a href="wep.php?special=chargen_preview" style="text-decoration: none;">
        {else}
        	<a href="javascript:open_popup('wep.php?imgID={$item.wepID}&amp;{$SID}','wep',{$item.imgsize.0},{$item.imgsize.1+100})" style="text-decoration: none;">
        {/if}
        	<img src="{$item.thumburl}" border ="0" alt="{$item.title}" width="{$item.thumbsize.0}" height="{$item.thumbsize.1}" /><br />
	        {$item.title}
        </a>
	        <br /> 
	    </td>
        <td width="10"> </td>
    {/foreach}
    </tr>
</table>

{$page_navigation}