Файл: love/top.php
Строк: 18
<?php // автор -=ШАХТЕР=- http://waphp.ru
require'../includes.php';
$align='left';
$title='Знакомства|Топ юзеров';
aut();
head();
who_add(0,'love');
echo '<br />';
if($_GET['sex']=='') $sex = 1;
else $sex = check($_GET['sex']);
if($sex==1)echo 'Топ 20: Парни|<a href="top?sex=0">Девушки</a>';
else if($sex==0)echo 'Топ 20: <a href="top?sex=1">Парни</a>|Девушки';
echo '<br />';
$k_post=mysql_result(query("select count(*) as num from users where sex = '".$sex."' and love_city!='0' and love!='0'"),0);
$r = query ("Select * from users where sex = '".$sex."' and love_city!='0' and love!='0' order by love_vote_us desc,love_vote_photo desc LIMIT 0, 20");
if ($k_post == 0)echo '<br />Список пуст...<br />';
echo '<br />';
$post_k=$start+1;
while($a = @mysql_fetch_assoc($r)){
if ($a['mvozrast'] == 21 || $a['mvozrast'] == 31 || $a['mvozrast'] == 41 || $a['mvozrast'] == 51 || $a['mvozrast'] == 61)$years = 'год';
else if ($a['mvozrast'] == 22 || $a['mvozrast'] == 23 || $a['mvozrast'] == 24 || $a['mvozrast'] == 32 || $a['mvozrast'] == 33 || $a['mvozrast'] == 34 || $a['mvozrast'] == 42 or $a['mvozrast'] == 43 || $a['mvozrast'] == 44 || $a['mvozrast'] == 52 || $a['mvozrast'] == 53 || $a['mvozrast'] == 54 || $a['mvozrast'] == 62 || $a['mvozrast'] == 63 || $a['mvozrast'] == 64|| $a['mvozrast'] == 2)$years = 'года';
else $years = 'лет';
echo links.''.nik_love($a['id']).' ['.$a['mvozrast'].' '.$years.']|<a href="messages?mod=msg&nk='.$a['id'].'">[написать]</a>|<a href="index?mod=bookmarks&nk='.$a['id'].'">[в закладки]</a>'.div;
echo 'Город: '.cities($a['love_city'],1).' ('.cities($a['love_country'],3).', '.cities($a['love_region'],2).')';
echo '<dl></dl>';
}
echo '<br />';
echo gb.'<a href="index">Знакомства</a>'.div;
echo gb.'<a href="'.H.'enter">Чат</a>'.div;
foot(); // автор -=ШАХТЕР=- http://waphp.ru
?>