?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Policies/ |
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/Policies/renewal.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 loadrenewal(1,'',''); }); function loadrenewal(pagenum,searchoption,searchtext) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#renewaldiv").load("<?= site_url('policies/ajaxloadnew/viewrenewal/renewal') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addrenewal(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#renewaldiv").load("<?= site_url('policies/ajaxload/addrenewal/renewal') ?>"); } }); } function editrenewal(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#renewaldiv").load("<?= site_url('policies/edit/editrenewal/renewal/id/') ?>"+"/" +id); } }); } function searchrenewal(search,selectsearch) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#renewaldiv").load("<?= site_url('policies/ajaxloadnew/viewrenewal/renewal/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function singlerenewal(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#renewaldiv").load("<?= site_url('policies/single/singlerenewal/renewal/id/renewal_files/renewalid') ?>"+"/" +id); } }); } function showpolidiv() { $("#polidiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#polidiv").load("<?= site_url('policies/ajaxload/searchpoli/broking_slip/') ?>"); $("#inliexample1").colorbox({width:"75%",height:"70%", inline:true, href:"#polidiv"}); } function searchpolicyno(serctext,seloption) { $("#polilist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $('#polilist').load("<?php echo site_url('policies/listsearchpoli/'); ?>/"+ seloption + "/" + serctext); } function usepoli(polino,poliid,cname,cover,qref) { $("input#policyno").val(polino); $("input#policyid").val(poliid); $("#qref").val(qref); $.fn.colorbox.close(); document.getElementById('rendet').innerHTML="<fieldset><li><label>Customer Name</label>"+cname+"</li>\n\ <li><label>Cover Name</label>"+cover+"</li><li><label>Quotaion Reference</label>"+qref+"</li>\n\ <li><label>Renewal Ref. No</label><label>--Auto Generated--</label></li><input type='hidden' name='renref' value='"+qref+"'/></li></fieldset>"; } function usepolicybynoforclaim(code) { if(code=="") { alert("Please enter the Policy No") return false; } else { code=code.replace(/\//gi,"~"); $.ajax({ type: "POST", url: "<?= site_url('policies/findpolicybyno/') ?>/"+code, success: function(msg){ if(msg=="") { alert("No Policy with policy no "+code) } else { var retresult=msg.split('~'); $("input#policyno").val(retresult[0]); $("input#policyid").val(retresult[1]); $.fn.colorbox.close(); document.getElementById('enddet').innerHTML="<fieldset><li><label>Customer Name</label>"+retresult[2]+"</li>\n\ <li><label>Cover Name</label>"+retresult[4]+"</li><li><label>Quotaion Reference</label>"+retresult[3]+"</li>\n\ <li><label>Claim Ref. No</label><label>--Auto Generated--</label></li><input type='hidden' name='claimsref' value='"+retresult[3]+"'/></li></fieldset>"; } } }); } } function paginationrenewalsearch(pageNum,search,selectsearch) { $("#renewaldiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#renewaldiv').load("<?php echo site_url('policies/ajaxloadnew/viewrenewal/renewal/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } </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" align="center"></div> <p> </p> <div id="renewaldiv"> </div> <div style='display:none'> <div id='polidiv' style='padding:10px; background:#fff;'> </div> </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> </body> </html>