dlgError.jsp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <%@ page contentType="text/html; charset=UTF-8" %>
  2. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  3. <%@ page import="kr.co.hsnc.common.sql.*" %>
  4. <%@ page import="kr.co.hsnc.common.util.*"%>
  5. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  6. <%
  7. ctx.init(request, response);
  8. HandlerStorage storage = ctx.getHandlerStorage();
  9. ValueObject params = storage.getParams();
  10. String errMsg = ctx.get("errMsg");
  11. String errDetailMsg = ctx.get("errDetailMsg");
  12. String userAgent = request.getHeader("User-Agent");
  13. errMsg = Translator.translate("iso-8859-1", "UTF-8",ctx.get("errMsg"));
  14. errDetailMsg = Translator.translate("iso-8859-1", "UTF-8",ctx.get("errDetailMsg"));
  15. %>
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  20. <title>:::에러사항:::</title>
  21. <!-- <link href="css/style.css" rel="stylesheet" type="text/css" />
  22. <link href="css/popup_style.css" rel="stylesheet" type="text/css" /> -->
  23. <style>
  24. #title_alert{margin-left:0;width:auto; }
  25. #title_alert ul{ margin:0; padding:0; display: inline-block; width:100%;}
  26. #title_alert ul li{ display:inline;list-style:none; float:left; padding-left:22px; }
  27. .icon_x_02{width:100%; position:absolute;top:20px; text-align:right}
  28. /* alert */
  29. .a_box{border:3px solid #336699; background-image:url(/img/lib/dialog/alert_title_bg.gif); background-repeat:repeat-x; background-color:#ebf1f1}
  30. .a_cont { padding-top:20px;padding-bottom:25px; width:90%;}
  31. .a_detail { padding-top:0px; width:90%;}
  32. /*alert_ table */
  33. .tb2 {width:100%; border-top:1px solid #bab8b9; border-bottom:1px solid #bab8b9; background-color:#fbfcfc;}
  34. .tb2 td {background:#fbfcfc; color:#2b4a78;font-size:12px; line-height:30px; text-align:left}
  35. #detail_message{backgorund-color:#ffffff;border:1px;}
  36. </style>
  37. <script language="javascript" src="/js/common.js"></script>
  38. <script language="javascript">
  39. var resultObj = window.dialogArguments;
  40. //초기화
  41. function doInit() {
  42. var detailMessage = "<b>RESULT OBJECT</b> \n"
  43. + "<%=errMsg%>" + "\n\n"
  44. + "<b>DETAIL MESSAGE</b> \n"
  45. + "<%=errDetailMsg%>";
  46. document.getElementById("error_message").innerHTML = toHTML("<%=errMsg%>");
  47. document.getElementById("detail_message").innerHTML = toHTML(detailMessage);
  48. }
  49. //상세내역 메세지 보이기 토글
  50. function toggleDetail(imgObj) {
  51. var detailPane = document.getElementById("errorDetail");
  52. var iframe = parent.document.getElementById("_dlgError_iframe");
  53. if ( detailPane.style.display == "none" ) {
  54. imgObj.src = "/img/buyer/btn/error_detail_minus.gif";
  55. detailPane.style.display = "block";
  56. iframe.style.height = (parseInt('372',10)+30)+"px";
  57. //window.dialogHeight = "500px";
  58. }
  59. else {
  60. detailPane.style.display = "none";
  61. imgObj.src = "/img/buyer/btn/error_detail_plus.gif";
  62. iframe.style.height = (parseInt('195',10)+30)+"px";
  63. //window.dialogHeight = "325px";
  64. }
  65. }
  66. //HTML로 변환
  67. function toHTML(pstr) {
  68. var str = pstr;
  69. str = replaceStr(pstr, "\n", "<br>");
  70. str = replaceStr(pstr, "\n", "<br>");
  71. return str;
  72. }
  73. //창닫기
  74. function doClose() {
  75. parent.fLayerPopClose('_dlgError');
  76. }
  77. //메세지복사
  78. function doCopy() {
  79. document.getElementById("copy_temp").value = document.getElementById("detail_message").innerHTML;
  80. //document.all.copy_temp.value = document.all.detail_message.innerText;
  81. var txtRange = document.getElementById("copy_temp").createTextRange();
  82. txtRange.select();
  83. txtRange.execCommand("Copy");
  84. //window.clipboardData.setData('Text', document.all.detail_message.innerText);
  85. //alert("상세내역 메세지가 복사되었습니다.");
  86. }
  87. //인쇄
  88. function doPrint() {
  89. window.print();
  90. }
  91. //document.body.onload = doInit;
  92. </script>
  93. </head>
  94. <body onload="doInit();" style="padding:0; margin:0px;">
  95. <div class="icon_x_02"><a onClick="javascript:doClose();"><img src="/img/lib/dialog/icon_alert_x.png" hspace="20" style="cursor:pointer" /></a></div>
  96. <div class="a_box" align="center">
  97. <!--타이틀-->
  98. <div align="left" id="title_alert">
  99. <ul>
  100. <li><img src="/img/lib/dialog/title_alert_error.png" alt="alert" /></li>
  101. </ul>
  102. </div>
  103. <!--타이틀 끝-->
  104. <div class="a_cont" >
  105. <!--컨텐츠 내용 삽입-->
  106. <table class="tb2" cellspacing="0">
  107. <tr>
  108. <td width="101"><img src="/img/lib/dialog/icon_01.gif" /></td>
  109. <td width="*"><div id="error_message">Error Message</div></td>
  110. </tr>
  111. </table>
  112. <!--컨텐츠 내용 끝-->
  113. <!-- <div class="btn_close p_close " >
  114. <a onClick="javascript:toggleDetail(document.all.detail_toggle);"><img id="detail_toggle" src="/img/buyer/btn/error_detail_plus.gif" alt="상세내역보기" align="left" style="cursor:pointer" /></a>&nbsp;
  115. <a onClick="javascript:doCopy();"><img src="/img/lib/dialog/btn_detail_copy.gif" alt="상세내역복사" style="cursor:pointer" /></a>&nbsp;
  116. <a onClick="javascript:doPrint();"><img src="/img/lib/dialog/btn_print.gif" alt="인쇄" style="cursor:pointer" /></a>&nbsp;
  117. </div> -->
  118. </div>
  119. <div class="a_detail" >
  120. <table id="errorDetail" class="tb2" style="display:none">
  121. <tr>
  122. <td width="430px">
  123. <div id="detail_message" style="width:430px; height:165px;overflow-x:auto;overflow-y:auto; curser:pointer;font-size:12px; text-align:left; background-color: #ffffff"></div>
  124. </td>
  125. </tr>
  126. </table>
  127. </div>
  128. </div>
  129. <textarea id="copy_temp" name="copy_temp" style="display:none;"></textarea>
  130. </body>
  131. </html>