?
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/countryview.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <?php $compquotref=$this->documentsmodel->gertquotationreference(); if($compquotref=='SAV') { ?> <label> <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addcountry(1)" alt="Add New" align = "center" width="25" height="25" /></label> <?php } else { ?> <label><br/><br/></label> <?php } ?> </div> <div id="searchdiv"> <label>Search For</label><input type="text" name="searchtext" id="searchtext"> In <select name="searchopt" id="searchopt"> <option value="countryname~country" >All</option> <option value="countryname~country" >Country Name</option> <option value="countrycode~country" >Country Code</option> <option value="countryisd~country" >Country ISD</option> <option value="currencyname~country" >Currency Name</option> <option value="currencycode~country" >Currency Code</option> </select> <input type="button" name="search" onclick="search_address(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'countryview')" value="Search"/> </div> <div> <form action="" name="myform"> <table class="sort"> <thead><tr> <th><input type="radio" id="br1" value="1" checked onchange="showcountry()"/></th><th><label>Country</label></th> <th><input type="radio" id="sg1" value="2" onchange="showcity()" /></th><th><label>City</label></th> </tr></thead></table> </form> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Country</caption> <thead><tr> <th style="-moz-user-select: none;" class="sortable-one">Sl.NO</th> <th style="-moz-user-select: none;" class="sortable-two">Country Name</th> <th style="-moz-user-select: none;" class="sortable-three">Country Code</th> <th style="-moz-user-select: none;" class="sortable-four">Country ISD Code</th> <th style="-moz-user-select: none;" class="sortable-five">Currency Name</th> <th style="-moz-user-select: none;" class="sortable-six">Currency Code</th> <th style="-moz-user-select: none;" class="sortable-seven">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"; echo '<tr class="'.$alt.'"><td>'.$id.'</td><td>'.$row->countryname.'</td> <td>'.$row->countrycode.'</td> <td>'.$row->countryisd.'</td> <td>'.$row->currencyname.'</td> <td>'.$row->currencycode.'</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="editcountry(1,<?=$row->id?>)" alt="" /></div> <?php if($compquotref=='SAV') { ?> { <div class="fronticons"> <?=anchor('master/delete/country/'.$row->id.'/2', '<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> <?php } ?> </div> </td> <?php $id++; $z++; } } ?> </table> <ul class="paginate"> <li class="pagsel"onclick="paginationdatacountrysearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationdatacountrysearch('<?=$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="paginationdatacountrysearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationdatacountrysearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationdatacountrysearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatacountrysearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>