<?php
/* Smarty version 3.1.29, created on 2016-07-31 19:33:51
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/default/user/charactermarket/sell.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_579e448fce4411_85786336',
  'file_dependency' => 
  array (
    '3f59c7483f217181833463bfccec5b02c6169e0d' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/default/user/charactermarket/sell.tpl',
      1 => 1469814068,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_579e448fce4411_85786336 ($_smarty_tpl) {
?>
<div class="title1">
    <h1>Магазин персонажей | Продать персонажа</h1>
    <a href="/user/charmarket" class="back-to-user-menu">Вернуться в магазин</a>
</div>
<div>
    <p>В этом разделе вы можете выставить своего персонажа на продажу</p>
    <form action="/user/charmarket/sell" method="post">

        <p>
        <?php if ($_smarty_tpl->tpl_vars['Config']->value['CheckEmail']) {?>
            <p>
                <span>Введите почтовый ящик: </span>
                <input type="text" name="sell_email" placeholder="E-Mail">
            </p>
        <?php }?>
            <span>Выберите персонажа: </span>
            <select name="selected_char" id="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;
$__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'];
?>
                    <?php if ($_smarty_tpl->tpl_vars['char']->value != '') {?>
                        <?php if (in_array($_smarty_tpl->tpl_vars['char']->value,$_smarty_tpl->tpl_vars['MyList']->value)) {?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
" disabled><?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;
}
if ($__foreach_char_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_char_0_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="sell_char" value="Выставить">
        </p>
    </form>

</div><?php }
}
