whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
office_user
/
Upload File:
files >> //home/papecmvm/public_html/application/views/webapp/office_user/view_form_debit.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php'); $CI = & get_instance(); $CI->load->model('app'); $userdata = $this->session->userdata('reg_info'); ?> <style type="text/css"> .btn-sm{padding: 0px 4px;} .file-body ul li a { width: auto!important; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> View Form </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/office/form_grid')?>">Form</a></li> <li class="active">View Form</li> </ol> <?php if($this->session->flashdata('msg')){ echo "<br>"; echo $this->session->flashdata('msg'); } ?> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <!-- Reject --> <div class="modal fade" id="reject" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <?php echo form_open('webapp/leader/fromStatus'); ?> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Reject Note</h4> </div> <div class="modal-body"> <input type="hidden" name="fid" value="<?php echo $frm[0]['fid']; ?>"> <div class="form-group"> <textarea class="form-control" name="note[]" required=""></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <input type="submit" class="btn btn-primary" name="save" value="Save"> </div> <?php echo form_close(); ?> </div> </div> </div> <?php if($frm[0]['approve_status'] == 'approved'){ echo "<h3 class='text-success text-center'>This Form is Approved</h3>"; } ?> <?php if( ($userdata[0]['type'] == 'team_leader' || $userdata[0]['type'] == 'admin') && $frm[0]['approve_status'] == 'panding'){ ?> <div class="text-center"> <?php /* <a href="<?php echo base_url().'webapp/leader/fromStatus/approve/'.$frm[0]['fid']; ?>" class="btn btn-success"><i class="fa fa-check" aria-hidden="true"></i> Approve</a> */ ?> <a data-toggle="modal" data-target="#reject" href="#" class="btn btn-danger"><i class="fa fa-times" aria-hidden="true"></i> Reject</a> </div> <?php } ?> <br> <strong style="text-align:center; margin:0 auto; display: table; text-transform: capitalize;"><h3><?php echo $frm[0]['narration'];?></h3></strong> <div class="box box-primary"> <div class="box-header text-capitalize"> <?php $path = explode('|-|',$frm[0]['path']); $f = 1; foreach ($path as $pth => $p) { ?> <a data-toggle="tooltip" data-placement="top" title="Used files" class="label label-primary" target="_blank" href="<?php echo base_url().$p; ?>"><?php echo "File ".$f; ?></a> <?php $f++; } ?> <br> <strong><span class="text-success">Released By : <?php echo $frm[0]['name']; ?></span> <span class="text-danger"> Customer : <?php echo $frm[0]['cname'].' ('.$frm[0]['stage'].')'; ?></span></strong> </div> <table class="table"> <tr> <th>Date</th> <th>Voucher No</th> <th>Party Ledger Name</th> <th>Ledger Name (Dr.)</th> <th>Amount</th> <?php if($frm[0]['trans_type']!='cash'){ ?> <th>Cheque No</th> <th>Cheque Date</th> <?php } ?> </tr> <tr> <td><?php echo $frm[0]['m_date'];?></td> <td><?php echo $frm[0]['voucher_no'];?></td> <td><?php echo $frm[0]['party_ledger'];?></td> <td><?php echo $frm[0]['master_ledger'];?></td> <td><?php echo $frm[0]['amt_gross'];?></td> <?php if($frm[0]['trans_type']!='cash'){ ?> <td><?php echo $frm[0]['check_no'];?></td> <td><?php echo $frm[0]['check_date'];?></td> <?php } ?> </tr> </table> </div><!-- /.box --> <div class="row"> <div class="col-sm-5"> <div class="box box-primary"> <table class="table"> <tr> <th>Ledger Name (Cr.)</th> <th>Amount</th> </tr> <?php $info = $frm[0]['info']; foreach ($info as $i) { ?> <tr> <td><?php echo $i['sub_ledger'];?></td> <td><?php echo $i['amt_taxable'];?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <script type="text/javascript"> $(".contactForm_").submit(function (event) { event.preventDefault(); var form_data = $(".contactForm").serialize(); $.ajax({ url: 'http://localhost/paper/webapp/users/upload', type: 'POST', data: form_data, success: function (data) { $('.contactForm')[0].reset(); $('.successLabel').show(); }, error: function () { alert("Something went wrong!"); $('.errorLabel').show(); } }); }); </script>
Copyright ©2021 || Defacer Indonesia