<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");

$page['id'] = "stats";
$page['name'] = 'My Character';
$page['bodyid'] = "home";
$page['cat'] = "home";
require_once('./templates/community_header.php');
?>
<div id="container">
	<div id="content" style="position: relative" class="clearfix">
    <div id="column1" class="column">

				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"><span style="float: left;">Character Overview</span>
							</h2>

						<script src="<?php echo PATH; ?>/web-gallery/static/js/credits.js" type="text/javascript"></script>
<p class="credits-countries-select">
<?php
$user_query = mysql_query("SELECT * FROM users WHERE name = '".$user->name."'");
$user = mysql_fetch_array($user_query);
?>
<center>
<img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $user['hr,ch,hd,sh,lg,ha,ea,wa,fa']; ?>&size=b&direction=2&head_direction=2&gesture=sml&size=s" align="left" />
<table border="0" width="330px">
<tr>
<td width='25%' valign='top'><strong>Stamina</strong>
</td>
<td width='25%' valign='top'><strong>Health Points</strong>
</td>
<td width='25%' valign='top'><strong>Strength</strong>
</td>

</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['stamina']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['health']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['str']; ?><br /><br />
</td>
</tr>
<tr>
<td width='25%' valign='top'><strong>Intelligence</strong>
</td>
<td width='25%' valign='top'><strong>Immunity</strong>
</td>
</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['intelligent']; ?>
</td>
<td width='25%' valign='top'><?php echo $user['immunity']; ?>
</td>
</tr>
</table>
</center>
<script type="text/javascript">
L10N.put("credits.navi.read_more", "Read more");
L10N.put("credits.navi.close_fulltext", "Close instructions");
PaymentMethodHabblet.init();
</script>


					</div>

				</div>
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"><span style="float: left;">Achievements</span>
							</h2>



<br>
</div>
</div>


</div>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"> <span style="float: left;">Experience Levels</span>
							</h2>
						<div id="purse-habblet">

<div class="box-content">

<b>Stamina (Lvl <?php echo $user['stamina']; ?>)</b> <br>
<table border="0" bgcolor="black">
<tr>
<td width="200" height="15" bgcolor="white"></td>
</table>
<br>
<b>Intelligence (Lvl <?php echo $user ['intelligent']; ?>)</b> <br>
<table border="0" bgcolor="black">
<tr>
<td width="200" height="15" bgcolor="white"></td>
</table><br>
<b>Strength (Lvl <?php echo $user ['str']; ?> )</b> <br>
<table border="0" bgcolor="black">
<tr>
<td width="200" height="15" bgcolor="white"></td>
</table><br>
<b>Health Points  <?php echo $user ['health']; ?>/100</b> <br>
<table border="0" bgcolor="black">
<tr>
<td width="200" height="15" bgcolor="white"></td>
</table><br>
<b>Immunity (Lvl <?php echo $user ['immunity']; ?> )</b> <br>
<table border="0" bgcolor="black">
<tr>
<td width="200" height="15" bgcolor="white"></td>
</table><br>
</div>
</div>
</div>
</div>

<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"><span style="float: left;">Statistics</span>
							</h2>
						<div id="purse-habblet">

<div class="box-content">
Rooms visited: <?php echo $user['room_visits']; ?> <br>
Kills: <?php echo $user['kills']; ?> <br>
Deaths: <?php echo $user['deaths']; ?> <br>
Suicides: <?php echo $user['suicide']; ?> <br> 
Punches Thrown: <?php echo $user['hits']; ?> <br>
Times Arrested: <?php echo $user['arrests']; ?> <br>
Arena Wins: <?php echo $user['arenawins']; ?> <br>
Arena Losses: <?php echo $user['arenalosses']; ?> <br>
<br>
</div>
</div>
</div>
<div class="habblet-container ">
						
					</div>
				</div>
</div>


				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


<script type="text/javascript">
HabboView.run();
</script>
<?php require_once('./templates/community_footer.php'); ?>
