PHP
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');
$sql_1 = mysql_query("SELECT username,userid,figure FROM cms_staffpage ORDER BY userid");
$sql_2 = mysql_query("SELECT userid,figure,leftpx,toppx FROM cms_staffpage ORDER BY userid");
$sql_3 = mysql_query("SELECT userid,toppx FROM cms_staffpage ORDER BY userid");
$sql_4 = mysql_query("SELECT username,userid,leftpx,toppx,figure FROM cms_staffpage ORDER BY userid");
$pagename = "Staffpage";
$pageid = "13";
require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');
?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<script>
<?php while($row = mysql_fetch_row($sql_1)){ $userdata = mysql_fetch_row(mysql_query("SELECT look,online,working,motto FROM users WHERE id = '".$row[1]."'")); ?>
function getInfos<?php echo $row[1]; ?>() {
document.getElementById("inffos").innerHTML = '<img src="<?php echo $avatar.$userdata[0].$row[2]; ?>" style="float:right;"><b>Name: <?php echo $row[0]; ?></B><div style="padding:5px;"><img src="<?php echo $path; ?>/web-gallery/images/myhabbo/habbo_<?php if($userdata[1] == "0"){ echo"offline"; } else { echo"online_anim"; } ?>_big.gif" /><br /><br />Mission: "<?php echo HoloText($userdata[3]); ?>"<br />Aufgabe: <?php echo $row[5]; ?><br /><a href="/home/<?php echo $row[0]; ?>">Xubbo Home besuchen</a></div>';
}
<?php } ?>
function staffinit() {
document.getElementById("staffs").innerHTML = '<?php while($row = mysql_fetch_row($sql_2)){ $userdata = mysql_fetch_row(mysql_query("SELECT look,online FROM users WHERE id = '".$row[0]."'")); ?><div style="position:absolute;left:<?php echo $row[2] + 10; ?>px;top:<?php echo $row[3] - 10; ?>px;right:0px;height:90px;width:40px;background-image: url(<?php echo $path; ?>/web-gallery/v2/images/staffs/empty.png);z-index:210" id="animate-<?php echo $row[0]; ?>" onmouseover="getInfos<?php echo $row[0]; ?>();"></div><div id="habbo<?php echo $row[0]; ?>" style="z-index:10;position:absolute;top:-40px;left:<?php echo $row[2]; ?>px;opacity:<?php if($userdata[1] == "0"){ echo"0.5"; } else { echo"1"; } ?>"><img src="<?php echo $avatar.$userdata[0].$row[1]; ?>" /></div><?php } ?>';
<?php while($row = mysql_fetch_row($sql_3)){ ?>
$("#habbo<?php echo $row[0]; ?>").animate({ top: "<?php echo $row[1]; ?>px"},900);
<?php } ?>
}
</script>
<div class="cb clearfix green " style="z-index:999;width:300px;position:absolute;left:20px;top:20px;">
<div class="bt">
<div>
</div>
</div>
<div class="i1">
<div class="i2">
<div class="i3">
<div class="box-tabs-container clearfix">
</div>
<div id="inffos" style="padding-left:4px;">
<p><b>Das ist die neue Staffliste!</b></p>
<p>Leicht unsichtbare Staffs sind offline, gut sichtbare Staffs sind online. Wenn du mehr Infos über einen Staff haben möchtest, klicke ihn an!!</p>
</div>
</div>
</div>
</div>
<div class="bb">
<div>
</div>
</div>
</div>
<img style="margin-top:-8px;z-index:1;" src="<?php echo $path; ?>/room_bus_float.png" />
<div id="staffs">
</div>
<script type="text/javascript">
staffinit();
</script>
</div>
</div>
</div>
<?php require('./templates/community_footer.php'); ?>
Alles anzeigen
Ist Staff.php hab nicht grad viel Erfahrung vielleicht hilft euch das weiter...