<?php include('files/header.php'); ?>
<div id="content-outer">
<div id="content">
<div id="page-heading">
<h1><?php echo $lang_admin['announcements']; ?></h1>
</div>
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
<th rowspan="3" class="sized"><img src="files/shared/side_shadowleft.jpg" width="20" height="300" alt="shadow_l"></th>
<th class="topleft"></th>
<td id="tbl-border-top"> </td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="files/shared/side_shadowright.jpg" width="20" height="300" alt="shadow_r"></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td><div id="content-table-inner">
<div id="table-content">
<p><?php
if(isset($_POST['submit']) AND $_POST['submit']=='' . $lang_admin['enter_announcement'] . '') {
$msg = mysql_real_escape_string($_POST['notice']);
$notice = "UPDATE
notice
SET
notice = '" . $msg . "'
WHERE
id = '1';";
mysql_query($notice);
if(mysql_affected_rows() == 1) {
echo '<p>' . $lang_admin['success_announcements'] . '</p>';
}else{
echo '<p>' . $lang_admin['couldnot_announcements'] . '</p>';
}
}
$abfrage = "SELECT * FROM notice";
$result = mysql_query($abfrage);
$row = mysql_fetch_assoc($result);
echo '<table width="100%">
<tr><td><br>
<form id="notice" name="notice" method="post" action="">
<textarea name="notice" class="fields" cols="80" rows="15" maxlength="1500">' . htmlentities($row['notice']) . '</textarea>
<br><br><input type="submit" name="submit" class="button" value="' . $lang_admin['enter_announcement'] . '" /></form>
<br></td></tr>
</table>';
?></p>
</div>
</div></td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom"> </td>
<th class="sized bottomright"></th>
</tr>
</table>
<div class="clear"></div>
</div>
<div class="clear"> </div>
</div>
<div class="clear"> </div>
</div>
<?php include('files/footer.php'); ?>