File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
2023-06-22
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 : EgovAuthorManage.jsp
Description : EgovAuthorManage List 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.03.01 lee.m.j 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 lee.m.j
since : 2009.03.01
--%>
<%@ page 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="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" %>
<head>
<script type="text/javaScript">
function fnCheckAll() {
var checkField = document.listForm.delYn;
if(document.listForm.checkAll.checked) {
if(checkField) {
if(checkField.length > 1) {
for(var i=0; i < checkField.length; i++) {
checkField[i].checked = true;
}
} else {
checkField.checked = true;
}
}
} else {
if(checkField) {
if(checkField.length > 1) {
for(var j=0; j < checkField.length; j++) {
checkField[j].checked = false;
}
} else {
checkField.checked = false;
}
}
}
}
function fncManageChecked() {
var checkField = document.listForm.delYn;
var checkId = document.listForm.checkId;
var checkRegYn = document.listForm.regYn;
var returnValue = "";
var returnRegYns = "";
var checkedCount = 0;
var returnBoolean = false;
if(checkField) {
if(checkField.length > 1) {
for(var i=0; i<checkField.length; i++) {
if(checkField[i].checked) {
checkedCount++;
checkField[i].value = checkId[i].value;
if(returnValue == "") {
returnValue = checkField[i].value;
returnRegYns = checkRegYn[i].value;
}
else {
returnValue = returnValue + ";" + checkField[i].value;
returnRegYns = returnRegYns + ";" + checkRegYn[i].value;
}
}
}
if(checkedCount > 0)
returnBoolean = true;
else {
alert("선택된 롤이 없습니다.");
returnBoolean = false;
}
} else {
if(document.listForm.delYn.checked == false) {
alert("선택된 롤이 없습니다.");
returnBoolean = false;
}
else {
returnValue = checkId.value;
returnRegYns = checkRegYn.value;
returnBoolean = true;
}
}
} else {
alert("조회된 결과가 없습니다.");
}
document.listForm.roleCodes.value = returnValue;
document.listForm.regYns.value = returnRegYns;
return returnBoolean;
}
function fncSelectAuthorRole(roleCode) {
document.listForm.roleCode.value = roleCode;
document.listForm.action = "<c:url value='/sec/ram/EgovRole.do'/>";
document.listForm.submit();
}
function fncAddAuthorRoleInsert() {
if(fncManageChecked()) {
if(confirm("등록하시겠습니까?")) {
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorRoleInsert.do'/>";
document.listForm.submit();
}
} else return;
}
function linkPage(pageNo){
document.listForm.searchCondition.value = "1";
document.listForm.pageIndex.value = pageNo;
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorRoleList.do'/>";
document.listForm.submit();
}
function fncSelectRole(roleCode) {
document.listForm.roleCode.value = roleCode;
document.listForm.action = "/sec/rmt/EgovRole.do";
document.listForm.submit();
}
function fncGoList(){
document.listForm.searchSortCnd.value = "";
document.listForm.searchSortOrd.value = "";
document.listForm.searchKeyword.value = "";
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorList.do'/>";
document.listForm.submit();
}
</script>
</head>
<body>
<form:form id="listForm" name="listForm" action="<c:url value='/sec/ram/EgovAuthorList.do'/>" method="post">
<input type="hidden" name="roleCodes"/>
<input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}' default='1' />"/>
<input type="hidden" name="authorCode" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="roleNm" value="<c:out value="${authorRoleManageVO.roleNm}"/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${authorRoleManageVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${authorRoleManageVO.searchSortOrd}" />" />
<input name="roleCode" type="hidden" />
<input type="hidden" name="searchCondition"/>
<!-- cont -->
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">권한롤관리</h2>
<p class="tType6 c_999999">권한에 따른 롤을 파악할 수 있으며, 롤을 등록/삭제 할수 있습니다.</p>
</div>
<div class="pageCont">
<div class="listSerch">
<h3>권한(<span class="c_456ded fwBold">${authorRoleManageVO.searchKeyword} : ${authorRoleManageVO.roleNm}</span>) (롤명/롤설명/롤패턴) :</h3>
<input type="text" id=searchKeyword2 name="searchKeyword2" class="recentSearch" value="<c:out value='${authorRoleManageVO.searchKeyword2}'/>" size="40" title="검색" />
<input type="button" class="btnType1" onclick="linkPage(1); return false;" value="검색">
</div>
<div class="listTop">
<p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p>
<div class="rightWrap">
<!-- <input type="button" class="excelBtn" > -->
<!-- <input type="button" class="printBtn" > -->
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);">
<option value='10' <c:if test="${authorRoleManageVO.pageUnit == '10' or authorRoleManageVO.pageUnit == ''}">selected</c:if>>10줄</option>
<option value='20' <c:if test="${authorRoleManageVO.pageUnit == '20'}">selected</c:if>>20줄</option>
<option value='30' <c:if test="${authorRoleManageVO.pageUnit == '30'}">selected</c:if>>30줄</option>
</select>
</div>
</div>
<div class="tableWrap">
<table class="tbType1">
<colgroup>
<col style="width: 5%">
<col style="width: 8%">
<col style="width: 19%">
<col style="width: 34%">
<col style="width: 10%">
<col style="width: 15%">
<col style="width: 10%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="fnCheckAll();" /><label for="checkAll"></label></th>
<th>번호<input type="button" class="sort sortBtn" id="sort_tempSortNum"></th>
<th>롤명<input type="button" class="sort sortBtn" id="sort_ROLE_NM"></th>
<th>롤패턴<input type="button" class="sort sortBtn" id="sort_ROLE_PTTRN"></th>
<th>롤순서<input type="button" class="sort sortBtn" id="sort_ROLE_SORT"></th>
<th>롤설명<input type="button" class="sort sortBtn" id="sort_ROLE_DC"></th>
<th>등록일자<input type="button" class="sort sortBtn" id="sort_CREAT_DT"></th>
<th>등록여부<input type="button" class="sort sortBtn" id="sort_REG_YN"></th>
</tr>
</thead>
<tbody>
<c:forEach var="authorRole" items="${authorRoleList}" varStatus="status">
<tr>
<td>
<input type="checkbox" name="delYn" id="<c:out value="${authorRole.roleCode}"/>"><label for="<c:out value="${authorRole.roleCode}"/>"></label>
<input type="hidden" name="checkId" value="<c:out value="${authorRole.roleCode}"/>" />
</td>
<td>
<c:if test="${authorRoleManageVO.searchSortOrd eq 'desc' }">
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
</c:if>
<c:if test="${authorRoleManageVO.searchSortOrd eq 'asc' }">
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
</c:if>
</td>
<td>
<a href="#LINK" onclick="javascript:fncSelectRole('${authorRole.roleCode}')"><c:out value="${authorRole.roleNm}"/></a>
</td>
<td><c:out value="${authorRole.rolePtn}"/></td>
<td><c:out value="${authorRole.roleSort}"/></td>
<td><c:out value="${authorRole.roleDc}"/></td>
<td><c:out value="${authorRole.creatDt}"/></td>
<td>
<select name="regYn" title="등록여부" style="min-width:95px">
<option value="Y" <c:if test="${authorRole.regYn == 'Y'}">selected</c:if> >등록</option>
<option value="N" <c:if test="${authorRole.regYn == 'N'}">selected</c:if> >미등록</option>
</select>
</td>
</tr>
</c:forEach>
<c:if test="${empty authorRoleList}">
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr>
</c:if>
</tbody>
</table>
</div>
<div class="btnWrap">
<input type="button" class="btnType1" onclick="fncAddAuthorRoleInsert(); return false;" value="등록">
<input type="button" class="btnType1" onclick="fncGoList(); return false;" value="목록">
</div>
<!-- 페이지 네비게이션 시작 -->
<c:if test="${!empty authorRoleList}">
<div class="page">
<ul class="inline">
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</c:if>
<!-- //페이지 네비게이션 끝 -->
</div>
</div>
<!-- //cont -->
</form:form>
</body>