<?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,narration,dbamt,cramt,type,invno,compcode from ledger where record = '$record' ")) or die(mysqli_error());
$prodcode = $result[acctcode];

$prod = mysqli_fetch_array(mysqli_query($conn,"select description from acctmast where acctcode = '$prodcode' ")) or die(mysqli_error());

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


  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Account Head</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"  readonly  onKeyPress="return event.keyCode!=13"   size="55" name="buyertype" value = <?php echo("'$prod[description]'");?>>
      </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>Description</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="narration" value =<?php echo("'$result[narration]'");?>>
      </font></td>
  </tr>

  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Debit Amount</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="dbamt"  value =<?php echo("'$result[dbamt]'");?>>
      </font></td>
  </tr>
  
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Credit Amt</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="cramt"  value =<?php echo("'$result[cramt]'");?>>
      </font></td>
  </tr>  


  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"><b>Type</b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="type"  value =<?php echo("'$result[type]'");?>>
      </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>

      
