147 lines
6.3 KiB
Plaintext
147 lines
6.3 KiB
Plaintext
|
|
||
|
|
||
|
<%@ page import="th.co.muangthai.endrprint.util.VSMUtil" %>
|
||
|
<%@page contentType="text/html" pageEncoding="UTF-8" %>
|
||
|
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
|
||
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
||
|
|
||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
||
|
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||
|
|
||
|
<title>เข้าสู่ระบบ</title>
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" href="styles/Loginstyle.css"/>
|
||
|
<style type="text/css">
|
||
|
fieldset.messagewarning {
|
||
|
background-image: url(styles/images/warning.gif);
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: 10px 5px;
|
||
|
display: block;
|
||
|
border: #ff822e solid 2px;
|
||
|
font-size: 15px;
|
||
|
padding: 10px;
|
||
|
padding-left: 55px;
|
||
|
margin-top: 10px;
|
||
|
background-color: #ededed;
|
||
|
color: #2e5aff;
|
||
|
}
|
||
|
|
||
|
.warning_invalid_mode {
|
||
|
color : #CC0000;
|
||
|
font-weight: bold;
|
||
|
font-size: 1.2em;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
<%
|
||
|
String loginServlet = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
|
||
|
|
||
|
// UrlManagementService urlManagementService = new UrlManagementService();
|
||
|
// UrlManagementBean urlManagementBean;
|
||
|
// if(VSMUtil.isProductionMode()){
|
||
|
// urlManagementBean = urlManagementService.getUrlManagementById(VSMUtil.DEPLOY_NAME, null, "PROD");
|
||
|
// }else{
|
||
|
// if(VSMUtil.DEPLOYMENT_MODE == VSMUtil.DEPLOYMENT_UAT){
|
||
|
// urlManagementBean = urlManagementService.getUrlManagementById(VSMUtil.DEPLOY_NAME, null, "UAT");
|
||
|
// }
|
||
|
// else if(VSMUtil.DEPLOYMENT_MODE == VSMUtil.DEPLOYMENT_DEV){
|
||
|
// urlManagementBean = urlManagementService.getUrlManagementById(VSMUtil.DEPLOY_NAME, null, "DEV");
|
||
|
// }
|
||
|
// }
|
||
|
|
||
|
// if(VSMUtil.isNotEmpty(urlManagementBean.getUrlLoginValue())){
|
||
|
// loginServlet = urlManagementBean.getUrlLoginValue();
|
||
|
// }
|
||
|
|
||
|
loginServlet += "/LoginServlet";
|
||
|
%>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
if (window != top) top.location.href = location.href;
|
||
|
</script>
|
||
|
|
||
|
<c:if test="<%=!VSMUtil.AUTHENTICATION_AD%>">
|
||
|
<div class="warning_invalid_mode">You are running on develop mode. [AUTHENTICATION_AD is false]</div>
|
||
|
</c:if>
|
||
|
<c:if test="<%=!VSMUtil.SEND_WORKFLOW31_FLAG%>">
|
||
|
<div class="warning_invalid_mode">You are running on develop mode. [SEND_WORKFLOW31_FLAG is false]</div>
|
||
|
</c:if>
|
||
|
<c:if test="<%=!VSMUtil.CHECK_POLICY_ONLOAD_FLAG%>">
|
||
|
<div class="warning_invalid_mode">You are running on develop mode. [CHECK_POLICY_ONLOAD_FLAG is false]</div>
|
||
|
</c:if>
|
||
|
<c:if test="<%=!VSMUtil.SEND_AS400_FLAG%>">
|
||
|
<div class="warning_invalid_mode">You are running on develop mode. [SEND_AS400_FLAG is false]</div>
|
||
|
</c:if>
|
||
|
<c:if test="<%=VSMUtil.CONNECTION_MONITOR%>">
|
||
|
<div class="warning_invalid_mode">You are running on develop mode. [CONNECTION_MONITOR is true]</div>
|
||
|
</c:if>
|
||
|
|
||
|
<form id="login-form" action="<%=loginServlet%>" method="post">
|
||
|
<fieldset>
|
||
|
|
||
|
<legend>เข้าสู่ระบบ MTRAM</legend>
|
||
|
|
||
|
<label for="login">ชื่อผู้ใช้งาน : </label>
|
||
|
<input type="text" id="login" name="userId"/>
|
||
|
|
||
|
<div class="clear"></div>
|
||
|
|
||
|
<label for="password">รหัสผ่าน : </label>
|
||
|
<input type="password" id="password" name="password"/>
|
||
|
|
||
|
<div class="clear"></div>
|
||
|
<div class="clear"></div>
|
||
|
|
||
|
<br/>
|
||
|
|
||
|
<%
|
||
|
String warn = request.getParameter("warn");
|
||
|
if ( warn != null && "1".equals(warn)) {
|
||
|
out.println("<font color='red'>•• กรุณาระบุข้อมูลผู้ใช้งานให้ถูกต้อง •• </font>");
|
||
|
}else if (warn != null && "2".equals(warn)){
|
||
|
out.println("<script>alert('ไม่สามารถเข้าใช้งานระบบได้ เนื่องจากมีผู้ใช้งานผ่านระบบ Workflow กรุณา logout จากระบบ Workflow และลองใหม่อีกครั้ง !');</script>");
|
||
|
}else if (warn != null && "3".equals(warn)){
|
||
|
out.println("<script>alert('ไม่สามารถเข้าใช้งานระบบได้ เนื่องจากมีผู้ใช้งานผ่านระบบ MTRAM กรุณา logout จากระบบ MTRAM และลองใหม่อีกครั้ง !');</script>");
|
||
|
}
|
||
|
%>
|
||
|
|
||
|
|
||
|
<input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="เข้าระบบ"/>
|
||
|
</fieldset>
|
||
|
|
||
|
|
||
|
<%--<fieldset class="messagewarning">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<img src="styles/images/star_icons04.gif" alt="">--%>
|
||
|
<%--<br/>--%>
|
||
|
<%--ระบบ MTRAM มีการเปลี่ยนการเข้าใช้งานระบบโดยมีการเชื่อมต่อข้อมูลผู้ใช้งานโดยใช้ฐานข้อมูลปัจจุบันของระบบเมืองไทย--%>
|
||
|
<%--<br/><br/>--%>
|
||
|
<%--<font color="red">--%>
|
||
|
<%--<b>กรุณาใช้ชื่อ user name และ password ที่ใช้ในการ log in เข้าเครื่องคอมพิวเตอร์ของท่าน--%>
|
||
|
<%--เป็น user name และ password ในการใช้ระบบ MTRAM เพื่อเข้าสู่ระบบ</b>--%>
|
||
|
<%--</font>--%>
|
||
|
<%--</fieldset>--%>
|
||
|
|
||
|
|
||
|
</form>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|