Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- $p = array('1','31','32');
- if(!(in_array($this->session->userdata('type'),$p))){
- redirect('auth/dashboard');
- }
- $this->load->view('layout/header');
- ?>
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h5>
- <ol class="breadcrumb">
- <li><a href="<?php echo base_url('auth/dashboard'); ?>"><i class="fa fa-dashboard"></i> <?php echo $this->lang->line('header_dashboard'); ?></a></li>
- <li class="active">Aged Payable</li>
- </ol>
- </h5>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <!-- right column -->
- <div class="col-md-12">
- <div class="box box-info">
- <p>
- <!-- <form class="form-inline" method="post" action="<?php echo base_url('Jurnal_report/sales_customer_filter') ?>">
- <div class="form-group">
- <label for="email">Tanggal Awal:</label>
- <input type="text" autocomplete="off" name="awal" class="form-control datepicker" id="email" value="<?php echo $awal; ?>">
- </div>
- <div class="form-group">
- <label for="pwd">Tanggal Akhir:</label>
- <input type="text" autocomplete="off" name="akhir" class="form-control datepicker" id="pwd" value="<?php echo $akhir; ?>">
- </div>
- <button type="submit" class="btn btn-default">Submit</button>
- </form> -->
- </p>
- <div class="box-header with-border">
- <h3 class="box-title">Aged Payable</h3>
- <a class="pull-right tip btn btn-info" href="<?php echo $url_pdf;?>" title="Download as PDF" target="_blank">
- <i class="fa fa-download"></i>
- <span class="hidden-sm hidden-xs"><?php echo $this->lang->line('product_alert_pdf'); ?></span>
- </a>
- </div></form>
- <!-- /.box-header -->
- <div class="box-body outer-scroll">
- <div class="inner-scroll">
- <table class="table">
- <thead>
- <tr>
- <th>Vendors</th>
- <th>Total</th>
- <th>Due Date</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($data as $dt) {
- ?>
- <tr>
- <td><?php echo $dt->supplier_name; ?></td>
- <td>
- <?php echo number_format($dt->total,0); ?>
- </td>
- <td>
- <?php echo $dt->due_date; ?>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <!--/.col (right) -->
- </div>
- <!-- /.row -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- <?php
- $this->load->view('layout/footer');
- ?>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#pdf').click(function(){
- $('form').attr('target','_blank');
- });
- $('#csv').click(function(){
- $('form').attr('target','_blank');
- });
- $('#print').click(function(){
- $('form').attr('target','_blank');
- });
- $('#submit').click(function(){
- $('form').attr('target','');
- });
- });
- $("#hide1").click(function(){
- $(".hide1").toggle();
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.datepicker').datepicker({
- autoclose: true,
- format: "yyyy-mm-dd",
- todayHighlight: true,
- orientation: "auto",
- todayBtn: true,
- todayHighlight: true,
- });
- });
- </script>
Add Comment
Please, Sign In to add comment