?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Master/ |
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/Master/viewexcess.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="addexcess(1)" alt="Add New" align = "center" width="25" height="25" /></label> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Excess</caption> <thead><tr> <th style="-moz-user-select: none;" class="sortable-one">Sl.NO</th> <th style="-moz-user-select: none;" class="sortable-one">Type of Cover</th> <th style="-moz-user-select: none;" class="sortable-two">Excess</th> <th style="-moz-user-select: none;" class="sortable-three">Description</th> <th style="-moz-user-select: none;" class="sortable-four">Action</th> </tr></thead> <?php if ($viewinfo->num_rows() > 0) { $z=1; foreach ($viewinfo->result() as $row) { if($z%2==0) { $alt="alt"; } else $alt="alt1"; $cover=$this->mastermodel->get_data('covers',$row->cover_id,'id'); foreach($cover as $cname) { $covername=$cname['cover']; } echo '<tr class="'.$alt.'"><td>'.$id.'</td><td>'.$covername.'</td><td>'.$row->excess.'</td> <td >'.nl2br($row->description).'</td>' ; ?> <td> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/edit-icon.gif" class="clickimage" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editexcess(1,<?=$row->id?>)" alt="" /></div><div class="fronticons"> <?=anchor('master/delete/excess/'.$row->id.'/9', '<img src="'.base_url().'/assets/images/delete-icon.png" title="Delete" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to delete this record?')"))?> </div></div> </td> <?php $id++; $z++; } } ?> </table> <ul class="paginate"> <li class="pagsel"onclick="paginationdatasearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationdatasearch('<?=$pagenum-1?>','<?=$searchoption?>','<?=$searchtxt?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i ) {?> <li class="pagsel" onclick="paginationdatasearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationdatasearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationdatasearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatasearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>