<?php
$allow_guests = true;
include('core.php');
include('includes/session.php');
$pagename = "Staff";
$pageid = "staff";
require_once('./templates/subheader.php');
require_once('./templates/header.php');
?>
<div id="container">
<div id="content">
<?php
$i = 0;
$getem = mysql_query("SELECT * FROM ranks WHERE id > 5 AND id < 10 ORDER BY id DESC");
while ($rank = mysql_fetch_assoc($getem)) {
?>
<div id="column1" class="column">
<div style="width: 440px;" class="case">
<div id="<?php echo $rank['color']; ?>_case" class="haut_case"><?php echo $rank['name']; ?></div>
<div class="texte_case">
<?php
$userdata = mysql_query("SELECT * FROM users WHERE rank = '".$rank['id']."' ORDER BY username");
while($row = mysql_fetch_assoc($userdata)){
$i++;
$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
if(mysql_num_rows($badge) > 0){
$badgerow = mysql_fetch_assoc($badge);
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badgerow['badge_id'].".gif\">";
}else{
$badge = "";
}
if($row['online'] == "1"){
$image = "online_anim";
} else {
$image = "offline";
}
?>
<li class="<?php echo $even; ?>">
<p>
<img src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row['look']; ?>&direction=2&gesture=sml&head_direction=3&gesture=null&action=null&size=" align='left'><br>
<img src='./web-gallery/v2/images/habbo_<?php echo $image; ?>.gif' border='0'>
<b><font color="<?php echo $rank['color']; ?>"><u><?php echo $row['username']; ?></u></font></b>
<span style="float: right;"><?php echo $badge; ?></span><br/>
<b><i><?php echo $row['role']; ?></i></b><br/><br/>
<b>Motto:</b> <?php echo $row['motto']; ?></span><br/>
<b>Ultimo Accesso:</b> <?php echo date('d/m/Y - H:i', $row['last_online']); echo""; ?><br/>
</p>
<img src=http://i43.tinypic.com/2my97o.jpg>
</li>
<?php } ?>
</div></div>
<?php } ?>
</div>
</div></div>
</div>
<div id="column2" class="column">
<div style="width: 300px;" class="case">
<div id="grey_case" class="haut_case">Lo Staff</div>
<div class="texte_case">
<b>I membri dello Staff</b> sono utenti che gestiscono la sicurezza e che organizzano competizioni. Altri lavorano per rendere l'Hotel migliore e garantire un ottimo servizio.
<br><b>Li puoi riconoscere da questi distintivi:</b><br>
<img src="http://dnt.webnet32.com/DCR/c_images/album1584/TEC.gif"> <img src="http://dnt.webnet32.com/DCR/c_images/album1584/FOU.gif"> <img src="http://dnt.webnet32.com/DCR/c_images/album1584/ADM.gif"> <img src="http://dnt.webnet32.com/DCR/c_images/album1584/MOD.gif"> <img src="http://dnt.webnet32.com/DCR/c_images/album1584/HOB.gif">
</div>
</div>
</div>
</div>
<div id="column3" class="column">
<?php include("templates/ads.php"); ?>
</div>
<script type="text/javascript">
HabboView.run();
</script>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php require_once('./templates/footer.php'); ?>