?
Current Path : /home1/savoy/www/savoyglobal.net/piadraft/system/application/views/ |
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/piadraft/system/application/views/header.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <head> <title>PIA Insurance Broking System</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <link href="<?= base_url() ?>/assets/images/favicon.ico" rel="shortcut icon" /> <link href="<?= base_url() ?>/assets/css/all.css" rel="stylesheet" type="text/css" /> <link href="<?= base_url() ?>/assets/css/roundmenu.css" rel="stylesheet" type="text/css" /> <link href="<?= base_url() ?>/assets/css/styles.css" rel="stylesheet" type="text/css" /> <link href="<?= base_url() ?>/assets/css/general.css" rel="stylesheet" type="text/css" /> <link href="<?= base_url() ?>/assets/css/tablesort.css" rel="stylesheet" type="text/css"> <link href="<?= base_url() ?>/assets/css/jquery.datepick.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="<?= base_url() ?>/assets/js/ajax.js"></script> <script type="text/javascript" src="<?= base_url() ?>/assets/js/tablesort.js"></script> <script type="text/javascript" src="<?= base_url() ?>/assets/js/jquery-1.4.4.min.js"></script> <link type="text/css" media="screen" rel="stylesheet" href="<?= base_url() ?>/assets/css/colorbox.css" /> <script type="text/javascript" src="<?= base_url() ?>/assets/js/jquery.colorbox.js"></script> <script type="text/javascript" src="<?= base_url() ?>/assets/js/jquery.datepick.js"></script> <script type="text/javascript" src="<?= base_url() ?>/assets/js/NumberFormat.js"></script> <script type="text/javascript" src="<?= base_url() ?>/assets/js/jquery.autocomplete.js"></script> <script type="text/javascript"> function showFormData(frm){ message="The values of the form are: \n-------------------------------------\n"; message+="text area = \t" + frm.textarea.value + "\n\n"; message+="textbox = \t" + frm.textbox.value + "\n\n"; message+="select box = \t" + frm.selectMenu[frm.selectMenu.selectedIndex].innerHTML + "\n\n"; message+="checkboxes = \t" + frm.checkbox1.checked + ", " + frm.checkbox2.checked + ", " + frm.checkbox3.checked + "\n\n"; if(frm.radioButtons[0].checked){ message+="radio buttons = \t" + frm.radioButtons[0].value + "\n\n"; }else if(frm.radioButtons[1].checked){ message+="radio buttons = \t" + frm.radioButtons[1].value + "\n\n"; }else if(frm.radioButtons[2].checked){ message+="radio buttons = \t" + frm.radioButtons[2].value + "\n\n"; } window.alert(message); return false; } function doSomething(){ showText = document.getElementById("signalEvent"); showText.innerHTML = "You triggered an event"; setTimeout("showText.innerHTML = ' '",1000) } function Display_Load() { $("#loading").fadeIn(900,0); $("#loading").html("<img src='<?= base_url() ?>/assets/images/ajax-loader.gif'/>"); } //Hide Loading Image function Hide_Load() { $("#loading").fadeOut('slow'); }; function showtype() { var brn=document.getElementById('branch_id').value; $("#typelist").html("<img src='<?= base_url() ?>/assets/images/loading.gif'/>"); $("#typelist").load("<?= site_url('master/ajaxloadtype/viewtypelist/') ?>" +"/" +brn); } function showcover() { var sgn=document.getElementById('segment_id').value; $("#coverlist").html("<img src='<?= base_url() ?>/assets/images/loading.gif'/>"); $("#coverlist").load("<?= site_url('master/ajaxloadcovertype/viewcover/') ?>" +"/" +sgn); } function showcovercom() { var sgn=document.getElementById('segment_id').value; $("#covercom").html("<img src='<?= base_url() ?>/assets/images/loading.gif'/>"); $("#covercom").load("<?= site_url('hr/ajaxloadcovercom/viewcovercom/') ?>" +"/" +sgn); } cun=1; function RemoveWaterMark(ContId) { var aa= document.getElementById(ContId).className; if(aa=="error") { document.getElementById(ContId).value=""; document.getElementById(ContId).className=""; } } function validateformcust() { flag=true; for (var i = 0; i < validateformcust.arguments.length; i++) { form = $("#customForm"); name = validateformcust.arguments[i]; nameInfo = validateformcust.arguments[i]+"Info"; if(($("#"+name).val().length < 1)||($("#"+name).val()=='0') || document.getElementById(name).className=="error") { document.getElementById(name).className="error"; $("#"+name).addClass("error"); var WaterMarkText=document.getElementById(name).title; $("#"+name).val("Enter "+WaterMarkText); $("#"+nameInfo).addClass("error"); flag=false; } else { $("#"+name).removeClass("error"); } } return flag; } function validateform() { var flag=true; for (var i = 0; i < validateform.arguments.length; i++) { form = $("#customForm"); name = validateform.arguments[i]; nameInfo = validateform.arguments[i]+"Info"; if(($("#"+name).val().length < 1)||($("#"+name).val()=='0')) { $("#"+name).addClass("error"); $("#"+nameInfo).addClass("error"); $("#"+nameInfo).text("Make a valid Entry!"); flag=false; } else { $("#"+name).removeClass("error"); $("#"+nameInfo).removeClass("error"); $("#"+nameInfo).text("*"); } } return flag; } function converttodate() { for (var i = 0; i < converttodate.arguments.length; i++) { form = $("#customForm"); name = converttodate.arguments[i]; if(($("#"+name).val().length > 1)) { var mydate = $("#"+name).val(); var datesplit = mydate.split("-"); var datefinal = datesplit[2]+"-"+datesplit[1]+"-"+datesplit[0]; $("input#"+name).val(datefinal); } } } function checkdate() { flag=true; for (var i = 0; i < checkdate.arguments.length; i++) { form = $("#customForm"); name = checkdate.arguments[i]; date1 = new Date(); var today = (date1.getFullYear() + '-' + (date1.getMonth() < 9 ? '0' : '') + (date1.getMonth()+1) + '-' + (date1.getDate() < 10 ? '0' : '') + date1.getDate()); var mydate = $("#"+name).val(); if (mydate != "") { var datesplit = mydate.split("-"); var datefinal = datesplit[2]+"-"+datesplit[1]+"-"+datesplit[0]; if(datefinal > today) { $("#"+name).addClass("error"); $("#"+nameInfo).addClass("error"); $("#"+nameInfo).text("Please enter proper date!"); flag=false; } else { $("#"+name).removeClass("error"); $("#"+nameInfo).removeClass("error"); $("#"+nameInfo).text("*"); } } } return flag; } /* function for auto suggest */ function handleHttpResponse() { if (http.readyState == 4) { if (subject_id != '') { document.getElementById(subject_id).innerHTML = http.responseText; } } } function getHTTPObject() { var xmlhttp; if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var http = getHTTPObject(); // We create the HTTP Object function getSuggestList(div_id,content_id,id_text,tableName,controller) { subject_id = div_id; content = document.getElementById(content_id).value; if(controller == "customer") http.open("GET","<?php echo site_url('customer/autosugesttext/'); ?>" + "/" + escape(content)+ "/" + content_id + "/" + id_text + "/" + tableName, true); else if(controller == "sales") http.open("GET","<?php echo site_url('sales/autosugesttext/'); ?>" + "/" + escape(content)+ "/" + content_id + "/" + id_text + "/" + tableName+ "/" + div_id, true); http.onreadystatechange = handleHttpResponse; http.send(null); box('1'); if(content.length>0) box('1',div_id); else box('0',div_id); } function highlight(action,id) { if(action) document.getElementById('word'+id).bgColor = "#C2B8F5"; else document.getElementById('word'+id).bgColor = "#F8F8F8"; } function display(id,word,text_id,id_text) { document.getElementById(text_id).value = word; document.getElementById('box').style.display = 'none'; document.getElementById(text_id).focus(); document.getElementById(id_text).value=id; } function box(act) { if(act=='0') { document.getElementById('box').style.display = 'none'; } else document.getElementById('box').style.display = 'block'; } function include_dom(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', script_filename); html_doc.appendChild(js); return false; } var included_files = new Array(); function include_once(script_filename) { if (!in_array(script_filename, included_files)) { included_files[included_files.length] = script_filename; include_dom(script_filename); } } function in_array(needle, haystack) { for (var i = 0; i < haystack.length; i++) { if (haystack[i] == needle) { return true; } } return false; } function checkfiscalyearedit(account,table) { $.ajax({ type: "POST", url: "<?= site_url('accounting/checkaccountisset/') ?>/"+account+"/"+table, success: function(msg){ if(msg==0) { $("#viewmsg").fadeIn(900,0); $("#viewmsg").html("<div style=\"border:1px solid red;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Set the fiscal year to process payment OR Fiscal Year is Closed</font></div>"); $('button[type=submit]#button1').attr('disabled', 'disabled'); } } }); } function checkfiscalyear(account,table) { $.ajax({ type: "POST", url: "<?= site_url('accounting/checkaccountisset/') ?>/"+account+"/"+table, success: function(msg){ if(msg==0) { $("#viewmsg").fadeIn(900,0); $("#viewmsg").html("<div style=\"border:1px solid red;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Set the fiscal year to process payment OR Fiscal Year is Closed</font></div>"); $('button[type=submit]#button1').attr('disabled', 'disabled'); } } }); } function showloader(id) { $("#"+id).empty().html('<CENTER><img src="<?= base_url() ?>/assets/images/loading.gif" class="loading"/></CENTER>'); } function suggestemployee(id) { if(id==undefined) id="employee"; $("#"+id).autocomplete("<?= site_url() ?>/master/autosuggestemployee/", { width: 250, selectFirst: false }); } function suggestemployeename(id) { if(id==undefined) id="employee"; $("#"+id).autocomplete("<?= site_url() ?>/master/autosuggestemployeename/", { width: 250, selectFirst: false }); } function suggestemployeecode(id) { if(id==undefined) id="empcode_search"; $("#"+id).autocomplete("<?= site_url() ?>/master/autosuggestemployeecode/", { width: 250, selectFirst: false }); } function suggestagent() { $("#agent").autocomplete("<?= site_url() ?>/master/autosuggestagent/", { width: 250, selectFirst: false }); } function suggestagentcode() { $("#agentcode_search").autocomplete("<?= site_url() ?>/master/autosuggestagentcode/", { width: 250, selectFirst: false }); } function checkdatavalidity(jid,field,comment) { if(jid=="") { alert(comment) $('input#'+field).val(""); return false; } } function suggestcustomer(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestcustomer/", { width: 250, selectFirst: false }); } function suggestcustomername(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestcustomername/", { width: 250, selectFirst: false }); } function suggestinsuranceconame(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestinsuranceconame/", { width: 250, selectFirst: false }); } function suggestcustomercode(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestcustomercode/", { width: 250, selectFirst: false }); } function suggestpolicyno(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestpolicyno/", { width: 250, selectFirst: false }); } function suggestaccount(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestaccount/", { width: 250, selectFirst: false }); } function suggestmainaccount(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestmainaccount/", { width: 250, selectFirst: false }); } function suggestmainaccount_c(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestmainaccount_c/", { width: 250, selectFirst: false }); } function suggestsubofmainaccount(divid,flag) { //if(mainaccountid!='') //{ var mainaccountid=$('#chartgroup_name_id').val(); if(mainaccountid=='' && flag==1) { alert("Select main account"); } else { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestsubofmainaccount/"+mainaccountid, { width: 250, selectFirst: false }); } //} //else //{ // alert("Select main account"); //} } function suggestcovercode(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestcovercode/", { width: 350, selectFirst: false }); } function suggestcover(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestcover/", { width: 350, selectFirst: false }); } function suggestqref(divid) { $("#"+divid).autocomplete("<?= site_url() ?>/master/autosuggestqref/", { width: 350, selectFirst: false }); } function suggestemployeeattendance() { $("#employee").autocomplete("<?= site_url() ?>/master/autosuggestemployeeattendance/", { width: 250, selectFirst: false }); } </script> <style type="text/css"> .loading { position:absolute; width:100px; left:50%; top:100px; margin-left:-50px; } #successdiv { position:absolute; width:100px; left:50%; top:0px; margin-left:-50px; } #searchdiv { position:absolute; width:600px; left:50%; top:36px; margin-left:-50px; } li.pag { list-style: none; float: left; margin-right: 0px; padding:5px; border:solid 1px #dddddd; color:#0063DC; } li:hover.pag { color:#FF0084; cursor: pointer; } li.pagsel { list-style: none; float: left; padding:5px; margin-right: 0px; border : none; color:#FF0084; } li:hover.pagsel { color:#FF0084; cursor: pointer; } ul.paginate{ float:left; margin-top: -15px; } Style for registration form .spacer{clear:both; height:1px;} /* ----------- My Form ----------- */ .myform { margin:0 auto; width:400px; padding:5px; float : left; } /* ----------- basic ----------- */ #basic{ border:solid 2px #F6FAFA; } #basic h1 { font-size:14px; font-weight:bold; margin-bottom:8px; } #basic p{ font-size:11px; color:#666666; margin-bottom:20px; border-bottom:solid 1px #dedede; padding-bottom:10px; } #basic label{ display:block; font-weight:bold; text-align:left; width:140px; float:left; } #basic .small{ color:#666666; display:block; font-size:11px; font-weight:normal; text-align:left; width:140px; } #basic input{ float:left; width:200px; margin:2px 0 30px 10px; } #basic button{ clear:both; margin-left:150px; background:#888888; color:#FFFFFF; border:solid 1px #666666; font-size:11px; font-weight:bold; padding:4px 6px; } /* ----------- stylized ----------- */ #stylized{ border:solid 1px #b7ddf2; /*background:#F6FAFA;/* #ebf4fb;*/ padding-bottom:5px; padding-top:10px; } #stylizedouter { /*border:solid 2px #b7ddf2;*/ background:#F6FAFA;/* #ebf4fb;*/ } #stylized h1 { font-size:14px; /*font-weight:bold;*/ margin-bottom:5px; padding-left:5px; color:#43729F; } #stylized p{ /*font-size:11px; color:#666666;*/ margin-bottom:5px; border-bottom:solid 1px #b7ddf2; padding-bottom:5px; padding-left:5px; } #stylized label{ /*font-family: monospace; font-size:16px;*/ display:block; /*font-weight:bold;*/ color:#000; text-align:left; font-weight: bold; width:170px; float:left; } #stylized li { clear:both; list-style:none; padding:10px;; } #stylized .small{ /*color:#666666;*/ display:block; /*font-size:11px; font-weight:normal;*/ text-align:right; width:140px; } #stylized .Valuelable{ float:right; color:#4f6b72; text-align:left; font-weight: normal; text-align:left; } #stylized input{ float:left; /*font-family: monospace;*/ /*font-size:16px; /*padding:4px 2px;*/ border:solid 1px #aacfe4; /*margin:2px 0 20px 10px;*/ height:30px; } #stylized button{ clear:both; margin-left:150px; width:125px; height:31px; background:#666666 url(img/button.png) no-repeat; text-align:center; line-height:31px; color:#FFFFFF; font-size:11px; /*font-weight:bold;*/ } .leftalign { float:left; width:47%; margin: 10px; padding:1px; } .rightalign{ width:47%; float:right; margin: 10px 10px 10px 0; } .centeralign{ width:46%; padding-left: 350px; margin-bottom: 10px; } .leftfullalign { float:left; width:98%; margin-bottom: 10px; margin-left : -1px } </style> </head> <div id = "logo" align="right"> <img height="80px" style="margin-right: 50px;" width="160px" src="<?= base_url() ?>/assets/images/header.jpg" title="Insurance Broking Management Solution" alt="Insurance Broking Management Solution"/> </div>