?
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/searchtransactionpage.php |
<div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Transactions </div> </div> <div class="portlet-body"> <table class="table"> <tr> <th width="10%">Sl No.</th> <th>Transaction No</th> <th width="15%">Type</th> <th width="10%">Date</th> <th>Description</th> <th width="10%">View</th> <th width="10%">Reverse</th> </tr> <div style="margin-top: 25px;position: absolute;background-color: white" journal_id="viewmsg2"></div> <?php $i = 0; foreach ($journal as $bank_trans) { $single_view=""; if($bank_trans['transaction_id']==1) $single_view = 'single_payment_voucher'; else if($bank_trans['transaction_id']==2) $single_view = 'single_receipt_voucher'; else if($bank_trans['transaction_id']==3) $single_view = 'single_journal_voucher'; if($bank_trans['transaction_id']==4) $single_view = 'single_bank_journal'; $i = $i + 1; $rid = $bank_trans['journal_id']; $tid = $bank_trans['reference']; $type = $bank_trans['transaction_name']; $des = $bank_trans['description']; $tran_date = $this->mastermodel->convertdatenormalformat($bank_trans['journal_date']); echo "<tr> <td>" . $i . "</td> <td style='text-align:center;'>" . $bank_trans['reference'] . "</td> <td>" . $type . "</td> <td>" . $tran_date . "</td> <td>" . $des . "</td> <td style='text-align:center;'>"; ?> <a class="search_details" data-journal_id="<?= $bank_trans['journal_id'] ?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/view-icon.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> <?php echo "</td><td>"; ?> <a class="reverse_details" data-journal_id="<?= $bank_trans['journal_id'] ?>" data-posted="<?=$bank_trans['posted']?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/reve.jpg" journal_id="anchor" title="Reverse" width="20" height="20" alt="rev" align = "center" /> </a> <?php echo "</td></tr>"; } ?> </table> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); $.ajax({ url : "<?= site_url('accounting/viewsingle_page/') ?>/" + journal_id +"/search_auto_journal/view_fixed_journal", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); $('.reverse_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal container hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); var posted_id=$(this).data('posted'); if(posted_id==1) { alert('Transaction Closed') } else { $.ajax({ url : "<?= site_url('accounting/viewsingle_transaction/') ?>/" + journal_id , success: function(data){ $modal.empty().html(data); $modal.modal(); } }); } }); }); </script>