권한관리
Index: base3.10/src/main/java/egovframework/com/sec/ram/web/EgovAuthorManageController.java
===================================================================
--- base3.10/src/main/java/egovframework/com/sec/ram/web/EgovAuthorManageController.java (revision 17)
+++ base3.10/src/main/java/egovframework/com/sec/ram/web/EgovAuthorManageController.java (revision 18)
@@ -67,7 +67,7 @@
@RequestMapping("/sec/ram/EgovAuthorListView.do")
public String selectAuthorListView()
throws Exception {
- return "egovframework/com/sec/ram/EgovAuthorManage";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorManage";
}
/**
@@ -102,9 +102,8 @@
int totCnt = egovAuthorManageService.selectAuthorListTotCnt(authorManageVO);
paginationInfo.setTotalRecordCount(totCnt);
model.addAttribute("paginationInfo", paginationInfo);
- model.addAttribute("message", egovMessageSource.getMessage("success.common.select"));
- return "egovframework/com/sec/ram/EgovAuthorManage";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorManage";
}
/**
@@ -122,8 +121,7 @@
authorManageVO.setAuthorCode(authorCode);
model.addAttribute("authorManage", egovAuthorManageService.selectAuthor(authorManageVO));
- model.addAttribute("message", egovMessageSource.getMessage("success.common.select"));
- return "egovframework/com/sec/ram/EgovAuthorUpdate";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorUpdate";
}
/**
@@ -134,7 +132,7 @@
@RequestMapping("/sec/ram/EgovAuthorInsertView.do")
public String insertAuthorView(@ModelAttribute("authorManage") AuthorManage authorManage)
throws Exception {
- return "egovframework/com/sec/ram/EgovAuthorInsert";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorInsert";
}
/**
@@ -152,12 +150,20 @@
beanValidator.validate(authorManage, bindingResult); //validation 수행
if (bindingResult.hasErrors()) {
- return "egovframework/com/sec/ram/EgovAuthorInsert";
- } else {
- egovAuthorManageService.insertAuthor(authorManage);
- model.addAttribute("message", egovMessageSource.getMessage("success.common.insert"));
- return "forward:/sec/ram/EgovAuthorList.do";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorInsert";
}
+ if (authorManage.getAuthorCode() != null) {
+ AuthorManageVO authorManageVO = new AuthorManageVO();
+ authorManageVO.setAuthorCode(authorManage.getAuthorCode());
+ AuthorManageVO vo = egovAuthorManageService.selectAuthor(authorManageVO);
+ if (vo != null) {
+ model.addAttribute("message", egovMessageSource.getMessage("comCopSecRam.authorRoleList.validate.codeCheck"));
+
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorInsert";
+ }
+ }
+ egovAuthorManageService.insertAuthor(authorManage);
+ return "redirect:/sec/ram/EgovAuthorList.do";
}
/**
@@ -175,11 +181,10 @@
beanValidator.validate(authorManage, bindingResult); //validation 수행
if (bindingResult.hasErrors()) {
- return "egovframework/com/sec/ram/EgovAuthorUpdate";
+ return ".adminLayout/권한관리/com/sec/ram/EgovAuthorUpdate";
} else {
egovAuthorManageService.updateAuthor(authorManage);
- model.addAttribute("message", egovMessageSource.getMessage("success.common.update"));
- return "forward:/sec/ram/EgovAuthorList.do";
+ return "redirect:/sec/ram/EgovAuthorList.do?" + authorManage.searchParam(2);
}
}
@@ -194,8 +199,7 @@
Model model) throws Exception {
egovAuthorManageService.deleteAuthor(authorManage);
- model.addAttribute("message", egovMessageSource.getMessage("success.common.delete"));
- return "forward:/sec/ram/EgovAuthorList.do";
+ return "redirect:/sec/ram/EgovAuthorList.do";
}
/**
@@ -215,8 +219,7 @@
authorManage.setAuthorCode(strAuthorCodes[i]);
egovAuthorManageService.deleteAuthor(authorManage);
}
- model.addAttribute("message", egovMessageSource.getMessage("success.common.delete"));
- return "forward:/sec/ram/EgovAuthorList.do";
+ return "redirect:/sec/ram/EgovAuthorList.do";
}
/**
@@ -227,6 +230,6 @@
@RequestMapping("/sec/ram/accessDenied.do")
public String accessDenied()
throws Exception {
- return "egovframework/com/sec/accessDenied";
+ return ".adminLayout/권한관리/com/sec/accessDenied";
}
}
Index: base3.10/src/main/java/egovframework/com/sec/ram/service/AuthorManage.java
===================================================================
--- base3.10/src/main/java/egovframework/com/sec/ram/service/AuthorManage.java (revision 17)
+++ base3.10/src/main/java/egovframework/com/sec/ram/service/AuthorManage.java (revision 18)
@@ -1,6 +1,7 @@
package egovframework.com.sec.ram.service;
import egovframework.com.cmm.ComDefaultVO;
+import egovframework.com.cmm.CustomDefaultVO;
/**
* 권한관리에 대한 model 클래스를 정의한다.
@@ -19,7 +20,7 @@
* </pre>
*/
-public class AuthorManage extends ComDefaultVO {
+public class AuthorManage extends CustomDefaultVO {
/**
* serialVersionUID
Index: base3.10/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorManageServiceImpl.java
===================================================================
--- base3.10/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorManageServiceImpl.java (revision 17)
+++ base3.10/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorManageServiceImpl.java (revision 18)
@@ -80,8 +80,6 @@
*/
public AuthorManageVO selectAuthor(AuthorManageVO authorManageVO) throws Exception {
AuthorManageVO resultVO = authorManageDAO.selectAuthor(authorManageVO);
- if (resultVO == null)
- throw processException("info.nodata.msg");
return resultVO;
}
Index: base3.10/src/main/resources/egovframework/mapper/com/sec/ram/EgovAuthorManage_SQL_postgres.xml
===================================================================
--- base3.10/src/main/resources/egovframework/mapper/com/sec/ram/EgovAuthorManage_SQL_postgres.xml (revision 17)
+++ base3.10/src/main/resources/egovframework/mapper/com/sec/ram/EgovAuthorManage_SQL_postgres.xml (revision 18)
@@ -15,8 +15,8 @@
AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE
FROM COMTNAUTHORINFO
WHERE 1=1
- <if test="searchCondition == 1">
- AND AUTHOR_NM LIKE CONCAT('%' , #{searchKeyword}, '%')
+ <if test="searchCondition == 1">AND
+ (AUTHOR_NM LIKE CONCAT('%' , #{searchKeyword}, '%') OR AUTHOR_CODE LIKE CONCAT('%' , #{searchKeyword}, '%'))
</if>
ORDER BY AUTHOR_CREAT_DE DESC
<if test="pagingAt == true">
@@ -34,7 +34,7 @@
VALUES ( #{authorCode}
, #{authorNm}
, #{authorDc}
- , TO_CHAR(now(), 'YYYY-mm-dd HH24:MI:SS'))
+ , now())
</insert>
@@ -67,8 +67,8 @@
FROM COMTNAUTHORINFO
WHERE 1=1
<if test="searchCondition == 1">AND
- AUTHOR_NM LIKE CONCAT('%' , #{searchKeyword}, '%')
- </if>
+ (AUTHOR_NM LIKE CONCAT('%' , #{searchKeyword}, '%') OR AUTHOR_CODE LIKE CONCAT('%' , #{searchKeyword}, '%'))
+ </if>
</select>
<select id="selectAuthorAllList" parameterType="egovframework.com.sec.ram.service.AuthorManageVO" resultMap="author">
Index: base3.10/src/main/resources/egovframework/message/com/sec/ram/message_en.properties
===================================================================
--- base3.10/src/main/resources/egovframework/message/com/sec/ram/message_en.properties (revision 17)
+++ base3.10/src/main/resources/egovframework/message/com/sec/ram/message_en.properties (revision 18)
@@ -27,3 +27,5 @@
comCopSecRam.authorRoleList.validate.alert.noSelect=No roles selected.
comCopSecRam.authorRoleList.validate.alert.noResult=No query results found.
comCopSecRam.authorRoleList.validate.confirm.regist=Would you like to register?
+
+comCopSecRam.authorRoleList.validate.codeCheck = The already registered Authority Code exists.
\ No newline at end of file
Index: base3.10/src/main/resources/egovframework/message/com/sec/ram/message_ko.properties
===================================================================
--- base3.10/src/main/resources/egovframework/message/com/sec/ram/message_ko.properties (revision 17)
+++ base3.10/src/main/resources/egovframework/message/com/sec/ram/message_ko.properties (revision 18)
@@ -27,3 +27,5 @@
comCopSecRam.authorRoleList.validate.alert.noSelect=\uc120\ud0dd\ub41c \ub864\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.
comCopSecRam.authorRoleList.validate.alert.noResult=\uc870\ud68c\ub41c \uacb0\uacfc\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.
comCopSecRam.authorRoleList.validate.confirm.regist=\ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?
+
+comCopSecRam.authorRoleList.validate.codeCheck = \uc774\ubbf8 \ub4f1\ub85d\ub41c \uad8c\ud55c\ucf54\ub4dc\uac00 \uc874\uc7ac\ud569\ub2c8\ub2e4.
\ No newline at end of file
Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorManage.jsp
===================================================================
--- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorManage.jsp (revision 17)
+++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorManage.jsp (revision 18)
@@ -23,12 +23,6 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="pageTitle"><spring:message code="comCopSecRam.title"/></c:set>
-<!DOCTYPE html>
-<html>
-<head>
-<title>${pageTitle} <spring:message code="title.list" /></title><!-- 권한관리 목록 -->
-<meta http-equiv="content-type" content="text/html; charset=utf-8">
-<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />">
<script type="text/javaScript" language="javascript" defer="defer">
function fncCheckAll() {
var checkField = document.listForm.delYn;
@@ -155,82 +149,75 @@
}
</script>
-</head>
-<body>
-<!-- javascript warning tag -->
-<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
<form:form name="listForm" action="${pageContext.request.contextPath}/sec/ram/EgovAuthorList.do" method="post">
-<div class="board">
- <h1>${pageTitle} <spring:message code="title.list" /></h1><!-- 권한관리 목록 -->
- <!-- 검색영역 -->
- <div class="search_box" title="<spring:message code="common.searchCondition.msg" />">
- <ul>
- <li><div style="line-height:4px;"> </div><div><spring:message code="comCopSecRam.list.searchKeywordText" /> : </div></li><!-- 권한명 -->
- <!-- 검색키워드 및 조회버튼 -->
- <li style="border: 0px solid #d2d2d2;">
- <input class="s_input" name="searchKeyword" type="text" size="35" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value='<c:out value="${authorManageVO.searchKeyword}"/>' maxlength="155" >
- <input type="submit" class="s_btn" value="<spring:message code="button.inquire" />" title="<spring:message code="title.inquire" /> <spring:message code="input.button" />" />
- <input type="button" class="s_btn" onClick="fncAuthorDeleteList()" value="<spring:message code="title.delete" />" title="<spring:message code="title.delete" /> <spring:message code="input.button" />" />
- <span class="btn_b"><a href="<c:url value='/sec/ram/EgovAuthorInsertView.do'/>" onClick="javascript:fncAddAuthorInsert();" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span>
- </li>
- </ul>
+ <!-- 타이틀 -->
+ <div class="board_header">
+ <h3>${pageTitle} <spring:message code="title.list" /></h3>
+ <!-- 검색영역 -->
+ <div class="search_box" title="<spring:message code="common.searchCondition.msg" />">
+ <!-- 검색키워드 및 조회버튼 -->
+ <input class="inputText" name="searchKeyword" type="text" size="35" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value='<c:out value="${authorManageVO.searchKeyword}"/>' maxlength="155" placeholder="권한명을 입력하세요">
+ <button type="button" onclick="fncSelectAuthorList('${authorManageVO.pageIndex}');" class="btn_board" title="<spring:message code="title.inquire" /> <spring:message code="input.button" />"><spring:message code="button.inquire" /></button>
+ </div>
</div>
-
- <!-- 목록영역 -->
- <table class="board_list" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
- <caption>${pageTitle} <spring:message code="title.list" /></caption>
- <colgroup>
- <col style="width: 9%;">
- <col style="width: 33%;">
- <col style="width: 30%;">
- <col style="width: ;">
- <col style="width: 10%;">
- <col style="width: 7%;">
- </colgroup>
- <thead>
- <tr>
- <th><input type="checkbox" name="checkAll" class="check2" onclick="javascript:fncCheckAll()" title="<spring:message code="input.selectAll.title" />"></th><!-- 번호 -->
- <th class="board_th_link"><spring:message code="comCopSecRam.list.authorRollId" /></th><!-- 권한 ID -->
- <th><spring:message code="comCopSecRam.list.authorNm" /></th><!-- 권한 명 -->
- <th><spring:message code="comCopSecRam.list.authorDc" /></th><!-- 설명 -->
- <th><spring:message code="table.regdate" /></th><!-- 등록일자 -->
- <th><spring:message code="comCopSecRam.list.authorRoll" /></th><!-- 롤 정보 -->
- </tr>
- </thead>
- <tbody class="ov">
- <c:if test="${fn:length(authorList) == 0}">
- <tr>
- <td colspan="6"><spring:message code="common.nodata.msg" /></td>
- </tr>
- </c:if>
- <c:forEach var="author" items="${authorList}" varStatus="status">
- <tr>
- <td><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authorCode}"/>" /></td>
- <td><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorCode}"/>')"><c:out value="${author.authorCode}"/></a></td>
- <td><c:out value="${author.authorNm}"/></td>
- <td><c:out value="${author.authorDc}"/></td>
- <td><c:out value="${fn:substring(author.authorCreatDe,0,10)}"/></td>
- <td><a href="<c:url value='/sec/ram/EgovAuthorRoleList.do'/>?searchKeyword=<c:out value="${author.authorCode}"/>" onclick="javascript:fncSelectAuthorRole('<c:out value="${author.authorCode}"/>')"><img src="<c:url value='/images/egovframework/com/cmm/btn/btn_search.gif'/>" width="15" height="15" align="middle" alt="롤 정보"></a></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
-
- <c:if test="${!empty authorManageVO.pageIndex }">
- <!-- paging navigation -->
- <div class="pagination">
- <ul><ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="linkPage"/></ul>
+ <div class="board_body">
+ <div class="board_infomation">
+ <p>총 : <span>${paginationInfo.totalRecordCount}</span>건, 쪽번호 : <span>${paginationInfo.currentPageNo }</span> / <span>${paginationInfo.totalPageCount }</span></p>
</div>
- </c:if>
-
-
-</div><!-- end div board -->
-
+ <!-- 목록영역 -->
+ <table class="table_list" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
+ <caption>${pageTitle} <spring:message code="title.list" /></caption>
+ <colgroup>
+ <col style="width: 5%;">
+ <col style="width: 25%;">
+ <col style="width: 25%;">
+ <col style="width: ;">
+ <col style="width: 8%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th scope="col"><input type="checkbox" name="checkAll" onclick="javascript:fncCheckAll()" title="<spring:message code="input.selectAll.title" />"></th><!-- 번호 -->
+ <th scope="col" class="board_th_link"><spring:message code="comCopSecRam.list.authorRollId" /></th><!-- 권한 ID -->
+ <th scope="col"><spring:message code="comCopSecRam.list.authorNm" /></th><!-- 권한 명 -->
+ <th scope="col"><spring:message code="comCopSecRam.list.authorDc" /></th><!-- 설명 -->
+ <th scope="col"><spring:message code="table.regdate" /></th><!-- 등록일자 -->
+ </tr>
+ </thead>
+ <tbody class="ov">
+ <c:if test="${fn:length(authorList) == 0}">
+ <tr>
+ <td colspan="5"><spring:message code="common.nodata.msg" /></td>
+ </tr>
+ </c:if>
+ <c:forEach var="author" items="${authorList}" varStatus="status">
+ <tr>
+ <td><input type="checkbox" name="delYn" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authorCode}"/>" /></td>
+ <td class="alignL"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorCode}"/>')"><c:out value="${author.authorCode}"/></a></td>
+ <td><c:out value="${author.authorNm}"/></td>
+ <td><c:out value="${author.authorDc}"/></td>
+ <td><c:out value="${fn:substring(author.authorCreatDe,0,10)}"/></td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+ </div>
+ <div class="board_footer">
+ <c:if test="${!empty authorManageVO.pageIndex }">
+ <!-- paging navigation -->
+ <div class="page" role="group" aria-label="...">
+ <ul>
+ <ui:pagination paginationInfo="${paginationInfo}" type="admin" jsFunction="linkPage" />
+ </ul>
+ </div>
+ </c:if>
+ <div class="bottom_wrap fr">
+ <button type="button" onClick="fncAuthorDeleteList();" class="btn_s" title="<spring:message code="title.delete" /> <spring:message code="input.button" />"><spring:message code="button.delete" /></button>
+ <button type="button" onClick="fncAddAuthorInsert();" class="btn_s" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></button>
+ </div>
+ </div>
-<input type="hidden" name="authorCode"/>
-<input type="hidden" name="authorCodes"/>
-<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
-<input type="hidden" name="searchCondition" value="1"/>
+ <input type="hidden" name="authorCode"/>
+ <input type="hidden" name="authorCodes"/>
+ <input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
+ <input type="hidden" name="searchCondition" value="1"/>
</form:form>
-</body>
-</html>
Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorInsert.jsp
===================================================================
--- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorInsert.jsp (revision 17)
+++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorInsert.jsp (revision 18)
@@ -25,12 +25,6 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="pageTitle"><spring:message code="comCopSecRam.title"/></c:set>
-<!DOCTYPE html>
-<html>
-<head>
-<title>${pageTitle} <spring:message code="title.create" /></title><!-- 권한관리 등록 -->
-<meta http-equiv="content-type" content="text/html; charset=utf-8">
-<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />">
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<validator:javascript formName="authorManage" staticJavascript="false" xhtml="true" cdata="false"/>
@@ -72,64 +66,60 @@
}
}
</script>
-</head>
-
-<body>
-<!-- javascript warning tag -->
-<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
+<!-- 타이틀 -->
+<div class="board_header">
+ <h3>${pageTitle} <spring:message code="title.create" /></h3>
+</div>
<form:form commandName="authorManage" action="${pageContext.request.contextPath}/sec/ram/EgovAuthorInsert.do" method="post" onSubmit="fncAuthorInsert(document.forms[0]); return false;">
-<div class="wTableFrm">
- <!-- 타이틀 -->
- <h2>${pageTitle} <spring:message code="title.create" /></h2><!-- 권한관리 등록 -->
-
<!-- 등록폼 -->
- <table class="wTable" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
- <caption>${pageTitle} <spring:message code="title.create" /></caption>
- <colgroup>
- <col style="width: 16%;"><col style="width: ;">
- </colgroup>
- <tbody>
- <!-- 입력 -->
- <c:set var="inputTxt"><spring:message code="input.input" /></c:set>
- <!-- 권한코드 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorCode" /></c:set>
- <tr>
- <th>${title} <span class="pilsu">*</span></th>
- <td class="left">
- <form:input path="authorCode" title="${title} ${inputTxt}" size="40" maxlength="30" />
- <div><form:errors path="authorCode" cssClass="error" /></div>
- </td>
- </tr>
- <!-- 권한명 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorNm" /></c:set>
- <tr>
- <th>${title} <span class="pilsu">*</span></th>
- <td class="left">
- <form:input path="authorNm" title="${title} ${inputTxt}" size="40" maxlength="60" />
- <div><form:errors path="authorNm" cssClass="error" /></div>
- </td>
- </tr>
- <!-- 설명 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorDc" /></c:set>
- <tr>
- <th>${title}</th>
- <td class="left">
- <form:textarea path="authorDc" title="${title} ${inputTxt}" cols="300" rows="10" />
- <div><form:errors path="authorDc" cssClass="error" /></div>
- </td>
- </tr>
- </tbody>
- </table>
-
- <!-- 하단 버튼 -->
- <div class="btn">
- <input type="submit" class="s_submit" value="<spring:message code="button.create" />" title="<spring:message code="button.create" /> <spring:message code="input.button" />" /><!-- 등록 -->
- <span class="btn_s"><a href="<c:url value='/sec/ram/EgovAuthorList.do' />" title="<spring:message code="button.list" /> <spring:message code="input.button" />"><spring:message code="button.list" /></a></span><!-- 목록 -->
- </div><div style="clear:both;"></div>
+ <div class="board_body">
+ <p class="must_text"><em>*</em>는 필수 입력사항입니다.</p>
+ <table class="table_write" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
+ <caption>권한추가 - 권한코드, 권한명, 설명으로 구성</caption>
+ <colgroup>
+ <col style="width: 16%;"><col style="width: ;">
+ </colgroup>
+ <tbody>
+ <!-- 입력 -->
+ <c:set var="inputTxt"><spring:message code="input.input" /></c:set>
+ <!-- 권한코드 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorCode" /></c:set>
+ <tr>
+ <th scope="row" class="must">${title}</th>
+ <td class="left">
+ <form:input path="authorCode" title="${title} ${inputTxt}" size="40" maxlength="30" cssClass="width100p inputText"/>
+ <div><form:errors path="authorCode" cssClass="error" /></div>
+ </td>
+ </tr>
+ <!-- 권한명 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorNm" /></c:set>
+ <tr>
+ <th scope="row" class="must">${title}</th>
+ <td class="left">
+ <form:input path="authorNm" title="${title} ${inputTxt}" size="40" maxlength="60" cssClass="width100p inputText"/>
+ <div><form:errors path="authorNm" cssClass="error" /></div>
+ </td>
+ </tr>
+ <!-- 설명 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorDc"/></c:set>
+ <tr>
+ <th scope="row">${title}</th>
+ <td class="left">
+ <form:textarea path="authorDc" title="${title} ${inputTxt}" cols="300" rows="10" cssClass="width100p height100"/>
+ <div><form:errors path="authorDc" cssClass="error" /></div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="board_footer">
+ <div class="fl bottom_wrap">
+ <button type="button" class="btn_s" onclick="fncSelectAuthorList();" title="<spring:message code="button.list" /> <spring:message code="input.button" />" ><spring:message code="button.list" /></button>
+ </div>
+ <div class="fr bottom_wrap">
+ <!-- 하단 버튼 -->
+ <button type="submit" class="btn_s" title="<spring:message code="button.create" /> <spring:message code="input.button" />" ><spring:message code="button.create" /></button>
+ </div>
+ </div>
-</div>
-</form:form>
-
-</body>
-</html>
-
+</form:form>
\ No newline at end of file
Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorUpdate.jsp
===================================================================
--- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorUpdate.jsp (revision 17)
+++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/sec/ram/EgovAuthorUpdate.jsp (revision 18)
@@ -25,13 +25,6 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="pageTitle"><spring:message code="comCopSecRam.title"/></c:set>
-<!DOCTYPE html>
-<html>
-<head>
-<title>${pageTitle} <spring:message code="title.update" /></title><!-- 권한관리 수정 -->
-<meta http-equiv="content-type" content="text/html; charset=utf-8">
-<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />">
-
<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">
@@ -61,67 +54,63 @@
}
</script>
-</head>
-
-<body>
-<!-- javascript warning tag -->
-<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
+<!-- 타이틀 -->
+<div class="board_header">
+ <h3>${pageTitle} <spring:message code="title.update" /></h3>
+</div>
<form:form commandName="authorManage" action="${pageContext.request.contextPath}/sec/ram/EgovAuthorUpdate.do" method="post" onSubmit="fncAuthorUpdate(document.forms[0]); return false;">
-<div class="wTableFrm">
- <!-- 타이틀 -->
- <h2>${pageTitle} <spring:message code="title.update" /></h2><!-- 권한관리 수정 -->
-
<!-- 등록폼 -->
- <table class="wTable" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
- <caption>${pageTitle} <spring:message code="title.create" /></caption>
- <colgroup>
- <col style="width: 16%;"><col style="width: ;">
- </colgroup>
- <tbody>
- <!-- 입력 -->
- <c:set var="inputTxt"><spring:message code="input.input" /></c:set>
- <!-- 권한코드 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorCode" /></c:set>
- <tr>
- <th>${title} <span class="pilsu">*</span></th>
- <td class="left">
- <form:input path="authorCode" title="${title} ${inputTxt}" size="40" maxlength="30" />
- <div><form:errors path="authorCode" cssClass="error" /></div>
- </td>
- </tr>
- <!-- 권한명 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorNm" /></c:set>
- <tr>
- <th>${title} <span class="pilsu">*</span></th>
- <td class="left">
- <form:input path="authorNm" title="${title} ${inputTxt}" size="40" maxlength="60" />
- <div><form:errors path="authorNm" cssClass="error" /></div>
- </td>
- </tr>
- <!-- 설명 -->
- <c:set var="title"><spring:message code="comCopSecRam.regist.authorDc" /></c:set>
- <tr>
- <th>${title}</th>
- <td class="left">
- <form:textarea path="authorDc" title="${title} ${inputTxt}" cols="300" rows="10" />
- <div><form:errors path="authorDc" cssClass="error" /></div>
- </td>
- </tr>
- </tbody>
- </table>
-
+ <div class="board_body">
+ <p class="must_text"><em>*</em>는 필수 입력사항입니다.</p>
+ <table class="table_write" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />">
+ <caption>권한수정 - 권한코드, 권한명, 설명으로 구성</caption>
+ <colgroup>
+ <col style="width: 16%;"><col style="width: ;">
+ </colgroup>
+ <tbody>
+ <!-- 입력 -->
+ <c:set var="inputTxt"><spring:message code="input.input" /></c:set>
+ <!-- 권한코드 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorCode" /></c:set>
+ <tr>
+ <th scope="row" class="must">${title}</th>
+ <td class="left">
+ <form:input path="authorCode" title="${title} ${inputTxt}" size="40" maxlength="30" readonly="true" cssClass="width100p inputText"/>
+ <div><form:errors path="authorCode" cssClass="error" /></div>
+ </td>
+ </tr>
+ <!-- 권한명 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorNm" /></c:set>
+ <tr>
+ <th scope="row" class="must">${title}</th>
+ <td class="left">
+ <form:input path="authorNm" title="${title} ${inputTxt}" size="40" maxlength="60" cssClass="width100p inputText"/>
+ <div><form:errors path="authorNm" cssClass="error" /></div>
+ </td>
+ </tr>
+ <!-- 설명 -->
+ <c:set var="title"><spring:message code="comCopSecRam.regist.authorDc" /></c:set>
+ <tr>
+ <th scope="row">${title}</th>
+ <td class="left">
+ <form:textarea path="authorDc" title="${title} ${inputTxt}" cols="300" rows="10" cssClass=" width100p height100"/>
+ <div><form:errors path="authorDc" cssClass="error" /></div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
<!-- 하단 버튼 -->
- <div class="btn">
- <input type="submit" class="s_submit" value="<spring:message code="button.update" />" title="<spring:message code="button.update" /> <spring:message code="input.button" />" /><!-- 수정 -->
- <span class="btn_s"><a href="<c:url value='/sec/ram/EgovAuthorList.do' />" title="<spring:message code="button.list" /> <spring:message code="input.button" />"><spring:message code="button.list" /></a></span><!-- 목록 -->
- </div><div style="clear:both;"></div>
+ <div class="board_footer">
+ <div class="fl bottom_wrap">
+ <button class="btn_s" type="button" onclick="fncSelectAuthorList();" title="<spring:message code="button.list" /> <spring:message code="input.button" />"><spring:message code="button.list" /></button>
+ </div>
+ <div class="fr bottom_wrap">
+ <button class="btn_s" type="submit" title="<spring:message code="button.update" /> <spring:message code="input.button" />"><spring:message code="button.update"/></button>
+ </div>
+ </div>
-</div>
-<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}'/>"/>
-</form:form>
-
-</body>
-</html>
-
+ <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}'/>"/>
+</form:form>
\ No newline at end of file
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?