Location: PHPKode > scripts > WH Board > wh_board/admin/users.php
<?php require('management/admin_functions/session.php'); ?>
<?php require('management/admin_layout/header.php'); ?>

    <ul id="breadcrumbs">
        <li><a href="index.php"><?php echo $lang['main_navigation']; ?></a></li>
        <li><a href="users.php" class="actual"><?php echo $lang['admin_manage_users']; ?></a></li>
    </ul>

    <div class="clear_blog"></div>

    <?php

    $count = mysql_query("SELECT user_id FROM users") OR die(mysql_error());
    include('../framework/navigation.php');

    $query = "SELECT * FROM users ORDER BY user_id DESC LIMIT $start,$entries";
    $result = mysql_query($query) OR die(mysql_error());

    if($result) {

    echo '<table width="100%" class="tables">
    <tr>
    <td width="5%"><strong>ID</strong></td>
    <td width="25%"><strong>User Name</strong></td>
    <td width="35%"><strong>' . $lang['email_adress'] . '</strong></td>
    <td width="15%"><strong>User Level</strong></td>
    <td width="10%" align="center"><strong>' . $lang['admin_block'] . '</strong></td>
    <td width="10%" align="center"><strong>' . $lang['blank_delete'] . '</strong></td>
    </tr>';

    while($row = mysql_fetch_assoc($result)) {

        echo '<tr>
        <td width="5%">' . (int)$row['user_id'] . '</td>
        <td width="25%"><span class="blue">' . htmlentities($row['user_name'], ENT_QUOTES) . '</span></td>
        <td width="35%"><a href="mailto:' . htmlentities($row['user_email'], ENT_QUOTES) . '">' . htmlentities($row['user_email'], ENT_QUOTES) . '</a></td>
        <td width="15%">';
        if($row['user_level'] == 0) { echo 'User'; }elseif ($row['user_level'] == 1) { echo 'Admin'; }
        echo '</td>
        <td width="10%" align="center">';
        if($row['user_active'] == 1) { echo '<a href="users_block.php?user_id=' . (int)$row['user_id'] . '"><img src="../style/images/admin/icons/block.png" alt="' . $lang['admin_block'] . '" title="' . $lang['admin_block'] . '" border="0">'; }elseif ($row['user_active'] == 0) { echo '<a href="users_unlock.php?user_id=' . (int)$row['user_id'] . '"><img src="../style/images/admin/icons/unlock.png" alt="' . $lang['admin_unlock'] . '" title="' . $lang['admin_unlock'] . '" border="0">'; }
        echo '</td>
        <td width="10%" align="center"><a href="users_delete.php?user_id=' . (int)$row['user_id'] . '"><img src="../style/images/admin/icons/delete.png" alt="' . $lang['blank_delete'] . '" title="' . $lang['blank_delete'] . '" border="0"></a></td>
        </tr>';
        }

    echo '</table>
    <div class="cleaning"></div>';

    }else{

    echo '<p class="false">' . $lang['no_registered_users'] . '</p>';
    }

    echo '<div id="navigation">
    <span class="pages">' . $lang['page'] . ' ' . $page . ' ' . $lang['of'] . ' ' . $allsites . '</span>';
    echo $link_string;
    echo '</div>
    <div class="clear_navi"></div>';

    ?>

<?php require('management/admin_layout/footer.php'); ?>
Return current item: WH Board