<?php
/* Smarty version 3.1.29, created on 2016-08-02 23:44:11
  from "/var/www/user179/data/www/evomu.ru/views/templates/default/user/charactermarket/mylist.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57a1061b49e0f0_90093068',
  'file_dependency' => 
  array (
    '7d173f86aa6133908d9be12756d17e2314dc2f99' => 
    array (
      0 => '/var/www/user179/data/www/evomu.ru/views/templates/default/user/charactermarket/mylist.tpl',
      1 => 1470170649,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57a1061b49e0f0_90093068 ($_smarty_tpl) {
?>
<div class="title1">
    <h1>Магазин персонажей | Мои персонажы</h1>
    <a href="/user/charmarket" class="back-to-user-menu">Вернуться в магазин</a>
</div>
<div id="changepass">
    <p>В этом разделе вы можете увидеть всех персонажей на продаже и изменить их цену</p>
    <table>
        <thead>
            <tr>
                <th>Ник</th>
                <th>Цена</th>
            </tr>
        </thead>
        <tbody>
        <?php
$_from = $_smarty_tpl->tpl_vars['MyList']->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;
$__foreach_char_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['char'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['char']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['char']->value) {
$_smarty_tpl->tpl_vars['char']->_loop = true;
$__foreach_char_0_saved_local_item = $_smarty_tpl->tpl_vars['char'];
?>
            <tr style="text-align:center;">
                <td><?php echo $_smarty_tpl->tpl_vars['char']->value['nickname'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['char']->value['price'];?>
</td>
            </tr>
        <?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;
}
if ($__foreach_char_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_char_0_saved_key;
}
?>
        </tbody>
    </table>
    
    <form action="/user/charmarket/mylist" method="post">

        <p>

        <span>Выберите персонажа: </span>
        <select name="selected_char" id="selected_char">
            <?php
$_from = $_smarty_tpl->tpl_vars['MyList']->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;
$__foreach_char_1_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['char'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['char']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['char']->value) {
$_smarty_tpl->tpl_vars['char']->_loop = true;
$__foreach_char_1_saved_local_item = $_smarty_tpl->tpl_vars['char'];
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value['nickname'];?>
"><?php echo $_smarty_tpl->tpl_vars['char']->value['nickname'];?>
</option>
            <?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;
}
if ($__foreach_char_1_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_char_1_saved_key;
}
?>
        </select>
        <input type="text" name="price" placeholder="Поставьте новую цену"> <span><?php echo $_smarty_tpl->tpl_vars['Valutes']->value[$_smarty_tpl->tpl_vars['Config']->value['Valute']]['Name'];?>
</span>
        </p>
        <p>
            <input type="submit" name="update_char" value="Изменить">
        </p>
    </form>

</div><?php }
}
