Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Help with a staff page
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MarleyRetroo" data-source="post: 334523" data-attributes="member: 53400"><p>My staff page currently looks like this:</p><p></p><p>[PHP]<!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>{hotelName} - Staff</title></p><p> <link rel="shortcut icon" href="{url}/favicon.ico?<?php echo time() ?>" type="image/x-icon"/></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css?<?php echo time() ?>" type="text/css"></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js?<?php echo time() ?>"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js?<?php echo time() ?>"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js?<?php echo time() ?>"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js?<?php echo time() ?>"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js?<?php echo time() ?>"></script></p><p> </p><p> <script type="text/javascript"></p><p> document.habboLoggedIn = true;</p><p> var habboName = "{username}";</p><p> var habboId = {userid};</p><p> var habboReqPath = "";</p><p> var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";</p><p> var habboImagerUrl = "http://www.habbo.com.tr/habbo-imaging/";</p><p> var habboPartner = "";</p><p> var habboDefaultClientPopupUrl = "{url}/client";</p><p> window.name = "habboMain";</p><p> if (typeof HabboClient != "undefined") {</p><p> HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";</p><p> HabboClient.maximizeWindow = true;</p><p> }</p><p> </script></p><p> </p><p> <!--[if IE 8]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css"></p><p> <![endif]--></p><p> <!--[if lt IE 8]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" /></p><p> <![endif]--></p><p> <!--[if lt IE 7]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" /></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script></p><p> <script type="text/javascript"></p><p> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</p><p> </script></p><p> <style type="text/css"></p><p> body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }</p><p> </style></p><p> <![endif]--></p><p> </head></p><p> </p><p> <body id="home"></p><p> </p><p> <div id="overlay"></div></p><p> <div id="header-container"></p><p> <div id="header" class="clearfix"></p><p> <h1><a href="{url}/"></a></h1></p><p> <div id="subnavi"></p><p> <div id="subnavi-user"></p><p> <div style="margin-top:7px;font-size:10px"></p><p> <?php include"randomFacts.php" ?></p><p> </div></p><p> </div></p><p> <div id="subnavi-search"></p><p> <div id="subnavi-search-upper"></p><p> <ul id="subnavi-search-links"></p><p> <li><a href="{url}/logout" style="color:#000;font-size:10px;">Sign Out</a></p><p> </ul></p><p> </div></p><p> </div></p><p> <div id="to-hotel"></p><p> <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></p><p> <?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>'; } ?></p><p> </div></p><p> </div></p><p> <ul id="navi"></p><p> <li class="viptab1"><strong>{username}</strong><span></span></li></p><p> <li class="selected"><a href="{url}/community">Community</a><span></span></li></p><p> <li class="viptab"><a href="{url}/shop">Shop</a><span></span></li></p><p> </p><p> </ul></p><p></p><p> <div id="habbos-online"><div class="rounded"><span>{online} members online</span></div></div></p><p> </div></p><p> </div></p><p> <div id="content-container"></p><p> <div id="navi2-container" class="pngbg"></p><p> <div id="navi2" class="pngbg clearfix"></p><p> <ul></p><p> <li <a href="{url}/community"">Community</li></p><p> <li><a href="{url}/news">News</a></li></p><p> <li><a href="{url}/staff">Staff</a></li></p><p> </p><p> </ul></p><p> </div></p><p> </div></p><p> <div id="container"></p><p> <div id="content"></p><p> <div id="column2" class="column"></p><p><?php</p><p>error_reporting(0);</p><p>$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 8 or id = 7 ORDER BY id DESC");</p><p>$Bans = mysql_query("SELECT * FROM `bans` WHERE `username` = '" . $Users['username'] . "'");</p><p>$BanCount = mysql_num_rows($Bans);</p><p>echo $BanCount;</p><p>while ($Ranks = mysql_fetch_assoc($getRanks))</p><p>{</p><p> echo '<div class="habblet-container "> </p><p><div class="cbb clearfix red "></p><p><h2 class="title"><span style="float: left;">Management</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';</p><p> $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age,country FROM users WHERE rank = '" . $Ranks['id'] . "'");</p><p> echo '<div class="box-content">';</p><p> if (mysql_num_rows($getMembers) > 0)</p><p> {</p><p> $oe = 1;</p><p> while ($member = mysql_fetch_assoc($getMembers))</p><p> {</p><p> if ($oe == 2)</p><p> {</p><p> $oe = 1;</p><p> }</p><p> else</p><p> {</p><p> $oe = 2;</p><p> }</p><p>$Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");</p><p>$BanCount = mysql_num_rows($Bans);</p><p> echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"></p><p> <tbody></p><p> <tr></p><p> <td valign="middle" width="25"></p><p> <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"></p><p> </td></p><p> <td valign="top"></p><p> </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></p><p> <hr></p><p> Role: <b>' . $member['role'] . '</b><br></p><p> Age: ' . $member['age'] . '</br></p><p> Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br></p><p> </p><p> Bans: <b>'; echo $BanCount;</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> 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"></p><p> </td></p><p> </p><p> </td></p><p> </tr></p><p> </tbody></p><p> </table>';</p><p> }</p><p> }</p><p> else</p><p> {</p><p> echo '<i>No information available.</i>';</p><p> }</p><p> echo '</div></p><p> </div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';</p><p>}</p><p>?> </p><p> </p><p> </p><p> </p><p></div></p><p> </p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> <div id="column2" class="column"><div class="habblet-container "></p><p><?php</p><p>$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 6 or ID = 5 ORDER BY id DESC");</p><p>while ($Ranks = mysql_fetch_assoc($getRanks))</p><p>{</p><p> echo '<div class="habblet-container "> </p><p><div class="cbb clearfix settings "></p><p><h2 class="title"><span style="float: left;">Administration</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';</p><p> $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age FROM users WHERE rank = '" . $Ranks['id'] . "'");</p><p> echo '<div class="box-content">';</p><p> if (mysql_num_rows($getMembers) > 0)</p><p> {</p><p> $oe = 1;</p><p> </p><p> while ($member = mysql_fetch_assoc($getMembers))</p><p> {</p><p> if ($oe == 2)</p><p> {</p><p> $oe = 1;</p><p> }</p><p> else</p><p> {</p><p> $oe = 2;</p><p> }</p><p> $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");</p><p>$BanCount = mysql_num_rows($Bans);</p><p> echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"></p><p> <tbody></p><p> <tr></p><p> <td valign="middle" width="25"></p><p> <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"></p><p> </td></p><p> <td valign="top"></p><p> </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></p><p> <hr></p><p> Role: <b>' . $member['role'] . '</b><br></p><p> Age: ' . $member['age'] . '</br></p><p> Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br></p><p> Bans: <b>'; echo $BanCount;</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> echo '<p style="margin-top: 0px;"><img src="http://playhabshine.tk/r63/c_images/album1584/ADM2.gif"></p></p><p> </p><p> </td></p><p> </tr></p><p> </tbody></p><p> </table>';</p><p> }</p><p> }</p><p> else</p><p> {</p><p> echo '<i>No information available.</i>';</p><p> }</p><p> echo '</div></p><p> </div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';</p><p>}</p><p>?></p><p><div id="column2" class="column"><div class="habblet-container "></p><p><?php</p><p>$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 500 ORDER BY id DESC");</p><p>while ($Ranks = mysql_fetch_assoc($getRanks))</p><p>{</p><p> echo '<div class="habblet-container "> </p><p><div class="cbb clearfix green "></p><p><h2 class="title"><span style="float: left;">Administrator</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';</p><p> $getMembers = mysql_query("SELECT id,username,motto,look,online,last_online FROM users WHERE rank = '" . $Ranks['id'] . "'");</p><p> echo '<div class="box-content">';</p><p> if (mysql_num_rows($getMembers) > 0)</p><p> {</p><p> $oe = 1;</p><p> </p><p> while ($member = mysql_fetch_assoc($getMembers))</p><p> {</p><p> if ($oe == 2)</p><p> {</p><p> $oe = 1;</p><p> }</p><p> else</p><p> {</p><p> $oe = 2;</p><p> }</p><p> $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");</p><p>$BanCount = mysql_num_rows($Bans);</p><p> echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"></p><p> <tbody></p><p> <tr></p><p> <td valign="middle" width="25"></p><p> <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"></p><p> </td></p><p> <td valign="top"></p><p> </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></p><p> ';</p><p> </p><p> </p><p> </p><p> echo '</td></p><p> </p><p> </td></p><p> </tr></p><p> </tbody></p><p> </table>';</p><p> }</p><p> }</p><p> else</p><p> {</p><p> echo '<i>No information available.</i>';</p><p> }</p><p> echo '</div></p><p> </div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';</p><p>}</p><p>?></p><p></div></div></div></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> <div id="column2" class="column"><div class="habblet-container "></p><p><?php</p><p>$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 3 or Id = 4 ORDER BY id DESC");</p><p>while ($Ranks = mysql_fetch_assoc($getRanks))</p><p>{</p><p> echo '<div class="habblet-container "> </p><p><div class="cbb clearfix blue "></p><p><h2 class="title"><span style="float: left;">Moderation</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';</p><p> $getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age FROM users WHERE rank = '" . $Ranks['id'] . "'");</p><p> echo '<div class="box-content">';</p><p> if (mysql_num_rows($getMembers) > 0)</p><p> {</p><p> $oe = 1;</p><p> </p><p> while ($member = mysql_fetch_assoc($getMembers))</p><p> {</p><p> if ($oe == 2)</p><p> {</p><p> $oe = 1;</p><p> }</p><p> else</p><p> {</p><p> $oe = 2;</p><p> }</p><p> echo '<table width="107%" height="50px" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"></p><p> <tbody></p><p> <tr></p><p> <td valign="middle" width="25"></p><p> <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"></p><p> </td></p><p> <td valign="top"></p><p> </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></p><p> <hr></p><p> Role: <b>' . $member['role'] . '</b><br></p><p> Age: ' . $member['age'] . '</br></p><p> Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br></p><p> Bans: <b>'; echo $BanCount;</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> echo '<p style="margin-top: 0px;"><img src="http://playhabshine.tk/r63/c_images/album1584/ADM2.gif"></p></p><p> </p><p> </td></p><p> </tr></p><p> </tbody></p><p> </table>';</p><p> }</p><p> }</p><p> else</p><p> {</p><p> echo '<i>No information available.</i>';</p><p> }</p><p> echo '</div></p><p> </div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';</p><p>}</p><p>?></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> <script type="text/javascript"></p><p> HabboView.run();</p><p> </script></p><p> <!--[if lt IE 7]></p><p> <script type="text/javascript"></p><p> Pngfix.doPngImageFix();</p><p> </script></p><p> <![endif]--></p><p> </div></div></p><p> <![endif]--></p><p> </p><p> <div id="footer" ></p><p> </div></p><p> </p><p> </body></p><p></html>[/PHP]</p><p>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?</p></blockquote><p></p>
[QUOTE="MarleyRetroo, post: 334523, member: 53400"] 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>[/PHP] 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? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Help with a staff page
Top