<h1>Change Class</h1>
<form action="/admin/modules/changeclass" method="post">
<table>
    <tr>
        <td>Enable</td>
        <td>
            {if $Config.Enable}
                <input name="Enable" id="Enable" type="checkbox" checked/>
            {else}
                <input name="Enable" id="Enable" type="checkbox"/>
            {/if}
        </td>
    </tr>
    <tr>
        <td>Need Level</td>
        <td><input name="NeedLevel" id="NeedLevel" value="{$Config.NeedLevel}" type="text"/></td>
    </tr>
    <tr>
        <td>Need Reset</td>
        <td><input name="NeedReset" id="NeedReset" value="{$Config.NeedReset}" type="text"/></td>
    </tr>

    <tr>
        <td>Need Empty Inventory</td>
        <td>
            {if $Config.NeedEmptyInv}
                <input name="NeedEmptyInv" id="NeedEmptyInv" type="checkbox" checked/>
            {else}
                <input name="NeedEmptyInv" id="NeedEmptyInv" type="checkbox"/>
            {/if}
        </td>

    </tr>
    <tr>
        <td colspan="2">
            <select style="width: 170px;" class="multibox-change-class" name="Characters[]" id="Characters[genre]" multiple="multiple" size="7">
                {if $Config.Classes.DW}
                <option selected value="0">Dark Wizard</option>
                {else}
                <option value="0">Dark Wizard</option>
                {/if}
                {if $Config.Classes.DK}
                <option selected value="1">Dark Knight</option>
                {else}
                <option value="1">Dark Knight</option>
                {/if}
                {if $Config.Classes.ELF}
                <option selected value="2">Fairy Elf</option>
                {else}
                <option value="2">Fairy Elf</option>
                {/if}
                {if $Config.Classes.SUM}
                <option selected value="3">Summoner</option>
                {else}
                <option value="3">Summoner</option>
                {/if}
                {if $Config.Classes.MG}
                <option selected value="4">Magic Gladiator</option>
                {else}
                <option value="4">Magic Gladiator</option>
                {/if}
                {if $Config.Classes.DL}
                <option selected value="5">Dark Lord</option>
                {else}
                <option value="5">Dark Lord</option>
                {/if}
                {if $Config.Classes.RF}
                <option selected value="6">Rage Fighter</option>
                {else}
                <option value="6">Rage Fighter</option>
                {/if}
            </select>
            <span>Hot Key Ctrl and Shift</span>
        </td>
    </tr>
    <tr><td colspan="2">Price Change Class</td></tr>
    {foreach $Valutes item=$val key=$i}
        {if $val.Name != ''}
        <tr>
            <td>
                Valute {$i}({$val.Name})
            </td>
            <td>
                <input name="val_take_{$i}" value="{$Config.Take.Valutes[$i]}" type="text">
            </td>
        </tr>
        {/if}
    {/foreach}
    <tr>
        <td colspan="2">
            <button class="def_adm_btn" name="changeclass_btn">Save</button>
        </td>
    </tr>
</table>
</form>