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 : 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="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>권한 목록</title>
<script type="text/javaScript" language="javascript" defer="defer">
<!--
function fncCheckAll() {
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 returnValue = "";
var returnBoolean = false;
var checkCount = 0;
if(checkField) {
if(checkField.length > 1) {
for(var i=0; i<checkField.length; i++) {
if(checkField[i].checked) {
checkField[i].value = checkId[i].value;
if(returnValue == "")
returnValue = checkField[i].value;
else
returnValue = returnValue + ";" + checkField[i].value;
checkCount++;
}
}
if(checkCount > 0)
returnBoolean = true;
else {
alert("선택된 권한이 없습니다.");
returnBoolean = false;
}
} else {
if(document.listForm.delYn.checked == false) {
alert("선택된 권한이 없습니다.");
returnBoolean = false;
}
else {
returnValue = checkId.value;
returnBoolean = true;
}
}
} else {
alert("조회된 결과가 없습니다.");
}
document.listForm.authorCodes.value = returnValue;
return returnBoolean;
}
function fncSelectAuthorList(){
var searchForm = document.searchForm ;
searchForm.searchKeyword.value = $('#searchKeyword').val();
searchForm.submit();
}
function fncSelectAuthor(author) {
document.modiForm.authorCode.value = author;
document.modiForm.action = "<c:url value='/sec/ram/EgovAuthor.do'/>";
document.modiForm.submit();
}
function fncAddAuthorInsert(){
//location.replace("<c:url value='/sec/ram/EgovAuthorInsertView.do'/>");
document.modiForm.action = "<c:url value='/sec/ram/EgovAuthorInsertView.do'/>";
document.modiForm.submit();
}
function fncAuthorDeleteList() {
if(fncManageChecked()) {
if(confirm("삭제하시겠습니까?")) {
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorListDelete.do'/>";
document.listForm.submit();
}
}
}
function fncAddAuthorView() {
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorUpdate.do'/>";
document.listForm.submit();
}
function fncSelectAuthorRole(author) {
document.modiForm.searchKeyword.value = author;
document.modiForm.action = "<c:url value='/sec/ram/EgovAuthorRoleList.do'/>";
document.modiForm.submit();
}
function linkPage(pageNo){
document.listForm.searchCondition.value = "1";
document.listForm.pageIndex.value = pageNo;
document.listForm.action = "<c:url value='/sec/ram/EgovAuthorList.do'/>";
document.listForm.submit();
}
function press() {
if (event.keyCode==13) {
fncSelectAuthorList();
}
}
-->
</script>
<style>
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: url('/') no-repeat 95% 50%; /* 화살표 모양의 이미지 */ }
select::-ms-expand { display: none;}
</style>
</head>
<body>
<form:form id="listForm" name="listForm" action="<c:url value='/sec/ram/EgovAuthorList.do'/>" method="post">
<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"/>
<div class="ad_content">
<div class="ad_con_head">
<div class="ad_head_text">
<p class="today_txt">권한관리</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="ad_con_body">
<div class="ad_bo_h3">
<div class="board1_div1">
권한명 :
<input id="searchKeyword" name="searchKeyword" type="text" value="<c:out value='${authorManageVO.searchKeyword}'/>" size="25" title="검색" />
<ul class="board1_div2_ul">
<li><button class="board1_list_btn" onclick="fncSelectAuthorList(); return false;">검 색</button></li>
<li><button class="board1_del_btn" onclick="fncAuthorDeleteList(); return false;">삭 제</button></li>
<li><button class="board1_save_btn" onclick="fncAddAuthorInsert(); return false;">등 록</button></li>
</ul>
</div>
</div>
</div> --%>
<p class="mem_count">조회건수 : <c:out value="${paginationInfo.totalRecordCount}"/></p>
<div class="ad_mem_list">
<table>
<tr>
<th>번호</th>
<!-- <th>
<input name="checkAll" type="checkbox" title="Check All" onclick="fnCheckAll();"/>
</th> -->
<th>권한 코드</th>
<th>권한 명</th>
<th>설명</th>
<th>등록일자</th>
<th>롤 정보</th>
</tr>
<c:forEach var="author" items="${authorList}" varStatus="status">
<tr>
<td><c:out value="${(author.pageIndex - 1) * author.pageSize + status.count}"/></td>
<%-- <td><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authorCode}"/>" /></td> --%>
<td>
<a href="#" onclick="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="${author.authorCreatDe}"/></td>
<td>
<a href="#" onclick="fncSelectAuthorRole('<c:out value="${author.authorCode}"/>'); return false" ><img src="<c:url value='/images/img_search.gif'/>" width="15" height="15" align="middle" alt="롤 정보"></a>
</td>
</tr>
</c:forEach>
<c:if test="${empty authorList}">
<tr><td colspan="6"><spring:message code="common.nodata.msg" /></td></tr>
</c:if>
</table>
<!-- 페이지 네비게이션 시작 -->
<%-- <c:if test="${!empty authorList}">
<div class="board1_btn">
<ul>
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</c:if>
<!-- //페이지 네비게이션 끝 --> --%>
</div>
</div>
</div>
</form:form>
<form name="modiForm" method="get" action="<c:url value='/sec/ram/EgovAuthorRoleList.do'/>" >
<input name="authorCode" type="hidden" />
<input name="searchKeyword" type="hidden" />
</form>
<form name="searchForm" method="get" action="<c:url value='/sec/ram/EgovAuthorList.do'/>">
<input name="pageIndex" type="hidden" value="1" />
<input name="searchCondition" type="hidden" value="1" />
<input name="searchKeyword" type="hidden" />
</form>
</body>
</html>