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
File name
Commit message
Commit date
<%--
Class Name : EgovAuthorInsert.jsp
Description : EgovAuthorInsert 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.02.01 lee.m.j 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 lee.m.j
since : 2009.02.01
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
<c:set var="registerFlag" value="${empty authorManageVO.authorCode ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>권한 등록</title>
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript" language="javascript">
function fncSelectAuthorList() {
document.searchForm.submit();
}
function fncAuthorInsert() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/sec/ram/EgovAuthorInsert.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncAuthorUpdate() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/sec/ram/EgovAuthorUpdate.do'/>";
if(confirm("저장 하시겠습니까?")){
if(!validateAuthorManage(varFrom)){
return;
}else{
varFrom.submit();
}
}
}
function fncAuthorDelete() {
var varFrom = document.getElementById("authorManage");
varFrom.action = "<c:url value='/sec/ram/EgovAuthorDelete.do'/>";
if(confirm("삭제 하시겠습니까?")){
varFrom.submit();
}
}
</script>
</head>
<body>
<form:form commandName="authorManage" method="post" >
<double-submit:preventer tokenKey="someKey" />
<!-- 검색조건 유지 -->
<c:if test="${registerFlag == 'UPDATE'}">
<input type="hidden" name="searchCondition" value="<c:out value='${authorManageVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${authorManageVO.searchKeyword}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
</c:if>
<div class="ad_content">
<div class="ad_con_head">
<div class="ad_head_text">
<p class="today_txt"><c:out value="${registerFlagName}"/></p>
<div class="ad_head_ment">
<p class="today_last_txt"><span id="cnt_cate_list"></span></p>
</div>
</div>
</div>
<div class="ad_subcon">
<div class="main1_div2">
<table class="main1_table">
<tr>
<th ><span class="star_t">*</span>권한 코드</th>
<td colspan="3">
<input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />
<form:errors path="authorCode" />
</td>
</tr>
<tr>
<th ><span class="star_t">*</span>권한 명</th>
<td colspan="3">
<input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorManage.authorNm}'/>" maxLength="50" size="40" title="권한명" />
<form:errors path="authorNm" />
</td>
</tr>
<tr>
<th ><span class="star_t"></span>설명</th>
<td colspan="3">
<input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorManage.authorDc}'/>" maxLength="50" size="50" title="설명" />
</td>
</tr>
<c:if test="${registerFlag == 'UPDATE'}">
<tr>
<th ><span class="star_t"></span>등록일자</th>
<td colspan="3">
<input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorManage.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/>
</td>
</tr>
</c:if>
</table>
</div>
<div class="main1_btn_div">
<button class="main1_btn" onclick="fncSelectAuthorList(); return false;" >목 록</button>
<c:if test="${registerFlag == 'INSERT'}">
<button class="main1_btn main1_save_btn" onclick="fncAuthorInsert(); return false;" >저 장</button>
</c:if>
<c:if test="${registerFlag == 'UPDATE'}">
<button class="main1_btn main1_save_btn" onclick="fncAuthorUpdate(); return false;" >저 장</button>
</c:if>
</div>
</div>
</div>
</form:form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/sec/ram/EgovAuthorList.do'/>" ></form>
</body>
</html>