<?php 
if(!isset($_SESSION["logado"]) == 1) {
	exit('<div class="box_conteudo">Voc&ecirc; n&atilde;o pode acessar esta p&aacute;gina</div>');
}
else{
$vip = mssql_fetch_row(mssql_query("select ".colum_vip." from memb_info where memb___id='".$_SESSION["login"]."'"));
if($vip[0] < mudar_senha) {
	exit('<div class="box_conteudo">Voc&ecirc; n&atilde;o tem benef&iacute;cio para acessar esta p&aacute;gina</div>');
}
else{
?>
<!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>
</head>

<body>

<div class="about-team-page-top-wrap" style="padding-bottom: 0px; margin-top: -5px;">
    
</div>
<div class="match-list-wrap">
<br />
<br />
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="23%" height="24" align="right" style="color: #FFF">Personagem:</td>
    <td width="77%"><label>
      <select name="r_personagem" id="r_personagem">
      <?php 
	  $char = mssql_query("select name from character where accountid='".$_SESSION["login"]."'");
	  for($i=0;$i<mssql_num_rows($char);$i++) {
		$pega = mssql_fetch_row($char);
		echo '<option value="'.$pega[0].'">'.$pega[0].'</option>';
	}
	  ?>
      </select>
    </label></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><label>
      <input type="submit" name="reset" id="reset" onclick="loading('?go=resetar&efetuar=true'+'&r_personagem='+document.getElementById('r_personagem').value, 'reetar');" value="Resetar" />
    </label><br />
<br />
<div id="reetar" style="color:#FFF"></div>
</td>
  </tr>
</table><br />
<br />

</div>
<br />
<br />

<div class="about-team-page-top-wrap" style="padding-bottom: 0px; margin-top: -5px;">
    <div class="top-title" style="width: 100%;">
      <h2 style="color: #fff; font-size: 30px; margin-left: 30px; border-color: darkgray;">TABELA DE RESETES.</h2>
    </div>
</div>
<div class="match-list-wrap">
<br />
<br />
<?php if($RESET["CONFIGS"]["TYPE"] == 0) { ?>
<table width="80%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td width="25%" style="color: #FFF">&nbsp;</td>
    <td width="25%" bgcolor="#242424" style="color: #FFF"><div align="center"><strong>Free</strong></div></td>
    <td width="25%" bgcolor="#242424" style="color: #FFF"><div align="center"><strong><?php echo vip1_nome; ?></strong></div></td>
    <td width="25%" bgcolor="#242424" style="color: #FFF"><div align="center"><strong><?php echo vip2_nome; ?></strong></div></td>
  </tr>
  <tr>
    <td bgcolor="#232323" style="color: #FFF">&raquo; Level para resetar:</td>
    <td height="23" style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["LEVEL"][0]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["LEVEL"][1]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["LEVEL"][2]; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#232323" style="color: #FFF">&raquo; Level apos reset:</td>
    <td height="23" style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["AFTER_LEVEL"][0]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["AFTER_LEVEL"][1]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["AFTER_LEVEL"][2]; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#232323" style="color: #FFF">&raquo; Pontos por reset:</td>
    <td height="23" style="color: #FFF"><div align="center"><?php if($RESET["CONFIGS"]["TYPE"] == 0) { echo "Acumulativo"; } ?></div></td>
    <td style="color: #FFF"><div align="center"><?php if($RESET["CONFIGS"]["TYPE"] == 0) { echo "Acumulativo"; } ?></div></td>
    <td style="color: #FFF"><div align="center"><?php if($RESET["CONFIGS"]["TYPE"] == 0) { echo "Acumulativo"; } ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#232323" style="color: #FFF">&raquo; Zen necessário:</td>
    <td height="23" style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["ZEN"][0]  ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["ZEN"][1]  ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["ACUMULATIVO"]["ZEN"][2]  ?></div></td>
  </tr>
</table>
<? } ?>
<?php if($RESET["CONFIGS"]["TYPE"] == 1) { ?>
<table width="80%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td width="25%" style="color: #FFF">&nbsp;</td>
    <td width="25%" bgcolor="#1F1F1F" style="color: #FFF"><div align="center"><strong>Free</strong></div></td>
    <td width="25%" bgcolor="#1F1F1F" style="color: #FFF"><div align="center"><strong><?php echo vip1_nome; ?></strong></div></td>
    <td width="25%" bgcolor="#1F1F1F" style="color: #FFF"><div align="center"><strong><?php echo vip2_nome; ?></strong></div></td>
  </tr>
  <tr>
    <td bgcolor="#1E1E1E" style="color: #FFF">&raquo; Level para resetar:</td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["LEVEL"][0]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["LEVEL"][1]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["LEVEL"][2]; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#1E1E1E" style="color: #FFF">&raquo; Level apos reset:</td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["AFTER_LEVEL"][0]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["AFTER_LEVEL"][1]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["AFTER_LEVEL"][2]; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#1E1E1E" style="color: #FFF">&raquo; Pontos por reset:</td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["POINTS"][0]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["POINTS"][1]; ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["POINTS"][2]; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#1E1E1E" style="color: #FFF">&raquo; Zen necessário:</td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["ZEN"][0]  ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["ZEN"][1]  ?></div></td>
    <td style="color: #FFF"><div align="center"><?php echo $RESET["PONTUATIVO"]["ZEN"][2]  ?></div></td>
  </tr>
</table>
<? } ?><br />
<br />

</div>
</body>
</html>
<? }} ?>