?
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/insurancecompany.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 showinsurancecompany('company_name~insurance_company','1',''); }); function showinsurancecompany(searchoption,pagenum,searchtext) { $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#insurediv").load("<?= site_url('master/search_company/viewinsurancecompany/'); ?>/"+searchoption+'/'+pagenum+'/'+searchtext); } function addinsurancecompany(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#insurediv").load("<?= site_url('master/ajaxload/insurecompanyform/insurance_company') ?>"); } }); } function loadcity(val) { $("#loadcitydiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#loadcitydiv").load("<?= site_url('master/ajaxloadcountrycity/viewcity/') ?>" +"/" +val); } function viewcompanydetails(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#insurediv").load("<?= site_url('master/viewcompany/viewinsurancecompanyform/id/') ?>" +"/" +id); } }); } function editcompanydetails(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#insurediv").load("<?= site_url('master/viewcompany/editinsurancecompanyform/id/') ?>" +"/" +id); } }); } function search_company(seloption,serctext,page) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#insurediv').load("<?php echo site_url('master/search_company/'); ?>/"+ page +"/"+ seloption + "/" +1+ "/"+serctext); } function paginationdatasearch(pageNum,seloption,serctext) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#insurediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#insurediv').load("<?php echo site_url('master/search_company/viewinsurancecompany/'); ?>/"+ seloption + "/" +pageNum+ "/"+serctext); } function showcovercommission() { $("#covercommision").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#covercommision").load("<?= site_url('master/showcovercommission/loadcovercommission') ?>",function(){ }); } function showcovercommissioncompany(cid) { $("#covercommision").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#covercommision").load("<?= site_url('master/showcovercommissioncompany/loadeditcovercommission') ?>/"+cid,function(){ }); } function showcovercommissioncompanyview(cid) { $("#covercommision").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#covercommision").load("<?= site_url('master/showcovercommissioncompanyview/loadeditcovercommission') ?>/"+cid,function(){ }); } </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 id="searchdiv"> <label>Search For</label><input type="text" name="searchtext" id="searchtext"> In <select name="searchopt" id="searchopt"> <option value="company_name~insurance_company" >All</option> <option value="company_name~insurance_company" >Company Name</option> <option value="name~insurance_contact~id~company_id" >Contact Person</option> <option value="countryname~country~country_id~id" >Country</option> <option value="cityname~city~city_id~id" >City</option> </select> <input type="button" name="search" onclick="search_company(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'viewinsurancecompany')" value="Search"/> </div> <p> </p> <div id="insurediv"> </div> <div style='display:none'> <div id='inline_example1' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> <div style="display:none"> <div id="loademp_bal" ></div></div> </body> </html>