<!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;
  }
}

 </style>

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

                        <div class="card mt-3">
                            
                            <div class="card-header"><img src="<?php echo base_url();?>assets/logo.png" style="width:105px;"/><br/>
                                <span class="float-right">
                                    <strong>P.O #:</strong> <?php //if(!empty($get_dcs)) { echo $get_dcs[0]['so_no']; }?><br/>
                                   
                                      <strong>Date: </strong><?php //if(!empty($get_dcs)) {echo date("d-m-Y", strtotime($get_dcs[0]['so_date']) ); } ?></span>
                                </div>
                            <div class="card-body">
                                
                                <div class="table-responsive">
                                    <table class="table table-striped">
                                        <thead>
                                            <tr>
                                                <th class="center">Code</th>
                                                <th>Description</th>
                                                <th class="right">Quantity</th>
                                                <th class="right">Rate</th>
                                                <th class="center">Delivery Date</th>
                                                <th class="right">Amount</th>
                                                
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php 
                                            $sum =0;
                                            if(!empty($get_dcs)) {?>
                                                <?php foreach ($get_dcs as  $value) { ?>
                                                  

                                                <tr>
                                               <!--  <td class="center"><?php echo product_code($value['product_id']); ?></td>
                                                <td class="left strong"><?php echo product_name($value['product_id']); ?></td>
                                                <td class="left"><?php echo $value['quantity']; ?></td>
                                                <td class="left"><?php echo fg_rates($value['ref_code']); ?></td>
                                                <td class="right"><?php echo date("d-m-Y", strtotime($value['delv_date']));?></td>
                                                <td class="right"><?php echo  $value['amount'];?>
                                                    
                                                    <?php //echo $total; ?>
                                                    <?php //$sum+= $total; ?>
                                                </td> -->
                                            </tr>


                                           <?php } } ?>
                                            
                                        </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>Total</strong></td>
                                                    <td class="right"><strong><?php echo  $get_invoice_data[0]['amount'];?></strong></td> -->
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                                
                            </div>
                        
                    </div>
                </div>
                <div class="row">
                                    <div class="col-lg-12 text-right">
                                        <!-- <button class="btn btn-primary button"  onclick="proceed(<?php echo $get_invoice_data[0]['id']; ?>)"> Proceed </button> -->
                                       
                                         <input style="padding:5px;" value="Print Document" type="button" onclick="myFunction()" class="button"></input>
          
                                    </div>
                                </div>
           
       <?php  $this->load->view('footer'); ?>
        
</body>
<script type="text/javascript">
    function myFunction()
        {
             var mywindow = window.open('', 'PRINT', 'height=400,width=600');
            window.print();
        }

        function proceed(id)
        {
            var ids = id;
             
              $.ajax({
                type:'POST',
               
                url:'<?php echo base_url('Purchase_order/email_to_vendor/'); ?>'+ids,
                data:ids,
                dataType:'json',
                success:function(data){
                   
                    alert('ok');
                },
                error:function(data){console.log(data.responseText);}
            });
        }


     </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> 