<?php
/* Smarty version 3.1.29, created on 2016-08-26 15:47:29
  from "/var/www/gredy/data/www/evomu.ru/views/templates/evomu/user/changename.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57c03a61949fc9_07576350',
  'file_dependency' => 
  array (
    '4d84f506f1edc05cfa029bb5bbd9acda7e827b4f' => 
    array (
      0 => '/var/www/gredy/data/www/evomu.ru/views/templates/evomu/user/changename.tpl',
      1 => 1470087126,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57c03a61949fc9_07576350 ($_smarty_tpl) {
?>
<div class="title1">
    <h1>Смена ника</h1>
    <a href="/user" class="back-to-user-menu">Back to user menu</a>
</div>
<div id="changepass">
    <form action="/user/changename" method="post">
        <p>
            Стоимость:
            <?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_0_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_0_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['Config']->value['Price']['Valutes'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                    <?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <span style="color: orange;"><?php echo $_smarty_tpl->tpl_vars['Config']->value['Price']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
</span> ,
                <?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_0_saved_local_item;
}
if ($__foreach_valute_0_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_0_saved_item;
}
?>
        </p>
        <table cellspacing="1">
            <tr>
                <td>Старый ник</td>
                <td><select name="old_name" id="old_name">
                        <?php
$_from = $_smarty_tpl->tpl_vars['Chars']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_char_1_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_1_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['ChangeNameActivePlayer']->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_1_saved_local_item;
}
if ($__foreach_char_1_saved_item) {
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_1_saved_item;
}
?>
                    </select></td>
            </tr>
            <tr>
                <td>Новый ник</td>
                <td><input type="text" placeholder="Новый ник" name="new_name"></td>
            </tr>

            <tr>
                <td colspan="2"><input name="change_name" type="submit" value="Сменить"></td>
            </tr>
        </table>
    </form>
</div><?php }
}
