Файл: love/top10.php
Строк: 127
<?
include '../sys/inc/start.php';
include '../sys/inc/compress.php';
include '../sys/inc/sess.php';
include '../sys/inc/home.php';
include '../sys/inc/settings.php';
include '../sys/inc/db_connect.php';
include '../sys/inc/ipua.php';
include '../sys/inc/fnc.php';
include '../sys/inc/user.php';
$set['title']='Случайные анкеты';
include '../sys/inc/thead.php';
title();
err();
$q = mysql_query("SELECT * FROM `user` ORDER BY rand() LIMIT 10;");
echo "<div class='aut'>";
echo "<center><img src='/style/img/rating.png' alt='' class='icon'/> Топ 10-ка случайных анкет</center>";
echo "</div>n";
while ($ank = mysql_fetch_array($q))
{
echo "<div class='foot'>";
echo "".online($ank['id'])." ";
echo "<a href='/user.profile.php?id=$ank[id]'>n";
echo GradientText("$ank[nick]", "$ank[ncolor]", "$ank[ncolor2]");
echo "</a> n";
echo "<a href='/user.ank.php?id=$ank[id]'><img src='/img/in.png' alt='' class='icon'/></a> ";
if ($ank['ank_strana']=='Украина')echo "<img src='/style/usr/ua.png' alt=''>";
if ($ank['ank_strana']=='Россия')echo "<img src='/style/usr/ru.png' alt=''>";
if ($ank['ank_strana']=='Узбекистан')echo "<img src='/style/usr/uz.png' alt=''>";
if ($ank['ank_strana']=='Казахстан')echo "<img src='/style/usr/kz.png' alt=''>";
if ($ank['ank_strana']=='СНГ')echo "<img src='/style/usr/dr.png' alt=''>";
if ($ank['ank_strana']=='Белоруссия')echo "<img src='/style/usr/by.png' alt=''>";
if ($ank['ank_strana']=='Азербайджан')echo "<img src='/style/usr/az.png' alt=''>";
echo "".online2($ank['id'])."";
if ($ank['pol']==1)
echo " (Муж),n";
else
echo "( Жен),n";
if ($ank['cel']==0)echo "Цель знакомства: Не заполнено<br />n";
if ($ank['cel']==1)echo "<font color='red'>Дружба,общение</font><br />n";
if ($ank['cel']==2)echo "<font color='red'>Флирт, СМС-переписка</font><br />n";
if ($ank['cel']==3)echo "<font color='red'>Любовь, отношения</font><br />n";
if ($ank['cel']==4)echo "<font color='red'>Брак, создание семьи</font><br />n";
if ($ank['cel']==5)echo "<font color='red'>Виртуальный секс</font><br />n";
if ($ank['cel']==6)echo "<font color='red'>Секс в реале</font><br />n";
if ($ank['cel']==7)echo "<font color='red'>Ищу спонсора</font><br />n";
if ($ank['cel']==8)echo "<font color='red'>Стану спонсором</font><br />n";
echo "</div>n";
}
echo "<div class='foot'>n";
echo "<img src='/style/img/levo.png' alt='' class='icon'/>n";
echo " <a href='/love/'>Знакомства</a>";
echo "</div>";
include_once '../sys/inc/tfoot.php';
?>