<li> <span>Top Level:</span>
<?
$Top = mssql_query("select top 3 name,cLevel from character where ctlcode=0 or ctlcode=null order by cLevel desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="14"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Level <br>
'; } ?>
</li>
<br style="clear: both" />
</ul>
</div>
<div class="contentBox">
<ul class="rank">
<li style="margin-left: 7px;"> <span>Top Blade Knight:</span>
<?
$Top = mssql_query("select top 3 name,resets from character where Class=17 order by resets desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="15"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Resets <br>
'; } ?>
</li>
<li> <span>Top Soul Master:</span>
<?
$Top = mssql_query("select top 3 name,resets from character where Class=0 or Class=1 or Class=1 order by resets desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="14"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Resets <br>
'; } ?>
</li>
<li> <span>Top Magic Gladiator:</span>
<?
$Top = mssql_query("select top 3 name,resets from character where Class=48 order by resets desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="14"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Resets <br>
'; } ?>
</li>
<br style="clear: both" />
</ul><br style="clear: both" />
</ul>
</div>
<div class="contentBox">
<ul class="rank">
<li style="margin-left: 7px;"> <span>Top Muse Elf:</span>
<?
$Top = mssql_query("select top 3 name,resets from character where Class=33 order by resets desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="15"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Resets <br>
'; } ?>
</li>
<li> <span>Top Dark Lord:</span>
<?
$Top = mssql_query("select top 3 name,resets from character where Class=64 order by resets desc");
for($i=0;$i<mssql_num_rows($Top);$i++) {
$DadosTop = mssql_fetch_row($Top);
$rank = $i+1;
echo '
<img src="imagens/ranking/trofeu.gif" width="15" height="15"> '.$rank.' - <strong>'.$DadosTop[0].'</strong> - <strong>'.$DadosTop[1].'</strong> Resets <br>
'; } ?>
</li>
<br style="clear: both" />
</ul>