
<div id="content" style="text-align: center; color: #fff;">
    <div id="box1">
        <div class="title1">
            <h1>Смена класса</h1>
            <a href="/user" class="back-to-user-menu">Back to user menu</a>
        </div>
        <div id="content_center">
            <div class="box-style1" style="margin-bottom:25px;">
                <div class="entry">
                    <div>
                        <form action="/user/changeclass" method="post">
                        <table class="need-to-greset">
                            <tr>
                                <td>Имя персонажа: </td>
                                <td ><b style="color:#FECF75;">
                                        <select name="selected_char" id="change_class_selected_char">
                                            {foreach $Chars as $char}
                                                {if $char != ''}
                                                    {if $char == $ActiveChar}
                                                        <option value="{$char}" selected>{$char}</option>
                                                    {else}
                                                        <option value="{$char}">{$char}</option>
                                                    {/if}
                                                {/if}
                                            {/foreach}
                                        </select>
                                </td>
                            </tr>

                            <tr>
                                <td>Нужен уровень: </td>
                                <td>{$NeedToChangeClass.NeedLevel}</td>
                            </tr>
                            <tr>
                                <td>Нужен ресет: </td>
                                <td>{$NeedToChangeClass.NeedReset}</td>
                            </tr>
                            <tr>
                                <td colspan="2">Нужен пустой инвентарь </td>
                            </tr>
                            <tr>
                                <td>Выбирите класс: </td>
                                <td>
                                    <select name="class" id="class">
                                        {foreach $NeedToChangeClass.Classes item=need key=class}

                                            {if $need}
                                                <option value="{$class}">{$class}</option>
                                            {/if}

                                        {/foreach}
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">Стоимость смены класса</td>
                            </tr>
                            <tr>
                                {$i=0}
                                {foreach $Valutes as $valute}
                                    {if ($valute.Name != '' && $NeedToChangeClass.Take.Valutes[$i] > 0)}
                                        <td>{$valute.Name}: {$NeedToChangeClass.Take.Valutes[$i]} </td>
                                    {/if}
                                    {$i=$i+1}
                                {/foreach}
                            </tr>
                            <tr>
                                <td colspan="2"><input type="submit" class="newButton" value="Сменить" name="btn_new_class" style="width:25%"></input></td>
                            </tr>
                        </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
