<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <link rel="stylesheet" href="style.css">
        <title>Rizwan</title>

 <style type="text/css">
     * {
    font-size: 18px;
    font-family: 'Times New Roman';
}

li {
    
   
}



.centered {
    text-align: center;
    align-content: center;
}


img {
    max-width: inherit;
    width: inherit;
}

@media print {
    .hidden-print,
    .hidden-print * {
        display: none !important;
    }
}

 </style>
</head>
    <body>
<div class="ticket">
                <img src="<?php echo base_url();?>assets/logo.png" style="width:105px;"/>
                            <?php $type = $this->uri->segment('4'); 
                            if($type == '1'){ ?>
                                <h1 style="margin-left: 78px;"><u>Packing</u></h1>
                            <?php }else{  ?>
                                <h1 style="margin-left: 78px;"><u>Semi Finish</u></h1>
                                <?php } ?>
                            
                                   <ul style="list-style: none;">
                                     <li class="description"><b>Date</b> : <?php echo $semi_print[0]['created']; ?></li><br/>
                                     <li class="description"><b>Incharge</b> :<?php echo $semi_print[0]['emp_id']; ?></li><br/>
                                     <li class="description"><b>Item </b>: <?php echo $product = product_name($semi_print[0]['product_id']); ?></li><br/>
                                     <li class="description"><b>Machine </b>: <?php 
                                     $mahine = mahine_for_print($semi_print[0]['so_id'],$semi_print[0]['product_id']);
                                     echo machine_name($mahine); ?></li><br/>
                                     <li class="description"><b>Weight</b> : <?php $jobs = product_match_job11($product,$semi_print[0]['so_id']);

                                      echo  get_standard_weight($jobs);
                                      ?>KG</li><br/>
                                     <li class="description"><b>Qty</b> : <?php echo  get_standard_qty($jobs); ?>PC</li><br/>

                                     <li class="description"><b>Shift</b> : <?php if($semi_print[0]['shift']==1){
                                        echo "Morning";

                                     }else if($semi_print[0]['shift']==2){ ?>

                                        <?php echo "Night"; ?>
                                     <?php } ?>
                                     </li><br/>


                                      <li class="description"><b>Job</b> : <?php $job = product_match_job11($product,$semi_print[0]['so_id']); 
                                        echo $job;
                                      ?></li>
                                   </ul>

                                    <!-- <table border="0">
                                        <thead>
                                            <tr>
                                                <th style="text-align: center;">Date</th>
                                                <th style="text-align: center;">Incharge</th>
                                                <th style="text-align: center;">Item</th>
                                                <th style="text-align: center;">Machine</th>
                                                <th style="text-align: center;">Weight</th>
                                                <th style="text-align: center;">Qty</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td style="text-align: center;"><?php echo $semi_print[0]['insert_date']; ?></td>

                                                <td  style="text-align: center;">______________</td>
                                                <td  style="text-align: center;"><?php echo product_name($semi_print[0]['product_id']); ?></td>
                                                
                                                <td  style="text-align: center;"><?php  $mahine = mahine_for_print($semi_print[0]['so_id'],$semi_print[0]['product_id']);
                                                  echo machine_name($mahine);
                                                 ?></td>

                                                <td  style="text-align: center;">______________</td>


                                                <td  style="text-align: center;"><?php echo $semi_print[0]['qty']; ?></td>
                                            </tr>
                                        </tbody>
                                    </table> -->



                                </div>
                                
                                   
                                <button id="btnPrint" class="hidden-print">Print</button>
        <script src="script.js"></script>
                           
                  
      
</body>
<script type="text/javascript">
    const $btnPrint = document.querySelector("#btnPrint");
$btnPrint.addEventListener("click", () => {
    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> 