                       <?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");

$page['id'] = "staff";
$page['name'] = "Staff";
$page['bodyid'] = "home";
$page['cat'] = "community";

require_once('./templates/community_header.php');
?>
<div id="container">
	<div id="content" style="position: relative" class="clearfix">
    <div id="column1" class="column">

				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">Hotel Administrators
							</h2>
<p class="credits-countries-select">
<?php
    $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 7 ORDER BY rank DESC";
    $result = mysql_query($sql) OR die(mysql_error());
    if(mysql_num_rows($result)) {
        while($row = mysql_fetch_assoc($result)) {

		$userid = $row['id'];
                if($row['rank'] == "7")
		{
		$rank="<b/>Hotel Administrator</b>";
		}

if($row['private'] == 1)
{
  $s_username = 'Who Am I?';
  $s_mission = 'This member of staff would prefer to remain anonymous.';
  $s_figure = 'http://habborp.com/images/mystery.png';
}
else
{
  $s_username = $row['name'];
  $s_mission = $row['mission'];
  $s_figure = 'http://www.habbo.co.uk/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";
        }
}
?>
					</div>
						<div class="cbb clearfix blue ">

							<h2 class="title">Hotel Moderators
							</h2>
<p class="credits-countries-select">
<?php
    $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 6 ORDER BY rank DESC";
    $result = mysql_query($sql) OR die(mysql_error());
    if(mysql_num_rows($result)) {
        while($row = mysql_fetch_assoc($result)) {

		$userid = $row['id'];
                if($row['rank'] == "6")
		{
		$rank="<b/>Hotel Moderator</b>";
		}

if($row['private'] == 1)
{
  $s_username = 'Who Am I?';
  $s_mission = 'This member of staff would prefer to remain anonymous.';
  $s_figure = 'http://habborp.com/images/mystery.png';
}
else
{
  $s_username = $row['name'];
  $s_mission = $row['mission'];
  $s_figure = 'http://www.habbo.co.uk/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";
        }
}
?>


					</div>
				</div>
</div>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">Staff Team
							</h2>
						<div id="purse-habblet">

<div class="box-content">
<img src="http://www.habbosolutions.org/resources/images/habbocharacters/newsletter_editor.gif" align="right">
Our team is dedicated to providing our users a great time, yet keeping safety in mind. If you see a person is on "Anonymous" then they dont want to be bothered with people knowing they are staff, Be nice to all because you never know who is staff!
</div>
</div>


					</div>
				</div
</div>

<?php require_once('./templates/community_footer.php'); ?>