?
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/cityview.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="addcity(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="cityname~city" >All</option> <option value="city~country" >Countryname</option> <option value="cityname~city" >Cityname</option> <option value="citycode~city" >Citycode</option> </select> <input type="button" name="search" onclick="search_address(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'cityview')" value="Search"/> </div> <div> <form action="" name="myform"> <table class="sort"> <thead><tr> <th><input type="radio" name="branch" id="br1" value="1" onchange="showcountry()"/></th><th><label>Country</label></th> <th><input type="radio" name="branch" id="sg1" value="2" checked onchange="showcity()" /></th><th><label>City</label></th> </tr></thead></table> </form> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>City</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">City </th> <th style="-moz-user-select: none;" class="sortable-four">City Code</th> <th style="-moz-user-select: none;" class="sortable-five">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"; $country=$this->mastermodel->get_data('country',$row->country_id,'id'); foreach($country as $cname) { $countryname=$cname['countryname']; } echo '<tr class="'.$alt.'"><td>'.$id.'</td><td>'.$countryname.'</td> <td onclick="singlecity(1,'.$row->id.')" style=" color:#2756c1;" class="clickimage">'.$row->cityname.'</td> <td>'.$row->citycode.'</td>'; ?> <td> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/upload.png" title="Upload" width="20" height="20" alt="Upload" align = "center" class="clickimage uploadform" onclick="showuploadform(<?=$row->id?>,'city_files','cityid')" alt="" /> </div> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/edit-icon.gif" class="clickimage" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editcity(1,<?=$row->id?>)" alt="" /></div> <?php if($compquotref=='SAV') { ?> <div class="fronticons"> <?=anchor('master/delete/city/'.$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="paginationdatacitysearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationdatacitysearch('<?=$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="paginationdatacitysearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationdatacitysearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationdatacitysearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatacitysearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>