?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Sales/ |
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/Sales/salesleads.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 loadsalesleads(1,'',''); }); function loadsalesleads(pagenum,searchoption,searchtext) { $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salesleadsdiv").load("<?= site_url('sales/ajaxloadnew/viewsalesleads/salesleads') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addsalesleads(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salesleadsdiv").load("<?= site_url('sales/ajaxload/addsalesleads/salesleads') ?>"); } }); } function editsalesleads(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salesleadsdiv").load("<?= site_url('sales/edit/editsalesleads/salesleads/id/') ?>"+"/" +id); } }); } function singlesalesleads(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salesleadsdiv").load("<?= site_url('sales/single/singlesalesleads/salesleads/id/') ?>"+"/" +id); } }); } function showstaffdiv() { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('sales/ajaxload/searchstaff/staffpersonaldetails/') ?>"); $("#inliexample1").colorbox({width:"75%",height:"70%", inline:true, href:"#staffdiv"}); } function searchStaff(serctext,seloption,pagenum) { $('#stafflist').load("<?php echo site_url('sales/listSearchstaff/'); ?>/"+pagenum +"/" +seloption + "/" + serctext); } function usestaff(staffname,id,employeeid,designation,department) { $("input#staffname").val(staffname); $("input#staffid").val(id); $.fn.colorbox.close(); document.getElementById('stfinfodet').innerHTML="<fieldset><li><label>Employee No</label>"+employeeid+"</li>\n\ <li><label>Designation</label>"+designation+"</li><li><label>Department</label>"+department+"</li></fieldset>"; } function searchsalesleads(search,selectsearch) { if(selectsearch=='rendate' ) { search=search.replace(/\//gi,'-') } $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#salesleadsdiv").load("<?= site_url('sales/ajaxloadnew/viewsalesleads/salesleads/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationsalesleadssearch(pageNum,search,selectsearch) { $("#salesleadsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#salesleadsdiv').load("<?php echo site_url('sales/ajaxloadnew/viewsalesleads/salesleads/'); ?>"+"/" +pageNum+"/"+search+"/"+selectsearch+"/"); } function doallthethree() { if(validateform('leadname','employee','date','cover_id_direct')) { converttodate('date','rendate'); } else { return false; } if($("input#cover_st").val()=='false') { alert("Please verify the cover code"); return false; } } function findemployeebycode(code) { if(code=="") { alert("Please enter the employee code") return false; } else { $.ajax({ type: "POST", url: "<?= site_url('sales/findemployeebycode/') ?>/"+code, success: function(msg){ if(msg=="") { alert("No Employee with code "+code) } else { var retresult=msg.split('~'); $("input#staffname").val(retresult[0]); $("input#staffid").val(retresult[1]); document.getElementById('stfinfodet').innerHTML="<fieldset><li><label>Employee No</label>"+code+"</li>\n\ <li><label>Designation</label>"+retresult[2]+"</li><li><label>Department</label>"+retresult[3]+"</li></fieldset>"; } } }); } } function findcovercode(code) { if(code=="") { alert("No code selected") } else { $.ajax({ type: "POST", url: "<?= site_url('master/checkcovercodeexist/') ?>/"+code, success: function(msg){ if(msg==0) { alert("No cover with code "+code) $('input#cover_id_direct').val(""); $('input#cover_st').val(false); return false; } else { $('#coverdisp').html("<label>Cover Name :</label>"+msg) $('input#cover_st').val(true); } }, async:false }); } } function makereadonly() { $('input#cover_id_direct').val($('select#cover_id').val()); $('input#cover_st').val(true); } function makefalsevalue() { $('input#cover_st').val(false); } </script> <body > <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="salesleadsdiv"> </div> <div style='display:none'> <div id='inline_example1' style='padding:10px; background:#fff;'> </div> </div> <div style='display:none'> <div id='staffdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>