<?php

$PageSecurity = 11;
//echo $_SERVER['QUERY_STRING'];exit;
include('includes/DefineSuppTransClass.php');
include('includes/DefinePOClass.php');
include('includes/SQL_CommonFunctions.inc');

include('includes/session.inc');
			 $q=$_GET['mrnno'];
			$exp = explode(",",$q);
			$sql="Select * from addmrnqty Where issue_id ='".$exp[0]."'";
 			$result = DB_query($sql,$db);
 			$numrows = DB_num_rows($result);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="txtid">
<?php
 	for($i=1; $i<=$numrows; $i++)
	{ $myrow=DB_Fetch_array($result);
	  $mrnno= $exp[1];
	?>
   <tr>
     <td width="15%">
	 <input type="hidden" name="mrnid" id="mrnid" value="<?php echo $exp[0];?>" />
	 <input type="hidden" name="mrnno" id="mrnno" value="<?php echo $exp[1];?>" />
	 <input type="text"  readonly=""  name="itemcode[<?php echo $i;?>]"size="15" value="<?php echo $myrow['itemcode'];?>" /></td>
     <td width="13%">
	 <input type="text" name="desc[<?php echo $i;?>]"   size="20" value="<?php echo $myrow['desc'];?>"/>
	 </td>
     <td width="8%">
	 <input name="MRNUnit[<?php echo $i;?>]" type="text"  size="10" value="<?php echo $myrow['UOM']; ?>" />
	 </td>
     <td width="8%">
	 <input name="MRNchallanQty[<?php echo $i;?>]" type="text"  size="10" value="" />
	 </td>
     <td width="8%">
	 <input name="MRNstorage[<?php echo $i;?>]" type="text"  size="10" value="" />
	 </td>
     <td width="7%">
	 <input name="MRNusable[<?php echo $i;?>]" type="text"  size="10"  value=""/>
	 </td>
     <td width="6%">
	 <input type="text" name="MRNrejectqty[<?php echo $i;?>]"  size="13" value=""  />
	 </td>
     <td width="12%">
	 <input type="text" name="MRNpassqty[<?php echo $i;?>]"  size="13" value=""  />
	 </td>
     <td width="15%">
	 <input type="text" name="MRNremarks[<?php echo $i;?>]"  size="30"   />	
	 </td>
     </tr>
  <?php } ?>
  <input type="hidden" name="NumofRow" value="<?php echo $i;?>" />
 </table>