<?php require "config.php"; ?>
<?php include ("check_online.php"); ?>
<?php require "design_s.php"; ?>
<?php
$liste_on = mysql_query ("SELECT * FROM $mysql_table2");
$rowx = mysql_fetch_array($liste_on);
mysql_close($link);
?>
<?php include ($header); ?>
<br>
<br>
<div align="center">
<table border="<?php echo($rowd[tablebordersize]) ?>" cellspacing="0" cellpadding="0" bordercolor="<?php echo($rowd[tablebordercolor]) ?>" width="800" bgcolor="<?php echo($rowd[tablecolor]) ?>">
<tr>
<td colspan="2" bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>">
<div align="center"><b>Kontakt</b></div></td>
</tr>
<tr>
<td bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>">
<?php
if ((isset($_POST['send'])) && (!empty($_POST['fromaddress'])) && (!empty($_POST['subject'])) && (!empty($_POST['text'])))
{
mail("konstl@st-bz.de",$_POST['subject'],$_POST['text'],"From: ".$_POST['fromaddress']);
}
?>
<form method="post" action="kontakt.php">
<tr>
<td width='48%'>Deine eMail:</td>
<td width='52%'> <input type="text" name="fromaddress"><br>
</tr>
</td>
<tr>
<td width='48%'>Betreff:</td>
<td width='52%'>
<input type="text" name="subject"><br>
</tr>
</td>
<tr>
<tr>
<td width='48%'>Nachricht:</td>
<td width='52%'>
<textarea name="text"></textarea><br>
<center>
<input type="submit" name="send" value="Abschicken"> </td></center>
</tr>
</table>
</div>
<?php include($footer); ?>