Файл: test.masteram.us/7days.php
Строк: 227
<?
include 'Core.php';$show_all=true; // показ для всех
$set['title']='Последняя неделя'; // заголовок страницы
include_once 'sys/inc/thead.php';
title();
echo "<img src='/style/back.gif' alt='' class='icon'/>n";
echo "<a href='online.php'>Список онлайн</a><br />n";
echo "</div>n";
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-604800)."'"), 0);//неделя
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q = mysql_query("SELECT `id` FROM `user` WHERE `date_last` > '".(time()-604800)."' ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");//неделя
echo "<table class='post'>n";
if ($k_post==0)
{
echo "Никого не былоn";
}
while ($ank = mysql_fetch_array($q))
{
$ank=get_user($ank['id']);
echo "<table class='post'>n";
if ($ank['show_secret']==1)
{
echo '<tr><td class="icon14">';
echo "<img src='/style/secret.png' alt='' class='icon' width='24' height='32'/>n";
echo '<td class="anput">';
echo " <font color='red'>Невидимка</sont>n";
if (user_access('adm_news'))echo " (<a href='/info.php?id=$ank[id]'><span style="color:$ank[ncolor]">$ank[nick]</span></a>)n";
echo "<br/>n";
echo "<font color='#afb0a3'>(Скрытый профиль)</sont>n";
echo " </td>n";
echo " </tr>n";
}
if ($ank['show_secret']==0)
{
echo '<tr><td class="icon14">';
echo " <a href='/foto/$ank[id]/'>n";
avatar3($ank['id']);
echo "</a>n";
echo '</td><td class="anput">';
echo "".online($ank['id'])." <a href='/info.php?id=$ank[id]'><span style="color:$ank[ncolor]">$ank[nick]</span></a>n";
if ($ank['group_access']>1)echo "<img src='/style/adm.png'>n";
if($ank['akt_rating']>=0 && $ank['akt_rating']<=1.000)echo " ";
if($ank['akt_rating']>=1.001 && $ank['akt_rating']<=2.500)echo " <img src='/style/rating/bronze.gif'></img> ";
if($ank['akt_rating']>=2.501 && $ank['akt_rating']<=5.000)echo " <img src='/style/rating/silver.gif'></img> ";
if($ank['akt_rating']>=5.001 && $ank['akt_rating']<=7.500)echo " <img src='/style/rating/gold.gif'></img> ";
if($ank['akt_rating']>=7.501 && $ank['akt_rating']<=10.000)echo " <img src='/style/rating/lafes_user.gif'></img> ";
if($ank['akt_rating']>=10.001 && $ank['akt_rating']<=200.000)echo " <img src='/rating/konkurs.png'></img> ";
if ($ank['stran']==0)echo "n";
if ($ank['stran']==1)echo "<img src='/style/strana/ru.png'>n";
if ($ank['stran']==2)echo "<img src='/style/strana/ua.png'>n";
if ($ank['stran']==3)echo "<img src='/style/strana/by.png'>n";
if ($ank['stran']==4)echo "<img src='/style/strana/az.png'>n";
if ($ank['stran']==5)echo "<img src='/style/strana/kz.png'>n";
if ($ank['stran']==6)echo "<img src='/style/strana/uz.png'>n";
if ($ank['stran']==7)echo "<img src='/style/strana/england.png'>n";
if ($ank['stran']==8)echo "<img src='/style/strana/de.png'>n";
if ($ank['akt_rating']!=NULL){echo'('.$ank['akt_rating'].')';}else{echo "(0.0)";}
if (isset($user) && $user['id']==$ank['id'])
{
echo " (Это Вы)<br/>n";
}
if (isset($user) && $user['id']!=$ank['id'])echo " <a href='/mail.php?id=$ank[id]'><img src='/img/mail.gif' alt='' /></a><br/>n";
if($ank['akt_rating']>=0 && $ank['akt_rating']<=1.000)echo "<img src='/style/stat.png'> <font color='red'>Новичок </font></img><br />";
if($ank['akt_rating']>=1.001 && $ank['akt_rating']<=2.500)echo "<img src='/style/stat.png'> <font color='red'>Продвинутый </font></img><br />";
if($ank['akt_rating']>=2.501 && $ank['akt_rating']<=5.000)echo "<img src='/style/stat.png'> <font color='red'>Бывалый </font></img><br />";
if($ank['akt_rating']>=5.001 && $ank['akt_rating']<=7.500)echo "<img src='/style/stat.png'> <font color='red'>МегаОбитатель </font></img><br />";
if($ank['akt_rating']>=7.501 && $ank['akt_rating']<=10.000)echo "<img src='/style/stat.png'> <font color='red'>Ветеран </font></img><br />";
if($ank['akt_rating']>=10.001 && $ank['akt_rating']<=20.000)echo "<img src='/style/stat.png'> <font color='red'>Почетный Юзер </font></img><br />";
if ($ank['srating']!=NULL)
echo "<img src='/style/stat.png'><span style="color:$ank[mcolor]"> $ank[srating]</span> <br/>n";
else
if($ank['akt_rating']>=20.001 && $ank['akt_rating']<=200.000)echo "<img src='/style/stat.png'> <font color='red'>Лидер </font></img><br />";
if (otkuda($ank['url'])){echo " <font color='#afb0a3'>(".otkuda($ank['url']).")</font><br />n";
}else{echo " (Неизвестно)<br />n";}
echo '</td></tr>';
}
}
echo "</table>n";
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
echo "<div class='rowup'>";
echo "<center>За последнюю неделю побывало <font color='red'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-604800).""), 0)."</font> зарегистрированных пользователя</a> n";
//echo " <font color='red'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-604800)." AND `pereh` > '0'"), 0)."</font> гостей</center> n";
echo "</div>n";
include_once 'sys/inc/tfoot.php';
?>