e50d335b07ff095b96ecb99560630cca09527f43.svn-base 2.5 KB

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