<?php
/* Smarty version 3.1.29, created on 2016-11-16 17:56:11
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/user/referrals.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_582c8fabe23b61_31107080',
  'file_dependency' => 
  array (
    'd515eb0db7416ad1847bd6d3a1a8cbdc1ab1e1eb' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/user/referrals.tpl',
      1 => 1479315369,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_582c8fabe23b61_31107080 ($_smarty_tpl) {
?>
<img src="/web/templates/Freyamu/images/ref.png">
<?php echo '<script'; ?>
 src="/web/templates/default/js/referrals.js"><?php echo '</script'; ?>
>
<div class="referrals">


<div class="post_wrapp_n">
			<div class="post_wrapp_v2">
				<a style="color: #ffa759;font-size: 11px;font-weight: 600;">Информация</a>
				
				
				
				
				
				
				
				
				<div class="d_b-content ptop">

						<div class="post_text_n">
							<form id="unitpayForm1" action="https://unitpay.ru/pay/20540-4e268/qiwi" method="post" target="_blank">
								<table cellspacing="0">
									
									<tbody>
										
										<tr>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="account" style="cursor: pointer;">Шаг 1:</label></td>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="coins" style="cursor: pointer;">Нужен 5 Ресет, Награда 30,000,000 Zen, + 2 ResetPoint</label></td>
										</tr>
										<tr>
											
											
										</tr>
										
									</tbody>
																		
									<tbody>
										
										<tr>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="account" style="cursor: pointer;">Шаг 2:</label></td>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="coins" style="cursor: pointer;">Нужен 10 Ресет, Награда 100,000,000 Zen, + 5 ResetPoint</label></td>
										</tr>
										<tr>
											
											
										</tr>
										
									</tbody>
																		<tbody>
										
										<tr>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="account" style="cursor: pointer;">Шаг 3:</label></td>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="coins" style="cursor: pointer;">Нужен 20 Ресет, Награда 200,000,000 Zen, + 10 ResetPoint</label></td>
										</tr>
										<tr>
											
											
										</tr>
										
									</tbody>
																											<tbody>
										
										<tr>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="account" style="cursor: pointer;">Шаг 4:</label></td>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="coins" style="cursor: pointer;">Нужен 30 Ресет, Награда 300,000,000 Zen, + 15 ResetPoint</label></td>
										</tr>
										<tr>
											
											
										</tr>
										
									</tbody>
																																				<tbody>
										
										<tr>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="account" style="cursor: pointer;">Шаг 5:</label></td>
											<td width="50%" style="border: 1px solid rgba(119,91,99,0.70);background: rgba(165, 103, 103, 0.10);"><label for="coins" style="cursor: pointer;">Нужен 50 Ресет, Награда 500,000,000 Zen, + 30 ResetPoint</label></td>
										</tr>
										<tr>
											
											
										</tr>
										
									</tbody>
								</table>
							</form>
						</div>
					</div>
					
					
					<div class="d_playertop">                	
						<div class="post_text_n">



										</tr>
									</tbody>
								</table>
							</form>
						</div>
					</div>
					
					

				
				
				
				
				
			</div>
		</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
    </table>
<img src="/web/templates/Freyamu/images/ref1.png">
    <?php if ($_smarty_tpl->tpl_vars['ReferralList']->value == 0) {?>
        <h4>Не найдено ни одного реферала</h4>
    <?php } else { ?>
        <form action="/user/referrals" method="post">

        <table class="ranking-table" width="100%" style="text-align:center;">
        <thead>
            <th>№</th>
            <th>Ник реферала</th>
            <th>Уровень</th>
            <th>Ресет</th>
        </thead>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
        <?php
$_from = $_smarty_tpl->tpl_vars['ReferralList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_Referral_0_saved_item = isset($_smarty_tpl->tpl_vars['Referral']) ? $_smarty_tpl->tpl_vars['Referral'] : false;
$_smarty_tpl->tpl_vars['Referral'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['Referral']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['Referral']->value) {
$_smarty_tpl->tpl_vars['Referral']->_loop = true;
$__foreach_Referral_0_saved_local_item = $_smarty_tpl->tpl_vars['Referral'];
?>

            <?php if ($_smarty_tpl->tpl_vars['Referral']->value == 0) {?>
                <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                    <tr class="ranking-zebra">
                        <?php } else { ?>
                    <tr>
                <?php }?>
                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                <td>unknown</td>
                <td>0</td>
                <td>0</td>
            <?php } else { ?>
                <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                    <tr class="active-referral" class="ranking-zebra">
                        <?php } else { ?>
                    <tr class="active-referral">
                <?php }?>
                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['Referral']->value['Name'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['Referral']->value['cLevel'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['Referral']->value['Resets'];?>
</td>
                <tr class="no-ranking-zebra">
                    <td colspan="4">
                        <ul class="step-list">
                            <?php
$_from = $_smarty_tpl->tpl_vars['Referral']->value['ListReward'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_step_1_saved_item = isset($_smarty_tpl->tpl_vars['step']) ? $_smarty_tpl->tpl_vars['step'] : false;
$_smarty_tpl->tpl_vars['step'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['step']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['step']->value) {
$_smarty_tpl->tpl_vars['step']->_loop = true;
$__foreach_step_1_saved_local_item = $_smarty_tpl->tpl_vars['step'];
?>
                                <li>
                                <center>
                                <br>
                                    Шаг <?php echo $_smarty_tpl->tpl_vars['step']->value;?>
 Нужен Ресет: <?php echo $_smarty_tpl->tpl_vars['ReferralConfigs']->value['Steps'][$_smarty_tpl->tpl_vars['step']->value]['NeedReset'];?>

                                    <?php if ($_smarty_tpl->tpl_vars['Referral']->value['Resets'] >= $_smarty_tpl->tpl_vars['ReferralConfigs']->value['Steps'][$_smarty_tpl->tpl_vars['step']->value]['NeedReset']) {?>
                                        <button name="get_reward_referral" value="<?php echo $_smarty_tpl->tpl_vars['step']->value;
echo $_smarty_tpl->tpl_vars['Referral']->value['Name'];?>
">Получить награду</button>
                                        </center>
                                    <?php }?>
                                </li>
                            <?php
$_smarty_tpl->tpl_vars['step'] = $__foreach_step_1_saved_local_item;
}
if ($__foreach_step_1_saved_item) {
$_smarty_tpl->tpl_vars['step'] = $__foreach_step_1_saved_item;
}
?>
                        </ul>
                    </td>
                </tr>
            <?php }?>
            </tr>
            <?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['Referral'] = $__foreach_Referral_0_saved_local_item;
}
if ($__foreach_Referral_0_saved_item) {
$_smarty_tpl->tpl_vars['Referral'] = $__foreach_Referral_0_saved_item;
}
?>
        </table>

        </form>
    <?php }?>
</div><?php }
}
