HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/app/crm/contract/js/common.js
$(document).ready(function()
{
    /* Show real of an order and compute amount of the contract. */
    $(document).on('change', 'select.select-order', function()
    {
        $(this).parents('td').find('[name^=real]').val($(this).find('option:selected').attr('data-real'));
        currency = v.currencySign['rmb'];
        if($(this).find('option:selected').attr('data-currency')) currency = v.currencySign[$(this).find('option:selected').attr('data-currency')]
        $(this).parents('td').find('.order-currency').html(currency);
        $(this).parents('td').find('[name^=real]').change();
    });

    /* Recompute amount when change real of an order.  */
    $(document).on('change', '.order-real', function()
    {
        var amount = 0;
        $('.order-real').each(function(){if($(this).val()) amount += parseFloat($(this).val()); });
        $('#amount').val(amount);
        $('#currency').val($('.order-real:first').parent().parent().prev('span').find('select').find('option:selected').attr('data-currency'));
    });

    if(config.currentMethod == 'browse')
    {
        if(config.requestType == 'PATH_INFO')
        {
            $('#menu .nav>li').removeClass('active').children('[href*=browse-' + v.mode + ']').parent().addClass('active');
        }
        else
        {
            $('#menu .nav>li').removeClass('active').children("[href*=mode\\=" + v.mode + ']').parent().addClass('active');
        }
        $('#menu li.dropdown').addClass('active');
    }
    /* fix submenu active class if v.mode equal expire. */
    if(v.mode == 'expire') $('#menu li').find('[href*=expired]').parent().removeClass('active');
})