|
<?php
$title = 'Парни';
require '../system/function.php';
require '../system/header.php';
echo '<div class="title">'.$title.'</div>';
echo '<div class="navi"><a href="'.$HOME.'/user/all">Все</a> Парни <a href="'.$HOME.'/love/woman">Девушки</a> <a <a href="'.$HOME.'/user/online">Онлайн</a> <a href="'.$HOME.'/user/search_user">Поиск</a></div>';
if (empty($user['max'])) $user['max']=10;
$max = $user['max'];
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `sex` <= '1' "),0);
$k_page = k_page($k_post,$max);
$page = page($k_page);
$start = $max*$page-$max;
$users = mysql_query("SELECT * FROM `users` where `sex` <= '1' ORDER BY `viz` DESC LIMIT $start, $max");
while($a = mysql_fetch_assoc($users))
{
if($a['viz'] > time()-600){
$on = '<div class="icon-ava-online"><img src="/design/theme/boom/img/cellphone.png" style="width: 9px;
height: 9px;
margin-top: -1px;" alt=""></div>';
}
if($a['viz'] < time()-600){
$on ='<div class="icon-ava-offline"><img src="/design/theme/boom/img/cellphone.png" style="width: 9px;
height: 9px;
margin-top: -1px;" alt=""></div>';
}
echo '<div class="menu3"><div class="login">
<div class="ava_usr">';
echo (empty($a['avatar'])?'<img src="../files/ava/net.jpg" alt="*" class="roundm">':'<img src="../files/ava/'.$a['avatar'].'" alt="*" class="roundm">');
echo '</div> <div class="icons-ava">
'.$on.'
</div><div class="login_menu"><a href="'.$HOME.'/id'.$a['id'].'"><font class="love"><b>';
echo (empty($a['name'])?''.$a['login'].' ':''.$a['name'].'');
echo'</b></font></a> '.calc_age($a['birth']).', '.zodiak($a['birth']).'<span class="time">Рейтинг: '.bb($a['reit']).' </span><div class="login_status">';
echo (empty($a['strana'])?'':''.$a['strana'].',');echo (empty($a['gorod'])?'':' '.$a['gorod'].'');
echo'</div></div></div></div>';
}
if ($k_page>1)echo str('/love/man.php?',$k_page,$page); // Вывод страниц
require_once('../system/footer.php');
?>