?
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/country.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('commonfunctions'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image showcity(); }); function addcity(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/ajaxload/addcity/city') ?>"); } }); } function addcountry(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/ajaxload/addcountry/country') ?>"); } }); } function showcountry() { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/search_address/countryview/countryname~country/1') ?>"); } function showcity() { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/search_address/cityview/cityname~city/1/') ?>"); } function editcountry(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/edit/addcountry/country/id/') ?>" +"/" +id); } }); } function editcity(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/edit/editcity/city/id/') ?>" +"/" +id); } }); } function singlecity(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#countrydiv").load("<?= site_url('master/singlecity/singlecityview/city/id/') ?>" +"/" +id); } }); } function search_address(seloption,serctext,page) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#countrydiv').load("<?php echo site_url('master/search_address/'); ?>/"+ page +"/"+ seloption + "/" +1+ "/"+serctext); } function paginationdatacountrysearch(pageNum,seloption,serctext) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#countrydiv').load("<?php echo site_url('master/search_address/countryview/'); ?>/"+ seloption + "/" +pageNum+ "/"+serctext); } function paginationdatacitysearch(pageNum,seloption,serctext) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#countrydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#countrydiv').load("<?php echo site_url('master/search_address/cityview/'); ?>/"+ seloption + "/" +pageNum+ "/"+serctext); } </script> <div id="main"> <?php $this->load->view('menu'); ?> <div id="middle"> <?php $this->load->view('leftbar'); ?> <div id="center-column"> <?php $this->load->view('topbar'); ?> <div class="table"> <div id="successdiv"></div> <div style='display:none'> <div id='inline_example1' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> <p> </p> <div id="countrydiv"> </div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>