					<div class="postui post-title">
	<h2><span>CARACTERELE</span></h2>
</div>
	
	<div class="postui post-con">
	<div class="con-wrap">   
		<img class="thumb12" width="100" src="http://metin2-nr.com/scorpius/templates/frontend/nr_style/nr_imagini/nr_diverse/use_5.jpg" alt="">
		<a><b>CARACTERELE</b></a>
		<div class="sep4"></div>
		Aflați mai multe informații despre caractere.<br>
		Citiți mai jos o serie de informații despre caracterele de pe contul tău.<br>
		Click pe nume pentru a <b>debloca caracterul</b> și așteptați 10-15 minute.
	</div>
</div>

<div class="postui post-end"></div>
				
				
				
				
<div class="postui post-title">
	<h2><span>CLASAMENTUL JUCATORILOR</span></h2>
</div>

<div class="postui post-con">
	<div class="con-wrap">


			<div class="sep4"></div><br>
					

<?php
if(isset($_SESSION['user']) && isset($_SESSION['pass'])){

?>
		  <table width="100%" style="border-color:#b79647; border-style:solid; padding:10px; border-width:1px;">			<!-- character list -->
				
                 
				 
				 
			<tr>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a><b>SIGLĂ</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a><b>NUME CARACTER</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a><b>CLASA</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a><b>TIMP DE JOC</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a class="charlabel"><b>NIVEL</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a class="charlabel"><b>YANG</b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a class="charlabel"><b>EXP</b></a></td>
 </tr>
				 
				 
				 
				 
				<?php
				debug();
				$co = mysql_query("Select * from account.account where login='".$_SESSION['user']."'");
				$c = mysql_fetch_object($co);
				$id = $c->id;
				$qq = mysql_query("Select * from player.player where account_id='$id'") or die(mysql_error());
				
				while($char = mysql_fetch_object($qq))
				{
					$pid = $char->id; 
					$query2 = mysql_query("SELECT * FROM player.player_index WHERE pid1='$pid' or pid2='$pid' or pid3='$pid' or pid4='$pid'") or die('ERROR');
				$row2 = mysql_fetch_array($query2);
				$empire = $row2['empire'];
				?>
				
				<tbody>
<tr>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><img src="./resurse/imagini/caractere/<?=$char->job?>.png"/></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><a HREF="index.php?page=caractere&debug=<?=$char->id?>" ><b><?=$char->name?></b></a></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><b><?php clasa_c($char->job)?></b></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><b><?=$char->playtime?> minute</b></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><b><?=$char->level?></b></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><b><?=$char->gold?></b></td>
<td style="text-align:center; border-color:#b79647; border-style:solid; padding:10px; border-width:1px;"><b><?=$char->exp?></b></td>
</tr>	
			</tbody>
							
              
		<?php } ?></table><br><div class="sep4"></div><br>
    <?php } ?>

		</div>
</div>
<div class="postui post-end"></div>