index.template.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!-- saved from url=(0014)about:internet -->
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  4. <!--
  5. Smart developers always View Source.
  6. This application was built using Adobe Flex, an open source framework
  7. for building rich Internet applications that get delivered via the
  8. Flash Player or to desktops via Adobe AIR.
  9. Learn more about Flex at http://flex.org
  10. // -->
  11. <head>
  12. <title>${title}</title>
  13. <meta name="google" value="notranslate" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <meta http-equiv="pragma" content="no-cache"/>
  16. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"/>
  17. <meta http-equiv="expires" content="0"/>
  18. <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
  19. the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
  20. the percentage of the height of its parent container, which has to be set explicitly. Fix for
  21. Firefox 3.6 focus border issues. Initially, don't display flashContent div so it won't show
  22. if JavaScript disabled.
  23. -->
  24. <style type="text/css" media="screen">
  25. html, body { height:100%; }
  26. body { margin:0; padding:0; overflow:auto; text-align:center;
  27. background-color: ${bgcolor}; }
  28. object:focus { outline:none; }
  29. #flashContent { display:none; }
  30. </style>
  31. <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
  32. <!-- BEGIN Browser History required section ${useBrowserHistory}>
  33. <link rel="stylesheet" type="text/css" href="history/history.css" />
  34. <script type="text/javascript" src="history/history.js"></script>
  35. <!${useBrowserHistory} END Browser History required section -->
  36. <script type="text/javascript" src="swfobject.js"></script>
  37. <script type="text/javascript">
  38. // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
  39. var swfVersionStr = "${version_major}.${version_minor}.${version_revision}";
  40. // To use express install, set to playerProductInstall.swf, otherwise the empty string.
  41. var xiSwfUrlStr = "${expressInstallSwf}";
  42. var flashvars = {"localeChain":"zh_CN,en_US"};
  43. var params = {};
  44. params.quality = "high";
  45. params.bgcolor = "${bgcolor}";
  46. params.allowscriptaccess = "sameDomain";
  47. params.allowfullscreen = "true";
  48. var attributes = {};
  49. attributes.id = "${application}";
  50. attributes.name = "${application}";
  51. attributes.align = "middle";
  52. swfobject.embedSWF(
  53. "${swf}.swf?version=4.1.9", "flashContent",
  54. "${width}", "${height}",
  55. swfVersionStr, xiSwfUrlStr,
  56. flashvars, params, attributes);
  57. // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
  58. swfobject.createCSS("#flashContent", "display:block;text-align:left;");
  59. </script>
  60. </head>
  61. <body>
  62. <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
  63. JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
  64. when JavaScript is disabled.
  65. -->
  66. <div id="flashContent">
  67. <p>
  68. To view this page ensure that Adobe Flash Player version
  69. ${version_major}.${version_minor}.${version_revision} or greater is installed.
  70. </p>
  71. <script type="text/javascript">
  72. var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
  73. document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
  74. + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
  75. </script>
  76. </div>
  77. <script type="text/javascript">
  78. function moveIFrame(x,y,w,h) {
  79. var frameRef=document.getElementById("myFrame");
  80. frameRef.style.left=x+"px";
  81. frameRef.style.top=y+"px";
  82. var iFrameRef=document.getElementById("myIFrame");
  83. iFrameRef.width=w;
  84. iFrameRef.height=h;
  85. }
  86. function hideIFrame(){
  87. document.getElementById("myFrame").style.visibility="hidden";
  88. }
  89. function showIFrame(){
  90. document.getElementById("myFrame").style.visibility="visible";
  91. }
  92. function loadIFrame(url){
  93. document.getElementById("myFrame").innerHTML = "<iframe id='myIFrame' src='" + url + "'frameborder='0'></iframe>";
  94. }
  95. </script>
  96. <div id="myFrame" style="position:absolute;background-color:transparent;border:0px;visibility:hidden;"></div>
  97. <noscript>
  98. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="${width}" height="${height}" id="${application}">
  99. <param name="movie" value="${swf}.swf" />
  100. <param name="quality" value="high" />
  101. <param name="bgcolor" value="${bgcolor}" />
  102. <param name="allowScriptAccess" value="sameDomain" />
  103. <param name="allowFullScreen" value="true" />
  104. <!--[if !IE]>-->
  105. <object type="application/x-shockwave-flash" data="${swf}.swf" width="${width}" height="${height}">
  106. <param name="quality" value="high" />
  107. <param name="bgcolor" value="${bgcolor}" />
  108. <param name="allowScriptAccess" value="sameDomain" />
  109. <param name="allowFullScreen" value="true" />
  110. <!--<![endif]-->
  111. <!--[if gte IE 6]>-->
  112. <p>
  113. Either scripts and active content are not permitted to run or Adobe Flash Player version
  114. ${version_major}.${version_minor}.${version_revision} or greater is not installed.
  115. </p>
  116. <!--<![endif]-->
  117. <a href="http://www.adobe.com/go/getflashplayer">
  118. <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
  119. </a>
  120. <!--[if !IE]>-->
  121. </object>
  122. <!--<![endif]-->
  123. </object>
  124. </noscript>
  125. <!--------------------------- iSignature begin: ----------------------------------->
  126. <form name="mainForm" style="display:none">
  127. <div id="obj" ></div>
  128. </form>
  129. <script type="text/javascript">
  130. window.onload=function(){
  131. var ServiceUrl = window.location.protocol+"//"+ window.location.hostname +":"+window.location.port+ window.location.pathname+ "iSignature/jspServer/Service.jsp";
  132. var objHtml= '<OBJECT id="SignatureControl" classid="clsid:D85C89BE-263C-472D-9B6B-5264CD85B36E" codebase="iSignatureHTML.cab#version=8,2,2,56" width="0" height="0" >'+
  133. '<param name="ServiceUrl" value="'+
  134. ServiceUrl+'" > '+
  135. '</OBJECT>';
  136. document.getElementById('obj').innerHTML = objHtml;
  137. }
  138. //作用:进行批量签章
  139. function RunBatchSignature(documentID,userName,ExtParam){
  140. ExtParam = encodeURI(ExtParam,"utf-8");
  141. //userName = encodeURI(userName,"utf-8");
  142. mainForm.SignatureControl.FieldsList="BH=编号;ZYDW=作业单位;ZYWTR=作业委托人;CM=船名;XCGLFZR=现场管理负责人;WXHWMCBH=危险品名称;WPBH=物品编号;JSPM=技术品名;BZ=包装;WXPLB=类别和项别;BYZD4=包装类别;INOROUT=进出港;ZYSL=作业数量(吨);SG=上港;XG=下港;MAO=内外贸;HZWXX=火灾危险性;DXDJ=毒性等级;WRLB=污染类别;JZXSL=集装箱数量;HC=航次;HWZL=货物种类;HWXS=货物形式;LHXZ=理化性质;ZYDD=作业地点;ZYSJQ=作业时间起;ZYSJZ=作业时间止;AQFFCS=安全防范措施;BGR=报告人;LXFS=联系方式;BGSJ=报告时间;BYZD2=申报员证书编号;SHYJ=审核意见;SHR=审核人;SHSJ=审核时间"; //所保护字段
  143. mainForm.SignatureControl.Position(0,0); //签章位置
  144. mainForm.SignatureControl.DocumentList=documentID; //签章页面ID
  145. mainForm.SignatureControl.WebSetFontOther("True","同意通过","0","宋体","11","000128","True"); //默认签章附加信息及字体,具体参数信息参阅技术白皮书
  146. mainForm.SignatureControl.SaveHistory="True"; //是否自动保存历史记录,true保存 false不保存 默认值false
  147. mainForm.SignatureControl.UserName="wjd"; //文件版签章用户
  148. mainForm.SignatureControl.WebCancelOrder=0; //签章撤消原则设置, 0无顺序 1先进后出 2先进先出 默认值0
  149. mainForm.SignatureControl.DivId = "yfdiv"; //签章所在层
  150. mainForm.SignatureControl.EnableMove = "false";
  151. mainForm.SignatureControl.AutoCloseBatchWindow=true; //为true当批量签章完成后,系统自动关闭进度窗口,否则不自动关闭,系统默认为false。
  152. mainForm.SignatureControl.ExtParam = ExtParam; //输入的附加信息
  153. return mainForm.SignatureControl.RunBatchSignature(); //执行批量签章
  154. }
  155. //打开危险品审批的打印页面
  156. function ZysqbpPrintSignature(documentID){
  157. var url = "/yjpt/iSignature/view/ZysqbpPrintSignature.jsp?Template=1468222709986&UserName=&FileType=.doc&documentID="+documentID;
  158. window.open (url,"_blank");
  159. }
  160. </script>
  161. <!------------------------------ iSignature end ----------------------------------->
  162. </body>
  163. </html>