<?php
$PageSecurity = 2;
include('includes/session.inc');
include('includes/function_lib.php');
$data='';
$sql=DB_query("Select * from qc_product_parameter_details where master_id=".$_REQUEST['id']." order by flow_no ASC",$db);
?>
<table width="100%" border="1" cellpadding="3" cellspacing="0">
  <tr bgcolor="#CCCCCC" height="25" >
    <td align="left" width="2%"><strong>Flow No.</strong></td>
    <td align="left" width="20%"><strong>Parameter</strong></td>
    <td align="left" width="20%"><strong>Specification</strong></td>
    <td align="left" width="10%"><strong>Mesurement Instrument</strong></td>
    <td align="left" width="5%"><strong>Min</strong></td>
    <td align="left" width="5%"><strong>Max</strong></td>
    <td align="left" width="10%"><strong>Results</strong></td>
	<td align="left" width="10%"><strong>Vendor Results</strong></td>
	<td align="left" width="5%"><strong>Status</strong></td>
    <td align="left" width="10%"><strong>Remarks</strong></td>
  </tr>
<?php $i=0;
while($row=DB_fetch_array($sql)){
		extract($row);
?>
  <tr class="row1">
    <td><input name="" type="text"  value="<?php echo $flow_no;?>" style="width:100%" readonly=/></td>
    <td><input type="text" name="" value="<?php echo $s->getField('qc_parameter_master','id',$parameter_id,'parameter');?>" id="" style="width:100%;" readonly/><input type="hidden" name="qc_incoming_inspection_details[<?php echo $i;?>][parameter_id]" value="<?php echo $parameter_id;?>" id="" style="width:100%;" readonly/></td>
    <td><input type="text" name="" value="<?php echo $parameter_specs;?>" id="" style="width:100%;" readonly/></td>
    <td><select name="" style="width:100%">
			<option value="<?php echo $instrument_id;?>"><?php echo $s->getField('item_master','id',$instrument_id,'item_name');?></option>
		</select>
	</td>
    <td><input type="text" name="" value="<?php echo $range_min;?>" id="" style="width:100%;" readonly/></td>
    <td><input type="text" name="" value="<?php echo $range_max;?>" id="" style="width:100%;" readonly/></td>
    <td><input type="text" name="qc_incoming_inspection_details[<?php echo $i;?>][result]" value="" id="" style="width:100%;" /></td>
	<td><input type="text" name="qc_incoming_inspection_details[<?php echo $i;?>][vendor_result]" value="" id="" style="width:100%;" /></td>
	<td><select name="qc_incoming_inspection_details[<?php echo $i;?>][status]" style="width:100%">
			<option value="OK">OK</option>
			<option value="NK">NOT OK</option>
			<option value="N">NONE</option>
		</select>
	</td>
    <td><input type="text" name="qc_incoming_inspection_details[<?php echo $i;?>][remarks]" value="" id="" style="width:100%;" /></td>
  </tr>
<?php $i++;}?>
</table>