main.jsp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <%@page import="kr.co.hsnc.common.util.ValueObject"%>
  3. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  4. <%@page import="kr.co.udapsoft.common.menu.PotalMenuManager"%>
  5. <%@ page import="kr.co.hsnc.common.config.WAFConfig;" %>
  6. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  7. <%
  8. ctx.init(request, response);
  9. String strTitle = WAFConfig.get("waf.ServerType");
  10. ValueObject params = ctx.getParams();
  11. ValueObject user = ctx.getUser();
  12. user.set("USE_SYSTEM", "10");
  13. ctx.setUser(user);
  14. PotalMenuManager menuManager = new PotalMenuManager(request);
  15. String USE_SYSTEM = menuManager.getUseSystem();
  16. %>
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml">
  19. <head>
  20. <!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -->
  21. <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
  22. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  23. <link rel="stylesheet" type="text/css" href="/css/supplier/main.css" />
  24. <link rel="stylesheet" type="text/css" href="/css/supplier/common.css" />
  25. <!-- WAF JQuery 제공 스크립트 참조 -->
  26. <script language="javascript" src="/js/jquery/jquery-1.11.0.js"></script>
  27. <title>SGC이앤씨 협력업체포탈 시스템</title>
  28. <script language="javascript">
  29. //modular UI 관련 모든 초기화 로직 실행 함수
  30. function _modularViewInit() {
  31. Modular.view.Form.display();
  32. try {
  33. eval("_onReady();");
  34. } catch (e) {}//ignored
  35. }
  36. jQuery(document).ready(function () {
  37. //정보수정
  38. /*
  39. jQuery("#myInfoChange").click(function(){
  40. jQuery("#form1").attr("action", "/portal/own/MyInfo.screen");
  41. jQuery("#form1").attr("target", "_self");
  42. jQuery("#form1").attr("method", "post");
  43. jQuery("#form1").submit();
  44. });
  45. */
  46. //메인 메뉴 관련 css 조작
  47. jQuery('.menuItem').mouseover(function() {
  48. var src = jQuery(this).find(':first-child').find(':first-child').attr("src").match(/[^\.]+/) + "_on.gif";
  49. jQuery(this).find(':first-child').find(':first-child').attr('src', src);
  50. });
  51. jQuery('.menuItem').mouseout(function() {
  52. var src = jQuery(this).find(':first-child').find(':first-child').attr("src").replace('_on', '');
  53. jQuery(this).find(':first-child').find(':first-child').attr('src', src);
  54. });
  55. jQuery("ul.main-menu li ul li:last-child").addClass("last-child");
  56. //modular UI 관련 모든 초기화 로직을 실행함.
  57. //_modularViewInit();
  58. });
  59. function goMenu(url, pgmGrName, pgmName) {
  60. if( url.substring(0, 1) != "#" ) {
  61. document.getElementById("menu_linker").href = url;
  62. if(document.createEvent){
  63. var click_ev = document.createEvent("MouseEvents");
  64. click_ev.initEvent("click", true , true );
  65. document.getElementById("menu_linker").dispatchEvent(click_ev);
  66. }else if(document.createEventObject){
  67. var click_ev = document.createEventObject();
  68. click_ev.button = 1;
  69. document.getElementById("menu_linker").fireEvent('onclick',click_ev);
  70. }
  71. }
  72. }
  73. function autoResize(){
  74. var bodyFrame = document.getElementById("bodyFrame");
  75. var iframeHeight= document.body.scrollHeight - 109;
  76. bodyFrame.height = iframeHeight + "px";
  77. }
  78. function helpLink(){
  79. /* 도메인변경에 따른 원격주소 변경 2020.11.23
  80. var url="http://as82.kr/etecenc/";
  81. */
  82. var url="https://988.co.kr/sgcenc/";
  83. window.open(url, "_blank");
  84. }
  85. </script>
  86. </head>
  87. <BODY onresize="autoResize()">
  88. <form name="form1" id="form1" method="post" action="" >
  89. <input type="hidden" name="user_id" id="user_id" value="<%=user.get("user_id") %>" />
  90. <input type="hidden" name="corp_id" id="corp_id" value="<%=user.get("corp_id") %>" />
  91. </form>
  92. <a id='menu_linker' target='bodyFrame' href='' style="display:none" onclick="document.bodyFrame.location.href=this.href; return false;"></a>
  93. <div style="position:absolute;top:3px;right:20px;z-index:100;">
  94. <table border="0" cellpadding="0" cellspacing="0">
  95. <tr>
  96. <td><a href="/mainPortal.screen"><img src="/img/buyer/main/icon_home.png" /></a></td>
  97. <td>&nbsp;</td>
  98. <td><b><%=user.get("corp_kor") %></b>님 로그인중입니다.&nbsp;</td>
  99. <% if(user.get("job_div").equals("P")){%>
  100. <td><div id="job_div" onclick="helpLink()" style="cursor:pointer">[구매]</div></td>
  101. <%}else if(user.get("job_div").equals("O")){ %>
  102. <td><div id="job_div" onclick="helpLink()" style="cursor:pointer">[외주]</div></td>
  103. <%}else{%>
  104. <td></td>
  105. <%} %>
  106. <td><img src="/img/buyer/main/icon_bar.gif" /></td>
  107. <td><img src="/img/supplier/menu/btn_info_add.gif" alt="edit" id="myInfoChange" onclick="goMenu('/portal/own/MyInfo.screen?p_user_id=<%=user.get("user_id")%>', '', '정보수정');" style="cursor:pointer;" /></td>
  108. <td>&nbsp;</td>
  109. <td><img src="/img/supplier/menu/btn_logout.gif" alt="logout" onclick="self.location='/sign_potal_off.screen';" style="cursor:pointer;" /></td>
  110. </tr>
  111. </table>
  112. </div>
  113. <div id="main_wrap">
  114. <table width="100%" height="100%" cellpadding="0" cellspacing="0">
  115. <tr>
  116. <td valign="top" height="103">
  117. <div id="header" >
  118. <div id="supplier-main-menu">
  119. <ul class="main-menu">
  120. <li class="logo">
  121. <a href="/mainPortal.screen"><img src="/img/supplier/portal_logo.png" /></a>
  122. </li>
  123. <!-- Menu -->
  124. <%
  125. if( menuManager.getSystemSize() > 0 ) {
  126. for( int i = 0 ; i < menuManager.getSystemSize() ; i++ ) {
  127. for( int j = 0 ; j < menuManager.getMenuGroupSize() ; j++ ) {
  128. ValueObject menuGroupValue = menuManager.getMenuGroupValue(j);
  129. %>
  130. <li class="menuItem">
  131. <div><img src="<%= menuGroupValue.get("OFF_IMAGE_PATH") %>" alt="<%= menuGroupValue.get("PGM_GR_NAME")%>" /></div>
  132. <ul>
  133. <%
  134. int subRowSetSize = menuManager.getSubMenuRowSetSize(j);
  135. for( int k = 0 ; k < subRowSetSize ; k++ ) {
  136. ValueObject subMenuRow = menuManager.getSubMenuRowValue(j, k);
  137. %>
  138. <li onclick="javascript:goMenu('<%= subMenuRow.get("SCREEN_NAME") %>', '<%= params.get("PGM_GR_NAME") %>', '<%= subMenuRow.get("PGM_NAME") %>');"><%= subMenuRow.get("PGM_NAME") %></li>
  139. <%
  140. }
  141. %>
  142. </ul>
  143. </li>
  144. <%
  145. }
  146. }
  147. }
  148. %>
  149. </ul>
  150. </div>
  151. </div>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td valign="top" align="center">
  156. <iframe name="bodyFrame" id="bodyFrame" src="/supplier/notice.screen" tabIndex="-1"
  157. marginwidth="0"
  158. marginheight="0"
  159. scrolling="auto"
  160. frameBorder="0" style="margin:0px;" width="100%" height="100%" onload="autoResize(this)"></iframe>
  161. </td>
  162. </tr>
  163. </table>
  164. </div>
  165. </body>
  166. </html>