줄정리, 회원가입 라벨, js 링크 정리

master
Hyung Geun 2022-03-03 15:46:10 +09:00
parent 597644c790
commit fe79f99402
33 changed files with 1834 additions and 1679 deletions

View File

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
<form-validation>
<formset>
<form name="sampleVO">
<field property="name" depends="required">
<arg0 key="title.sample.name" />
</field>
<field property="description" depends="required">
<arg0 key="title.sample.description" />
<field property="name" depends="required">
<arg0 key="title.sample.name"/>
</field>
<field property="description" depends="required">
<arg0 key="title.sample.description"/>
</field>
<field property="regUser" depends="required">
<arg0 key="title.sample.regUser"/>
</field>
<field property="regUser" depends="required">
<arg0 key="title.sample.regUser" />
</field>
</form>
</formset>

View File

@ -1,106 +1,107 @@
<%@ 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"%>
<%@ 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" %>
<%--<script src="/js/admin/dashBoard.js"></script>--%>
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_004.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/request?status=99" class="text-black-50">지도사용 요청 승인대기</a>
<h3> <c:out value="${statusCnt}" /></h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_21.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/userInfo?auth=99" class="text-black-50">회원가입 승인대기</a>
<h3><c:out value="${standByCount}" /></h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_003.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/fieldData?status0=1&status1=1&status2=1&status3=1&status4=0" class="mb-0 text-black-50">확인 요청 데이터</a>
<h3><c:out value="${standFieldData}" /></h3>
<div class="row">
<div class="col-lg-3">
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_004.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/request?status=99" class="text-black-50">지도사용 요청 승인대기</a>
<h3><c:out value="${statusCnt}"/></h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_21.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/userInfo?auth=99" class="text-black-50">회원가입 승인대기</a>
<h3><c:out value="${standByCount}"/></h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_003.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<a href="/admin/fieldData?status0=1&status1=1&status2=1&status3=1&status4=0"
class="mb-0 text-black-50">확인 요청 데이터</a>
<h3><c:out value="${standFieldData}"/></h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-9">
<div class="card my-2">
<div class="card-body">
<div class="col-lg-9">
<div class="card my-2">
<div class="card-body">
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
그래프
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
그래프
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_002.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
<h3>0</h3>
</div>
<div class="row">
<div class="col-lg-3">
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_002.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
<h3>0</h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_03.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">오늘 방문자 수</p>
<h3><c:out value="${dayLoginCount}"/></h3>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_002.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">최근 한달 방문자 수</p>
<h3><c:out value="${monthLoginCount}"/></h3>
</div>
</div>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_03.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">오늘 방문자 수</p>
<h3><c:out value="${dayLoginCount}" /></h3>
</div>
<div class="col-lg-9">
<div class="card my-2">
<div class="card-body">
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
그래프
</div>
</div>
</div>
</div>
</div>
<div class="card my-2">
<div class="card-body row">
<div class="col-auto">
<img src="/images/icon/icon_002.png" width="60" height="60" alt="">
</div>
<div class="col-auto">
<p class="mb-0 text-black-50">최근 한달 방문자 수</p>
<h3><c:out value="${monthLoginCount}" /></h3>
</div>
</div>
</div>
</div>
<div class="col-lg-9">
<div class="card my-2">
<div class="card-body">
<div class="col-auto">
<p class="mb-0 text-black-50">-</p>
그래프
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,122 +1,140 @@
<%@ 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"%>
<%@ 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" %>
<script src="/js/admin/fieldData.js"></script>
<script src="<c:url value="/js/admin/fieldData.js"/>"></script>
<style>
.searchList > li{
display: inline;
}
.searchList > li {
display: inline;
}
</style>
<div class="mx-lg-2">
<h1 class="h4 m-3"> 현장수집 데이터(${count})</h1>
<form:form commandName="fieldDataSearchVO" name="searchForm" action="/admin/fieldData" method="get">
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status0 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status0" id="status0" value="1" ${fieldDataSearchVO.status0 eq 1?'checked':''}>
<label for="status0">수집</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status1 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status1" id="status1" value="1" ${fieldDataSearchVO.status1 eq 1?'checked':''}>
<label for="status1" >검증실패</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status2 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status2" id="status2" value="1" ${fieldDataSearchVO.status2 eq 1?'checked':''}>
<label for="status2" >검증</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status3 eq 1?'active':'disabled'}">
<input type="checkbox" class="statusChkBox d-none" name="status3" id="status3" value="1" ${fieldDataSearchVO.status3 eq 1?'checked':''}>
<label for="status3" >반영실패</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status4 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status4" id="status4" value="1" ${fieldDataSearchVO.status4 eq 1?'checked':''}>
<label for="status4" >반영</label>
</a>
</li>
</ul>
</div>
<h1 class="h4 m-3"> 현장수집 데이터(${count})</h1>
<form:form commandName="fieldDataSearchVO" name="searchForm" action="/admin/fieldData" method="get">
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status0 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status0" id="status0"
value="1" ${fieldDataSearchVO.status0 eq 1?'checked':''}>
<label for="status0">수집</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status1 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status1" id="status1"
value="1" ${fieldDataSearchVO.status1 eq 1?'checked':''}>
<label for="status1">검증실패</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status2 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status2" id="status2"
value="1" ${fieldDataSearchVO.status2 eq 1?'checked':''}>
<label for="status2">검증</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status3 eq 1?'active':'disabled'}">
<input type="checkbox" class="statusChkBox d-none" name="status3" id="status3"
value="1" ${fieldDataSearchVO.status3 eq 1?'checked':''}>
<label for="status3">반영실패</label>
</a>
</li>
<li class="nav-item">
<a class="nav-link ${fieldDataSearchVO.status4 eq 1?'active':'disabled'}" href="#">
<input type="checkbox" class="statusChkBox d-none" name="status4" id="status4"
value="1" ${fieldDataSearchVO.status4 eq 1?'checked':''}>
<label for="status4">반영</label>
</a>
</li>
</ul>
</div>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'all'}"><c:out value="selected" /></c:if> value="all">통합검색</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'name'}"><c:out value="selected" /></c:if> value="name">이름</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'company'}"><c:out value="selected" /></c:if> value="company">소속</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'region'}"><c:out value="selected" /></c:if> value="region">위치</option>
</select>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'all'}"><c:out
value="selected"/></c:if> value="all">통합검색
</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'name'}"><c:out
value="selected"/></c:if> value="name">이름
</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'company'}"><c:out value="selected"/></c:if>
value="company">소속
</option>
<option <c:if test="${fieldDataSearchVO.searchCondition eq 'region'}"><c:out value="selected"/></c:if>
value="region">위치
</option>
</select>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword"
value="${fieldDataSearchVO.searchKeyword}"/>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색"/>
</div>
</div>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${fieldDataSearchVO.searchKeyword}"/>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>Data ID</th>
<th>지역</th>
<th>소속</th>
<th>담당자</th>
<th>수집날짜</th>
<th>상태</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${fieldDataList}">
<tr>
<td><a href="/admin/fieldData/${item.id}"><c:out value="${item.id}"/></a></td>
<td><a href="/admin/fieldData/${item.id}"><c:out value="${item.region}"/></a></td>
<td><c:out value="${item.userVO.company}"/></td>
<td><c:out value="${item.userVO.name}"/></td>
<td class="td_date"><c:out value="${item.save_date}"/></td>
<td>
<c:choose>
<c:when test="${item.status eq '0'}"><span class="card-warning">수집</span> </c:when>
<c:when test="${item.status eq '1'}"><span
class="card-default">검증실패</span> </c:when>
<c:when test="${item.status eq '2'}"><span class="card-warning">검증</span> </c:when>
<c:when test="${item.status eq '3'}"><span
class="card-default">반영실패</span> </c:when>
<c:when test="${item.status eq '4'}"><span class="card-success">반영</span> </c:when>
</c:choose>
</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr>
<td colspan="4">요청한 목록이 없습니다.</td>
</tr>
</c:if>
</tbody>
</table>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색"/>
<div class="text-page">
<form:hidden path="pageIndex"/>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page"/>
</ul>
</nav>
</div>
</div>
</div>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>Data ID</th>
<th>지역</th>
<th>소속</th>
<th>담당자</th>
<th>수집날짜</th>
<th>상태</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${fieldDataList}">
<tr>
<td><a href="/admin/fieldData/${item.id}"><c:out value="${item.id}" /></a></td>
<td><a href="/admin/fieldData/${item.id}"><c:out value="${item.region}" /></a></td>
<td><c:out value="${item.userVO.company}" /></td>
<td><c:out value="${item.userVO.name}" /></td>
<td class="td_date"><c:out value="${item.save_date}" /></td>
<td>
<c:choose>
<c:when test="${item.status eq '0'}"><span class="card-warning">수집</span> </c:when>
<c:when test="${item.status eq '1'}"><span class="card-default">검증실패</span> </c:when>
<c:when test="${item.status eq '2'}"><span class="card-warning">검증</span> </c:when>
<c:when test="${item.status eq '3'}"><span class="card-default">반영실패</span> </c:when>
<c:when test="${item.status eq '4'}"><span class="card-success">반영</span> </c:when>
</c:choose>
</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr><td colspan="4">요청한 목록이 없습니다.</td></tr>
</c:if>
</tbody>
</table>
</div>
<div class="text-page">
<form:hidden path="pageIndex" />
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page" />
</ul>
</nav>
</div>
</form:form>
</form:form>
</div>

View File

