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
<%--
Class Name : EgovGnrlUserSelectUpdt.jsp
Description : 사용자상세 팝업 JSP
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.03.03 JJY 최초 생성
2011.08.31 JJY 경량환경 버전 생성
2011.08.31 우영두 팝업 화면 개발
author : 공통서비스 개발팀 JJY
since : 2009.03.03
--%>
<%@ page 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="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="double-submit" uri="http://www.egovframe.go.kr/tags/double-submit/jsp" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>반려 팝업</title>
<link rel="stylesheet" href="/publish/testcss/css/reset.css">
<link rel="stylesheet" href="/publish/testcss/css/font.css">
<link rel="stylesheet" href="/publish/testcss/css/sample.css">
<script src="/publish/js/jquery-3.5.0.js"></script>
<script src="/publish/js/common.js"></script>
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<script src="/js/ncms_common.js"></script>
<link rel="stylesheet" href="/pb/css/common.css">
<link rel="stylesheet" href="/pb/css/popup.css">
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js'/>"></script>
<link rel="stylesheet" href="/pb/css/content.css?date=202301160001">
<script src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javaScript" language="javascript" defer="defer">
$(document).ready(function() {
});
//검색 초기화
function fn_searchReset(){
$("input[name*=emailInfoDate]").val('');
linkPage(1);
}
//발송하기
function fn_send() {
if (confirm("발송 하시겠습니까?")) {
var form = document.popForm;
if(form.emailInfoDate.value ==''){
alert("발송일자를 선택해주세요.");
return false;
}
//오늘과 날짜비교
const today = new Date();
const year = today.getFullYear();
const month = ('0' + (today.getMonth() + 1)).slice(-2);
const day = ('0' + today.getDate()).slice(-2);
const todayString = year+month+day
const emailDate = form.emailInfoDate.value.replace(/-/g, '');
if(todayString >= emailDate){
alert("발송일자는 오늘 날짜 이후로 설정해주세요");
return false;
}
if(form.emailInfoCn.value ==''){
alert("내용을 입력해주세요.");
return false;
}
var data = new FormData(form);
url = "/sym/site/termsMastEmainInfoYUpdateAjax.do";
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.isSuccess) {
// 초기화
alert(data.msg);
self.close();
opener.location.reload();
}
else {
alert(data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
//발송하기
function fn_test_send() {
if (confirm("테스트발송 하시겠습니까?\n관리자 계정 이메일 주소로 발송됩니다.")) {
var form = document.popForm;
if(form.emailInfoCn.value ==''){
alert("내용을 입력해주세요.");
return false;
}
var data = new FormData(form);
url = "/sym/site/termsMastEmainInfoTestSendAjax.do";
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.isSuccess) {
// 초기화
alert(data.msg);
}
else {
alert(data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
</script>
</head>
<body style="overflow-x:hidden; overflow-y:auto;">
<form id="popForm" name="popForm" method="post">
<input type="hidden" name="termsMastNo" id="termsMastNo" value="${termsMastVO.termsMastNo}"/>
<input type="hidden" name="termsDivCode" id="termsDivCode" value="${termsMastVO.termsDivCode}"/>
<div class="layer_popup active" style="width: 90%">
<div class="layer_content" style="padding: 0;" >
<table>
<colgroup>
<col style="width: 100px;">
<col style="width: auto;">
</colgroup>
<tbody>
<tr>
<th>발송일자</th>
<td>
<input type="hidden" name="cal_url" id="cal_url" value="/sym/cmm/EgovNormalCalPopup.do">
<div class="calendar_box" >
<input style="width:auto;min-width: 83px;" type="text" class="date_format" name="emailInfoDate" id="effectDate" size="8" maxlength="4" readonly="" value="<c:out value='${termsMastVO.emailInfoDate}'/>">
<input type="button" class="calBtn" onclick="javascript:fn_egov_NormalCalendar(document.forms.popForm, document.forms.popForm.emailInfoDate);">
<input type="button" class="btnType1" style="background-color: #456ded; margin-left: 12px;" onclick="fn_searchReset(); return false;" value="초기화">
</div>
</td>
</tr>
<tr>
<th>메일 내용</th>
<td>
<textarea name="emailInfoCn" style="height:300px;">${termsMastVO.emailInfoCn}</textarea>
</td>
</tr>
</tbody>
</table>
<div class="button_box">
<button type="button" onClick="fn_test_send(); return false;">테스트발송</button>
<button type="button" onClick="fn_send(); return false;">발송</button>
<button type="button" style="color: #8595b0;border: 1px solid #8595b0;background: #fff; " onClick="self.close()">취소</button>
</div>
<br />
</div>
</div>
</form>
</body>
</html>