<?php
include("config.php");
if(!$action) { $action = "inbox"; } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {color: #333333}
.style2 {
color: #FFFFFF;
font-weight: bold;
font-style: italic;
}
.style10 {font-weight: bold; color: #000000;}
.style11 {color: #000000}
-->
</style>
</head>
<body>
<br>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td bordercolor="#A5E48B" bgcolor="#A5E48B"><div align="center"><br>
<span class="style1"><strong>:: <a style="color:#333333 " href="index.php?pagina=account/index&accountp=pm&action=inbox">Inbox</a> :: <a style="color:#333333 " href="index.php?pagina=account/index&accountp=pm&action=verzonden">Verzonden Items</a> :: <a style="color:#333333 " href="index.php?pagina=account/index&accountp=pm&action=nieuw">Nieuw bericht</a> ::</strong><br>
</span><br>
</div></td>
</tr>
</table>
<?php if($action == "inbox") { ?>
<p>Inbox</p>
<?php } elseif($action == "verzonden") { ?>
<p>Verzonden items</p>
<?php } elseif($action == "nieuw") { ?>
<?php include("ubb.php"); ?>
<span class="style2">Nieuw bericht</span>
<hr color="#333333">
<form action="" method="post" name="frmPost" id="frmPost">
<table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr bordercolor="#005AA6" bgcolor="#005AA6">
<td height="30"><span class="style11"><strong>Aan:</strong></span></td>
<td><span class=gen style11>
<?php if($_GET['zendaan']) {
$zoeknaam = mysql_query("SELECT name FROM users WHERE id='".$_GET['zendaan']."'"); }?>
<input name="zendaan" value="<?=$ontvanger ?>" type="text" size="40">
[ <a href="index.php?pagina=ledenlijst">Ledenlijst</a> ]
</span></td>
</tr>
<tr bordercolor="#005AA6" bgcolor="#005AA6">
<td width="38%" height="30"><span class="style10">Onderwerp:</span></td>
<td width="62%"><span class=gen style11>
<input name="onderwerp" type="text" id="onderwerp" size="40">
<input name="van" type="hidden" id="van" value="<?= $_SESSION['suser'] ?>">
</span></td>
</tr>
<tr bordercolor="#005AA6" bgcolor="#005AA6">
<td height="30" valign="top" bgcolor="#005AA6"><span class="style10">Bericht:</span></td>
<td>
<?php include("ubb_opmaak.php"); ?><br>
<textarea rows="19" cols="70" name="bericht" onkeyup="setCursor();" onkeydown="setCursor();" onfocus="setCursor();" onclick="setCursor();"></textarea>
<br>
<?php include("smile.php"); ?></td>
</tr>
<tr bordercolor="#005AA6" bgcolor="#005AA6">
<td height="30" colspan="2"><div align="center">
<input name="sendpm" type="submit" id="sendpm" value="Verzenden">
</div></td>
</tr>
</table>
</form>
<p> </p>
<p> </p>
<?php } else {?>
<p>Er is een fout opgetreden!</p>
<?php } ?>
</body>
</html>