Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence du fichier default_upload.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $errSelectPackage = JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE', true)
 
 $errPackageTooBig = JText::_('COM_INSTALLER_MSG_WARNINGS_UPLOADFILETOOBIG', true)
 
 $txtPackageSize = JText::_('JGLOBAL_SELECTED_UPLOAD_FILE_SIZE', true)
 
 $js
 
Joomla installpackageChange
 
 jQuery (document).ready(function($)
 
 JS
 
 $ajaxLoaderImage = JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true)
 
 $css
 
 $i = 0
 
 endforeach
 
 endif
 
 $maxSizeBytes = JUtility::getMaxUploadSize()
 
 $maxSize = JHtml::_('number.bytes', $maxSizeBytes)
 

Documentation des variables

◆ $ajaxLoaderImage

$ajaxLoaderImage = JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true)

◆ $css

$css
Valeur initiale :
= <<< CSS
#loading {
background: rgba(255, 255, 255, .8) url('$ajaxLoaderImage') 50% 15% no-repeat;
position: fixed;
opacity: 1;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80);
filter: alpha(opacity = 80);
overflow: hidden;
}
CodeMirror activeline background
Definition: plugins/editors/codemirror/layouts/editors/codemirror/styles.php:64
url
Definition: plugins/installer/packageinstaller/tmpl/default.php:61
CSS
Definition: plugins/editors/codemirror/layouts/editors/codemirror/styles.php:69
$ajaxLoaderImage
Definition: default_upload.php:77

Référencé par Tree\getCss(), et modChrome_outline().

◆ $errPackageTooBig

$errPackageTooBig = JText::_('COM_INSTALLER_MSG_WARNINGS_UPLOADFILETOOBIG', true)

◆ $errSelectPackage

$errSelectPackage = JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE', true)

◆ $i

$i = 0

◆ $js

$js
Valeur initiale :
= <<< JS
Joomla.submitbuttonUpload = function() {
var form = document.getElementById("uploadForm");
if (form.install_package.value == "") {
alert("$errSelectPackage");
}
else if (form.install_package.files[0].size > form.max_upload_size.value) {
alert("$errPackageTooBig");
}
else
{
jQuery("#loading").css("display", "block");
form.submit();
}
}
JS
Definition: default_upload.php:73
jQuery(document).ready(function($)
Definition: default_upload.php:61

Référencé par PlgSystemDebug\display(), PlgSystemDebug\displayCallback(), PlgSystemDebug\displaySession(), FOFFormFieldRules\getInput25(), JHtmlTabs\loadBehavior(), JHtmlSliders\loadBehavior(), FOFRenderStrapper\loadValidationScript(), FOFRenderJoomla\loadValidationScript(), FOFRenderStrapper\renderFieldsetLabel(), et JHtmlBehavior\tree().

◆ $maxSize

$maxSize = JHtml::_('number.bytes', $maxSizeBytes)

◆ $maxSizeBytes

$maxSizeBytes = JUtility::getMaxUploadSize()

◆ $txtPackageSize

$txtPackageSize = JText::_('JGLOBAL_SELECTED_UPLOAD_FILE_SIZE', true)

◆ endforeach

endforeach

◆ endif

endif

◆ installpackageChange

Joomla installpackageChange
Valeur initiale :
= function() {
var form = document.getElementById('uploadForm');
var fileSize = form.install_package.files[0].size;
var fileSizeMB = fileSize * 1.0 / 1024.0 / 1024.0;
var fileSizeText = "$txtPackageSize";
var fileSizeElement = document.getElementById('file_size');
var warningElement = document.getElementById('max_upload_size_warn');
if (form.install_package.value == '') {
fileSizeElement.classList.add('hidden');
warningElement .classList.add('hidden');
}
else if (fileSize) {
fileSizeElement.classList.remove('hidden');
fileSizeElement.innerHTML = fileSizeText.replace('%s', fileSizeMB.toFixed(2) + ' MB');
if (fileSize > form.max_upload_size.value) {
warningElement .classList.remove('hidden');
} else {
warningElement .classList.add('hidden');
}
}
}

◆ jQuery

jQuery(document).ready(function($)

◆ JS

JS