@ -1,8 +1,8 @@
<%@ 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"%>
<%@ 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" %>
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/openlayers/ol.css" />" rel="stylesheet">
@ -10,108 +10,109 @@
<script src="<c:out value="/js/openlayers/ol.js" />"></script>
<script src="<c:out value="/js/openlayers/proj4.js" />"></script>
<script>
const field_data = JSON.parse('${fieldDataVO.field_data}');
const field_data = JSON.parse('${fieldDataVO.field_data}');
</script>
<script src="<c:out value="/js/admin/fieldView.js" />"></script>
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
</div>
<div class="section_content">
<div class="row justify-content-end bg-white mx-3 py-2">
<table class="table table-hover text-center">
<thead>
<tr>
<h5>담당자</h5>
</tr>
</thead>
<tbody>
<tr>
<th>소속</th>
<td class="text-center"><c:out value='${userVO.company}' /></td>
<th>이름</th>
<td class="text-center"><c:out value='${userVO.name}' /></td>
<th>연락처</th>
<td class="text-center"><c:out value='${userVO.phonenum}' /></td>
</tr>
</tbody>
</table>
</div>
<div class="row justify-content-end bg-white mx-3 mt-3 mb-2 py-2">
<table class="table table-hover text-center">
<thead>
<tr>
<h3>현장수집 데이터</h3>
</tr>
</thead>
<tbody>
<tr>
<th>레이어 ID</th>
<td class="text-center"><c:out value="${fieldDataVO.layer_id}" /></td>
<th>수집일</th>
<td class="text-center"><c:out value="${fieldDataVO.save_date}" /></td>
</tr>
<tr>
<th>지역</th>
<td class="text-center"><c:out value="${fieldDataVO.region}" /></td>
<th>상태</th>
<td class="text-center">
<c:choose>
<c:when test="${fieldDataVO.status eq '0'}">
<span class="label label-warning">수집</span>
</c:when>
<c:when test="${fieldDataVO.status eq '1'}">
<span class="label label-danger">검증실패</span>
</c:when>
<c:when test="${fieldDataVO.status eq '2'}">
<span class="label label-success">검증성공</span>
</c:when>
<c:when test="${fieldDataVO.status eq '3'}">
<span class="label label-danger">반영실패</span>
</c:when>
<c:when test="${fieldDataVO.status eq '4'}">
<span class="label label-success">반영</span>
</c:when>
</c:choose>
</td>
</tr>
<tr>
<th>설명</th>
<td></td>
<th>오류내용</th>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="border border-2 border border-dark border border-start-0 border-end-0 py-2 mx-3">
<div class="mapWrap">
<div class="map-title text-center">측량데이터</div>
<div class="map" id="map"> </div>
</div>
<div class="fieldDataDiv">
<table class="fieldDataTable" id="fieldDataTable">
<thead>
<tr>
<th colspan="4">속성정보</th>
</tr>
</thead>
<tbody id="fieldDataBody">
</tbody>
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
</div>
<div class="section_content">
<div class="row justify-content-end bg-white mx-3 py-2">
<table class="table table-hover text-center">
<thead>
<tr>
<h5>담당자</h5>
</tr>
</thead>
<tbody>
<tr>
<th>소속</th>
<td class="text-center"><c:out value='${userVO.company}'/></td>
<th>이름</th>
<td class="text-center"><c:out value='${userVO.name}'/></td>
<th>연락처</th>
<td class="text-center"><c:out value='${userVO.phonenum}'/></td>
</tr>
</tbody>
</table>
</div>
<ul id="fieldDataPaging" class="fieldDataPaging"></ul>
</div>
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록" onclick="location.href='/admin/fieldData'" />
</p>
<p class="search_p2">
<input class="btn btn-secondary" type="button" value="표준DB변환 및 검증" onclick="fieldVerify();" />
<input class="btn btn-success" type="button" value="반영" onclick="fieldReflect();" />
</p>
</div>
</div>
<div class="row justify-content-end bg-white mx-3 mt-3 mb-2 py-2">
<table class="table table-hover text-center">
<thead>
<tr>
<h3>현장수집 데이터</h3>
</tr>
</thead>
<tbody>
<tr>
<th>레이어 ID</th>
<td class="text-center"><c:out value="${fieldDataVO.layer_id}"/></td>
<th>수집일</th>
<td class="text-center"><c:out value="${fieldDataVO.save_date}"/></td>
</tr>
<tr>
<th>지역</th>
<td class="text-center"><c:out value="${fieldDataVO.region}"/></td>
<th>상태</th>
<td class="text-center">
<c:choose>
<c:when test="${fieldDataVO.status eq '0'}">
<span class="label label-warning">수집</span>
</c:when>
<c:when test="${fieldDataVO.status eq '1'}">
<span class="label label-danger">검증실패</span>
</c:when>
<c:when test="${fieldDataVO.status eq '2'}">
<span class="label label-success">검증성공</span>
</c:when>
<c:when test="${fieldDataVO.status eq '3'}">
<span class="label label-danger">반영실패</span>
</c:when>
<c:when test="${fieldDataVO.status eq '4'}">
<span class="label label-success">반영</span>
</c:when>
</c:choose>
</td>
</tr>
<tr>
<th>설명</th>
<td></td>
<th>오류내용</th>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="border border-2 border border-dark border border-start-0 border-end-0 py-2 mx-3">
<div class="mapWrap">
<div class="map-title text-center">측량데이터</div>
<div class="map" id="map"></div>
</div>
<div class="fieldDataDiv">
<table class="fieldDataTable" id="fieldDataTable">
<thead>
<tr>
<th colspan="4">속성정보</th>
</tr>
</thead>
<tbody id="fieldDataBody">
</tbody>
</table>
</div>
<ul id="fieldDataPaging" class="fieldDataPaging"></ul>
</div>
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록" onclick="location.href='/admin/fieldData'"/>
</p>
<p class="search_p2">
<input class="btn btn-secondary" type="button" value="표준DB변환 및 검증" onclick="fieldVerify();"/>
<input class="btn btn-success" type="button" value="반영" onclick="fieldReflect();"/>
</p>
</div>
</div>
</div>

View File

@ -1,74 +1,86 @@
<%@ 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"%>
<script src="../../../js/admin/history.js"></script>
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" %>
<script src="<c:url value="/js/admin/history.js"/>"></script>
<div class="section_title">
<!-- <p>지도사용 이력</p> -->
</div>
<!-- <p>지도사용 이력</p> -->
</div>
<div class="section_content">
<h1 class="h4 m-3">지도사용 이력</h1>
<form:form commandName="UseHistorySearchVO" name="searchForm" action="/admin/history" method="get">
<div class="section_content">
<h1 class="h4 m-3">지도사용 이력</h1>
<form:form commandName="UseHistorySearchVO" name="searchForm" action="/admin/history" method="get">
<div class="row justify-content-end bg-white mx-3 py-2">
<div class="row justify-content-end bg-white mx-3 py-2">
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'all'}"><c:out value="selected" /></c:if> value="all">통합검색</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'name'}"><c:out value="selected" /></c:if> value="name">이름</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'company'}"><c:out value="selected" /></c:if> value="company">소속</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'req_area'}"><c:out value="selected" /></c:if> value="req_area">위치</option>
</select>
</div>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'all'}"><c:out value="selected"/></c:if>
value="all">통합검색
</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'name'}"><c:out
value="selected"/></c:if> value="name">이름
</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'company'}"><c:out
value="selected"/></c:if> value="company">소속
</option>
<option <c:if test="${UseHistorySearchVO.searchCondition eq 'req_area'}"><c:out
value="selected"/></c:if> value="req_area">위치
</option>
</select>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${UseHistorySearchVO.searchKeyword}" />
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색" />
</div>
</div>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword"
value="${UseHistorySearchVO.searchKeyword}"/>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색"/>
</div>
</div>
</div>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>위치</th>
<th>소속</th>
<th>담당자</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${useHistoryList}">
<tr>
<td><c:out value="${item.reqArea}" /></td>
<td><c:out value="${item.company}" /></td>
<td><c:out value="${item.name}" /></td>
<td class="td_date"><c:out value="${item.logDate}" /></td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr><td colspan="5">요청한 목록이 없습니다.</td></tr>
</c:if>
</tbody>
</table>
</div>
<div class="text-page">
<form:hidden path="pageIndex" /></form:form>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page" />
</ul>
</nav>
</div>
</div>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>위치</th>
<th>소속</th>
<th>담당자</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${useHistoryList}">
<tr>
<td><c:out value="${item.reqArea}"/></td>
<td><c:out value="${item.company}"/></td>
<td><c:out value="${item.name}"/></td>
<td class="td_date"><c:out value="${item.logDate}"/></td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr>
<td colspan="5">요청한 목록이 없습니다.</td>
</tr>
</c:if>
</tbody>
</table>
</div>
<div class="text-page">
<form:hidden path="pageIndex"/></form:form>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page"/>
</ul>
</nav>
</div>
</div>

View File

@ -1,96 +1,119 @@
<%@ 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"%>
<script src="../../../js/admin/request.js"></script>
<%@ 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" %>
<script src="<c:url value="/js/admin/request.js"/>"></script>
<div class="section_content">
<h1 class="h4 m-3">지도사용 요청</h1>
<form:form commandName="useRequestSearchVO" name="searchForm" action="/admin/request" method="get">
<input type="hidden" name="status" value="<c:out value="${useRequestSearchVO.status}" />" />
<h1 class="h4 m-3">지도사용 요청</h1>
<form:form commandName="useRequestSearchVO" name="searchForm" action="/admin/request" method="get">
<input type="hidden" name="status" value="<c:out value="${useRequestSearchVO.status}" />"/>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<ul class="nav nav-pills" role="tablist">
<li role="presentation" class="nav-item" style="margin-left: 16px"><a class="nav-link ${empty useRequestSearchVO.status?'active':''}" href="/admin/request">전체</a></li>
<li role="presentation" class="nav-item"><a class="nav-link ${useRequestSearchVO.status eq '0'?'active':''}" href="/admin/request?status=0">승인</a></li>
<li role="presentation" class="nav-item"><a class="nav-link ${useRequestSearchVO.status eq '-1'?'active':''}" href="/admin/request?status=-1">반려</a></li>
<li role="presentation" class="nav-item"><a class="nav-link ${useRequestSearchVO.status eq '99'?'active':''}" href="/admin/request?status=99">승인대기<span class="badge"><c:out value="${statusCnt}" /></span></a></li>
</ul>
</div>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${useRequestSearchVO.searchCondition eq 'all'}"><c:out value="selected" /></c:if> value="all">통합검색</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'title'}"><c:out value="selected" /></c:if> value="title">작업명</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'name'}"><c:out value="selected" /></c:if> value="name">이름</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'company'}"><c:out value="selected" /></c:if> value="company">소속</option>
</select>
</div>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${userSearchVO.searchKeyword}" />
<ul class="nav nav-pills" role="tablist">
<li role="presentation" class="nav-item" style="margin-left: 16px"><a
class="nav-link ${empty useRequestSearchVO.status?'active':''}" href="/admin/request">전체</a>
</li>
<li role="presentation" class="nav-item"><a
class="nav-link ${useRequestSearchVO.status eq '0'?'active':''}" href="/admin/request?status=0">승인</a>
</li>
<li role="presentation" class="nav-item"><a
class="nav-link ${useRequestSearchVO.status eq '-1'?'active':''}"
href="/admin/request?status=-1">반려</a></li>
<li role="presentation" class="nav-item"><a
class="nav-link ${useRequestSearchVO.status eq '99'?'active':''}"
href="/admin/request?status=99">승인대기<span class="badge"><c:out value="${statusCnt}"/></span></a>
</li>
</ul>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색" />
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" name="searchCondition">
<option <c:if test="${useRequestSearchVO.searchCondition eq 'all'}"><c:out value="selected"/></c:if>
value="all">통합검색
</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'title'}"><c:out
value="selected"/></c:if> value="title">작업명
</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'name'}"><c:out
value="selected"/></c:if> value="name">이름
</option>
<option <c:if test="${useRequestSearchVO.searchCondition eq 'company'}"><c:out
value="selected"/></c:if> value="company">소속
</option>
</select>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${userSearchVO.searchKeyword}"/>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색"/>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>번호</th>
<th>작업명</th>
<th>소속</th>
<th>담당자</th>
<th>날짜</th>
<th>상태</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${useRequestList}" varStatus="idx">
<tr>
<td><c:out value="${item.idx}" /></td>
<td><a href="/admin/request/<c:out value='${item.idx}' />"><c:out value="${item.title}" /></a></td>
<td><c:out value="${item.company}" /></td>
<td><c:out value="${item.name}" /></td>
<td class="td_date"><c:out value="${item.r_date}" /></td>
<td>
<c:choose>
<c:when test="${item.status eq '99'}"><span class="card-warning"><c:out value='승인대기' /></span></c:when>
<c:when test="${item.status eq '0'}"><span class="card-success"><c:out value='승인' /></span></c:when>
<c:when test="${item.status eq '-1'}"><span class="card-default"><c:out value='반려' /></span></c:when>
</c:choose>
</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr><td colspan="6">요청한 목록이 없습니다.</td></tr>
</c:if>
</tbody>
</table>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>번호</th>
<th>작업명</th>
<th>소속</th>
<th>담당자</th>
<th>날짜</th>
<th>상태</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="item" items="${useRequestList}" varStatus="idx">
<tr>
<td><c:out value="${item.idx}"/></td>
<td><a href="/admin/request/<c:out value='${item.idx}' />"><c:out value="${item.title}"/></a>
</td>
<td><c:out value="${item.company}"/></td>
<td><c:out value="${item.name}"/></td>
<td class="td_date"><c:out value="${item.r_date}"/></td>
<td>
<c:choose>
<c:when test="${item.status eq '99'}"><span class="card-warning"><c:out
value='승인대기'/></span></c:when>
<c:when test="${item.status eq '0'}"><span class="card-success"><c:out
value='승인'/></span></c:when>
<c:when test="${item.status eq '-1'}"><span class="card-default"><c:out
value='반려'/></span></c:when>
</c:choose>
</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${count == 0}">
<tr>
<td colspan="6">요청한 목록이 없습니다.</td>
</tr>
</c:if>
</tbody>
</table>
</div>
<div class="text-page">
<form:hidden path="pageIndex"/></form:form>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page"/>
</ul>
</nav>
</div>
<div class="text-page">
<form:hidden path="pageIndex" /></form:form>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page" />
</ul>
</nav>
</div>
</div>
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
<!-- <p>현장 지원 시스템</p> -->
</div>

