<html>
<head>
<title></title>
<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=iso-8859-1">
<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; background-color:;}
.quote {
	font-family: "Verdana";
	font-size: 10px;
	color: #000000;
	background-color: ;
	border: 1px solid #FFFFFF;
	padding: 7px;
}
.style2 {color: #333333}
.style3 {
	font-weight: bold;
	color: #FFFFFF;
}
.style4 {font-weight: bold}
.style5 {color: #FFFFFF}
.style7 {color: #C10000}
</style>
</head>
<?
include("cnn.php");
$query = 'SELECT TOP 100 Name, PkLevel, PkTime from Character where ctlcode<=1 order by PkLevel desc, PkTime desc';
$result = mssql_query($query);
?>
<body>
<center>
  <p align="center" class='post-footer'> <span class="post-footer"><a href="resets.php">Rankings de Personagens</a>&nbsp;| <a href="guilds.php">Rankings de Guilds</a>&nbsp;|<span class="style7"> Rankings 
  PK</span></span>  <br>
  <form name="form1" method="post" onClick="rankpk.php">
    <table width="400" border="0" cellpadding="1" cellspacing="1">
      <tr bgcolor="#990000">
        <td width="48" height="14" valign="top" bgcolor="#333333"><div align="center" class="menus style4 style7 style2 style3">
            <div align="left" class="style5">N&ordm;</div>
        </div></td>
        <td width="172" valign="top" bgcolor="#333333"><div align="center" class="menus style5"><strong>Personagem</strong></div></td>
        <td width="192" valign="top" bgcolor="#C10000"><div align="center" class="menus style5"><strong>Pk 
        Level</strong></div></td>
        <td width="192" valign="top" bgcolor="#333333"><div align="center" class="menus style5"><strong>Pk 
        Tempo</strong></div></td> 
      </tr>
      
      <?
		for($i=0;$i < mssql_num_rows($result);++$i)
			{
			$row = mssql_fetch_row($result);
			$rank = $i+1;
			echo "<tr>
			  <td> <center><font color=#999999>$rank</td>
              <td> <center><font color=#999999>$row[0]</center></td>
              <td> <center><font color=#999999>$row[1]</center></td>
			  <td> <center><font color=#FF3300>$row[2] Horas</center></td>
			  </tr>";
			}
		?>
    </table>
    <p>
      <input name="Submit" type="submit" class="menus" value="ATUALIZAR">
    </p>
  </form>
</center>
</body>
</html>
