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

<?php
$sql=DB_query("select * from tbl_inprocess_audit_laminations where id='".$_REQUEST['Id']."'",$db);
$rowcheckdata=DB_fetch_array($sql);

?>


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


<h1>View InProcess Audit For Lamination/Window Laminations</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='".$rowcheckdata['branch_id']."' ";
	 	$resultStkLocs = DB_query($sql,$db);
		?>
	<select name="site" style="width:100%">
	      <?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 cellpadding="0" cellspacing="0" border="1" 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" cellpadding="3" cellspacing="0" style="border-collapse:collapse; border:#666666 solid 1px;">
            	<tr>
                 <td class="tabledata"  style="width:146px;">Lamination Slip.</td>
                    <td  id="hotfoil"><input type="text"  name="lamination_slip" id="lamination_slip" style="width:100%" value="<?php echo $rowcheckdata['lamination_slip']; ?>"  >                    	
                    	</td>
                    	<td class="tabledata">Date</td>
                     <td><input type="text" id="date" name="date" style="width:100%;"  value="<?php echo $rowcheckdata['date']; ?>"/>
                     </td>
      </tr>
            	<tr>
                 <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='".$rowcheckdata['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>
                    	<td class="tabledata">Item Name..</td>
                     <td><input type="text" id="item" name="item" style="width:100%;" value="<?php echo $rowcheckdata['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 $rowcheckdata['customer_name']; ?>"/></td>
                    	<td class="tabledata">Shift</td>
                     <td><input type="text" name="shift" style="width:100%" id="shift" value="<?php echo $rowcheckdata['shift']; ?>">            	                 	
                       	
                     </td>
       </tr>
      </table></div></td>
      </tr> 
   
    <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" style="width:146px;">Machine</td>
        <td  id="vouchar" style="width:246px;"><input type="text" name="machine" id="machine" style="width:100%" value="<?php echo $rowcheckdata['machine']; ?>">
                     	
        	
        	
        	</td>
     
        <td class="tabledata" style="width:136px;">Operator</td>
        <td  id="vouchar"><input type="text" name="operator" style="width:100%" id="operator" value="<?php echo $rowcheckdata['operator']; ?>">
                     	
        	
        	
        	</td>
      </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">Lamination film quality,size and thickness used as per job card</td>
        <td><table width="100%" border="0">
        	
                    <tr><td>&nbsp;</td><td class="tabledata" width="5%">Yes</td><td>
                    	<input type="radio" name="lamination_film" value="Yes" <?php if($rowcheckdata['lamination_size']=='Yes'){ ?> checked="checked" <?php }?>/></td>
                    	<td class="tabledata" width="10%">No</td>
                    	<td>
                   <input type="radio" name="lamination_film" value="No" <?php if($rowcheckdata['lamination_size']=='No'){ ?> checked="checked" <?php }?>/></td></tr>	
                               	
                    </table></td>
     </tr>
     <tr>
        <td class="tabledata">Fevicol used as per job card</td>
        <td><table width="100%" border="0">
                    <tr><td>&nbsp;</td><td class="tabledata" width="5%">Yes</td>
                    	<td>
                  <input type="radio" name="fevicol_used" value="Yes" <?php if($rowcheckdata['fevicol_used']=='Yes'){ ?> checked="checked" <?php }?>/></td>
                    	<td class="tabledata" width="10%">No</td>
                    	<td>
                <input type="radio" name="fevicol_used" value="No" <?php if($rowcheckdata['fevicol_used']=='No'){ ?> checked="checked" <?php }?> /></td></tr>	
                               	
                    </table></td>
      </tr>
       <tr>
        <td class="tabledata">Film quality/micron</td>
        <td><table width="100%" border="0">
                    <tr><td>&nbsp;</td><td class="tabledata" width="5%">Yes</td>
                    	<td>
            <input type="radio" name="film_quality" value="Yes" <?php if($rowcheckdata['film_quality']=='Yes'){ ?>checked="checked" <?php }?> /></td>
                    	<td class="tabledata" width="10%">No</td><td>
          <input type="radio" name="film_quality" value="No" <?php if($rowcheckdata['film_quality']=='No'){ ?>checked="checked" <?php }?>/></td></tr>	
                               	
                    </table></td>
      </tr>
      <tr>
        <td class="tabledata">If window lamination to be done in the job(should be free from fevicol on window area)</td>
        <td><table width="100%" border="0">
                    <tr><td>&nbsp;</td><td class="tabledata" width="5%">Yes</td><td>
            <input type="radio" name="window_lam" value="Yes" <?php if($rowcheckdata['window_lamination']=='Yes'){ ?>checked="checked" <?php }?>/></td>
                    	<td class="tabledata" width="10%">No</td><td>
             <input type="radio" name="window_lam" value="No"  <?php if($rowcheckdata['window_lamination']=='No'){ ?>checked="checked" <?php }?>/></td></tr>	
                               	
                    </table></td>
      </tr>
                    
                 </table></td></tr>
                                 
                <tr><td>&nbsp;</td></tr>
                <tr><td> <h3>Check Point Details</h3>
                  <?php
                 $row1=DB_query("select * from tbl_inprocess_audit_lamination_details where parent_id='".$_REQUEST['Id']."'",$db);
				 $rowcheck=DB_fetch_array($row1);
                 
                 ?>
		 <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%" align="center" valign="top"><center>Observations</center></td>          
          <td class="tabledata"   width="65%"><center>Remarks</center></td>
          <td  valign="top"></td>
          </tr>  
           <tr>
          	<td>Fevicol apply properly</stong></td><td>
          	<table border="0">
          	<tr><td><input type="text"  name="fevicol_apply_date"  value="<?php echo $rowcheck['fevicol_apply_date']; ?>" /></td>
          	<td><input type="text"  name="fevicol_apply_time" value="<?php echo $rowcheck['fevicol_apply_time']; ?>"  /></td>
          	<td><select name="fevicol_apply_matter" id="start_AMPM_matter" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['fevicol_apply_matter']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['fevicol_apply_matter']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="matter_remarks"><?php echo $rowcheck['fevicol_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td> Air Bubble</td><td>
          	<table border="0">
          	<tr><td><input type="text" name="air_bubble_date" value="<?php echo $rowcheck['air_bubble_date']; ?>" /></td>
          		<td><input type="text"  name="air_bubble_time" value="<?php echo $rowcheck['air_bubble_time']; ?>"/></td>
          	<td><select name="start_AMPM_bubble" id="start_AMPM_bubble" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_bubble']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_bubble']=='PM'?'selected':'')?>>PM</option>
	 </select></td>	
          		
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="bubble_remarks"><?php echo $rowcheck['bubble_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Wrinkless</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text"  name="wrinkless_date" value="<?php echo $rowcheck['wrinkless_date']; ?>" /></td>
          		<td><input type="text" name="wrinkless_time" value="<?php echo $rowcheck['wrinkless_time']; ?>"  /></td>
          		<td><select name="start_AMPM_wrinkless" id="start_AMPM_wrinkless" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_wrinkless']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_wrinkless']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          		
          	</td><td><textarea style="width:100%;height:25px;" name="wrinkless_remarks"><?php echo $rowcheck['wrinkless_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Cross Lamination</td><td>
          	<table border="0">
          	<tr><td><input type="text"   name="cross_lamination_date" value="<?php echo $rowcheck['cross_lamination_date']; ?>"/></td>
          		<td><input type="text"  name="cross_lamination_time" value="<?php echo $rowcheck['cross_lamination_time']; ?>" /></td>
          		<td><select name="start_AMPM_cross" id="start_AMPM_cross" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_cross']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_cross']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>	
          	</td><td><textarea style="width:100%;height:25px;" name="cross_lamination_remarks"><?php echo $rowcheck['cross_lamination_remarks']; ?></textarea></td>
          </tr>     
          <tr>
          	<td>Short Lamination</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text"  name="short_lamination_date" value="<?php echo $rowcheck['short_lamination_date']; ?>"/></td>
          		<td><input type="text"  name="short_lamination_time" value="<?php echo $rowcheck['short_lamination_time']; ?>" /></td>
          		<td><select name="start_AMPM_short" id="start_AMPM_short" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_short']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_short']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="short_lamination_remarks"><?php echo $rowcheck['short_lamination_remarks']; ?></textarea></td>
          </tr>     
           <tr>
          	<td>Rewinding should be proper</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text"  name="rewinding_date" value="<?php echo $rowcheck['rewinding_date']; ?>"/></td>
          		<td><input type="text"  name="rewinding_time" value="<?php echo $rowcheck['rewinding_time']; ?>" /></td>
          		<td><select name="start_AMPM_rewinding" id="start_AMPM_rewinding" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_rewinding']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_rewinding']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="rewinding_remarks"><?php echo $rowcheck['rewinding_remarks'];?> </textarea></td>
          </tr>  
          <tr>
          	<td>Dyne should be value 42+</td><td>
          	<table border="0">
          		
          	<tr><td><input type="text"  name="dyne_date" value="<?php echo $rowcheck['dyne_date']; ?>" /></td>
          		<td><input type="text"  name="dyne_time" value="<?php echo $rowcheck['dyne_time']; ?>" /></td>
          		<td><select name="start_AMPM_dyne" id="start_AMPM_dyne" style="width:40px">
	 <option value="AM"<?php echo ($rowcheck['start_AMPM_dyne']=='AM'?'selected':'')?>>AM</option>
	 <option value="PM"<?php echo ($rowcheck['start_AMPM_dyne']=='PM'?'selected':'')?>>PM</option>
	 </select></td>
          	</tr>	
          	</table>
          	</td><td><textarea style="width:100%;height:25px;" name="dyne_remarks"><?php echo $rowcheck['dyne_remarks']; ?></textarea></td>
          </tr>  
                </table></td></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 $rowcheckdata['remarks']; ?></textarea>
                    	</td>
                   
                </tr> </table></td></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;">Created By</td>
                    <td><input type="text" name="created" style="width:100%" value="<?php echo $rowcheckdata['created_by']; ?>">
                    	</td>
				     <td class="tabledata">Approved By QA Head</td><td><select name="approved"  style="width:100%">
					<option value="0">Select</option>
				<option value="Yes"<?php if($rowcheckdata['approved_by']=='Yes') { ?> selected="selected" <?php } ?>>Yes</option>
	<option value="No" <?php if($rowcheckdata['approved_by']=='No') { ?> selected="selected" <?php } ?>>No</option>
	<option value="Pending" <?php if($rowcheckdata['approved_by']=='Pending') { ?> selected="selected" <?php } ?>>Pending</option>
					</select></td></tr>

				     </table></td></tr></table>

</div></div>
						
