ich habe mal einwenig das Staff bearbeitet, es beinhaltet eine ON/OFF Anzeige und ein besserer überblick
Vorschau Bilder:
Nun zum Code:
PHP Code:
<?php include('./inc/header.php');
function checkOnline($user){
global $mssql;
$co = odbc_fetch_array(odbc_exec($mssql,"SELECT MultiServer FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE m_szName='".$user."'"));
if($co["MultiServer"]!=0){
return "".$user." <img src='img/status-online.png' alt='Online' style='margin-bottom:-3px'><br>";
}else{
return $user." <img src='img/status-offline.png' alt='Offline' style='margin-bottom:-3px'><br>";
}
}
?>
<h1>Team Mitglieder</h1>
<center><div class="site">
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="admin" align="center">Administratoren</legend>
<?php echo checkOnline("DragooN"); ?><br>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="admin" align="center">Co-Administratoren</legend>
<?php echo checkOnline("CHAR NAME"); ?>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="gamemaster" align="center">Head Game-Masters</legend>
<?php echo checkOnline("CHAR NAME"); ?>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="gamemaster" align="center">Game-Masters</legend>
No Game-Masters
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="developer" align="center">Developers</legend>
<?php echo checkOnline("CHAR NAME"); ?>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="web-dev" align="center">Web-Developers</legend>
<?php echo checkOnline("CHAR NAME"); ?>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="designer" align="center">Designer</legend>
<?php echo checkOnline("CHAR NAME"); ?>
</fieldset><br>
<fieldset style="width:250px; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px;">
<legend id="moderator" align="center">Moderatoren ( Without Rights )</legend>
No Moderators
</fieldset>
<?php
/*
function checkOnline2($user){
global $mssql;
$co = odbc_fetch_array(odbc_exec($mssql,"SELECT MultiServer FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE m_szName='".$user."'"));
if($co["MultiServer"]!=0){
return " <img src='img/status-online.png' alt='Online' style='margin-bottom:-3px'><br>";
}else{
return " <img src='img/status-offline.png' alt='Offline' style='margin-bottom:-3px'><br>";
}
}
function getStaffTeam($auth,$user){
switch($auth){
case "Z":$auth = "[Administrator]"; $a="<font color='red'>"; $e="</font>"; break;
case "P":$auth = "[Developer]"; $a="<font color='orange'>"; $e="</font>"; break;
case "N":$auth = "[Head Game-Master]"; $a="<font color='green'>"; $e="</font>"; break;
}
return $a."".$user." ".$auth."".$e."".checkOnline2($user);
}
$staff_qry = odbc_exec($mssql,"SELECT * FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE NOT m_chAuthority = 'F' ORDER By m_chAuthority DESC");
while($staff = odbc_fetch_array($staff_qry)){
echo getStaffTeam($staff["m_chAuthority"],$staff["m_szName"]);
}
*/
?>
</div>
<?php include('./inc/footer.php'); ?>
Und hier noch die ON/OFF bilder:

THANKS sind gerne gesehn






