File size: 1.24Kb
<?php
require_header('Права пользователей');
if (isset($_POST['level']))
{
echo '';
}
if (isset($_GET['accesses']))
{
echo '<div class="title">Список прав пользователей</div>
<div class="menu">';
$k_accesses = mysql_result(mysql_query("SELECT COUNT(*) FROM `all_accesses`"), 0);
nav_start($k_accesses, 15);
if ($k_accesses == 0)
{
echo 'Список пуст';
} else
{
$sql_accesses = mysql_query("SELECT * FROM `all_accesses` ORDER BY id_access LIMIT $start, 15");
while ($access = mysql_fetch_assoc($sql_accesses))
{
echo $access['name'] .' ('. $access['id_access'] .')<br />';
}
}
echo '</div>';
view_nav();
}
echo '<div class="title">Список уровней</div>
<div class="menu">';
$sql_accesses = mysql_query("SELECT * FROM `user_level` ORDER BY level");
while ($level = mysql_fetch_assoc($sql_accesses))
{
echo '<a href="?level='. $level['level'] .'">'. $level['name'] .'</a><br />';
}
echo '</div>
<div class="other">
<a href="accesses.php?accesses">Показать список прав</a>
</div>';
require_footer();
?>