<?php
session_start();
require 'include/configurations.php'; // ITECHBIDS Configuration File
require 'include/header.php';

if(isset($_REQUEST['update1']))
{
$query = "update home_announcements set home_announcements='$_REQUEST[registration]' where id='1' ";
if(mysql_query($query))
echo "<br><font color='#ff0000'><strong> Site Announcement Detail Updated On Successfully ! </strong></font><br><br>";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<br>
<?
$query="select * from home_announcements where id=1";
$tab=mysql_query($query);
if($row=mysql_fetch_array($tab))
{
$registration=$row['home_announcements'];

}
?>
<table width="100%"  border="0" cellpadding="5" cellspacing="1" class="ft" align="center">
<form name="frmsearch" action="<?= $_SERVER['PHP_SELF']; ?>" method="post">
<tr class="ct" height="25">
<td colspan="4">Google Adsense</td>
<tr ><td><Strong>Google Adsense </strong></td><td><textarea name="registration" cols=50 rows=10><?= $registration; ?></textarea></td></tr>
<input type="hidden" name="term_id" value="1">
<tr ><td></td><td> <input type="submit" class="button"   name="update1" value="Update"  > </td></tr>
</table>
</form>
<br><br>
<? require 'include/footer.php'; ?>
</body>
</html>