{assign var="page_title" value="Screenshots bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Screenshots bearbeiten &raquo; Inhalt bearbeiten"}
{assign var="page_title_site" value="Screenshots bearbeiten"}

<form method="post" action="screenshots_admin.php" name="actionform">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="cat_edit" value="{$cat_edit}" />
    <input type="hidden" name="page_num" value="{$page_num}" />
	<table>
	    <tr bgcolor="{$style.bg_2}">
	        <th>Auswahl</th>
	        <th>Name</th>
	        <th>Beschreibung</th>
	    </tr>
	    {foreach from=$screenshots item=row}
	    <tr>
	        <td><input type="checkbox" name="checked[]" value="{$row.screenshotID}" /></td>
	        <td>{$row.title}</td>
	        <td>{$row.description|truncate:40:"..."}</td>
	    </tr>
	    {/foreach}
	</table>

    <p></p>
    <input type="submit" name="send_form" class="button_form" value="Markierte Löschen" onclick="return confirm_link( this, 'ACHTUNG! Es werden alle gewählten Screenshots unwiderruflich gelöscht!\nBilder wirklich löschen?' )" />
</form>
{$page_navigation}
<p></p>
{form_errors error_list=$form_errors}
<form method="post" enctype="multipart/form-data" action="screenshots_admin.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="cat_edit" value="{$cat_edit}" />
    <input type="hidden" name="page_num" value="{$page_num}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Screenshot hinzufügen</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Titel</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="title" size="30" maxlength="50" class="input_form" value="{$formvalues.title}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Beschreibung</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="description" size="30" maxlength="250" class="input_form" value="{$formvalues.description}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Datei</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="file" name="file" size="30" class="input_form" /></td>
	    </tr>
    </table>
    <br />
    <input type="submit" name="send_form" class="button_form" value="Screenshot hochladen" />
</form>