				<div class="postui post-title">
	<h2><span>CARACTERELE CONTULUI <?=$acs->login?> </span></h2>
</div>
<div class="postui post-con">
	<div class="con-wrap">



<?php
if(isset($_SESSION['user']) && isset($_SESSION['pass']) && isset($_SESSION['admin']) > 0){
if(isset($_GET['cont'])) {
	$ui = replace($_GET['cont']);
	$acs = mysql_fetch_object(mysql_query("Select * from ".$account_db.".account where id='$ui'"));
?>
<h4></h4>
<table border="0" cellspacing="4" cellpadding="0" width="100%">			<!-- character list -->
		
				
                 
				<?php
				
				debug();
				
				$qq = mysql_query("Select * from player.player where account_id='$ui'");
				if(mysql_num_rows($qq)!=NULL)
				{
					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'");
					$row2 = mysql_fetch_array($query2);
					$empire = $row2['empire'];
				?>
		
                        <tr>
                        <td width="60" rowspan="3" align="center"  ><img src="resurse/imagini/clase/<?=$char->job?>.png" width="27" height="50" /></td>
                        <td width="244" align="left" class="iR_name" > <?php echo "".$char->name." - <i><a href='index.php?page=cauta_ip&ip=".$char->ip."'>".$char->ip."</a></i>";?></td>
                       
                        <td width="176" align="left" class="iR_stats" >Putere : <?=$char->st?></td>
                        <td width="183" align="left" class="iR_stats" >Inteligenta : <?=$char->iq?></td>
                        <td width="225" align="left" class="iR_stats" >
                       
                            <?php clasa_c($char->job)?>
                         </td>
                </tr>
                        <tr>
                        <td align="left" class="iR_class">Level
                            <?=$char->level?></td>
                        <td align="left" class="iR_stats">Agilitate : <?=$char->dx?></td>
                        <td align="left" class="iR_stats">Vitalitate : <?=$char->ht?></td>
                        <td align="left" class="iR_stats">Regat : <?=nume_regat($empire)?></td>
                        </tr>
                          <tr>
                        <td align="left" class="iR_class"><?=$char->playtime?> minute online</td>
                        <td align="left" class="iR_stats">Exp : <?=$char->exp?></td>
                        <td align="left" class="iR_stats">Yang : <?=$char->gold?></td>
                        <td align="left" class="collect"><a HREF="index.php?page=a_caractere&debug=<?=$char->id?>" >
                        Debugare caracter</a></td>
                        </tr>
                        <tr>
                        	<td colspan="3">&nbsp;</td>
                            <td class="collect" align="center"><a href="index.php?page=vizualizare_iteme&id=<?=$char->id?>">
                        Vizualizare iteme</a></td>
                            <td class="collect" align="center"><a HREF="index.php?page=a_caracter&id=<?=$char->id?>" >
                        Editare caracter</a></td>
                        </tr>
                        <tr>
                        <td colspan="6" style="border-top:1px dotted #946767;" height="4"></td>
                        </tr>

              
		<?php }} else { echo error("Contul nu are nici un caracter.");} ?> </table><br>

<a href="index.php?page=panou-admin">&laquo; Inapoi la panou administrare</a>

<?php } } else { echo error("Zona restricionata!"); } ?>

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