GGWEB/src/main/webapp/WEB-INF/jsp/admin/requestView.jsp

201 lines
8.5 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<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"/>
<table class="table table-hover" style="width: 95%">
<thead>
<h5>&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 class="row justify-content-between bg-white mt-4 py-2" style="margin-right: 1em">
<table class="detail_table">
<tbody>
<tr>
<th style="background-color: #f8f8f8" colspan="2">작업명</th>
<td style="text-align: center"><c:out value='${useRequestVO.title}'/></td>
</tr>
<tr>
<th colspan="2">기간</th>
<td style="text-align: center"><c:out value='${useRequestVO.s_date}'/> ~ <c:out
value='${useRequestVO.e_date}'/></td>
</tr>
<tr>
<th colspan="2">장소</th>
<td id="area_select_td" style="text-align: center">
<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 rowspan="3">레이어</th>
<%-- <td colspan="3">--%>
<th><label>지하시설물</label></th>
<td>
<%-- <div class="form-check">--%>
<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="form-check">--%>
<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="form-check">--%>
<c:forEach var="item" items="${layersVO}" varStatus="status">
<c:if test="${item.code eq 'ground'}">
<label class="layer-label" style="display: inline-block">
<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 style="text-align: center"><c:out value='${useRequestVO.user_msg}'/></td>
</tr>
</tbody>
</table>
<c:choose>
<c:when test="${useRequestVO.status eq '99'}">
<table class="detail_table" style="margin-right: 1em">
<tbody>
<tr>
<th>전달 메세지</th>
<td>
<textarea class="form-control" rows="3" cols="50%" style="resize:none;"
name="admin_msg"></textarea>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="status" id="status"/>
<div class="row justify-content-between bg-white mx-3 py-2">
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-secondary" type="button" value="닫기" data-bs-dismiss="modal"/>
</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>
</c:when>
<c:otherwise>
<table class="detail_table">
<tbody>
<tr>
<th style="margin-right: 1em">전달 메세지</th>
<td style="text-align: center"><c:out value='${useRequestVO.admin_msg}'/></td>
</tr>
</tbody>
</table>
</div>
<div class="section_btn">
<p class="search_p1">
<input class="btn btn-secondary" type="button" value="닫기" data-bs-dismiss="modal"/>
</p>
</div>
</c:otherwise>
</c:choose>
</form:form>