<?php
ob_start();
include("config.php");
	if(! check_login()){
	header("Location: login.php");
	exit;
	}

?>

<html>
<head>
<title>Ultimatecrime</title>
<link rel="stylesheet" type="text/css" href="style_general.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Ultimatecrime is een gratis online multiplayer spel! Ontwikkel je eigen crimineel door verschillende criminele activiteiten te doen! Speel met duizenden andere criminelen en wordt nummer 1!">
<meta name="keywords" content="world, gangster, criminal, mafia, games, game, multiplayer, rpg, mmorpg, online game, online multiplayer">
<meta name="Robots" CONTENT="follow">
<meta name="REVISIT-AFTER" CONTENT="7 days">
</head>
<body background="layout/images/layout_12.gif" bgproperties="fixed">
<br>
<br>
<br>
<table width="600" align="center"> 
  	<tr>
		<td colspan="4" align="center" width="600" class="subTitle"><b>Ultimatecrime - Jouw bezittingen</b></td>
	</tr>
	<tr>
		<td align="center" class="subTitle" width="100"><b>Type</b></td>
		<td align="center" class="subTitle" width="100"><b>Aantal</b></td>
		<td align="center" class="subTitle" width="250"><b>Omschrijving</b></td>
		<td align="center" class="subTitle" width="100"><b>Actie</b></td>
	</tr>
	
<?php

$dbres	=	mysql_query("SELECT `type`,`aantal`,`naam`,`link` FROM `bezittingen` WHERE `owner`='{$data->login}'");

	while($bezit = mysql_fetch_object($dbres)){

?>

	<tr>
		<td align="center" class="mainTxtS" width="100"><?php echo $bezit->type; ?></td>
		<td align="center" class="mainTxtS" width="100"><?php echo $bezit->aantal; ?></td>
		<td align="center" class="mainTxtS" width="250"><?php echo $bezit->naam; ?></td>
		<td align="center" class="mainTxtS" width="100"><a href="<?php echo $bezit->link; ?>" target="content">Verkoop</a></td>
	</tr>

<?php

	}

?>

  	<tr>
		<td colspan="4" align="center" width="600" class="subTitle">&nbsp;</td>
	</tr>
</table>
</body>
</html>