<link rel="stylesheet" href="css/new_mxerp.css">
]<?php
$row=DB_query("select * from design_prepress_job_card where id='".$_REQUEST['Id']."'",$db);
$rowdata=DB_fetch_array($row);
?>

<div class="body_contain">
<div class="tab_div">


<h1>View Design/PrePress & tools Inspection Agnst Job Card</h1>
<br>
<table  width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
    <tr>
        <td nowrap="nowrap" colspan="2" width="50%" valign="top">
        <div id="enquiryId" style="width:100%; margin:0 auto;">
<table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse; border:#999999 solid 1px;">
            <tr>
                 <th align="left" width="24%"><strong>Job Card No</strong></th>
                    <td width="27%"><select  name="job_ticket" id="job_ticket" style="width:100%"  >
                    	
                    	<?php
                    	$sql=DB_query("select * from job_route_card where id='".$rowdata['job_ticket_no']."'",$db);
						while($row=DB_fetch_array($sql))
						{ 
                    	?>
                    	<option value="<?php echo $row['id']; ?>"><?php echo $row['job_card_no']; ?></option>
                    	<?php } ?></select></td>
                    	<th align="left" width="20%"><strong>Delivery Date</strong></th>
                     <td><input type="text" name="delivery_date" id="delivery_date" style="width:100%;"  value="<?php echo $rowdata['delivery_date']; ?>"/>
                     </td>
                    
      </tr></table></div></td>
      </tr>
      
                <tr>
                  	
                  	
    <td valign="top">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td colspan="4" id="quoteId">
     
        <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" >
    <tr>
        <td nowrap="nowrap" colspan="2" width="50%" valign="top">
        <div id="enquiryId" style="width:100%; margin:0 auto;">
<table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse; border:#999999 solid 1px;">
                <tr>
                 <th align="left"><strong>Job Card Date	</strong></th>
                    <td><input type="text" name="job_date" id="job_date"  size="6"  style="width:100%;" value="<?php echo $rowdata['job_ticket_date']; ?>" >
                    	</td>
                    <th align="left"><strong>Item Name</strong></th>
                     <td><input type="text"  style="width:100%;" name="item_name1" id="item_name1"  value="<?php echo $rowdata['item_name']; ?>">
                     </td>
                  </tr><tr>
                  	<th width="24%" align="left"><strong>Party Name</strong></th>
                    <td width="27%"><input type="text" name="party_name" id="party_name" style="width:100%;"  value="<?php echo $rowdata['party_name']; ?>"/>
                    	</td>
                      <th align="left"><strong>Order Qty</strong></th>
                     <td><input type="text"  style="width:100%;" name="order_qty" id="order_qty"  value="<?php echo $rowdata['order_qty']; ?>" >
                     </td></tr>    
                                   
                  
                 </table></div>
       
        </td>
        </tr>
    </table>
    
    </td>
    </tr>
    </table>
    </td>
    </tr>                   
                 </table>                
        
        </td>
        </tr>
        <tr><td nowrap="nowrap" colspan="2" width="50%" valign="top">
        <div id="enquiryId" style="width:100%; margin:0 auto;">
        	<p align="center"><strong>Tools & Desing Analysis Aganist Job Card No - </strong></p>
<table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse; border:#999999 solid 1px;">
            	
            	<tr>
                 <th align="left"><strong>Plates</strong></th>
                    <td><table width="100%">
                    <tr><th>Ready</th><td><input type="radio" name="plateready" value="ready" <?php if($rowdata['plates']=='ready'){ ?> checked="checked" <?php }?> /></td>
                    	<th>Not Ready</</th><td><input type="radio" name="plateready" value="notready" <?php if($rowdata['plates']=='notready'){ ?> checked="checked" <?php }?> /></td></tr>	
                                   	
                    </table>
                                     	
                    	
                    	</td>
                    <th align="left"><strong>Shade Card</strong></th>
                     <td><table width="100%">
                    <tr><th>Ready</th><td><input type="radio" name="shadeready" value="ready"  <?php if($rowdata['shade_card']=='ready'){ ?> checked="checked" <?php }?>/></td>
                    	<th>Not Ready</th>
                    	<td><input type="radio" name="shadeready" value="notready" <?php if($rowdata['shade_card']=='notready'){ ?> checked="checked" <?php }?> /></td></tr>	
                    </table>
                    	</td>
                  </tr><tr>
                  	<th width="24%" align="left"><strong>Text Matter</strong></th>
                   <td><table width="100%">
                    <tr><th>Ready</th><td><input type="radio" name="textready" value="ready" <?php if($rowdata['text_matter']=='ready'){ ?> checked="checked" <?php }?>  /></td>
                    	<th>Not Ready</th><td><input type="radio" name="textready" value="notready" <?php if($rowdata['text_matter']=='notready'){ ?> checked="checked" <?php }?>  /></td></tr>	
                                   	
                    </table>
                   </td>
                       <th align="left"><strong>Shade Card/Print Out</strong></th>
                       <td><table width="100%">
                  <th >Ready</th><td><input type="radio" name="shadecard_print" value="ready" <?php if($rowdata['shade_print_out']=='ready'){ ?> checked="checked" <?php }?> /></td>
                  <th>Not Ready</th><td><input type="radio" name="shadecard_print" value="notready" <?php if($rowdata['shade_print_out']=='notready'){ ?> checked="checked" <?php }?> /></td>	
                     </table> </td></tr>    
                      <tr><th width="25%">View Attachments</th><td ><strong align="center"><a href="index.php?route=prepress_inspection_attacments_download&id=<?php echo $rowdata['id']; ?>&&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid'];?>">Download</a></strong></td>
                      <td></td><td></td>	
                      	 <tr><th   width="25%">Other Tools(If Any)</th><td><table width="100%">
                      	 	 <th >Ready</th><td><input type="radio" name="otherready" value="ready" <?php if($rowdata['other_tool']=='ready'){ ?> checked="checked" <?php }?>/></td>
                      	 	 <th>Not Ready</th><td><input type="radio" name="otherready" value="notready" <?php if($rowdata['other_tool']=='notready'){ ?> checked="checked" <?php }?>/></td>	
                      	 	</table></td>
                      <td></td><td></td></tr>	
                                            
                 </table></div> </td></tr>
                                    
        
    <tr><td>
<table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse; border:#999999 solid 1px;">
                <tr>
                 <th align="left" colspan="2" width="25%"><strong>Remarks</strong></th>
                    <td colspan="2" width="75%"><textarea name="remarks" style="width:100%" ><?php echo $rowdata['ramarks']; ?></textarea>
                    	</td>
                </tr> </table></td></tr>
                  <tr><td><table width="100%" border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse; border:#999999 solid 1px;">
                <tr>
                 <th align="left"  width="25%"><strong>Created By</strong></th>
                    <td  ><input type="text" name="created" style="width:100%" value="<?php echo $rowdata['created_by']; ?>">
                    	</td>
				     <th>Approved By Design/PPC Head</th><td><select name="approved"  style="width:100%">
					<option value="0">Select</option>
					<option value="Yes"<?php if($rowdata['approved_design']=='Yes') { ?> selected="selected" <?php } ?>>Yes</option>
	<option value="No" <?php if($row['approved_design']=='No') { ?> selected="selected" <?php } ?>>No</option>
	<option value="Pending" <?php if($row['approved_design']=='Pending') { ?> selected="selected" <?php } ?>>Pending</option>
					</select></td></tr>
		     </table></td></tr></table>
</div></div>

