<?php session_start();  //Developed by ITechScripts
require 'include/configurations.php'; // ITECHBIDS Configuration File
require 'include/header.php';
?>
<?
if(isset($_REQUEST['update']))
{
$name=$_REQUEST['name'];
$about_company=$_REQUEST['about_company'];
$address=$_REQUEST['address'];
$phone=$_REQUEST['phone'];
$fax=$_REQUEST['fax'];

$query = "update about_us set company_name='$name' , company_detail='$about_company' , company_address='$address' , ";
$query .= " company_phone = '$phone' , company_fax = '$fax' where company_id=1";

if(mysql_query($query))
echo "<br><font color='#ff0000'><strong>   Updated Successfully ! </strong></font><br><br>";
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<br>
<?
  $query="select * from about_us where company_id=1";
  $tab=mysql_query($query);
  $row=mysql_fetch_array($tab);
  $name=$row['company_name'];
  $about_company=$row['company_detail'];
  $address=$row['company_address'];
  $phone=$row['company_phone'];
  $fax=$row['company_fax'];

?>
<table width="80%"  border="0" cellpadding="5" cellspacing="1" class="ft" align="center">
<form name="frmsearch" method="post">
<tr class="ct" height="25">
<td colspan="4">About Us Setting</td>
<tr ><td>Company Name</td><td><input type="text" class="bluetext"name="name"  value="<?= $name; ?>" size="50"></td></tr>
<tr ><td>About Company</td><td><textarea name="about_company" cols="40" rows="10"><?= $about_company; ?></textarea></td></tr>
<tr ><td>Office Address</td><td><input type="text" class="bluetext"name="address"  value="<?= $address; ?>" size="50"></td></tr>
<tr ><td>Contact Number</td><td><input type="text" class="bluetext"name="phone"  value="<?= $phone; ?>" size="50"></td></tr>
<tr ><td>Fax Number</td><td><input type="text" class="bluetext"name="fax"  value="<?= $fax; ?>" size="50"></td></tr>
<tr ><td></td><td> <input type="submit" class="button"   name="update" value="Update"  value="<?= $submit; ?>"> </td></tr>
</table>
<br><br>
<? require 'include/footer.php'; ?>
</body>
</html>
