Файл: forumm/moders.php
Строк: 24
<?
echo "<div class='header_path'><a href='/'>$_SERVER[HTTP_HOST]</a>/<a href='/forumm'>Форум</a>/<a href='?moders'></a>Модераторы</div><div class='main'><div class='backlink'><img src='http://i.spaces.ru//Back.gif' alt=''/><a href='/forumm/'>Форум</a></div>n";
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `group_access` = '3' OR `group_access` = '7' OR `group_access` = '8' OR `group_access` = '9' OR `group_access` = '15'"), 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 * FROM `user` WHERE `group_access` = '3' OR `group_access` = '7' OR `group_access` = '8' OR `group_access` = '9' OR `group_access` = '15' ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");
if ($k_post==0)
{
echo " <tr>n";
echo " <td class='p_t'>n";
echo "Нет никогоn";
echo " </td>n";
echo " </tr>n";
}
while ($forum = mysql_fetch_array($q))
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = $forum[id] LIMIT 1"));
echo "<a href='/info.php?id=$ank[id]'><span style='color:#79358c'><b>$ank[nick]</b></span></a> ".online($ank['id'])." <font color='green'>[".vremja($ank['date_last'])."]</font><br/>n";
}
if ($k_page>1)str("?moders&",$k_page,$page); // Вывод страниц
?>