<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="<c:url value='/resources/js/admin/msgcheck.js' />"></script>
<!-- 관리자 계정관리 -->
<div class="main-wrapper">
    <div class="title-bar">
    	<span class="title">전송확인</span>
    </div>
    <div id="wrapper">
    	<div class="form-group col-md-12">
   			<div class="col-md-2">
				<select class="form-control input-sm" id="sltOption">
					<option value="2">최근 3일</option>
					<option value="6">최근 7일</option>
					<option value="14">최근 15일</option>
					<option value="29">최근 30일</option>
				</select>
			</div>
			<div class="col-md-2">
				<input type="date" class="form-control" id="txtStrDate"/>
			</div>
			<div class="col-md-2 pdl0" style="display: inline-flex;">
				<span class="content-title">~&nbsp;&nbsp;&nbsp;</span>
				<input type="date" class="form-control" id="txtEndDate"/>
   			</div>
			<div class="col-md-2">
				<input type="text" class="form-control" placeholder="사용자아이디" id="txtUserId"/>
			</div>
			<div class="col-md-1 text-center">
				  <button type="button" class="btn btn-default btn-sm" id="btnSearch" title="조회">
				  	<span class="glyphicon glyphicon-search">&nbsp;조회</span>
				  </button>
			</div>
    	</div>
    	<div class="col-md-7">
    		<div class="left-content">
    			<div class="form-group col-md-12 pd0 mg0">
	    			<div class="table-wrapper-lg">
			    		<table class="table table-bordered table-hover table-row-click">
							<thead>
								<tr>
									<td class="table-header">사용자아이디</td>
									<td class="table-header">유형</td>
									<td class="table-header">메시지</td>
									<td class="table-header">전송일시</td>
								</tr>
							</thead>
							<tbody id="table_msgCheck">
							</tbody>
						</table>
					</div>
					<nav class="text-center nav-pagination">
					  <ul class="pagination pagination-sm" id="ulPagination">
					  </ul>
					</nav>
				</div>
			</div>	
    	</div>
    	<div class="col-md-5">
    		<div class="right-content row">
    			<div class="table-wrapper-lg">
		    		<table class="table table-bordered table-hover table-row-click">
						<thead>
							<tr>
								<td class="table-header">플랫폼</td>
								<td class="table-header">결과</td>
								<td class="table-header">에러유형</td>
							</tr>
						</thead>
						<tbody id="table_msgCheckDetail">
						</tbody>
					</table>
				</div>
			</div>	
    	</div>
    	<div class="col-md-12">
    		* 서비스 사용등록을 하지 않은 사용자에게는 PUSH를 전송할 수 없습니다. 전송결과가 조회되지 않는 사용자는 서비스 가입여부를 먼저 확인해보세요.<br/> 
			* 기본적으로 서비스 사용등록을 하지 않은 사용자에게 전달되는 PUSH메시지는, 기간계에서 전송요청을 하더라도 무시됩니다.
    	</div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function () {
	var msgCheck = new mplus_admin_msgCheck();
	msgCheck.init();	
});
</script>