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

{form_errors error_list=$form_errors}
<form method="post" action="loot.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="edit" value="{$formvalues.edit}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Lootitem bearbeiten</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Lootliste</b></td>
	        <td bgcolor="{$style.bg_a}">
	        	<select name="list_id" class="list_form">
                    {html_options options=$lists selected=$formvalues.list_id}
                </select>
	        </td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Gegenstand</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="herstellungsid" class="list_form">
                    {html_options options=$herstellungsids selected=$formvalues.herstellungsid}
                </select>
	        </td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Wahrscheinlichkeit</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="wkeit" size="30" maxlength="5" class="input_form" value="{$formvalues.wkeit}" /></td>
	    	<td><small>(0-10000)</small></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Minimalzahl</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="min_anzahl" size="30" maxlength="5" class="input_form" value="{$formvalues.min_anzahl}" /></td>
	    	<td></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Maximalzahl</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="max_anzahl" size="30" maxlength="5" class="input_form" value="{$formvalues.max_anzahl}" /></td>
	    	<td></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>W-Verteilung</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="wverteilung" class="list_form">
                    <option value="gleichverteilt">Gleichverteilt</option>
                    <option value="fallend"{if $formvalues.wverteilung=="fallend"} selected="selected"{/if}>Fallend</option>
                     <option value="steigend"{if $formvalues.wverteilung=="steigend"} selected="selected"{/if}>Steigend</option>
                </select>
	        </td>
	    	<td></td>
	    </tr>
    </table>
    <br />
    <input type="submit" name="send_form" class="button_form" value="Ändern..." />
</form>