whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
master
/
ledger
/
Upload File:
files >> /home/papecmvm/public_html/application/views/webapp/master/ledger/viewLedger.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> View Ledger </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">View Ledger</li> </ol> </section> <div class="modal fade import_ledger" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"> <div class="modal-dialog modal-sm" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Import Ledgers</h4> </div> <div class="modal-body"> <form method="POST" enctype="multipart/form-data" action="<?php echo base_url().'webapp/master/ledger/import_ledger' ?>"> <div class="container"> <div class="row"> <div class="col-sm-3"> <div class="form-group"> <label>Customer</label> <select class="form-control multiselect" name="rid" required=""> <option value="">--Select--</option> <?php foreach ($cust as $k => $v){ ?> <option value="<?php echo $v['rid']; ?>"> <?php echo $v['name']; ?> </option> <?php } ?> </select> </div> </div> </div> <div class="row"> <div class="col-sm-3"> <input class="ledger_file" type="file" name="ledger_file" accept=".csv, .xlsx" required=""> </div> </div> <button type="submit" class="btn btn-info text-center">Import</button> </div> </form> </div> </div> </div> </div> <!-- Main content --> <section class="content"> <?php $attributes = array('id' => 'formid'); echo form_open("",$attributes); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <div class="text-left"> </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>Ledger</th> <th>Group</th> <th>Sub Group</th> <th>Opening Balance</th> <th>GST</th> <th>PAN</th> </tr> </thead> <tbody> <?php foreach ($ledger as $gr) { $enc_id = $this->model->encryptdata($gr['lid']); ?> <tr> <td class="text-capitalize"> <a data-toggle="tooltip" title="click here to edit" data-placement="right" href="<?php echo base_url().'webapp/master/ledger/edit/'.$enc_id ?>"> <span class="text-primary"><strong><?php echo $gr['l_name']; ?></strong></span> </a> </td> <td><?php echo $gr['gname']; ?></td> <td><?php echo $gr['sg_name']; ?></td> <td><?php echo "<strong>".$gr['bal_type'].'</strong> '.$gr['open_balance']; ?></td> <td><?php echo $gr['gst']; ?></td> <td><?php echo $gr['pan']; ?></td> </tr> <?php } ?> </tbody> </table> <span class="page"> <?php echo $this->pagination->create_links(); ?> </span> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("postmanagement/deletepostselected",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script> <script type="text/javascript"> $('.ledger_file').change(function(e){ var file = $(this).val(); var ext = file.split('.').pop(); if(ext != 'csv' && ext != 'xlsx'){ $('.ledger_file').val(''); alert('Sorry, Permitted files for select are csv, xlsx'); } }); </script>
Copyright ©2021 || Defacer Indonesia