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/sys/common/view/picker.html.php
<?php js::import($jsRoot . 'picker/min.js');?>
<?php css::import($jsRoot . 'picker/min.css');?>
<style>
.picker {min-height: 28px;}
.picker-selections {line-height: 26px; min-height: 28px; border-color: #d6dae3; box-shadow: none;}
.picker-selection-single {line-height: 16px;}
.picker-selection-single:after {font-family: zdooicon; font-size: 12px; content: '\f0d7'; color: #cbd0db;}
.picker-single.picker-focus .picker-selection-single:after {font-family: zdooicon; font-size: 12px; content: '\e911'; color: #505b63 !important; opacity: 1;}
.picker-multi.picker-focus .picker-selections:before {font-family: zdooicon; font-size: 12px; content: '\e911'; top: 7px; color: #505b63 !important; opacity: 1;}
.picker-multi .picker-selections {padding: 0px;}
.picker-multi .picker-selections .picker-search {margin: 0px;}
.picker-placeholder {top: 0px; color: #a6aab8;}
</style>
<script>
$(function()
{
    var defaults = {disableEmptySearch: true, maxListCount: 0, searchDelay: 500};

    initPicker = function($element, options)
    {
        var picker = $element.data('zui.picker');
        if(picker) picker.destroy();

        var options = $.extend({}, defaults, options);
        $element.picker(options);
    };

    initSelect = function($element)
    {
        var isDisabled = !!$element.attr('disabled');

        if(!isDisabled && $element.find('option[value=ajax_search_more]').length == 1)
        {
            $element.find('option[value=ajax_search_more]').remove();

            var module  = $element.data('module');
            var field   = $element.data('field');
            var options = $element.data('options');
            var url     = createLink('flow', 'ajaxGetPairs', 'module=' + module + '&field=' + field + '&options=' + options + '&search={search}');

            initPicker($element, {remote: url});
        }
        else
        {
            var picker = $element.data('zui.picker');
            if(!picker)
            {
                var chosen = $element.data('chosen');
                if(chosen)
                {
                    $element.trigger('chosen:updated');
                }
                else
                {
                    $element.chosen();
                }
            }
        }
    }

    $('.picker-select').each(function()
    {
        initSelect($(this));
    });
});
</script>