init
This commit is contained in:
@@ -0,0 +1,264 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"%>
|
||||
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceType"%>
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceTypeManager"%>
|
||||
<%@page import="com.eactive.eai.common.util.SystemUtil"%>
|
||||
<%@page import="com.eactive.eai.rms.env.EmsConfig"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<c:set var="themeColor" value="<%=System.getProperty(\"theme.color\")%>" scope="session" />
|
||||
|
||||
<%
|
||||
String sysMode = (String)System.getProperty("eai.systemmode");
|
||||
String sysModeName = "";
|
||||
/* System.out.println("##### SERVER_TYPE ====>"+sysMode); */
|
||||
if( sysMode == null ) {
|
||||
sysMode = "";
|
||||
}
|
||||
if (sysMode.equals("T")) {
|
||||
sysModeName = "테스트";
|
||||
} else if (sysMode.equals("D")){
|
||||
sysModeName = "개발";
|
||||
}else {
|
||||
sysModeName = "";
|
||||
}
|
||||
|
||||
String systemModeTitle = SystemUtil.getSystemModeTitle();
|
||||
String drmode = System.getProperty(EmsConfig.DR_MODE);
|
||||
if ("Y".equals(drmode)) {
|
||||
systemModeTitle = "[DR] ";
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
String resultMsg = (String)session.getAttribute("resultMsg");
|
||||
session.removeAttribute("resultMsg");
|
||||
session.removeAttribute("SSO_ID");
|
||||
request.removeAttribute("SSO_ID");
|
||||
|
||||
|
||||
if( resultMsg == null ) {
|
||||
resultMsg = "";
|
||||
}
|
||||
%>
|
||||
|
||||
<script src="js/jquery-1.12.1.min.js"></script>
|
||||
<!-- <script src="js/popper.js"></script> -->
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="css/login-style.css">
|
||||
<link rel="stylesheet" href="css/login-fontawesome_all.css">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
||||
<META HTTP-EQUIV="Cache-control" CONTENT="no-cache">
|
||||
<link rel="icon"
|
||||
href="<c:url value="/img/ic_eai_favi_${themeColor}.png"/>"
|
||||
type="image/ico" sizes="16x16" />
|
||||
<title><%=systemModeTitle%><%=localeMessage.getString("screen.title")%></title>
|
||||
<%-- <jsp:include page="/jsp/common/include/css.jsp"/> --%>
|
||||
<jsp:include page="/jsp/common/include/script.jsp"/>
|
||||
<script type="text/javascript">
|
||||
if( self.name == 'mainFrame' || self.name == 'leftFrame' || self.name == 'topFrame') {
|
||||
parent.window.location.href='<c:url value="/"/>';
|
||||
}
|
||||
|
||||
function fncPreMain() {
|
||||
if ($("input[name=userId]").val() ==null || $("input[name=userId]").val().length == 0 ){
|
||||
alert("<%= localeMessage.getString("login.checkid") %>");
|
||||
$("input[name=userId]").trigger("focus");
|
||||
return;
|
||||
}
|
||||
if ($("input[name=password]").val() ==null || $("input[name=password]").val().length == 0 ){
|
||||
alert("<%= localeMessage.getString("login.checkpwd1") %>");
|
||||
$("input[name=password]").trigger("focus");
|
||||
return;
|
||||
}
|
||||
if ($("select[name=serviceType]").val() ==null|| $("select[name=serviceType]").val().length == 0 ){
|
||||
alert("<%= localeMessage.getString("login.checkservicetype") %>");
|
||||
$("select[name=serviceType]").trigger("focus");
|
||||
return;
|
||||
}
|
||||
sessionStorage["serviceType"]= $("select[name=serviceType]").val();
|
||||
$("#loginForm").submit();
|
||||
}
|
||||
function changePwd(){
|
||||
if ($("input[name=userId]").val() == null || $("input[name=userId]").val().length == 0 ){
|
||||
alert("<%= localeMessage.getString("login.checkid") %>");
|
||||
$("input[name=userId]").trigger("focus");
|
||||
return;
|
||||
}
|
||||
if ($("input[name=password]").val() == null || $("input[name=password]").val().trim().length == 0 ){
|
||||
alert("<%= localeMessage.getString("login.checkpwd1") %>");
|
||||
$("input[name=password]").trigger("focus");
|
||||
return;
|
||||
}
|
||||
if ($("input[name=password]").length == 0){
|
||||
alert("<%= localeMessage.getString("login.checkpwd2") %>");
|
||||
return ;
|
||||
}
|
||||
if ($("input[name=changePassword]").length == 0){
|
||||
alert("<%= localeMessage.getString("login.checkpwd3") %>");
|
||||
return ;
|
||||
}
|
||||
if ($("input[name=confirmPassword]").val() != $("input[name=changePassword]").val()){
|
||||
alert("<%= localeMessage.getString("login.checkpwd4") %>");
|
||||
return ;
|
||||
}
|
||||
if ($("input[name=userId]").val() == $("input[name=changePassword]").val()){
|
||||
alert("<%= localeMessage.getString("login.checkpwd5") %>");
|
||||
return ;
|
||||
}
|
||||
|
||||
//if (idCheck.checked){
|
||||
// setCookie("key",id);
|
||||
//}
|
||||
<%-- $("form").attr("action","<c:url value="/changePassword.do"/>");
|
||||
//$("form").action = "<%=request.getContextPath()%>/changePassword.do";
|
||||
--%>
|
||||
$("form").submit();
|
||||
}
|
||||
|
||||
function openPwdChgWindow() {
|
||||
|
||||
<%
|
||||
if(sysMode.equals("T") || sysMode.equals("D")) {
|
||||
%>
|
||||
windowOpen("http://ssodev.kbankwithu.com:7010", "PopupWindow", 1024, 768);
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
windowOpen("https://ssoap.kbankwithu.com/nls3/clientLogin.jsp", "PopupWindow", 1024, 768);
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("input[name=userId]").keydown(function(event){
|
||||
if ( event.which == 13 ) {
|
||||
fncPreMain();
|
||||
}
|
||||
});
|
||||
$("input[name=password]").keydown(function(event){
|
||||
if ( event.which == 13 ) {
|
||||
fncPreMain();
|
||||
}
|
||||
});
|
||||
$("input[name=changePassword]").keydown(function(event){
|
||||
if ( event.which == 13 ) {
|
||||
changePwd();
|
||||
}
|
||||
});
|
||||
$("input[name=confirmPassword]").keydown(function(event){
|
||||
if ( event.which == 13 ) {
|
||||
changePwd();
|
||||
}
|
||||
});
|
||||
$("select[name=serviceType]").change(function(){
|
||||
fncPreMain();
|
||||
});
|
||||
|
||||
$("#btn_login").click(function(){
|
||||
fncPreMain();
|
||||
});
|
||||
$("#changePwd").click(function(){
|
||||
changePwd();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container mt-5">
|
||||
<div class="row justify-content-left mb-3">
|
||||
<div class="col-md-12 text-center">
|
||||
<img style="width: 20%;opacity: 0.4;" src='<c:url value="/img/logo_eactive.png"/>'/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 text-center">
|
||||
<h1 style="vertical-align: middle !important" class="h1"><span class="text-danger">e</span><span class="text-info">Link Monitoring Admin</span></h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-7 col-lg-5">
|
||||
<div class="login-wrap p-4 p-md-5">
|
||||
<div class="icon text-danger d-flex align-items-center justify-content-center">
|
||||
<img style="width: 40px;" src='<c:url value="/img/login/user.png"/>'/>
|
||||
</div>
|
||||
<h3 class="text-center mb-4">Log In</h3>
|
||||
<form name="form" id="loginForm" action="<c:url value="/login.do"/>" method="post">
|
||||
<div class="form-group">
|
||||
<input type="text" name="userId" class="form-control rounded-left" placeholder="Id" required>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<input type="password" name="password" class="form-control rounded-left" placeholder="Password" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<select name="serviceType" class="form-control rounded-left" placeholder="system" required>
|
||||
<%
|
||||
for (DataSourceType dt : DataSourceTypeManager.getDynamicDataSourceTypes()){
|
||||
%>
|
||||
<option value="<%=dt.getName()%>"><%=dt.getText()%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="button" id ="btn_login" class="form-control btn btn-primary rounded submit px-3" value="Login">
|
||||
</div>
|
||||
<div style="text-align: right !important;" class="form-group">
|
||||
<a style="font-size: 12px !important;" href="#pwdChgSsoModal" onclick="openPwdChgWindow()" >Password Change</a>
|
||||
<!-- <a style="font-size: 12px !important;" href="#pwdChgModal" data-toggle="modal" >Password Change</a> -->
|
||||
</div>
|
||||
<p style="color:red;"><%=resultMsg %></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<%-- <div class="modal fade" id="pwdChgModal" tabindex="-1" role="dialog" aria-labelledby="pwdChgModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="pwdChgModalLabel">Password 설정</h5>
|
||||
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">X</span>
|
||||
</button>
|
||||
</div>
|
||||
<form name="form" id="modalLoginForm" action="<c:url value="/changePassword.do"/>" method="post">
|
||||
<div class="modal-body">
|
||||
<div class="form-group d-flex">
|
||||
<input type="text" name="userId" class="form-control rounded-left" placeholder="User Id" required>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<input type="password" name="password" class="form-control rounded-left" placeholder="<%= localeMessage.getString("login.placeholderCurrentPassword") %>" required>
|
||||
</div>
|
||||
<p><%= localeMessage.getString("login.toChangePasswordMessage") %></p>
|
||||
<div class="form-group d-flex">
|
||||
<input type="password" name="changePassword" class="form-control rounded-left" placeholder="<%= localeMessage.getString("login.placeholderChangePassword") %>" required>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<input type="password" name="confirmPassword" class="form-control rounded-left" placeholder="<%= localeMessage.getString("login.placeholderConfirmationPassword") %>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input type="button" id ="changePwd" class="form-control btn btn-primary rounded submit px-3" value="변경">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div> --%>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<%@page import="com.eactive.eai.rms.common.acl.menu.ui.MenuUI"%>
|
||||
<%@ page contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.acl.menu.MenuRenderController"%>
|
||||
<%@page import="com.eactive.eai.rms.common.login.SessionManager"%>
|
||||
<%@page import="com.eactive.eai.rms.common.util.CommonConstants"%>
|
||||
<%@page import="com.eactive.eai.rms.common.util.StringUtils"%>
|
||||
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
|
||||
<%@ page import="java.util.List"%>
|
||||
<%@ page import="java.util.HashMap"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%
|
||||
String menuId = (String) request.getAttribute("menuId");
|
||||
String menuName = (String) request.getAttribute("menuName");
|
||||
List<MenuUI> list = (List<MenuUI>) request.getAttribute("leftMenuList");
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script language="javascript" src="<c:url value="/js/jquery-1.12.1.min.js"/>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<c:url value="/css/web_ui.css"/>" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/theme_${themeColor}.css"/>" />
|
||||
<script>
|
||||
|
||||
var menuId = '<%=menuId%>';
|
||||
|
||||
//메인 페이지 이동하기
|
||||
function goPage(pUrl, id) {
|
||||
|
||||
var pageUrl = pUrl;
|
||||
|
||||
if (pUrl.indexOf("?")>-1){
|
||||
pageUrl += "&";
|
||||
}else{
|
||||
pageUrl += "?";
|
||||
}
|
||||
|
||||
pageUrl += "menuId="+id;
|
||||
pageUrl += "&serviceType="+sessionStorage["serviceType"];
|
||||
|
||||
parent.mainFrame.location.href= pageUrl;
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$(".menuList").click(function() {
|
||||
var menuListId = $(this).attr('id');
|
||||
$(".menuList").removeClass('on');
|
||||
$("#"+menuListId).addClass('on');
|
||||
});
|
||||
|
||||
if(menuId.substring(menuId.length-3, menuId.length)=='000') {
|
||||
$(".menuList").first().addClass('on');
|
||||
} else {
|
||||
$("#"+menuId).addClass('on');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="left_box">
|
||||
<div class="title"><%=menuName%></div>
|
||||
<ul class="depth3">
|
||||
<%
|
||||
for (MenuUI menuUi : list) {
|
||||
%>
|
||||
<li id="<%=menuUi.getMenuId()%>" class="menuList"><a href="javascript:goPage('<%=menuUi.getMenuUrl()%>','<%=menuUi.getMenuId()%>');"><%=menuUi.getMenuName()%></a></li>
|
||||
<%} %>
|
||||
</ul>
|
||||
</div><!-- end left_box -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<%@ page contentType="text/html; charset=utf-8"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.login.SessionManager"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.datasource.DataSourceContextHolder"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
<%
|
||||
|
||||
String SERVER_TYPE = (com.eactive.eai.common.util.SystemUtil.isProdServer())? "" :
|
||||
//(com.eactive.eai.common.util.SystemUtil.isTestServer())? "T" :
|
||||
(com.eactive.eai.common.util.SystemUtil.isStagingServer())? "S" :
|
||||
(com.eactive.eai.common.util.SystemUtil.isDevServer()) ? "D" :"";
|
||||
%>
|
||||
<c:set var="SERVER_TYPE" value="<%=SERVER_TYPE%>"/>
|
||||
<script language="Javascript">
|
||||
function logout(){
|
||||
|
||||
if( ! confirm('<%= localeMessage.getString("screen.logoutMsg") %>') ) {
|
||||
return ;
|
||||
}
|
||||
|
||||
// 자식창이 있으면 닫아준다.
|
||||
var winChild = window.open("", "RMSDASHBOARD", "width=1,height=1,left=1,top=1");
|
||||
if( winChild ) {
|
||||
winChild.close();
|
||||
}
|
||||
|
||||
//top.location.href='<%=request.getContextPath()%>/LoginServlet?method=logout';
|
||||
top.location.href='<%=request.getContextPath()%>/rms/logout.do';
|
||||
}
|
||||
</script>
|
||||
<table width="167px" style="margin-top:0px">
|
||||
<tr>
|
||||
<td align="center"><font size="6"> <%=DataSourceContextHolder.getDataSourceType().getText() %></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="167px" background="images/common/userBg.gif" style="margin-top:0px">
|
||||
<c:if test="${!empty SERVER_TYPE}">
|
||||
<tr>
|
||||
<td colspan="4" height="30px" background="images/common/eaiDevTitle_<c:out value="${SERVER_TYPE }"/>.gif"></td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<td width="7px" height="30px"><img src="images/common/userLeft.gif"></td>
|
||||
<td background="images/common/userBg.gif"><a href="#"><img src="images/button/btnLogout.gif" onclick="logout()" alt="<%= localeMessage.getString("screen.logout") %>"></a></td>
|
||||
<td align="right" background="images/common/userBg.gif" class="userName"> <%=SessionManager.getUserId(request)%> <%= localeMessage.getString("screen.customer") %></td>
|
||||
<td width="7px" align="right"><img src="images/common/userRight.gif"></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,103 @@
|
||||
<%@ page contentType="text/html; charset=utf-8"%>
|
||||
<%@page import="com.eactive.eai.rms.common.util.StringUtils"%>
|
||||
<%@page import="com.eactive.eai.rms.env.EmsConfig"%>
|
||||
<%@page import="com.eactive.eai.common.util.SystemUtil"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
|
||||
<%
|
||||
String topPage = request.getContextPath() + StringUtils.defaultString((String) request.getAttribute("topPage"), "/top_04.do");
|
||||
|
||||
String mainPage = StringUtils.defaultString((String) request.getAttribute("mainPage"), "");
|
||||
String menuId = StringUtils.defaultString((String) request.getAttribute("menuId"), "");
|
||||
|
||||
if (!"".equals(mainPage)) {
|
||||
topPage = topPage + "?mainPage=" + mainPage;
|
||||
}
|
||||
|
||||
if(!"".equals(menuId)) {
|
||||
if(topPage.contains("?")) {
|
||||
topPage += "&menuId=" + menuId;
|
||||
} else {
|
||||
topPage += "?menuId=" + menuId;
|
||||
}
|
||||
}
|
||||
|
||||
//2020.04.28 탭에 서버 구분표시 김소희차장님 요청반영
|
||||
String systemModeTitle = SystemUtil.getSystemModeTitle();
|
||||
|
||||
String drmode = System.getProperty(EmsConfig.DR_MODE);
|
||||
|
||||
if("Y".equals(drmode)){
|
||||
systemModeTitle = "[DR] ";
|
||||
}
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= systemModeTitle %><%= localeMessage.getString("screen.title") %></title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="icon" href="<c:url value="/img/ic_eai_favi_${themeColor}.png"/>" type="image/ico" sizes="16x16" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/web_ui.css"/>"/>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/theme_${themeColor}.css"/>" />
|
||||
<script language="javascript" src="<c:url value="/js/jquery-1.12.1.min.js"/>"></script>
|
||||
<script language="javascript">
|
||||
var $ = jQuery.noConflict();
|
||||
var urlParam = window.document.location.search;
|
||||
var mod = "";
|
||||
var strServiceType = "<%=request.getParameter("serviceType")%>";
|
||||
if(urlParam != ""){
|
||||
if(urlParam.indexOf("mod=") > -1){
|
||||
mod = urlParam.substring((urlParam.indexOf("mod=") + 4), urlParam.lastIndexOf("&"));
|
||||
sessionStorage["mod"] = mod;
|
||||
}
|
||||
|
||||
// 대시보드 상세화면으로부터 특정화면을 지정하여 Open 하는 경우.
|
||||
// session에 저장되어 있는 serviceType과 화면 지정할 때 선택한 serviceType이 다른 경우
|
||||
// 대시보드 상세화면에서 지정한 serviceType으로 session에 저장되어 있는 serviceType을 변경합니다.
|
||||
if(strServiceType != "null" && sessionStorage["serviceType"] != strServiceType)
|
||||
{
|
||||
sessionStorage["serviceType"] = strServiceType;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var url = '<%=topPage%>';
|
||||
if (url.indexOf("?")>=0){
|
||||
url = url + "&serviceType="+ sessionStorage["serviceType"];
|
||||
}else{
|
||||
url = url + "?serviceType="+ sessionStorage["serviceType"];
|
||||
}
|
||||
|
||||
$("#topFrame").attr('src',url);
|
||||
|
||||
$(".topMenu").load(function(){ // iframe이 모두 load된후 제어
|
||||
$(".topMenu").contents().find('.gnb').on("mouseenter", function(e){
|
||||
$(".topMenu").css("height","450px");
|
||||
});
|
||||
$(".topMenu").contents().find('.gnb').on("mouseleave",function(e){
|
||||
$(".topMenu").css("height","80px");
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
function changeLocale(lang){
|
||||
console.log("lang : " + lang);
|
||||
location.href = "/monitoring/main.do?lang="+lang;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe class="topMenu" src="" id="topFrame" name="topFrame" scrolling="no" noresize="noresize"></iframe>
|
||||
<iframe class="leftMenu" src="" name="leftFrame" scrolling="no" noresize="noresize"></iframe>
|
||||
<iframe class="rightCon" src="" name="mainFrame" scrolling="auto"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,602 @@
|
||||
<%@ page contentType="text/html; charset=utf-8" %>
|
||||
<%@page import="com.eactive.eai.rms.common.util.CommonConstants" %>
|
||||
<%@page import="java.util.List" %>
|
||||
<%@page import="java.util.HashMap" %>
|
||||
<%@page import="java.util.ArrayList" %>
|
||||
<%@page import="com.eactive.eai.rms.common.login.SessionManager" %>
|
||||
<%@page import="com.eactive.eai.rms.common.login.LoginVo" %>
|
||||
<%@page import="com.eactive.eai.common.util.SystemUtil" %>
|
||||
<%@page import="com.eactive.eai.rms.common.util.StringUtils" %>
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceType" %>
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceTypeManager" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
|
||||
<%
|
||||
String serviceKey = SessionManager.getServiceTypeKey(request);
|
||||
String serviceText = DataSourceTypeManager.getDataSourceType(serviceKey).getText();
|
||||
String roleScreenId = (String) request.getAttribute("roleScreenId");
|
||||
String mainPage = (String) request.getAttribute("mainPage");
|
||||
String menuId = (String) request.getAttribute("menuId");
|
||||
String themeName = (String) request.getAttribute("themeName");
|
||||
if (roleScreenId != null && roleScreenId.length() > 3) {
|
||||
// 중메뉴 아이디를 비교하기 위해서 세부메뉴아이디인 우측 3자리는 제외시킨다.
|
||||
//roleScreenId = roleScreenId.substring(0, roleScreenId.length() - 3);
|
||||
}
|
||||
StringBuffer top_img = new StringBuffer(); // top메뉴 이미지 순서
|
||||
StringBuffer subLayer = new StringBuffer(); // sub메뉴 레이어
|
||||
int firstSubCnt = 0;
|
||||
int topCnt = 0;
|
||||
int topListSize = 0;
|
||||
String firstTopMenuId = "";
|
||||
String firstSubMenuId = "";
|
||||
String firstSubMenuUrl = "";
|
||||
String firstLayerName = "menu1";
|
||||
|
||||
String menuUrlFromMenuId = "";
|
||||
|
||||
int topPosition = 1;
|
||||
int topCount = 0;
|
||||
int subPosition = 1;
|
||||
int subCount = 0;
|
||||
|
||||
List list = (List) request.getAttribute("topMenuList");
|
||||
|
||||
//메뉴관련 데이터 정렬 - sub관련 정의를 subMap에 담아 subList에 담기 -> 해당 subList를 topMap에 담기 -> topMap을 topList에 담아 두기.
|
||||
HashMap map = null;
|
||||
|
||||
String topTemp = "";
|
||||
String subTemp = "";
|
||||
|
||||
List topList = new ArrayList();
|
||||
List subList = null;
|
||||
|
||||
HashMap topMap = null;
|
||||
HashMap subMap = null;
|
||||
|
||||
/** menuRender **/
|
||||
if (menuId != null ? !menuId.equals("") : false) {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
map = (HashMap) list.get(i);
|
||||
if (((String) map.get("LEV4_ID")).equals(menuId)) {
|
||||
menuUrlFromMenuId = (String) map.get("LEV4_URL");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
map = (HashMap) list.get(i);
|
||||
String thisTop = (String) map.get("LEV2_ID");
|
||||
String thisTopNm = (String) map.get("LEV2_NAME");
|
||||
String thisSub = (String) map.get("LEV3_ID");
|
||||
|
||||
|
||||
if (!thisTop.equals(topTemp)) {
|
||||
//top end 관련
|
||||
if (topCnt > 0) {
|
||||
topMap.put("SUB_MAP", subList);
|
||||
|
||||
topList.add(topMap);
|
||||
}
|
||||
|
||||
//top start 관련
|
||||
topMap = new HashMap();
|
||||
subList = new ArrayList();
|
||||
topMap.put("TOP_ID", thisTop);
|
||||
topMap.put("TOP_NAME", thisTopNm);
|
||||
topMap.put("TOP_IMG", (String) map.get("LEV2_IMG"));
|
||||
|
||||
topMap.put("TOP_LEFTID", (String) map.get("LEV3_ID"));
|
||||
if (!"NAN".equals((String) map.get("LEV2_URL"))) {
|
||||
topMap.put("TOP_URLID", (String) map.get("LEV2_ID"));
|
||||
topMap.put("TOP_URL", (String) map.get("LEV2_URL"));
|
||||
} else {
|
||||
topMap.put("TOP_URLID", (String) map.get("LEV4_ID"));
|
||||
topMap.put("TOP_URL", (String) map.get("LEV4_URL"));
|
||||
}
|
||||
|
||||
topCnt++;
|
||||
topTemp = thisTop;
|
||||
|
||||
subMap = new HashMap();
|
||||
subMap.put("SUB_ID", map.get("LEV3_ID"));
|
||||
subMap.put("SUB_NAME", map.get("LEV3_NAME"));
|
||||
subMap.put("SUB_URL", map.get("LEV4_URL"));
|
||||
subMap.put("SUB_URLID", map.get("LEV4_ID"));
|
||||
subList.add(subMap);
|
||||
} else { //top 같을때 - sub가 다를경우에만 담아둠
|
||||
if (!thisSub.equals(subTemp)) {
|
||||
subMap = new HashMap();
|
||||
subMap.put("SUB_ID", map.get("LEV3_ID"));
|
||||
subMap.put("SUB_NAME", map.get("LEV3_NAME"));
|
||||
subMap.put("SUB_URL", map.get("LEV4_URL"));
|
||||
subMap.put("SUB_URLID", map.get("LEV4_ID"));
|
||||
subList.add(subMap);
|
||||
}
|
||||
}
|
||||
subTemp = thisSub;
|
||||
|
||||
//top end 관련
|
||||
if (i + 1 == list.size()) {
|
||||
topMap.put("SUB_MAP", subList);
|
||||
|
||||
topList.add(topMap);
|
||||
}
|
||||
}
|
||||
|
||||
//메뉴 구성하기
|
||||
topListSize = topList.size();
|
||||
int layerLeft = 0;
|
||||
|
||||
topCount = topListSize; // default
|
||||
|
||||
String tmpScrId = roleScreenId;
|
||||
if (tmpScrId != null && tmpScrId.length() > 3) {
|
||||
tmpScrId = roleScreenId.substring(0, roleScreenId.length() - 3);
|
||||
}
|
||||
|
||||
if (topListSize > 0) {
|
||||
HashMap displayMap = new HashMap();
|
||||
HashMap displaySubMap = new HashMap();
|
||||
int topIndex = 0;
|
||||
int subListSize = 0;
|
||||
|
||||
String topUrl = "";
|
||||
for (int i = 0; i < topListSize; i++) {
|
||||
topIndex = i + 1;
|
||||
displayMap = (HashMap) topList.get(i);
|
||||
|
||||
List subMenuList = (List) displayMap.get("SUB_MAP");
|
||||
subListSize = subMenuList.size();
|
||||
|
||||
int subIndex = 0;
|
||||
String subId = "";
|
||||
String subName = "";
|
||||
String subUrl = "";
|
||||
String subUrlId = "";
|
||||
for (int j = 0; j < subListSize; j++) {
|
||||
displaySubMap = (HashMap) subMenuList.get(j);
|
||||
|
||||
subIndex = j + 1;
|
||||
layerLeft = 20;
|
||||
subId = (String) displaySubMap.get("SUB_ID");
|
||||
subName = (String) displaySubMap.get("SUB_NAME");
|
||||
subUrlId = (String) displaySubMap.get("SUB_URLID");
|
||||
subUrl = displaySubMap.get("SUB_URL") + "?menuId=" + subUrlId;
|
||||
|
||||
if (j == 0) {
|
||||
//첫번째 메뉴의 서브카운트 갯수 -> loading시 실행될 js에서 사용하기 위함
|
||||
if (i == 0) {
|
||||
firstSubCnt = subListSize;
|
||||
subCount = firstSubCnt; // default
|
||||
firstTopMenuId = subId;
|
||||
firstSubMenuId = subId;
|
||||
firstSubMenuUrl = subUrl;
|
||||
}
|
||||
|
||||
//div start ( for default value )
|
||||
subLayer.append("<li>");
|
||||
subLayer.append("<a href=\"javascript:goPage2('" + request.getContextPath() + "/leftMenu.do?menuId=" + displayMap.get("TOP_LEFTID") + "', '" + subUrl + "', '" + displayMap.get("TOP_URLID") + "')\">" + displayMap.get("TOP_NAME") + "</a>");
|
||||
subLayer.append("<div class='red_box'></div>");
|
||||
subLayer.append("<ul class='depth2'>");
|
||||
|
||||
}
|
||||
|
||||
subLayer.append("<li><a href=\"javascript:goPage2('" + request.getContextPath() + "/leftMenu.do?menuId=" + subId + "', '" + subUrl + "', '" + subUrlId + "')\">" + subName + "</a></li>");
|
||||
if (subIndex == subListSize) {
|
||||
// div end
|
||||
subLayer.append("</ul>");
|
||||
subLayer.append("</li>");
|
||||
}
|
||||
|
||||
if (subUrlId != null && tmpScrId != null && subUrlId.startsWith(tmpScrId)) {
|
||||
// 현재 왼쪽의 첫번째 메뉴만 사용할 수 있으나
|
||||
// 차후에 기타메뉴도 초기화면에서 선택할수 있도록 수정해야 할것.
|
||||
// 서브메뉴의 하위항목 비교를 수행하면 된다.
|
||||
firstTopMenuId = subId;
|
||||
firstSubMenuId = subUrlId;
|
||||
firstSubMenuUrl = subUrl;
|
||||
firstLayerName = "menu" + topIndex;
|
||||
topPosition = topIndex;
|
||||
subPosition = subIndex;
|
||||
topCount = topListSize;
|
||||
subCount = subListSize;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//마지막 로그인일시
|
||||
String LastLoginYms = "";
|
||||
//마지막 로그인Ip
|
||||
String LastLoginIp = "";
|
||||
|
||||
if (session.getAttribute("LastLoginYms") != null) {
|
||||
LastLoginYms = (String) session.getAttribute("LastLoginYms");
|
||||
}
|
||||
|
||||
if (session.getAttribute("LastLoginIp") != null) {
|
||||
LastLoginIp = (String) session.getAttribute("LastLoginIp");
|
||||
}
|
||||
|
||||
if (!"".equals(LastLoginYms.trim())) {
|
||||
LastLoginYms = LastLoginYms.substring(0, 4) + "-" + LastLoginYms.substring(4, 6) + "-" + LastLoginYms.substring(6, 8) + " "
|
||||
+ LastLoginYms.substring(8, 10) + ":" + LastLoginYms.substring(10, 12) + ":" + LastLoginYms.substring(12, 14);
|
||||
}
|
||||
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= localeMessage.getString("screen.title") %>
|
||||
</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<!--[if lt IE 9]>
|
||||
<script language="javascript" src="<c:url value="/js/html5shiv.js"/>"></script>
|
||||
<script language="javascript" src="<c:url value="/js/IE9.js"/>"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/web_ui.css"/>"/>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/theme_${themeColor}.css"/>"/>
|
||||
<script language="javascript" src="<c:url value="/js/jquery-1.12.1.min.js"/>"></script>
|
||||
<script language="javascript" src="<c:url value="/js/prefixfree.min.js"/>"></script>
|
||||
<script language="javascript" src="<c:url value="/js/jquery.cookie.js"/>"></script>
|
||||
|
||||
<script language="JavaScript">
|
||||
var filter = "win16|win32|win64|mac|macintel";
|
||||
var ismobile = false;
|
||||
|
||||
if (navigator.platform) {
|
||||
if (filter.indexOf(navigator.platform.toLowerCase()) < 0) {
|
||||
//mobile
|
||||
console.log('mobile 접속');
|
||||
ismobile = true;
|
||||
}
|
||||
}
|
||||
|
||||
function strStartsWith(str, prefix) {
|
||||
return str.indexOf(prefix) === 0;
|
||||
}
|
||||
|
||||
function goNavUrl(url) {
|
||||
var data = "";
|
||||
var isServiceType = false;
|
||||
var u = url.split("?");
|
||||
if (u.length == 1) {
|
||||
data = u[0] + "?" + "serviceType=" + sessionStorage["serviceType"];
|
||||
} else if (u.length >= 2) {
|
||||
var params = "";
|
||||
for (var i = 1; i < u.length; i++) {
|
||||
params += u[i] + "&";
|
||||
}
|
||||
u[1] = params;
|
||||
|
||||
data = u[0];
|
||||
var u2 = u[1].split("[&|?]");
|
||||
var prefix = "";
|
||||
for (var i = 0; i < u2.length; i++) {
|
||||
if (i == 0) {
|
||||
prefix = "?";
|
||||
} else {
|
||||
prefix = "&";
|
||||
}
|
||||
if (strStartsWith(u2[i], "serviceType=")) {
|
||||
isServiceType = true;
|
||||
data = data + prefix + "serviceType=" + sessionStorage["serviceType"];
|
||||
} else {
|
||||
data = data + prefix + u2[i];
|
||||
}
|
||||
}
|
||||
if (!isServiceType) {
|
||||
if (data.indexOf("?") >= 0) {
|
||||
data = data + "&" + "serviceType=" + sessionStorage["serviceType"];
|
||||
} else {
|
||||
data = data + "?" + "serviceType=" + sessionStorage["serviceType"];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return goNavUrl(u[0] + "?" + u[1]);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
//왼쪽메뉴, 메인 페이지 이동
|
||||
function goPage2(page1, page2, page2_id) {
|
||||
parent.leftFrame.location.href = goNavUrl(page1);
|
||||
parent.mainFrame.location.href = goNavUrl(page2);
|
||||
}
|
||||
|
||||
var sessionAjax = createAjaxRequest();
|
||||
|
||||
function getAjaxData() {
|
||||
var reqAjax = sessionAjax;
|
||||
|
||||
try {
|
||||
if (reqAjax.readyState == 4) {
|
||||
if (reqAjax.status == 200) {
|
||||
return reqAjax.responseText;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
reqAjax = null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function createAjaxRequest() {
|
||||
var reqAjax = null;
|
||||
try {
|
||||
reqAjax = new XMLHttpRequest();
|
||||
} catch (trymicrosoft) {
|
||||
try {
|
||||
reqAjax = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (othermicrosoft) {
|
||||
try {
|
||||
reqAjax = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (failed) {
|
||||
reqAjax = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (reqAjax == null) {
|
||||
alert("Error creating request object!");
|
||||
}
|
||||
|
||||
return reqAjax;
|
||||
}
|
||||
|
||||
var isSession = "";
|
||||
|
||||
function getSession() {
|
||||
var url = "<%=request.getContextPath()%>/checkSession.do";
|
||||
var reqAjax = sessionAjax;
|
||||
reqAjax.open('GET', url, true);
|
||||
reqAjax.onreadystatechange = getSessionAfter;
|
||||
reqAjax.send(null);
|
||||
reqAjax = null;
|
||||
}
|
||||
|
||||
function getSessionAfter() {
|
||||
var msg = getAjaxData();
|
||||
|
||||
if (msg == "F") {
|
||||
isSession = msg;
|
||||
parent.window.location.href = '<%=request.getContextPath()%>';
|
||||
}
|
||||
}
|
||||
|
||||
function changeOwner(obj) {
|
||||
var selectedValue = obj;
|
||||
localStorage["serviceType"] = selectedValue;
|
||||
parent.location.replace('<c:url value="/main.do?serviceType=' + selectedValue + '" />' + "&menuId=" + parent.mainFrame.getMenuId());
|
||||
}
|
||||
|
||||
<%
|
||||
String OPS = SystemUtil.isDevServer() ? CommonConstants.DB_MANAGE_TYPE_D :
|
||||
//SystemUtil.isTestServer() ? CommonConstants.DB_MANAGE_TYPE_T :
|
||||
SystemUtil.isStagingServer() ? CommonConstants.DB_MANAGE_TYPE_S :
|
||||
SystemUtil.isProdServer() ? CommonConstants.DB_MANAGE_TYPE_P : "";
|
||||
%>
|
||||
|
||||
function openColorPopup() {
|
||||
var w = parent.window.open("<%=request.getContextPath()%>/color.jsp", "ColorPupUp", "width=200,height=200,left=0,top=0,menubar=0,titlebar=0,toolbar=0,status=0,directories=0,resizable=no,scrollbars=no");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
function goDashboard() {
|
||||
//top.location.replace("<c:url value="/gfm/dashboard/dashboard04.gfm" />");
|
||||
|
||||
// You must open from parent window !
|
||||
var w = parent.window.open("<%=request.getContextPath()%>/dashboard2/dashboard.html", "RMSDASHBOARD<%=OPS%>", "width=1280,height=1024,left=0,top=0,scrollbars=yes,resizable=no,status=yes");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
function goDashboard2() {
|
||||
// You must open from parent window !
|
||||
var w = parent.window.open("<%=request.getContextPath()%>/dashboard2/dashboard2.html", "RMSDASHBOARD<%=OPS%>", "width=1910,height=985,left=0,top=0,scrollbars=no,resizable=yes,status=no");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
function menuRender() {
|
||||
<%if(topListSize > 0){%>
|
||||
// 처음 로딩시 제일첫번째 화면 보여주기
|
||||
<%if(mainPage != null ? !mainPage.equals("") : false) { %>
|
||||
goPage2('/monitoring/leftMenu.do?menuId=<%=firstTopMenuId%>', '<%=mainPage%>?menuId=<%=roleScreenId%>', '<%=roleScreenId%>');
|
||||
<%} else if(menuId != null ? !menuId.equals("") : false) { %>
|
||||
goPage2('/monitoring/leftMenu.do?menuId=<%=menuId%>', '<%=menuUrlFromMenuId%>?menuId=<%=menuId%>', '<%=roleScreenId%>');
|
||||
<%} else {%>
|
||||
goPage2('/monitoring/leftMenu.do?menuId=<%=firstTopMenuId%>', '<%=firstSubMenuUrl%>?menuId=<%=firstSubMenuId%>', '<%=firstSubMenuId%>');
|
||||
<%}%>
|
||||
|
||||
<%}%>
|
||||
}
|
||||
|
||||
//-->
|
||||
$(document).ready(function () {
|
||||
var strServiceType = '<%= serviceKey %>';
|
||||
if (strServiceType != "null" && sessionStorage["serviceType"] != strServiceType) {
|
||||
sessionStorage["serviceType"] = strServiceType;
|
||||
}
|
||||
|
||||
var $service_type_list = $('.service_type .list');
|
||||
var $service_type_title = $('.service_type .title');
|
||||
|
||||
$(".service_type .title").on("click", function (e) {
|
||||
|
||||
$service_type_list.toggle();
|
||||
|
||||
if ($service_type_list.css("display") == "block") {
|
||||
$(top.document).find(".topMenu").css("height", "240px");
|
||||
$service_type_title.find(".icon #arrowup").show();
|
||||
$service_type_title.find(".icon #arrowdown").hide();
|
||||
//$service_type_title.find(".icon").css("transform","rotate(180deg)");
|
||||
} else {
|
||||
$(top.document).find(".topMenu").css("height", "80px");
|
||||
$service_type_title.find(".icon #arrowup").hide();
|
||||
$service_type_title.find(".icon #arrowdown").show();
|
||||
//$service_type_title.find(".icon").css("transform","rotate(0deg)");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.service_type .list').find("li > a").on("click", function (e) {
|
||||
$service_type_title.find("span").text($(this).text());
|
||||
$service_type_list.toggle();
|
||||
if ($service_type_list.css("display") == "block") {
|
||||
$(top.document).find(".topMenu").css("height", "240px");
|
||||
//$service_type_title.find(".icon").css("transform","rotate(180deg)");
|
||||
//changeOwner($(this).text());
|
||||
changeOwner($(this).attr("id"));
|
||||
} else {
|
||||
$(top.document).find(".topMenu").css("height", "80px");
|
||||
//$service_type_title.find(".icon").css("transform","rotate(0deg)");
|
||||
//changeOwner($(this).text());
|
||||
changeOwner($(this).attr("id"));
|
||||
}
|
||||
});
|
||||
$('.gnb a').on("click", function (e) {
|
||||
if (!ismobile) {
|
||||
$(top.document).find(".topMenu").css("height", "80px");
|
||||
} else {
|
||||
console.log("height : ", $(top.document).find(".topMenu").css("height"));
|
||||
if ($(top.document).find(".topMenu").css("height") == "80px") {
|
||||
$(top.document).find(".topMenu").css("height", "410px");
|
||||
$(top.document).find(".gnb_bg").css("height", "382px");
|
||||
}
|
||||
}
|
||||
});
|
||||
$('.depth2 a').on("click", function (e) {
|
||||
$(top.document).find(".topMenu").css("height", "80px");
|
||||
});
|
||||
});
|
||||
|
||||
function logout() {
|
||||
if (!confirm('<%= localeMessage.getString("screen.logoutMsg") %>')) {
|
||||
return;
|
||||
}
|
||||
var winChild = window.open("", "RMSDASHBOARD", "width=1,height=1,left=1,top=1");
|
||||
if (winChild) {
|
||||
winChild.close();
|
||||
}
|
||||
parent.location.href = '<%=request.getContextPath()%>/rms/logout.do';
|
||||
}
|
||||
|
||||
function alertLoginTime() {
|
||||
var LastLoginYms = '<%=LastLoginYms%>';
|
||||
|
||||
if (LastLoginYms.trim() != "") {
|
||||
var width = 300;
|
||||
var height = 150;
|
||||
var lPos = (window.screen.width - width) / 2;
|
||||
var tPos = (window.screen.height - height) / 2;
|
||||
var w = parent.window.open("<%=request.getContextPath()%>/alertLoginTime.jsp",
|
||||
"LoginTimePupUp", "width=" + width + ",height=" + height + ",left=" + lPos + ",top=" + tPos + ",scrollbars=yes,resizable=no,status=yes");
|
||||
w.focus();
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
let cookieLocale = $.cookie('emsCookie');
|
||||
console.log("cookieLocale : " + cookieLocale);
|
||||
if (!cookieLocale) {
|
||||
cookieLocale = "ko";
|
||||
}
|
||||
|
||||
$('#selectLocale').val(cookieLocale);
|
||||
//
|
||||
$('#selectLocale').change(function () {
|
||||
const selectLocaleValue = $(this).val();
|
||||
console.log("selectLocaleValue : " + selectLocaleValue);
|
||||
parent.changeLocale($(this).val());
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
|
||||
var dualLogin = '<%= session.getAttribute("dualLogin") != null ? session.getAttribute("dualLogin") : "N" %>';
|
||||
|
||||
if(dualLogin == "Y") {
|
||||
alert("이미 접속중인 계정입니다.\n" + "먼저 접속한 계정은 로그아웃 됩니다.");
|
||||
<% session.setAttribute("dualLogin", "N"); %>
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="menuRender();">
|
||||
<header class="sub">
|
||||
<div class="gnb_wrap">
|
||||
<h1 class="logo" style="display: flex; align-items: center; height: 100%; margin-left: 10px;"><a href="#"><img src="/monitoring/images/logo/elink-logo.png" width="120" height="50"/></a>
|
||||
</h1><!-- /monitoring/images/top_logo.png -->
|
||||
<div class="topmenu_box">
|
||||
<ul>
|
||||
<li style="width:240px;">
|
||||
<a style="width:240px;"
|
||||
href="#"><span><%=SessionManager.getUserName(request) %>(<%=SessionManager.getUserId(request) %>)</span>
|
||||
<span onClick="javascript:openColorPopup();"><%=localeMessage.getString("screen.customer") %></span>
|
||||
<% if (!"".equals(LastLoginYms.trim())) { %>
|
||||
<span style="display:block;font-size:10px;"><%=localeMessage.getString("screen.lastLogin") %> : <%=LastLoginYms%> [ <%=LastLoginIp%> ]</span>
|
||||
<% } %>
|
||||
</a></li>
|
||||
<li>
|
||||
<select id="selectLocale" name="locale" style="margin-top: 20px; width:80px">
|
||||
<option value="en">English</option>
|
||||
<option value="ko">한글</option>
|
||||
</select>
|
||||
</li>
|
||||
<li onclick="logout()"><a href="#" class=""><img src="<c:url value="/img/icon_logout.png"/>"
|
||||
alt=""/><%= localeMessage.getString("screen.logout") %>
|
||||
</a></li>
|
||||
</ul>
|
||||
<div class="service_type" name="serviceType">
|
||||
<a href="javascript:void(0)" class="title"><span><%=serviceText%></span>
|
||||
<div class="icon"><img id="arrowdown" src="/monitoring/images/icon_arrow_down.png" alt=""/><img
|
||||
id="arrowup" src="/monitoring/images/icon_arrow_up.png" alt="" style="display:none"/></div>
|
||||
</a>
|
||||
<ul class="list">
|
||||
<%
|
||||
LoginVo loginVo = (LoginVo) session.getAttribute(CommonConstants.LOGIN);
|
||||
|
||||
String useServiceType = loginVo.getUseServiceTypes();
|
||||
|
||||
if (useServiceType.equals(CommonConstants.USER_SERVICETYPE_NO_CHECK)) {
|
||||
for (DataSourceType d : DataSourceTypeManager.getDynamicDataSourceTypes()) {
|
||||
|
||||
%>
|
||||
<li><a href="" id="<%=d.getName()%>"><%= d.getText() %>
|
||||
</a></li>
|
||||
<%
|
||||
}
|
||||
} else {
|
||||
String[] serviceTypes = useServiceType.split(",");
|
||||
for (String serviceType : serviceTypes) {
|
||||
DataSourceType d = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
%>
|
||||
<li><a href="" id="<%=d.getName()%>"><%= d.getText() %>
|
||||
</a></li>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</ul>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div><!-- end.service_type -->
|
||||
</div><!-- end.topmenu_box -->
|
||||
<div class="gnb">
|
||||
<nav>
|
||||
<ul class="depth1">
|
||||
<%=subLayer.toString()%>
|
||||
</ul>
|
||||
</nav>
|
||||
</div><!-- end gnb -->
|
||||
<div class="gnb_bg"></div>
|
||||
</div><!-- end gnb_wrap -->
|
||||
</header>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<%@ page contentType="text/html; charset=utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<html>
|
||||
<body style="margin: 0">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img src="<c:url value='/images/logo/top_logo.gif'/>" style="margin-top:30px">
|
||||
<!-- img src="<c:url value='/images/logo/top_logo.gif'/>" width="170" height="63" style="margin-top:30px"-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,134 @@
|
||||
<%@page contentType="text/html; charset=utf-8"%>
|
||||
<%@page import="com.eactive.eai.common.util.SystemUtil"%>
|
||||
<%@page import="com.eactive.eai.rms.common.util.StringUtils"%>
|
||||
<%@page import="com.eactive.eai.rms.common.util.CommonConstants"%>
|
||||
<%@page import="com.eactive.eai.rms.common.context.MonitoringContext"%>
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceType"%>
|
||||
<%@page import="com.eactive.eai.rms.common.datasource.DataSourceTypeManager"%>
|
||||
<%@ page import="com.eactive.eai.rms.common.login.SessionManager"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||
<%@ include file="/jsp/common/include/localemessage.jsp" %>
|
||||
|
||||
<%
|
||||
String selected = "selected='selected'";
|
||||
String serviceKey = (String) session.getAttribute(com.eactive.eai.rms.common.util.CommonConstants.SERVICE_TYPE_KEY);
|
||||
|
||||
String title_image = null; //(String) session.getAttribute(MonitoringContext.RMS_TITLE_IMAGE);
|
||||
String help_desk = null; //(String) session.getAttribute(MonitoringContext.RMS_HELP_DESK);
|
||||
|
||||
if( title_image == null ) title_image = "site_name.gif" ;
|
||||
else title_image = title_image.trim();
|
||||
|
||||
if( help_desk == null ) help_desk = "" ;
|
||||
else help_desk = help_desk.trim();
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= localeMessage.getString("screen.title") %></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="css/eai_css.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="<c:url value="/js/prototype.js"/>"></script>
|
||||
<script type="text/javascript" src="<c:url value="/js/jquery-1.7.2.min.js"/>"></script>
|
||||
<script language="JavaScript" type="text/JavaScript">
|
||||
|
||||
$(document).ready(function() {
|
||||
// 상단 serviceType Combo 셋팅.
|
||||
$("select[name=flag]").val(sessionStorage["serviceType"]);
|
||||
});
|
||||
|
||||
function changeOwner(obj)
|
||||
{
|
||||
var selectedValue = obj.value;
|
||||
parent.location.replace('<c:url value="/main.do?serviceType=' + selectedValue + '" />');
|
||||
}
|
||||
|
||||
<%
|
||||
String OPS = SystemUtil.isDevServer() ? CommonConstants.DB_MANAGE_TYPE_D :
|
||||
//SystemUtil.isTestServer() ? CommonConstants.DB_MANAGE_TYPE_T :
|
||||
SystemUtil.isStagingServer() ? CommonConstants.DB_MANAGE_TYPE_S :
|
||||
SystemUtil.isProdServer() ? CommonConstants.DB_MANAGE_TYPE_P : "";
|
||||
%>
|
||||
function goDashboard() {
|
||||
//top.location.replace("<c:url value="/gfm/dashboard/dashboard04.gfm" />");
|
||||
|
||||
// You must open from parent window !
|
||||
var w = parent.window.open("<%=request.getContextPath()%>/dashboard2/dashboard.html", "RMSDASHBOARD<%=OPS%>", "width=1280,height=1024,left=0,top=0,scrollbars=yes,resizable=no,status=yes");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
function goSitemap() {
|
||||
parent.location.href="<%=request.getContextPath()%>/sitemap.html";
|
||||
}
|
||||
|
||||
|
||||
function goTranMap() {
|
||||
|
||||
var stats = 'toolbar=no'
|
||||
+ ',location=no'
|
||||
+ ',directories=no'
|
||||
+ ',status=no'
|
||||
+ ',menubar=no'
|
||||
+ ',dependent=yes'
|
||||
+ ',scrollbars=no'
|
||||
+ ',resizable=yes'
|
||||
+ ',width=700'
|
||||
+ ',height=550' ;
|
||||
//+ ',top=100'
|
||||
//+ ',left=100'
|
||||
|
||||
var win = window.open("<c:url value="/gfm/admin/mapping/tranCodeMap.gfm" />", "tranCodeMap", stats );
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body style="margin: 0">
|
||||
<form id="form1" name="form1">
|
||||
<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="226">
|
||||
<!-- <img src="images/<%=title_image%>" width="200" height="35" onclick="alert('<%=com.eactive.eai.rms.common.Version.getVersionInfomation()%>');">
|
||||
-->
|
||||
</td>
|
||||
<td width="300">
|
||||
<!-- <marquee scrollamount=3 direction=right style="color:grey;font-size:10pt;font-weight:bold;padding:2"><%=help_desk%></marquee> -->
|
||||
</td>
|
||||
<td width="*"> </td>
|
||||
<td align="right" width="300">
|
||||
<!-- userID가 admin이면 Dashboard 버튼 활성화 -->
|
||||
<%-- <% if(((String)SessionManager.getRoleIdString(request)).indexOf("admin") > -1) { %> --%>
|
||||
<!-- <img src="<%=request.getContextPath()%>/images/go_dashboard.gif" width="106" height="21"
|
||||
align="right" onclick="goDashboard()" alt="대시보드 화면으로 이동" style="cursor:hand"></img> -->
|
||||
<%-- <% } %>--%>
|
||||
<%-- <% if ( "Y".equals((String)session.getAttribute(CommonConstants.MENUID_DASHBOARD))) { %> --%>
|
||||
<!-- img src="<%=request.getContextPath()%>/images/button/go_tranmap.jpg"
|
||||
align="right" onclick="goTranMap()" alt="거래코드 매핑 조회 화면 팝업" style="cursor:hand"></img-->
|
||||
<%-- <img src="<%=request.getContextPath()%>/images/go_dashboard.gif" width="106" height="21" --%>
|
||||
<!-- align="right" onclick="goDashboard()" alt="대시보드 화면으로 이동" style="cursor:hand"></img> -->
|
||||
<%-- <% } %> --%>
|
||||
<!-- img src="<%=request.getContextPath()%>/images/go_sitemap.gif" width="106" height="21"
|
||||
align="right" onclick="goSitemap()" alt="sitemap 화면으로 이동" style="cursor:hand"></img> -->
|
||||
</td>
|
||||
<td align="right" width="70">
|
||||
<% if(((String)SessionManager.getRoleIdString(request)).indexOf("admin") > -1) { %>
|
||||
<select name="flag" onchange="changeOwner(this);">
|
||||
<% for (DataSourceType d : DataSourceTypeManager.getDynamicDataSourceTypes()){ %>
|
||||
<option value="<%= d.getName() %>"
|
||||
<%=d.getName().equals(serviceKey) ? selected : ""%>
|
||||
>
|
||||
<%=d.getText()%>
|
||||
</option>
|
||||
<%}%>
|
||||
</select>
|
||||
<% } %>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="service" value="" />
|
||||
<input type="hidden" name="serviceType" value="" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user