?
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_bank_transfer.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="addbank_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="" >All</option> <option value="amount" >Amount</option> <option value="trans_date" >Date</option> </select> <input type="button" name="search" onclick="search_posted_bank_transfer(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 Transfer</th> <th width="10%"><input type="radio" name="rad" onclick="showunpostbank_page(1);" ></th> <th width="15%">Un-Posted Bank Transfer</th> </tr> </table> <table class="sort"> <caption> Bank to Bank Transfer</caption> <tr> <th width="8%">Sl No.</th> <th width="13%">From</th> <th width="14%">To</th> <th width="10%">Amount</th> <th width="10%">Date</th> <th width="5%">Trans-No</th> <th width="25%">Memo</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($bank as $bank_trans) { $i=$i+1; $memo=$this->customermodel->getSingleFieldValue('gl_trans','memo','type_no',$bank_trans['ref']); // $facc_name=$this->customermodel->getSingleFieldValue('bank_accounts','bank_account_name','id',$bank_trans['from_b']); // $tacc_name=$this->customermodel->getSingleFieldValue('chart_master','account_name','account_code',$bank_trans['to_b']); // $refname=$this->customermodel->getSingleFieldValue('bank_trans','ref','trans_no',$bank_trans['ref']); $tran_date = $this->mastermodel->convdatformat($bank_trans['trans_date']); echo "<tr><td>".$i."</td><td>".$bank_trans['from_b']."</td><td>".$bank_trans['to_b']."</td><td style='text-align:right'>".number_format($bank_trans['amount'],'2')."</td><td>".$tran_date."</td><td>".$bank_trans['reference']."</td><td>".$memo."</td>"; $refid=$bank_trans['ref']; ?> <?php echo "</tr>"; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showbank_page('1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="showbank_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="showbank_page('<?php echo $i ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showbank_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="showbank_page('<?php echo $totpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>