whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
webapp
/
customer
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/webapp/customer/file_all.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php'); $cur_year = date('Y'); $cur_month = strtolower(date('F')); ?> <?php $c_year = $str_arr['year']; $c_month = substr($str_arr['month'], strpos($str_arr['month'], "_") + 1); $incr_obj=$c_year+1; $incr_obj = substr($incr_obj, -2); $c_month.' '.$c_year.'-'.$incr_obj; ?> <style type="text/css"> .box-header.with-border { border-bottom: 1px solid #e3e3e3; } .upload{ display:none!important; } .label{ padding: 0.2em 0.3em 0.2em 0.3em; } .label-purchase{background-color: #d81b60 ;} .label-sales{background-color: #605ca8;} .label-payment{background-color: #001f3f;} .label-receipt{background-color: #ff851b;} .label-contra{background-color: #3d9970;} .label-journal{background-color: #3c8dbc;} .file-body ul li a{width: auto!important; margin-right: 10px;} .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{ background-color: #f2dede; } .nav-stacked>li.active>a, .nav-stacked>li.active>a:hover{ border-left-color: #f25858; } .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{ color: #f25858!important; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1 class="text-capitalize"> <?php echo str_replace('_',' ',$str_arr['stage']); ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="<?php echo site_url('webapp/customer')?>"> Documents</a></li> <li class="text-capitalize"> <?php echo $c_month.' '.$c_year.'-'.$incr_obj; ?></li> <li class="active"> View Files</li> </ol> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <div class="row"> <span class="pull-right"> <div class="col-sm-2"> <form method="POST" class="modal-month" action="<?php echo base_url(); ?>webapp/customer/listView"> <input type="hidden" name="code" value="<?php echo $str_arr['code']; ?>"> <input type="hidden" name="year" class="year" value="<?php echo $str_arr['year']; ?>"> <input type="hidden" name="month" value="<?php echo $c_month ?>"> <input type="submit" style="color:#fff;" class="btn bg-olive text-capitalize btn-flat" value="↶ Back"> </form> </div> </span> <div class="col-sm-2"> <input onkeyup="search_data(0);" id="search" type="search" class="form-control input-sm" placeholder="Search"> </div> <div class="col-sm-2"> <select class="form-control status input-sm" onchange="search_data(0);"> <option value="all">All</option> <option value="0">Pending</option> <option value="1">Received</option> <option value="2">Completed</option> <option value="3">Rejected</option> </select> </div> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <table id="" class="table table-bordered table-striped"> <thead> <tr> <th>File name</th> <th>Status</th> <th>Remarks</th> </tr> </thead> <tbody class="rec_table"> </tbody> </table> <div id="pagination" class="pagination justify-content-end text-right mt-1"></div> <div id="pagination1" class="pagination justify-content-end text-right mt-1"></div> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php function getMonth($month){ if($month == 'april'){return 'a_april';}elseif($month == 'may'){return 'b_may';}elseif($month == 'june'){return 'c_june';} elseif($month == 'july'){return 'd_july';}elseif($month == 'august'){return 'e_august';}elseif($month == 'september'){return 'f_september';}elseif($month == 'october'){return 'g_october';} elseif($month == 'november'){return 'h_november';}elseif($month == 'december'){return 'i_december';}elseif($month == 'january'){return 'j_january';}elseif($month == 'february'){return 'k_february';} elseif($month == 'march'){return 'l_march';} } require_once(APPPATH.'views/webapp/footer.php');?> <script> $(document).ready(function(){ $('#pagination').on('click','a',function(e){ e.preventDefault(); var pageno = $(this).attr('data-ci-pagination-page'); loadPagination(pageno); }); loadPagination(0); // Load pagination function loadPagination(pagno){ var year = "<?php echo $str_arr['year']; ?>"; var month = "<?php echo $str_arr['month']; ?>"; var stage = "<?php echo $str_arr['stage']; ?>"; $.ajax({ url: '<?php echo base_url();?>webapp/customer/loadRecord_file/'+pagno, type: 'get', method: "POST", data:{year:year, month:month, stage:stage}, dataType: 'json', success: function(response){ $('#pagination').html(response.pagination); $('.rec_table').html(response.result); } }); } $('#pagination1').on('click','a',function(e){ e.preventDefault(); var pageno = $(this).attr('data-ci-pagination-page'); search_data(pageno); }); }); function search_data(pagno){ $('#pagination').hide(); var year = "<?php echo $str_arr['year']; ?>"; var month = "<?php echo $str_arr['month']; ?>"; var stage = "<?php echo $str_arr['stage']; ?>"; var search = $('#search').val(); var status = $('.status').val(); $.ajax ({ dataType: 'json', type: "POST", cache: false, url:'<?php echo base_url(); ?>webapp/customer/search_file/'+pagno, data:{year:year, month:month, stage:stage, search:search, status:status}, success: function(response){ $('#pagination').html(response.pagination); $('.rec_table').html(response.result); } }); } </script>
Copyright ©2021 || Defacer Indonesia