마이페이지 사건조회 추가

This commit is contained in:
leejunho 2024-12-02 14:03:35 +09:00
parent 19d35acc5e
commit e247cb2985
20 changed files with 632 additions and 48 deletions

View File

@ -233,8 +233,8 @@ public class SocialCertController {
//세션 등록
FairnetUtils.setCertSession(reqeust, nDecrypt(result.getReceiverName()), nDecrypt(result.getReceiverHP()));
certVO.setName(nDecrypt(result.getReceiverHP()));
certVO.setPhone(nDecrypt(result.getReceiverName()));
certVO.setPhone(nDecrypt(result.getReceiverHP()));
certVO.setName(nDecrypt(result.getReceiverName()));
String ori = "ReceiptID: " + result.getReceiptID()
+ ", ReceiverDay: " + nDecrypt(result.getReceiverDay())
@ -304,8 +304,8 @@ public class SocialCertController {
//세션 등록
FairnetUtils.setCertSession(reqeust, kDecrypt(result.getReceiverName()), kDecrypt(result.getReceiverHP()));
certVO.setName(kDecrypt(result.getReceiverHP()));
certVO.setPhone(kDecrypt(result.getReceiverName()));
certVO.setPhone(kDecrypt(result.getReceiverHP()));
certVO.setName(kDecrypt(result.getReceiverName()));
String ori = "ReceiptID: " + result.getReceiptID()
+ ", State: " + result.getState()
@ -384,25 +384,6 @@ public class SocialCertController {
}
}
@RequestMapping(value = "/web/user/cert/test.do")
public String testtestset(Model m) throws Exception {
CertVO certVO = new CertVO();
certVO.setName("이준호");
certVO.setPhone("01030266269");
certVO.setCertOri("");
certVO.setCertType("");
certService.insertCert(certVO);
certService.insertCertLog(certVO);
return "redirect:/";
}
}

View File

