File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
Class Name : EgovLoginUsr.jsp
Description : 로그인화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.03.10 박지욱 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 박지욱
since : 2009.03.10
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Language" content="ko" >
<title>로그인</title>
<link href="/css/post.css?ver=1" rel="stylesheet" >
<!-- <script src="http://jsgetip.appspot.com/?getip" type="text/javascript"></script> -->
<script type="text/javascript">
<c:if test="${!empty message}">alert("${message}");</c:if>
function actionLogin() {
if (document.loginForm.id.value =="") {
alert("아이디를 입력하세요");
return false;
} else if (document.loginForm.password.value =="") {
alert("비밀번호를 입력하세요");
return false;
} else {
document.loginForm.action="<c:url value='/uat/uia/actionSecurityLogin.do'/>";
//document.loginForm.j_username.value = document.loginForm.userSe.value + document.loginForm.username.value;
//document.loginForm.action="<c:url value='/j_spring_security_check'/>";
document.loginForm.submit();
}
}
function setCookie (name, value, expires) {
document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString();
}
function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) { // 쿠키가 설정되어 있다면
offset = document.cookie.indexOf(search)
if (offset != -1) { // 쿠키가 존재하면
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset)
// 쿠키 값의 마지막 위치 인덱스 번호 설정
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
return "";
}
function saveid(form) {
var expdate = new Date();
// 기본적으로 30일동안 기억하게 함. 일수를 조절하려면 * 30에서 숫자를 조절하면 됨
if (form.checkId.checked)
expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30일
else
expdate.setTime(expdate.getTime() - 1); // 쿠키 삭제조건
setCookie("saveid", form.id.value, expdate);
}
function getid(form){
form.checkId.checked = ((form.id.value = getCookie("saveid")) != "");
}
</script>
<link href="/css/post.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<form:form id="loginForm" name="loginForm" method="post">
<input type="hidden" name="userSe" value="USR"/>
<input name="j_username" type="hidden"/>
<div class="post_login_div">
<div class="login_box">
<img src="/img/post/login_img3.png" class="login_logo">
<div class="login_left">
<span style="top: 130px;">관리자 로그인</span>
<!-- <p><a href="#">아이디 · 비밀번호 찾기</a></p> -->
</div>
<div class="login_right">
<p>ID</p>
<input type="text" id="id" name="id" maxlength="20" placeholder="아이디를 넣어 주세요." style="font-size: 17px;" >
<p>Password</p>
<input type="password" id="password" name="password" style="width:320px;font-size: 17px;"
onkeydown="javascript:if (event.keyCode == 13) { actionLogin(); }" placeholder="비밀번호를 넣어 주세요." />
<input type="submit" value="Login" class="login_submit" id="login_submit" onclick="javascript:actionLogin();" />
</div>
</div>
<div style="margin-top:327px;">
<span class="login_copy">Copyright ⓒ Korea Postal Logistics Agency. All Rights Reserved.</span>
</div>
</div>
</form:form>
</body>
</html>