?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/accounting/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/eldertree/application/views/accounting/view_fixed_journal.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="span12"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Fixed Auto Journal</div> <div class="actions"> <a href="#" onclick="addformdisplay('add_auto_journal','accounting')" class="btn green"><i class="icon-plus"></i> Add</a> </div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_4"> <tr> <th><input type="radio" checked="checked" name="receipt_voucher" class="chosen" value="1" onclick="viewdata('accounting','viewinaccountingsearch','search_auto_journal','view_fixed_journal','1')" checked="true"/></th><th><label>Fixed</label></th> <th><input type="radio" name="receipt_voucher" class="chosen" value="0" onclick="addformdisplay('view_reverse_journal','accounting')" /></th><th><label>Reverse</label></th> </tr> </table> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Title</th> <th>A/C Code</th> <th>A/C Name</th> <th>Debit</th> <th>Credit</th> <th class="action_th">Post</th> <th class="action_th">Edit</th> <th class="action_th">Delete</th> </tr> </thead> <tbody> <?php $table=""; $field=""; $i=0; foreach($viewinfo->result() as $row) { $journal=$this->mastermodel->get_data('finance_auto_journal',$row->auto_journal_id,'auto_journal_id','auto_journal_id'); $i++; // ?> <tr class="odd gradeX"> <td><?= $i; ?></td> <td><?=$row->auto_journal_title?></td> <?php $temp=0; if($temp!=$row->auto_journal_id) echo "<td>"; foreach ($journal as $value) { echo '<p class="fixed_p">'.$value['chart_account_code'].'</p>'; } if($temp!=$row->auto_journal_id) echo "</td>"; if($temp!=$row->auto_journal_id) echo "<td>"; foreach ($journal as $value) { echo '<p class="fixed_p">'.$this->mastermodel->get_single_field_value('finance_chart_master','chart_account_name','chart_account_code',$value['chart_account_code']).'</p>'; } if($temp!=$row->auto_journal_id) echo "</td>"; if($temp!=$row->auto_journal_id) echo "<td>"; foreach ($journal as $value) { $debit=$value['debit']; if($debit<=0) $debit=""; echo '<p class="fixed_p text_r">'.number_format((double)$debit,2).'</p>'; } if($temp!=$row->auto_journal_id) echo "</td>"; if($temp!=$row->auto_journal_id) echo "<td>"; foreach ($journal as $value) { $credit=$value['credit']; if($credit<=0) $credit=""; echo '<p class="fixed_p text_r">'.number_format((double)$credit,2).'</p>'; } if($temp!=$row->auto_journal_id) echo "</td>"; $temp=$row->auto_journal_id; ?> <td><a href="#" > <img src="<?= base_url() ?>assets/img/process.png" id="editclass" title="Post" width="20" height="20" alt="Post" align="center" onclick="editformdata('accounting','edit_auto_journal','<?=$row->auto_journal_id;?>','finance_auto_journal_refs','auto_journal_id','post_auto_journal')" style="cursor: pointer" class="clickimage1"></a> </td> <td><a class="edit" href="#" onclick="editformdata('accounting','edit_auto_journal','<?=$row->auto_journal_id;?>','finance_auto_journal_refs','auto_journal_id','edit_auto_journal')">Edit</a></td> <td> <a class="delete" href="#" onclick="deletedata('finance_auto_journal_refs',<?=$row->auto_journal_id;?>,'auto_journal_id','accounting','viewinaccountingsearch','search_auto_journal','view_fixed_journal','<?=$table?>','<?=$field?>')">Delete</a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); }); </script>