<?php 
$_SESSION['modid']=$_REQUEST['modid'];
$_SESSION['frmid']=$_REQUEST['frmid'];
$frmpermission= $px->GetFileAccess($_SESSION['modid'],$_SESSION['frmid'],$_SESSION['ACGRoleId']);
$_SESSION['frmAdd']=$frmpermission[0];
$_SESSION['frmEdit']=$frmpermission[1];
$_SESSION['frmDelete']=$frmpermission[2];
$_SESSION['frmView']=$frmpermission[3];
?>
<link rel="stylesheet" href="css/new_mxerp.css">
<div class="tab_div">
<center> <h2>Product Parameters</h2></center>
<div id="container">
<p align="center"><a href="<?php echo "index.php?route=QC/masters/product_parameter_master&modid=".$_REQUEST['modid']."&frmid=".$_REQUEST['frmid'];?>"><input type="button" name="" value="Add New" class="search" /></a></p>
<form action="" method="post">
<table border="1" cellpadding="3" cellspacing="0" width="100%" style="border:1px #333333 solid;">
<tr bgcolor="#d4d4d4">
	<td class="tabledata"><strong>Product Parameter No.</strong></td>
	<td class="tabledata"><strong>Date</strong></td>
	<td class="tabledata"><strong>Product</strong></td>
	<td class="tabledata"><strong>Process</strong></td>
	<td class="tabledata"><strong>Method No.</strong></td>
	<td class="tabledata"><strong>Approved By</strong></td>
	<td class="tabledata" colspan="4" style="text-align:center"><strong>Actions</strong></td>
</tr>
<?php 
$sql=DB_query("Select * from qc_product_parameter where CompanyId=".$_SESSION['ACGCompanyId'],$db);
while($row=DB_fetch_array($sql)){
	extract($row);
?>
<tr bgcolor="#CCCCCC">
	<td><?php echo $auto_code;?></td>
	<td><?php echo ConvertSQLDate($date);?></td>
	<td><?php echo $s->getField('item_master','id',$mst_itemid,'item_name');?></td>
	<td><?php echo $s->getField('production_process_master','id',$process_id,'manuf_process_name');?></td>
	<td><?php echo $method_no;?></td>
	<td><?php echo $approved_by;?></td>
	<td style="text-align:center"><a href="<?php echo "index.php?route=QC/masters/product_parameter_master&modid=".$_REQUEST['modid']."&frmid=".$_REQUEST['frmid']."&act=edit&id=".$id;?>"><img src="images/icon-edit.png" /></a></td>
	<td style="text-align:center"><a href=""><img src="images/Icon_Delete3.gif" /></a></td>
	<td style="text-align:center"><a href=""><img src="images/view-icone-6308-32.png" width="20" height="20" /></a></td></td>
	<td>&nbsp;</td>
</tr>
<?php } ?>
</table>
</form>
</div>
</div>