1d917e2666293881044b6ad7692562f278d9156a.svn-base 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
  6. <title>附件列表</title>
  7. <!--框架必需start 扁平风格-->
  8. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  9. <link href="/nwyj/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/nwyj/scripts/qui/" scrollerY="false" scrollerX="false"/>
  10. <!-- 模版js和css start-->
  11. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style1.css"
  12. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  13. positionTarget="positionContent" selInputHeight="32"
  14. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  15. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  16. defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
  17. defaultFilterItemHeight="32" dialogWidthFix="0"
  18. defaultSelItemHeight="32" defaultFontFamily="宋体" />
  19. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  20. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  21. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  22. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  23. <!--框架必需end-->
  24. <!-- 扩展工具js -->
  25. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  26. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  27. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  28. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  29. <script type="text/javascript" src="/nwyj/scripts/commom/common/common.js"></script>
  30. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  31. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  32. <!-- 附件上传 -->
  33. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/webUploader/css/webuploader.css" />
  34. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/webUploader/css/style.css" />
  35. <script type="text/javascript" src="/nwyj/scripts/webUploader/webuploader.js"></script>
  36. <script type="text/javascript" src="/nwyj/scripts/webUploader/upload.js"></script>
  37. <!-- 附件上传 -->
  38. <style type="text/css">
  39. html,body {
  40. width: 100%;
  41. height: 100%;
  42. }
  43. body{overflow: auto}
  44. </style>
  45. </head>
  46. <body>
  47. <script type="text/javascript">
  48. $(function() {
  49. var defaultOpts = {
  50. // 自动上传。
  51. auto : true,
  52. // swf文件路径
  53. swf : '/nwyj/scripts/webUploader/Uploader.swf',
  54. // 文件接收服务端。
  55. //server : '/nwyj/Upload',
  56. server : $.pathname() +'/ws/uploadForm/FileUpDownService/indexUpLoad',
  57. //sendAsBinary : true,
  58. //withCredentials : true,
  59. // 选择文件的按钮。可选。
  60. pick : '#picker',
  61. fileNumLimit : 5,
  62. fileSizeLimit : 2000 * 1024 * 1024, // 2000 M
  63. fileSingleSizeLimit : 500 * 1024 * 1024, // 500 M
  64. chunked : false,
  65. chunkSize : 512 * 1024,
  66. fileTypeLimit : 'exe,jsp,asp',
  67. accept : {
  68. extensions : "gif,jpg,jpeg,bmp,png,rar,zip,doc,docx,xls,xlsx,mp4,pdf,pptx,ppt,3GP,mp3,txt"
  69. },
  70. /*
  71. formData: {},
  72. runtimeOrder: 'flash',
  73. */
  74. //禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
  75. disableGlobalDnd : true
  76. };
  77. $('#fileDiv').newAsyncFileUpload(defaultOpts, "", 1);
  78. });
  79. //父窗口调用,并取数据的方法
  80. function getDateFromChild(){
  81. var formValue = $("#editForm").serialize();
  82. return formValue;
  83. }
  84. </script>
  85. <form id="editForm">
  86. <input type="hidden" name="indexPageBusinessId" value="00000123456"/>
  87. <div id="fileDiv"></div>
  88. </form>
  89. </body>
  90. </html>