<?php


$bon = $dbc->query("SELECT * FROM `bonus` WHERE `user` = '".$user['id']."' LIMIT 1")->fetch_assoc(); 
$alt_time = $user['al_time'] -time();



$les_time = $bon['les_time'] -time();
$kris_time = $bon['kris_time'] -time();
$vip_time = $user['daytovip'] -time();



?><style> .section._decor {    padding: 10px 18px 15px 18px;}.section._decor {    background:         url('/img/section/decor-tl.png') 0 0 no-repeat,         url('/img/section/decor-tr.png') 100% 0 no-repeat,         url('/img/section/decor-bl.png') 0 100% no-repeat,        url('/img/section/decor-br.png') 100% 100% no-repeat #16161e !important;    color: inherit;} .section._decor {        background-image: url('/img/section/decor_tl_x2.png'),        url('/img/section/decor_tr_x2.png'),        url('/img/section/decor_bl_x2.png'),        url('/img/section/decor_br_x2.png') !important;        background-size: 22px 22px !important;    } </style><?

?><div class="section _decor mt2">
<div class="font14 center text-gold">Бонусы</div>





<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt5 table-raiting">
<tbody>
<tr valign="top">
</td></br></br><?










?><table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt5 table-raiting">
<tbody>
<? 



if($user['alt']>0){



?><tr valign="top">

<td><span><img src="/img/new/alt.png"><span class="iSuperior">Клановый Алтарь</span>(<font color="aqua"><?=Sec2Time($alt_time)?></font>) </td></span><?








}


if($bon['les']>0){



?><tr valign="top">

<td><span><img src="/img/scroll/sv.png"><span class="iLegendary">Свиток Разрушения</span>(<font color="aqua"><?=Sec2Time($les_time)?></font>) </td></span><?










}

if($bon['kris']>0){



?><tr valign="top">

<td><span><img src="/img/scroll/sv.png"><span class="iLegendary">Свиток Добычи</span>(<font color="aqua"><?=Sec2Time($kris_time)?></font>) </td></span><?










} 


if($user['vip']>0){



?><tr valign="top">

<td><span><img src="/img/stat/vip.png"><span class="iLegendary">Vip-Статус</span>(<font color="aqua"><?=Sec2Time($vip_time)?></font>) </td></span><?









} 














?>

</td>

</div></div></div><?







?></tr>


</tbody>
</table>

</div><?






