?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/Master/coverinsurance.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="addcover(1)" alt="Add New" align = "center" width="25" height="25" /></label> </div> <div id="searchdiv"> <label>Search For</label><input type="text" name="searchtext" value="<?=$searchtxt;?>" id="searchtext"> In <select name="searchopt" id="searchopt"> <option value="cover~covers">All</option> <option value="segment_id~covers" <?php if ($searchoption == "segment_id~covers") echo "selected"; ?>>Classification</option> <option value="cover~covers" <?php if ($searchoption == "cover~covers") echo "selected"; ?>>Cover</option> </select> <input type="button" name="search" onclick="search_insurance(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'coverinsurance')" value="Search"/> </div> <div > <form action="" name="myform"> <table class="sort"><thead><tr> <th><input type="radio" name="branch" id="sg1" value="2" onchange="showsegment('segment~segment_insurances','1','')" /></th><th><label>Insurance Classification</label></th> <th><input type="radio" name="branch" id="cr1" value="3" checked onchange="showcovertype('cover~covers','1','')" /></th><th><label>Cover</label></th> </tr></table> </form> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Cover</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">Cover</th> <th style="-moz-user-select: none;" class="sortable-four">Cover Code</th> <th style="-moz-user-select: none;" class="sortable-five">Action</th> </tr></thead><tbody> <?php if ($viewinfo->num_rows() > 0) { $z=1; foreach ($viewinfo->result() as $row) { if($z%2==0) { $alt="alt"; } else $alt="alt1"; $segment=$this->mastermodel->get_data('segment_insurances',$row->segment_id,'id'); foreach($segment as $segname) { $segmentname=$segname['segment']; } echo '<tr class="'.$alt.'"><td>'.$id.'</td><td>'.$segmentname.'</td> <td>'.$row->cover.'</td><td>'.$row->id.'</td>'; // anchor('master/editsite/'.$row->id.'','<img src="'.base_url().'assets/images/edit-icon.gif" alt="" />').'</td>'; ?> <td> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editcover(1,<?=$row->id?>)" alt="" /></div><div class="fronticons"> <?=anchor('master/delete/covers/'.$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?')"))?> </div></div> </td> <?php $id++; $z++; } } ?> </tbody> </table> <ul class="paginate"> <li class="pagsel"onclick="paginationdatacoversearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationdatacoversearch('<?=$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="paginationdatacoversearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationdatacoversearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationdatacoversearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatacoversearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>