<?php 
include("../../include/dbconnect.php");
?>
<title> Sub Contract details edit</title>
<body bgcolor="#ffffff"  topmargin=0>
<center>
<table cellpadding=0 cellspacing=4 width=590>
<tr>
<td style="padding:3px;" colspan=2 bgcolor="#93BEE2"><font ><b>Sub Contract details edit</b></font></td>
</tr><tr valign="top"><td colspan=2>
<font >&nbsp;</font>
</td>
</tr>
</table>
<table border=0 cellpadding=3 cellspacing=4 width="590">
<form name="form1" method="POST"  action="update.php?<?echo($record);?>">

<? 	

$result=mysql_query("select * from subcontract where record = '$record' ");
$row1=mysql_fetch_row($result);
?>

<tr><td><font class="sbd"><b>Sub Contract Code </b></font></td><td>
<input type="text"    onKeyPress="return event.keyCode!=13"   maxlength=8 size="8" name="catcode" value = <?php echo($row1[0]);?>></td></tr>


<tr><td><font class="sbd"><b>Sub Contract Name</b></font></td><td>
<input type="text"    onKeyPress="return event.keyCode!=13"   size="40" name="category" value = <?php echo("'$row1[1]'");?>>  </td></tr>


<input type="hidden" name="record" value="<?echo $record;?>">

<table cellpading=0 cellspacing=10 width= 50>
<tr>
<td>
 <blockquote>  <input type =submit name=submit value = "Update"></td> <td><input type =submit name=submit value = "Delete"></blockquote>
</table>

</table>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
</body>
</form>