View File

@ -1,198 +1,206 @@
<%@ 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"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ 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" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<script src="../../../js/admin/requestView.js"></script>
<script src="<c:url value="/js/admin/requestView.js"/>"></script>
<form:form commandName="useRequestVO" name="frm" method="POST" action="/admin/updateReqConfirm" id="updateFrm">
<input type="hidden" name="idx" value="<c:out value='${useRequestVO.idx}' />" />
<input type="hidden" name="admin_id" value="<c:out value='${loginUserVO.userid}' />" />
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
</div>
<form:form commandName="useRequestVO" name="frm" method="POST" action="/admin/updateReqConfirm" id="updateFrm">
<input type="hidden" name="idx" value="<c:out value='${useRequestVO.idx}' />"/>
<input type="hidden" name="admin_id" value="<c:out value='${loginUserVO.userid}' />"/>
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
</div>
<div class="section_content">
<input type="hidden" id="layers" name="layers"/>
<input type="hidden" id="places" name="places"/>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="section_content">
<input type="hidden" id="layers" name="layers"/>
<input type="hidden" id="places" name="places"/>
<div class="row justify-content-between bg-white mx-3 py-2">
<table class="table table-hover text-center">
<thead>
<h5 class="">&nbsp;담당자</h5>
</thead>
<tbody>
<tr>
<th>소속</th>
<td class="text-center"><c:out value='${userVO.company}' /></td>
<th>이름</th>
<td class="text-center"><c:out value='${userVO.name}' /></td>
<th>연락처</th>
<td class="text-center"><c:out value='${userVO.phonenum}' /></td>
<th>상태</th>
<td class="text-center">
<c:choose>
<c:when test="${useRequestVO.status eq '99'}"><span class="label label-warning"><c:out value='승인대기' /></span></c:when>
<c:when test="${useRequestVO.status eq '0'}"><span class="label label-success"><c:out value='승인' /></span></c:when>
<c:when test="${useRequestVO.status eq '-1'}"><span class="label label-default"><c:out value='반려' /></span></c:when>
</c:choose>
</td>
</tr>
</tbody>
</table>
</div>
<table class="table table-hover text-center">
<thead>
<h5 class="">&nbsp;담당자</h5>
</thead>
<tbody>
<tr>
<th>소속</th>
<td class="text-center"><c:out value='${userVO.company}'/></td>
<th>이름</th>
<td class="text-center"><c:out value='${userVO.name}'/></td>
<th>연락처</th>
<td class="text-center"><c:out value='${userVO.phonenum}'/></td>
<th>상태</th>
<td class="text-center">
<c:choose>
<c:when test="${useRequestVO.status eq '99'}"><span class="label label-warning"><c:out
value='승인대기'/></span></c:when>
<c:when test="${useRequestVO.status eq '0'}"><span class="label label-success"><c:out
value='승인'/></span></c:when>
<c:when test="${useRequestVO.status eq '-1'}"><span class="label label-default"><c:out
value='반려'/></span></c:when>
</c:choose>
</td>
</tr>
</tbody>
</table>
</div>
<div class="row justify-content-between bg-white mx-3 mt-4 py-2">
<table class="table table-hover text-center">
<thead>
<h3 class="h4 m-3">지도사용 요청</h3>
</thead>
<tbody>
<div class="row justify-content-between bg-white mx-3 mt-4 py-2">
<table class="table table-hover text-center">
<thead>
<h3 class="h4 m-3">지도사용 요청</h3>
</thead>
<tbody>
<tr>
<th colspan="2">작업명</th>
<td><c:out value='${useRequestVO.title}' /></td>
</tr>
<tr>
<th colspan="2">기간</th>
<td><c:out value='${useRequestVO.s_date}' /> ~ <c:out value='${useRequestVO.e_date}' /></td>
</tr>
<tr>
<th colspan="2">장소</th>
<td id="area_select_td">
<c:forEach var="item" items="${selectArea}" varStatus="status">
<div id="addedBlock<c:out value='${status.index}' />">
<c:out value='' />${item}
</div>
</c:forEach>
</td>
</tr>
<tr>
<th style="width:7%;" rowspan="3">레이어</th>
<th><label>지하시설물</label></th>
<td>
<div class="facility">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'facility'}">
<c:set var="faciltySize" value="${faciltySize+1}" />
<label class="layer-label">
<input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
<c:out value='checked' />
</c:if>
</c:forEach>
/> <c:out value='${item.name}' />
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th><label>지하구조물</label></th>
<td>
<div class="structure">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'structure'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
<c:out value='checked' />
</c:if>
</c:forEach>
/> <c:out value='${item.name}' />
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th><label>지반</label></th>
<td>
<div class="ground">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'ground'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
checked
</c:if>
</c:forEach>
/> <c:out value='${item.name}' />
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th colspan="2">작업명</th>
<td><c:out value='${useRequestVO.title}'/></td>
</tr>
<tr>
<th colspan="2">기간</th>
<td><c:out value='${useRequestVO.s_date}'/> ~ <c:out value='${useRequestVO.e_date}'/></td>
</tr>
<tr>
<th colspan="2">장소</th>
<td id="area_select_td">
<c:forEach var="item" items="${selectArea}" varStatus="status">
<div id="addedBlock<c:out value='${status.index}' />">
<c:out value=''/>${item}
</div>
</c:forEach>
</td>
</tr>
<tr>
<th style="width:7%;" rowspan="3">레이어</th>
<th><label>지하시설물</label></th>
<td>
<div class="facility">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'facility'}">
<c:set var="faciltySize" value="${faciltySize+1}"/>
<label class="layer-label">
<input type="checkbox" name="${item.code}" id="${item.code}" disabled="disabled"
value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
<c:out value='checked'/>
</c:if>
</c:forEach>
/> <c:out value='${item.name}'/>
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th><label>지하구조물</label></th>
<td>
<div class="structure">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'structure'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}"
disabled="disabled" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
<c:out value='checked'/>
</c:if>
</c:forEach>
/> <c:out value='${item.name}'/>
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th><label>지반</label></th>
<td>
<div class="ground">
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'ground'}">
<label class="layer-label"><input type="checkbox" name="${item.code}" id="${item.code}"
disabled="disabled" value="${item.layer}"
<c:forEach var="item2" items="${layers}" varStatus="status2">
<c:if test="${item.layer eq item2}">
checked
</c:if>
</c:forEach>
/> <c:out value='${item.name}'/>
</label>
</c:if>
</c:forEach>
</div>
</td>
</tr>
<tr>
<th colspan="2">요청 내용</th>
<td><c:out value='${useRequestVO.user_msg}' /></td>
</tr>
<tr>
<th colspan="2">요청 내용</th>
<td><c:out value='${useRequestVO.user_msg}'/></td>
</tr>
</tbody>
</table>
</div>
<c:choose>
<c:when test="${useRequestVO.status eq '99'}">
<table class="detail_table mx-3" >
<tbody>
<tr>
<th>전달 메세지</th>
<td>
<textarea class="form-control" rows="3" style="resize:none;" name="admin_msg"></textarea>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="status" id="status" />
</div>
</tbody>
</table>
</div>
<c:choose>
<c:when test="${useRequestVO.status eq '99'}">
<table class="detail_table mx-3">
<tbody>
<tr>
<th>전달 메세지</th>
<td>
<textarea class="form-control" rows="3" style="resize:none;" name="admin_msg"></textarea>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="status" id="status"/>
</div>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록" onclick="location.href='/admin/request'" />
</p>
<p class="search_p2">
<input class="btn btn-danger" type="button" value="거절" onclick="confirmReqBtn('-1'); return false;" />
<input class="btn btn-success" type="button" value="승인" onclick="confirmReqBtn('0'); return false;" />
</p>
</div>
</div>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록"
onclick="location.href='/admin/request'"/>
</p>
<p class="search_p2">
<input class="btn btn-danger" type="button" value="거절"
onclick="confirmReqBtn('-1'); return false;"/>
<input class="btn btn-success" type="button" value="승인"
onclick="confirmReqBtn('0'); return false;"/>
</p>
</div>
</div>
</c:when>
<c:otherwise>
</c:when>
<c:otherwise>
<table class="detail_table bg">
<tbody>
<tr>
<th>전달 메세지</th>
<td><c:out value='${useRequestVO.admin_msg}' /></td>
</tr>
</tbody>
</table>
<table class="detail_table bg">
<tbody>
<tr>
<th>전달 메세지</th>
<td><c:out value='${useRequestVO.admin_msg}'/></td>
</tr>
</tbody>
</table>
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록" onclick="location.href='/admin/request'" />
</p>
</div>
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-primary" type="button" value="목록" onclick="location.href='/admin/request'"/>
</p>
</div>
</c:otherwise>
</c:choose>
</form:form>
</c:otherwise>
</c:choose>
</form:form>

View File

