{assign var="page_title" value="Screenshots"}
{assign var="page_title_long" value="Screenshot-Galerie"}
{assign var="page_title_site" value="Screenshot-Galerie"}

<form action="screenshots.php" method="post">
	<input type="hidden" name="sid" value="{$SID_SHORT}" />
    <b>Kategorie:</b>
    <select name="category" class="list_form">
    	{html_options options=$catlist selected=$cat.categoryID}
    </select>
    <input type="submit" name="set_cat" value="GO" class="button_form" />
</form>

<table>
    <tr>
    {counter start=0 skip=1 print=false assign=i}
    {foreach from=$screenshots 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">
            <a href="javascript:open_popup('screenshots.php?imgID={$item.screenshotID}&amp;{$SID}','screenshot',{$item.imgsize.0+16},{$item.imgsize.1+160})" style="text-decoration: none;">
	        	<img src="{$item.thumburl}" border ="0" alt="{$item.title}" width="{$item.thumbsize.0}" height="{$item.thumbsize.1}" />
	        	{$item.title}
            </a>
	        <br /> 
	    </td>
        <td width="10"> </td>
    {/foreach}
    </tr>
</table>

{$page_navigation}