<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ taglib prefix="ckeditor" uri="http://ckeditor.com"%>
<%   
	response.setHeader("Cache-Control","no-store");   
	response.setHeader("Pragma","no-cache");   
	response.setDateHeader("Expires",0);   
	if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); 
%> 
<!DOCTYPE html>
<html lang="ko">
<head>
<title>Document</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="/direct/css/font.css">
<link rel="stylesheet" href="/direct/css/reset.css">
<link rel="stylesheet" href="/direct/css/enroll_popup.css">
<link rel="stylesheet" href="/direct/css/nice-select.css">
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/direct/css/ie_popup.css" />
<![endif]-->
<script src="/direct/js/jquery-1.11.3.min.js"></script>
<script src="/direct/js/jquery-ui.min.js"></script>
<script src="/direct/js/jquery.nice-select.js"></script>
<script src="/direct/js/script.js"></script>
<!-- <script src="/direct/js/popup_open_2.js"></script> -->

<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javascript" src="/js/audit/audit.common.js"></script>   
<script type="text/javaScript" language="javascript">
$(document).ready(function() {
	$('select').niceSelect();
	
	$(".cprslt").text(opener.document.listForm.updateStateNm.value);
});

// 등록
var msg = "";
function updateStateCnAll() {
	if (!confirm("선택된 항목을 " + opener.document.listForm.updateStateNm.value + "(으)로 처리 하시겠습니까?")) return;
	
	CKEDITOR.instances.cmplntResCn.updateElement();
	var cmplntResCn = $("#cmplntResCn").val();
	if (cmplntResCn == "") cmplntResCn = " ";
	
	opener.document.listForm.cmplntResCn.value = cmplntResCn;
	opener.document.listForm.pageIndex.value = 1;
	opener.document.listForm.action = "<c:out value='/uss/itsm/cvlCmplnt/updateCvlCmplntStateAll.do'/>";
	opener.document.listForm.target = "_self";
	opener.document.listForm.submit();
	window.self.close();
}
</script>
<style type="text/css">
	 _:-ms-input-placeholder, :root .enroll_popup.admin_complanint_popup .enroll_wrap .enroll_input_left.admin_complanint_wrap ul li .attachment_file_wrap table tbody { min-height: auto !important; }
	 _:-ms-input-placeholder, :root .enroll_popup.admin_complanint_popup .enroll_wrap .enroll_input_left.admin_complanint_wrap ul li .attachment_file_wrap{ min-height:154px;}
	 _:-ms-input-placeholder, :root .complanint_process_status_table table .complanint_title{width:auto;}
	 _:-ms-input-placeholder, :root .complanint_history_file_wrap table tr td{ border-bottom: 1px solid #ccc !important; width: 86% !important;}
	  _:-ms-input-placeholder, :root .complanint_history_file_wrap table tr td:last-chlid{border-bottom:none;}
	  _:-ms-input-placeholder, :root .ck_div a{padding:4px 6px !important;}
</style>
</head>
<body>
<!-- 민원신청현황 form-->
<form name="userListForm" method="post">
<!-- <input type="hidden" name="cmplntId" />
<input type="hidden" name="cmplntSn" /> -->
<!-- <input type="hidden" name="cmplntImsiYn" /> -->
<input type="hidden" name="searchSortCnd" />
<input type="hidden" name="searchSortOrd" />
<input type="hidden" name="frstRegisterId" value="<c:out value="${result.frstRegisterId}" />" />
<input type="hidden" name="pageIndex" />
</form>

<form name="detailForm" method="post" enctype="multipart/form-data">
<input type="hidden" name="cmplntId" value="<c:out value="${result.cmplntId}" />" />
<input type="hidden" name="cmplntSn" value="<c:out value="${result.cmplntSn}" />" />
<input type="hidden" name="cmplntResFileId" value="<c:out value="${result.cmplntResFileId}" />" />
<input type="hidden" name="cmplntResDatetime" value="<c:out value="${result.cmplntResDatetime}" />" />
<input type="hidden" name="cmplntUserTy" value="A" />
<%-- <input type="hidden" name="pageIndex" value="<c:out value="${result.pageIndex}" />" /> --%>


	<div class="enroll_popup complanint_ask_popup admin_complanint_popup adminChangeStatsPopup">
		<div class="enroll_popup_title">
			<img src="/direct/img/enroll_popup_title_bg.png" alt=""> 일괄 처리상태 변경
		</div>
		<div class="enroll_wrap">
			<div class="enroll_input_left complanint_wrap admin_complanint_wrap ">
				<ul>
					<li>
						<div class="enroll_input_title"><div class="listTitle">처리상태</div></div>
							<span class="cprslt"></span>
					</li>
					<li>
						<div class="enroll_input_title"><div class="listTitle">의견등록</div></div>
						<div class="ck_div" style="margin-top:10px;width:665px;margin-left:14px;">
						<textarea name="cmplntResCn" id="cmplntResCn" cols="30" rows="10"><c:out value="${result.cmplntResCn}" /></textarea>
						<ckeditor:replace replace="cmplntResCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/"/></div>
						<div class="main1_btn_div">
							<button type="button" class="main1_btn main1_ask_register" id="saveBtn" onclick="updateStateCnAll();">저장</button>
							<!-- <button type="button" class="main1_btn main1_del" id="saveBtn" onclick="deleteDetail();">삭제</button> -->
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</form>
</body>
</html>