<?
?><?php
?>
<?
if(isset($_POST["submitreactie"])){ $query = mysql_query("UPDATE tekst SET inhoud=".$bericht." WHERE id=".$nummer."") or
die(mysql_error("Kon geen verbinding maken met MySQL")); echo "De tekst is succesvol gewijzigd.";
}
?>
<?
$query="SELECT * FROM `tekst` WHERE id='$kop'";
$tekst = $obj->inhoud;
$nummer = $obj->id;
?>
<script language="JavaScript" src="java/ubb.js"></script>
<style type="text/css">
html,body {
background-image: url(images/bg.gif);
font-family: Verdana;
font-size: 10pt;
color: #000000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
input, textarea, option {
border:1px solid #999999;
background-color: #FFFFFF;
}
a {
color: #000000;
text-decoration: none;
}
a:hover {
text-decoration: Underline;
height: 1px;
}
.Table_Kader {
border-top: 1px solid #B7B7B7;
border-left: 1px solid #B7B7B7;
border-right: 1px solid #B7B7B7;
border-bottom: 1px solid #B7B7B7;
}
.Cell_top {
border-top: 1px solid #B7B7B7;
}
.box {
background-color: #EFEDDE;
font-size: 10px;
border:1px solid blue #EFEDDE;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="bfrm" action="
<?php print $_SERVER['PHP_SELF']; ?>" method="post">
<table width="570" border="0" align="center" cellpadding="0" cellspacing="0" class="Table_Kader">
<tr>
<td width="574"><table width="574" height="23" border="0" cellpadding="0" cellspacing="0" bgcolor="EFEDDE" id="Table_01">
<tr>
<td width="23"><a href="#"
onmouseover="window.status='Stijl en opmaak'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Stijl-en-opmaak.gif" width="22" height="23" border="0" alt="Stijl en opmaak"></a></td>
<td width="271" bgcolor="EFEDDE"><table width="267" border="0" cellpadding="0" cellspacing="0" background="images/nav_02.gif">
<tr>
<td><select name="kop" onChange="addkop(this, 'bfrm', 'bericht');" class="box">
<option value="0" selected>Standaard</option>
<option value="1">Kop 1</option>
<option value="2">Kop 2</option>
<option value="3">Kop 3</option>
</select>
<select name="letter" onChange="addtype(this, 'bfrm', 'bericht');" class="box">
<option value="Arial" selected>Arial</option>
<option value="TRoman">Times New Roman</option>
<option value="TMS">Trebuchet MS</option>
<option value="Verdana" selected>Verdana</option>
</select>
<select name="size" onChange="addsize(this, 'bfrm', 'bericht');" class="box">
<option value="10" selected>10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="16">16</option>
<option value="20">20</option>
</select>
</td>
</tr>
</table></td>
<td width="22"><a href="#"
onmouseover="window.status='Vet'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Vet.gif" width="22" height="23" border="0" name="b" onMouseDown="klik('b','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Vet"></a></td>
<td width="23"><a href="#"
onmouseover="window.status='Cursief'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Cursief.gif" width="23" height="23" border="0" name="i" onMouseDown="klik('i','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Cursief"></a></td>
<td width="24"><a href="#"
onmouseover="window.status='Onderstrepen'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Onderstrepen.gif" width="24" height="23" border="0" name="u" onMouseDown="klik('u','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Onderstrepen"></a></td>
<td width="23"><a href="#"
onmouseover="window.status='Links uitlijnen'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Links-uitlijnen.gif" width="23" height="23" border="0" name="l" onMouseDown="klik('l','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Links uitlijnen"></a></td>
<td width="22"><a href="#"
onmouseover="window.status='Centreren'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Centreren.gif" width="22" height="23" border="0" name="c" onMouseDown="klik('c','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Centreren"></a></td>
<td width="23"><a href="#"
onmouseover="window.status='Rechts uitlijnen'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Rechts-uitlijnen.gif" width="23" height="23" border="0" name="r" onMouseDown="klik('r','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Rechts uitlijnen"></a></td>
<td width="23"><a href="#"
onmouseover="window.status='Uitvullen'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Uitvullen.gif" width="23" height="23" border="0" name="uit" onMouseDown="klik('uit','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Uitvullen"></a></td>
<td><a href="#"
onmouseover="window.status='Nummering'; return true;"
onmouseout="window.status=''; return true;"> </a><a href="#"
onmouseover="window.status='Opsommingstekens'; return true;"
onmouseout="window.status=''; return true;"> </a><a href="#"
onmouseover="window.status='Hyperlink invoegen'; return true;"
onmouseout="window.status=''; return true;"> <img src="images/Hyperlink-invoegen.gif" width="28" height="23" border="0" name="h" onMouseDown="klik('h','bfrm','bericht');" onMouseUp="foc('bfrm','bericht');" alt="Hyperlink invoegen"></a></td>
<td width="49" bgcolor="EFEDDE"> </td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center">
<textarea name="bericht" rows="20" tabindex="1" style="width: 99%;">
<? echo $tekst; ?></textarea>
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="submitreactie" value="Pagina wijzigen" tabindex="2">
</div></td>
</tr>
</table>
</form>
</body>
</html>
<?
}
?>