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


?>

<html>
<head>
<title>Ultimatecrime</title>
<link rel="stylesheet" type="text/css" href="style_general.css">
</head>
<body background="layout/images/layout_12.gif" bgproperties="fixed">
<br>
<br>
<br>

<?php

	if($_GET['show'] == "overboeking"){

?>

<form method="post" onSubmit="return submitForm(this.submit);">
<table align="center" width="600">
	<tr>
		<td width="600" class="subTitle" colspan="2">
		<b>Jouw persoonlijke bank account </b>
		</td>
	</tr>
	<tr>
		<td align="center" class="mainTxt" colspan="2">
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25">&nbsp;</td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="180"><a href="internet-bank.php" target="content"><strong>Pinnen &amp; storten</strong></a></td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="140"><a href="internet-bank.php?show=overboeking" target="content"><strong>Overschrijven</strong></a></td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="140"><a href="internet-bank.php?show=boekingen" target="content"><strong>Bankafschriften</strong></a></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="subTitle" colspan="2">&nbsp;</td>
	</tr>

<?php

	if(isset($_POST['submit'])){

		if($_POST['type'] == "crimineel"){

			if($member = mysql_fetch_object(mysql_query("SELECT * FROM `gebruiker` WHERE `login`='{$_POST['naam']}'"))){

				if($data->login != $member->login){

					if($data->bank >= $_POST['bedrag']){

					$amount1	=	$_POST['bedrag'];
					$amount2	=	geld($amount1);

						if($amount1 == "" || $amount1 < 1){

						echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Vul een geldig aantal geld in.</span></td></tr></table></td></tr><tr>";

						} else if(! is_numeric($amount1)){

						echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Het bedrag bestaat niet voledig uit nummers.</span></td></tr></table></td></tr><tr>";

						} else {

						mysql_query("UPDATE `gebruiker` SET `bank`=`bank`-'$amount1' WHERE `login`='{$data->login}'");
						mysql_query("UPDATE `gebruiker` SET `bank`=`bank`+'$amount1' WHERE `login`='{$member->login}'");
						mysql_query("INSERT INTO `logs`(`time`,`ip`,`van`,`naar`,`bedrag`,`message`) VALUES(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->login}','{$member->login}','$amount1','{$_POST['description']}')"); 
 						echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_vink.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"tekstheader\">Er is €{$amount2} aan {$member->login} overgemaakt.</span></td></tr></table></td></tr><tr>";

						}

					} else {

					echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Je hebt niet genoeg geld op de bank staan.</span></td></tr></table></td></tr><tr>";

					}
				} else {

				echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Je mag jezelf niet doneren.</span></td></tr></table></td></tr><tr>";

				}

			} else {

			echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Deze member bestaat niet.</span></td></tr></table></td></tr><tr>";

			}

		} else if($_POST['type'] == "netwerk"){

			if($data->familie != ""){

				if($data->bank >= $_POST['bedrag']){

				$amount1	=	$_POST['bedrag'];
				$amount2	=	geld($amount1);

					if($amount1 == "" || $amount1 < 1){

					echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Vul een geldig aantal geld in.</span></td></tr></table></td></tr><tr>";

					} else if(! is_numeric($amount1)){

					echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Het bedrag bestaat niet voledig uit nummers.</span></td></tr></table></td></tr><tr>";

					} else {

					mysql_query("UPDATE `gebruiker` SET `bank`=`bank`-'$amount1' WHERE `login`='{$data->login}'"); 
					mysql_query("INSERT INTO `logs`(`time`,`ip`,`van`,`naar`,`bedrag`,`message`) VALUES(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->login}','{$data->familie}','$amount1','{$_POST['description']}')"); 
					mysql_query("UPDATE `familie` SET `bank`=`bank`+'$amount1' WHERE `naam`='{$data->familie}'");
					echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_vink.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"tekstheader\">Er is €{$amount2} aan uw familie overgemaakt.</span></td></tr></table></td></tr><tr>";

					}

				} else {

				echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Je hebt niet genoeg geld op de bank staan.</span></td></tr></table></td></tr><tr>";

				}

			} else {

			echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Je hebt geen familie om geld naar te doneren.</span></td></tr></table></td></tr><tr>";

			}

		}

	} else {

?>

	<tr>
		<td colspan="2" class="mainTxt">
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25"><img src="layout/images/icons/light_info.jpg" width="16" height="16"></td>
				<td><span class="tekstheader">Geld overschrijven naar een andere crimineel of netwerk</span></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>Het spreekt voor zich, alleen een naam invoegen bij crimineel. Geef een duidelijk omschrijving voor de ontvanger!<br /><br /><strong>Het saldo van je rekening bedraagt &euro; <?php echo geld($data->bank); ?> </strong></td>
			</tr>
		</table>
		</td>
	</tr>


<?php

	}

?>

	<tr>
		<td class="mainTxt" colspan="2">
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td>&nbsp;<select name="type" class="form_dropdown" style="width:125;"><option value="crimineel">Crimineel</option><option value="netwerk">Netwerk</option></select> &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="naam" maxlength="16" style="width:150;"> &nbsp;&nbsp;&nbsp;&nbsp;&euro; <input type="text" name="bedrag" maxlength="10" style="width: 150;"></td>
			</tr>
			<tr>
				<td width="25"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="25"><img src="layout/images/icons/light_comment.jpg" width="16" height="16"></td>
				<td>&nbsp;<input type="text" name="description" maxlength="90" style="width:477;"></td>
			</tr>
			<tr>
				<td width="25"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="25"></td>
				<td>&nbsp;<input type="submit" name="submit" value="Bevestig transactie"  style="width: 200;"></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2" class="subtitle">&nbsp;</td>
	</tr>
</table>
</form>

<?php

	} else if($_GET['show'] == "boekingen"){

?>

<form method="post" onSubmit="return submitForm(this.submit);">
<table align="center" width="600">
	<tr>
		<td width="600" class="subTitle" colspan="2">
		<b>Jouw persoonlijke bank account </b>
		</td>
	</tr>
	<tr>
		<td align="center" class="mainTxt" colspan="2">
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25">&nbsp;</td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="180"><a href="internet-bank.php" target="content"><strong>Pinnen &amp; storten</strong></a></td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="140"><a href="internet-bank.php?show=overboeking" target="content"><strong>Overschrijven</strong></a></td>
				<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
				<td width="140"><a href="internet-bank.php?show=boekingen" target="content"><strong>Bankafschriften</strong></a></td>
			</tr>
		</table>
		</td>
	</tr>
		<tr><td class="subTitle" colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" class="mainTxt" align="center">
		<div align="center">
		<table width="400" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="50"></td><td width="25"><img src="layout/images/icons/light_money_plus.jpg"></td><td width="150"><a href="internet-bank.php?show=boekingen&type=1" target="content"><strong>Bijschrijvingen</a></strong>
				</td><td width="25"><img src="layout/images/icons/light_money_min.jpg"></td><td width="150"><a href="internet-bank.php?show=boekingen&type=2" target="content"><strong>Afschrijvingen</a></strong>
				</td>
			</tr>
		</table>
		</div>
	  	</td>
	</tr>

<?php
	if($_GET['type'] == 1){

		if($data->level == 1){
		$dbres		=	mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `logs` WHERE `naar`='{$data->login}' ORDER BY `id` DESC LIMIT 5");
		} else {
		$dbres		=	mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `logs` WHERE `naar`='{$data->login}' ORDER BY `id` DESC LIMIT 25");
		}

?>

	<tr>
		<td colspan="2" class="subtitle" align="center">Jouw laatste bijschrijvingen</td>
	</tr>
	<tr>
		<td class="mainTxt" colspan="2">

<?php

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

?>
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25" valign="top"><img src="layout/images/icons/light_money_plus.jpg" width="16" height="16"></td>
				<td width="190"><a href="speler-profiel.php?x=<?php echo $info->van; ?>" target="content"><strong><?php echo $info->van; ?></strong></a></td>
				<td><strong><?php echo $info->time; ?></strong></td>
				<td align="right"><strong>&euro; <?php echo geld($info->bedrag); ?></strong></td>
			</tr>
			</tr>
			<tr>
				<td width="25"></td>
				<td colspan="3"><i><?php echo $info->message; ?></i></td>
			</tr>
			<tr>
				<td colspan="4">&nbsp;</td>
			</tr>
		</table>

<?php

		}

?>

		&nbsp;</td>
	</tr>

<?php

	} else if($_GET['type'] == 2){

		if($data->level == 1){
		$dbres		=	mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `logs` WHERE `van`='{$data->login}' ORDER BY `id` DESC LIMIT 5");
		} else {
		$dbres		=	mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `logs` WHERE `van`='{$data->login}' ORDER BY `id` DESC LIMIT 25");
		}
?>

	<tr>
		<td colspan="2" class="subtitle" align="center">Jouw laatste afschrijvingen</td>
	</tr>
	<tr>
		<td class="mainTxt" colspan="2">

<?php

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

?>
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="25" valign="top"><img src="layout/images/icons/light_money_plus.jpg" width="16" height="16"></td>
				<td width="190"><a href="speler-profiel.php?x=<?php echo $info->naar; ?>" target="content"><strong><?php echo $info->naar; ?></strong></a></td>
				<td><strong><?php echo $info->time; ?></strong></td>
				<td align="right"><strong>&euro; <?php echo geld($info->bedrag); ?></strong></td>
			</tr>
			<tr>
				<td width="25"></td>
				<td colspan="3"><i><?php echo $info->message; ?></i></td>
			</tr>
			<tr>
				<td colspan="4">&nbsp;</td>
			</tr>
		</table>	 
<?php

		}

