{assign var="page_title" value="Patch-Administration"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Patch-Administration"}
{assign var="page_title_site" value="Patch-Administration"}



<table width="100%">
    <tr bgcolor="{$style.bg_2}">
        <th colspan="2">Inst.</th>
        <th>Version</th>
        <th>Informationstext</th>
        <th>Datum</th>
        <th>DL</th>
        <th>Auth</th>
        <th>Status</th>
        <th>Bearbeiten</th>
    </tr>
    {foreach from=$patches item=row}
    <tr>
        <td>{$row.installation}</td>
        <td>{$row.version}</td>
        <td>{$row.versionname}</td>
        <td>{$row.shardinfo}</td>
        <td>{$row.patch_creation|date_format:"%d.%m.%Y"}</td>
        <td>{$row.count_downloads}</td>
        <td>{$row.auth}</td>
        <td>{$row.status}</td>   
        <td>{$row.edit}</td>  
    </tr>
    {/foreach}
</table>
<br />
<p></p>
{form_errors error_list=$form_errors}
<form method="post" enctype="multipart/form-data" action="patch_admin.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Patch hinzufügen</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Installation</b></td>
	        <td bgcolor="{$style.bg_a}">
	            <select name="installID" class="list_form">
                    {html_options options=$CFG_INSTALLATION selected=$formvalues.installID}
                </select>
	        </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Version</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="versionname" size="22" maxlength="20" class="input_form" value="{$formvalues.versionname}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Informationstext</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" size="70" maxlength="255" name="shardinfo" class="input_form">{$formvalues.shardinfo}</textarea></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Zugriffslevel</b></td>
	        <td bgcolor="{$style.bg_a}">
                <select name="auth" class="list_form">
                    {html_options options=$user->ranknames selected=14}
                </select>
             </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>MD5-Hash</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="patch_verification" size="40" maxlength="32" class="input_form" value="{$formvalues.patch_verification}" /></td>
	    </tr>
    </table>
    <br />
    <input type="submit" name="send_add" class="button_form" value="Patch hinzufügen" />
    <input type="submit" name="send_createstaticpatch" class="button_form" value="Static Patch erstellen" />
</form>