Help with a staff page

MarleyRetroo

Active Member
Oct 25, 2014
170
23
My staff page currently looks like this:

PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Staff</title>
        <link rel="shortcut icon" href="{url}/favicon.ico?<?php echo time() ?>" type="image/x-icon"/>
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css?<?php echo time() ?>" type="text/css">
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js?<?php echo time() ?>"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js?<?php echo time() ?>"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js?<?php echo time() ?>"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js?<?php echo time() ?>"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js?<?php echo time() ?>"></script>
       
        <script type="text/javascript">
            document.habboLoggedIn = true;
            var habboName = "{username}";
            var habboId = {userid};
            var habboReqPath = "";
            var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
            var habboImagerUrl = "http://www.habbo.com.tr/habbo-imaging/";
            var habboPartner = "";
            var habboDefaultClientPopupUrl = "{url}/client";
            window.name = "habboMain";
            if (typeof HabboClient != "undefined") {
                HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
                HabboClient.maximizeWindow = true;
            }
        </script>
       
        <!--[if IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
        <![endif]-->
        <!--[if lt IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
        <![endif]-->
        <!--[if lt IE 7]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
            <script type="text/javascript">
                try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
            </script>
            <style type="text/css">
                body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
            </style>
        <![endif]-->
    </head>
   
    <body id="home">
   
        <div id="overlay"></div>
        <div id="header-container">
            <div id="header" class="clearfix">
                <h1><a href="{url}/"></a></h1>
                <div id="subnavi">
                    <div id="subnavi-user">
                       <div style="margin-top:7px;font-size:10px">
                        <?php include"randomFacts.php" ?>
                     </div>
                    </div>
                    <div id="subnavi-search">
                        <div id="subnavi-search-upper">
                            <ul id="subnavi-search-links">
                              <li><a href="{url}/logout" style="color:#000;font-size:10px;">Sign Out</a>
                            </ul>
                        </div>
                    </div>
                    <div id="to-hotel">
                                    <a href="{url}/client" class="new-button green-button" target="05efbade773135677a28f2b338c5bdf93774237c" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName} Hotel</b><i></i></a>
                 <?php if($_SESSION['user']['rank'] >= 4) { echo '<a href="{url}/manage/login" class="new-button red-button" action="_new" style="left: -5px;"><b>Housekeeping</b><i></i></a>'; } ?>
                 </div>
                </div>
                <ul id="navi">
                    <li class="viptab1"><strong>{username}</strong><span></span></li>
                <li class="selected"><a href="{url}/community">Community</a><span></span></li>
                    <li class="viptab"><a href="{url}/shop">Shop</a><span></span></li>
                   
                </ul>

                <div id="habbos-online"><div class="rounded"><span>{online} members online</span></div></div>
            </div>
        </div>
        <div id="content-container">
            <div id="navi2-container" class="pngbg">
                <div id="navi2" class="pngbg clearfix">
                    <ul>
                        <li <a href="{url}/community"">Community</li>
                        <li><a href="{url}/news">News</a></li>
                        <li><a href="{url}/staff">Staff</a></li>
                      
                    </ul>
                </div>
            </div>
            <div id="container">
    <div id="content">
    <div id="column2" class="column">
<?php
error_reporting(0);
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 8 or id = 7 ORDER BY id DESC");
$Bans = mysql_query("SELECT * FROM `bans` WHERE `username` = '" . $Users['username'] . "'");
$BanCount = mysql_num_rows($Bans);
echo $BanCount;
while ($Ranks = mysql_fetch_assoc($getRanks))
{
    echo '<div class="habblet-container ">    
<div class="cbb clearfix red ">
<h2 class="title"><span style="float: left;">Management</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';
    $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age,country FROM users WHERE rank = '" . $Ranks['id'] . "'");
    echo '<div class="box-content">';
    if (mysql_num_rows($getMembers) > 0)
    {
        $oe = 1;
        while ($member = mysql_fetch_assoc($getMembers))
        {
            if ($oe == 2)
            {
                $oe = 1;
            }
            else
            {
                $oe = 2;
            }
$Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");
$BanCount = mysql_num_rows($Bans);
            echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
            <tbody>
                <tr>
                    <td valign="middle" width="25">
                        <img style="margin-top: -10px;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
                    </td>
                    <td valign="top">
                        </br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Last online: <i>' . date('d M, Y', $member['last_online']) . '</i><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
                        <hr>
                        Role: <b>' . $member['role'] . '</b><br>
                        Age: ' . $member['age'] . '</br>
                        Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br>
                    
                        Bans: <b>'; echo $BanCount;
                    
                    
                    
                    
                    
                    
                
                    
                    echo '<br><img src="http://playhabshine.tk/r63/c_images/album1584/Admin.gif"><img src="http://playhabshine.tk/app/tpl/skins/Powah/images/flags/' .$member['country'] . '.png">
                    </td>
                
                    </td>
                </tr>
            </tbody>
            </table>';
        }
    }
    else
    {
        echo '<i>No information available.</i>';
    }
    echo '</div>
    </div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>                
                    
                    
        
</div>
          
        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
    
        <div id="column2" class="column"><div class="habblet-container ">
<?php
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 6 or ID = 5 ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
    echo '<div class="habblet-container ">    
<div class="cbb clearfix settings ">
<h2 class="title"><span style="float: left;">Administration</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';
    $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age FROM users WHERE rank = '" . $Ranks['id'] . "'");
    echo '<div class="box-content">';
    if (mysql_num_rows($getMembers) > 0)
    {
        $oe = 1;
    
        while ($member = mysql_fetch_assoc($getMembers))
        {
            if ($oe == 2)
            {
                $oe = 1;
            }
            else
            {
                $oe = 2;
            }
    $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");
$BanCount = mysql_num_rows($Bans);
            echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
            <tbody>
                <tr>
                    <td valign="middle" width="25">
                        <img style="margin-top: -10px;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
                    </td>
                    <td valign="top">
                        </br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Last online: <i>' . date('d M, Y', $member['last_online']) . '</i><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
                        <hr>
                        Role: <b>' . $member['role'] . '</b><br>
                        Age: ' . $member['age'] . '</br>
                        Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br>
                        Bans: <b>'; echo $BanCount;
                    
                    
                    
                    
                    
                
                    
                    echo '<p style="margin-top: 0px;"><img src="http://playhabshine.tk/r63/c_images/album1584/ADM2.gif"></p>
                
                    </td>
                </tr>
            </tbody>
            </table>';
        }
    }
    else
    {
        echo '<i>No information available.</i>';
    }
    echo '</div>
    </div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
<div id="column2" class="column"><div class="habblet-container ">
<?php
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 500 ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
    echo '<div class="habblet-container ">    
<div class="cbb clearfix green ">
<h2 class="title"><span style="float: left;">Administrator</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';
    $getMembers = mysql_query("SELECT id,username,motto,look,online,last_online FROM users WHERE rank = '" . $Ranks['id'] . "'");
    echo '<div class="box-content">';
    if (mysql_num_rows($getMembers) > 0)
    {
        $oe = 1;
    
        while ($member = mysql_fetch_assoc($getMembers))
        {
            if ($oe == 2)
            {
                $oe = 1;
            }
            else
            {
                $oe = 2;
            }
    $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");
$BanCount = mysql_num_rows($Bans);
            echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
            <tbody>
                <tr>
                    <td valign="middle" width="25">
                        <img style="margin-top: -10px;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
                    </td>
                    <td valign="top">
                        </br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Motto: ' . $member['motto'] . '' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></p><p style="margin-top: -8px;"><img src="http://playhabshine.tk/r63/c_images/album1584/ADM.gif"></p>
                        ';
                    
                
                    
                    echo '</td>
                
                    </td>
                </tr>
            </tbody>
            </table>';
        }
    }
    else
    {
        echo '<i>No information available.</i>';
    }
    echo '</div>
    </div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
</div></div></div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
        <div id="column2" class="column"><div class="habblet-container ">
<?php
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 3 or Id = 4  ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
    echo '<div class="habblet-container ">    
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Moderation</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';
    $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age FROM users WHERE rank = '" . $Ranks['id'] . "'");
    echo '<div class="box-content">';
    if (mysql_num_rows($getMembers) > 0)
    {
        $oe = 1;
    
        while ($member = mysql_fetch_assoc($getMembers))
        {
            if ($oe == 2)
            {
                $oe = 1;
            }
            else
            {
                $oe = 2;
            }
            echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
            <tbody>
                <tr>
                    <td valign="middle" width="25">
                        <img style="margin-top: -10px;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
                    </td>
                    <td valign="top">
                        </br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Last online: <i>' . date('d M, Y', $member['last_online']) . '</i><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
                        <hr>
                        Role: <b>' . $member['role'] . '</b><br>
                        Age: ' . $member['age'] . '</br>
                        Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br>
                        Bans: <b>'; echo $BanCount;
                    
                    
                    
                    
                    
                
                    
                    echo '<p style="margin-top: 0px;"><img src="http://playhabshine.tk/r63/c_images/album1584/ADM2.gif"></p>
                
                    </td>
                </tr>
            </tbody>
            </table>';
        }
    }
    else
    {
        echo '<i>No information available.</i>';
    }
    echo '</div>
    </div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                                
        <script type="text/javascript">
            HabboView.run();
        </script>
        <!--[if lt IE 7]>
            <script type="text/javascript">
                Pngfix.doPngImageFix();
            </script>
        <![endif]-->
        </div></div>
        <![endif]-->
       
        <div id="footer" >
        </div>
   
    </body>
</html>
I'm aiming to get my staff page like fresh's. Its all good, apart from I would like more than one rank to be listed in a column, but with my code, it creates a new one underneath. any ideas how?
 

Users who are viewing this thread

Top