@ -1,118 +1,140 @@
<%@ 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"%>
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" %>
<script src="<c:url value="/js/admin/userinfo.js"/>"></script>
<script src="/js/admin/userinfo.js"></script>
<div class="section_title">
<!-- <p>현장 지원 시스템</p> -->
<!-- <p>현장 지원 시스템</p> -->
</div>
<div class="section_content">
<h1 class="h4 m-3">회원관리</h1>
<form:form commandName="userSearchVO" name="searchForm" action="/admin/userInfo" method="get">
<h1 class="h4 m-3">회원관리</h1>
<form:form commandName="userSearchVO" name="searchForm" action="/admin/userInfo" method="get">
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<ul class="nav nav-pills" role="tablist" style="margin-left: 16px">
<li role="presentation" class="nav-item"><a class="nav-link ${userSearchVO.auth eq '99'?'active':''}" href="/admin/userInfo?auth=99">승인대기<span class="badge"><c:out value='${standByCount}' /></span></a></li>
<li role="presentation" class="nav-item"><a class="nav-link ${empty userSearchVO.auth?'active':''}" href="/admin/userInfo">회원 관리</a></li>
</ul>
<input type="hidden" name="auth" value="${userSearchVO.auth}" />
</div>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="col-auto">
<ul class="nav nav-pills" role="tablist" style="margin-left: 16px">
<li role="presentation" class="nav-item"><a
class="nav-link ${userSearchVO.auth eq '99'?'active':''}" href="/admin/userInfo?auth=99">승인대기<span
class="badge"><c:out value='${standByCount}'/></span></a></li>
<li role="presentation" class="nav-item"><a class="nav-link ${empty userSearchVO.auth?'active':''}"
href="/admin/userInfo">회원 관리</a></li>
</ul>
<input type="hidden" name="auth" value="${userSearchVO.auth}"/>
</div>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" 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>
<div class="col-auto row">
<div class="col-auto">
<select class="form-select" 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>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${userSearchVO.searchKeyword}"/>
</div>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색"/>
</div>
</div>
</div>
<div class="col-auto">
<input type="text" class="form-control" name="searchKeyword" value="${userSearchVO.searchKeyword}" />
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>아이디</th>
<th>이름</th>
<th>소속</th>
<th>전화번호</th>
<th>이메일</th>
<th>가입일</th>
<th>${userSearchVO.auth eq '99'?'상태':'권한'}</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="user" items="${userList}" varStatus="idx">
<tr>
<%--<a href="/admin/userInfo/<c:out value='${item.userid}' />"></a>--%>
<td class="clickAbleObj userInfoModalBtn useridTd"><c:out value='${user.userid}'/></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.name}'/></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.company}'/></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.phonenum}'/></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.email}'/></td>
<td class="clickAbleObj userInfoModalBtn td_date"><c:out value='${user.regdate}'/></td>
<td>
<c:choose>
<c:when test="${user.auth eq '1'}">관리자</c:when>
<c:when test="${user.auth eq '2'}">사용자</c:when>
<c:when test="${user.auth eq '99'}">
<input type="button" class="btn btn-outline-success" value="승인"
onclick="confirmBtn('${user.userid}','2'); return false;"/>
<input type="button" class="btn btn-outline-danger" value="삭제"
onclick="confirmBtn('${user.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>
<div class="col-auto">
<input class="btn btn-outline-secondary" type="submit" value="검색" />
<div class="text-page">
<form:hidden path="pageIndex"/>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page"/>
</ul>
</nav>
</div>
</div>
</div>
</form:form>
<div class="row m-3 p-2 bg-white">
<table class="table table-hover text-center">
<thead>
<tr>
<th>아이디</th>
<th>이름</th>
<th>소속</th>
<th>전화번호</th>
<th>이메일</th>
<th>가입일</th>
<th>${userSearchVO.auth eq '99'?'상태':'권한'}</th>
</tr>
</thead>
<tbody>
<c:if test="${count >= 1}">
<c:forEach var="user" items="${userList}" varStatus="idx">
<tr>
<%--<a href="/admin/userInfo/<c:out value='${item.userid}' />"></a>--%>
<td class="clickAbleObj userInfoModalBtn useridTd"><c:out value='${user.userid}' /></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.name}' /></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.company}' /></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.phonenum}' /></td>
<td class="clickAbleObj userInfoModalBtn"><c:out value='${user.email}' /></td>
<td class="clickAbleObj userInfoModalBtn td_date"><c:out value='${user.regdate}' /></td>
<td>
<c:choose>
<c:when test="${user.auth eq '1'}">관리자</c:when>
<c:when test="${user.auth eq '2'}">사용자</c:when>
<c:when test="${user.auth eq '99'}">
<input type="button" class="btn btn-outline-success" value="승인" onclick="confirmBtn('${user.userid}','2'); return false;" />
<input type="button" class="btn btn-outline-danger" value="삭제" onclick="confirmBtn('${user.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>
<div class="text-page">
<form:hidden path="pageIndex" />
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_link_page" />
</ul>
</nav>
</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>
<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>
<div class="modal fade" id="userInfoModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="userInfoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="userInfoModalLabel">회원 정보 수정</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="userInfoModalBody">
<div class="modal fade" id="userInfoModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="userInfoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="userInfoModalLabel">회원 정보 수정</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="userInfoModalBody">
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,80 +1,88 @@
<%@ 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"%>
<%@ 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" %>
<div class="row justify-content-between bg-white mx-3 py-2">
<form:form commandName="userVO" name="updateForm" id="updateForm" action="/admin/userUpdate" method="post">
<div class="section_content">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type="hidden" name="userid" value="${userVO.userid}" />
<form:form commandName="userVO" name="updateForm" id="updateForm" action="/admin/userUpdate" method="post">
<div class="section_content">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type="hidden" name="userid" value="${userVO.userid}"/>
<table class="join_table">
<tbody>
<tr>
<th>아이디</th>
<td>${userVO.userid}</td>
</tr>
<tr>
<th><label for="password">비밀번호</label></th>
<td>
<p><label for="changePw"><input type="checkbox" id="changePw" /> 비밀번호 변경</label></p>
<input type="password" class="form-control" id="password" name="password" value="" disabled="true" />
</td>
</tr>
<tr>
<th><label for="passwordCheck">비밀번호 확인</label></th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value="" disabled="true" />
</td>
</tr>
<tr>
<th><label for="name">이름</label></th>
<td><input type="text" class="form-control" name="name" id="name" value="${userVO.name}" /></td>
</tr>
<tr>
<th><label for="company">소속기관</label></th>
<td><input type="text" class="form-control" name="company" id="company" value="${userVO.company}" /></td>
</tr>
<tr>
<th><label for="phonenum">연락처</label></th>
<td><input type="text" class="form-control" name="phonenum" id="phonenum" value="${userVO.phonenum}"/></td>
</tr>
<tr>
<th><label for="email">이메일</label></th>
<td>
<div>
<input type="text" class="form-control" name="email" id="email" value="${userVO.email}" />
</div>
</td>
</tr>
<table class="join_table">
<tbody>
<tr>
<th>아이디</th>
<td>${userVO.userid}</td>
</tr>
<tr>
<th><label for="password">비밀번호</label></th>
<td>
<p><label for="changePw"><input type="checkbox" id="changePw"/> 비밀번호 변경</label></p>
<input type="password" class="form-control" id="password" name="password" value=""
disabled="true"/>
</td>
</tr>
<tr>
<th><label for="passwordCheck">비밀번호 확인</label></th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value=""
disabled="true"/>
</td>
</tr>
<tr>
<th><label for="name">이름</label></th>
<td><input type="text" class="form-control" name="name" id="name" value="${userVO.name}"/></td>
</tr>
<tr>
<th><label for="company">소속기관</label></th>
<td><input type="text" class="form-control" name="company" id="company" value="${userVO.company}"/>
</td>
</tr>
<tr>
<th><label for="phonenum">연락처</label></th>
<td><input type="text" class="form-control" name="phonenum" id="phonenum"
value="${userVO.phonenum}"/></td>
</tr>
<tr>
<th><label for="email">이메일</label></th>
<td>
<div>
<input type="text" class="form-control" name="email" id="email" value="${userVO.email}"/>
</div>
</td>
</tr>
<c:if test="${userVO.auth ne '99'}">
<tr>
<th>권한</th>
<td>
<input type="radio" name="auth" id="auth2" value="2" <c:if test="${userVO.auth eq '2'}">checked</c:if>/>
<label for="auth2" class="auth-label">사용자</label>
<input type="radio" name="auth" id="auth1" value="1" <c:if test="${userVO.auth eq '1'}">checked</c:if>/>
<label for="auth1" class="auth-label">관리자</label>
</td>
</tr>
</c:if>
</tbody>
</table>
<div class="join_top mt-3">
<p class="search_p2">
<c:choose>
<c:when test="${userVO.auth eq '99'}">
<input type="button" class="btn btn-success" value="승인" onclick="confirmBtn('${userVO.userid}','2'); return false;" />
<input type="button" class="btn btn-danger" value="삭제" onclick="confirmBtn('${userVO.userid}','-1'); return false;" />
</c:when>
<c:otherwise>
<input class="btn btn-success" type="button" value="수정" onclick="update();" />
</c:otherwise>
</c:choose>
</p>
</div>
</div>
</form:form>
<c:if test="${userVO.auth ne '99'}">
<tr>
<th>권한</th>
<td>
<input type="radio" name="auth" id="auth2" value="2"
<c:if test="${userVO.auth eq '2'}">checked</c:if>/>
<label for="auth2" class="auth-label">사용자</label>
<input type="radio" name="auth" id="auth1" value="1"
<c:if test="${userVO.auth eq '1'}">checked</c:if>/>
<label for="auth1" class="auth-label">관리자</label>
</td>
</tr>
</c:if>
</tbody>
</table>
<div class="join_top mt-3">
<p class="search_p2">
<c:choose>
<c:when test="${userVO.auth eq '99'}">
<input type="button" class="btn btn-success" value="승인"
onclick="confirmBtn('${userVO.userid}','2'); return false;"/>
<input type="button" class="btn btn-danger" value="삭제"
onclick="confirmBtn('${userVO.userid}','-1'); return false;"/>
</c:when>
<c:otherwise>
<input class="btn btn-success" type="button" value="수정" onclick="update();"/>
</c:otherwise>
</c:choose>
</p>
</div>
</div>
</form:form>
</div>

View File

@ -1,13 +1,13 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error</title>
</head>
<body>
<spring:message code='fail.common.sql' />
<spring:message code='fail.common.sql'/>
</body>
</html>

View File

@ -1,13 +1,13 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error</title>
</head>
<body>
<spring:message code='fail.common.msg' />
<spring:message code='fail.common.msg'/>
</body>
</html>

View File

@ -1,13 +1,13 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error</title>
</head>
<body>
<spring:message code='fail.common.msg' />
<spring:message code='fail.common.msg'/>
</body>
</html>

View File

@ -1,13 +1,13 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error</title>
</head>
<body>
<spring:message code='fail.common.msg' />
<spring:message code='fail.common.msg'/>
</body>
</html>

View File

@ -1,67 +1,70 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>">
</head>
<style>
.errorWrap{
border: 8px solid #094e84;
width:600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
.errorWrap {
border: 8px solid #094e84;
width: 600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
}
.errorTable{
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td{
padding:10px;
}
.errorBtn{
width:200px;
margin: 0 auto;
margin-bottom: 20px;
}
}
.errorTable {
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td {
padding: 10px;
}
.errorBtn {
width: 200px;
margin: 0 auto;
margin-bottom: 20px;
}
</style>
<body style="text-align: center; margin: 0 auto; display: inline; padding-top: 100px;">
<div class="errorWrap">
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt="" />
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt="" /></td>
<td style="width:300px;">Access Denied</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<sec:authorize access="hasRole('ROLE_USER')">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)'">Go Back</button>
</sec:authorize>
</p>
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt=""/>
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt=""/></td>
<td style="width:300px;">Access Denied</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<sec:authorize access="hasRole('ROLE_USER')">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)'">Go Back</button>
</sec:authorize>
</p>
</div>
</body>
</html>

View File

