Файл: user/admo.php
Строк: 53
<?
include_once '../core/system.php';
include_once '../core/head.php';
{
echo "<div class='player center'>";
echo " Создатели</div>";
echo "</div>";
$k_post = mysql_result(mysql_query("SELECT COUNT(*) `user` WHERE `prava` = '7'"),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 `prava` = '7' ORDER BY `online` DESC LIMIT $start, $set[p_str]");
echo "<div class='player'>";
}
echo "</div>";
while($post = mysql_fetch_assoc($q)) {
if ($post['storona'] == '0') {?><img src="/images/icon/0.png" height="11" alt="a"/> <?php }
if ($post['storona'] == '1') {?><img src="/images/icon/1.png" height="11" alt="d"/> <?php }
echo online($post[id]);
echo ' <a href="/user/'.$post['id'].'/">'.$post['nick'].'</a> <img src="/images/icon/level.png"> '.$post['level'].'<br />';
}
echo "<div class='player center'>";
echo " Администраторы</div>";
echo "</div>";
$k_post = mysql_result(mysql_query("SELECT COUNT(*) `user` WHERE `prava` = '5'"),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 `prava` = '5' ORDER BY `online` DESC LIMIT $start, $set[p_str]");
echo "<div class='player'>";
if($k_post == 0)echo "<span class='grey'></span>";
while($post = mysql_fetch_assoc($q)) {
if ($post['storona'] == '0') {?><img src="/images/icon/0.png" height="11" alt="a"/> <?php }
if ($post['storona'] == '1') {?><img src="/images/icon/1.png" height="11" alt="d"/> <?php }
echo online($post[id]);
echo ' <a href="/user/'.$post['id'].'/">'.$post['nick'].'</a> <img src="/images/icon/level.png"> '.$post['level'].'<br />';
}
echo "<div class='player center'>";
echo " Модераторы</div>";
echo "</div>";
$k_post = mysql_result(mysql_query("SELECT COUNT(*) `user` WHERE `prava` = '4'"),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 `prava` = '4' ORDER BY `online` DESC LIMIT $start, $set[p_str]");
echo "<div class='player'>";
if($k_post == 0)echo "<span class='grey'></span>";
while($post = mysql_fetch_assoc($q)) {
if ($post['storona'] == '0') {?><img src="/images/icon/0.png" height="11" alt="a"/> <?php }
if ($post['storona'] == '1') {?><img src="/images/icon/1.png" height="11" alt="d"/> <?php }
echo online($post[id]);
echo ' <a href="/user/'.$post['id'].'/">'.$post['nick'].'</a> <img src="/images/icon/level.png"> '.$post['level'].'<br />';
}
echo "</div>";
include_once '../core/foot.php';
?>