?
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_accounts.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="add_bank_acc(1)" alt="Add New" align = "top" width="25" height="25" /></label> <label> Search For <input type="text" value="" name="search" id="search" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"> <option value="account_code">Account Code</option> <option value="bank_account_name">Account Name</option> <option value="bank_account_number">Account Number</option> <option value="bank_name">Bank Name</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="searchbank_acc('1',document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button></label> </div> <fieldset> <table class="sort"> <caption> Bank Accounts</caption> <tr> <th width="5%">Sl No.</th> <th width="10%">A/C Code</th> <th width="10%">A/C Name</th> <th width="10%">A/C Number</th> <th width="10%">Bank Name</th> <th width="5%">Currency</th> <th width="10%">Bank Address</th> <th width="5%">Status</th> <th width="10%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($ba_acc as $class) { $i=$i+1; if($class['inactive']==1) { $status='inactive'; } else { $status='active'; } // $ctype_val= $this->customermodel->getSingleFieldValue('gl_type','gl_types','id',$class['ctype']); $curtype_val= $this->customermodel->getSingleFieldValue('country','currencyname','id',$class['bank_curr_code']); echo "<tr><td>".$i."</td><td>".$class['account_code']."</td><td>".$class['bank_account_name']."</td><td>".$class['bank_account_number']."</td><td>".$class['bank_name']."</td><td>".$curtype_val."</td><td>".$class['bank_address']."</td><td>".$status."</td><td>"; ?> <img src="<?=base_url()?>/assets/images/edit-icon.gif" id="editclass" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editbank_acc(1,<?=$class['id']?>,<?php echo $currpage ?>,'<?=$field ?>','<?=$text ?>');" class="clickimage" /> <!--<img src="<?//=base_url()?>/assets/images/delete-icon.png" title="Delete" width="20" height="20" alt="Delete" class="clickimage" onclick="return confirm('Are you sure want to delete this record?'),delbank_acc(2,<?//=$class['id']?>,<?php //echo $currpage ?>);" align = "center"/>--> <?php echo "</td></tr>"; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="show_bank_acc('1','<?=$field ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="show_bank_acc('<?php echo $currpage-1 ?>','<?=$field ?>','<?=$text ?>')" <?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="show_bank_acc('<?php echo $i ?>','<?=$field ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="show_bank_acc('<?php echo $currpage+1 ?>','<?=$field ?>','<?=$text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="show_bank_acc('<?php echo $totpage ?>','<?=$field ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>