<HTML>
<HEAD><LINK REL="StyleSheet" HREF="barra.css" TYPE="text/css"><meta http-equiv=Page-Exit content=blendTrans(Duration=1.0)>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">

<? 
include 'cnn.php'; 
include 'configs/conf_extras.php';
$QueryListUsersOn = mssql_query("SELECT Memb___Id FROM Memb_Stat WHERE ConnectStat>0 ORDER By Memb___Id ASC");
?>
<style type="text/css">
body { background-color:#000; }
a { font-size:11px; color:#999; text-decoration:none; font-family:"Tahoma"; }
a:hover { color:gray; text-decoration:underline;}
body,th,tr { font-size:11px; color:#333; font-family:"Tahoma" }
input { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
select { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #FFF; }
.submit { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #999; bac }
.resetes { font-size:11px; color:#F60; font-family:"Tahoma"; border:1px solid #333;
<!--
body,td,th {
	color: #333333;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
body {
	background-image: url();
}
a {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #333333;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #333333;
}
a:hover {
	text-decoration: none;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
.style4 {color: #FFFFFF}
-->
</style>
</HEAD>

<BODY>

<table width="70%" height="17" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="51" height="15" bgcolor="#999999"><div align="center" class="style4"><font class="titulos_destaque">Rank</font></div></td>
    <td width="83" bgcolor="#999999"><div align="center" class="style4"><font class="titulos_destaque">Nome</font></div></td>
    <td width="53" bgcolor="#999999"><div align="center" class="style4"><font class="titulos_destaque">Level</font></div></td>
    <td width="79" bgcolor="#999999"><div align="center" class="style4"><font class="titulos_destaque">Resets</font></div></td>
    <td width="105" bgcolor="#999999"><font class="titulos_destaque style4">Sala</font></td>
  </tr>
  <? 
  for($r=0;$r<mssql_num_rows($QueryListUsersOn);$r++) {
  $rank=$r+1;
  $rListOn = mssql_fetch_row($QueryListUsersOn);
	$qGameIdc = mssql_query("SELECT GameIdc from AccountCharacter WHERE Id='".$rListOn[0]."'");
	$rGameIdc = mssql_fetch_row($qGameIdc);
	$qCharOn = mssql_query("SELECT Name,Resets,cLevel FROM Character WHERE Name='".$rGameIdc[0]."'");
	$rCharOn = mssql_fetch_row($qCharOn);
	$qPegaSala = mssql_query("SELECT ServerName FROM Memb_STAT WHERE Memb___Id='".$rListOn[0]."'");
	$rMostraSala = mssql_fetch_row($qPegaSala);
  ?>
   <tr>
    <td width="51" height="21" bgcolor="#0B0B0B"><div align="left"><font class="titulos_destaque" >
      <?=$rank?>
    </font></div></td>
    <td width="83" bgcolor="#0B0B0B" >
      <div align="center"><b> 
        <?=$rGameIdc[0]?> 
     </b> </div></td>
    <td width="53" bgcolor="#0B0B0B" <?=$bgtd?>>
      <div align="center">
        <?=$rCharOn[2]?> 
     </div></td>
    <td width="79" bgcolor="#0B0B0B" <?=$bgtd?>>
      <div align="center">
       <font class="resetes"> <?=$rCharOn[1]?>   </font>
      </div></td>
    <td width="105" bgcolor="#0B0B0B" <?=$bgtd?>><div align="center">
      <?=$rMostraSala[0]?>
    </div>     </td>
  </tr>
  <? } ?>
</table>
<div align="center"><br>
</div>
<div align="center"></div>
<table width="59" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#D4D4D4"><input type="button" value="ATUALIZAR !" onclick=javascript:window.history.go(0)> </td>
  </tr>
</table>
</BODY>
</HTML>