whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
webapp
/
office_user
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/webapp/office_user/view_form.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> */ ?> <?php if($frm[0]['approve_status'] == 'panding'){ if($frm[0]['release_status'] == 'released'){ ?> <a data-toggle="modal" data-target="#reject" href="#" class="btn btn-danger"><i class="fa fa-times" aria-hidden="true"></i> Reject</a> <?php } } ?> </div> <?php } ?> <br> <br> <?php if($frm[0]['stage'] == 'sales'){ $left = 'Credit'; $right = 'Debit'; }else{ $left = 'Debit'; $right = 'Credit'; } if($frm[0]['note_two'] == 'form_two'){ $tot_credit = $frm[0]['amt_taxable']+$frm[0]['s_aot']+$frm[0]['c_aot']+$frm[0]['u_aot']+$frm[0]['i_aot']; echo "<strong class='text-danger' style='font-size:18px;'>Total ".$left." Amount is ".$tot_credit.'</strong>'; echo " <strong class='text-info' style='font-size:18px;'>AND</strong> "; echo "<strong class='text-success' style='font-size:18px;'>Total ".$right." Amount is ".$frm[0]['amt_gross'].'</strong>'; }else{ $new_tot_expns = 0; $amt_tax = 0; foreach ($frm as $tot) { $expns = $tot['expenses']; $amt_taxable = $tot['amt_taxable']; $tot_expns = 0; foreach ($expns as $tt => $t) { $newtt = $t['ex_amount']; $tot_expns+=$newtt; } $new_tot_expns+=$tot_expns; $amt_tax+=$amt_taxable; } $new_tot_expns; $amt_tax; $tot_tax = $tsgst+$tcgst+$tugst+$tigst; $totcredit = $new_tot_expns+$tot_tax+$amt_tax; echo "<strong class='text-danger' style='font-size:18px;'>Total ".$left." Amount is ".$totcredit.'</strong>'; ?> <strong class='text-info' style='font-size:18px;'>AND</strong> <?php echo "<strong class='text-success' style='font-size:18px;'>Total ".$right." Amount is ".$frm[0]['amt_gross'].'</strong>'; ?> <?php } ?> <br> <br> <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>Ref No</th> <th>Ledger Name</th> <th>Effect</th> <th>Amount Gross</th> </tr> <tr> <td><?php echo $frm[0]['m_date'];?></td> <td><?php echo $frm[0]['voucher_no'];?></td> <td><?php echo $frm[0]['ref_no'];?></td> <td><?php echo $frm[0]['party_ledger'];?></td> <td><?php echo $frm[0]['m_effect'];?></td> <td><?php echo $frm[0]['amt_gross'];?></td> </tr> </table> </div><!-- /.box --> </div><!--col--> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="box box-primary"> <table class="table"> <tr> <th>Ledger Name</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['sub_ledger']; ?></td> <?php } ?> </tr> <tr> <th>Amount Taxable</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['amt_taxable']; ?></td> <?php } ?> </tr> <tr> <th>SGST</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['sgst']; ?></td> <?php } ?> </tr> <tr> <th>Amount of Tax</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['s_aot']; ?></td> <?php } ?> </tr> <tr> <th>CGST</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['cgst']; ?></td> <?php } ?> </tr> <tr> <th>Amount of Tax</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['c_aot']; ?></td> <?php } ?> </tr> <tr> <th>UGST</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['ugst']; ?></td> <?php } ?> </tr> <tr> <th>Amount of Tax</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['u_aot']; ?></td> <?php } ?> </tr> <tr> <th>IGST</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['igst']; ?></td> <?php } ?> </tr> <tr> <th>Amount of Tax</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['i_aot']; ?></td> <?php } ?> </tr> <?php if($f['note_two'] != 'form_two'){ ?> <tr> <th>Discount</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['discount_two']; ?></td> <?php } ?> </tr> <tr> <th>Item Name</th> <?php foreach ($frm as $f) { ?> <td> <?php $where = array('id' => $f['item_name']); $items = $CI->model->DetailData('tbl_item', $where); echo $items[0]['item_name']; ?> </td> <?php } ?> </tr> <tr> <th>Quantity</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['qty']; ?></td> <?php } ?> </tr> <tr> <th>Rate</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['rate']; ?></td> <?php } ?> </tr> <tr> <th>Lot No</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['lot_no']; ?></td> <?php } ?> </tr> <tr> <th>Batch/Lot No. Mfg Date</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['lot_mfg_date']; ?></td> <?php } ?> </tr> <tr> <th>Bat/Lot No. Expiry date</th> <?php foreach ($frm as $f) { ?> <td><?php echo $f['lot_exp_date']; ?></td> <?php } ?> </tr> <?php } ?> </table> </div><!-- /.box --> </div> <?php /* <div class="col-xs-12 col-sm-12 col-md-12"> <div class="box box-primary"> <table class="table"> <tr> <th>s_ledger_name</th> <th>s_effect</th> <th>discount_one</th> <th>amt_taxable</th> <th>sgst</th> <th>s_aot</th> <th>cgst</th> <th>c_aot</th> <th>ugst</th> <th>u_aot</th> <th>igst</th> <th>i_aot</th> <th>cess_code</th> <th>hsn_code</th> <th>discount_two</th> <th>item_name</th> <th>qty</th> <th>rate</th> <th>unit</th> <th>lot_no</th> <th>lot_mfg_date</th> <th>lot_exp_date</th> </tr> <?php foreach ($frm as $f) { ?> <tr> <td><?php echo $f['s_ledger_name']; ?></td> <td><?php echo $f['s_effect']; ?></td> <td><?php echo $f['discount_one']; ?></td> <td><?php echo $f['amt_taxable']; ?></td> <td><?php echo $f['sgst']; ?></td> <td><?php echo $f['s_aot']; ?></td> <td><?php echo $f['cgst']; ?></td> <td><?php echo $f['c_aot']; ?></td> <td><?php echo $f['ugst']; ?></td> <td><?php echo $f['u_aot']; ?></td> <td><?php echo $f['igst']; ?></td> <td><?php echo $f['i_aot']; ?></td> <td><?php echo $f['cess_code']; ?></td> <td><?php echo $f['hsn_code']; ?></td> <td><?php echo $f['discount_two']; ?></td> <td><?php echo $f['item_name']; ?></td> <td><?php echo $f['qty']; ?></td> <td><?php echo $f['rate']; ?></td> <td><?php echo $f['unit']; ?></td> <td><?php echo $f['lot_no']; ?></td> <td><?php echo $f['lot_mfg_date']; ?></td> <td><?php echo $f['lot_exp_date']; ?></td> </tr> <?php } ?> </table> </div><!-- /.box --> </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