?
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/segmentinsurance.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if(isset($_SESSION['searchoption'])) { if(!empty($_SESSION['searchoption'])) { $searchtxt=$_SESSION['searchtxt']; $searchoption=$_SESSION['searchoption']; } else { $searchtxt = ""; $searchoption = ""; } } else { $searchtxt = ""; $searchoption = ""; } ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addsegment(1)" alt="Add New" align = "center" width="25" height="25" /></label> </div> <div id="searchdiv"> <label>Search For</label><input type="text" value="<?=$searchtxt;?>" name="searchtext" id="searchtext"> In <select name="searchopt" id="searchopt"> <option value="segment~segment_insurances" >All</option> <option value="segment~segment_insurances" <?php if ($searchoption == "segment~segment_insurances") echo "selected"; ?> >Classification</option> </select> <input type="button" name="search" onclick="search_insurance(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'segmentinsurance')" value="Search"/> </div> <div > <form action="" name="myform"> <table class="sort"><thead><tr> <th><input type="radio" name="branch" id="sg1" value="2" checked onchange="showsegment('segment~segment_insurances','1','')" /></th><th><label>Insurance Classification</label></th> <th><input type="radio" name="branch" id="cr1" value="3" onchange="showcovertype('cover~covers','1','')" /></th><th><label>Cover</label></th> </tr></table> </form> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Insurance Classification</caption> <thead><tr> <th style="-moz-user-select: none;" class="sortable-one">Sl.NO</th> <th style="-moz-user-select: none;" class="sortable-two">Insurance Classification</th> <th style="-moz-user-select: none;" class="sortable-three">Action</th> </tr></thead><tbody> <?php if ($viewinfo->num_rows() > 0){ //$id=1; $z=1; foreach ($viewinfo->result() as $row){ if($z%2==0) { $alt="alt"; } else $alt="alt1"; echo '<tr class="'.$alt.'"><td>'.$id.'</td><td>'.$row->segment.'</td>' ; ?> <td><img src="<?=base_url()?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editsegment(1,<?=$row->id?>)" alt="" /> <?=anchor('master/delete/segment_insurances/'.$row->id.'/1', '<img src="'.base_url().'/assets/images/delete-icon.png" title="Delete" width="20" height="20" alt="Delete" align = "center">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to delete this record?')"))?> </td> <?php $id++; $z++; } } ?> </tbody></table> <ul class="paginate"> <li class="pagsel"onclick="paginationdatasegmentsearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationdatasegmentsearch('<?=$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="paginationdatasegmentsearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationdatasegmentsearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationdatasegmentsearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatasegmentsearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>