Файл: labir.php
Строк: 65
<?
if($udata['kv']==17)
{
mysql_query("UPDATE `users` SET `kv`='18' WHERE `id`='".$udata['id']."'");
}
echo '<table width=100%>';
echo '<tr>';
echo '<td width=30% style="vertical-align: top">';
echo '<a href=?prikl>
<div class="brs bts bls bbs m page_input" style="padding: 10px 3px 10px 3px; opacity: 0.7" align=center>
<img src=style/menu/prikl.png><br>
Великая Охота
</div>
</a>';
echo '</td>';
echo '<td width=5%></td>';
echo '<td width=65%>';
$labir=mysql_query("SELECT * FROM `labir` WHERE `lvl`<='".$udata['lvl']."' ORDER BY `lvl` ASC");
while($lab=mysql_fetch_array($labir))
{
if($lab['id']==32)
{
$lab['name']='<font color=#ff000>'.$lab['name'].'</font>';
}
echo '<div class="page_input p m">
<img src=img/main/e28.png> <font color=#00ff99><b>'.$lab['name'].'</b></font> <img src=img/main/p10.png>'.$lab['lvl'].'<br>
<img src=img/main/e28.png> <font color=#11ff11>Награда за прохождение:</font>';
if($lab['kl']>0){echo' <img src=img/main/r16.png>'.$lab['kl'].' ';}
if($lab['fim']>0){echo' <img src=img/main/r17.png>'.$lab['fim'].' ';}
if($lab['mon']>0){echo' <img src=img/main/p5.png>'.$lab['mon'].' ';}
if($lab['jem']>0){echo' <img src=img/main/p13.png>'.$lab['jem'].' ';}
if($lab['id']==32)
{
echo' <img src=img/main/pr.png>10';
}
echo'<br>
<img src=img/main/e28.png> <font color=#11ff11>Доступ:</font> <font color=#ffff00>1 раз в '.$lab['dostup'].'ч</font><br>
<img src=img/main/e28.png> <font color=#11ff11>Вход:</font> ';
if($lab['v_mon']==0 and $lab['v_iss']==0 and $lab['v_lazyr']==0 and $lab['v_bagr']==0){echo '<font color=#ff9900>бесплатно</font>';}
else
{
if($lab['v_iss']!=0){echo '<img src=img/main/r21.png>'.$lab['v_iss'].' ';}
if($lab['v_lazyr']!=0){echo '<img src=img/main/f23.png>'.$lab['v_lazyr'].' ';}
}
echo '<br>';
echo '<img src=img/main/e55.png> ';
$num=mysql_num_rows(mysql_query("SELECT * FROM `labir_usr_blok` WHERE `usr`='".$udata['id']."' and `labir`='".$lab['id']."'"));
if($num==0){echo '<a href=?vhod='.$lab['id'].'>Войти</a>';}
else {
$kl=mysql_fetch_array(mysql_query("SELECT * FROM `labir_usr_blok` WHERE `usr`='".$udata['id']."' and `labir`='".$lab['id']."'"));
$time=$kl['time']-time();
$h=floor($time/3600);
$m=floor(($time-($h*3600))/60);
$s=$time-($h*3600)-($m*60);
echo '<font color=#ff0000>До открытия: '.$h.':'.$m.':'.$s.'</font>';}
echo'</div>';
}
echo '</td>';
echo '</tr>';
echo '</table>';
?>