<?php
/* Smarty version 3.1.29, created on 2017-08-13 16:52:42
  from "/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/cabinet/vote.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_599059aa980a53_53028637',
  'file_dependency' => 
  array (
    'b63aae08141030f99ea02c691cdb2491d53ef569' => 
    array (
      0 => '/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/cabinet/vote.tpl',
      1 => 1502310194,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_599059aa980a53_53028637 ($_smarty_tpl) {
?>
<div class="section_view col-md-6">
         <section class="widget">
            <header>
                <h4>
                    <i class="fa fa-gift"></i>
                    Награда за голоса MMOTOP
                </h4>
            </header>
            <div class="body">
                <?php if ($_smarty_tpl->tpl_vars['VoteConfig']->value['MMOTop']['Enable']) {?>
                <?php if (empty($_smarty_tpl->tpl_vars['ListVote']->value['MMOTop'])) {?>
                    <p>Список голосов с MMOTop пуст</p>
                    <p>При голосование обязательно укажите ваш аккаунт!</p>
                <?php } else { ?>
                    <table width="100%">
                        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="6">Голоса от MMOTop</td></tr>
                        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="6">Для того чтобы получить награду, ваш аккаунт должен быть Оффлайн.</td></tr>
                        <tr>
                            <th>Дата голосования</th>
                            <th>Время голосования</th>
                            <th>Тип голоса</th>
                            <th>Получить награду</th>
                        </tr>

                        <?php
$_from = $_smarty_tpl->tpl_vars['ListVote']->value['MMOTop'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_0_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_0_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
                            <tr>
                                <td class="vote-date"><?php echo $_smarty_tpl->tpl_vars['value']->value[1];?>
</td>
                                <td class="vote-time"><?php echo $_smarty_tpl->tpl_vars['value']->value[2];?>
</td>
                                <td class="vote-type"><?php echo $_smarty_tpl->tpl_vars['value']->value['Valutes']['Type'];?>
</td>
                  
                                <td colspan="3">
                                    <form action="/cabinet/vote" method="post">
                                        <button class="button-reward-vote btn btn-success" type="submit" name="mmotop_vote_id" value="<?php echo $_smarty_tpl->tpl_vars['value']->value[0];?>
">
                                            <?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_1_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_1_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                                                <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['value']->value['Valutes']['Count'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                                                <span><?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <?php echo $_smarty_tpl->tpl_vars['value']->value['Valutes']['Count'][$_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_1_saved_local_item;
}
if ($__foreach_valute_1_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_1_saved_item;
}
?>
                                        </button>
                                    </form>
                                </td>
                            </tr>
                        <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_local_item;
}
if ($__foreach_value_0_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_item;
}
?>
                    </table>
                <?php }?>
                <?php }?>
            </div>
        </section>
       
    </div>
    <div class="section_view col-md-6">
         <section class="widget">
            <header>
                <h4>
                    <i class="fa fa-gift"></i>
                    Награда за голоса Q-TOP
                </h4>
            </header>
            <div class="body">
                
<?php if ($_smarty_tpl->tpl_vars['VoteConfig']->value['QTop']['Enable']) {
if (empty($_smarty_tpl->tpl_vars['ListVote']->value['QTop'])) {?>
   <p>Список голосов с QTop пуст</p>
   <p>При голосование обязательно укажите ваш аккаунт!</p>
<?php } else { ?>
    <table width="100%">
        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="6">Голоса от QTop</td></tr>
        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="6">Для того чтобы получить награду, ваш аккаунт должен быть Оффлайн.</td></tr>
        <tr>
            <th>Дата голосования</th>
            <th>Время голосования</th>
            <th>Тип голоса</th>
                            <th>Получить награду</th>

        </tr>
        <?php
$_from = $_smarty_tpl->tpl_vars['ListVote']->value['QTop'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_2_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_2_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
            <tr>
                <td class="vote-date"><?php echo $_smarty_tpl->tpl_vars['value']->value['date'];?>
</td>
                <td class="vote-time"><?php echo $_smarty_tpl->tpl_vars['value']->value['time'];?>
</td>
                <td class="vote-type"><?php echo $_smarty_tpl->tpl_vars['value']->value['Valutes']['Type'];?>
</td>

                <td colspan="3">
                    <form action="/cabinet/vote" method="post">
                        <button class="button-reward-vote btn btn-success" type="submit" name="qtop_vote_id" value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
">
                            <?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_3_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_3_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                                <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['value']->value['Valutes'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                                <span><?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <?php echo $_smarty_tpl->tpl_vars['value']->value['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_3_saved_local_item;
}
if ($__foreach_valute_3_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_3_saved_item;
}
?>
                        </button>
                    </form>
                </td>
            </tr>
        <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_2_saved_local_item;
}
if ($__foreach_value_2_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_2_saved_item;
}
?>
    </table>
<?php }
}?>
            </div>
        </section>
       
    </div><?php }
}
