* change for show max upload filesize.

This commit is contained in:
wangyidong
2013-03-27 02:26:38 +00:00
parent 6bc70c9666
commit 35767f1c6f
+6 -4
View File
@@ -14,17 +14,19 @@ EOT;
?>
</div>
<script language='javascript'>
/**
* Show the upload max filesize of config.
*/
maxUploadInfo = "(<?php printf($lang->file->maxUploadSize, ini_get('upload_max_filesize'));?>)";
$(function()
{
var maxUploadInfo = maxFilesize();
parentTag = $('#fileform').parent();
if(parentTag.attr('tagName') == 'TD') parentTag.parent().find('th').append(maxUploadInfo);
if(parentTag.attr('tagName') == 'FIELDSET') parentTag.find('legend').append(maxUploadInfo);
});
/**
* Show the upload max filesize of config.
*/
function maxFilesize(){return "(<?php printf($lang->file->maxUploadSize, ini_get('upload_max_filesize'));?>)";}
/**
* Set the width of the file form.
*