403Webshell
Server IP : 139.59.63.204  /  Your IP : 216.73.217.62
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/billing/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/billing/public//main.js
   
    function view(url) {
      $('#spinner').show();
      $('#data').hide();
      $.ajax({
         type:'GET',
        // data:{id:id},
         url:url,
         headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
         success:function(data){
            $('#spinner').hide();
            $('#data').show();
            $.each(data, function(index, item) {
                $("#name").text(item.firstname+" "+item.lastname);
                $("#email").text(item.email);
                $("#phone").text(item.phone);
                $("#address").text(item.address);
                $("#city").text(item.city);
                $("#country").text(item.country);
                $("#state").text(item.state);
                $("#pin").text(item.pin);
            });
         },
         error:function(msg)
         {
            var errors = msg.responseJSON;
            console.log(errors);
         }
      });
    }

    function viewProduct(id,url) {
      $('#spinner').show();
      $('#data').hide();
      $.ajax({
         type:'GET',
         url:url,
         headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
         success:function(data){
            $('#spinner').hide();
            $('#data').show();
            alert("hi");
            console.log(data);
            $.each(data, function(index, item) {               
               var status = (item.status == 1)?'<span class="text-success">Active</span>':'<span class="text-danger">Inactive</span>';
               var price = 'Rs. '+item.price;
                $("#name").text(item.name);
                $("#sku_id").text(item.sku_id);
                $("#price").text(price);
                $("#qty").text(item.qty);
                $("#description").text(item.description);
                $("#status").html(status);
            });
         },
         error:function(msg)
         {
            var errors = msg.responseJSON;
            console.log(errors);
         }
      });
    }

    function setValue(id){
      $('#delete_id').attr('value',id);
    
    }
function addAddress(url)
{
   var customerId  = $('[name="customer"]').val();
   $.ajax({
      type:'POST',
      data:{customerId:customerId},
      url:url,
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
      success:function(data){
       // console.log(data);
         $.each(data, function(index, item) { 
             $('[name="billing_address"]').text(item.address);
             $('[name="billing_city"]').attr('value',item.city);
             $('[name="billing_state"]').attr('value',item.state);
             $('[name="billing_country"]').attr('value',item.country);
             $('[name="billing_pin"]').attr('value',item.pin);
             $('[name="shipping_address"]').text(item.address);
             $('[name="shipping_city"]').attr('value',item.city);
             $('[name="shipping_state"]').attr('value',item.state);
             $('[name="shipping_country"]').attr('value',item.country);
             $('[name="shipping_pin"]').attr('value',item.pin);
           
         });
      },
      error:function(msg)
      {
         var errors = msg.responseJSON;
         console.log(errors);
      }
   });
 
}

$(document).on('click','.deleteLine',function(event) {
  // alert("hello");
   $(this).closest("tr").remove();
});

Youez - 2016 - github.com/yon3zu
LinuXploit