File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%@ page contentType="text/html; charset=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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<!DOCTYPE html>
<head>
</head>
<script type="text/javascript" src="/publish/js/jquery-3.5.0.js"></script>
<script type="text/javascript">
/* function goMemberJoin(){
opener.goMemberJoin();
self.close();
} */
/* function goEventPayList(nttId, bbsId){
<c:if test="${empty loginVO }">
alert("문자온 서비스는 로그인 후 이용 가능합니다.");
self.close();
</c:if>
<c:if test="${not empty loginVO }">
opener.goEventPayList(nttId, bbsId);
self.close();
</c:if>
} */
function goMemberJoin(){
//alert("회원가입 화면으로 이동시켜 주세요.");
opener.location.href="<c:url value='/web/user/login/selectUserDept.do'/>";
self.close();
}
function goEventPayList(nttId, bbsId){
<c:if test="${empty loginVO }">
alert("문자온 서비스는 로그인 후 이용 가능합니다.");
self.close();
</c:if>
var frm = document.eventForm;
//frm.eventNttId.value = nttId;
//frm.eventBbsId.value = bbsId;
var data = new FormData(frm);
//팝업에서 결제하기 버튼을 누른 경우 해당 회원의 정보를 먼저 이벤트 회원 정보 테이블에 넣어준다.
$.ajax({
type:"POST",
url: "/web/event/insertEventDefaultMberInfoAjax.do",
data: data,
dataType:'json',
contentType: false,
processData: false,
success: function (returnData, status) {
if(status == 'success'){
if(returnData.resultSts == 'loginFail'){
alert("문자온 서비스는 로그인 후 이용 가능합니다.");
opener.location.href="<c:url value='/web/user/login/login.do'/>";
self.close();
}else if(returnData.resultSts == 'success'){//회원정보 입력이 끝나면 결제 화면으로 이동한다.
opener.location.href="<c:url value='/web/event/member/pay/PayView.do'/>";
self.close();
}else if(returnData.resultSts == 'eventJoined'){//현재 이벤트를 진행중인 회원
alert("현재 이벤트 진행 중입니다.");
opener.location.href="<c:url value='/web/main/mainPage.do'/>";
self.close();
}else if(returnData.resultSts == 'eventEnded'){//해당 이벤트가 완료된 회원
alert("해당 이벤트를 완료하셨습니다.");
opener.location.href="<c:url value='/web/main/mainPage.do'/>";
self.close();
}
} else if(status== 'fail'){
alert("이벤트 신청에 오류가 발생하였습니다.");
return false;
}
},
error: function (e) {
alert("이벤트 신청에 오류가 발생하였습니다.");
console.log("ERROR : ", e);
}
});
}
</script>
<form id="eventForm" name="eventForm" method="post">
<input type="hidden" id="payCount" name="payCount" value="0"/>
<input type="hidden" id="eventNttId" name="eventNttId" value="<c:out value='${resultEvent.nttId}'/>"/>
<input type="hidden" id="eventBbsId" name="eventBbsId" value="<c:out value='${resultEvent.bbsId}'/>"/>
<div class="info_popup ad_layer adpopup01" style="min-width:773px;">
<div class="popup_heading">
<p>
<c:out value="${resultEvent.nttSj}"/>
</p>
</div>
<div class="popup_heading">
<p>
<c:out value="${resultEvent.nttCn}" escapeXml="false" />
</p>
</div>
<div>이벤트 유의사항 동의 여부(필수)
<input type="radio" id="eventPolicyYnY" name="eventPolicyYn" value="Y" checked/> 예
<input type="radio" id="eventPolicyYnN" name="eventPolicyYn" value="N"/> 아니오
</div>
<div>이벤트 문자 수신 동의 여부(선택)
<input type="radio" id="eventSmsYnY" name="eventSmsYn" value="Y" checked/> 예
<input type="radio" id="eventSmsYnN" name="eventSmsYn" value="N"/> 아니오
</div>
<div class="layer_in">
<div class="list_tab_wrap2 type5">
<!-- tab button -->
<ul class="list_tab">
<c:if test="${empty loginVO }">
<li class="tab active"><button type="button" onclick="goMemberJoin(); return false;">회원가입</button></li>
</c:if>
<li class="tab"><button type="button" onclick="goEventPayList('<c:out value="${resultEvent.nttId}"/>','<c:out value="${resultEvent.bbsId}"/>'); return false;">결제하기</button></li>
</ul><!--// tab button -->
</div>
</div>
</div>
<!--// 광고문자 관련법규 안내 팝업 -->
</form>
</body>
</html>