<?php
/* Smarty version 3.1.29, created on 2016-11-16 17:56:23
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/user/reset.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_582c8fb7decff7_27628532',
  'file_dependency' => 
  array (
    '8aea4aa5adad24849dd4d1a4ff41bb0bcaa3a15b' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/user/reset.tpl',
      1 => 1479315321,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_582c8fb7decff7_27628532 ($_smarty_tpl) {
?>
<div class="reset">
<form action="/user/reset" method="post">
    <table width="100%">
        <tr>
            <td>Персонаж: </td>
            <td><?php echo $_smarty_tpl->tpl_vars['Character']->value['Name'];?>
</td>
        </tr>
        <tr>
            <td>Нужен уровень</td>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['Character']->value['cLevel'] < $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedLevel']) {?>
                    <?php $_smarty_tpl->tpl_vars['Block'] = new Smarty_Variable(true, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'Block', 0);?>
                    <span style="color: red;"><?php echo $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedLevel'];?>
</span>
                <?php } else { ?>
                    <span style="color: green;"><?php echo $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedLevel'];?>
</span>
                <?php }?>
            </td>
        </tr>
        <tr>
            <td>Нужно денег</td>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['Character']->value['Money'] < $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedZen']) {?>
                    <?php $_smarty_tpl->tpl_vars['Block'] = new Smarty_Variable(true, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'Block', 0);?>
                    <span style="color: red;"><?php echo $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedZen'];?>
</span>
                <?php } else { ?>
                    <span style="color: green;"><?php echo $_smarty_tpl->tpl_vars['NeedToReset']->value['NeedZen'];?>
</span>
                <?php }?>
            </td>
        </tr>
        <?php if ($_smarty_tpl->tpl_vars['NeedToReset']->value['NeedEmptyInv']) {?>
        <tr>
            <td colspan="2">
                <?php if (Character::EmptyInventory($_smarty_tpl->tpl_vars['Character']->value)) {?>
                    <span style="color: green;">Инвентарь пуст</span>
                <?php } else { ?>
                    <?php $_smarty_tpl->tpl_vars['Block'] = new Smarty_Variable(true, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'Block', 0);?>
                    <span style="color: red;">Инвентарь не пуст</span>
                <?php }?>
            </td>
        </tr>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['NeedToReset']->value['ClearSkill']) {?>
            <tr>
                <td colspan="2">
                    Скилы будут очищенны
                </td>
            </tr>
        <?php }?>
        <tr>
            <td colspan="2">
                Вы получите <?php echo $_smarty_tpl->tpl_vars['NeedToReset']->value['RewardPoints'];?>
 поинтов
            </td>
        </tr>
        <tr>
            <?php if ($_smarty_tpl->tpl_vars['Block']->value == true) {?>
            <td>Условия не выполнены</td>
            <?php } else { ?>
                <td><button name="btn_reset">Сделать ресет</button></td>
            <?php }?>
        </tr>
    </table>
    </form>
</div><?php }
}
