123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="kr.co.udapsoft.common.menu.*" %>
- <%@ page import="kr.co.udapsoft.common.util.*" %>
- <%@ page import="kr.co.hsnc.common.util.*" %>
- <%@ page import="com.udapsoft.waf.common.util.*" %>
- <%@ page import="kr.co.hsnc.common.config.WAFConfig;" %>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- String strTitle = WAFConfig.get("waf.ServerType");
- %>
- <% if( ctx.isSignedOn() ) { %>
- <%
- ValueObject params = ctx.getParams();
- ValueObject user = ctx.getUser();
- user.set("USE_SYSTEM", "10");
- ctx.setUser(user);
- PotalMenuManager menuManager = new PotalMenuManager(request);
-
- String USE_SYSTEM = menuManager.getUseSystem();
-
- %>
- <HTML>
- <HEAD>
- <TITLE><%= strTitle %>ETEC E&C Plant Material Management System</TITLE>
- <!-- <META http-equiv="Content-Type" content="text/html; charset=utf-8"> -->
- <!-- <META http-equiv="MSThemeCompatible" content="No"> -->
- <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <LINK href="/css/supplier/style.css" rel="stylesheet" type="text/css">
- <STYLE>
- html {
- height: 100%;
- filter: expression(document.execCommand("BackgroundImageCache", false, true));
- }
- BODY, form {
- WIDTH : 100% ;
- height: 100%;
- OVERFLOW-X : AUTO ;
- OVERFLOW-Y : AUTO ;
- margin:0;
- }
- </STYLE>
- <SCRIPT language="JavaScript" src="/js/common.js"></SCRIPT>
- <SCRIPT language="JavaScript" src="/js/xmlhttp.js"></SCRIPT>
- <SCRIPT language="JavaScript" src="/js/objects.js"></SCRIPT>
- <SCRIPT language="JavaScript">
- /**
- * 현재 사용하는 시스템 코드
- */
- var USE_SYSTEM = "<%= USE_SYSTEM %>";
- /**
- * Object에 이미지 src 변경 처리
- */
- function setImg(obj, imgSrc) {
- obj.src = imgSrc;
- }
- /**
- * ID에 해당하는 서브메뉴를 나타나도록 처리
- */
- function showSubMenu(mainMenuId) {
- //var mainMenuObj = eval("document.all." + mainMenuId);
- var mainMenuObj = document.getElementById(mainMenuId);
-
- //setImg(mainMenuObj, mainMenuObj.getAttribute("on_image_path"));
- var subMenuObj = getSubMenuObj(mainMenuObj.getAttribute("index"));
- var cRects = mainMenuObj.getClientRects();
-
- subMenuObj.style.left = (cRects[0].left - 2) + "px";
- subMenuObj.style.top = (cRects[0].bottom - 2) + "px";
-
- subMenuObj.style.display = "";
- }
- /**
- * ID에 해당하는 서브메뉴를 숨김 처리
- */
- function hideSubMenu(mainMenuId) {
-
- //var mainMenuObj = eval("document.all." + mainMenuId);
- var mainMenuObj = document.getElementById(mainMenuId);
- var subMenuObj = getSubMenuObj(mainMenuObj.getAttribute("index"));
-
- subMenuObj.style.display = "none";
- //setImg(mainMenuObj, mainMenuObj.getAttribute("off_image_path"));
- }
- /**
- * 모든 서브메뉴를 숨김 처리
- */
- function hideAllSubMenu() {
- if( window.subMenuLayer != null ) {
- if( window.subMenuLayer.length == null ) {
- window.subMenuLayer.style.display = "none";
- }
- else {
- for( var i = 0 ; i < window.subMenuLayer.length ; i++ ) {
- window.subMenuLayer[i].style.display = "none";
- }
- }
- }
- }
- /**
- * index에 해당하는 서브메뉴의 Object를 리턴
- */
- function getSubMenuObj(index) {
- var temp = document.all.subMenuLayer;
- if( temp.length == null )
- return temp;
- else
- return temp[index];
- }
- /**
- * 시스템 이동
- */
- /* function setSystem(sysId) {
- var f = document.MenuChangeForm;
- f.P_USE_SYSTEM.value = sysId;
- f.submit();
- } */
- function setSystem(systemObj){
- resetSystem();
- setImg(systemObj, systemObj.getAttribute("on_image_path"));
- var systemMenuObj = getSystemMenu(systemObj.getAttribute("index"));
-
- hideAllSystemMenu();
-
- var cRects = systemObj.getClientRects();
- var left = cRects[0].left - 10;
- systemMenuObj.style.left = left + "px";
- systemMenuObj.style.top = 74 + "px";
- systemMenuObj.style.display = "inline";
-
- // 2단메뉴가 오른쪽으로 숨어버리는 경우에 대한 처
- var systemMenuObjRects = systemMenuObj.getClientRects();
- var bodyWidth = window.document.body.clientWidth - 200;
- if( (systemMenuObjRects[0].right ) > bodyWidth ) {
- left = left - (systemMenuObjRects[0].right - bodyWidth);
- if( left < 0 ) left = 0;
- systemMenuObj.style.left = left + "px";
- }
-
- //document.getElementById("depth2_"+sysId).style.display="block";
- 1283 - 1490 - 1430
- //systemMenu
- }
- /**
- * 1단메뉴에 이미지 초기화
- */
- function resetSystem() {
- if( document.getElementsByName("system") != null ) {
- if( document.getElementsByName("system").length == null ) {
- setImg(document.getElementsByName("system"), document.getElementsByName("system").getAttribute("off_image_path"));
- //document.all.system.is_selected = "N";
- }
- else {
- for( var i = 0 ; i < document.getElementsByName("system").length ; i++ ) {
- setImg(document.getElementsByName("system")[i], document.getElementsByName("system")[i].getAttribute("off_image_path"));
- //document.all.system[i].is_selected = "N";
- }
- }
- }
- }
-
- /**
- * index에 해당하는 2단메뉴의 Object를 리턴
- */
- function getSystemMenu(index) {
- var temp = document.getElementsByName("systemMenu");
- if( temp.length == null )
- return temp;
- else
- return temp[index];
- }
-
- /**
- * 모든 2단메뉴를 숨김 처리
- */
- function hideAllSystemMenu() {
-
- if( document.getElementsByName("systemMenu") != null ) {
- if( document.getElementsByName("systemMenu").length == null ) {
- document.getElementsByName("systemMenu").style.display = "none";
- }
- else {
- for( var i = 0 ; i < document.getElementsByName("systemMenu").length ; i++ ) {
- document.getElementsByName("systemMenu")[i].style.display = "none";
- }
- }
- }
- }
- /**
- * 메뉴 이동
- */
- function goMenu(url, pgmGrName, pgmName) {
- if( url.substring(0, 1) != "#" ) {
- setNowLocation(pgmGrName, pgmName, url);
- //parent.document.frames['BodyFrame'].location.href = url;
-
- document.getElementById("menu_linker").href = url;
- // document.getElementById("menu_linker").click();
-
- var click_ev = document.createEvent("MouseEvents");
- // # initialize the event
- click_ev.initEvent("click", true , true );
- // # trigger the evevnt
- document.getElementById("menu_linker").dispatchEvent(click_ev);
- hideAllSubMenu();
- //setHelpName("");
- }
- else {
- alert(url.substring(1, url.length));
- }
- }
-
-
- /**
- * 현재위치 세팅
- */
- function setNowLocation(pgmGrName, pgmName, url) {
- var strHtml = " ";
-
- strHtml += "<IMG src='/img/main/location_bullet.gif' alt='' border='0'>"
- + "<A href='default.screen' id='location' target='bodyFrame' class='now_location'><B>Home</B></A> ";
-
- if( pgmGrName != null ) {
-
- strHtml += "<IMG src='/img/main/title_bullet.gif' width='4' height='7' alt='' border='0'>"
- + " "
- + "<A href='#' id='location' class='now_location'>" + pgmGrName + "</A>"
- + " ";
- }
-
- if( pgmName != null ) {
-
- strHtml += "<IMG src='/img/main/title_bullet.gif' width='4' height='7' alt='' border='0'>"
- + " "
- + "<A href='" + url + "' id='location' target='bodyFrame' class='now_location'>" + pgmName + "</A>"
- + " ";
- }
- try {
-
- if( document.all['NOW_LOCATION'] != null )
- document.all['NOW_LOCATION'].innerHTML = strHtml;
-
- else if( parent.document.all['NOW_LOCATION'] != null )
- parent.document.all['NOW_LOCATION'].innerHTML = strHtml;
-
- else if( parent.parent.document.all['NOW_LOCATION'] != null )
- parent.parent.document.all['NOW_LOCATION'].innerHTML = strHtml;
-
- else if( parent.parent.parent.document.all['NOW_LOCATION'] != null )
- parent.parent.parent.document.all['NOW_LOCATION'].innerHTML = strHtml;
-
- }
- catch(errorObject) {
-
- }
- }
-
- function doResize(){
- allmenu.width = allLayer.document.body.scrollHeight;
- allmenu.height = allLayer.document.body.scrollHeight;
-
-
- }
- function AllMenuViewLayer(id){
- if (document.all[id].style.display == "none"){
- document.getElementById("allLayer").src = "/all_menu.screen";
- document.all[id].style.display = "block";
- }else{
- document.all[id].style.display = "none";
- }
- }
-
- function MyMenuViewLayer(id){
- if (document.all[id].style.display == "none"){
- document.all.myLayer.width = "1px";
- document.all.myLayer.height = "1px";
- document.getElementById("myLayer").src = "/my_menu.screen";
- document.all[id].style.display = "block";
-
- }else{
- document.all[id].style.display = "none";
- }
- }
- function autoResize(){
- var bodyFrame = document.getElementById("bodyFrame");
-
- var iframeHeight= document.body.scrollHeight - 109;
-
- //alert(iframeHeight);
- bodyFrame.height = iframeHeight;
- }
-
- /* 3 depth menu script start */
- function onSubMenuOver(obj) {
- try {
- obj.style.backgroundColor='#cccccc';
- obj.style.color = "white";
- }
- catch(errorObject) {
- showErrorDlg(errorObject);
- }
- }
-
- function onSubMenuOut(obj) {
- try {
- obj.style.backgroundColor='#FFFFFF';
- obj.style.color = 'black';
- }
- catch(errorObject) {
- showErrorDlg(errorObject);
- }
- }
- /* 3 depth menu script end */
- </SCRIPT>
- </HEAD>
- <BODY onresize="autoResize()">
- <A id='menu_linker' target='bodyFrame' href='' style="display:none"></A>
- <form name="MenuChangeForm" method="post" action="/main.screen" >
- <input type="hidden" name="P_USE_SYSTEM">
- <div style="position:absolute;top:20px;right:30px;width:200px; z-index:100;">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><img src="/img/buyer/main/icon_01.png" /></td>
- <td> </td>
- <td><b><%=user.get("user_name") %></b>'s online.</td>
- </tr>
- </table>
- </div>
- <table align="center" cellpadding="0" cellspacing="0" style="width:100%;" border="0">
- <tr>
- <td valign="top" width="100%" height="100%" style="background-image:url('/img/buyer/main/sub_01.gif'); background-repeat:repeat-x;">
- <table width="100%" height="100%" cellpadding="0" cellspacing="0" >
- <tr>
- <td height="66" valign="top" >
- <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <!-- <td width="266" height="66" rowspan="2" style="padding-left:20px;" valign="top"> -->
- <td width="251" height="70" rowspan="2" align="right">
- <a href="/main.screen"><img src="/img/buyer/main/sub_logo.gif" alt="etecePMS" /></a>
- </td>
- <td height="47" align="right" valign="middle" class="t_white01_11" >
-
- </td>
- <%-- <td width="" height="25" class="t_white01_11" style="padding-right:30px; color:#eae9e2;" align="right" ><img src="/img/main/icon_01.png" /> <%=user.get("user_name") %>'s online.</td> --%>
- </tr>
- <tr>
- <td height="25" align="right" valign="bottom" style="padding-bottom:2px; padding-right:20px;">
- <table width="" border="0" cellpadding="0" cellspacing="0">
- <tr>
-
- <% if( menuManager.getSystemSize() > 0 ) { %>
- <% for( int i = 0 ; i < menuManager.getSystemSize() ; i++ ) { %>
- <% ValueObject row = menuManager.getSystemValue(i); %>
-
- <%
- for( int j = 0 ; j < menuManager.getMenuGroupSize() ; j++ ) {
- ValueObject row2 = menuManager.getMenuGroupValue(j);
- %>
- <%-- <td class="smenu" id="pgm_group_<%= j %>" index="<%= j %>" onmouseover="showSubMenu('pgm_group_<%= j %>');" onmouseout ="hideSubMenu('pgm_group_<%= j %>');" style="cursor:hand;"><%= row2.get("PGM_GR_NAME") %></td> --%>
-
- <td><img id="pgm_group_<%= j %>" name="system" src="<%= row2.get("OFF_IMAGE_PATH") %>"
- index="<%= j %>"
- onmouseover="showSubMenu('pgm_group_<%= j %>');"
- onmouseout ="hideSubMenu('pgm_group_<%= j %>');"
- style="cursor:pointer;"
- border="0"
- alt="<%= row2.get("PGM_GR_NAME") %>"></td>
- <td width="2"></td>
-
- <% } %>
-
- <% } %>
- <% } %>
- <td width="5"></td>
- <td><img src="/img/buyer/main/btn_logout.gif" onclick="self.location='/sign_potal_off.screen';" style="cursor:hand;"></td>
- <td width="2" ></td>
- <td width="44" class="style"><!--<img src="/img/main/help.gif">--></td>
- <td width="10"></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- <tr>
- <td height="31" align="left" valign="top" > </td>
- </tr>
- <tr>
- <td valign="top" align="center" style="height:100%">
- <IFRAME name="bodyFrame" id="bodyFrame" src="/default.screen" width="100%" height="100%" frameborder="0" id="BodyFrame" onload="autoResize(this)" ></IFRAME>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!-- <div style="position:absolute; z-index:50;height:auto important; width:100%; ">
- <IFRAME name="bodyFrame" src="/default.screen" width="100%" height="100%" frameborder="0" id="BodyFrame" onload="autoResize(this)" ></IFRAME>
- </div> -->
- </form>
- <!-- sub_menu 레이어시작 -->
- <%-- <% String paramStr = ""; %>
- <% if( menuManager.getSystemSize() > 0 ) { %>
- <% for( int i = 0 ; i < menuManager.getSystemSize() ; i++ ) { %>
- <% ValueObject row = menuManager.getSystemValue(i); %>
- <div id="systemMenu" name="systemMenu" index="<%= i %>" style="position:absolute; top:74px; Z-INDEX: 3; line-HEIGHT: 29px; display:none; cursor:pointer">
- <table height="25" border="0" align="right" cellpadding="0" cellspacing="0">
- <!-- <td><img src="/img/menu/group/start_line.gif"/></td> -->
- <%
- //String paramStr = "";
- for(java.util.Enumeration paramNames = request.getParameterNames(); paramNames.hasMoreElements();) {
- String paramName = (String)paramNames.nextElement();
- paramStr += paramName + "=" + request.getParameter(paramName) + "&";
- }
- for( int j = 0 ; j < menuManager.getMenuGroupSize() ; j++ ) {
- ValueObject row2 = menuManager.getMenuGroupValue(j);
- if(row.get("SYSTEM_ID").equals(row2.get("SYSTEM_ID"))){
- %>
- <td><img src="/img/buyer/main/sub_menu_bar.gif" /></td>
- <td class="smenu" id="pgm_group_<%= j %>" index="<%= j %>" onmouseover="showSubMenu('pgm_group_<%= j %>');" onmouseout ="hideSubMenu('pgm_group_<%= j %>');" style="cursor:hand;"><%= row2.get("PGM_GR_NAME") %></td>
- <td width="1"></td>
-
-
- <% } %>
- <%} %>
-
- </table>
- </div>
- <% } %>
- <% } %> --%>
- <!-- <div align="left" style="top:74px; left:0; Z-INDEX: 3; VISIBILITY: visible; POSITION:absolute; line-HEIGHT: 29px; ">
- 상단 메뉴 2
- <table height="25" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="100%" style="padding-right:60px;" >
- </td>
- <td width="15"></td>
- </tr>
- tr>
- <td height="23" bgcolor="B3D1CE" id="NOW_LOCATION" colspan="3">
- <A href='default.screen' id='location' target='bodyFrame' class="now_location"><B>Home</B></A>
- </td>
- </tr>
- </table>
- 상단 메뉴 2
- </div> -->
-
- <%
- for( int i = 0 ; i < menuManager.getMenuGroupSize() ; i++ ) { %>
- <% ValueObject row = menuManager.getMenuGroupValue(i); %>
- <% int subRowSetSize = menuManager.getSubMenuRowSetSize(i);
- int cnt_big = 0;
- int cnt_small = 0;
- for( int j = 0 ; j < subRowSetSize ; j++ ) {
- ValueObject subRow = menuManager.getSubMenuRowValue(i, j);
- if( subRow.get("GUBUN").equals("P") )
- cnt_big ++;
- else if( subRow.get("GUBUN").equals("L") && j != 0 && j != subRowSetSize - 1 )
- cnt_small ++;
- }
- int height = cnt_big * 22 + cnt_small * 10 + 2;
- %>
- <DIV id="subMenuLayer"
- onmouseover="showSubMenu('pgm_group_<%= i %>');"
- onmouseout ="hideSubMenu('pgm_group_<%= i %>');"
- style="position:absolute; left:1px; top:1px; z-index:1; display:none;">
- <TABLE width="<%= menuManager.getSubMenuWidth(i) %>" height="<%= height %>" border="0" cellspacing="0" cellpadding="0" style="cursor:pointer;
- border-color: #404149; border-style: solid; border-top-width: 0px; border-bottom-width: 2px; border-right-width: 2px; border-left-width: 2px;
- filter=progid:DXImageTransform.Microsoft.fade(duration=0.2) progid:DXImageTransform.Microsoft.Shadow(color='#777777', direction=135, Strength=5);">
- <%
- for( int j = 0 ; j < subRowSetSize ; j++ ) { %>
- <% ValueObject subRow = menuManager.getSubMenuRowValue(i, j); %>
- <% if( subRow.get("GUBUN").equals("P") ) { %>
- <TR height="22">
- <TD onclick="parent.goMenu('<%= subRow.get("SCREEN_NAME") %>', '<%= params.get("PGM_GR_NAME") %>', '<%= subRow.get("PGM_NAME") %>');"
- onmouseover="onSubMenuOver(this);"
- onmouseout ="onSubMenuOut(this);"
- style="TEXT-INDENT:10px;"
- align="left" bgcolor="white">
- <%-- 레이어의 길이를 자동 산출하기 위해 고정길이 글꼴 사용 --%>
- <FONT face="굴림체" color="#000000"><%= subRow.get("PGM_NAME") %></FONT>
- </TD>
- </TR>
- <%
- }
- else if( subRow.get("GUBUN").equals("L") && j != 0 && j != subRowSetSize - 1 ) { %>
- <!-- Line -->
- <TR height="10">
- <TD>
- <TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
- <TR>
- <TD bgcolor="white" width="4"></TD>
- <TD bgcolor="white"><IMG src="/img/main/menuline_bg.gif" border="0" width="100%" height="10"></TD>
- <TD bgcolor="white" width="4"></TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <!-- Line -->
- <% } %>
- <% }
- %>
- <%-- <iframe width="100%" height="<%= height %>px" src="/main_submenu.screen?<%=paramStr%>i=<%= i %>&PGM_GR_NAME=<%=StringUtils.URLEncode(row.get("PGM_GR_NAME"))%>" style="margin:0; overflow-x:hidden; overflow-y:hidden;" marginwidth=0 marginheight=0 scrolling="no" frameborder="0"></iframe> --%>
- </TABLE>
- </DIV>
- <% } %>
- </BODY>
- </HTML>
-
- <% }else { %>
- <META HTTP-EQUIV="refresh" Content="0.1; url=/index.screen">
- <% } %>
|