<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
<head>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Rizwan </title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo base_url();?>assets/images/favicon.png">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css">
    <!-- Pick date -->
   <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.date.css">
     <link href="<?php echo base_url();?>assets/vendor/datatables/css/jquery.dataTables.min.css" rel="stylesheet">
    <!-- Custom Stylesheet -->
     

</head>

<body>

 <style type="text/css">
     @media print
{
  .button
  {
    display: none;
  }
  body { 
    -webkit-print-color-adjust: exact; 
  }
  .customClass{
     //customCss + !important;
  }
}

 </style>
 
<?php if($quality_checked_print[0]['qc_status']==1){ ?>
<div class="row">
        <div class="col-lg-7">

            <div class="card mt-3">
                
                <div class="card-header" style="background-color: #71a72b;">
                  <img src="<?php echo base_url();?>assets/logo.png" style="width:105px;"/><br/>

                    <span class="float-right">
                        <h2 style="color:#fff;">QUALITY CHECKED</h2> 
                       
                         
                    </div>
                <div class="card-body">
                    <div class="row mb-3">
                        <div class="mt-4 col-xl-6 col-lg-6 col-md-6 col-sm-12">
                            <h6 >MANUFACTURE OF PLASTIC PRODUCTS</h6>
                            </div>
                        
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="center">Supplier</th>
                                    <th>Date</th>
                                    <th class="right">Challan #</th>
                                    <th class="center">Item</th>
                                    <th class="right">P.O #</th>
                                    <th class="right">QTY</th>
                                    <th class="right">Weight</th>
                                  <!--   <th class="right">GRN #</th> -->
                                </tr>
                            </thead>
                            <tbody style="font-size: 11px;">
                                <tr>
                                    <td><?php echo vendor($quality_checked_print[0]['vendor_id']); ?></td>
                                    <td><?php $date = $quality_checked_print[0]['created'];
                                     echo date("d-m-Y", strtotime($date)); ?></td>
                                    <td><?php echo $quality_checked_print[0]['dc_no']; ?></td>
                                    <?php if($quality_checked_print[0]['product_id'] ==0){ ?>
                                    <td><?php echo material_name($quality_checked_print[0]['material_id']); ?></td>
                                <?php }else if($quality_checked_print[0]['material_id']==0){ ?>
                                    <td><?php echo product_name($quality_checked_print[0]['product_id']); ?></td>
                                <?php } ?>
                                    <td><?php echo po_number($quality_checked_print[0]['po_id']); ?></td>
                                    <td><?php echo $quality_checked_print[0]['qty']; ?></td>
                                    <?php if($quality_checked_print !=0){ ?>
                                    <td><?php echo dc_weight($quality_checked_print[0]['po_id']); ?></td>  
                                <?php }else{ ?>
                                      <td><?php echo dc_weight_pro($quality_checked_print[0]['po_id']); ?></td>  
                                  
                                <?php } ?>
                                   <!--  <td><?php //echo $quality_checked_print[0]['grn_no']; ?></td> -->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="row">
                      
                        <div class="col-lg-4 col-sm-5 ml-auto">
                            <table class="table table-clear">
                                <tbody>
                                    
                                    <tr>
                                        <td class="left"><strong>Recived By: </strong> <?php echo $this->session->userdata('name');?> </td>
                                       <!--  <td class="right"><strong>Rev No:</strong></td>
                                     -->
                                 </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                    <input style="padding:5px;" value="Print Document" type="button" onclick="myFunction()" class="button"></input>
                </div>
            
        </div>
    </div>
        
        <?php }else if($quality_checked_print[0]['qc_status']==3){?>

            <div class="row">
        <div class="col-lg-7">

            <div class="card mt-3">
                
                <div class="card-header" style="background-color: #C01712;">
                  <img src="<?php echo base_url();?>assets/logo.png" style="width:105px;"/><br/>

                    <span class="float-right">
                        <h2 style="color:#fff;">REJECTED</h2> 
                       
                         
                    </div>
                <div class="card-body">
                    <div class="row mb-3">
                        <div class="mt-4 col-xl-6 col-lg-6 col-md-6 col-sm-12">
                            <h6 >MANUFACTURE OF PLASTIC PRODUCTS</h6>
                            </div>
                        
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="center">Supplier</th>
                                    <th>Date</th>
                                    <th class="right">Challan #</th>
                                    <th class="center">Item</th>
                                    <th class="right">P.O #</th>
                                    <th class="right">QTY</th>
                                    <th class="right">Weight</th>
                                   <!--  <th class="right">GRN #</th> -->
                                </tr>
                            </thead>
                            <tbody style="font-size: 11px;">
                                <tr>
                                    <td><?php echo vendor($quality_checked_print[0]['vendor_id']); ?></td>
                                    <td><?php $date = $quality_checked_print[0]['created'];
                                     echo date("d-m-Y", strtotime($date)); ?></td>
                                    <td><?php echo $quality_checked_print[0]['dc_no']; ?></td>
                                    <?php if($quality_checked_print[0]['material_id'] !=0){ ?>
                                    <td><?php echo material_name($quality_checked_print[0]['material_id']); ?></td>
                                <?php }else{ ?>
                                    <td><?php echo product_name($quality_checked_print[0]['product_id']); ?></td>
                                <?php } ?>
                                    <td><?php echo po_number($quality_checked_print[0]['po_id']); ?></td>
                                    <td><?php echo $quality_checked_print[0]['qty']; ?></td>
                                    <?php if($quality_checked_print !=0){ ?>
                                    <td><?php echo dc_weight($quality_checked_print[0]['po_id']); ?></td>  
                                <?php }else{ ?>
                                      <td><?php echo dc_weight_pro($quality_checked_print[0]['po_id']); ?></td>  
                                  
                                <?php } ?>
                                   <!--  <td><?php //echo $quality_checked_print[0]['grn_no']; ?></td> -->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="row">
                      
                        <div class="col-lg-4 col-sm-5 ml-auto">
                            <table class="table table-clear">
                                <tbody>
                                    
                                    <tr>
                                        <td class="left"><strong>Recived By: </strong> <?php echo $this->session->userdata('name');?> </td>
                                       <!--  <td class="right"><strong>Rev No:</strong></td>
                                     -->
                                 </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                    <input style="padding:5px;" value="Print Document" type="button" onclick="myFunction()" class="button"></input>
                </div>
            
        </div>
    </div>

    <?php

        } ?>    
           
       <?php  $this->load->view('footer'); ?>
        
</body>
<script type="text/javascript">
    function myFunction()
        {
             var mywindow = window.open('', 'PRINT', 'height=400,width=600');
            window.print();
        }
     </script>
<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
</html> 