<?
include 'estilo.css';
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style5 {font-weight: bold}
-->
</style>
</head>

<body>
<table width="619" height="67" border="0" cellpadding="0" cellspacing="0" background="imagens/bg2.jpg">
  <tr>
    <td width="378"><table width="614" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="30"><img src="imagens/mu.gif" width="30" height="30" /></td>
        <td width="584" background="imagens/mu_back.gif">&nbsp;&nbsp;&nbsp;&nbsp;<strong>ADMINISTRA&Ccedil;&Atilde;O</strong></td>
      </tr>
    </table>
        <br />
        <table width="32%" border="0" align="center" cellpadding="0" cellspacing="2">
          <? 
  $Queryadms = mssql_query("select name,accountid from character where ctlcode>=8");
  for($b=0;$b<mssql_num_rows($Queryadms);$b++) {
  $Gm = mssql_fetch_row($Queryadms);
  $status = mssql_fetch_row(mssql_query("select connectstat from memb_stat where memb___id='".$Gm[1]."'"));
  switch($status[0]) {
  	case 0: $statusfinal = "<font color=red>Offline</font>"; break;
	case 1: $statusfinal = "<font color=green>Online</font>"; break;
	}
  ?>
          <tr>
            <td width="19%"><strong>
              <?=$Gm[0]?>
            </strong></td>
            <td width="14%"><div align="center"><font color="#009900">
                <?=$statusfinal?>
            </font></div></td>
          </tr>
          <? } ?>
      </table></td>
  </tr>
</table>
</body>
</html>
