* finish task#1065.

This commit is contained in:
chencongzhi520@gmail.com
2013-01-04 06:45:27 +00:00
parent 24b8613408
commit a1b6828dc2
2 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ $lang->file->delete = '删除附件';
$lang->file->export2CSV = '导出CSV';
$lang->file->ajaxUpload = '接口:编辑器上传附件';
$lang->file->label = '标题:';
$lang->file->maxUploadSize = "最大可上传附件:<span class='red'>%s</span>";
$lang->file->maxUploadSize = "<span class='red'>%s</span>";
$lang->file->errorNotExists = "<span class='red'>文件夹 '%s' 不存在</span>";
$lang->file->errorCanNotWrite = "<span class='red'>文件夹 '%s' 不可写,请改变文件夹的权限。在linux中输入指令:sudo chmod -R 777 '%s'</span>";

View File

@@ -11,11 +11,16 @@
<input type='button' onclick='delFile(this)' class='icon-delete' value='&nbsp;'></input>
</div>
EOT;
printf($lang->file->maxUploadSize, ini_get('upload_max_filesize'));
for($i = 1; $i <= $fileCount; $i ++) echo str_replace('$i', $i, $fileRow);
?>
</div>
<script language='javascript'>
/**
* Show the upload max filesize of config.
*/
maxUploadInfo = "(<?php printf($lang->file->maxUploadSize, ini_get('upload_max_filesize'));?>)";
$(document).ready(function(){ $('.fileBox').parent().parent().parent().find('th').append(maxUploadInfo); });
/**
* Set the width of the file form.
*