@ -1,19 +1,22 @@
package kcc.xxx.web;
import java.util.ArrayList;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.json.JSONArray;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kcc.com.cmm.CmmUtil;
@ -22,7 +25,7 @@ import kcc.utill.OzUtill;
import kcc.xxx.service.XxxService;
import kcc.xxx.service.XxxVO;
import seed.map.T_MEMBER;
import seed.utils.SeedUtils;
import seed.utils.FairnetUtils;
@Controller
public class XxxController {
@ -189,25 +192,36 @@ public class XxxController {
}
@RequestMapping("/web/xxx/xxxCert.do")
public String xxxCert(HttpSession session
, ModelMap map
@RequestMapping("/web/xxx/xxxEmail.do")
public String xxxEmail(
ModelMap map
, HttpServletRequest req
) {
if(!SeedUtils.setReplaceNull(session.getAttribute("hpName")).equals("")){
//미인증으로 본인인증이 필요하다는 페이지로 redirect
return "";
return "/web/xxx/xxxEmail";
}
if(SeedUtils.setReplaceNull(session.getAttribute("myPass")).equals("")){
@RequestMapping("/web/xxx/xxxEmailAjax.do")
public ResponseEntity<?> xxxEmailAjax(
HttpServletRequest req
, @RequestParam Map<String, String> param
) {
certSettingUtill.CertSetting(session, map, req, "my");
String receiver = param.get("receiver");
String content = param.get("content");
String subject = param.get("subject");
/*
* @param receiver 수신자(', '구분자를 통해 여러명에게 발송 가능)
* @param content 내용
* @param subject 제목
*/
if(FairnetUtils.emailSend(receiver, content, subject)) {
return new ResponseEntity<>("success", HttpStatus.OK);
}else {
return new ResponseEntity<>("fail", HttpStatus.OK);
}
session.removeAttribute("myPass");
return "/web/xxx/xxxCert";
}
}

View File

@ -0,0 +1,10 @@
package seed.com.user.mypage;
import java.util.List;
public interface CaseAuthService {
public List<CaseAuthVO> selectCaseAuthList(CaseAuthVO caseAuthVO) throws Exception;
public void insertCaseAuth(CaseAuthVO caseAuthVO) throws Exception;
public CaseAuthVO selectRceptNo(CaseAuthVO caseAuthVO) throws Exception;
}

View File

@ -0,0 +1,52 @@
package seed.com.user.mypage;
import java.io.Serializable;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
public class CaseAuthVO implements Serializable{
private static final long serialVersionUID = 1L;
/**
* 승인요청ID
*/
private String caseAuthId;
/**
* 접수번호
*/
private String rceptNo;
/**
* 인증ID
*/
private String certId;
/**
* 승인요청 종류(등록자,신청인,피신청인)
*/
private String caseAuthType;
/**
* 승인완료 여부 (Y/N)
*/
private String caseAuthYn;
/**
* 최초 등록 일시
*/
private String frstRegistPnttm;
/**
* 마지막 수정 일시
*/
private String lastUpdtPnttm;
private String caseNo;
}

View File

@ -26,10 +26,13 @@ import org.springframework.web.servlet.ModelAndView;
import com.google.gson.Gson;
import com.ibm.icu.text.SimpleDateFormat;
import kcc.let.uat.uia.service.CertService;
import kcc.let.uat.uia.service.CertVO;
import seed.com.gtm.counsel.OnlineCounselService;
import seed.com.gtm.seedfile.SeedFileService;
import seed.com.gtm.util.Criteria;
import seed.com.gtm.util.PageMaker;
import seed.com.user.mediation.MediationService;
import seed.manager.group.service.ManagerGroupService;
import seed.manager.member.service.ManagerMemberService;
import seed.manager.site.service.ManagerSiteManagerService;
@ -70,6 +73,15 @@ private Logger log = Logger.getLogger(this.getClass());
@Autowired
private SeedFileService fileService;
@Autowired
private MediationService mediationService;
@Autowired
private CertService certService;
@Autowired
private CaseAuthService caseAuthService;
@Value("#{config['member.merge']}")
private String memberMerge;
@ -1025,6 +1037,97 @@ private Logger log = Logger.getLogger(this.getClass());
return "redirect:/";
}
@RequestMapping("/web/user/mypage/case/01/169/mediationPop.do")
public ModelAndView mediationPop(
ModelMap map
, HttpSession session
, HttpServletRequest req
, @RequestParam Map<String,Object> paramMap
, Criteria cri
){
return new ModelAndView("/_extra/web/user/myPage/mediationPop");
}
@RequestMapping("/web/user/mypage/case/01/169/mediationPopAjax.do")
public ResponseEntity<?> mediationPopAjax(
@RequestParam Map<String, Object> paramMap
, HttpServletRequest req
) throws Exception{
Map<String, String> result = new HashMap<>();
String checkPass = SeedUtils.setReplaceNull(paramMap.get("checkPass"));
List<Map<String,Object>> applCnt = mediationService.selectCaseApplcnt(paramMap);
List<Map<String,Object>> respondentCnt = mediationService.selectCaseRespondent(paramMap);
if((applCnt == null || applCnt.size() == 0) && (respondentCnt == null || respondentCnt.size() == 0)){
result.put("stauts", "fail");
result.put("msg", "해당 조정 사건이 존재하지 않습니다.");
return new ResponseEntity<>(result, HttpStatus.OK);
}
String caseAuthType = "";
Boolean status = false;
if(applCnt.size() > 0) {
for(int i=0; i<applCnt.size();i++) {
String applcntPwd = SeedUtils.setReplaceNull(applCnt.get(i).get("APPLCNT_PWD"));
if(applcntPwd.equals(checkPass)) {
status = true;
caseAuthType = "app";
}
}
}
if(respondentCnt.size() > 0) {
for(int i=0; i<respondentCnt.size();i++) {
String respondentPwd = SeedUtils.setReplaceNull(respondentCnt.get(i).get("RESPONDENT_PWD"));
if(respondentPwd.equals(checkPass)) {
status = true;
caseAuthType = "res";
}
}
}
if(status == false) {
result.put("status", "fail");
result.put("msg", "비밀번호가 일치 하지 않습니다.");
return new ResponseEntity<>(result, HttpStatus.OK);
}
try {
CaseAuthVO caseAuthVO = new CaseAuthVO();
//rceptNo구하기
caseAuthVO.setCaseNo(SeedUtils.setReplaceNull(paramMap.get("caseNo")));
caseAuthVO = caseAuthService.selectRceptNo(caseAuthVO);
//certId 구하기
CertVO certVO = certService.selectCert(FairnetUtils.getCertSession(req));
caseAuthVO.setCertId(certVO.getCertId());
// 세팅
caseAuthVO.setCaseAuthType(caseAuthType);
caseAuthVO.setCaseAuthYn("N");
caseAuthService.insertCaseAuth(caseAuthVO);
result.put("status", "success");
result.put("msg", "추가되었습니다.");
} catch (Exception e) {
result.put("status", "fail");
result.put("msg", "사건 추가에 실패했습니다.");
}
return new ResponseEntity<>(result, HttpStatus.OK);
}
private Boolean ciCheck(ModelMap map, HttpSession session) {
String certNm = SeedUtils.setReplaceNull(session.getAttribute("certNm"));
String certHpNo = SeedUtils.setReplaceNull(session.getAttribute("certHpNo"));

View File

@ -0,0 +1,22 @@
package seed.com.user.mypage.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import egovframework.rte.psl.dataaccess.EgovAbstractDAO;
import seed.com.user.mypage.CaseAuthVO;
@Repository("caseAuthDAO")
public class CaseAuthDAO extends EgovAbstractDAO {
public List<CaseAuthVO> selectCaseAuthList(CaseAuthVO caseAuthVO) throws Exception {
return (List<CaseAuthVO>) list("caseAuthDAO.selectCaseAuth", caseAuthVO);
}
public void insertCaseAuth(CaseAuthVO caseAuthVO) throws Exception {
insert("caseAuthDAO.insertCaseAuth", caseAuthVO);
}
public CaseAuthVO selectRceptNo(CaseAuthVO caseAuthVO) throws Exception{
return (CaseAuthVO) select("caseAuthDAO.selectRceptNo", caseAuthVO);
}
}

View File

@ -0,0 +1,38 @@
package seed.com.user.mypage.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
import seed.com.user.mypage.CaseAuthService;
import seed.com.user.mypage.CaseAuthVO;
@Service("caseAuthService")
public class CaseAuthServiceImpl extends EgovAbstractServiceImpl implements CaseAuthService {
@Resource(name="caseAuthDAO")
private CaseAuthDAO caseAuthDAO;
@Resource(name="caseAuthIdgenService")
private EgovIdGnrService caseAuthIdgenService;
@Override
public List<CaseAuthVO> selectCaseAuthList(CaseAuthVO caseAuthVO) throws Exception {
return caseAuthDAO.selectCaseAuthList(caseAuthVO);
}
@Override
public void insertCaseAuth(CaseAuthVO caseAuthVO) throws Exception {
caseAuthVO.setCaseAuthId(caseAuthIdgenService.getNextStringId());
caseAuthDAO.insertCaseAuth(caseAuthVO);
}
@Override
public CaseAuthVO selectRceptNo(CaseAuthVO caseAuthVO) throws Exception{
return caseAuthDAO.selectRceptNo(caseAuthVO);
}
}

View File

@ -0,0 +1,49 @@
package seed.utils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class EmailGlobalSet {
private static String smtpHost;
private static int smtpPort;
private static String username;
private static String password;
@Value("#{globalSettings['email.smtpHost']}")
public void setSmtpHost(String smtpHost) {
EmailGlobalSet.smtpHost = smtpHost;
}
@Value("#{globalSettings['email.smtpPort']}")
public void setSmtpPort(int smtpPort) {
EmailGlobalSet.smtpPort = smtpPort;
}
@Value("#{globalSettings['email.username']}")
public void setUsername(String username) {
EmailGlobalSet.username = username;
}
@Value("#{globalSettings['email.password']}")
public void setPassword(String password) {
EmailGlobalSet.password = password;
}
public static String getSmtpHost() {
return smtpHost;
}
public static int getSmtpPort() {
return smtpPort;
}
public static String getUsername() {
return username;
}
public static String getPassword() {
return password;
}
}

View File

@ -5,8 +5,16 @@ import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Random;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@ -221,5 +229,69 @@ public class FairnetUtils {
return certVO;
}
/**
* @methodName : emailSend
* @author : JunHo Lee
* @date : 2024.11.28
* @description :
* @param receiver 수신자(', '구분자를 통해 여러명에게 발송 가능)
* @param content 내용
* @param subject 제목
* @return
*/
public static Boolean emailSend(
String receiver
, String content
, String subject
) {
EmailGlobalSet emailGlobalSet = new EmailGlobalSet();
// SMTP 서버 정보 설정
String smtpHost = emailGlobalSet.getSmtpHost();
int smtpPort = emailGlobalSet.getSmtpPort();
final String username = emailGlobalSet.getUsername();
final String password = emailGlobalSet.getPassword();
// 이메일 정보 설정
String fromEmail = "caseadmin@kofair.or.kr";
String toEmail = receiver;
// SMTP 세션 설정
Properties props = new Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.port", String.valueOf(smtpPort));
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
Session session = Session.getInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
try {
// 이메일 메시지 작성
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(fromEmail));
message.setRecipients(
Message.RecipientType.TO,
InternetAddress.parse(toEmail)
);
message.setSubject(subject);
message.setText(content);
// 이메일 전송
Transport.send(message);
System.out.println("이메일이 성공적으로 전송되었습니다.");
return true;
} catch (MessagingException e) {
System.out.println(e.getMessage());
return false;
}
}
}

View File

@ -231,3 +231,9 @@ cert.hpSrvNo=015006
#\ub300\uc6a9\ub7c9 innorix license
Globals.Innorix.License=dev
#Globals.Innorix.FilePath=/usr/local/tomcat/file/sht/
#\uc774\uba54\uc77c \ubc1c\uc1a1 \uc815\ubcf4
email.smtpHost=mail.kofair.or.kr
email.smtpPort=25
email.username=caseadmin@kofair.or.kr
email.password=@caseadmin2024

View File

@ -236,3 +236,9 @@ cert.hpSrvNo=016006
#\ub300\uc6a9\ub7c9 innorix license
Globals.Innorix.License=dev
#Globals.Innorix.FilePath=/usr/local/tomcat/file/sht/
#\uc774\uba54\uc77c \ubc1c\uc1a1 \uc815\ubcf4
email.smtpHost=mail.kofair.or.kr
email.smtpPort=25
email.username=caseadmin@kofair.or.kr
email.password=@caseadmin2024

View File

@ -410,3 +410,9 @@ cert.hpSrvNo=012006
#\ub300\uc6a9\ub7c9 innorix license
Globals.Innorix.License=svr
#Globals.Innorix.FilePath=/usr/local/tomcat/file/sht/
#\uc774\uba54\uc77c \ubc1c\uc1a1 \uc815\ubcf4
email.smtpHost=mail.kofair.or.kr
email.smtpPort=25
email.username=caseadmin@kofair.or.kr
email.password=@caseadmin2024

View File

@ -3024,4 +3024,21 @@
<property name="fillChar" value="0" />
</bean>
<!-- 사건권한 승인요청 테이블 -->
<bean name="caseAuthIdgenService"
class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" />
<property name="strategy" ref="caseAuthIdgenStrategy" /><!-- strategy 값 수정 -->
<property name="blockSize" value="10"/>
<property name="table" value="IDS"/>
<property name="tableName" value="CASE_AUTH_ID"/><!-- tableName 값 수정 -->
</bean>
<bean name="caseAuthIdgenStrategy"
class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"><!-- bean name 값에 strategy 값 입력 -->
<property name="prefix" value="CASEAUTH_" /><!-- prefix 값 수정 -->
<property name="cipers" value="11" /><!-- 일련번호(순번) 전체 길이(prefix길이 미포함) -->
<property name="fillChar" value="0" />
</bean>
</beans>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<sqlMap resource="egovframework/sqlmap/mappers/CaseAuth_SQL_Oracle.xml"/>
</sqlMapConfig>

View File

@ -8,9 +8,9 @@
<select id="certDAO.selectCert" resultClass="certVO">
SELECT
CERT_ID,
CERT_NAME,
CERT_PHONE
CERT_ID as certId,
CERT_NAME as name,
CERT_PHONE as phone
FROM
UNP_CERT
WHERE

View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="Case">
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
<typeAlias alias="caseAuthVO" type="seed.com.user.mypage.CaseAuthVO"/>
<select id="caseAuthDAO.selectCaseAuth" parameterClass="caseAuthVO" resultClass="caseAuthVO">
SELECT
A.CASE_AUTH_ID as caseAuthId,
A.RCEPT_NO as rceptNo,
A.CERT_ID as certId,
A.CASE_AUTH_TYPE as caseAuthType,
A.CASE_AUTH_YN as caseAuthYn,
A.FRST_REGIST_PNTTM as frstRegistPnttm,
A.LAST_UPDT_PNTTM as lastUpdtPnttm
FROM
UNP_CASE_AUTH A
WHERE
A.CERT_ID = #certId#
</select>
<insert id="caseAuthDAO.insertCaseAuth" parameterClass="caseAuthVO">
INSERT INTO UNP_CASE_AUTH (
CASE_AUTH_ID,
RCEPT_NO,
CERT_ID,
CASE_AUTH_TYPE,
CASE_AUTH_YN,
FRST_REGIST_PNTTM
)
SELECT
#caseAuthId#,
#rceptNo#,
#certId#,
#caseAuthType#,
#caseAuthYn#,
SYSDATE
FROM
DUAL
WHERE
NOT EXISTS (
SELECT
CASE_AUTH_ID
FROM
UNP_CASE_AUTH
WHERE
RCEPT_NO = #rceptNo#
AND CERT_ID = #certId#
)
</insert>
<select id="caseAuthDAO.selectRceptNo" parameterClass="caseAuthVO" resultClass="caseAuthVO">
SELECT
A.RCEPT_NO as rceptNo
, A.CASE_NO as caseNo
FROM
C_MASTER A
inner join C_RCEPTMST B
on A.RCEPT_NO = B.RCEPT_NO
WHERE
A.CASE_NO = #caseNo#
</select>
</sqlMap>

View File

@ -179,5 +179,6 @@
<!-- 사용자 팝업 레이아웃 -->
<decorator name="popupLayout" page="/WEB-INF/jsp/layout/popupLayout.jsp">
<pattern>/web/user/cert/*</pattern>
<pattern>*Pop.do</pattern>
</decorator>
</decorators>

View File

@ -0,0 +1,71 @@
<%@ 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="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<script type="text/javascript">
$(document).ready(function(){
});
function validation(){
if($('#name').val() == ''){
alert('이름을 입력해 주세요');
return false;
}
if($('#phone').val() == ''){
alert('휴대전화를 입력해 주세요.');
return false;
}
return true;
}
function mediationView(){
if(validation()){
$.ajax({
url: '/web/user/mypage/case/01/169/mediationPopAjax.do',
type: 'POST',
processData: false,
contentType: false,
data: new FormData(document.mediationForm),
success: function(response) {
alert(response.msg);
if(response.status == 'success'){
opener.location.reload();
window.close();
}
},
error: function(error) {
alert("error");
}
});
}
}
</script>
<form id="mediationForm" name="mediationForm" action="/web/user/cert/nCertStep2.do" method="post">
<div class="window_popup idf" style="width:700px">
<div class="title_area">
<h1>사건 조회</h1>
</div>
<div class="box gray_fill">
<ul class="input_box column">
<li>
<p>· 사건번호</p>
<input type="text" id="caseNo" name="caseNo" class="input_text" placeholder="사건번호를 입력해주세요." title="사건번호 입력">
</li>
<li>
<p>· 비밀번호</p>
<input type="password" id="checkPass" name="checkPass" class="input_text" placeholder="비밀번호를 입력해주세요." title="비밀번호 입력">
</li>
<li>
<button type="button" class="btn btn_text btn_50 darkblue_fill w100per" onclick="mediationView();">조회</button>
</li>
</ul>
</div>
</div>
</form>

View File

@ -35,6 +35,10 @@
location.href = "/web/user/mypage/case/01/169/myMediationList.do?command=temp&page=1";
}
}
function mediationPop(){
window.open('/web/user/mypage/case/01/169/mediationPop.do', 'mediationPop', 'width=710, height=527')
}
</script>
<div class="sub_content apl_status_content">
@ -62,7 +66,7 @@
<div class="table_top">
<p class="list_total_number">전체 <span class="color_blue">3</span>건 (<span class="color_blue">1</span>/1페이지)</p>
<button type="button" class="btn btn_text btn_35 orange_border">사건조회</button>
<button type="button" class="btn btn_text btn_35 orange_border" onclick="mediationPop();">사건조회</button>
</div>
<div class="table_type_cols">

View File

@ -0,0 +1,54 @@
<%@ 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"%>
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
function send(){
$.ajax({
url: '/web/xxx/xxxEmailAjax.do',
type: 'POST',
processData: false,
contentType: false,
data: new FormData(document.emailForm),
success: function(response) {
alert(response);
window.close();
},
error: function(error) {
alert("error");
}
});
}
</script>
<form id="emailForm" name="emailForm" action="" method="post">
<div class="sub_content">
<!-- page_location -->
<div class="list_view">
<div class="list_view_wrap">
<h4 class="list_view_tit">
메일발송 샘플
</h4>
<div class="view_content">
수신자 :: <input type="text" id="receiver" name="receiver" class="text"/>
</br>
제목 :: <input type="text" id="subject" name="subject" class="text"/>
</br>
내용 :: <textarea rows="10" id="content" name="content" cols="30"></textarea>
</div>
<div class="btn_wrap right">
<button type="button" class="btn btn_text btn_40 gray_fill" onclick="send();">발송</button>
</div>
</div>
</div>
</div>
</form>