?>

		&nbsp;</td>
	</tr>

<?php

	} else {

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

?>

<tr><td colspan="2" class="subtitle" align="center">Jouw bijschrijvingen & afschrijvingen</td></tr>
<tr><td class="mainTxt" colspan="2"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">  <tr>
<td width="25" valign="top"><img src="layout/images/icons/light_info.jpg" width="16" height="16"></td><td><span class="tekstheader">Jij kan maximaal 5 laatste bij of afschrijvingen bekijken!</span><br /><br />Als <a href="algemeen-vip.php" target="content">VIP crimineel</a> kan je 25 laatste boekingen bekijken!</td></tr>
</tr></table></td></tr>

<?php

		}
	}
?>

<tr>
<td colspan="2" class="subtitle">&nbsp;</td>
</tr>
	
</table>
</form>

<?php

	} else {

?>

<form method="post" onSubmit="return submitForm(this.submit);">
<table align="center" width="600">
  <tr>
    <td width="600" class="subTitle" colspan="2"><b>Jouw persoonlijke bank account </b></td>
  </tr>
  <tr>
    <td align="center" class="mainTxt" colspan="2">
		<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr>
			<td width="25">&nbsp;</td>
			<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			<td width="180"><a href="internet-bank.php" target="content"><strong>Pinnen &amp; storten</strong></a></td>
			<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			<td width="140"><a href="internet-bank.php?show=overboeking" target="content"><strong>Overschrijven</strong></a></td>
			<td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			<td width="140"><a href="internet-bank.php?show=boekingen" target="content"><strong>Bankafschriften</strong></a></td>
		  </tr>
		</table>
	</td>
  </tr>
  <tr><td class="subTitle" colspan="2">&nbsp;</td>
  </tr>

<?php

	if($data->bank <= 1000000){
	$rente	=	10;
	} else if($data->bank > 1000000 && $data->bank <= 1500000){
	$rente	=	9;
	} else if($data->bank > 1500000 && $data->bank <= 2000000){
	$rente	=	8;
	} else if($data->bank > 2000000 && $data->bank <= 2500000){
	$rente	=	7;
	} else if($data->bank > 2500000 && $data->bank <= 3000000){
	$rente	=	6;
	} else if($data->bank > 3000000 && $data->bank <= 3500000){
	$rente	=	5;
	} else if($data->bank > 3500000 && $data->bank <= 4000000){
	$rente	=	4;
	} else if($data->bank > 4000000 && $data->bank <= 4500000){
	$rente	=	3;
	} else if($data->bank > 4500000 && $data->bank <= 5000000){
	$rente	=	2;
	} else if($data->bank > 5000000 && $data->bank <= 5500000){
	$rente	=	1;
	} else {
	$rente	=	0;
	}

	if($_POST['type'] == "stort"){
	$bedrag		=	$_POST['bedrag'];
	$rente2		=	geld(round(($data->bank+$bedrag)/100)*$rente);
	$cash		=	geld($data->cash);
	$bank		=	geld($data->bank);

		if(! is_numeric($bedrag)){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Het bedrag bestaat niet voledig uit nummers.</span></td></tr></table></td></tr><tr>";
		} else if($bedrag < 1 || $bedrag == ""){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Vul wel een geldig bedrag in boven de 0 euro.</span></td></tr></table></td></tr><tr>";
		} else if($bedrag > $data->cash){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Heb je stront in je ogen? Zoveel heb je niet op de zak!</span></td></tr></table></td></tr><tr>";
		} else {
		$cash		=	geld($data->cash-$bedrag);
		$bank		=	geld($data->bank+$bedrag);
		mysql_query("UPDATE `gebruiker` SET `cash`=`cash`-'$bedrag',`bank`=`bank`+'$bedrag' WHERE `login`='{$data->login}'");
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_vink.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"tekstheader\">Transactie succesvol!</span></td></tr></table></td></tr><tr>";
		}

	} else if($_POST['type'] == "pin"){
	$bedrag		=	$_POST['bedrag'];
	$rente2		=	geld(round(($data->bank-$bedrag)/100)*$rente);
	$cash		=	geld($data->cash);
	$bank		=	geld($data->bank);

		if(! is_numeric($bedrag)){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Het bedrag bestaat niet voledig uit nummers.</span></td></tr></table></td></tr><tr>";
		} else if($bedrag < 1 || $bedrag == ""){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Vul wel een geldig bedrag in boven de 0 euro.</span></td></tr></table></td></tr><tr>";
		} else if($bedrag > $data->bank){
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_error.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"header_rood\">Heb je stront in je ogen? Zoveel heb je niet op de bank!</span></td></tr></table></td></tr><tr>";
		} else {
		$cash		=	geld($data->cash+$bedrag);
		$bank		=	geld($data->bank-$bedrag);
		mysql_query("UPDATE `gebruiker` SET `cash`=`cash`+'$bedrag',`bank`=`bank`-'$bedrag' WHERE `login`='{$data->login}'");
		echo "<tr><td colspan=\"2\" class=\"mainTxt\"><table width=\"565\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"25\"><img src=\"layout/images/icons/light_vink.jpg\" width=\"16\" height=\"16\"></td><td><span class=\"tekstheader\">Transactie succesvol!</span></td></tr></table></td></tr><tr>";
		}

	} else {
	$cash		=	geld($data->cash);
	$bank		=	geld($data->bank);



	$rente2		=	geld(round($data->bank/100)*$rente);

?>

	   <tr><td colspan="2" class="mainTxt"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr><td width="25"><img src="layout/images/icons/light_info.jpg" width="16" height="16"></td>
		  <td><span class="tekstheader">Geld opnemen of storten</span></td>
		</tr>
		<tr>
		  <td>&nbsp;</td>
		  <td>Het is altijd fijn om een dik pak geld op zak te hebben. <br>
		  Maar kijk uit, want op je homepage is te zien hoeveel geld je op zak hebt! </td></tr>
	  </table></td></tr>

<?php

	}


?>

	  <tr>
		  <td class="mainTxt" colspan="2">
		  <table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
			  <td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			  <td width="175">&euro; <?php echo $cash; ?> cash </td>
			  <td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			  <td width="175">&euro; <?php echo $bank; ?> bank </td>
			  <td width="25"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			  <td>&euro; <?php echo $rente2; ?> rente (<?php echo $rente; ?>%) </td>
			</tr>
		  </table>	</td>
	  </tr>
	  <tr>
		  <td class="mainTxt" colspan="2"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
			  <td width="25" valign="top"><img src="layout/images/icons/light_money.jpg" width="16" height="16"></td>
			  <td>
			 
			<input type="radio" name="type" value="pin" class="form_radio" checked> Pin &nbsp;&nbsp;/&nbsp;&nbsp;<input type="radio" class="form_radio" name="type" value="stort"> Stort &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &euro; <input type="text" name="bedrag" maxlength="10" style="width:200;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="Bevestig"  style="width: 100;"></td>
			</tr>
		  </table>
		  </td>
	  </tr>	  
	  
	  
	  
	  
<tr>
<td colspan="2" class="subtitle">&nbsp;</td>
</tr>
	
</table>
</form>
<?php

	}

?>


</body>
</html>

