<?php
/* Smarty version 3.1.29, created on 2016-11-16 15:33:06
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/user/grandreset.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_582c6e221a1b63_36669420',
  'file_dependency' => 
  array (
    'e28cfa59837c56d03d8ddb402fb13034930c416f' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/user/grandreset.tpl',
      1 => 1479306780,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_582c6e221a1b63_36669420 ($_smarty_tpl) {
?>
<div class="reset">
    <form action="/user/grandreset" 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['NeedToGrandReset']->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['NeedToGrandReset']->value['NeedLevel'];?>
</span>
                    <?php } else { ?>
                        <span style="color: green;"><?php echo $_smarty_tpl->tpl_vars['NeedToGrandReset']->value['NeedLevel'];?>
</span>
                    <?php }?>
                </td>
            </tr>
            <tr>
                <td>Нужен ресет</td>
                <td>
                    <?php if ($_smarty_tpl->tpl_vars['Character']->value['Resets'] < $_smarty_tpl->tpl_vars['NeedToGrandReset']->value['NeedReset']) {?>
                        <?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['NeedToGrandReset']->value['NeedReset'];?>
</span>
                    <?php } else { ?>
                        <span style="color: green;"><?php echo $_smarty_tpl->tpl_vars['NeedToGrandReset']->value['NeedReset'];?>
</span>
                    <?php }?>
                </td>
            </tr>
            <tr>
                <td>Нужно денег</td>
                <td>
                    <?php if ($_smarty_tpl->tpl_vars['Character']->value['Money'] < $_smarty_tpl->tpl_vars['NeedToGrandReset']->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['NeedToGrandReset']->value['NeedZen'];?>
</span>
                    <?php } else { ?>
                        <span style="color: green;"><?php echo $_smarty_tpl->tpl_vars['NeedToGrandReset']->value['NeedZen'];?>
</span>
                    <?php }?>
                </td>
            </tr>
            <?php if ($_smarty_tpl->tpl_vars['NeedToGrandReset']->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['NeedToGrandReset']->value['ClearSkill']) {?>
                <tr>
                    <td colspan="2">
                        Скилы будут очищенны
                    </td>
                </tr>
            <?php }?>
            <tr>
                <td colspan="2">
                    Вы получите <?php echo $_smarty_tpl->tpl_vars['NeedToGrandReset']->value['RewardPoints'];?>
 поинтов
                </td>
            </tr>
            <tr>
                <?php if ($_smarty_tpl->tpl_vars['Block']->value == true) {?>
                    <td>Условия не выполнены</td>
                <?php } else { ?>
                    <td><button name="btn_grand_reset">Сделать гранд ресет</button></td>
                <?php }?>
            </tr>
        </table>
    </form>
</div><?php }
}
