<?php
ob_start();
include("config.php");

?>

<html>
<head>
<title>Ultimatecrime - Gratis Online Multiplayer Game!</title>
<link rel="stylesheet" type="text/css" href="layout/styles/top_right.css">
</head>
<body background="layout/images/layout_08.gif">
<meta http-equiv="REFRESH" content="45">
<table width="350" height="147" align="left" cellpadding="0" cellspacing="0">
	<tr>
		<td width="349" height="147" background="layout/images/layout_06.gif">

<?php

	if($data && $data->level == 1){


?>

<br>
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td width="20" height="15" class="menu_cell_10px">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" class="menu_cell_normal">&nbsp;</td>
		<td colspan="2" align="center"><strong>WORD VIP CRIMINEEL!</strong><br /><a href="algemeen-vip.php" target="content">En zie hier een handig VIP Menu + een heleboel extra's!<br />Klik hier voor meer informatie! </a></td>
		<td width="20">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" class="menu_cell_normal">&nbsp;</td>
		<td>&nbsp;</td><td>&nbsp;</td><td width="20">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td><td height="20">&nbsp;</td>
		<td height="20">&nbsp;</td><td width="20" height="20">&nbsp;</td>
	</tr>
</table>

<?php

	} else if($data && $data->level != 1){

	$dbres		=	mysql_query("SELECT * FROM `berichten` WHERE `naar`='{$data->login}' AND `read`='0' AND `delete1`!='1'");
	$berichten	=	mysql_num_rows($dbres);

		if($berichten == 1){
		$berichtimage	=	"<img src=\"images/icon_flash_alert.gif\" width=\"15\" height=\"15\" />";
		$bericht	=	"1 nieuw bericht";
		} else if($berichten > 1){
		$berichtimage	=	"<img src=\"images/icon_flash_alert.gif\" width=\"15\" height=\"15\" />";
		$bericht	=	"{$berichten} nieuwe berichten";
		} else {
		$berichtimage	=	"&nbsp;";
		$bericht	=	"&nbsp;";
		}

?>

<meta http-equiv="REFRESH" content="45" URL="framework-top-right.php">
<form action="speler-profiel.php" method="get" target="content">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="30" class="menu_cell_10px">&nbsp;</td>
		<td height="30" class="menu_cell_10px">&nbsp;</td>
		<td height="30" class="menu_cell_10px">&nbsp;</td>
		<td height="30" class="menu_cell_10px" width="20">&nbsp;</td>
	</tr>
	<tr>
		<td valign="top">
		<table cellspacing="2" cellpadding="0" align="left">
			<tr>
				<td align="left" valign="middle" width="20" height="10" class="ranginfo">RA </td>
				<td align="left" width="60" height="10"><table cellpadding="0" cellspacing="0" width="60" height="10" bgcolor="black"><tr><td><table cellpadding="0 cellspacing="0" background="layout/images/layout-statusbar.png" width="<?php echo round($data->rankvordering/100, 2);?>%" height="10"><tr><td></td></tr></table></td></tr></table></td>
				<td class="ranginfo"><?php echo round($data->rankvordering/100, 2);?>%</td>
			</tr>
			<tr>
				<td align="left" valign="middle" width="20" height="10" class="ranginfo">HE </td>
				<td align="left" width="60" height="10"><table cellpadding="0" cellspacing="0" width="60" height="10" bgcolor="black"><tr><td><table cellpadding="0 cellspacing="0" background="layout/images/layout-statusbar.png" width="<?php echo $data->health;?>%" height="10"><tr><td></td></tr></table></td></tr></table></td>
				<td class="ranginfo"><?php echo $data->health;?>%</td>
			</tr>
			<tr>
				<td align="left" valign="middle" width="20" height="10" class="ranginfo">KIL </td>
				<td align="left" width="60" height="10"><table cellpadding="0" cellspacing="0" width="60" height="10" bgcolor="black"><tr><td><table cellpadding="0 cellspacing="0" background="layout/images/layout-statusbar.png" width="<?php echo round($data->schiet_ervaring/10, 1);?>%" height="10"><tr><td></td></tr></table></td></tr></table></td>
				<td class="ranginfo"><?php echo round($data->schiet_ervaring/10, 1);?>%</td>
			</tr>
			<tr>
				<td align="left" valign="middle" width="20" height="10" class="ranginfo">BU </td>
				<td align="left" width="60" height="10"><table cellpadding="0" cellspacing="0" width="60" height="10" bgcolor="black"><tr><td><table cellpadding="0 cellspacing="0" background="layout/images/layout-statusbar.png" width="<?php echo $data->uitbrakenkans;?>%" height="10"><tr><td></td></tr></table></td></tr></table></td>
				<td class="ranginfo"><?php echo $data->uitbrakenkans;?>%</td>
			</tr>
		</table>
		</td>
		<td align="center" valign="top">
		<table  cellspacing="2" cellpadding="0" align="left">
			<tr>
				<td width="18" align="left"><img src="layout/images/icon_s_cash.jpg" width="15" height="15" alt="Cash" /></td>
				<td align="left" class="ranginfo" width="120"><a class="pers">&euro;<?php $cash=geld($data->cash); echo $cash;?></font></td>
			</tr>
			<tr>
				<td width="18" align="left"><img src="layout/images/icon_s_bank.jpg" width="15" height="15" alt="Bank" /></td>
				<td align="left" class="ranginfo" width="120"><a class="pers">&euro;<?php $bank=geld($data->bank); echo $bank;?></font></td>
			</tr>
			<tr>
				<td width="18" align="left"><img src="layout/images/icon_s_clockw.jpg" width="15" height="15" alt="Wachttijden" /></td>
				<td align="left" class="ranginfo" width="120"><a href="speler-status-wachttijden.php" class="pers" target="content">Wachttijden</a></td>
			</tr>
			<tr>
				<td width="18" align="left"><img src="layout/images/icon_users.jpg" width="15" height="15" alt="Wachttijden" /></td>
				<td align="left" class="ranginfo" width="120"><a href="algemeen-stats-criminelen-login.php" class="pers" target="content">Leden browser</a></td>
			</tr>
			<tr>
				<td width="18" align="left"><?php echo $berichtimage; ?></td>
				<td align="left" class="ranginfo" width="120"><a href="internet-email.php" class="pers" target="content"><?php echo $bericht; ?></a></td>
			</tr>
		</table>
		</td>

	</tr>
	<tr>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px" width="20">&nbsp;</td>
	</tr>
</table>
</form>

<?php

	} else {

?>

<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td height="15" class="menu_cell_10px">&nbsp;</td>
		<td width="20" height="15" class="menu_cell_10px">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" class="menu_cell_normal">&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td width="20">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" class="menu_cell_normal">&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td width="20">&nbsp;</td>
	</tr>
	<tr>
		<td valign="middle" class="menu_cell_normal">&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td width="20">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td height="20">&nbsp;</td>
		<td height="20">&nbsp;</td>
		<td width="20" height="20">&nbsp;</td>
	</tr>
</table>

<?php

	}

?>

		</td>
		<td width="1" height="147" background="layout/images/layout_07.gif">
		</td>
	</tr>
</table>
</body>
</html>