?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/drafthr/system/application/views/Accounting/view_bankpayment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addpayment_page()" alt="Add New" align = "top" width="25" height="25" /></label> <label>Search For</label><input type="text" name="searchtext" id="searchtext"> In <select name="searchopt" id="searchopt"> <option value="reference" >All</option> <option value="account_code">Account Code</option> <option value="account_name">Account Name</option> <option value="amount">Debit</option> <option value="tran_date" >Date</option> <option value="reference" >Transaction No</option> </select> <input type="button" name="search" onclick="search_posted_bank_payment(document.getElementById('searchopt').value,document.getElementById('searchtext').value)" value="Search"/> </div> <fieldset> <table class="sort"> <tr> <th width="10%"><input type="radio" name="rad" checked="checked" ></th> <th width="15%">Posted Bank Payment</th> <th width="10%"><input type="radio" name="rad" onclick=" showunpostbank_pay(1);" ></th> <th width="15%">Un-Posted Bank Payment</th> </tr> </table> <table class="sort"> <caption> Bank Payment</caption> <tr> <th width="5%">Sl No.</th> <th width="15%">Transaction No</th> <th width="10%">Account code</th> <th width="30%">Account Name</th> <th width="15%">Debit</th> <th width="10%">Date</th> <th width="15%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($bank as $bank_trans) { $subtrans=$this->accountingsmodel->showpaymentvouchertrans($bank_trans['reference']); $rvccount=$subtrans['rvcount']; $i=$i+1; echo "<tr><td rowspan='$rvccount'>".$i."</td><td rowspan='$rvccount'>".$bank_trans['reference']."</td>"; $refid=$bank_trans['trans_no']; $tdate = $this->mastermodel->convdatformat($bank_trans['trans_date']); $k=0; foreach ($subtrans['result']->result_array() as $sbank_trans) { $totamt=$sbank_trans['amount']; if($k==0) { echo "<td >".$sbank_trans['account_code']."</td> <td>".$sbank_trans['account_name']."</td> <td align='right'>".number_format($totamt,'2')."</td>"; echo "<td rowspan='$rvccount'>".$tdate."</td><td rowspan='$rvccount'>"; ?> <img src="<?=base_url()?>/assets/images/view-icon.png" class="anchor" style="cursor: pointer" title="View" width="20" height="20" alt="View" align = "center" onclick="view_payment(<?=$refid?>)" /> <?=anchor('accounting/pdf_payment_voucherforall/'.$refid.'', '<img src="'.base_url().'/assets/images/receipt.jpg" title="Payment Voucher" align = "center" width="20" height="20">',array('class'=>'receipt'))?> <?php echo '</td></tr>'; } else { echo "<tr><td>".$sbank_trans['account_code']."</td> <td>".$sbank_trans['account_name']."</td> <td align='right'>".number_format(0-$totamt,'2')."</td></tr>"; } $k++; } } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showpayment_page('1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="showpayment_page('<?php echo $currpage-1 ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php $totpage=ceil($totrecord/10); $arr= $this->settingsmodel->getmaxminlist($currpage,$totpage,4); $myarray=$arr['listnos']; for($i=$myarray[0]; $i<=$myarray[1]; $i++) { if($currpage==$i ) { ?> <li class="pagsel"> <?php echo $i ?></li> <?php } else { ?> <li class="pag" onclick="showpayment_page('<?php echo $i ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showpayment_page('<?php echo $currpage+1 ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="showpayment_page('<?php echo $totpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>