Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.197.230
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/git/sms.edl.codes.solutions/application/views/backend/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/git/sms.edl.codes.solutions/application/views/backend/admin/accounting.php
<?php
/*********************
 *********************
Template : "accounting.php"
Controller : "accounting.php"

 Creation 29/08/2019
 Aernout Guillaume
 http://codes.solutions
 *********************
 *********************/
 ?>
 <hr />
 <div class="row">
 	<div class="col-md-12">

  <!------CONTROL TABS START------>
    <ul class="nav nav-tabs bordered">
      <li id="tabWallet" class="active" onclick="refresh_data()"><!--window.location.reload(true)-->
              <a href="#wallet" data-toggle="tab"><i class="entypo-credit-card"></i>
                <?php echo get_phrase('student_wallet');?>
              </a>
      </li>
      <li id="tabManage">
              <a href="#manage" data-toggle="tab"><i class="entypo-chart-pie"></i>
                <?php echo get_phrase('funds_managment');?>
              </a>
      </li>
      <li id="tabRequire">
              <a href="#require" data-toggle="tab"><i class="entypo-export"></i>
                <?php echo get_phrase('require_payment');?>
              </a>
      </li>
      <li id="tabInvoice">
              <a href="#invoice" data-toggle="tab" onclick="refresh_invoices()"><i class="entypo-cc-share"></i>
                <?php echo get_phrase('invoices');?>
              </a>
      </li>
    </ul>
  <!------CONTROL TABS END------>
<div class="tab-content">
 <br>
 <!----TABLE WALLET STARTS-->
 <?php include 'accounting/wallet.php'; ?>
 <!----TABLE WALLET ENDS--->
 <!----TABLE MANAGE STARTS-->
 <?php include 'accounting/manage.php'; ?>
 <!----TABLE MANAGE ENDS--->
 <!----TABLE REQUIRE STARTS-->
 <?php include 'accounting/require.php'; ?>
 <!----TABLE REQUIRE ENDS--->
 <!----TABLE REQUIRE STARTS-->
 <?php include 'accounting/invoice.php'; ?>
 <!----TABLE REQUIRE ENDS--->
</div>
 <!-- assets-->
 <style>
 #address_box, #message_box, #message_box_group{
   display: none;
    top: 10px;
    left: 63px;
    position: absolute;
    border: solid 0.5px #d8cfcf;
    box-shadow: 5px 4Px 5px #3e383887;
    height: 249px;
    background: white;
    border-radius: 2px;
 }
 </style>
 <script src="https://cdn.tiny.cloud/1/2m1nja4q4oz3mis8cyv4895xdsy00qukrk2s5tmm2gs05tl8/tinymce/5/tinymce.min.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script type="text/javascript" src="/assets/js/csajax/backend/accounting.js"></script>
