338 lines
14 KiB
Plaintext
338 lines
14 KiB
Plaintext
|
|
<%--
|
|
Class Name : EgovUserManage.jsp
|
|
Description : 사용자관리(조회,삭제) JSP
|
|
Modification Information
|
|
|
|
수정일 수정자 수정내용
|
|
------- -------- ---------------------------
|
|
2009.03.03 JJY 최초 생성
|
|
2011.08.31 JJY 경량환경 버전 생성
|
|
|
|
author : 공통서비스 개발팀 JJY
|
|
since : 2009.03.03
|
|
--%>
|
|
<%@ 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 prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
|
|
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
|
<meta http-equiv="content-language" content="ko">
|
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
|
|
<title>사용자 목록</title>
|
|
<script type="text/javaScript" language="javascript" defer="defer">
|
|
|
|
$( document ).ready(function(){
|
|
<c:if test="${!empty message}">
|
|
alert('${message}');
|
|
</c:if>
|
|
});
|
|
function fnCheckAll(){
|
|
var checkField = document.listForm.checkField;
|
|
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 fnDeleteUser() {
|
|
if($("input:checkbox[name='checkField']").is(":checked")==false){
|
|
alert("선택된 항목이 없습니다.");
|
|
return;
|
|
}
|
|
var checkField = document.listForm.checkField;
|
|
var id = document.listForm.checkId;
|
|
var checkedIds = "";
|
|
var checkedCount = 0;
|
|
if(checkField) {
|
|
if(checkField.length > 1) {
|
|
for(var i=0; i < checkField.length; i++) {
|
|
if(checkField[i].checked) {
|
|
checkedIds += ((checkedCount==0? "" : ",") + id[i].value);
|
|
checkedCount++;
|
|
}
|
|
}
|
|
} else {
|
|
if(checkField.checked) {
|
|
checkedIds = id.value;
|
|
}
|
|
}
|
|
}
|
|
if(checkedIds.length > 0) {
|
|
//alert(checkedIds);
|
|
if(confirm("<spring:message code="common.delete.msg" />")){
|
|
document.listForm.checkedIdForDel.value=checkedIds;
|
|
document.listForm.action = "<c:url value='/uss/umt/user/EgovUserDelete.do'/>";
|
|
document.listForm.submit();
|
|
}
|
|
}
|
|
}
|
|
function fnSelectUser(id) {
|
|
document.modiForm.selectedId.value = id;
|
|
array = id.split(":");
|
|
if(array[0] == "") {
|
|
} else {
|
|
userTy = array[0];
|
|
userId = array[1];
|
|
}
|
|
document.modiForm.selectedId.value = userId;
|
|
document.modiForm.action = "<c:url value='/uss/umt/user/EgovUserSelectUpdtView.do'/>";
|
|
document.modiForm.submit();
|
|
}
|
|
function fnAddUserView() {
|
|
document.modiForm.action = "<c:url value='/uss/umt/user/EgovUserInsertView.do'/>";
|
|
document.modiForm.submit();
|
|
}
|
|
function linkPage(pageNo){
|
|
var listForm = document.listForm ;
|
|
listForm.pageIndex.value = pageNo ;
|
|
listForm.searchCondition.value = $('#searchCondition').val();
|
|
if($('#searchConditionSite').length != 0){
|
|
listForm.searchConditionSite.value = $('#searchConditionSite').val();
|
|
}
|
|
listForm.searchKeyword.value = $('#searchKeyword').val();
|
|
listForm.action = "<c:url value='/uss/umt/user/EgovUserManage.do'/>";
|
|
listForm.submit();
|
|
}
|
|
|
|
function fnSearch(){
|
|
<%--<c:if test="${!empty loginId}">
|
|
if(""!= document.listForm.searchKeyword.value){
|
|
updateRecentSearch();//최근검색어 등록
|
|
}
|
|
</c:if>--%>
|
|
|
|
linkPage(1);
|
|
}
|
|
function fnViewCheck(){
|
|
if(insert_msg.style.visibility == 'hidden'){
|
|
insert_msg.style.visibility = 'visible';
|
|
}else{
|
|
insert_msg.style.visibility = 'hidden';
|
|
}
|
|
}
|
|
|
|
//엑셀 다운로드
|
|
function userListExcelDownload(){
|
|
document.listForm.method = "post";
|
|
document.listForm.action = "<c:url value='/uss/umt/user/userExcelDownload.do'/>";
|
|
document.listForm.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="listForm" action="<c:url value='/uss/umt/user/EgovUserManage.do'/>" method="post">
|
|
<double-submit:preventer tokenKey="someKey" />
|
|
<input name="selectedId" type="hidden" />
|
|
<input name="checkedIdForDel" type="hidden" />
|
|
<input name="pageIndex" type="hidden" value="<c:out value='${userSearchVO.pageIndex}' default='1' /> "/>
|
|
<input name="adminYn" type="hidden" value="Y"/>
|
|
<input type="hidden" name="searchSortCnd" value="<c:out value="${userSearchVO.searchSortCnd}" />" />
|
|
<input type="hidden" name="searchSortOrd" value="<c:out value="${userSearchVO.searchSortOrd}" />" />
|
|
<input type="hidden" name="gnrlUser" value="N"/>
|
|
<div class="cont_wrap">
|
|
<div class="box">
|
|
<div class="cont_tit">
|
|
<h2>관리자관리</h2>
|
|
<ul class="cont_nav">
|
|
<li class="home"><a href="/"><i></i></a></li>
|
|
<li><p>관리자관리</p></li>
|
|
<li><span class="cur_nav">관리자 관리</span></li>
|
|
</ul>
|
|
</div>
|
|
<!-- cont -->
|
|
<div class="cont">
|
|
<!-- list_top -->
|
|
<div class="list_top table_top">
|
|
<p class="table_total_text">총 건수 : <span class="color_blue"><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p>
|
|
<div class="list_util">
|
|
<c:if test="${siteId eq 'super'}">
|
|
<select name="searchConditionSite" id="searchConditionSite" title="검색조건2-검색어구분">
|
|
<c:forEach var="result" items="${siteManageList}" varStatus="status">
|
|
<option value="${result.siteId}" <c:if test="${result.siteId eq userSearchVO.searchConditionSite }">selected="selected"</c:if> >${result.siteNm}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</c:if>
|
|
<select class="sel2 searchSel" id="searchCondition" name="searchCondition" title="조회조건">
|
|
<option value="" <c:if test="${empty userSearchVO.searchCondition }">selected="selected"</c:if> >전체</option>
|
|
<option value="0" <c:if test="${userSearchVO.searchCondition == '0'}">selected="selected"</c:if> >아이디</option>
|
|
<option value="1" <c:if test="${userSearchVO.searchCondition == '1'}">selected="selected"</c:if> >관리자명</option>
|
|
</select>
|
|
|
|
<input type="text" id="searchKeyword" name="searchKeyword" value="<c:out value='${userSearchVO.searchKeyword}'/>" class="search_input" placeholder="검색어를 입력하세요">
|
|
<button class="btn btn_text blue_border btn_search" onclick="fnSearch(); return false;">검색</button>
|
|
|
|
<select class="sel2 searchSel" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">
|
|
<option value='10' <c:if test="${userSearchVO.pageUnit == '10' or userSearchVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
|
<option value='20' <c:if test="${userSearchVO.pageUnit == '20'}">selected</c:if>>20줄</option>
|
|
<option value='30' <c:if test="${userSearchVO.pageUnit == '30'}">selected</c:if>>30줄</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<!-- //list_top -->
|
|
|
|
<!-- list -->
|
|
<div class="table-layout">
|
|
<table>
|
|
<colgroup>
|
|
<col style="width: 5%">
|
|
<col style="width: 5%">
|
|
<col style="width: 8%">
|
|
<col style="width: 10%">
|
|
<col style="width: 10%">
|
|
<%-- <col style="width: 10%"> --%>
|
|
<col style="width: 10%">
|
|
<col style="width: 10%">
|
|
<col style="width: 10%">
|
|
<col style="width: auto">
|
|
<col style="width: 10%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="fnCheckAll();" /><label for="checkAll"></label></th>
|
|
<th scope="col">번호<button class="sort sortBtn" id="sort_uniqId">▲</button></th>
|
|
<th scope="col">권한<button class="sort sortBtn" id="sort_authorCodeTxt">▲</button></th>
|
|
<th scope="col">아이디<button class="sort sortBtn" id="sort_userId">▲</button></th>
|
|
<th scope="col">성명<button class="sort sortBtn" id="sort_userNm">▲</button></th>
|
|
<!-- <th scope="col">소속<button class="sort sortBtn" id="sort_partIdxTxt">▲</button></th> -->
|
|
<th scope="col">직책<button class="sort sortBtn" id="sort_ofcpsNm">▲</button></th>
|
|
<th scope="col">전화번호<button class="sort sortBtn" id="sort_offmTelno">▲</button></th>
|
|
<th scope="col">팩스번호<button class="sort sortBtn" id="sort_fxNum">▲</button></th>
|
|
<th scope="col">담당업무<!-- <button class="sort sortBtn" id="sort_fxNum">▲</button> --></th>
|
|
<th scope="col">등록일<button class="sort sortBtn" id="sort_sbscrbDe">▲</button></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach var="result" items="${resultList}" varStatus="status">
|
|
<tr>
|
|
<td>
|
|
<input name="checkField" id="<c:out value="${result.uniqId}"/>" title="Check <c:out value="${status.count}"/>" type="checkbox"/><label for="<c:out value="${result.uniqId}"/>"></label>
|
|
<input name="checkId" type="hidden" value="<c:out value='${result.userTy}'/>:<c:out value='${result.uniqId}'/>"/>
|
|
</td>
|
|
<td>
|
|
<c:if test="${userSearchVO.searchSortOrd eq 'desc' }">
|
|
<c:out value="${ ( paginationInfo.totalRecordCount - ((userSearchVO.pageIndex -1)*userSearchVO.pageUnit) ) - status.index }"/>
|
|
</c:if>
|
|
<c:if test="${userSearchVO.searchSortOrd eq 'asc' }">
|
|
<c:out value="${(userSearchVO.pageIndex - 1) * userSearchVO.pageUnit + status.count}"/>
|
|
</c:if>
|
|
</td>
|
|
<td>
|
|
<c:forEach items="${authorList}" var="authorResult" varStatus="status">
|
|
<c:if test="${authorResult.authorCode eq result.authorCode}">
|
|
${authorResult.authorNm}
|
|
</c:if>
|
|
</c:forEach>
|
|
</td>
|
|
|
|
<td>
|
|
<a href="<c:url value='/uss/umt/user/EgovUserSelectUpdtView.do'/>?selectedId=<c:out value="${result.uniqId}"/>" onclick="javascript:fnSelectUser('<c:out value="${result.userTy}"/>:<c:out value="${result.uniqId}"/>'); return false;">
|
|
<p class="privateInfo"><c:out value="${result.userId}"/></p>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<p class="privateInfo"><c:out value="${result.userNm}"/></p>
|
|
</td>
|
|
|
|
<%-- <td>
|
|
<span><c:out value="${result.partIdxTxt}"/></span>
|
|
</td> --%>
|
|
|
|
<td>
|
|
<%-- <c:set var="ofcpsNm" value="" />
|
|
<c:if test="${result.ofcpsNm eq '10'}">
|
|
<c:set var="ofcpsNm" value="조정조사관" />
|
|
</c:if>
|
|
<c:if test="${result.ofcpsNm eq '20'}">
|
|
<c:set var="ofcpsNm" value="조정팀장" />
|
|
</c:if>
|
|
<c:if test="${result.ofcpsNm eq '30'}">
|
|
<c:set var="ofcpsNm" value="부서장" />
|
|
</c:if>
|
|
<c:if test="${result.ofcpsNm eq '40'}">
|
|
<c:set var="ofcpsNm" value="위원장" />
|
|
</c:if>
|
|
<c:if test="${result.ofcpsNm eq 'admin'}">
|
|
<c:set var="ofcpsNm" value="시스템관리자" />
|
|
</c:if>
|
|
<c:if test="${result.ofcpsNm eq '80'}">
|
|
<c:set var="ofcpsNm" value="법원연계 조정위원" />
|
|
</c:if> --%>
|
|
|
|
<span class="privateInfo">
|
|
<c:out value="${result.ofcpsNm}"/>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<c:out value="${result.offmTelno}"/>
|
|
</td>
|
|
<td>
|
|
<c:out value="${result.fxNum}"/>
|
|
</td>
|
|
<td>
|
|
<c:out value="${result.userWork}"/>
|
|
</td>
|
|
<td>
|
|
<c:out value="${result.sbscrbDe}"/>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
<c:if test="${empty resultList}">
|
|
<tr><td colspan="10"><spring:message code="common.nodata.msg" /></td></tr>
|
|
</c:if>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- //list -->
|
|
|
|
<!-- btn_wrap -->
|
|
<div class="btn_wrap">
|
|
<div class="area_left">
|
|
<button type="button" class="btn btn_text btn_46 red_border" onclick="fnDeleteUser(); return false;">삭제</button>
|
|
</div>
|
|
<div class="area_right">
|
|
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="fnAddUserView(); return false;">등록</button>
|
|
</div>
|
|
</div>
|
|
<!-- //btn_wrap -->
|
|
|
|
<!-- page -->
|
|
<c:if test="${!empty resultList}">
|
|
<div class="page">
|
|
<ul class="inline">
|
|
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
|
</ul>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
<!-- //cont -->
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<form name="modiForm" id="modiForm" method="get">
|
|
<input name="selectedId" type="hidden" />
|
|
</form>
|
|
</body>
|
|
</html>
|