Файл: help/adm.php
Строк: 72
<?php
define('GCMS',true);
define('ROOT','../');
require_once (ROOT.'system/power.php');
$diz -> head('Администрация');
$diz -> title('Администрация');
echo '<div class="new">Создатели сайта:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 7");
if ($sql -> num_rows > 0) {
while ($soz = $sql -> fetch_assoc()) {
$user = $soz['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="new">Ст. Админы:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 6");
if ($sql -> num_rows > 0) {
while ($sadm = $sql -> fetch_assoc()) {
$user = $sadm['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="new">Админы:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 5");
if ($sql -> num_rows > 0) {
while ($adm = $sql -> fetch_assoc()) {
$user = $adm['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="new">Ст. Модеры:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 4");
if ($sql -> num_rows > 0) {
while ($smd = $sql -> fetch_assoc()) {
$user = $smd['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="new">Модеры:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 3");
if ($sql -> num_rows > 0) {
while ($md = $sql -> fetch_assoc()) {
$user = $md['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="new">V.I.Pы:</div>';
$sql = $db -> query("SELECT `id`,`login`,`sex` FROM `users` where `level` = 2");
if ($sql -> num_rows > 0) {
while ($vip = $sql -> fetch_assoc()) {
$user = $vip['id'];
echo '<div class="menu"><a href="/id'.$user.'" class="menutuch"/>
<table><tr valign="top"><td>'.$func->avatar($user,40,40,1).'</td>
<td style="padding-left:5px;">'.$func->famname($user,0).'
</td></tr></table></a></div>';
}
}else echo '<div class="fon"/>Пока ни кого.</div>';
echo '<div class="levo"><a href="./" class="levo_tuch">'.$diz -> img('back.png').' Назад</a></div>';
echo '<div class="levo"><a href="/" class="levo_tuch">'.$diz -> img('home.png').' На главную</a></div>';
#####Копирайт#######
$diz -> out($msg);
?>