<?php include("../../include/dbconnect.php");?>
<title>Edit Issued / Manufactured Items</title>
<body background="../../images/blater01.gif"  topmargin=0>
<center>
<table cellpadding=0 cellspacing=4 width=590>
<tr>
<td style="padding:3px;" colspan=2 bgcolor="#93BEE2"><font face="Arial, Helvetica, sans-serif" ><b>Edit Issued / Manufactured Items  </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 method="POST" action="update.php"> 
  <?php

$result=mysqli_fetch_array(mysqli_query($conn,"select acctcode,date,inqty,outqty,transact_type,remarks from stktrans where record = '$record' ")) or die(mysqli_error());


$prodcode = $result['acctcode'];
$prod = mysqli_fetch_array(mysqli_query($conn,"select prodname from product where prodcode = '$prodcode' ")) or die(mysqli_error());

?>
  <input type="hidden"  name="record1" value = <?php echo($record);?>>


  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Product</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"  readonly  onKeyPress="return event.keyCode!=13"   size="35" name="buyertype" value = <?php echo("'$prod[prodname]'");?>>
      </font></td>
  </tr>

  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Date</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="date" value = <?php echo("'$result[date]'");?>>
      </font></td>
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Purchased / Manufactured Qty</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="inqty" value =<?php echo("'$result[inqty]'");?>>
      </font></td>
  </tr>

  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Issued Qty for Manufacturing</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="outqty"  value =<?php echo("'$result[outqty]'");?>>
      </font></td>
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Remarks</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="remarks"  value =<?php echo("'$result[remarks]'");?>>
      </font></td>
  </tr>  
 
  <table cellpading=0 cellspacing=10 width= 50>
    <tr> 
      <blockquote> 
        <td> <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</a></center></font>
                                                                             
</body>
</form>

      
