Re: Problema nella pagina Staff.
@
Cix10 si, grazie.
<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2011 trakons. All rights reserved.
|+===================================================*/
$allow_guests = true;
include('core.php');
include('includes/session.php');
if(HoloText(getContent('forum-enabled'), true) !== "1"){ header("Location: index.php"); exit; }
$pagename = "STAFF";
$pageid = "staff";
$body_id = "viewmode";
include('templates/community/subheader.php');
include('templates/community/header.php');
$page = $_GET['page'];
$threads = mysql_evaluate("SELECT COUNT(*) FROM cms_forum_threads WHERE forumid='0'");
$pages = ceil(($threads + 0) / 10);
if($page > $pages || $page < 1){
$page = 1;
}
$key = 0;
?>
<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Amministratori</span> <span style="float: right; font-weight: normal; font-size: 75%;">Amministratori & Tecnici dell'hotel</span></h2>
<div class="habblet box-content">
<img src="http://images.habbo.it/c_images/album1584/TLB.gif" align="right">
<img src="http://images.bss.vg/gamedata/c_images/album1584/ADM.gif" align="right">
</h2>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo FROM users WHERE rank = 7 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 7){
echo "Nessun membro dello staff";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if(empty($row[7])){
$row[7] = "Nessun Ruolo";
}
if(empty($row[1])){
$row[1] = "Nessuna missione";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== true){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "online ora";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$even = IsEven($countEven) ? 'even' : 'odd';
printf("<p><img src='http://lubux.org/habbo-imaging/avatarimage.php?figure=%s&size=b&direction=2&head_direction=3&gesture=sml' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b> <img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s %s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[7],$row[3], $badge, $gbadge);
}
}
?>
</li> </div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Moderatori</span> <span style="float: right; font-weight: normal; font-size: 75%;">Moderatori & Leaders</span></h2>
<div class="habblet box-content">
<img src="http://images.bss.vg/gamedata/c_images/album1584/ADM.gif" align="right">
</h2>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo FROM users WHERE rank = 6 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 6){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if(empty($row[7])){
$row[7] = "Nessun Ruolo";
}
if(empty($row[1])){
$row[1] = "Nessuna missione";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online ora!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
printf("<p><img src='http://lubux.org/habbo-imaging/avatarimage.php?figure=%s&size=b&direction=2&head_direction=3&gesture=sml' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b> <img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s %s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[7],$row[3], $badge, $gbadge);
}
}
?>
</li></div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Moderatori in prova</span> <span style="float: right; font-weight: normal; font-size: 75%;">Moderatori in prova</span></h2>
<div class="habblet box-content">
<img src="http://images.habbo.it/c_images/album1584/HBA.gif" align="right"><img src="http://images.habbo.it/c_images/album1584/NWB.gif" align="right">
</h2>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo FROM users WHERE rank = 5 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 5){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if(empty($row[7])){
$row[7] = "Nessun Ruolo";
}
if(empty($row[1])){
$row[1] = "Nessuna missione";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online ora!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
printf("<p><img src='http://lubux.org/habbo-imaging/avatarimage.php?figure=%s&size=b&direction=2&head_direction=3&gesture=sml' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b> <img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s %s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[7],$row[3], $badge, $gbadge);
}
}
?> <br>
</li></div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title">Serve aiuto?
</h2>
<div id="notfound-looking-for" class="box-content">
<p>Se hai un emergenza puoi contattarci cliccando su <b><font color="grey" size="2">Aiuto</font></b> che trovi in alto a destra in hotel oppure se hai una domanda sull'hotel e non trovi la risposta nelle <a href=/help.php target="blank">FAQ</a> puoi contattarci attraverso l'<a href="/iot/" target="blank">help tool</a> in home.</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">Entrare nel team
</h2>
<div id="notfound-looking-for" class="box-content">
<p>Al momento non cerchiamo staff.
Quando ci serviranno nuovi membri lo comunicheremo attraverso le <a href="/news.php">news</a>, quindi resta sintoinzzato su <b>SLV Hotel</b> per essere sempre aggiornato!</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="ad-container">
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">
HabboView.run();
</script>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
</div>
<div id="footer">
<p><a href="/index.php" target="_self">Homepage</a> | <a href="/iot/" target="_blank">Contattaci</a> | <a href="/disclaimer.php" target="_self">Termini di servizio</a> | <a href="/help.php" target="_self">FAQ</a> | <a href="/privacy.php" target="_self">Privacy Policy</a> | <a href="./group_profile.php?id=2129">Consigli di sicurezza</a> | <a href="./group_profile.php?id=2130">SLV Way</a></p>
<p>Powered by HoloCMS © 2008 Meth0d & Parts by Yifan, sisija, translated and edited by _zero_<br/>HABBO is a registered trademark of Sulake Corporation. All rights reserved to their respective owner(s).<br/>We are not endorsed, affiliated, or sponsered by Sulake Corporation Oy.</p>
</div>
<script type="text/javascript">
<!--
document.write('<iframe marginheight="0px" marginwidth="0px" frameborder="0" scrolling="no" width="728" height="90" src="http://optimized-by.simply.com/play.html?code=129413;57907;49933;0&from='+escape(document.referrer)+'"></iframe>');
// -->
</script>
</div>
</div>
</body>
</html>