fadlyshafa

Untitled

May 6th, 2020
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.99 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. $p = array('1','31','32');
  4. if(!(in_array($this->session->userdata('type'),$p))){
  5.   redirect('auth/dashboard');
  6. }
  7. $this->load->view('layout/header');
  8. ?>
  9. <div class="content-wrapper">
  10.   <!-- Content Header (Page header) -->
  11.     <section class="content-header">
  12.       <h5>
  13.          <ol class="breadcrumb">
  14.           <li><a href="<?php echo base_url('auth/dashboard'); ?>"><i class="fa fa-dashboard"></i> <?php echo $this->lang->line('header_dashboard'); ?></a></li>
  15.           <li class="active">Aged Payable</li>
  16.         </ol>
  17.       </h5>
  18.     </section>
  19.     <!-- Main content -->
  20.     <section class="content">
  21.       <div class="row">
  22.       <!-- right column -->
  23.       <div class="col-md-12">
  24.         <div class="box box-info">
  25.           <p>
  26.             <!-- <form class="form-inline" method="post" action="<?php echo base_url('Jurnal_report/sales_customer_filter') ?>">
  27.              <div class="form-group">
  28.                <label for="email">Tanggal Awal:</label>
  29.                <input type="text" autocomplete="off" name="awal" class="form-control datepicker" id="email" value="<?php echo $awal; ?>">
  30.              </div>
  31.              <div class="form-group">
  32.                <label for="pwd">Tanggal Akhir:</label>
  33.                <input type="text" autocomplete="off" name="akhir" class="form-control datepicker" id="pwd" value="<?php echo $akhir; ?>">
  34.              </div>
  35.              <button type="submit" class="btn btn-default">Submit</button>
  36.            </form>  -->
  37.           </p>
  38.             <div class="box-header with-border">
  39.               <h3 class="box-title">Aged Payable</h3>
  40.               <a class="pull-right tip btn btn-info" href="<?php echo $url_pdf;?>" title="Download as PDF" target="_blank">
  41.                 <i class="fa fa-download"></i>
  42.                 <span class="hidden-sm hidden-xs"><?php echo $this->lang->line('product_alert_pdf'); ?></span>
  43.               </a>
  44.             </div></form>
  45.             <!-- /.box-header -->
  46.             <div class="box-body outer-scroll">
  47.  
  48.             <div class="inner-scroll">
  49.               <table class="table">
  50.                 <thead>
  51.                   <tr>
  52.                     <th>Vendors</th>
  53.                     <th>Total</th>
  54.                     <th>Due Date</th>
  55.                   </tr>
  56.                 </thead>
  57.                 <tbody>
  58.                   <?php
  59.                    foreach ($data as $dt) {
  60.                  ?>
  61.                   <tr>
  62.                     <td><?php echo $dt->supplier_name; ?></td>
  63.                     <td>
  64.                       <?php echo number_format($dt->total,0); ?>
  65.                     </td>
  66.                     <td>
  67.                       <?php echo $dt->due_date; ?>
  68.                     </td>
  69.                   </tr>
  70.                   <?php
  71.                    }
  72.                  ?>
  73.                 </tbody>
  74.               </table>
  75.             </div>
  76.           </div>
  77.             <!-- /.box-body -->
  78.           </div>
  79.           <!-- /.box -->
  80.         </div>
  81.         <!--/.col (right) -->
  82.       </div>
  83.       <!-- /.row -->
  84.     </section>
  85.     <!-- /.content -->
  86.   </div>
  87.   <!-- /.content-wrapper -->
  88. <?php
  89.  $this->load->view('layout/footer');
  90. ?>
  91. <script type="text/javascript">
  92.   $(document).ready(function(){
  93.     $('#pdf').click(function(){
  94.       $('form').attr('target','_blank');
  95.     });
  96.     $('#csv').click(function(){
  97.       $('form').attr('target','_blank');
  98.     });
  99.     $('#print').click(function(){
  100.       $('form').attr('target','_blank');
  101.     });
  102.     $('#submit').click(function(){
  103.       $('form').attr('target','');
  104.     });
  105.   });
  106.   $("#hide1").click(function(){
  107.     $(".hide1").toggle();
  108.   });
  109. </script>
  110. <script type="text/javascript">
  111. $(document).ready(function() {
  112.   $('.datepicker').datepicker({
  113.       autoclose: true,
  114.       format: "yyyy-mm-dd",
  115.       todayHighlight: true,
  116.       orientation: "auto",
  117.       todayBtn: true,
  118.       todayHighlight: true,  
  119.   });
  120. });
  121. </script>
Add Comment
Please, Sign In to add comment