147 lines
5.6 KiB
Plaintext
147 lines
5.6 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=utf-8"
|
|
pageEncoding="utf-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>모바일센터 관리시스템</title>
|
|
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
|
|
<script src="<c:out value="/js/bootstrap.min.js" />"></script>
|
|
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
|
|
<link href="<c:out value="/css/bootstrap.min.css" />" rel="stylesheet">
|
|
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
|
|
<style>
|
|
.searchList > li{
|
|
display: inline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<script>
|
|
function fn_link_page(pageNo) {
|
|
document.searchForm.pageIndex.value = pageNo;
|
|
document.searchForm.action = "<c:url value='/admin/userInfo' />";
|
|
document.searchForm.submit();
|
|
}
|
|
</script>
|
|
<body>
|
|
<%@ include file="../include/header.jsp"%>
|
|
<section class="section">
|
|
<div class="section_title">
|
|
<!-- <p>현장 지원 시스템</p> -->
|
|
</div>
|
|
<div class="section_content">
|
|
<form:form commandName="userSearchVO" name="searchForm" action="/admin/userInfo" method="get">
|
|
<div class="search_div">
|
|
<div class="search_menu">
|
|
<ul class="nav nav-pills" role="tablist">
|
|
<li role="presentation" <c:if test="${userSearchVO.auth eq '99'}">class="active"</c:if>><a href="/admin/userInfo?auth=99">승인대기<span class="badge"><c:out value='${standByCount}' /></span></a></li>
|
|
<li role="presentation" <c:if test="${empty userSearchVO.auth}">class="active"</c:if>><a href="/admin/userInfo">회원 관리</a></li>
|
|
</ul>
|
|
<input type="hidden" name="auth" value="${userSearchVO.auth}" />
|
|
</div>
|
|
|
|
|
|
<div class="search_keyword">
|
|
<select class="form-control search_selectbox" name="searchCondition">
|
|
<option <c:if test="${userSearchVO.searchCondition eq 'all'}">selected</c:if> value="all">통합검색</option>
|
|
<option <c:if test="${userSearchVO.searchCondition eq 'name'}">selected</c:if> value="name">이름</option>
|
|
<option <c:if test="${userSearchVO.searchCondition eq 'company'}">selected</c:if> value="company">소속</option>
|
|
<option <c:if test="${userSearchVO.searchCondition eq 'email'}">selected</c:if> value="email">이메일</option>
|
|
<option <c:if test="${userSearchVO.searchCondition eq 'phonenum'}">selected</c:if> value="phonenum">전화번호</option>
|
|
</select>
|
|
<input type="text" class="form-control search_inputbox" name="searchKeyword" value="${userSearchVO.searchKeyword}" />
|
|
<input class="btn btn-default" type="submit" value="검색" />
|
|
</div>
|
|
</div>
|
|
|
|
<table class="list-table">
|
|
<thead>
|
|
<tr><th colspan="7">회원 관리</th></tr>
|
|
<tr>
|
|
<th>아이디</th>
|
|
<th>이름</th>
|
|
<th>소속</th>
|
|
<th>전화번호</th>
|
|
<th>이메일</th>
|
|
<th>가입일</th>
|
|
<c:choose>
|
|
<c:when test="${userSearchVO.auth eq '99'}">
|
|
<th>상태</th>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<th>권한</th>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:if test="${count >= 1}">
|
|
<c:forEach var="item" items="${userList}" varStatus="idx">
|
|
<tr>
|
|
<td><a href="/admin/userInfo/<c:out value='${item.userid}' />"><c:out value='${item.userid}' /></a></td>
|
|
<td><a href="/admin/userInfo/<c:out value='${item.userid}' />"><c:out value='${item.name}' /></a></td>
|
|
<td><a href="/admin/userInfo/<c:out value='${item.userid}' />"><c:out value='${item.company}' /></a></td>
|
|
<td><a href="/admin/userInfo/<c:out value='${item.userid}' />"><c:out value='${item.phonenum}' /></a></td>
|
|
<td><a href="/admin/userInfo/<c:out value='${item.userid}' />"><c:out value='${item.email}' /></a></td>
|
|
<td class="td_date"><c:out value='${item.regdate}' /></a></td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${item.auth eq '1'}">관리자</c:when>
|
|
<c:when test="${item.auth eq '2'}">사용자</c:when>
|
|
<c:when test="${item.auth eq '99'}">
|
|
<input type="button" class="btn btn-default" value="승인" onclick="confirmBtn('${item.userid}','2'); return false;" />
|
|
<input type="button" class="btn btn-default" value="삭제" onclick="confirmBtn('${item.userid}','-1'); return false;" />
|
|
</c:when>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:if>
|
|
<c:if test="${count == 0}">
|
|
<tr><td colspan="7">요청한 목록이 없습니다.</td></tr>
|
|
</c:if>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="paging" style="width: 100%;">
|
|
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page" />
|
|
<form:hidden path="pageIndex" />
|
|
</div>
|
|
</form:form>
|
|
|
|
<form:form commandName="userVO" id="updateFrm" method="post" action="/admin/userSign">
|
|
<input type="hidden" id="userid" name="userid" />
|
|
<input type="hidden" id="auth" name="auth" />
|
|
</form:form>
|
|
</div>
|
|
</section>
|
|
<script type="text/javascript">
|
|
function confirmBtn(userid, auth){
|
|
$("#userid").val(userid);
|
|
$("#auth").val(auth);
|
|
|
|
var msg;
|
|
if(auth == 2){
|
|
msg = "승인";
|
|
}else{
|
|
msg = "삭제";
|
|
}
|
|
|
|
if(confirm(msg+" 처리 하시겠습니까?")){
|
|
$("#updateFrm").submit();
|
|
}else{
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|