?
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_acc_class.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_glacc_class()" 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="cid">Class ID</option> <option value="class_name">Class Name</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="searchgl_class('1',document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button></label> </div> <fieldset><legend>View All GL Classes</legend> <table class="sort"> <tr> <th width="10%">Sl No.</th> <th width="20%">Class ID</th> <th width="15%">Class Name</th> <th width="15%">Class Type</th> <th width="25">Status</th> <th width="15%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($glclass as $class) { $i=$i+1; if($class['inactive']==1) { $status='inactive'; } else { $status='active'; } $ctype_val= $this->customermodel->getSingleFieldValue('char_type','gl_types','id',$class['ctype']); echo "<tr><td>".$i."</td><td>".$class['cid']."</td><td>".$class['class_name']."</td><td>".$ctype_val."</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="editgl_class(<?=$class['cid']?>,<?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?'),delgl_class(<?=$class['cid']?>,<?php echo $currpage ?>);" align = "center"/> <?php echo "</td></tr>"; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showgl_acc_class('1','<?=$field ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="showgl_acc_class('<?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_acc_class('<?php echo $i ?>','<?=$field ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showgl_acc_class('<?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_acc_class('<?php echo $totpage ?>','<?=$field ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>