<?php
$modid=$_REQUEST['modid'];
$frmid=$_REQUEST['frmid'];
$rurl="&modid=".$modid."&frmid=".$frmid;
if($_REQUEST['action']=='delete' and $_REQUEST['Id']!='')
{
$delete=DB_query("delete from design_prepress_job_card where id='".$_REQUEST['Id']."'",$db);	

}
?>

<h2 align="center">View Design PrePare  Job Card List</h2>
<a href="index.php?route=design_prepress_tools&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid'];?>">Add Design/PrePress</a>
<br><br>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<th>Job Card No</th>
<th>Job Card Date </th>
<th>Party Name</th>
<th>Item Name</th>
<th>Order Qty</th>
<th>View</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<?php
$sql=DB_query("Select * from design_prepress_job_card",$db);	
$i=0;
$num=DB_num_rows($sql);
if($num>0)
{
while($myrow=DB_fetch_array($sql))
{
	$jobcard=$s->getField('job_route_card','id',$myrow['job_ticket_no'],'job_card_no');
?>
<tr bgcolor="#FFFFFF">
<td><?php echo $jobcard;?></td>
<td><?php echo $myrow['job_ticket_date'];?></td>
<td><?php echo $myrow['party_name'];?></td>
<td><?php echo $myrow['item_name'];?></td>
<td><?php echo $myrow['order_qty'];?></td>
<td><div align="center"><a href="index.php?route=view_design_prepress&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid'];?>&action=edit&Id=<?php echo $myrow['id'];?>">View</a></div></td>
<td><div align="center"><a href="">Edit</a></div></td>
<td><div align="center"><a href="index.php?route=design_prepare_jobcardlist&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid'];?>&action=delete&Id=<?php echo $myrow['id'];?>" onclick="return confirm('Are you sure you want to delete?')">Delete</a></div></td>
</tr>
<?php $i++;}}
else { ?>
	<tr bgcolor="#FFFFFF">
<td colspan="12">No Records Find</td>
</tr>
<?php }   ?>
	
</table>
