<div id="register" class="col-2">
	<div class="content content-last">
		<div class="content-bg">
			<div class="content-bg-bottom">
				<h2><?PHP echo $serverSettings['titel']; ?> - Datos:</h2>
				<div class="inner-form-border">
					<div class="inner-form-box">
	<h3><a id="toLogin" href="index.php?s=profil" title="Datele utilizatorului">Volver</a>Personajes</h3>
 <div class="trenner"></div><br/>
 <?PHP

  if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
 
	echo"<br/>";
    $cmdChars = "SELECT player.id,player.name,player.job,player.level,player.playtime,guild.name AS guild_name
    FROM player.player
    LEFT JOIN player.guild_member 
    ON guild_member.pid=player.id 
    LEFT JOIN player.guild 
    ON guild.id=guild_member.guild_id
    WHERE player.account_id='".$_SESSION['user_id']."'";
    $qryChars = mysql_query($cmdChars,$sqlServ);
    $x=0;
    echo'<table>
      <tr>
        <th class="topLine">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caracter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
        <th class="topLine">Ras&#259; / Sex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
        <th class="topLine">Nivel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
        <th class="topLine">Timp joc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
        <th class="topLine">Breasl&#259;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
        <th class="topLine">&nbsp;&nbsp;&nbsp;</th>
      </tr>';

    while($getChars = mysql_fetch_object($qryChars)) {
      $zF = ($x%2==0) ? "tdunkel" : "thell";
        echo'<tr>
          <td class="'.$zF.'"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--<a href="index.php?s=reset_char&char='.$getChars->id.'" title="Deblocare caracter">-->'.$getChars->name.'<!--</a>--></td>
          <td class="'.$zF.'">'.$aRassen[$getChars->job].'&nbsp;&nbsp;</td>
          <td class="'.$zF.'">'.$getChars->level.'</td>
          <td class="'.$zF.'">'.$getChars->playtime.' Min.</td>
          <td class="'.$zF.'">'.$getChars->guild_name.'</td>

          </td>
        </tr>';
      $x++;
    }
    echo'</table>';
	echo" <br/><br/><div class=\"trenner\"></div>";
  }
  else {
    echo'<p class="meldung">Nu ai drepturile necesare pentru aceast&#259; zon&#259;.</p>';
  }
?><br/>
        </form>
						<p id="regLegend">*</p>
						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>	