<?php
/* Smarty version 3.1.29, created on 2016-07-25 08:33:17
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/user/shopreturn.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5795c0bd984dd3_47656843',
  'file_dependency' => 
  array (
    '2c8a1a229a393e87666d3ab7f5ce2fe9103e1b35' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/user/shopreturn.tpl',
      1 => 1468447026,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5795c0bd984dd3_47656843 ($_smarty_tpl) {
echo '<script'; ?>
 src="/web/templates/default/js/tooltip.js" type="text/javascript"><?php echo '</script'; ?>
>

<link rel="stylesheet" href="/web/templates/default/css/shop.css">
<h1>Магазин (Купленые вещи)</h1>
<a href="/user" class="back-to-user-menu">Back to user menu</a>
<div>

    <div class="smithy">

        <div class="return">
            <span><?php echo $_smarty_tpl->tpl_vars['CharacterValutes']->value[$_smarty_tpl->tpl_vars['Config']->value['MainValute']]['Name'];?>
: <?php echo $_smarty_tpl->tpl_vars['CharacterValutes']->value[$_smarty_tpl->tpl_vars['Config']->value['MainValute']]['Count'];?>
</span>
            <a href="/user/shop" class="nice-button">В магазин</a>
        </div>

        <div class="spacer_2px"></div>

        <div class="smithy_wrapper">


<table class="return-item-table" width="100%">
    <thead>
    <tr>
        <th>Вещь</th>
        <th>Дата и время покупки</th>
        <th>Стоимость</th>
        <th>Вернуть</th>
    </tr>
    </thead>
    <tbody>
    <?php
$_from = $_smarty_tpl->tpl_vars['List']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_item_0_saved_item = isset($_smarty_tpl->tpl_vars['item']) ? $_smarty_tpl->tpl_vars['item'] : false;
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['item']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$__foreach_item_0_saved_local_item = $_smarty_tpl->tpl_vars['item'];
?>
        <tr>
            <td style="height: 90px;" class="">
                <div style='height: 100%; background: url("<?php echo $_smarty_tpl->tpl_vars['item']->value['item']['thumb'];?>
") no-repeat center center;' onmouseover="Tip('<?php echo $_smarty_tpl->tpl_vars['item']->value['item']['info'];?>
');" onmouseout="UnTip();">&nbsp;</div>
            </td>
            <td class="vote-time"><?php echo $_smarty_tpl->tpl_vars['item']->value['time'];?>
</td>
            <td class=""><?php echo $_smarty_tpl->tpl_vars['item']->value['price'];?>
</td>
            <td class=""><button name="back_button" class="btn-orange" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">Вернуть за <?php echo round($_smarty_tpl->tpl_vars['item']->value['price']-$_smarty_tpl->tpl_vars['item']->value['price']*$_smarty_tpl->tpl_vars['ReturnProcent']->value/100);?>
 <?php echo $_smarty_tpl->tpl_vars['CharacterValutes']->value[$_smarty_tpl->tpl_vars['Config']->value['MainValute']]['Name'];?>
</button></td>
        </tr>

    <?php
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_local_item;
}
if ($__foreach_item_0_saved_item) {
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_item;
}
?>
    </tbody>
</table>
        </div>

        <div class="spacer_2px"></div>
    </div>



    </form>
</div>




<?php }
}
