<?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'] = 'Job Market';
$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">Character Stats
							</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.co.uk/habbo-imaging/avatarimage?figure=<?php echo $user['figure']; ?>&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>Kills</strong>
</td>
<td width='25%' valign='top'><strong>Deaths</strong>
</td>
<td width='25%' valign='top'><strong>Arrests</strong>
</td>
<td width='25%' valign='top'><strong>Hits</strong>
</td>
</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['kills']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['deaths']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['arrests']; ?><br /><br />
</td>
<td width='25%' valign='top'><?php echo $user['hits']; ?><br /><br />
</td>
</tr>
<tr>
<td width='25%' valign='top'><strong>Strength</strong>
</td>
<td width='25%' valign='top'><strong>Health</strong>
</td>
</tr>
<tr>
<td width='25%' valign='top'><?php echo $user['str']; ?>
</td>
<td width='25%' valign='top'><?php echo $user['health']; ?>/100
</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>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title">My Badges
							</h2>
						<div id="purse-habblet">

<div class="box-content">
<?php

    $sql = mysql_query("SELECT * FROM users_badges WHERE userid = '".$user->user['0']."' ORDER BY badgeid ASC LIMIT 5");
    $count = mysql_num_rows($sql);
?>

</div>
</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('./templates/community_footer.php');

?>
