<? require 'include/configurations.php'; // ITECHBIDS Configuration File
        require 'include/header.php';
        if($_GET[cat_id])
        $cat_id=$_GET[cat_id];
		else
		$cat_id=$_POST[cat_id];
		if($_POST[txtcategory])
		{
		$cat_name=$_POST[txtcategory];
		$priority=$_POST[txtpriority];
		$up="update site_categories set category_name='$cat_name', priority='$priority' where category_id=$cat_id";
		$up_sql=mysql_query($up);
		}
		$category_sql="select * from site_categories where category_id=$cat_id";
		$category_result=mysql_query($category_sql);
		$category_row=mysql_fetch_array($category_result);
		$categoryname= $category_row['category_name'];
	
?>
<table align="center" width="100%" height="35">
  <tr><td align="center" colspan="3" height="35" class="ft" heught=25"><font size="+1"><b>Edit Categories</b></font></td></tr>
  </table>
  <form name=modifycat action="change_itechitems_11.php" method=post>
  <table align="center" width="50%" cellpadding="5" cellspacing="2">
 <tr><td height="49" class="ct" height="25" align="center" colspan="2"><b>Category : <?= $category_row['category_name']; ?></td></tr>
<tr>
<td class="ct" height="25" align="right"><b> Category ID </b>
</td><td align="left"> <?=$category_row['category_id']; ?> </td></tr>
<tr>
<td class="ct" height="25" align="right"><b> Category Name </b>
</td><td align="left"><input type="text" class="bluetext"name="txtcategory" value="<?= $category_row['category_name']; ?>"></td></tr>
<tr>
<td class="ct" height="25" align="right"><b> Priority </b>
</td><td align="left"><input type="text" class="bluetext"name="txtpriority" value="<?= $category_row['priority']; ?>"></td></tr>
<tr>
<td class="ct" height="25" align="center" colspan="2"><input type="submit" class="button"   value=Save></td></tr>
 <input type="hidden" value=<?=$cat_id; ?> name=cat_id>
 </form>
<? require'include/footer.php'; ?>