<link rel="stylesheet" href="/assets/css/csstyle/backend/accounting.css">
 <!-- Initialize the script -->
 <script>
 jQuery(document).ready(function($)
 {  tinymce.init({
    selector: 'textarea'
  });
   $('.tab-manage').hide();
    $('#tab-2').show();
    $('#btn-require-delete').hide();
    $('#invoice-form').hide();

    $('#btn-link').hide();
    $('#btn-mail').hide();
    $('#group_require').hide();

    //$('#address_box').hide();

    $('.preview').hide();
    $('.preview').click(function(){$('.preview').hide();});

    $("#student_manage").select2();
    $("#student_require").select2();
    $("#student_require_2").select2();
    $("#group_require_select").select2();

    $("#transaction_invoice").select2();
    $(".select2-chosen").addClass("text-left");

    $("#table_export_group").on('click','.entypo-cancel-squared',function(e){
      var table = $('#table_export_group').DataTable();
       table.row( $(this).parents('tr') ).remove().draw();
    });

    $("#table_export_group").on('change','.select',function(e){
      var target_id = e.target.id;
      console.log($('#'+target_id).val());
      $('#society_input_'+target_id).val($('#'+target_id).val());
    });

    $("#table_export_group").on('change','.select',function(e){
      var target_id = e.target.id;
      target_id = target_id.replace( /^\D+/g, '');
      $('#society_input_'+target_id).val($('#society_id_'+target_id).val());
    });

    $("#table_export_group").on('change','.p_am',function(e){
        var target_id = e.target.id;
        target_id = target_id.replace( /^\D+/g, '');
        console.log($('#amount'+target_id).val());
        $('#p_amount_input_'+target_id).val($('#amount'+target_id).val());
    });
    $("#table_export_group").on('change','.p_da',function(e){
        var target_id = e.target.id;
          target_id = target_id.replace( /^\D+/g, '');
        console.log('=>'+$('.p_da').find('#p_da'+target_id).val());
          $('#p_date_input_'+target_id.replace( /^\D+/g, '')).val($('#p_da'+target_id).val());
    });
    $("#table_export_group").on('change','.p_ex',function(e){
        var target_id = e.target.id;
        target_id = target_id.replace( /^\D+/g, '');
        $('#p_expiration_input_'+target_id).val($('#p_ex'+target_id).val());
    });
    $("#table_export_group").on('change','.customer',function(e){
        var target_id = e.target.id;
          target_id = target_id.replace( /^\D+/g, '');
        $('#name_input_'+target_id).val($('#customer'+target_id).val());
    });
    $("#table_export_group").on('change','.i_da',function(e){
        var target_id = e.target.id;
        target_id = target_id.replace( /^\D+/g, '');
        $('#i_date_input_'+target_id).val($('#i_da'+target_id).val());
    });
    $("#table_export_group").on('change','.i_du',function(e){
        var target_id = e.target.id;
          target_id = target_id.replace( /^\D+/g, '');
        $('#d_date_input_'+target_id).val($('#i_du'+target_id).val());
    });
    $("#table_export_group").on('change','.product_name',function(e){
        var target_id = e.target.id;
        target_id = target_id.replace( /^\D+/g, '');
        //console.log('ok');
        $('#product_input_'+target_id).val($('#product'+target_id).val());
    });

    $("#table_export_group").on('click','.btn-prev',function(e){
      console.log('on');
        var target_id = e.target.id;
        target_id = target_id.replace( /^\D+/g, '');
        //console.log('ok');
        var form = $('#form_'+target_id);
        form.attr("target","_blank");
        form.attr('action','/pdf');
        form.submit();
    });


  $("#table_export_group").on('click','.btn-address',function(e){
      if(!$("#address_box").is(":visible")){
        var target_id = e.target.id;

        $('#address_box').find('#line_1').val($('#add_l1_input_'+target_id).val());
        $('#address_box').find('#line_2').val($('#add_l2_input_'+target_id).val());
        $('#address_box').find('#country').val($('#add_country_input_'+target_id).val());
        $('#address_box').find('#postcode').val($('#add_pc_input_'+target_id).val());
        $('#address_box').find('#location').val($('#add_city_input_'+target_id).val());
        //$('#address_box').find('#city').val($('#add_country_input_'+target_id).val());

        var o = {
            left: e.pageX,
            top: e.pageY
        };
       $("#address_box").show(2000).offset(o);
      }
      else{
        $("#address_box").hide();
        //set the hidden data
        var l1 = $('#address_box').find('#line_1').val();
        var l2 = $('#address_box').find('#line_2').val();
        var country = $('#address_box').find('#country').val();
        var pc = $('#address_box').find('#postcode').val();
        var  location = $('#address_box').find('#location').val();
        var target_id = e.target.id;

        $('#add_l1_input_'+target_id).val(l1);
        $('#add_l2_input_'+target_id).val(l2);
        $('#add_country_input_'+target_id).val(country);
        $('#add_pc_input_'+target_id).val(pc);
        $('#add_city_input_'+target_id).val(location);
      //  $('#add_country_input_'+target_id).val(country);
      }
    });


    $("#table_export_group").on('click','.btn-message',function(e){

      if(!$("#message_box").is(":visible")){
        var target_id = e.target.id;
        console.log(target_id);
        console.log($('#message_input_'+target_id).val());

        tinyMCE.get('message').setContent($('#message_input_'+target_id).val());
      //  $('#message_box').find('#message').val($('#message_input_'+target_id).val());

        var o = {
            left: e.pageX,
            top: e.pageY
        };
       $("#message_box").show(2000).offset(o);
      }
      else{
        $("#message_box").hide();
        //set the hidden data
        var target_id = e.target.id;
        var message = window.parent.tinyMCE.get('message').getContent();//$('#message_box').find('#message').val();
        console.log('#message_input_'+target_id);
        $('#message_input_'+target_id).val(message);
      }
    });

    $("#table_export_group").on('click','.btn-message-group',function(e){

      if(!$("#message_box_group").is(":visible")){

        //$('#message_box_group').find('#message_group').val('');
        tinyMCE.get('message_group').setContent('');
        var o = {
            left: e.pageX,
            top: e.pageY
        };
       $("#message_box_group").show(2000).offset(o);
      }
      else{
        $("#message_box_group").hide();
        //set the hidden data
        var message = window.parent.tinyMCE.get('message_group').getContent();
      //  var message = $('#message_box_group').find('#message_group').val();

        $('.customer_message').each(function(){
          $(this).val(message);
          $(this).change();
        });
      }
    });


    $('#btn-add-invoice').click(function(){
      console.log('show/hide');
      if($('#btn-add-invoice').hasClass('entypo-plus-squared')){
        $('#invoice-form').slideDown('slow');
        $('#btn-add-invoice').removeClass('entypo-plus-squared');
        $('#btn-add-invoice').addClass('entypo-minus-squared');
      }
      else{
        $('#invoice-form').slideUp('slow');
        $('#btn-add-invoice').removeClass('entypo-minus-squared');
        $('#btn-add-invoice').addClass('entypo-plus-squared');
      }
    });

   <?php

    if(isset($manage)){
    echo  "display_manage($manage);";
    }
    if(isset($require)){
    echo  "display_require($require);";
    }
    ?>
   //order the select
   $("#student_manage").append($("#student_manage option").remove().sort(function(a, b) {
    var at = $(a).text(), bt = $(b).text();
    return (at > bt)?1:((at < bt)?-1:0);
  }));
    $("#student_manage").prepend(new Option("-- Select Student --",0));
    $("#student_manage").val(0);

   $(".dataTables_wrapper select").select2({
       minimumResultsForSearch: -1
     });

    var table = $("#table_export").DataTable();
    var invoiceList = $("#table_invoice").DataTable();

    table.on( 'search.dt', function () {
      console.log( 'Currently applied global search: '+table.search() );
      window.location.hash = table.search();
    } );
    var datatable2 = $("#table_export2").dataTable();
    var datatable3 = $("#table_export3").dataTable();
    var datatable4 = $("#table_export4").dataTable();
    var datatableExport  = $('#table_export_group').dataTable();

    $('.datePick').datepicker({dateFormat: 'dd-mm-yyyy'});

    //listener
    $('.btn-menu').click(function(e){display_tab(e.target.id);});

    $('#smt-payment').click(function(){add_payment();});
    $('#smt-discount').click(function(){add_discount();});
    $('#student_manage').change(function(){
      var id = $('#student_manage :selected').val();
      get_profile(id);
    });
    $('#student_require').change(function(){
      //if(checkFunction('are you sure to forgre a payment request?')){
        var id = $('#student_require :selected').val();
        display_require(id);
    //  }
    });

    $('#transaction_invoice').change(function(){
        var id = $('#transaction_invoice :selected').val();
        get_invoice_suggestion(id);
    });

    $("#add-require-group-course").click(function(){
      //$("#add-require-group-course").change();
      var id = $('#group_require_select :selected').val();
      console.log('target course '+id);
      append_students_list(id);
    });

    $("#add-require-group-student").click(function(){
      //$("#add-require-group-course").change();
      var id = $('#student_require_2 :selected').val();
      console.log('target student '+id);
      append_student_list(id);
    });

    $('#require_method').change(function(){
      $('.sidebar-collapse-icon').click();
     if($('#require_method').is(':checked')){
       $('#single_require').hide();
       $('#group_require').show();
     }else{
        $('#group_require').hide();
        $('#single_require').show();
     }
    });

    /*
    $('#discount_in_p').keyup(function(){
      var priceDisc =$('#discount_in_p').val();

    });
    $('#discount_in').change(function(){
      var id = $('#student_manage :selected').val();
      var discount = $('#discount_in').val();
      console.log(discount);

      $("#discount_view").text(discount+'%');
      if(id != "0"){
        set_profile(id,discount);
        console.log("apply discount :"+discount);
      }
    });*/

    //disable class
    $('.input-show').attr('readonly', 'readonly');
    $('.input-show').attr("disabled", true);

      $("#table_export_group").on('change','#society_group',function (e){
        var id = $('#society_group option:selected').val();
        console.log("=>!"+id);
        $('.society-select').each(function(){
          $(this).val(id);
            $(this).change();
        });
      });

      $("#table_export_group").on('change','#amount_group',function (e){
        var data = $('#amount_group').val();

        $('.p_am').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });

      $("#table_export_group").on('change','#pd_group',function (e){
        var data = $('#pd_group').val();

        $('.p_da').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });
      $("#table_export_group").on('change','#pe_group',function (e){
        var data = $('#pe_group').val();

        $('.p_ex').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });
      $("#table_export_group").on('change','#id_group',function (e){
        var data = $('#id_group').val();

        $('.i_da').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });
      $("#table_export_group").on('change','#ip_group',function (e){
        var data = $('#ip_group').val();

        $('.i_du').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });
      $("#table_export_group").on('change','#product_group',function (e){
        var data = $('#product_group').val();

        $('.product_name').each(function(){
          $(this).val(data);
          $(this).change();
        });
      });

 });
 </script>

Youez - 2016 - github.com/yon3zu
LinuXploit