<?php
/* Smarty version 3.1.29, created on 2016-10-18 17:14:04
  from "/var/www/gredy/data/www/evomu.ru/views/templates/default/user/changeclass.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_58062e2ca9d973_90059803',
  'file_dependency' => 
  array (
    '0c339bd1be22cb012c3ff605a036b08da162b05e' => 
    array (
      0 => '/var/www/gredy/data/www/evomu.ru/views/templates/default/user/changeclass.tpl',
      1 => 1476791140,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58062e2ca9d973_90059803 ($_smarty_tpl) {
?>

<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">
                                            <?php
$_from = $_smarty_tpl->tpl_vars['Chars']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_char_0_saved_item = isset($_smarty_tpl->tpl_vars['char']) ? $_smarty_tpl->tpl_vars['char'] : false;
$_smarty_tpl->tpl_vars['char'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['char']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['char']->value) {
$_smarty_tpl->tpl_vars['char']->_loop = true;
$__foreach_char_0_saved_local_item = $_smarty_tpl->tpl_vars['char'];
?>
                                                <?php if ($_smarty_tpl->tpl_vars['char']->value != '') {?>
                                                    <?php if ($_smarty_tpl->tpl_vars['char']->value == $_smarty_tpl->tpl_vars['ActiveChar']->value) {?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
" selected><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                    <?php } else { ?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                    <?php }?>
                                                <?php }?>
                                            <?php
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_0_saved_local_item;
}
if ($__foreach_char_0_saved_item) {
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_0_saved_item;
}
?>
                                        </select>
                                </td>
                            </tr>

                            <tr>
                                <td>Нужен уровень: </td>
                                <td><?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['NeedLevel'];?>
</td>
                            </tr>
                            <tr>
                                <td>Нужен ресет: </td>
                                <td><?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['NeedReset'];?>
</td>
                            </tr>
                            <tr>
                                <td colspan="2">Нужен пустой инвентарь </td>
                            </tr>
                            <tr>
                                <td>Выбирите класс: </td>
                                <td>
                                    <select name="class" id="class">
                                        <?php
$_from = $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Classes'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_need_1_saved_item = isset($_smarty_tpl->tpl_vars['need']) ? $_smarty_tpl->tpl_vars['need'] : false;
$__foreach_need_1_saved_key = isset($_smarty_tpl->tpl_vars['class']) ? $_smarty_tpl->tpl_vars['class'] : false;
$_smarty_tpl->tpl_vars['need'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['class'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['need']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['class']->value => $_smarty_tpl->tpl_vars['need']->value) {
$_smarty_tpl->tpl_vars['need']->_loop = true;
$__foreach_need_1_saved_local_item = $_smarty_tpl->tpl_vars['need'];
?>

                                            <?php if ($_smarty_tpl->tpl_vars['need']->value) {?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['class']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['class']->value;?>
</option>
                                            <?php }?>

                                        <?php
$_smarty_tpl->tpl_vars['need'] = $__foreach_need_1_saved_local_item;
}
if ($__foreach_need_1_saved_item) {
$_smarty_tpl->tpl_vars['need'] = $__foreach_need_1_saved_item;
}
if ($__foreach_need_1_saved_key) {
$_smarty_tpl->tpl_vars['class'] = $__foreach_need_1_saved_key;
}
?>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">Стоимость смены класса</td>
                            </tr>
                            <tr>
                                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(0, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_valute_2_saved_item = isset($_smarty_tpl->tpl_vars['valute']) ? $_smarty_tpl->tpl_vars['valute'] : false;
$_smarty_tpl->tpl_vars['valute'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['valute']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['valute']->value) {
$_smarty_tpl->tpl_vars['valute']->_loop = true;
$__foreach_valute_2_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                                    <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                                        <td><?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
 </td>
                                    <?php }?>
                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable($_smarty_tpl->tpl_vars['i']->value+1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                <?php
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_2_saved_local_item;
}
if ($__foreach_valute_2_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_2_saved_item;
}
?>
                            </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>
<?php }
}
