Файл: moduls/faq/admin.php
Строк: 21
<?php
/**
* @package Prime Social
* @link http://primesocial.ru
* @copyright Copyright (C) 2016 Prime Social
* @author BoB | http://primesocial.ru/about
*/
require_once('../../core/start.php');
check_auth();
head('Ma`muriyat');
echo '<div class="white">';
$adminlar = DB::$dbs->querySingle("SELECT COUNT(`user_id`) FROM ".USERS." WHERE `level` > ?", array(0));
echo '- Sayt ma`muriyati <span class="count">'.$adminlar.'</span>';
echo '</div>';
$all = DB::$dbs->querySingle("SELECT COUNT(`user_id`) FROM ".USERS." WHERE `level` > ?", array(0));
if (empty($all)) {
echo DIV_LI . 'Ma`muriyat yo`q' . CLOSE_DIV;
} else {
$n = new Navigator($all,10,'');
$sql = DB::$dbs->query("SELECT `user_id`, `level` FROM ".USERS." WHERE `level` > ? ORDER BY `level` DESC LIMIT {$n->start()}, 10", array(0));
while($ank = $sql -> fetch()) {
echo DIV_LI . user_choice($ank['user_id'], 'link') . ' ['.level($ank['level']).']' . CLOSE_DIV;
}
echo $n->navi();
}
$array = array();
nav($array);
require_once('../../core/stop.php');
?>