@ -1,62 +1,65 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>">
</head>
<style>
.errorWrap{
border: 8px solid #094e84;
width:600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
.errorWrap {
border: 8px solid #094e84;
width: 600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
}
.errorTable{
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td{
padding:10px;
}
.errorBtn{
width:200px;
margin: 0 auto;
margin-bottom: 20px;
}
}
.errorTable {
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td {
padding: 10px;
}
.errorBtn {
width: 200px;
margin: 0 auto;
margin-bottom: 20px;
}
</style>
<body style="text-align: center; margin: 0 auto; display: inline; padding-top: 100px;">
<div class="errorWrap">
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt="" />
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt="" /></td>
<td style="width:300px;">404 not found</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</p>
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt=""/>
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt=""/></td>
<td style="width:300px;">404 not found</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</p>
</div>
</body>
</html>

View File

@ -1,62 +1,65 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<title>Error</title>
<script src="<c:out value="/js/jquery-3.5.1.min.js" />"></script>
<script src="<c:out value="/js/bootstrap-3.3.2.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">
<link type="text/css" rel="stylesheet" href="<c:url value='/css/egov.css'/>">
</head>
<style>
.errorWrap{
border: 8px solid #094e84;
width:600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
.errorWrap {
border: 8px solid #094e84;
width: 600px;
text-align: left;
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
}
.errorTable{
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td{
padding:10px;
}
.errorBtn{
width:200px;
margin: 0 auto;
margin-bottom: 20px;
}
}
.errorTable {
margin: 0 auto;
margin-bottom: 20px;
}
.errorTable > tbody > tr > td {
padding: 10px;
}
.errorBtn {
width: 200px;
margin: 0 auto;
margin-bottom: 20px;
}
</style>
<body style="text-align: center; margin: 0 auto; display: inline; padding-top: 100px;">
<div class="errorWrap">
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt="" />
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt="" /></td>
<td style="width:300px;">500 Internal Server error</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</p>
<img src="<c:url value='/images/error/er_logo.jpg'/>" width="379" height="57" alt=""/>
<table class="errorTable">
<tbody>
<tr>
<td><img src="<c:url value='/images/error/danger.jpg'/>" width="74" height="74" alt=""/></td>
<td style="width:300px;">500 Internal Server error</td>
</tr>
</tbody>
</table>
<p class="errorBtn text-center">
<button type="button" class="btn btn-default btn-block" onclick="history.go(-1)">Go Back</button>
</p>
</div>
</body>
</html>

View File

@ -1,63 +1,84 @@
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="thisURL" value="${requestScope['javax.servlet.forward.request_uri']}" />
<c:set var="thisURL" value="${requestScope['javax.servlet.forward.request_uri']}"/>
<form id="logout" action="/j_spring_security_logout" method="POST">
<input name="${_csrf.parameterName}" type="hidden" value="${_csrf.token}"/>
<input name="${_csrf.parameterName}" type="hidden" value="${_csrf.token}"/>
</form>
<sec:authorize access="hasRole('ROLE_USER')">
<header class="header">
<div class="header_title">
<a href="/map/request">모바일센터 관리시스템</a>
</div>
<div class="header_info">
<a href="<c:url value="/logout"/>">
<span class="glyphicon glyphicon-log-out" style="color:#fff"></span> 로그아웃
</a>
</div>
</header>
<header class="header">
<div class="header_title">
<a href="/map/request">모바일센터 관리시스템</a>
</div>
<div class="header_info">
<a href="<c:url value="/logout"/>">
<span class="glyphicon glyphicon-log-out" style="color:#fff"></span> 로그아웃
</a>
</div>
</header>
<nav class="common_nav">
<div class="header_menu">
<ul>
<nav class="common_nav">
<div class="header_menu">
<ul>
<li <c:if test="${thisURL eq '/map/request'}">class="thisOn"</c:if> onclick="location.href='/map/request'">지도사용 요청</li>
<li <c:if test="${thisURL eq '/map/userInfo'}">class="thisOn"</c:if> onclick="location.href='/map/userInfo'">회원정보수정</li>
</ul>
</div>
</nav>
<li
<c:if test="${thisURL eq '/map/request'}">class="thisOn"</c:if>
onclick="location.href='/map/request'">지도사용 요청
</li>
<li
<c:if test="${thisURL eq '/map/userInfo'}">class="thisOn"</c:if>
onclick="location.href='/map/userInfo'">회원정보수정
</li>
</ul>
</div>
</nav>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<header class="header">
<div class="header_title">
<a href="/admin/request">모바일센터 관리시스템</a>
</div>
<div class="header_info">
<a href="<c:url value="/logout"/>">
<span class="glyphicon glyphicon-log-out" style="color:#fff"></span> 로그아웃
</a>
</div>
</header>
<nav class="common_nav">
<div class="header_menu">
<ul>
<li <c:if test="${fn:contains(thisURL, '/dashBoard')}">class="thisOn"</c:if> onclick="location.href='/admin/dashBoard'">
<img src="/images/icon/icon_analysis.png" width="30" height="30" alt=""> &nbsp;대시보드</li>
<li <c:if test="${fn:contains(thisURL, '/request')}">class="thisOn"</c:if> onclick="location.href='/admin/request'">
<img src="/images/icon/icon_map.png" width="30" height="30" alt=""> &nbsp;지도사용 요청</li>
<li <c:if test="${fn:contains(thisURL, '/history')}">class="thisOn"</c:if> onclick="location.href='/admin/history'">
<img src="/images/icon/icon_log_on.png" width="30" height="30" alt=""> &nbsp;지도사용 이력</li>
<li <c:if test="${fn:contains(thisURL, '/fieldData')}">class="thisOn"</c:if> onclick="location.href='/admin/fieldData'">
<img src="/images/icon/icon_eq_on.png" width="30" height="30" alt=""> &nbsp;현장수집 데이터</li>
<li <c:if test="${fn:contains(thisURL, '/userInfo')}">class="thisOn"</c:if> onclick="location.href='/admin/userInfo?auth=99'">
<img src="/images/icon/icon_supervisor_on.png" width="30" height="30" alt=""> &nbsp;회원 관리</li>
</ul>
</div>
</nav>
<header class="header">
<div class="header_title">
<a href="/admin/request">모바일센터 관리시스템</a>
</div>
<div class="header_info">
<a href="<c:url value="/logout"/>">
<span class="glyphicon glyphicon-log-out" style="color:#fff"></span> 로그아웃
</a>
</div>
</header>
<nav class="common_nav">
<div class="header_menu">
<ul>
<li
<c:if test="${fn:contains(thisURL, '/dashBoard')}">class="thisOn"</c:if>
onclick="location.href='/admin/dashBoard'">
<img src="/images/icon/icon_analysis.png" width="30" height="30" alt=""> &nbsp;대시보드
</li>
<li
<c:if test="${fn:contains(thisURL, '/request')}">class="thisOn"</c:if>
onclick="location.href='/admin/request'">
<img src="/images/icon/icon_map.png" width="30" height="30" alt=""> &nbsp;지도사용 요청
</li>
<li
<c:if test="${fn:contains(thisURL, '/history')}">class="thisOn"</c:if>
onclick="location.href='/admin/history'">
<img src="/images/icon/icon_log_on.png" width="30" height="30" alt=""> &nbsp;지도사용 이력
</li>
<li
<c:if test="${fn:contains(thisURL, '/fieldData')}">class="thisOn"</c:if>
onclick="location.href='/admin/fieldData'">
<img src="/images/icon/icon_eq_on.png" width="30" height="30" alt=""> &nbsp;현장수집 데이터
</li>
<li
<c:if test="${fn:contains(thisURL, '/userInfo')}">class="thisOn"</c:if>
onclick="location.href='/admin/userInfo?auth=99'">
<img src="/images/icon/icon_supervisor_on.png" width="30" height="30" alt=""> &nbsp;회원 관리
</li>
</ul>
</div>
</nav>
</sec:authorize>

View File

@ -1,168 +1,185 @@
<%@ 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"%>
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-3.3.2.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">
<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-3.3.2.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">
</head>
<body>
<header class="header">
<div class="header_title"><a href="/">모바일센터 관리시스템</a></div>
<div class="header_menu"></div>
</header>
<header class="header">
<div class="header_title"><a href="/">모바일센터 관리시스템</a></div>
<div class="header_menu"></div>
</header>
<section class="join_section">
<div class="join_top">
<h2>
<span class="glyphicon glyphicon-edit"></span> 회원 정보 입력
</h2>
</div>
<form:form commandName="userVO" name="insertFrm" action="/insertUser" id="insertFrm" autocomplete="off" method="post">
<table class="join_table">
<tbody>
<tr>
<th>아이디</th>
<td>
<input type="text" class="form-control" name="userid" id="id" />
<span id="idMsg"></span>
</td>
</tr>
<tr>
<th>비밀번호</th>
<td><input type="password" class="form-control" id="password"name="password" value="" /></td>
</tr>
<tr>
<th>비밀번호 확인</th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value="" /></td>
</tr>
<tr>
<th>이름</th>
<td><input type="text" class="form-control" name="name" id="name" /></td>
</tr>
<tr>
<th>소속기관</th>
<td><input type="text" class="form-control" name="company" id="company" /></td>
</tr>
<tr>
<th>연락처</th>
<td><input type="text" class="form-control" name="phonenum" id="phonenum" /></td>
</tr>
<tr>
<th>이메일</th>
<td>
<div>
<input type="text" class="form-control" name="email" id="email" />
</div>
</td>
</tr>
</tbody>
</table>
<div class="join_bottom" style="padding-top: 10px">
<p>※ 회원 가입을 요청한 후에 승인을 기다려주세요.</p>
<p class="join_bottom_p"><input class="btn_join big on" type="submit" value="가입신청" onclick="join(); return false;" /></p>
</div>
</form:form>
<section class="join_section">
<div class="join_top">
<h2>
<span class="glyphicon glyphicon-edit"></span> 회원 정보 입력
</h2>
</div>
<form:form commandName="userVO" name="insertFrm" action="/insertUser" id="insertFrm" autocomplete="off"
method="post">
<table class="join_table">
<tbody>
<tr>
<th>
<label for="id">아이디</label>
</th>
<script type="text/javascript">
var token = $("meta[name='_csrf']").attr("content");
var header = $("meta[name='_csrf_header']").attr("content");
var checkId = false;
var getId= RegExp(/^[a-zA-Z0-9]{5,12}$/);
var getMail = RegExp(/^[A-Za-z0-9_\.\-]+@[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+/);
$(document).ready(function(){
$("#id").focusout(function(){
var id = $(this).val();
if (id == "" || id == undefined || id == null) {
$("#idMsg").text("아이디를 입력해주세요.");
checkId = false;
return false;
} else if(!getId.test(id)){
$("#idMsg").text("5~20자의 영문 소문자, 숫자만 사용 가능합니다.");
checkId = false;
return false;
}else {
$.ajax({
url : "/userIdCheck",
type : "GET",
data : {
"checkId" : id
},
success : function(data) {
if (data == "duplicate") {
$("#idMsg").text("이미 존재하는 아이디 입니다.");
checkId = false;
} else if (data == "ok") {
$("#idMsg").text("사용 가능한 아이디 입니다.");
checkId = true;
}
},
error : function(request, status, error) {
alert("접속 실패 관리자에게 문의해주세요.");
}
});
}
});
});
<td>
<input type="text" class="form-control" name="userid" id="id"/>
<span id="idMsg"></span>
</td>
</tr>
<tr>
<th>
<label for="password">비밀번호</label>
</th>
<td><input type="password" class="form-control" id="password" name="password" value=""/></td>
</tr>
<tr>
<th>
<label for="passwordCheck">비밀번호 확인</label>
</th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value=""/></td>
</tr>
<tr>
<th>
<label for="name">이름</label>
</th>
<td><input type="text" class="form-control" name="name" id="name"/></td>
</tr>
<tr>
<th>
<label for="company">소속기관</label>
</th>
<td><input type="text" class="form-control" name="company" id="company"/></td>
</tr>
<tr>
<th>
<label for="phonenum">연락처</label>
</th>
<td><input type="tel" class="form-control" name="phonenum" id="phonenum"/></td>
</tr>
<tr>
<th>
<label for="email">이메일</label>
</th>
<td>
<div>
<input type="email" class="form-control" name="email" id="email"/>
</div>
</td>
</tr>
</tbody>
</table>
<div class="join_bottom" style="padding-top: 10px">
<p>※ 회원 가입을 요청한 후에 승인을 기다려주세요.</p>
<p class="join_bottom_p"><input class="btn_join big on" type="submit" value="가입신청"
onclick="join(); return false;"/></p>
</div>
</form:form>
function join() {
var pw1 = $('#password').val();
var pw2 = $('#passwordCheck').val();
var name = $('#name').val();
var company = $('#company').val();
var tell = $('#phonenum').val();
var email_1 = $('#email').val();
<script type="text/javascript">
var token = $("meta[name='_csrf']").attr("content");
var header = $("meta[name='_csrf_header']").attr("content");
if (!checkId) {
alert('아이디를 확인해주세요.');
$('#id').focus();
} else if (pw1 == "") {
alert('비밀번호를 입력해주세요');
$('#password').focus();
return;
} else if (pw2 == "") {
alert('비밀번호를 입력해주세요');
$('#passCheck').focus();
return;
} else if (pw1 != pw2) {
alert('비밀번호가 일치하지 않습니다.');
$('#pass').focus();
return;
} else if (name == "") {
alert('이름을 입력해주세요');
$('#name').focus();
return;
} else if (company == "") {
alert('소속기관을 입력해주세요');
$('#company').focus();
return;
} else if (tell == "") {
alert('연락처를 입력해주세요');
$('#phone_num').focus();
return;
} else if (email_1 == "") {
alert('이메일을 입력해주세요');
$('#email').focus();
return;
} else {
$("#insertFrm").submit();
}
}
</script>
</section>
var checkId = false;
var getId = RegExp(/^[a-zA-Z0-9]{5,12}$/);
var getMail = RegExp(/^[A-Za-z0-9_\.\-]+@[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+/);
$(document).ready(function () {
$("#id").focusout(function () {
var id = $(this).val();
if (id == "" || id == undefined || id == null) {
$("#idMsg").text("아이디를 입력해주세요.");
checkId = false;
return false;
} else if (!getId.test(id)) {
$("#idMsg").text("5~20자의 영문 소문자, 숫자만 사용 가능합니다.");
checkId = false;
return false;
} else {
$.ajax({
url: "/userIdCheck",
type: "GET",
data: {
"checkId": id
},
success: function (data) {
if (data == "duplicate") {
$("#idMsg").text("이미 존재하는 아이디 입니다.");
checkId = false;
} else if (data == "ok") {
$("#idMsg").text("사용 가능한 아이디 입니다.");
checkId = true;
}
},
error: function (request, status, error) {
alert("접속 실패 관리자에게 문의해주세요.");
}
});
}
});
});
function join() {
var pw1 = $('#password').val();
var pw2 = $('#passwordCheck').val();
var name = $('#name').val();
var company = $('#company').val();
var tell = $('#phonenum').val();
var email_1 = $('#email').val();
if (!checkId) {
alert('아이디를 확인해주세요.');
$('#id').focus();
} else if (pw1 == "") {
alert('비밀번호를 입력해주세요');
$('#password').focus();
return;
} else if (pw2 == "") {
alert('비밀번호를 입력해주세요');
$('#passCheck').focus();
return;
} else if (pw1 != pw2) {
alert('비밀번호가 일치하지 않습니다.');
$('#pass').focus();
return;
} else if (name == "") {
alert('이름을 입력해주세요');
$('#name').focus();
return;
} else if (company == "") {
alert('소속기관을 입력해주세요');
$('#company').focus();
return;
} else if (tell == "") {
alert('연락처를 입력해주세요');
$('#phone_num').focus();
return;
} else if (email_1 == "") {
alert('이메일을 입력해주세요');
$('#email').focus();
return;
} else {
$("#insertFrm").submit();
}
}
</script>
</section>
</body>
</html>

View File

@ -1,33 +1,35 @@
<%@ 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="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ 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="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<script type="text/javascript">
$(document).on('click', '#logoutLink', function (){
$("#logoutForm").submit();
})
$(document).on('click', '#logoutLink', function () {
$("#logoutForm").submit();
})
</script>
<c:set var="tilesURI" value="${requestScope['javax.servlet.forward.request_uri']}"/>
<c:set var="tilesURIParam" value="${requestScope['javax.servlet.forward.query_string']}"/>
<c:set var="tilesURIParam" value="${requestScope['javax.servlet.forward.query_string']}"/>
<form id="logoutForm" action="/j_spring_security_logout" method="POST">
<input name="${_csrf.parameterName}" type="hidden" value="${_csrf.token}"/>
<input name="${_csrf.parameterName}" type="hidden" value="${_csrf.token}"/>
</form>
<header class="header">
<div class="header_title">
<sec:authorize access="hasRole('ROLE_USER')">
<a href="/map/request">모바일센터 관리시스템</a>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<a href="/admin/dashBoard">모바일센터 관리시스템</a>
</sec:authorize>
</div>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_USER')">
<div class="header_info">
<a id="logoutLink" href="#"><i class="bi bi-box-arrow-right"></i> 로그아웃</a>
<div class="header_title">
<sec:authorize access="hasRole('ROLE_USER')">
<a href="/map/request">모바일센터 관리시스템</a>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<a href="/admin/dashBoard">모바일센터 관리시스템</a>
</sec:authorize>
</div>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_USER')">
<div class="header_info">
<a id="logoutLink" href="#">
<i class="bi bi-box-arrow-right"></i> 로그아웃
</a>
</div>
</sec:authorize>
</header>

View File

@ -1,39 +1,54 @@
<%@ 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="sec" uri="http://www.springframework.org/security/tags" %><!--시큐리티 태그 라이브러리 선언-->
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ 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="sec" uri="http://www.springframework.org/security/tags" %>
<!--시큐리티 태그 라이브러리 선언-->
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="tilesURI" value="${requestScope['javax.servlet.forward.request_uri']}"/>
<c:set var="tilesURIParam" value="${requestScope['javax.servlet.forward.query_string']}"/>
<c:set var="tilesURIParam" value="${requestScope['javax.servlet.forward.query_string']}"/>
<sec:authorize access="hasRole('ROLE_USER')">
<nav class="common_nav">
<div class="header_menu">
<ul>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/map/request')?"thisOn":""}" onclick="location.href='/map/request'">
<i class="bi bi-map fs-5" ></i> &nbsp;지도사용 요청</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/map/userInfo')?"thisOn":""}" onclick="location.href='/map/userInfo'">
<i class="bi bi-person-circle"></i> &nbsp;회원정보 수정</li>
</ul>
</div>
</nav>
<nav class="common_nav">
<div class="header_menu">
<ul>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/map/request')?"thisOn":""}"
onclick="location.href='/map/request'">
<i class="bi bi-map fs-5"></i> &nbsp;지도사용 요청
</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/map/userInfo')?"thisOn":""}"
onclick="location.href='/map/userInfo'">
<i class="bi bi-person-circle"></i> &nbsp;회원정보 수정
</li>
</ul>
</div>
</nav>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<nav class="common_nav">
<div class="header_menu">
<ul>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/dashBoard')?"thisOn":""}" onclick="location.href='/admin/dashBoard'">
<i class="bi bi-grid fs-5"></i> &nbsp;대시보드</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/request')?"thisOn":""}" onclick="location.href='/admin/request'">
<i class="bi bi-map fs-5" ></i>&nbsp; 지도사용 요청</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/history')?"thisOn":""}" onclick="location.href='/admin/history'">
<i class="bi bi-signpost-2 fs-5"></i></i>&nbsp; 지도사용 이력</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/fieldData')?"thisOn":""}" onclick="location.href='/admin/fieldData?status0=1&status1=1&status2=1&status3=1&status4=1'">
<i class="bi bi-flag fs-5"></i>&nbsp; 현장수집 데이터</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/userInfo')?"thisOn":""}" onclick="location.href='/admin/userInfo?auth=99'">
<i class="bi bi-person-circle"></i>&nbsp;&nbsp; 회원 관리</li>
</ul>
</div>
</nav>
<nav class="common_nav">
<div class="header_menu">
<ul>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/dashBoard')?"thisOn":""}"
onclick="location.href='/admin/dashBoard'">
<i class="bi bi-grid fs-5"></i> &nbsp;대시보드
</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/request')?"thisOn":""}"
onclick="location.href='/admin/request'">
<i class="bi bi-map fs-5"></i>&nbsp; 지도사용 요청
</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/history')?"thisOn":""}"
onclick="location.href='/admin/history'">
<i class="bi bi-signpost-2 fs-5"></i></i>&nbsp; 지도사용 이력
</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/fieldData')?"thisOn":""}"
onclick="location.href='/admin/fieldData?status0=1&status1=1&status2=1&status3=1&status4=1'">
<i class="bi bi-flag fs-5"></i>&nbsp; 현장수집 데이터
</li>
<li class="fs-6 ps-3 ${fn:contains(tilesURI, '/admin/userInfo')?"thisOn":""}"
onclick="location.href='/admin/userInfo?auth=99'">
<i class="bi bi-person-circle"></i>&nbsp;&nbsp; 회원 관리
</li>
</ul>
</div>
</nav>
</sec:authorize>

View File

@ -1,7 +1,7 @@
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<tiles:insertAttribute name="center" />
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<tiles:insertAttribute name="center"/>

View File

@ -1,47 +1,47 @@
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="tilesURI" value="${requestScope['javax.servlet.forward.request_uri']}"/>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery-ui.min.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap-5.1.3.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/images/bootstrap-icons-1.8.0/bootstrap-icons.css"/>">
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
<style>
#wrap{
background-image: url("/images/main1.jpg");
background-size: cover;
height: 1080px;
}
</style>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
<script src="<c:url value='/js/jquery-3.5.1.min.js' />"></script>
<script src="<c:url value='/js/jquery-ui.min.js' />"></script>
<script src="<c:url value="/js/bootstrap-5.1.3.min.js"/>"></script>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery-ui.min.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap-5.1.3.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/images/bootstrap-icons-1.8.0/bootstrap-icons.css"/>">
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
<style>
#wrap {
background-image: url("/images/main1.jpg");
background-size: cover;
height: 1080px;
}
</style>
<title>
<tiles:insertAttribute name="title" ignore="true"/>
</title>
<script src="<c:url value='/js/jquery-3.5.1.min.js' />"></script>
<script src="<c:url value='/js/jquery-ui.min.js' />"></script>
<script src="<c:url value="/js/bootstrap-5.1.3.min.js"/>"></script>
</head>
<body class="overflow-hidden htmlBody">
<div id="wrap">
<div id="wrap">
<tiles:insertAttribute name="center"/>
</div>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
var errMsg = "${errMsg}";
if (errMsg) {
alert(errMsg);
}
});
$(document).ready(function () {
var errMsg = "${errMsg}";
if (errMsg) {
alert(errMsg);
}
});
</script>
</html>

View File

@ -1,35 +1,35 @@
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ 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="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="tilesURI" value="${requestScope['javax.servlet.forward.request_uri']}"/>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery-ui.min.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap-5.1.3.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/images/bootstrap-icons-1.8.0/bootstrap-icons.css"/>">
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
<script src="<c:url value='/js/jquery-3.5.1.min.js' />"></script>
<script src="<c:url value='/js/jquery-ui.min.js' />"></script>
<script src="<c:url value="/js/bootstrap-5.1.3.min.js"/>"></script>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery-ui.min.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap-5.1.3.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/images/bootstrap-icons-1.8.0/bootstrap-icons.css"/>">
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
<title>
<tiles:insertAttribute name="title" ignore="true"/>
</title>
<script src="<c:url value='/js/jquery-3.5.1.min.js' />"></script>
<script src="<c:url value='/js/jquery-ui.min.js' />"></script>
<script src="<c:url value="/js/bootstrap-5.1.3.min.js"/>"></script>
</head>
<body class="htmlBody">
<div id="wrap">
<tiles:insertAttribute name="header"/>
<div id="wrap">
<tiles:insertAttribute name="header"/>
<tiles:insertAttribute name="left"/>
<section class="section overflow-auto">
<tiles:insertAttribute name="center"/>
<tiles:insertAttribute name="center"/>
</section>
</div>
</div>
</body>
</html>

View File

@ -1,35 +1,35 @@
<%@ 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"%>
<%@ 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" %>
<div class="loginWrap">
<div class="loginBox">
<form method="POST" action="/j_spring_security_check">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type=hidden name=login_error value="${login_error}" />
<p class="login_title text-white">모바일센터 관리시스템</p>
<p class="login_text">
<input type="text" class="form-control" name="username" id="user_id" value="" placeholder="사용자 ID" />
</p>
<p class="login_text">
<input type="password" class="form-control" name="password" id="user_pw" value="" placeholder="비밀번호" />
</p>
<p class="login_btn">
<input type="image" src="images/login_.png" />
</p>
<div class="loginBox">
<form method="POST" action="/j_spring_security_check">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type=hidden name=login_error value="${login_error}"/>
<p class="login_title text-white">모바일센터 관리시스템</p>
<p class="login_text">
<input type="text" class="form-control" name="username" id="user_id" value="" placeholder="사용자 ID"/>
</p>
<p class="login_text">
<input type="password" class="form-control" name="password" id="user_pw" value="" placeholder="비밀번호"/>
</p>
<p class="login_btn">
<input type="image" src="images/login_.png"/>
</p>
<div class="parent">
<div class="find">
<span class="glyphicon glyphicon-info-sign"></span>
<a class="text-white" href="#">아이디/비밀번호 찾기</a>
</div>
<div class="join">
<span class="glyphicon glyphicon-user"></span>
<a class="text-white" href="<c:url value=" /join" />">회원가입</a>
</div>
</div>
</form>
</div>
<div class="parent">
<div class="find">
<span class="glyphicon glyphicon-info-sign"></span>
<a class="text-white" href="#">아이디/비밀번호 찾기</a>
</div>
<div class="join">
<span class="glyphicon glyphicon-user"></span>
<a class="text-white" href="<c:url value=" /join" />">회원가입</a>
</div>
</div>
</form>
</div>
</div>

View File

@ -4,112 +4,112 @@
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<form:form commandName="userVO" name="updateForm" action="/map/userUpdate" id="updateForm" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type="hidden" name="userid" value="${userVO.userid}" />
<div class="section_content">
<div class="join_top">
<h2><span class="glyphicon glyphicon-edit"></span> 회원 정보 수정</h2>
</div>
<table class="join_table">
<tbody>
<tr>
<th>아이디</th>
<td>${userVO.userid}</td>
</tr>
<tr>
<th>비밀번호</th>
<td>
<p><label><input type="checkbox" id="changePw" /> 비밀번호 변경</<label></p>
<input type="password" class="form-control" id="password" name="password" value="" disabled="true" />
</td>
</tr>
<tr>
<th>비밀번호 확인</th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value="" disabled="true" />
</td>
</tr>
<tr>
<th>이름</th>
<td><input type="text" class="form-control" name="name" id="name" value="${userVO.name}" /></td>
</tr>
<tr>
<th>소속기관</th>
<td><input type="text" class="form-control" name="company" id="company" value="${userVO.company}" /></td>
</tr>
<tr>
<th>연락처</th>
<td><input type="text" class="form-control" name="phonenum" id="phonenum" value="${userVO.phonenum}"/></td>
</tr>
<tr>
<th>이메일</th>
<td>
<div>
<input type="text" class="form-control" name="email" id="email" value="${userVO.email}" />
</div>
</td>
</tr>
</tbody>
</table>
<div class="join_top" style="margin-top:20px;">
<p class="search_p2">
<input class="btn btn-success" type="button" value="수정" onclick="update();" />
</p>
</div>
<form:form commandName="userVO" name="updateForm" action="/map/userUpdate" id="updateForm" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type="hidden" name="userid" value="${userVO.userid}" />
<div class="section_content">
<div class="join_top">
<h2><span class="glyphicon glyphicon-edit"></span> 회원 정보 수정</h2>
</div>
</form:form>
<script>
$(function(){
$("#changePw").click(function(){
if($(this).is(":checked")){
$("#password").attr("disabled", false);
$("#passwordCheck").attr("disabled", false);
}else{
$("#password").attr("disabled", true);
$("#passwordCheck").attr("disabled", true);
}
});
});
function update() {
var changePw = $("#changePw").is(":checked");
var pw1 = $('#password').val();
var pw2 = $('#passwordCheck').val();
var name = $('#name').val();
var company = $('#company').val();
var tell = $('#phonenum').val();
var email_1 = $('#email').val();
if (changePw && pw1 == "") {
alert('비밀번호를 입력해주세요');
$('#password').focus();
return;
} else if (changePw && pw2 == "") {
alert('비밀번호를 입력해주세요');
$('#passwordCheck').focus();
return;
} else if (changePw && (pw1 != pw2)) {
alert('비밀번호가 일치하지 않습니다.');
$('#pass').focus();
return;
} else if (name == "") {
alert('이름을 입력해주세요');
$('#name').focus();
return;
} else if (company == "") {
alert('소속기관을 입력해주세요');
$('#company').focus();
return;
} else if (tell == "") {
alert('연락처를 입력해주세요');
$('#phone_num').focus();
return;
} else if (email_1 == "") {
alert('이메일을 입력해주세요');
$('#email').focus();
return;
} else {
$("#updateForm").submit();
<table class="join_table">
<tbody>
<tr>
<th>아이디</th>
<td>${userVO.userid}</td>
</tr>
<tr>
<th>비밀번호</th>
<td>
<p><label><input type="checkbox" id="changePw" /> 비밀번호 변경</<label></p>
<input type="password" class="form-control" id="password" name="password" value="" disabled="true" />
</td>
</tr>
<tr>
<th>비밀번호 확인</th>
<td><input type="password" class="form-control" id="passwordCheck" name="passwordCheck" value="" disabled="true" />
</td>
</tr>
<tr>
<th>이름</th>
<td><input type="text" class="form-control" name="name" id="name" value="${userVO.name}" /></td>
</tr>
<tr>
<th>소속기관</th>
<td><input type="text" class="form-control" name="company" id="company" value="${userVO.company}" /></td>
</tr>
<tr>
<th>연락처</th>
<td><input type="text" class="form-control" name="phonenum" id="phonenum" value="${userVO.phonenum}"/></td>
</tr>
<tr>
<th>이메일</th>
<td>
<div>
<input type="text" class="form-control" name="email" id="email" value="${userVO.email}" />
</div>
</td>
</tr>
</tbody>
</table>
<div class="join_top" style="margin-top:20px;">
<p class="search_p2">
<input class="btn btn-success" type="button" value="수정" onclick="update();" />
</p>
</div>
</div>
</form:form>
<script>
$(function(){
$("#changePw").click(function(){
if($(this).is(":checked")){
$("#password").attr("disabled", false);
$("#passwordCheck").attr("disabled", false);
}else{
$("#password").attr("disabled", true);
$("#passwordCheck").attr("disabled", true);
}
});
});
function update() {
var changePw = $("#changePw").is(":checked");
var pw1 = $('#password').val();
var pw2 = $('#passwordCheck').val();
var name = $('#name').val();
var company = $('#company').val();
var tell = $('#phonenum').val();
var email_1 = $('#email').val();
if (changePw && pw1 == "") {
alert('비밀번호를 입력해주세요');
$('#password').focus();
return;
} else if (changePw && pw2 == "") {
alert('비밀번호를 입력해주세요');
$('#passwordCheck').focus();
return;
} else if (changePw && (pw1 != pw2)) {
alert('비밀번호가 일치하지 않습니다.');
$('#pass').focus();
return;
} else if (name == "") {
alert('이름을 입력해주세요');
$('#name').focus();
return;
} else if (company == "") {
alert('소속기관을 입력해주세요');
$('#company').focus();
return;
} else if (tell == "") {
alert('연락처를 입력해주세요');
$('#phone_num').focus();
return;
} else if (email_1 == "") {
alert('이메일을 입력해주세요');
$('#email').focus();
return;
} else {
$("#updateForm").submit();
}
</script>
}
</script>

View File

@ -6,11 +6,11 @@
</head>
<body>
<script>
var resultMessage = '${resultMsg}';
if(resultMessage){
alert(resultMessage);
}
location.href='${url}';
var resultMessage = '${resultMsg}';
if (resultMessage) {
alert(resultMessage);
}
location.href = '${url}';
</script>
</body>
</html>

View File

@ -1,24 +1,25 @@
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>모바일센터 관리시스템</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>모바일센터 관리시스템</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="100%" align="center" valign="middle" style="padding-top: 150px;"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="<spring:message code='image.errorBg' />">
<span style="font-family: Tahoma; font-weight: bold; color: #000000; line-height: 150%; width: 440px; height: 70px;"></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="100%" align="center" valign="middle" style="padding-top: 150px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="<spring:message code='image.errorBg' />">
<span style="font-family: Tahoma; font-weight: bold; color: #000000; line-height: 150%; width: 440px; height: 70px;"></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@ -1,8 +1,7 @@
$(document).on("click", ".nav-item", function (){
const chkBox = $(this).find(".statusChkBox")[0]
chkBox.checked = !chkBox.checked;
$("[name='searchForm']").submit();
$(document).on("click", ".nav-item", function () {
const chkBox = $(this).find(".statusChkBox")[0]
chkBox.checked = !chkBox.checked;
$("[name='searchForm']").submit();
})
function fn_link_page(pageNo) {
@ -10,6 +9,7 @@ function fn_link_page(pageNo) {
document.searchForm.action = "<c:url value='/admin/fieldData' />";
document.searchForm.submit();
}
function getCheckoxValue() {
const query = 'input[name="check1"]:checked';
const selectedEls = document.querySelectorAll(query);

View File

@ -3,209 +3,209 @@ let wkt = null;
proj4.defs('EPSG:5186', '+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=600000 +ellps=GRS80 +units=m +no_defs');
let baseMap = new ol.layer.Tile({
title : 'vworldMap',
visible : true,
type : 'base',
source : new ol.source.XYZ({
url : 'http://api.vworld.kr/req/wmts/1.0.0/5616CAD1-5D79-3EE3-87D5-878A4AD0F91F/Base/{z}/{y}/{x}.png'
})
title: 'vworldMap',
visible: true,
type: 'base',
source: new ol.source.XYZ({
url: 'http://api.vworld.kr/req/wmts/1.0.0/5616CAD1-5D79-3EE3-87D5-878A4AD0F91F/Base/{z}/{y}/{x}.png'
})
});
let view = new ol.View({
center : ol.proj.transform([ 203766.984, 541132.2 ], 'EPSG:5186', 'EPSG:3857'),
zoom : 18, // 초기화면 zoom level
minZoom : 1, // 최소 zoom level
maxZoom : 19, // 최대 zoom level
center: ol.proj.transform([203766.984, 541132.2], 'EPSG:5186', 'EPSG:3857'),
zoom: 18, // 초기화면 zoom level
minZoom: 1, // 최소 zoom level
maxZoom: 19, // 최대 zoom level
});
let map = new ol.Map({
layers : [ baseMap ],
logo : false, //우측하단 로고 제거
target : 'map',
loadTilesWhileAnimating : true,
view : view
layers: [baseMap],
logo: false, //우측하단 로고 제거
target: 'map',
loadTilesWhileAnimating: true,
view: view
});
let format = new ol.format.WKT();
let objVectorSource = new ol.source.Vector({});
let objVectorLayer = new ol.layer.Vector({
source : objVectorSource,
style : objStyle
source: objVectorSource,
style: objStyle
});
let cursorStyle = "";
let selected = null;
let highlightStyle = new ol.style.Style({
stroke : new ol.style.Stroke({
color : '#3399CC',
width : 8,
}),
stroke: new ol.style.Stroke({
color: '#3399CC',
width: 8,
}),
});
$(function() {
makePropPaging();
makePropTable();
map = new ol.Map({
layers : [ baseMap ],
logo : false, //우측하단 로고 제거
target : 'map',
loadTilesWhileAnimating : true,
view : view
});
drawingObj();
$(function () {
makePropPaging();
makePropTable();
map = new ol.Map({
layers: [baseMap],
logo: false, //우측하단 로고 제거
target: 'map',
loadTilesWhileAnimating: true,
view: view
});
drawingObj();
});
function fieldVerify(){
alert('준비중');
function fieldVerify() {
alert('준비중');
}
function fieldReflect(){
alert('준비중');
function fieldReflect() {
alert('준비중');
}
map.on("pointermove", function(e) {
if (selected !== null) {
selected.setStyle(undefined);
selected = null;
}
var newStyle = this.hasFeatureAtPixel(e.pixel) ? "pointer" : "";
newStyle !== cursorStyle && $(this.getTargetElement()).css("cursor", cursorStyle = newStyle);
map.forEachFeatureAtPixel(e.pixel, function(f) {
selected = f;
f.setStyle(highlightStyle);
return true;
});
map.on("pointermove", function (e) {
if (selected !== null) {
selected.setStyle(undefined);
selected = null;
}
var newStyle = this.hasFeatureAtPixel(e.pixel) ? "pointer" : "";
newStyle !== cursorStyle && $(this.getTargetElement()).css("cursor", cursorStyle = newStyle);
map.forEachFeatureAtPixel(e.pixel, function (f) {
selected = f;
f.setStyle(highlightStyle);
return true;
});
});
// feature click evt
map.on('click', function(event) {
map.forEachFeatureAtPixel(event.pixel, function(feature, layer) {
var idx = feature.get("idx");
makePropTable(idx);
})
map.on('click', function (event) {
map.forEachFeatureAtPixel(event.pixel, function (feature, layer) {
var idx = feature.get("idx");
makePropTable(idx);
})
});
function objStyle(feature, resolution) {
var selected = feature.get('selected');
var style = null;
if (selected) {
style = new ol.style.Style({
stroke : new ol.style.Stroke({
color : '#f00',
width : 5
})
});
} else {
style = new ol.style.Style({
stroke : new ol.style.Stroke({
color : '#52b4e7',
width : 5
})
});
}
return style;
var selected = feature.get('selected');
var style = null;
if (selected) {
style = new ol.style.Style({
stroke: new ol.style.Stroke({
color: '#f00',
width: 5
})
});
} else {
style = new ol.style.Style({
stroke: new ol.style.Stroke({
color: '#52b4e7',
width: 5
})
});
}
return style;
}
function resetObjStyle() {
var feature = getObjFeatureBySelected();
if (feature) {
feature.set("selected", false);
}
var feature = getObjFeatureBySelected();
if (feature) {
feature.set("selected", false);
}
}
function makePropTable(idx) {
if (idx == null)
idx = 0;
$("#fieldDataBody > tr").remove();
if (idx == null)
idx = 0;
$("#fieldDataBody > tr").remove();
var num = 0;
var tags = "";
for(var i in field_data[idx].prop) {
num++;
if(num % 2 == 0){
tags += "<th>" + i + "</th><td>" + field_data[idx].prop[i] + "</td></tr>";
}else{
tags += "<tr><th>" + i + "</th><td>" + field_data[idx].prop[i] + "</td>";
var num = 0;
var tags = "";
for (var i in field_data[idx].prop) {
num++;
if (num % 2 == 0) {
tags += "<th>" + i + "</th><td>" + field_data[idx].prop[i] + "</td></tr>";
} else {
tags += "<tr><th>" + i + "</th><td>" + field_data[idx].prop[i] + "</td>";
}
}
}
$("#fieldDataBody").append(tags);
$("#fieldDataBody").append(tags);
nowPagingOn(idx);
resetObjStyle();
nowPagingOn(idx);
resetObjStyle();
//중심좌표 구하기?
//var aa = feature.getGeometry().v;
//var oo = ol.extent.getCenter(aa);
//중심좌표 구하기?
//var aa = feature.getGeometry().v;
//var oo = ol.extent.getCenter(aa);
var center = field_data[idx].center;
var feature = getObjFeatureByIdx(idx);
var center = field_data[idx].center;
var feature = getObjFeatureByIdx(idx);
moveCenter(center);
if (feature) {
feature.set("selected", true);
}
moveCenter(center);
if (feature) {
feature.set("selected", true);
}
}
function nowPagingOn(idx){
$(".paging_li").removeClass("fieldPagingOn")
$("#paging_li"+idx).attr("class", "fieldPagingOn paging_li");
function nowPagingOn(idx) {
$(".paging_li").removeClass("fieldPagingOn")
$("#paging_li" + idx).attr("class", "fieldPagingOn paging_li");
}
function makePropPaging() {
var pagingNumber = 0;
for (var idx in field_data) {
pagingNumber++;
$("#fieldDataPaging").append('<li class="paging_li" id="paging_li'+idx+'" onclick="makePropTable(' + idx + ')">' + pagingNumber+ '</li>');
}
var pagingNumber = 0;
for (var idx in field_data) {
pagingNumber++;
$("#fieldDataPaging").append('<li class="paging_li" id="paging_li' + idx + '" onclick="makePropTable(' + idx + ')">' + pagingNumber + '</li>');
}
}
function drawingObj() {
objVectorSource.clear();
map.addLayer(objVectorLayer);
var objFeatures = [];
for (var idx in field_data) {
var objFeature = format.readFeature(field_data[idx].WKT, {
dataProjection : 'EPSG:5186',
featureProjection : 'EPSG:3857'
});
objFeature.setProperties({
"idx" : idx,
"selected" : false
});
objFeatures.push(objFeature);
}
objVectorSource.addFeatures(objFeatures);
objVectorSource.clear();
map.addLayer(objVectorLayer);
var objFeatures = [];
for (var idx in field_data) {
var objFeature = format.readFeature(field_data[idx].WKT, {
dataProjection: 'EPSG:5186',
featureProjection: 'EPSG:3857'
});
objFeature.setProperties({
"idx": idx,
"selected": false
});
objFeatures.push(objFeature);
}
objVectorSource.addFeatures(objFeatures);
}
function moveCenter(center) {
var coordinates = ol.proj.transform(center, 'EPSG:5186', 'EPSG:3857');
map.getView().setCenter(coordinates);
var coordinates = ol.proj.transform(center, 'EPSG:5186', 'EPSG:3857');
map.getView().setCenter(coordinates);
}
function getObjFeatureBySelected() {
var features = objVectorSource.getFeatures();
var feature = null;
var features = objVectorSource.getFeatures();
var feature = null;
for (var i = 0, size = features.length; i < size; i++) {
if (features[i].get('selected') == true) {
feature = features[i];
break;
for (var i = 0, size = features.length; i < size; i++) {
if (features[i].get('selected') == true) {
feature = features[i];
break;
}
}
}
return feature;
return feature;
}
function getObjFeatureByIdx(idx) {
var features = objVectorSource.getFeatures();
var feature = null;
for (var i = 0, size = features.length; i < size; i++) {
if (features[i].get('idx') == idx) {
feature = features[i];
break;
var features = objVectorSource.getFeatures();
var feature = null;
for (var i = 0, size = features.length; i < size; i++) {
if (features[i].get('idx') == idx) {
feature = features[i];
break;
}
}
}
return feature;
return feature;
}

View File

@ -1,5 +1,4 @@
function fn_link_page(pageNo) {
function fn_link_page(pageNo) {
document.searchForm.pageIndex.value = pageNo;
document.searchForm.action = '/admin/history';
document.searchForm.submit();

View File

@ -1,5 +1,4 @@
function fn_link_page(pageNo) {
function fn_link_page(pageNo) {
document.searchForm.pageIndex.value = pageNo;
document.searchForm.action = '/admin/request';
document.searchForm.submit();

View File

@ -1,17 +1,16 @@
function confirmReqBtn(val){
function confirmReqBtn(val) {
$("#status").val(val);
var msg;
if(val == 0){
if (val == 0) {
msg = "승인";
}else{
} else {
msg = "거절";
}
if(confirm("지도사용요청을 "+msg+" 하시겠습니까?")){
if (confirm("지도사용요청을 " + msg + " 하시겠습니까?")) {
$("#updateFrm").submit();
}else{
} else {
return false;
}
}

View File

@ -1,92 +1,92 @@
let userInfoModal;
$(function(){
userInfoModal = new bootstrap.Modal(document.getElementById('userInfoModal'));
$(function () {
userInfoModal = new bootstrap.Modal(document.getElementById('userInfoModal'));
})
$(document).on('click', '.userInfoModalBtn', function (){
const userid = $(this.parentNode).find(".useridTd")[0].innerText;
$.ajax({
url: '/admin/userInfo/'+userid,
type: 'GET',
dataType:"html",
success: function(html){
$("#userInfoModalBody").empty().append(html);
userInfoModal.show();
},
error:function(){
$(document).on('click', '.userInfoModalBtn', function () {
const userid = $(this.parentNode).find(".useridTd")[0].innerText;
$.ajax({
url: '/admin/userInfo/' + userid,
type: 'GET',
dataType: "html",
success: function (html) {
$("#userInfoModalBody").empty().append(html);
userInfoModal.show();
},
error: function () {
}
});
}
});
})
function fn_link_page(pageNo) {
document.searchForm.pageIndex.value = pageNo;
document.searchForm.action = "<c:url value='/admin/userInfo' />";
document.searchForm.submit();
document.searchForm.pageIndex.value = pageNo;
document.searchForm.action = "<c:url value='/admin/userInfo' />";
document.searchForm.submit();
}
function confirmBtn(userid, auth){
$("#userid").val(userid);
$("#auth").val(auth);
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;
}
}
$(function(){
$("#changePw").click(function(){
if($(this).is(":checked")){
$("#password").attr("disabled", false);
$("#passwordCheck").attr("disabled", false);
}else{
$("#password").attr("disabled", true);
$("#passwordCheck").attr("disabled", true);
var msg;
if (auth === "2") {
msg = "승인";
} else {
msg = "삭제";
}
});
if (confirm(msg + " 처리 하시겠습니까?")) {
$("#updateFrm").submit();
} else {
return false;
}
}
$(function () {
$("#changePw").click(function () {
if ($(this).is(":checked")) {
$("#password").attr("disabled", false);
$("#passwordCheck").attr("disabled", false);
} else {
$("#password").attr("disabled", true);
$("#passwordCheck").attr("disabled", true);
}
});
});
function update() {
const changePw = $("#changePw").is(":checked");
const pw1 = $('#password');
const pw2 = $('#passwordCheck');
const name = $('#name');
const company = $('#company');
const tell = $('#phonenum');
const email_1 = $('#email');
const changePw = $("#changePw").is(":checked");
const pw1 = $('#password');
const pw2 = $('#passwordCheck');
const name = $('#name');
const company = $('#company');
const tell = $('#phonenum');
const email_1 = $('#email');
if (changePw && pw1.val() === "") {
alert('비밀번호를 입력해주세요');
pw1.focus();
} else if (changePw && pw2.val() === "") {
alert('비밀번호를 입력해주세요');
pw2.focus();
} else if (changePw && (pw1.val() !== pw2.val())) {
alert('비밀번호가 일치하지 않습니다.');
pw1.focus();
} else if (name.val() === "") {
alert('이름을 입력해주세요');
name.focus();
} else if (company.val() === "") {
alert('소속기관을 입력해주세요');
company.focus();
} else if (tell.val() === "") {
alert('연락처를 입력해주세요');
tell.focus();
} else if (email_1.val() === "") {
alert('이메일을 입력해주세요');
email_1.focus();
} else {
$("#updateForm").submit();
}
if (changePw && pw1.val() === "") {
alert('비밀번호를 입력해주세요');
pw1.focus();
} else if (changePw && pw2.val() === "") {
alert('비밀번호를 입력해주세요');
pw2.focus();
} else if (changePw && (pw1.val() !== pw2.val())) {
alert('비밀번호가 일치하지 않습니다.');
pw1.focus();
} else if (name.val() === "") {
alert('이름을 입력해주세요');
name.focus();
} else if (company.val() === "") {
alert('소속기관을 입력해주세요');
company.focus();
} else if (tell.val() === "") {
alert('연락처를 입력해주세요');
tell.focus();
} else if (email_1.val() === "") {
alert('이메일을 입력해주세요');
email_1.focus();
} else {
$("#updateForm").submit();
}
}