PHP
<!----- Beginn ----->
<div class="content">
<div class="content-container">
<div class="content-header red">
<p>Projektleitung</p>
</div>
<?php
$staffs = mysql_query("SELECT * FROM users WHERE rank = '8' AND id != '23' ORDER BY last_online DESC");
if($staffs->num_rows == 0) {
echo 'Keine Mitarbeiter verfügbar!';
} else {
while($staff_row = mysql_fetch_assoc($staffs)){
// AND id != '23' blendet Ceapo von der Staffliste aus
?>
<div class="content-content">
<table width="100%">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="opacity:<?php if($staff_row['online'] == "0"){ echo"0.5"; } else { echo"1"; } ?>;margin-top: -10px;" src="http://habbo.it/habbo-imaging/avatarimage?figure=<?php echo $staff_row['look']; ?>&action=crr=6,sit&direction=2&head_direction=3&gesture=sml&size=m">
</td>
<td valign="top">
<p>Username: <strong><?php echo $staff_row['username']; ?></strong></p>
<p>Motto: <strong><?php echo $staff_row['motto']; ?></strong></p>
<p>Status: <strong><?php if($staff_row['online'] == "0"){ echo '<a class="off">Offline</a>'; } else { echo '<a class="on">Online</a>'; } ?></strong></p>
<p>Email: <strong><?php echo $staff_row['mail']; ?></strong></p>
<br />
<img src="<?php echo $path; ?>/c_images/album1584/ADM.gif" style="float: left;"> </td>
<td valign="top" style="float: right;">
<?php if($staff_row['online'] == 1) { ?>
<img src="<?php echo $path; ?>/design/images/online.gif"/></td>
<?php } else { ?>
<img src="<?php echo $path; ?>/design/images/offline.gif"/></td>
<?php } ?>
</tr>
</tbody>
</table>
</div>
<?php } } ?>
</div>
</div>
Alles anzeigen