<%@ 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/fieldView.js"></script>


	    <div class="section_title">
	      <!-- <p>현장 지원 시스템</p> -->
	    </div>

		<div class="section_content">
   
		    <table class="detail_table">
		        <thead>
		          <tr>
		            <th colspan="6">담당자</th>
		          </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>
    
			<table class="detail_table">
		        <thead>
		          <tr>
		            <th colspan="4">지도정보</th>
		          </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 class="field_data_content">

				<div class="mapWrap">
					<div class="map-title">측량데이터</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-primary" type="button" value="표준DB변환 및 검증" onclick="fieldVerify();" />
			        <input class="btn btn-primary" type="button" value="반영" onclick="fieldReflect();" />
				</p>
			</div>
		</div>