<%@ 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 uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html lang="ko">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>주소록 내보내기 이력</title>
	
		<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
		<link rel="stylesheet" href="/publish/css/reset.css">
		<link rel="stylesheet" href="/publish/css/common.css">
		<link rel="stylesheet" href="/publish/css/estimate.css">
		<link rel="stylesheet" href="/publish/css/font.css">
		<link rel="stylesheet" href="/publish/css/button.css">
		
	</head>
	<body>
		<!-- 주소록 인쇄 미리보기 -->
		<div class="tablePrint_wrap">
			<!-- <p>주소록 인쇄 미리보기</p> -->
			<div class="tb_wrap">
				<table class="print_tType">
					<colgroup>
						<col style="width: auto;">
						<col style="width: 22%;">
						<col style="width: 22%;">
						<col style="width: 18%;">
						<col style="width: 15%;">
					</colgroup>
					<thead>
						<tr>
							<th>보낸주소록(그룹)명</th>
							<th>보낸날짜</th>
							<th>수신날짜</th>
							<th>수신인 ID</th>
							<th>수신상태</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="result" items="${addrTransHistList}" varStatus="status">
							<tr>
								<td title="<c:out value="${result.addrGrpNm}" />">
									<p>
										<c:out value="${result.addrGrpNm}" />[<span class="c_002c9a"><c:out value="${result.sendAddrCnt}" /></span>명]
									</p>
								</td>
								<td><p><c:out value="${result.sendDate}" /></p></td>
								<td><p><c:out value="${result.recvDate}" /></p></td>
								<td><p><c:out value="${result.recvMberId}" /></p></td>
								<td>
									<c:choose>
										<c:when test="${result.recvStatus == 'Y'}"><span class="c_002c9a">수신완료</span></c:when>
										<c:when test="${result.recvStatus == 'W'}"><span class="c_000">수신대기</span></c:when>
										<c:when test="${result.recvStatus == 'N'}"><span class="c_e40000">수신거부</span></c:when>
									</c:choose>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<div class="est_btn_wrap">
				<button type="button" class="btnType" onclick="window.print()"><i class="print_img"></i>인쇄하기</button>
			</div>
		</div><!--// 주소록 인쇄 미리보기 -->
	</body>
</html>
