?
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_gl_account.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_gl_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="main_account_code">Main Account Code</option> <option value="account_name">Account Name</option> <option value="parent">Main Account</option> <option value="chart_types">Account Type</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="searchgl_acc('1',document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button></label> </div> <div> <table class="sort"> <caption >Sub Accounts</caption> <tr> <th width="10%">Sl No.</th> <th width="20%">Account Code</th> <th width="15%">Account Name</th> <th width="15%">Main Account</th> <th width="15%">Main Account Code</th> <th width="15%">Account Type</th> <th width="15%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($glaccount as $glacc) { $i=$i+1; $acgroup_val= $this->customermodel->getSingleFieldValue('char_type','chart_types','id',$glacc['chart_type']); $subacc= $this->customermodel->getSingleFieldValue('chart_master','account_name','id',$glacc['parent']); $subacccode= $this->customermodel->getSingleFieldValue('chart_master','account_code','id',$glacc['parent']); echo "<tr><td>".$i."</td><td>".$glacc['account_code']."</td><td>".$glacc['account_name']."</td><td>".$subacc."</td><td>".$subacccode."</td><td>".$acgroup_val."</td><td>"; ?> <img src="<?=base_url()?>/assets/images/edit-icon.gif" id="editclass" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editgl_acc('1','<?=$glacc['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 delgl_acc(2,'<?=$glacc['id']?>','<?php echo $currpage ?>');" align = "center"/> <?php echo "</td></tr>"; } ?> </table> </div> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showgl_accounts('1','<?=$field ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="showgl_accounts('<?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="showgl_accounts('<?php echo $i ?>','<?=$field ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showgl_accounts('<?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="showgl_accounts('<?php echo $totpage ?>','<?=$field ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>