main_submenu.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.udapsoft.common.menu.*" %>
  3. <%@ page import="kr.co.hsnc.common.util.*" %>
  4. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  5. <%
  6. ctx.init(request, response);
  7. ValueObject user = ctx.getUser();
  8. ValueObject params = ctx.getParams();
  9. String FIRST_SIGNON = (String)request.getSession().getAttribute("FIRST_SIGNON");
  10. request.getSession().removeAttribute("FIRST_SIGNON");
  11. String ACCT_CAT_CODE = user.get("ACCT_CAT_CODE");
  12. String ACCT_TYPE_CODE = user.get("ACCT_TYPE_CODE");
  13. MenuManager menuManager = new MenuManager(request);
  14. String USE_SYSTEM = user.get("USE_SYSTEM");
  15. String systemMenuStript = menuManager.getSystemMenuScript();
  16. String index = ctx.get("i");
  17. %>
  18. <HTML>
  19. <HEAD>
  20. <META http-equiv="Content-Type" content="text/html; charset=utf-8">
  21. <LINK href="/css/buyer/style.css" rel="stylesheet" type="text/css">
  22. <STYLE>
  23. BODY {
  24. WIDTH : 100% ;
  25. OVERFLOW-X : HIDDEN ;
  26. OVERFLOW-Y : HIDDEN ;
  27. MARGIN : 0 ;
  28. }
  29. </STYLE>
  30. <SCRIPT language="JavaScript">
  31. function onSubMenuOver(obj) {
  32. try {
  33. obj.style.backgroundColor='#cccccc';
  34. obj.style.color = "white";
  35. }
  36. catch(errorObject) {
  37. showErrorDlg(errorObject);
  38. }
  39. }
  40. function onSubMenuOut(obj) {
  41. try {
  42. obj.style.backgroundColor='#FFFFFF';
  43. obj.style.color = 'black';
  44. }
  45. catch(errorObject) {
  46. showErrorDlg(errorObject);
  47. }
  48. }
  49. </SCRIPT>
  50. </HEAD>
  51. <BODY>
  52. <TABLE width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"
  53. style="cursor:hand; border-color: #404149; border-style: solid; border-top-width: 0px; border-bottom-width: 2px; border-right-width: 2px; border-left-width: 2px;
  54. filter=progid:DXImageTransform.Microsoft.fade(duration=0.2) progid:DXImageTransform.Microsoft.Shadow(color='#777777', direction=135, Strength=5);">
  55. <% int i = params.getInt("i");
  56. int subRowSetSize = menuManager.getSubMenuRowSetSize(i);
  57. for( int j = 0 ; j < subRowSetSize ; j++ ) { %>
  58. <% ValueObject subRow = menuManager.getSubMenuRowValue(i, j); %>
  59. <% if( subRow.get("GUBUN").equals("P") ) { %>
  60. <TR height="22">
  61. <TD onclick="parent.goMenu('<%= subRow.get("SCREEN_NAME") %>', '<%= params.get("PGM_GR_NAME") %>', '<%= subRow.get("PGM_NAME") %>');"
  62. onmouseover="onSubMenuOver(this);"
  63. onmouseout ="onSubMenuOut(this);"
  64. style="TEXT-INDENT:10px;"
  65. align="left" bgcolor="white">
  66. <%-- 레이어의 길이를 자동 산출하기 위해 고정길이 글꼴 사용 --%>
  67. <FONT face="굴림체" color="#000000"><%= subRow.get("PGM_NAME") %></FONT>
  68. </TD>
  69. </TR>
  70. <%
  71. }
  72. else if( subRow.get("GUBUN").equals("L") && j != 0 && j != subRowSetSize - 1 ) { %>
  73. <!-- Line -->
  74. <TR height="10">
  75. <TD>
  76. <TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
  77. <TR>
  78. <TD bgcolor="white" width="4"></TD>
  79. <TD bgcolor="white"><IMG src="/img/main/menuline_bg.gif" border="0" width="100%" height="10"></TD>
  80. <TD bgcolor="white" width="4"></TD>
  81. </TR>
  82. </TABLE>
  83. </TD>
  84. </TR>
  85. <!-- Line -->
  86. <% } %>
  87. <% }
  88. %>
  89. </TABLE>
  90. </BODY>
  91. </HTML>