26a3a48b9ee1cd825e5db8de92a00c1e45725041.svn-base 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>文件列表查看</title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!-- 上传文件列表start -->
  15. <script type="text/javascript" src="../../libs/js/form/upload/fileUpload.js"></script>
  16. <!-- 上传文件列表end -->
  17. </head>
  18. <body>
  19. <div class="box1" panelWidth="800">
  20. <fieldset>
  21. <legend>1、只读</legend>
  22. <div class="red">此示例由后台支持</div>
  23. <table class="tableStyle" formMode="transparent">
  24. <tr>
  25. <td width="10%">文件列表:</td>
  26. <td>
  27. <div id="fileList"></div>
  28. </td>
  29. </tr>
  30. </table>
  31. </fieldset>
  32. <div class="height_15"></div>
  33. <fieldset>
  34. <legend>2、可删除并自定义宽度</legend>
  35. <div class="red">此示例由后台支持</div>
  36. <table class="tableStyle" formMode="transparent" id="list2">
  37. <tr>
  38. <td width="10%">文件列表:</td>
  39. <td>
  40. <div id="fileList2"></div>
  41. </td>
  42. </tr>
  43. </table>
  44. </fieldset>
  45. </div>
  46. <script type="text/javascript">
  47. var catalogId = '3b7cf33f-d24c-434f-b081-a4f8f2f132be';
  48. /*
  49. function initComplete(){
  50. $.fileUpload.addUploadListRead({
  51. fileListContainer: "fileList",
  52. listUrl:"../../fileAction.do?method=listByKind",
  53. catalogId:catalogId,
  54. kind:"template",
  55. downloadUrl:"../../fileAction.do?method=download&id="
  56. });
  57. $.fileUpload.addUploadListRead({
  58. fileListContainer: "fileList2",
  59. listUrl:"../../fileAction.do?method=listByKind",
  60. catalogId:catalogId,
  61. kind:"template",
  62. downloadUrl:"../../fileupload/download.do?id=",
  63. deleteUrl:"../../fileAction.do?method=delete&id=",
  64. fileNameWidth:300
  65. });
  66. };
  67. */
  68. $(function(){
  69. //$("#list2").mask("为保证数据的完整性,此示例在演示版中禁用",0,false,"#ffffff");
  70. })
  71. </script>
  72. </body>
  73. </html>