<link rel="stylesheet" href="css/new_mxerp.css">

<?php
$sql1=DB_query("select * from tbl_inprocess_printing_audit where id='".$_REQUEST['Id']."'",$db);
$rowdata=DB_fetch_array($sql1);
?>

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



<h1>View Process Audit Report For Printing</h1>


<table width="100%" border="1" cellpadding="3" cellspacing="0"
       style="border-collapse:collapse; border:#666666 solid 1px;">
   <tr><td class="tabledata" style="width:146px;">Branch:</td>
      <td>
	 <?php
 		$sql ="SELECT loccode, locationname FROM locations where loccode='".$rowdata['branch_id']."'";
	 	$resultStkLocs = DB_query($sql,$db);
		?>
	<select name="site" style="width:100%" onchange="getdata(this.value);" >
	     <?php    
			while ($myrow=DB_fetch_array($resultStkLocs))
				{
				?>
      <option value="<?php echo $myrow['loccode']; ?>"><?php echo $myrow['locationname'];?></option>
      <?php  }	?> 
    </select></td>
 </tr>
 </table>
   
<h3>General Details</h3>
<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:810px;">
	   <table width="100%" border="1" cellpadding="3" cellspacing="0" style="border-collapse:collapse; border:#666666 solid 1px;">
            	<tr>
                 <td class="tabledata" width="146px;">Printing Slip No.</td>
		 <td id="hotfoil"><input type="text"  name="printing_slip_no" id="printing_slip_no" style="width:100%" value="<?php echo $rowdata['printing_slip_no']; ?>">                    	
                    	</td>
                    	<td class="tabledata">Job Card  No.</td>
                     <td id="vouchar"><select  name="job_ticket" id="job_ticket" style="width:100%" >
                    	<?php
                    	$sql=DB_query("select * from job_route_card where id='".$rowdata['job_card_id']."'",$db);
						while($row=DB_fetch_array($sql))
						{ 
                    	?>
                    	<option value="<?php echo $row['id']; ?>"><?php echo $row['job_card_no']; ?></option>
                    	<?php } ?></select>                   	
                    	                    	</td>
      </tr>
            	<tr>
                 <td class="tabledata">Date.</td>
                   <td><input type="text" id="date" name="date" style="width:100%;" value="<?php echo $rowdata['date']; ?>"/>
                     </td> 
                    	<td class="tabledata">Item Name</td>
                     <td><input type="text" id="item" name="item" style="width:100%;"  value="<?php echo $rowdata['item_name']; ?>"/>
                     </td></tr>
            	<tr>
                 <td class="tabledata">Customer</td>
                    <td id="vouchar"><input type="text" name="customer_name" style="width:100%;" id="customer_name"   value="<?php echo $rowdata['customer']; ?>"/></td>
                    	<td class="tabledata">Shift</td>
                     <td><input type="text" name="shift" style="width:100%" id="shift" value="<?php echo $rowdata['shift']; ?>">            	                 	
                                  </td>
       </tr>
       <tr>
       	<td class="tabledata">Machine</td>
        <td id="vouchar"><input type="text" name="machine" id="machine" style="width:100%" value="<?php echo $rowdata['machine']; ?>"></td>
        <td class="tabledata">Operator</td>
        <td><input type="text" name="operator" style="width:100%" id="operator" value="<?php echo $rowdata['operator']; ?>">
       </tr>
       <tr>
       	<td class="tabledata">Total Qty</td>
        <td id="vouchar"><input type="text" name="total_qty" id="total_qty" style="width:100%" value="<?php echo $rowdata['total_qty']; ?>"></td>
        <td class="tabledata">Supervisor</td>
        <td><input type="text" name="supervisor" style="width:100%" id="supervisor" value="<?php echo $rowdata['supervisor']; ?>">
       </tr>
      </table></div></td>
      </tr> 
      <tr><td>&nbsp;</td></tr>
   
   <tr><td><h3>Initial Check Point</h3>
      <table width="100%" border="1" cellpadding="3" cellspacing="0" style="border-collapse:collapse; border:#666666 solid 1px;">
                 <tr>
                 	
        <td class="tabledata" style="width:400px;">Type of Raw material being used is as per job card</td>
        <td><table border="0">
        	
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="raw_mat" value="Yes"
                    	<?php if($rowdata['raw_mat']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="raw_mat" value="No" 
                    		<?php if($rowdata['raw_mat']=='No'){ ?>checked="checked" <?php }?>/></td>
                        </tr>		
                    </table></td>
     </tr>
     <tr>
     
        <td class="tabledata" >GSM as per Job Card(5%):</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="gsm" value="Yes"
                    	<?php if($rowdata['gsm']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="gsm" value="No" 
                    		<?php if($rowdata['gsm']=='No'){ ?>checked="checked" <?php }?>/></td>	
                           <td class="tabledata">Actual</td><td><input type="text" name="gsm_actual" /></td> </tr>         	
                    </table></td>
      </tr>
      <tr>
     	
        <td class="tabledata" >Size as per job card(2mm)</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="size" value="Yes" <?php if($rowdata['size']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="size" value="No" <?php if($rowdata['size']=='No'){ ?>checked="checked" <?php }?>/></td>
                          <td class="tabledata">Actual</td><td><input type="text" name="size_actual" /></td>
                              </tr>	  	
                    </table></td>
      </tr>
      <tr>
     	
        <td class="tabledata" >No of Ups</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="no_ups" value="Yes" <?php if($rowdata['no_ups']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="no_ups" value="No"  <?php if($rowdata['no_ups']=='No'){ ?>checked="checked" <?php }?>/></td>
                              </tr>	  	
                    </table></td>
      </tr>
      <tr>
     
        <td class="tabledata" >Foil Quality</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="foil_qty" value="Yes" <?php if($rowdata['foil_qty']=='Yes'){ ?>checked="checked" <?php }?>/></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="foil_qty" value="No"  <?php if($rowdata['foil_qty']=='No'){ ?>checked="checked" <?php }?>/></td>
                          <td class="tabledata">Gold</td><td><input type="radio" name="foil_color" value="Gold"  <?php if($rowdata['foil_color']=='Gold'){ ?>checked="checked" <?php }?>/>
                          	<td class="tabledata">Silver</td>
                          	<td><input type="radio" name="foil_color" value="Silver"  <?php if($rowdata['foil_color']=='Silver'){ ?>checked="checked" <?php }?> />
                          	<td class="tabledata">Both</td><td><input type="radio" name="foil_color" value="silver/gold"  <?php if($rowdata['foil_color']=='silver/gold'){ ?>checked="checked" <?php }?>/></td>
                          	<td class="tabledata">other</td><td><input type="radio" name="foil_color" value="other"  <?php if($rowdata['foil_color']=='other'){ ?>checked="checked" <?php }?>/> </td>
                              </tr>	  	
                    </table></td>
      </tr>
      
      <tr>
     	
        <td class="tabledata" >Coating Used</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="coating" value="Yes" <?php if($rowdata['foil_color']=='other'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="coating" value="No" <?php if($rowdata['foil_color']=='other'){ ?>checked="checked" <?php }?>/></td>
                          <td class="tabledata">Code</td><td><input type="text" name="coating_code"  <?php if($rowdata['foil_color']=='other'){ ?>checked="checked" <?php }?>/><td class="tabledata">Batch No</td>
                          	<td><input type="radio" name="coating_batch"  <?php if($rowdata['foil_color']=='other'){ ?>checked="checked" <?php }?>/></td>
                          		<td class="tabledata">Manufactured</td><td><input type="text" name="coating_manuf" value="<?php echo $rowdata['coating_manuf']; ?>" /></td>
                              </tr>	  	
                    </table></td>
      </tr>
      <tr>
     	
        <td class="tabledata" >Text matter as per customer approved/in house approved PDF</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="text_matter" value="Yes" <?php if($rowdata['text_matter']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="text_matter" value="No" <?php if($rowdata['text_matter']=='No'){ ?>checked="checked" <?php }?>/></td>
                          <td class="tabledata">Code</td><td><input type="text" name="text_code"  /></td><td class="tabledata">Batch No</td>
                          <td><input type="text" name="text_batch" value="<?php echo $rowdata['text_batch']; ?>" /></td>
                          		<td class="tabledata">Manufactured</td><td><input type="text" name="text_manuf" value="<?php echo $rowdata['text_manuf']; ?>" /></td>
                          	
                          			<td></td><td> </td>
                              </tr>	  	
                    </table></td>
      </tr>
      <tr>
     	
        <td class="tabledata" >Registration of all labels perfectly in all up</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="registration_lab" value="Yes" <?php if($rowdata['registration_lab']=='Yes'){ ?>checked="checked" <?php }?>/></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="registration_lab" value="No" <?php if($rowdata['registration_lab']=='No'){ ?>checked="checked" <?php }?> /></td>
                          	
                              </tr>	  	
                    </table></td>
      </tr>
      <tr>
     
        <td class="tabledata" >Foil Shade as per sample</td>
        <td><table  border="0">
                    <tr><td class="tabledata">Yes</td><td><input type="radio" name="foil_shade" value="Yes" <?php if($rowdata['foil_shade']=='Yes'){ ?>checked="checked" <?php }?>/></td>
                    	<td class="tabledata">No</td><td><input type="radio" name="foil_shade" value="No" <?php if($rowdata['foil_shade']=='No'){ ?>checked="checked" <?php }?>/></td>
                          
                              </tr>	  	
                    </table></td>
      </tr>
                    
                 </table></td></tr>
                
				
				<tr><td>&nbsp;</td></tr>
                <tr><td> <p align="center">Check Point Details</p>
               <?php $row15=DB_query("select * from tbl_inprocess_printing_audit_details where parent_id='".$_REQUEST['Id']."'",$db);
			   $rowdata1=DB_fetch_array($row15);
			   ?>  
			   <table width="100%" border="1" cellpadding="3" cellspacing="0" style="border-collapse:collapse; border:#666666 solid 1px;">
            <tr>
            	
          <td class="tabledata" width="24%"  class="text">Check Point</td>
          <td class="tabledata" width="27%"  valign="top">Observations</td>          
          <td class="tabledata"   width="65%">Remarks</td>
          <td  valign="top"></td>
          </tr>  
           <tr>
          	<td>Shade with in shade card range</stong></td><td>
          	<table border="0">
          	<tr><td><input type="text" class="datepicker" name="shade_card_date" value="<?php echo $rowdata1['shade_card_date']; ?>"/></td>
          	<td><input type="text"  name="shade_card_time" value="<?php echo $rowdata1['shade_card_time']; ?>" /></td>
          	<td><select name="start_AMPM_shade_card" id="start_AMPM_shade_card" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_shade_cardr']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_shade_cardr']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="shade_cardr_remarks"><?php echo $rowdata1['shade_cardr_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td> Shade is beyond the shade card</td><td>
          	<table border="0">
          	<tr><td><input type="text" class="datepicker" name="beyond_shade_date" value="<?php echo $rowdata1['beyond_shade_date']; ?>" /></td>
          		<td><input type="text"  name="beyond_shade_time" value="<?php echo $rowdata1['beyond_shade_time']; ?>" /></td>
          	<td><select name="start_AMPM_beyond_shade" id="start_AMPM_beyond_shade" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_beyond_shade']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_beyond_shade']=='PM'?'selected':'')?>>PM</option>
	 </select></td>	
          		
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="start_AMPM_beyond_shade_remarks"><?php echo $rowdata1['start_AMPM_beyond_shade_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Scumming</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="scumming_date" value="<?php echo $rowdata1['scumming_date']; ?>"/></td>
          		<td><input type="text" name="scumming_time" value="<?php echo $rowdata1['scumming_time']; ?>"  /></td>
          		<td><select name="start_AMPM_scumming" id="start_AMPM_scumming" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_scumming']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_scumming']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          		
          	</td><td><textarea style="width:100%;height:25px;" name="wrinkless_remarks"><?php echo $rowdata1['wrinkless_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Patchy Printing/Coating</td><td>
          	<table border="0">
          	<tr><td><input type="text" class="datepicker"  name="patchy_printing_date" value="<?php echo $rowdata1['patchy_printing_date']; ?>"/></td>
          		<td><input type="text"  name="patchy_printing_time" value="<?php echo $rowdata1['patchy_printing_time']; ?>" /></td>
          		<td><select name="start_AMPM_patchy_printing" id="start_AMPM_patchy_printing" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_patchy_printing']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_patchy_printing']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="patchy_printing_remarks"><?php echo $rowdata1['patchy_printing_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Matter Miss & Cut</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="matter_miss_date" value="<?php echo $rowdata1['matter_miss_date']; ?>"/></td>
          		<td><input type="text"  name="matter_miss_time" value="<?php echo $rowdata1['matter_miss_time']; ?>" /></td>
          		<td><select name="start_AMPM_matter_miss" id="start_AMPM_matter_miss" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_matter_miss']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_matter_miss']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="matter_miss_remarks"><?php echo $rowdata1['matter_miss_remarks']; ?></textarea></td>
          </tr>   
          
            <tr>
          	<td>Doubing</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="doubing_date" value="<?php echo $rowdata1['doubing_date']; ?>"/></td>
          		<td><input type="text"  name="doubing_time" value="<?php echo $rowdata1['doubing_time']; ?>" /></td>
          		<td><select name="start_AMPM_doubing" id="start_AMPM_doubing" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_doubing']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_doubing']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="doubing_remarks"><?php echo $rowdata1['doubing_remarks']; ?></textarea></td>
          </tr>    
          <tr>
          	<td>Missregistration</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="missreg_date" value="<?php echo $rowdata1['missreg_date']; ?>" /></td>
          		<td><input type="text"  name="missreg_time" value="<?php echo $rowdata1['missreg_time']; ?>" /></td>
          		<td><select name="start_AMPM_missreg" id="start_AMPM_missreg" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_missreg']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_missreg']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="missreg_remarks"><?php echo $rowdata1['missreg_remarks']; ?></textarea></td>
          </tr>   
           <tr>
          	<td>Puncture in any color or varnish</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="puncture_date" value="<?php echo $rowdata1['puncture_date']; ?>"/></td>
          		<td><input type="text"  name="puncture_time" value="<?php echo $rowdata1['puncture_time']; ?>" /></td>
          		<td><select name="start_AMPM_puncture" id="start_AMPM_puncture" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_puncture']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_puncture']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="puncture_remarks"><?php echo $rowdata1['puncture_remarks']; ?></textarea></td>
          </tr>   
           <tr>
          	<td>Water/Oil drop</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="water_date" value="<?php echo $rowdata1['water_date']; ?>"/></td>
          		<td><input type="text"  name="water_time" value="<?php echo $rowdata1['water_time']; ?>" /></td>
          		<td><select name="start_AMPM_water" id="start_AMPM_water" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_water']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_water']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="water_remarks"><?php echo $rowdata1['water_remarks']; ?></textarea></td>
          </tr>   
             <tr>
          	<td>Hickies/Spots</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="hickies_date" value="<?php echo $rowdata1['hickies_date']; ?>" /></td>
          		<td><input type="text"  name="hickies_time" value="<?php echo $rowdata1['hickies_time']; ?>" /></td>
          		<td><select name="start_AMPM_hickiesr" id="start_AMPM_hickies" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_hickies']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_hickies']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="hickies_remarks"><?php echo $rowdata1['hickies_remarks']; ?></textarea></td>
          </tr>   
          <tr>
          	<td>Scratch mark/Line mark</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="scratch_mark_date" value="<?php echo $rowdata1['scratch_mark_date']; ?>" /></td>
          		<td><input type="text"  name="scratch_mark_time" value="<?php echo $rowdata1['scratch_mark_time']; ?>" /></td>
          		<td><select name="start_AMPM_scratch_mark" id="start_AMPM_scratch_mark" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_scratch_mark']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_scratch_mark']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="scratch_remarks"><?php echo $rowdata1['scratch_remarks']; ?></textarea></td>
          </tr>   
          <tr>
          	<td>Alcohal Test</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="alcohal_date" value="<?php echo $rowdata1['alcohal_date']; ?>"/></td>
          		<td><input type="text"  name="alcohal_time" value="<?php echo $rowdata1['alcohal_time']; ?>" /></td>
          		<td><select name="start_AMPM_alcohal" id="start_AMPM_alcohal" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_alcohal']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_alcohal']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="alcohal_remarks"><?php echo $rowdata1['alcohal_remarks']; ?></textarea></td>
          </tr>   
           <tr>
          	<td>Tape Test</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="tape_date" value="<?php echo $rowdata1['tape_date']; ?>"/></td>
          		<td><input type="text"  name="tape_time" value="<?php echo $rowdata1['tape_time']; ?>" /></td>
          		<td><select name="start_AMPM_tape" id="start_AMPM_tape" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_tape']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_tape']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="tape_remarks"><?php echo $rowdata1['tape_remarks']; ?></textarea></td>
          </tr>   
          <tr>
          	<td>Curing Speed</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="curing_date" value="<?php echo $rowdata1['curing_date']; ?>"/></td>
          		<td><input type="text"  name="curing_time" value="<?php echo $rowdata1['curing_time']; ?>" /></td>
          		<td><select name="start_AMPM_curing" id="start_AMPM_curing" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_curing']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_curing']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="curing_remarks"><?php echo $rowdata1['curing_remarks']; ?></textarea></td>
          </tr>   
          <tr>
          	<td>Heater on in all sticker's job</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="heater_date" value="<?php echo $rowdata1['heater_date']; ?>"/></td>
          		<td><input type="text"  name="heater_time" value="<?php echo $rowdata1['heater_time']; ?>" /></td>
          		<td><select name="start_AMPM_heater" id="start_AMPM_heater" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_heater']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_heater']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="heater_remarks"><?php echo $rowdata1['heater_remarks']; ?></textarea></td>
          </tr>   
           <tr>
          	<td>Foil Temperature & speed</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="foil_date" value="<?php echo $rowdata1['foil_date']; ?>"/></td>
          		<td><input type="text"  name="foil_time" value="<?php echo $rowdata1['foil_time']; ?>" /></td>
          		<td><select name="start_AMPM_foil" id="start_AMPM_foil" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_foil']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_foil']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="foil_remarks"><?php echo $rowdata1['foil_remarks']; ?></textarea></td>
          </tr>   
           <tr>
          	<td>Dyne Value</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="dyne_date" value="<?php echo $rowdata1['dyne_date']; ?>"/></td>
          		<td><input type="text"  name="dyne_time" value="<?php echo $rowdata1['dyne_time']; ?>" /></td>
          		<td><select name="start_AMPM_dyne" id="start_AMPM_dyne" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_dyne']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_dyne']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="dyne_remarks"><?php echo $rowdata1['dyne_remarks']; ?></textarea></td>
          </tr>   
          <tr>
          	<td>Printing Counter at checking time</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text" class="datepicker" name="printing_date" value="<?php echo $rowdata1['printing_date']; ?>"/></td>
          		<td><input type="text"  name="printing_time" value="<?php echo $rowdata1['printing_time']; ?>" /></td>
          		<td><select name="start_AMPM_printing" id="start_AMPM_printing" style="width:40px">
	 <option value="AM"<?php echo ($rowdata1['start_AMPM_printing']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowdata1['start_AMPM_printing']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="printing_remarks"><?php echo $rowdata1['printing_remarks']; ?></textarea></td>
          </tr>   
                </table></tr>
                 <tr><td><table width="100%" border="1" cellpadding="3" cellspacing="0" style="border-collapse:collapse; border:#666666 solid 1px;">
                <tr>
                 <td class="tabledata" style="width:146px;">Remarks</td>
                    <td colspan="3"><textarea name="remarks1" style="width:100%"><?php echo $rowdata['remarks']; ?></textarea>
                    	</td>
                   
                </tr> </table></td></tr>
             </table>
						