{assign var="page_title" value="Quest Item bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Quest Item &raquo; Inhalt bearbeiten"}
{assign var="page_title_site" value="Quest Item bearbeiten"}
<p></p>
{$page_navigation}
<p></p>
{form_errors error_list=$form_errors}

<form method="post" enctype="multipart/form-data" action="quest_items.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <table>
    {counter start=0 skip=1 print=false assign=i}
    {foreach from=$qitems item=row}
	    <input type="hidden" name="sort" value="{$sort}" class="input_form">
	    <input type="hidden" name="questitemid" value="{$row.questitemid}" class="input_form">
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Name</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="name" size="30"
				readonly maxlength="30" class="input_form" value="{$row.name}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>grafik</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="grafikid" size="10"
				readonly maxlength="10" class="input_form" value="{$row.grafikid}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Spieler</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="empfaenger" size="30"
				readonly maxlength="30" class="input_form" value="{$row.empfaenger_n}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Vergabezeitpunkt</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="zeit" size="11"
				readonly maxlength="11" class="input_form" value="{$row.zeit}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Vergebender GM</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="gm" size="30"
				readonly maxlength="30" class="input_form" value="{$row.gm_n}" /></td>
	    </tr>
        <tr>
	        <td align="right" valign="top"><b>Hintergrund</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea cols="50" rows="3" name="erklaerung"
				{if $row.authorisierender_gm}readonly{/if}
				>{$row.erklaerung}</textarea></td>
	    </tr>
		{if $row.authorisierender_gm}
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Autorisierung durch</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="authorisierender_gm" size="30"
			    readonly maxlength="30" class="input_form" value="{$row.authorisierender_gm_n}" /></td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>autorisiert am</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="authorisierung_zeitpunkt" size="11"
			    readonly maxlength="11" class="input_form" value="{$row.authorisierung_zeitpunkt}" /></td>
	    </tr>
		{/if}
		{if $authorisieren}
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Autorisieren</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="checkbox" name="authorisieren"
				value="" class="input_form" readonly=""></td>
	    </tr>
		{/if}
        <tr>
	        <td align="right" valign="top"><b>Komentar</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea cols="50" rows="3"
				name="kommentar">{$row.kommentar}</textarea></td>
	    </tr>
        <tr>
	        <td height="40"><input type="submit" name="break" class="button_form"
				value="Abbrechen" /></td>
	        <td colspan="2" align="right"><input type="submit" name="Save" class="button_form"
				value="Speichern" /></td>
	    </tr>
    {counter}
    {/foreach}
    </table>
</form>