下载地址: http://u.115.com/file/t0357462a9 能力有限,无法做到很好的整合,本地测试通过。 我只修改了后台商城部分,其他模块请自行修改。 修用方法: 把swfupload.asp复制到你想要更改的模块根目录下,和manage.asp相同目录 然后修改模块下模板manage.jtbc文件 1、限制只能选择一个文件
...<iframe src="?type=upload&swfupload=1&upform=form&uptext=content_images&upftype=1" width="100%" height="100%" scrolling="no" marginwidth="0" marginheight="0" align="middle" name="upload" id="upload" onload="this.height=100" frameborder="0" ></iframe>.... 2、可以按着Ctrl键同时选择多个文件
...<iframe src="?type=upload&swfupload=0&upform=form&uptext=content_images&upftype=1" width="100%" height="100%" scrolling="no" marginwidth="0" marginheight="0" align="middle" name="upload_mulit" id="upload_mulit" onload="this.height=100" frameborder="0" ></iframe>... 最后打开module_config.asp文件,修改函数jtbc_cms_admin_manage()
...... Case "upload" Select Case request.querystring("swfupload") Case "0" '使用swfupload可选择多个文件 Call upload_files_html("swfupload_multi") Case "1"'使用swfupload只能选择单个文件 Call upload_files_html("swfupload_single") Case Else'不使用swfupload,使用原版上传功能 Call upload_files_html("upload_html") End Select ...... 能力有限,不能保证其稳定性,本人不承担任何责任~  |