<%@ 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" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="itn.com.cmm.LoginVO" %>
<% pageContext.setAttribute("newLineChar", "\n"); %>

<script type="text/javascript">
</script>
    <div class="rev_pop_in">
        <%-- <label for="subject" class="label">발송된 문자 제목</label>
        <input type="text" id="subject" name="subject" placeholder="${resultMsgDetail.subject}" value="${resultMsgDetail.subject}" readonly> --%>
        <div class="rev_pop_middle clearfix">
            <span>발송일시  :  <fmt:formatDate pattern = "yyyy-MM-dd hh:mm" value = "${resultMsgDetail.sentDate}" /></span>
            <c:choose>
            	<c:when test="${resultMsgDetail.msgType == '4'}">
            		<span class="msg_com msg_short">SMS</span>		
            	</c:when>
            	<c:otherwise>
            		<c:choose>
            			<c:when test="${resultMsgDetail.fileCnt == '0'}">
            				<span class="msg_com msg_long">LMS</span>
            			</c:when>
            			<c:otherwise>
            				<span class="msg_com msg_photo">MMS</span>
            			</c:otherwise>
            		</c:choose>
            	</c:otherwise>
            </c:choose>
        </div>
        <div class="rev_pop_txt">
        	<c:if test="${resultMsgDetail.fileCnt != '0'}">
	            <ul>
	            	<c:if test="${not empty resultMsgDetail.filePath1}">
	            		<li><img src="/cmm/fms/getImage2.do?atchFileId=<c:out value='${fileVO1.atchFileId}'/>&fileSn=<c:out value='${fileVO1.fileExtsn}'/>" alt="발송된 그림문자 미리보기"></li>
	            		
	            	</c:if>
	            	<c:if test="${not empty resultMsgDetail.filePath2}">
	            		<li><img src="/cmm/fms/getImage2.do?atchFileId=<c:out value='${fileVO2.atchFileId}'/>&fileSn=<c:out value='${fileVO2.fileExtsn}'/>" alt="발송된 그림문자 미리보기"></li>
	            	</c:if>
	            	<c:if test="${not empty resultMsgDetail.filePath3}">
	            		<li><img src="/cmm/fms/getImage2.do?atchFileId=<c:out value='${fileVO3.atchFileId}'/>&fileSn=<c:out value='${fileVO3.fileExtsn}'/>" alt="발송된 그림문자 미리보기"></li>
	            	</c:if>
	            </ul>
            </c:if>
            <div>
                <!-- <p class="deny_receipt">(광고) 무료거부 080-888-8282</p> -->
                <p class="rev_cont">
                	${fn:replace(resultMsgDetail.smsTxt, newLineChar, "<br/>")}
                </p>
            </div>
        </div>
	</div>
