# WARNING: head commit changed in the meantime
Merge branch 'master' of http://yongjoon.cho@vcs.iten.co.kr:9999/itnAdmin/fairnet 분쟁조정 사례수정 & DB ip 변경
This commit is contained in:
parent
ab047bfeef
commit
d4beed6aa3
@ -39,7 +39,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.ibatis.annotations.Case;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Controller;
|
||||
@ -1452,11 +1451,9 @@ public class MainController {
|
||||
}
|
||||
/* 분쟁조정 신청 > 분쟁조정 신청하기 */
|
||||
else if(
|
||||
menuUrl.contains("/web/user/mediation/case/")
|
||||
&& menuUrl.contains("mediationStep")
|
||||
&& menuUrl.contains(".do")
|
||||
menuUrl.contains("/web/user/news/case/01/341/")
|
||||
) {
|
||||
menuUrl = "/web/user/mediation/case/01/154/mediationApp.do";
|
||||
menuUrl = "/web/user/news/case/01/341/newsList.do";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -242,6 +242,7 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
boolean memberAuth = managerSiteMenuManagerService.getSiteMenuManagerListCnt(siteMenuIdx, memberIdx);
|
||||
|
||||
//메뉴 권한설정
|
||||
/*
|
||||
if(!memberGrant.equals("S") && !memberAuthM && !memberAuth &&
|
||||
!managerSiteMenuAuthService.getSiteMenuAuthChk(siteMenuIdx, memberIdx)){
|
||||
|
||||
@ -255,6 +256,14 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
}
|
||||
*/
|
||||
|
||||
boolean b_ret = true;
|
||||
b_ret = FairnetUtils.hasUserAuth(memberIdx, memberGrant, memberAuth, session, map);
|
||||
|
||||
if (!b_ret) {
|
||||
return new ModelAndView("/_common/jsp/message");
|
||||
}
|
||||
|
||||
Map<Object, Object> tSiteMenuDB = managerSiteMenuService.getSiteMenuMapForm(siteMenuIdx,
|
||||
new String[] {"siteMenuName", "siteMenuParentTitle", "siteMenuStatus", "siteMenuType", "siteMenuLinkUrl", "siteMenuCharge", "siteMenuCharge", "siteMenuSNS",
|
||||
@ -354,7 +363,7 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
}
|
||||
|
||||
// /user/news/case/01/322/regReq.do
|
||||
@RequestMapping(value="/web/user/news/{siteIdx}/01/{siteMenuIdx}/regReq.do", method=RequestMethod.POST)
|
||||
@RequestMapping(value="/web/user/news/{siteIdx}/01/{siteMenuIdx}/newsDetail.do", method=RequestMethod.POST)
|
||||
public ModelAndView regReq(ModelMap map, HttpSession session, HttpServletRequest req, HttpServletResponse res, @RequestParam Map<String,Object> paramMap, SeedCriteria cri,
|
||||
@PathVariable(value="siteIdx") String siteIdx,
|
||||
@PathVariable(value="siteMenuIdx") Integer siteMenuIdx
|
||||
@ -369,6 +378,7 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
boolean memberAuth = managerSiteMenuManagerService.getSiteMenuManagerListCnt(siteMenuIdx, memberIdx);
|
||||
|
||||
//메뉴 권한설정
|
||||
/*
|
||||
if(!memberGrant.equals("S") && !memberAuthM && !memberAuth &&
|
||||
!managerSiteMenuAuthService.getSiteMenuAuthChk(siteMenuIdx, memberIdx)){
|
||||
|
||||
@ -382,6 +392,15 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
}
|
||||
*/
|
||||
|
||||
boolean b_ret = true;
|
||||
b_ret = FairnetUtils.hasUserAuth(memberIdx, memberGrant, memberAuth, session, map);
|
||||
|
||||
if (!b_ret) {
|
||||
return new ModelAndView("/_common/jsp/message");
|
||||
}
|
||||
|
||||
|
||||
Map<Object, Object> tSiteMenuDB = managerSiteMenuService.getSiteMenuMapForm(siteMenuIdx,
|
||||
new String[] {"siteMenuName", "siteMenuParentTitle", "siteMenuStatus", "siteMenuType", "siteMenuLinkUrl", "siteMenuCharge", "siteMenuCharge", "siteMenuSNS",
|
||||
@ -492,20 +511,23 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
|
||||
if(dupRs > 1){
|
||||
map.put("siteIdx", "case");
|
||||
map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/write.do");
|
||||
//map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/write.do");
|
||||
map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/newsList.do");
|
||||
map.put("message", "user.survey.message.no.overlap");
|
||||
map.put("opener", "");
|
||||
map.put("append", "");
|
||||
map.put("self", "");
|
||||
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
//return new ModelAndView("/_common/web/jsp/umessage");
|
||||
return new ModelAndView("/_extra/web/user/news/newsDetail");
|
||||
}
|
||||
|
||||
// 뉴스레터 추가
|
||||
int rs = newsService.newsInsert(paramMap);
|
||||
|
||||
map.put("siteIdx", "case");
|
||||
map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/write.do");
|
||||
//map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/write.do");
|
||||
map.put("url", "/web/user/news/case/01/"+siteMenuIdx+"/newsList.do");
|
||||
if(rs==1){
|
||||
map.put("message", "common.message.reg");
|
||||
}
|
||||
@ -516,6 +538,166 @@ private Logger log = Logger.getLogger(this.getClass());
|
||||
map.put("append", "");
|
||||
map.put("self", "");
|
||||
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
//return new ModelAndView("/_common/web/jsp/umessage");
|
||||
return new ModelAndView("/_extra/web/user/news/newsDetail");
|
||||
}
|
||||
|
||||
// /user/news/case/01/322/delReq.do
|
||||
@RequestMapping(value="/web/user/news/{siteIdx}/01/{siteMenuIdx}/delReq.do", method=RequestMethod.POST)
|
||||
public ModelAndView delReq(ModelMap map, HttpSession session, HttpServletRequest req, HttpServletResponse res, @RequestParam Map<String,Object> paramMap, SeedCriteria cri,
|
||||
@PathVariable(value="siteIdx") String siteIdx,
|
||||
@PathVariable(value="siteMenuIdx") Integer siteMenuIdx
|
||||
){
|
||||
|
||||
setSessionMessageRemove(session);
|
||||
|
||||
/*----권한체크----*/
|
||||
Integer memberIdx = Integer.valueOf(SeedUtils.setReplaceNull(session.getAttribute("memberIdx"),"0"));
|
||||
String memberGrant = (memberIdx == 0) ? "N" : SeedUtils.setReplaceNull(managerMemberService.getMemberMapForm(memberIdx, new String[] {"memberGrant"}).get("_memberGrant"), "N");
|
||||
boolean memberAuthM = managerSiteManagerService.getSiteManagerListCnt(siteIdx, memberIdx);
|
||||
boolean memberAuth = managerSiteMenuManagerService.getSiteMenuManagerListCnt(siteMenuIdx, memberIdx);
|
||||
|
||||
//메뉴 권한설정
|
||||
/*
|
||||
if(!memberGrant.equals("S") && !memberAuthM && !memberAuth &&
|
||||
!managerSiteMenuAuthService.getSiteMenuAuthChk(siteMenuIdx, memberIdx)){
|
||||
|
||||
map.put("message", "common.message.no.grant");
|
||||
|
||||
if(memberIdx.equals(0)){
|
||||
map.put("url", "/"+siteIdx+"/index.do");
|
||||
}else{
|
||||
map.put("self", "history");
|
||||
}
|
||||
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
}
|
||||
*/
|
||||
|
||||
Map<Object, Object> tSiteMenuDB = managerSiteMenuService.getSiteMenuMapForm(siteMenuIdx,
|
||||
new String[] {"siteMenuName", "siteMenuParentTitle", "siteMenuStatus", "siteMenuType", "siteMenuLinkUrl", "siteMenuCharge", "siteMenuCharge", "siteMenuSNS",
|
||||
"siteMenuTitle", "siteMenuRegDate", "siteMenuModDate", "siteMenuNameType", "siteMenuIdxs", "siteMenuDepth", "siteMenuSatisfaction", "siteMenuIdx1",
|
||||
"tSite.siteActiveMenuWidth", "tSite.siteService", "tSite.siteServiceSdate", "tSite.siteServiceSdate"});
|
||||
|
||||
/*
|
||||
if(!memberGrant.equals("S") && !memberAuthM && !memberAuth){
|
||||
if(!SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuStatus")).equals("U")){
|
||||
map.put("message", "common.message.no.siteMenu");
|
||||
map.put("self", "history");
|
||||
return new ModelAndView("/_common/jsp/umessage");
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if(SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteService")).equals("Y")){
|
||||
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
try{
|
||||
|
||||
Date getDate = new Date();
|
||||
|
||||
Date sDate = formatter.parse(SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteServiceSdate")));
|
||||
Date eDate = formatter.parse(SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteServiceEdate")));
|
||||
|
||||
if((sDate.compareTo(formatter.parse(formatter.format(getDate))) > 0 && eDate.compareTo(formatter.parse(formatter.format(getDate))) > 0) ||
|
||||
(sDate.compareTo(formatter.parse(formatter.format(getDate))) < 0 && eDate.compareTo(formatter.parse(formatter.format(getDate))) < 0)){
|
||||
return new ModelAndView("redirect:/user/common/service/"+siteIdx+".do");
|
||||
}
|
||||
|
||||
}catch(ParseException e){
|
||||
log.error("CHECK ERROR:",e);
|
||||
}
|
||||
}
|
||||
|
||||
if(SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuType")).equals("F") ||
|
||||
SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuType")).equals("L")){
|
||||
return new ModelAndView("redirect:"+SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuLinkUrl")));
|
||||
}
|
||||
|
||||
String siteMenuManager = "N";
|
||||
StringBuffer siteMenuManagerIdx = new StringBuffer();
|
||||
String siteMenuCharge = SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuCharge"), "N");
|
||||
|
||||
List<Map<Object, Object>> siteMenuManagerList =
|
||||
managerSiteMenuManagerService.getSiteMenuManagerMapList(siteMenuIdx, new String[] {"siteMenuManagerStatus", "tMember.memberIdx"});
|
||||
|
||||
for(int i=0; i<siteMenuManagerList.size(); i++){
|
||||
|
||||
Map<Object, Object> tSiteMenuManagerDB = siteMenuManagerList.get(i);
|
||||
|
||||
if(SeedUtils.setReplaceNull(tSiteMenuManagerDB.get("_siteMenuManagerStatus")).equals("U")){
|
||||
|
||||
if(!memberIdx.equals(0) &&
|
||||
memberIdx.equals(Integer.parseInt(SeedUtils.setReplaceNull(tSiteMenuManagerDB.get("_memberIdx"), "0"))) &&
|
||||
siteMenuManager.equals("N")){
|
||||
siteMenuManager = "Y";
|
||||
}
|
||||
siteMenuManagerIdx.append(SeedUtils.setReplaceNull(tSiteMenuManagerDB.get("_memberIdx")).toString());
|
||||
siteMenuManagerIdx.append(",");
|
||||
}
|
||||
}
|
||||
|
||||
if(memberGrant.equals("S") || memberAuthM){
|
||||
siteMenuManager = "Y";
|
||||
}
|
||||
|
||||
//편집 권한
|
||||
map.put("siteMenuManager", siteMenuManager);
|
||||
//담당자 보기 설정
|
||||
map.put("siteMenuCharge", siteMenuCharge);
|
||||
//담당자 이름
|
||||
map.put("siteMenuManagerIdx", siteMenuManagerIdx.toString());
|
||||
//만족도 설정
|
||||
map.put("siteMenuSatisfaction", SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuSatisfaction"), "N"));
|
||||
|
||||
map.put("siteMenuSubTitle", managerSiteMenuService.getSiteMenuSubTitleForm(siteIdx, SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuIdx1"))));
|
||||
|
||||
String siteMenuTitle = managerSiteMenuService.getSiteMenuParentName(siteIdx, SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuIdxs")), "edit").replaceAll("》", "|") +
|
||||
" | " + SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuName"));
|
||||
|
||||
map.put("siteMenuTitle", siteMenuTitle);
|
||||
|
||||
//부모메뉴 타이틀 설정한 경우 해당 글의 부모 타이틀을 가져옴
|
||||
if(SeedUtils.setReplaceNull(tSiteMenuDB.get("_siteMenuParentTitle") ,"N").equals("Y")){
|
||||
String[] siteMenuTitles = siteMenuTitle.split("\\|");
|
||||
tSiteMenuDB.put("_siteMenuName", siteMenuTitles[Integer.parseInt(tSiteMenuDB.get("_siteMenuDepth").toString())-1]);
|
||||
}
|
||||
|
||||
map.put("tSiteMenuDB", tSiteMenuDB);
|
||||
|
||||
map.put("memberAuthM", memberAuthM);
|
||||
map.put("seedMenuAuth", managerGroupService.getGroupList(siteIdx, memberIdx, memberMerge, memberMergeSiteIdx));
|
||||
/*----권한체크 종료----*/
|
||||
|
||||
//여기서부터 작업할거
|
||||
String ip = req.getHeader("X-FORWARDED-FOR");
|
||||
|
||||
if(ip == null)
|
||||
ip = req.getRemoteAddr();
|
||||
|
||||
paramMap.put("clientEmail", paramMap.get("clientEmail1")+"@"+paramMap.get("hidEmail2"));
|
||||
paramMap.put("clientIp", ip);
|
||||
|
||||
// 뉴스레터 제거
|
||||
int rs = newsService.newsDelete(paramMap);
|
||||
|
||||
map.put("siteIdx", "case");
|
||||
map.put("url", "/user/news/case/01/"+siteMenuIdx+"/write.do");
|
||||
if(rs>0){
|
||||
map.put("message", "common.message.del");
|
||||
}
|
||||
else if(rs == 0){
|
||||
map.put("message","common.message.no.history");
|
||||
}
|
||||
else{
|
||||
map.put("message", "common.message.error.del");
|
||||
}
|
||||
map.put("opener", "");
|
||||
map.put("append", "");
|
||||
map.put("self", "");
|
||||
|
||||
//return new ModelAndView("/_common/jsp/umessage");
|
||||
return new ModelAndView("/_extra/web/user/news/newsDetail");
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ Globals.Password= FAIRNETUR!@#$
|
||||
# oracle
|
||||
Globals.DriverClassName=oracle.jdbc.OracleDriver
|
||||
#Globals.Url=jdbc:oracle:thin:@192.168.0.30:1523:XE
|
||||
Globals.Url=jdbc:oracle:thin:@192.168.0.87:1523:XE
|
||||
Globals.Url=jdbc:oracle:thin:@192.168.0.60:1523:XE
|
||||
|
||||
# MainPage Setting(admin)
|
||||
Globals.MainPage = /cmm/main/mainPage.do
|
||||
|
||||
@ -1,183 +1,178 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="exam">
|
||||
<insert id="insert" parameterType="java.util.HashMap">
|
||||
<selectKey keyProperty="seq" resultType="int" order="BEFORE">
|
||||
select SEQ_EXAMBBS.NEXTVAL FROM DUAL
|
||||
</selectKey>
|
||||
INSERT INTO C_EXAMBBS(
|
||||
EXAM_NO,
|
||||
EXAM_ID,
|
||||
EXAM_SUBJ,
|
||||
EXAM_CONT,
|
||||
EXAM_CONT2,
|
||||
EXAM_CONT3,
|
||||
EXAM_CONT4,
|
||||
EXAM_CNT,
|
||||
EXAM_REGMEM_ID,
|
||||
EXAM_REGMEM_NM,
|
||||
EXAM_REGDATE,
|
||||
EXAM_MODMEM_ID,
|
||||
EXAM_MODDATE,
|
||||
DEL_YN,
|
||||
EXAM_TYPE,
|
||||
EXAM_RESULT1,
|
||||
EXAM_RESULT2
|
||||
) VALUES (
|
||||
${seq},
|
||||
#{boardIdx},
|
||||
#{examSubj},
|
||||
#{editorParam_examCont},
|
||||
#{editorParam_examCont2},
|
||||
#{editorParam_examCont3},
|
||||
#{editorParam_examCont4},
|
||||
0,
|
||||
#{memberId},
|
||||
#{memberName},
|
||||
SYSDATE,
|
||||
#{memberId},
|
||||
SYSDATE,
|
||||
'N',
|
||||
#{examType},
|
||||
#{medBig2},
|
||||
#{medSmall2}
|
||||
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="select" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
|
||||
SELECT * FROM
|
||||
(
|
||||
SELECT ROW_.*, ROWNUM AS RNUM FROM
|
||||
(
|
||||
SELECT
|
||||
EXAM_ID,
|
||||
EXAM_NO,
|
||||
EXAM_SUBJ,
|
||||
EXAM_CONT,
|
||||
EXAM_CNT,
|
||||
EXAM_REGMEM_NM,
|
||||
EXAM_REGDATE,
|
||||
NVL(EXAM_TYPE, '-') AS EXAM_TYPE,
|
||||
NVL(EXAM_RESULT1, '-') AS EXAM_RESULT1,
|
||||
NVL(EXAM_RESULT2, '-') AS EXAM_RESULT2
|
||||
FROM C_EXAMBBS
|
||||
WHERE DEL_YN = 'N'
|
||||
|
||||
<!-- 20190902 테스트 추가..... -->
|
||||
<if test="boardIdx != null">
|
||||
AND EXAM_ID = #{boardIdx}
|
||||
</if>
|
||||
<if test="searchMenu != 'ALL' and searchMenu != null">
|
||||
AND EXAM_TYPE LIKE '%' || #{titleName} || '%'
|
||||
</if>
|
||||
|
||||
<if test="searchTilte != null and searchTilte != ''">
|
||||
<choose>
|
||||
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
|
||||
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
|
||||
</choose>
|
||||
</if>
|
||||
ORDER BY EXAM_REGDATE DESC
|
||||
) ROW_
|
||||
)
|
||||
WHERE RNUM > #{pageStart} AND #{perPageNum} >= ROWNUM
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectCnt" parameterType="java.util.HashMap" resultType="int">
|
||||
SELECT COUNT(*)
|
||||
FROM C_EXAMBBS
|
||||
WHERE 1=1
|
||||
AND DEL_YN = 'N'
|
||||
<!-- 20190902 테스트 추가..... -->
|
||||
<if test="boardIdx != null">
|
||||
AND EXAM_ID = #{boardIdx}
|
||||
</if>
|
||||
|
||||
<if test="searchMenu != 'ALL'">
|
||||
<choose>
|
||||
<when test="searchMenu == 'search2'">AND EXAM_ID = '402'</when>
|
||||
<when test="searchMenu == 'search3'">AND EXAM_ID = '403'</when>
|
||||
<when test="searchMenu == 'search4'">AND EXAM_ID = '404'</when>
|
||||
<when test="searchMenu == 'search5'">AND EXAM_ID = '405'</when>
|
||||
<when test="searchMenu == 'search6'">AND EXAM_ID = '406'</when>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="searchTilte != null and searchTilte != ''">
|
||||
<choose>
|
||||
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
|
||||
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
|
||||
</choose>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectOne" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT EXAM_SUBJ,
|
||||
EXAM_REGMEM_NM,
|
||||
NVL(EXAM_CONT, '') AS EXAM_CONT,
|
||||
NVL(EXAM_CONT2, '') AS EXAM_CONT2,
|
||||
NVL(EXAM_CONT3, '') AS EXAM_CONT3,
|
||||
NVL(EXAM_CONT4, '') AS EXAM_CONT4,
|
||||
NVL(EXAM_TYPE, '사건 유형 미정') AS EXAM_TYPE,
|
||||
NVL(EXAM_RESULT1, '대분류 미정') AS EXAM_RESULT1,
|
||||
NVL(EXAM_RESULT2, '소분류 미정') AS EXAM_RESULT2,
|
||||
EXAM_REGDATE,
|
||||
EXAM_ID,
|
||||
EXAM_CNT
|
||||
FROM C_EXAMBBS
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</select>
|
||||
|
||||
<update id="update">
|
||||
UPDATE C_EXAMBBS
|
||||
SET EXAM_SUBJ = #{examSubj},
|
||||
EXAM_CONT = #{editorParam_examCont},
|
||||
EXAM_CONT2 = #{editorParam_examCont2},
|
||||
EXAM_CONT3 = #{editorParam_examCont3},
|
||||
EXAM_CONT4 = #{editorParam_examCont4},
|
||||
EXAM_MODMEM_ID = #{memberId},
|
||||
EXAM_MODDATE = SYSDATE,
|
||||
EXAM_TYPE = #{examType},
|
||||
EXAM_RESULT1 = #{medBig2},
|
||||
EXAM_RESULT2 = #{medSmall2}
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</update>
|
||||
|
||||
<delete id="delete">
|
||||
UPDATE C_EXAMBBS
|
||||
SET DEL_YN = 'Y'
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</delete>
|
||||
|
||||
<select id="selectNo" parameterType="java.util.HashMap" resultType="int">
|
||||
SELECT NVL(MAX(EXAM_NO), 0)
|
||||
FROM C_EXAMBBS
|
||||
</select>
|
||||
|
||||
<delete id="cntUpdate">
|
||||
UPDATE C_EXAMBBS
|
||||
SET EXAM_CNT = EXAM_CNT+1
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</delete>
|
||||
|
||||
<!-- 201909 추가 -->
|
||||
<select id="ExamBBsInfo" parameterType="egovMap" resultType="egovMap">
|
||||
SELECT
|
||||
CODE_NAME AS value,
|
||||
CODE_IDXS AS code
|
||||
FROM C_CODE
|
||||
WHERE CODE_PARENT_IDX =
|
||||
CASE
|
||||
WHEN #{boardIdxx} = '402' THEN '1101000000'
|
||||
WHEN #{boardIdxx} = '403' THEN '1102000000'
|
||||
WHEN #{boardIdxx} = '404' THEN '1103000000'
|
||||
WHEN #{boardIdxx} = '405' THEN '1104000000'
|
||||
WHEN #{boardIdxx} = '406' THEN '1105000000'
|
||||
WHEN #{boardIdxx} = '407' THEN '1106000000'
|
||||
END
|
||||
AND CODE_STATUS = 'U'
|
||||
</select>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="exam">
|
||||
<insert id="insert" parameterType="java.util.HashMap">
|
||||
<selectKey keyProperty="seq" resultType="int" order="BEFORE">
|
||||
select SEQ_EXAMBBS.NEXTVAL FROM DUAL
|
||||
</selectKey>
|
||||
INSERT INTO C_EXAMBBS(
|
||||
EXAM_NO,
|
||||
EXAM_ID,
|
||||
EXAM_SUBJ,
|
||||
EXAM_CONT,
|
||||
EXAM_CONT2,
|
||||
EXAM_CONT3,
|
||||
EXAM_CONT4,
|
||||
EXAM_CNT,
|
||||
EXAM_REGMEM_ID,
|
||||
EXAM_REGMEM_NM,
|
||||
EXAM_REGDATE,
|
||||
EXAM_MODMEM_ID,
|
||||
EXAM_MODDATE,
|
||||
DEL_YN,
|
||||
EXAM_TYPE,
|
||||
EXAM_RESULT1,
|
||||
EXAM_RESULT2
|
||||
) VALUES (
|
||||
${seq},
|
||||
#{boardIdx},
|
||||
#{examSubj},
|
||||
#{editorParam_examCont},
|
||||
#{editorParam_examCont2},
|
||||
#{editorParam_examCont3},
|
||||
#{editorParam_examCont4},
|
||||
0,
|
||||
#{memberId},
|
||||
#{memberName},
|
||||
SYSDATE,
|
||||
#{memberId},
|
||||
SYSDATE,
|
||||
'N',
|
||||
#{examType},
|
||||
#{medBig2},
|
||||
#{medSmall2}
|
||||
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="select" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
|
||||
SELECT * FROM
|
||||
(
|
||||
SELECT ROW_.*, ROWNUM AS RNUM FROM
|
||||
(
|
||||
SELECT
|
||||
EXAM_ID,
|
||||
EXAM_NO,
|
||||
EXAM_SUBJ,
|
||||
EXAM_CONT,
|
||||
EXAM_CNT,
|
||||
EXAM_REGMEM_NM,
|
||||
EXAM_REGDATE,
|
||||
NVL(EXAM_TYPE, '-') AS EXAM_TYPE,
|
||||
NVL(EXAM_RESULT1, '-') AS EXAM_RESULT1,
|
||||
NVL(EXAM_RESULT2, '-') AS EXAM_RESULT2
|
||||
FROM C_EXAMBBS
|
||||
WHERE DEL_YN = 'N'
|
||||
|
||||
<!-- 20190902 테스트 추가..... -->
|
||||
<if test="boardIdx != null">
|
||||
AND EXAM_ID = #{boardIdx}
|
||||
</if>
|
||||
<if test="searchMenu != 'ALL' and searchMenu != null">
|
||||
AND EXAM_TYPE LIKE '%' || #{titleName} || '%'
|
||||
</if>
|
||||
|
||||
<if test="searchTilte != null and searchTilte != ''">
|
||||
<choose>
|
||||
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
|
||||
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
|
||||
</choose>
|
||||
</if>
|
||||
ORDER BY EXAM_REGDATE DESC
|
||||
) ROW_
|
||||
)
|
||||
WHERE RNUM > #{pageStart} AND #{perPageNum} >= ROWNUM
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectCnt" parameterType="java.util.HashMap" resultType="int">
|
||||
SELECT COUNT(*)
|
||||
FROM C_EXAMBBS
|
||||
WHERE 1=1
|
||||
AND DEL_YN = 'N'
|
||||
<!-- 20190902 테스트 추가..... -->
|
||||
<if test="boardIdx != null">
|
||||
AND EXAM_ID = #{boardIdx}
|
||||
</if>
|
||||
|
||||
<if test="searchMenu != 'ALL' and searchMenu != null">
|
||||
AND EXAM_TYPE LIKE '%' || #{titleName} || '%'
|
||||
</if>
|
||||
|
||||
<if test="searchTilte != null and searchTilte != ''">
|
||||
<choose>
|
||||
<when test="searchType == 'title'">AND EXAM_SUBJ LIKE '%' || #{searchTilte} || '%'</when>
|
||||
<when test="searchType == 'content'">AND EXAM_CONT LIKE '%' || #{searchTilte} || '%'</when>
|
||||
</choose>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectOne" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT EXAM_SUBJ,
|
||||
EXAM_REGMEM_NM,
|
||||
NVL(EXAM_CONT, '') AS EXAM_CONT,
|
||||
NVL(EXAM_CONT2, '') AS EXAM_CONT2,
|
||||
NVL(EXAM_CONT3, '') AS EXAM_CONT3,
|
||||
NVL(EXAM_CONT4, '') AS EXAM_CONT4,
|
||||
NVL(EXAM_TYPE, '사건 유형 미정') AS EXAM_TYPE,
|
||||
NVL(EXAM_RESULT1, '대분류 미정') AS EXAM_RESULT1,
|
||||
NVL(EXAM_RESULT2, '소분류 미정') AS EXAM_RESULT2,
|
||||
EXAM_REGDATE,
|
||||
EXAM_ID,
|
||||
EXAM_CNT
|
||||
FROM C_EXAMBBS
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</select>
|
||||
|
||||
<update id="update">
|
||||
UPDATE C_EXAMBBS
|
||||
SET EXAM_SUBJ = #{examSubj},
|
||||
EXAM_CONT = #{editorParam_examCont},
|
||||
EXAM_CONT2 = #{editorParam_examCont2},
|
||||
EXAM_CONT3 = #{editorParam_examCont3},
|
||||
EXAM_CONT4 = #{editorParam_examCont4},
|
||||
EXAM_MODMEM_ID = #{memberId},
|
||||
EXAM_MODDATE = SYSDATE,
|
||||
EXAM_TYPE = #{examType},
|
||||
EXAM_RESULT1 = #{medBig2},
|
||||
EXAM_RESULT2 = #{medSmall2}
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</update>
|
||||
|
||||
<delete id="delete">
|
||||
UPDATE C_EXAMBBS
|
||||
SET DEL_YN = 'Y'
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</delete>
|
||||
|
||||
<select id="selectNo" parameterType="java.util.HashMap" resultType="int">
|
||||
SELECT NVL(MAX(EXAM_NO), 0)
|
||||
FROM C_EXAMBBS
|
||||
</select>
|
||||
|
||||
<delete id="cntUpdate">
|
||||
UPDATE C_EXAMBBS
|
||||
SET EXAM_CNT = EXAM_CNT+1
|
||||
WHERE EXAM_NO = #{examNo}
|
||||
</delete>
|
||||
|
||||
<!-- 201909 추가 -->
|
||||
<select id="ExamBBsInfo" parameterType="egovMap" resultType="egovMap">
|
||||
SELECT
|
||||
CODE_NAME AS value,
|
||||
CODE_IDXS AS code
|
||||
FROM C_CODE
|
||||
WHERE CODE_PARENT_IDX =
|
||||
CASE
|
||||
WHEN #{boardIdxx} = '402' THEN '1101000000'
|
||||
WHEN #{boardIdxx} = '403' THEN '1102000000'
|
||||
WHEN #{boardIdxx} = '404' THEN '1103000000'
|
||||
WHEN #{boardIdxx} = '405' THEN '1104000000'
|
||||
WHEN #{boardIdxx} = '406' THEN '1105000000'
|
||||
WHEN #{boardIdxx} = '407' THEN '1106000000'
|
||||
END
|
||||
AND CODE_STATUS = 'U'
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="news">
|
||||
<insert id="insert" parameterType="java.util.HashMap" useGeneratedKeys="false">
|
||||
<selectKey keyProperty="seq" resultType="int" order="BEFORE">
|
||||
select SEQ_NEWSLETTER.NEXTVAL FROM DUAL
|
||||
</selectKey>
|
||||
INSERT INTO C_NEWSLETTER(
|
||||
SEQ_NO
|
||||
,CLIENT_NAME
|
||||
,CLIENT_EMAIL
|
||||
,CLIENT_IP
|
||||
,CLIENT_CHECK
|
||||
,AGREE_CHECK
|
||||
,CLIENT_DATE
|
||||
) VALUES (
|
||||
${seq}
|
||||
,#{clientName}
|
||||
,#{clientEmail}
|
||||
,#{clientIp}
|
||||
,'Y'
|
||||
,#{agreeCheck}
|
||||
,SYSDATE
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="selectDuplication" parameterType="java.util.HashMap" resultType="int">
|
||||
SELECT COUNT(*)
|
||||
FROM C_NEWSLETTER
|
||||
WHERE CLIENT_NAME = #{clientName}
|
||||
AND CLIENT_EMAIL= #{clientEmail}
|
||||
AND CLIENT_CHECK = 'Y'
|
||||
</select>
|
||||
|
||||
<update id="update">
|
||||
UPDATE C_NEWSLETTER
|
||||
SET CLIENT_CHECK = 'N'
|
||||
WHERE CLIENT_NAME = #{clientName}
|
||||
AND CLIENT_EMAIL = #{clientEmail}
|
||||
AND CLIENT_CHECK = 'Y'
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@ -9,7 +9,7 @@
|
||||
username="FAIRNETUR"
|
||||
password="FAIRNETUR!@#$"
|
||||
type="javax.sql.DataSource"
|
||||
url="jdbc:oracle:thin:@192.168.0.87:1523/XE"
|
||||
url="jdbc:oracle:thin:@192.168.0.60:1523/XE"
|
||||
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
|
||||
/>
|
||||
<Resource
|
||||
@ -19,7 +19,7 @@
|
||||
username="FAIRNETUR"
|
||||
password="FAIRNETUR!@#$"
|
||||
type="javax.sql.DataSource"
|
||||
url="jdbc:oracle:thin:@192.168.0.87:1523/XE"
|
||||
url="jdbc:oracle:thin:@192.168.0.60:1523/XE"
|
||||
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
|
||||
/>
|
||||
<Resource
|
||||
@ -29,7 +29,7 @@
|
||||
username="FAIRNETUR"
|
||||
password="FAIRNETUR!@#$"
|
||||
type="javax.sql.DataSource"
|
||||
url="jdbc:oracle:thin:@192.168.0.87:1523/XE"
|
||||
url="jdbc:oracle:thin:@192.168.0.60:1523/XE"
|
||||
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
|
||||
/>
|
||||
</Context>
|
||||
|
||||
191
src/main/webapp/WEB-INF/jsp/_common/web/jsp/umessage.jsp
Normal file
191
src/main/webapp/WEB-INF/jsp/_common/web/jsp/umessage.jsp
Normal file
@ -0,0 +1,191 @@
|
||||
<%@ page contentType="text/html;charset=utf-8" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title><s:message code="common.message.title" text="Error Title" /></title>
|
||||
<c:if test='${!empty siteIdx}'>
|
||||
<link href="/site/<c:out escapeXml='true' value='${siteIdx}' />/jsp/alert/css/alert.css" rel="stylesheet" type="text/css"/>
|
||||
</c:if>
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
||||
|
||||
<!--link rel="apple-touch-icon-precomposed" sizes="57x57" href=""-->
|
||||
<!--meta name="msapplication-.." content="#FFFFFF"-->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/site/case/css/default.css"> -->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/site/case/css/common.css"> -->
|
||||
<script src="/js/lib/jquery-1.9.1.min.js"></script>
|
||||
<script type="text/javascript" src="/site/case/js/jquery.easing.min.js"></script>
|
||||
|
||||
<!-- <link href="/site/case/jsp/navigation/css/navigation.css" rel="stylesheet" type="text/css"/> -->
|
||||
|
||||
</head>
|
||||
|
||||
<body style="visibility:visible">
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${!empty siteIdx}'>
|
||||
<c:import url="/user/${siteIdx}/alert/message/jsp/Page.do"></c:import>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<div id="wrapper">
|
||||
<div class="login-page">
|
||||
<div class="login-area">
|
||||
<div class="login-wrap">
|
||||
<div class="alert-area clear">
|
||||
<h1></h1>
|
||||
<p class="alert-content"><span id="message"></span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
Copyright (c) 2016 <strong>Global IT</strong>. All Rights Reserved.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<script>
|
||||
/* <![CDATA[ */
|
||||
$(".wrapper").hide();
|
||||
|
||||
try{
|
||||
if(opener != "undefined" && opener && !opener.closed) {
|
||||
if(opener.location.href.indexOf("Form") < 0 && opener.location.href.indexOf("Edit") < 0 && opener.location.href.indexOf("Reply") < 0){
|
||||
opener.location.replace(opener.location.href);
|
||||
}
|
||||
}
|
||||
}catch(e){
|
||||
|
||||
}finally{
|
||||
|
||||
var href = "";
|
||||
|
||||
//팝업창에서 부모창에 값을 넣어줘야하는경우 https일때는 같이 https페이지로 이동
|
||||
// <c:if test='${fn:indexOf(url, "memberChk.do") <= -1}'>
|
||||
// if(location.href.indexOf("https") > -1){
|
||||
// href = location.href.replace("https://", "");
|
||||
// href = "http://"+href.substring(0, href.indexOf("/"));
|
||||
// }
|
||||
// </c:if>
|
||||
|
||||
if("<s:eval expression="@config['message.check']" />" == "nomessage"){
|
||||
|
||||
$("body").hide();
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
|
||||
}else{
|
||||
|
||||
if("<s:eval expression="@config['message.check']" />" == "script"){
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${fn:indexOf(message, "(nomessage)") > -1}'></c:when>
|
||||
<c:when test='${fn:indexOf(message, "(message)") > -1}'>
|
||||
alert("<c:out escapeXml='true' value='${fn:replace(message, "(message)", "")}' />");
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
alert("<s:message code="${message}" text="Error Message" />");
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:out escapeXml='false' value='${append}' />
|
||||
|
||||
if("<c:out escapeXml='true' value='${opener}' />" == "location"){
|
||||
opener.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "reload"){
|
||||
opener.location.reload();
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "parent"){
|
||||
parent.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='false' value='${url}' />" != "" && "<c:out escapeXml='false' value='${url}' />" != "null" && "<c:out escapeXml='false' value='${url}' />" != null){
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}
|
||||
|
||||
if("<c:out escapeXml='true' value='${self}' />" == "close"){
|
||||
self.close();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history"){
|
||||
history.back();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history.go(-1)"){
|
||||
history.go(-1);
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
$(".wrapper").show();
|
||||
|
||||
<c:choose>
|
||||
<c:when test='${fn:indexOf(message, "(nomessage)") > -1}'></c:when>
|
||||
<c:when test='${fn:indexOf(message, "(message)") > -1}'>
|
||||
$("#message").append("<c:out escapeXml='true' value='${fn:replace(message, "(message)", "")}' />");
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
$("#message").append("<s:message code="${message}" text="Error Message" />");
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:out escapeXml='false' value='${append}' />
|
||||
|
||||
if("<s:eval expression="@config['message.confirm']" />" == "false"){
|
||||
var timer = setInterval(function (){
|
||||
|
||||
if("<c:out escapeXml='true' value='${opener}' />" == "location"){
|
||||
opener.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "reload"){
|
||||
opener.location.reload();
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "parent"){
|
||||
parent.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='false' value='${url}' />" != "" && "<c:out escapeXml='false' value='${url}' />" != "null" && "<c:out escapeXml='false' value='${url}' />" != null){
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}
|
||||
|
||||
if("<c:out escapeXml='true' value='${self}' />" == "close"){
|
||||
self.close();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history"){
|
||||
history.back();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history.go(-1)"){
|
||||
history.go(-1);
|
||||
}
|
||||
|
||||
clearInterval(timer);
|
||||
}, <s:eval expression="@config['message.time']" />);
|
||||
}else{
|
||||
$(".message_btn_area").append("<input type=\"image\" name=\"confirm\" id=\"confirm\" src=\"/img/common/message_ok.png\" alt=\"<s:message code="common.button.confirm" text="Error Button" />\"");
|
||||
$("#confirm").click(function(){
|
||||
|
||||
if("<c:out escapeXml='true' value='${opener}' />" == "location"){
|
||||
opener.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "reload"){
|
||||
opener.location.reload();
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='true' value='${opener}' />" == "parent"){
|
||||
parent.location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}else if("<c:out escapeXml='false' value='${url}' />" != "" && "<c:out escapeXml='false' value='${url}' />" != "null" && "<c:out escapeXml='false' value='${url}' />" != null){
|
||||
location.replace(href+"<c:out escapeXml='false' value='${url}' />");
|
||||
}
|
||||
|
||||
if("<c:out escapeXml='true' value='${self}' />" == "close"){
|
||||
self.close();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history"){
|
||||
history.back();
|
||||
}else if("<c:out escapeXml='true' value='${self}' />" == "history.go(-1)"){
|
||||
history.go(-1);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* ]]> */
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -34,8 +34,11 @@
|
||||
<input type="hidden" name="examNo" id="examNo" value="${param.examNo}">
|
||||
<input type="hidden" name="searchType" value="${param.searchType }">
|
||||
<input type="hidden" name="searchTilte" value="${param.searchTilte }">
|
||||
<input type="hidden" name="searchMenu" value="${param.searchMenu}">
|
||||
<input type="hidden" name="page" id="page" value="${param.page }">
|
||||
<input type="hidden" name="fileFuncType" id="fileFuncType" value="exam">
|
||||
<input type="hidden" name="titleName" value="${param.titleName}">
|
||||
|
||||
</form>
|
||||
<div class="sub_content">
|
||||
<!-- page_location -->
|
||||
|
||||
@ -5,11 +5,73 @@
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
|
||||
<!-- js -->
|
||||
<script src="/js/lib/jquery-1.9.1.min.js"></script>
|
||||
<script src="/js/lib/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script src="/js/lib/jquery-ui.min.js"></script>
|
||||
<script src="/js/lib/jquery.blockUI.js"></script>
|
||||
<script src="/js/date.format.js"></script>
|
||||
<script src="/js/jquery.slides.min.js"></script>
|
||||
<script src="/js/owl.carousel.min.js"></script>
|
||||
<script src="/js/jquery.mousewheel.min.js"></script>
|
||||
<script src="/js/statistics.js"></script>
|
||||
<script src="/js/captcha.js"></script>
|
||||
<script src="/js/canvas.js"></script>
|
||||
<script src="/js/jquery.PrintArea.js_4.js"></script>
|
||||
<script src="/js/jquery.printElement.js"></script>
|
||||
|
||||
<script src="/js/lib/jquery.bxslider.min.js"></script>
|
||||
<script src="/js/lib/picker.js"></script>
|
||||
<script src="/js/lib/picker.date.js"></script>
|
||||
<script src="/js/lib/legacy.js"></script>
|
||||
<script src="/js/lib/slick.min.js"></script>
|
||||
<script src="/js/seed.user.app.js"></script>
|
||||
|
||||
<script src="/js/common_XHR.js"></script>
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$( document ).ready(function(){
|
||||
$(document).ready(function(){
|
||||
loadexamGubun(); //메뉴 생성용
|
||||
console.log($("#searchMenu").val());
|
||||
});
|
||||
|
||||
function loadexamGubun(){
|
||||
var url = "";
|
||||
$("#type").val("L");
|
||||
|
||||
$("#boardIdxx").val("${boardIdx}");
|
||||
var param = jQuery('#frm').serialize();
|
||||
url = "/user/case/Exam/ajax/BBsInfo.do";
|
||||
|
||||
XHR2(url, param, function(r){
|
||||
var html1 = "";
|
||||
var html2 = "";
|
||||
if(r.data.length != 0){
|
||||
$("#searchMenu").empty();
|
||||
|
||||
$.each(r.data, function(k,v){
|
||||
var selsel = "${selCode}";
|
||||
if(!selsel == "" || !selsel == null){
|
||||
if(v.code == selsel ){
|
||||
html2 += '<option name=search value='+v.code+' selected>'+v.value+'</option>';
|
||||
|
||||
}else{
|
||||
html1 = '<option value="ALL" >전체 유형</option>';
|
||||
html2 += '<option name=search value='+v.code+'>'+v.value+'</option>';
|
||||
}
|
||||
}else{
|
||||
html1 = '<option value="ALL" >전체 유형</option>';
|
||||
html2 += '<option name=search value='+v.code+'>'+v.value+'</option>';
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
$("#searchMenu").append(html1);
|
||||
$("#searchMenu").append(html2);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
@ -28,6 +90,7 @@
|
||||
function goPage(type, param){
|
||||
if(type == 'view'){
|
||||
$("#examNo").val(param);
|
||||
$("#titleName").val($("#searchMenu option:selected").text());
|
||||
$("#searchFrm").attr("action","/web/user/exam/case/${boardIdx}/${siteMenuIdx}/examDetail.do");
|
||||
$("#searchFrm").attr("action","/web/user/exam/case/${boardIdx}/${siteMenuIdx}/exam${boardIdx}Detail.do");
|
||||
$("#searchFrm").submit();
|
||||
@ -68,6 +131,9 @@
|
||||
<h3 class="sub_con_tit">${menuName }</h3>
|
||||
<p class="sub_con_sub_tit">${menuName } 관련 분쟁조정사례들 입니다.</p>
|
||||
|
||||
<form name="frm" id="frm" action="" method="post">
|
||||
<input type="hidden" name="boardIdxx" id="boardIdxx" value="">
|
||||
</form>
|
||||
<!-- search -->
|
||||
<form name="searchFrm" id="searchFrm" action="" method="get">
|
||||
<input type="hidden" name="examNo" id="examNo" value="">
|
||||
@ -77,15 +143,19 @@
|
||||
|
||||
<div class="search_wrap">
|
||||
|
||||
<select name="searchMenu" id="searchMenu" title="검색유형 선택" class="select">
|
||||
<option value="ALL" <c:if test="${param.searchMenu == 'ALL'}">selected="selected"</c:if>>전체유형</option>
|
||||
<option value="search2" <c:if test="${param.searchMenu == 'search2'}">selected="selected"</c:if>>공정거래분쟁조정협의회</option>
|
||||
<option value="search3" <c:if test="${param.searchMenu == 'search3'}">selected="selected"</c:if>>가맹사업거래분쟁조정협의회</option>
|
||||
<option value="search4" <c:if test="${param.searchMenu == 'search4'}">selected="selected"</c:if>>하도급거래분쟁조정협의회</option>
|
||||
<option value="search5" <c:if test="${param.searchMenu == 'search5'}">selected="selected"</c:if>>대규모유통업거래협의회</option>
|
||||
<option value="search6" <c:if test="${param.searchMenu == 'search6'}">selected="selected"</c:if>>약관분쟁조정협의회</option>
|
||||
<option value="search7" <c:if test="${param.searchMenu == 'search7'}">selected="selected"</c:if>>대리점분쟁조정협의회</option>
|
||||
<select name="searchMenu" id="searchMenu" class="select">
|
||||
</select>
|
||||
|
||||
|
||||
<!-- <select name="searchMenu" id="searchMenu" title="검색유형 선택" class="select"> -->
|
||||
<%-- <option value="ALL" <c:if test="${param.searchMenu == 'ALL'}">selected="selected"</c:if>>전체유형</option> --%>
|
||||
<%-- <option value="search2" <c:if test="${param.searchMenu == 'search2'}">selected="selected"</c:if>>공정거래분쟁조정협의회</option> --%>
|
||||
<%-- <option value="search3" <c:if test="${param.searchMenu == 'search3'}">selected="selected"</c:if>>가맹사업거래분쟁조정협의회</option> --%>
|
||||
<%-- <option value="search4" <c:if test="${param.searchMenu == 'search4'}">selected="selected"</c:if>>하도급거래분쟁조정협의회</option> --%>
|
||||
<%-- <option value="search5" <c:if test="${param.searchMenu == 'search5'}">selected="selected"</c:if>>대규모유통업거래협의회</option> --%>
|
||||
<%-- <option value="search6" <c:if test="${param.searchMenu == 'search6'}">selected="selected"</c:if>>약관분쟁조정협의회</option> --%>
|
||||
<%-- <option value="search7" <c:if test="${param.searchMenu == 'search7'}">selected="selected"</c:if>>대리점분쟁조정협의회</option> --%>
|
||||
<!-- </select> -->
|
||||
|
||||
<select name="searchType" id="searchType" title="검색조건 선택" class="select">
|
||||
<option value="title" <c:if test="${param.searchType == 'title'}">selected="selected"</c:if>>제목</option>
|
||||
|
||||
222
src/main/webapp/WEB-INF/jsp/_extra/web/user/news/newsDetail.jsp
Normal file
222
src/main/webapp/WEB-INF/jsp/_extra/web/user/news/newsDetail.jsp
Normal file
@ -0,0 +1,222 @@
|
||||
<%@ page contentType="text/html;charset=utf-8" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
|
||||
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ page import="seed.utils.SeedUtils"%>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>한국공정거래조정원 온라인분쟁조정시스템 > 뉴스레터 > 뉴스레터 서비스</title>
|
||||
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="/kofair_case_seed/css/reset.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/css/font.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/common.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/layout.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/popup.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/style.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/info.css">
|
||||
|
||||
<!-- js -->
|
||||
<script src="/kofair_case_seed/script/lib/jquery-3.5.0.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/common.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/layout.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/popup.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/ui.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/info.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<script type="text/javascript">
|
||||
function email_change(){
|
||||
if(document.regForm.clientEmail2.options[document.regForm.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm.hidEmail2.style.display="inline-block";
|
||||
document.regForm.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm.hidEmail2.value = document.regForm.clientEmail2.options[document.regForm.clientEmail2.selectedIndex].value;
|
||||
document.regForm.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function email_change2(){
|
||||
if(document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm2.hidEmail2.style.display="inline-block";
|
||||
document.regForm2.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm2.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm2.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm2.hidEmail2.value = document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value;
|
||||
document.regForm2.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function layerOpen(){
|
||||
|
||||
if(!$("#_clientName").val()){
|
||||
alert("신청인 성명을 입력해주세요.");
|
||||
$("#_clientName").focus();
|
||||
return false;
|
||||
}
|
||||
if(!$("#_clientEmail1").val()){
|
||||
alert("신청인 이메일을 입력해주세요.");
|
||||
$("#_clientEmail1").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_hidEmail2").val()){
|
||||
alert("신청인 이메일주소를 입력해주세요.");
|
||||
$("#_hidEmail2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 검증에 사용할 정규식 변수 regExp에 저장
|
||||
var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
|
||||
if(!regExp.test($("#_hidEmail2").val())){
|
||||
alert("입력된 주소를 확인해주세요.");
|
||||
$("#_hidEmail2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_agreeCheck").is(":checked")){
|
||||
alert("위 약관에 동의 해주세요.");
|
||||
$("#_agreeCheck").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#_layerPop").show();
|
||||
|
||||
//$("#_regForm").submit();
|
||||
}
|
||||
|
||||
function email_change2(){
|
||||
if(document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm2.hidEmail2.style.display="inline-block";
|
||||
document.regForm2.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm2.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm2.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm2.hidEmail2.value = document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value;
|
||||
document.regForm2.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function layerOpen2(){
|
||||
|
||||
if(!$("#_clientName2").val()){
|
||||
alert("신청인 성명을 입력해주세요.");
|
||||
$("#_clientName2").focus();
|
||||
return false;
|
||||
}
|
||||
if(!$("#_clientEmail12").val()){
|
||||
alert("신청인 이메일을 입력해주세요.");
|
||||
$("#_clientEmail12").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_hidEmail22").val()){
|
||||
alert("신청인 이메일주소를 입력해주세요.");
|
||||
$("#_hidEmail22").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 검증에 사용할 정규식 변수 regExp에 저장
|
||||
var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
|
||||
if(!regExp.test($("#_hidEmail22").val())){
|
||||
alert("입력된 주소를 확인해주세요.");
|
||||
$("#_hidEmail22").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$("#_layerPop2").show();
|
||||
}
|
||||
|
||||
function layerClose(){
|
||||
$("#_layerPop").hide();
|
||||
}
|
||||
|
||||
function layerClose2(){
|
||||
$("#_layerPop2").hide();
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$('input[type="text"]').keydown(function() {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function moveFunc(type){
|
||||
location.href="/web/user/news/${siteIdx}/01/${siteMenuIdx}/newsList.do";
|
||||
/*
|
||||
if(type == "list"){
|
||||
$("#moveFrm").attr("action", "/web/user/news/${siteIdx}/01/${siteMenuIdx}/newsDetail.do");
|
||||
$("#moveFrm").submit();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<!-- 팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
<div class="tooltip-wrap" id="_layerPop" name="_layerPop">
|
||||
<div class="popup_wrap alert_popup apl_popup" tabindex="0" data-tooltip-con="apl_popup" data-focus="apl_popup" data-focus-prev="apl_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터를 신청하시겠습니까?</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="apl_popup_close">취소</button>
|
||||
<button type="button" class="btn btn_text btn_40 darkblue_fill" data-tooltip="apl_after_popup" data-focus="apl_after_popup" data-focus-next="apl_popup">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
|
||||
<!-- //lnb -->
|
||||
<div class="sub_content">
|
||||
|
||||
<!-- page_location -->
|
||||
<ul class="page_location">
|
||||
<li><i class="icon home"></i></li>
|
||||
<li>분쟁조정 안내</li>
|
||||
<li>뉴스레터</li>
|
||||
<li>뉴스레터 서비스</li>
|
||||
</ul>
|
||||
<!-- //page_location -->
|
||||
|
||||
<h3 class="sub_con_tit">뉴스레터 서비스</h3>
|
||||
<p class="sub_con_sub_tit">한국공정거래조정원에서 매월 정기 발행하는 뉴스레터서비스입니다.</p>
|
||||
|
||||
<div class="free_counsel_content">
|
||||
|
||||
<div class="box gray_fill box_complete">
|
||||
<i class="icon process complete"></i>
|
||||
<b class="gMarket_bold"><span id="message"><s:message code="${message}" text="Error Message" /></b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_45 darkblue_border" onclick="moveFunc();">이전으로</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@ -84,18 +84,33 @@
|
||||
alert("입력된 주소를 확인해주세요.");
|
||||
$("#_hidEmail2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
if(!$("#_agreeCheck").is(":checked")){
|
||||
alert("위 약관에 동의 해주세요.");
|
||||
$("#_agreeCheck").focus();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
//$("#_aply").prop("data-tooltip","apl_popup");
|
||||
//$("#_aply").prop("onclick","");
|
||||
//$("#_aply").click();
|
||||
|
||||
$("#_layerPop").show();
|
||||
//data-tooltip="apl_popup"
|
||||
|
||||
|
||||
$(".apl_popup").show();
|
||||
//$("#_regForm").submit();
|
||||
|
||||
//data-tooltip="apl_popup"
|
||||
}
|
||||
|
||||
function layerOpenSave(){
|
||||
$("#_regForm").submit();
|
||||
}
|
||||
|
||||
function layerOpenClose(){
|
||||
$(".apl_popup").hide();
|
||||
}
|
||||
|
||||
function email_change2(){
|
||||
@ -141,7 +156,18 @@
|
||||
}
|
||||
|
||||
|
||||
$("#_layerPop2").show();
|
||||
//$("#_layerPop2").show();
|
||||
$(".cancel_popup").show();
|
||||
|
||||
//data-tooltip="cancel_popup"
|
||||
}
|
||||
|
||||
function layerOpen2Save(){
|
||||
$("#_regForm2").submit();
|
||||
}
|
||||
|
||||
function layerOpen2Close(){
|
||||
$(".cancel_popup").hide();
|
||||
}
|
||||
|
||||
function layerClose(){
|
||||
@ -163,8 +189,10 @@
|
||||
|
||||
</script>
|
||||
|
||||
<div class="mask"></div>
|
||||
|
||||
<!-- 팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
<div class="tooltip-wrap" id="_layerPop" name="_layerPop">
|
||||
<div class="tooltip-wrap" id="apl_popup">
|
||||
<div class="popup_wrap alert_popup apl_popup" tabindex="0" data-tooltip-con="apl_popup" data-focus="apl_popup" data-focus-prev="apl_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
@ -173,8 +201,9 @@
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터를 신청하시겠습니까?</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="apl_popup_close">취소</button>
|
||||
<button type="button" class="btn btn_text btn_40 darkblue_fill" data-tooltip="apl_after_popup" data-focus="apl_after_popup" data-focus-next="apl_popup">확인</button>
|
||||
<button type="button" class="btn btn_text btn_40 darkblue_fill" onclick="layerOpenSave();">확인</button>
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" onclick="layerOpenClose();">취소</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -182,6 +211,97 @@
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
|
||||
<!-- 팝업 : 뉴스레터 신청 후 : apl_after_popup -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap alert_popup apl_after_popup" tabindex="0" data-tooltip-con="apl_after_popup" data-focus="apl_after_popup" data-focus-prev="apl_after_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터가 신청되었습니다.</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="apl_after_popup_close" data-focus-next="apl_after_popup">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 신청 후 : apl_popup -->
|
||||
|
||||
<!-- 팝업 : 중복 신청 : dpl_popup -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap alert_popup dpl_popup" tabindex="0" data-tooltip-con="dpl_popup" data-focus="dpl_popup" data-focus-prev="dpl_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">중복으로 신청하실 수 없습니다.</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="dpl_popup_close" data-focus-next="dpl_popup">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 중복 신청 : dpl_popup -->
|
||||
|
||||
<!-- 팝업 : 뉴스레터 해지 : cancel_popup -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap alert_popup cancel_popup" tabindex="0" data-tooltip-con="cancel_popup" data-focus="cancel_popup" data-focus-prev="cancel_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터를 해지하시겠습니까?</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 darkblue_fill" onclick="layerOpen2Save();">확인</button>
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" onclick="layerOpen2Close();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 해지 : cancel_popup -->
|
||||
|
||||
<!-- 팝업 : 뉴스레터 해지 후 : cancel_after_popup -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap alert_popup cancel_after_popup" tabindex="0" data-tooltip-con="cancel_after_popup" data-focus="cancel_after_popup" data-focus-prev="cancel_after_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터가 해지되었습니다.</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="cancel_after_popup_close" data-focus-next="cancel_after_popup">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 해지 후 : cancel_after_popup -->
|
||||
|
||||
<!-- 팝업 : 뉴스레터 해지 X : cancel_none_popup -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap alert_popup cancel_none_popup" tabindex="0" data-tooltip-con="cancel_none_popup" data-focus="cancel_none_popup" data-focus-prev="cancel_none_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">등록된 내역이 없습니다.</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="cancel_none_popup_close" data-focus-next="cancel_none_popup">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 해지 X : cancel_none_popup -->
|
||||
|
||||
<!-- //lnb -->
|
||||
<div class="sub_content">
|
||||
|
||||
@ -202,15 +322,14 @@
|
||||
<li><button type="button" class="tab" onclick="pblEvt.tab(this,'active','ul',$('.tab'),'1');">뉴스레터 해지</button></li>
|
||||
</ul>
|
||||
|
||||
<form name="regForm" id="regForm" action="" method="post">
|
||||
|
||||
<div class="tab_contents active news_service">
|
||||
<form id="_regForm" name="regForm" method="post" action="/web/user/news/${siteIdx}/01/${siteMenuIdx}/newsDetail.do">
|
||||
<p class="text_explain">조정원에서 정기적으로 발행하는 뉴스레터 등 다양한 정책 정보를 받기를 원하시는 고객님들은 아래와 같은 입력 사항을 입력하신 후 등록해주시면 정지적으로 뉴스레터가 발송합니다.</p>
|
||||
<div class="box gray_fill">
|
||||
<ul class="input_box">
|
||||
<li>
|
||||
<p class="apl_tit">· 이름</p>
|
||||
<input type="text" class="input_text" title="이름 입력" name="clientName" id="_clientName" value="" maxlength="100">
|
||||
<input type="text" class="input_text" title="이름 입력" name="clientName" id="_clientName" value="" maxlength="100">
|
||||
</li>
|
||||
<li>
|
||||
<p class="apl_tit">· 이메일</p>
|
||||
@ -219,8 +338,7 @@
|
||||
@
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력" name="hidEmail2" id="_hidEmail2" value="" maxlength="23">
|
||||
|
||||
<select name="clientEmail2" id="_clientEmail2" class="select email_select" onchange="email_change();" title="이메일 공급자 선택">
|
||||
|
||||
<select name="clientEmail2" id="_clientEmail2" class="select email_select" onchange="email_change();" title="이메일 공급자 선택">
|
||||
<option value="0">직접입력</option>
|
||||
<option value="chol.com">chol.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
@ -263,34 +381,32 @@
|
||||
</div>
|
||||
|
||||
<div class="box gray_fill agree_box">
|
||||
<input type="checkbox" id="_agreeCheck" name="agreeCheck" class="checkbox"><label for="agree">위 약관에 동의</label>
|
||||
<input type="checkbox" id="_agreeCheck" name="agreeCheck" class="checkbox"><label for="agree">위 약관에 동의</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" onclick="layerOpen();">뉴스레터 신청하기</button>
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" onclick="layerOpen()">뉴스레터 신청하기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<form name="regForm2" id="regForm2" action="" method="post">
|
||||
|
||||
<div class="tab_contents news_service">
|
||||
<form id="_regForm2" name="regForm2" method="post" action="/web/user/news/${siteIdx}/01/${siteMenuIdx}/delReq.do">
|
||||
<p class="text_explain">조정원에서 정기적으로 발행하는 뉴스레터 해지를 원하시는 고객님께서는 정보를 입력해 주세요.</p>
|
||||
<div class="box gray_fill">
|
||||
<ul class="input_box">
|
||||
<li>
|
||||
<p class="apl_tit">· 이름</p>
|
||||
<input type="text" class="input_text" title="이름 입력">
|
||||
<input type="text" class="input_text" title="이름 입력" name="clientName" id="_clientName2" value="" maxlength="100">
|
||||
</li>
|
||||
<li>
|
||||
<p class="apl_tit">· 이메일</p>
|
||||
<div class="email_wrap">
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력">
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력" name="clientEmail1" id="_clientEmail12" value="" maxlength="25">
|
||||
@
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력">
|
||||
<select name="" id="" class="select email_select" title="이메일 공급자 선택">
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력" name="hidEmail2" id="_hidEmail22" value="" maxlength="23">
|
||||
<select name="clientEmail2" id="_clientEmail22" class="select email_select" title="이메일 공급자 선택" onchange="email_change2();">
|
||||
<option value="0">직접입력</option>
|
||||
<option value="chol.com">chol.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
@ -316,10 +432,10 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" data-tooltip="cancel_popup" onclick="layerOpen2();">뉴스레터 해지하기</button>
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" onclick="layerOpen2()">뉴스레터 해지하기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
325
src/main/webapp/WEB-INF/jsp/_extra/web/user/news/newsList2.jsp
Normal file
325
src/main/webapp/WEB-INF/jsp/_extra/web/user/news/newsList2.jsp
Normal file
@ -0,0 +1,325 @@
|
||||
<%@ page contentType="text/html;charset=utf-8" %>
|
||||
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
|
||||
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ page import="seed.utils.SeedUtils"%>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>한국공정거래조정원 온라인분쟁조정시스템 > 뉴스레터 > 뉴스레터 서비스</title>
|
||||
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="/kofair_case_seed/css/reset.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/css/font.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/common.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/layout.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/popup.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/style.css">
|
||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/info.css">
|
||||
|
||||
<!-- js -->
|
||||
<script src="/kofair_case_seed/script/lib/jquery-3.5.0.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/common.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/layout.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/popup.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/ui.js"></script>
|
||||
<script src="/kofair_case_seed/usr/scripts/info.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<script type="text/javascript">
|
||||
function email_change(){
|
||||
if(document.regForm.clientEmail2.options[document.regForm.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm.hidEmail2.style.display="inline-block";
|
||||
document.regForm.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm.hidEmail2.value = document.regForm.clientEmail2.options[document.regForm.clientEmail2.selectedIndex].value;
|
||||
document.regForm.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function email_change2(){
|
||||
if(document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm2.hidEmail2.style.display="inline-block";
|
||||
document.regForm2.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm2.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm2.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm2.hidEmail2.value = document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value;
|
||||
document.regForm2.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function layerOpen(){
|
||||
|
||||
if(!$("#_clientName").val()){
|
||||
alert("신청인 성명을 입력해주세요.");
|
||||
$("#_clientName").focus();
|
||||
return false;
|
||||
}
|
||||
if(!$("#_clientEmail1").val()){
|
||||
alert("신청인 이메일을 입력해주세요.");
|
||||
$("#_clientEmail1").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_hidEmail2").val()){
|
||||
alert("신청인 이메일주소를 입력해주세요.");
|
||||
$("#_hidEmail2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 검증에 사용할 정규식 변수 regExp에 저장
|
||||
var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
|
||||
if(!regExp.test($("#_hidEmail2").val())){
|
||||
alert("입력된 주소를 확인해주세요.");
|
||||
$("#_hidEmail2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_agreeCheck").is(":checked")){
|
||||
alert("위 약관에 동의 해주세요.");
|
||||
$("#_agreeCheck").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#_layerPop").show();
|
||||
//$("#_regForm").submit();
|
||||
}
|
||||
|
||||
function email_change2(){
|
||||
if(document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value == '0'){
|
||||
document.regForm2.hidEmail2.style.display="inline-block";
|
||||
document.regForm2.hidEmail2.value = "";
|
||||
setTimeout(function () {
|
||||
document.regForm2.hidEmail2.focus();
|
||||
}, 0);
|
||||
document.regForm2.hidEmail2.readOnly = false;
|
||||
}
|
||||
else{
|
||||
document.regForm2.hidEmail2.value = document.regForm2.clientEmail2.options[document.regForm2.clientEmail2.selectedIndex].value;
|
||||
document.regForm2.hidEmail2.readOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
function layerOpen2(){
|
||||
|
||||
if(!$("#_clientName2").val()){
|
||||
alert("신청인 성명을 입력해주세요.");
|
||||
$("#_clientName2").focus();
|
||||
return false;
|
||||
}
|
||||
if(!$("#_clientEmail12").val()){
|
||||
alert("신청인 이메일을 입력해주세요.");
|
||||
$("#_clientEmail12").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$("#_hidEmail22").val()){
|
||||
alert("신청인 이메일주소를 입력해주세요.");
|
||||
$("#_hidEmail22").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 검증에 사용할 정규식 변수 regExp에 저장
|
||||
var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
|
||||
if(!regExp.test($("#_hidEmail22").val())){
|
||||
alert("입력된 주소를 확인해주세요.");
|
||||
$("#_hidEmail22").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$("#_layerPop2").show();
|
||||
}
|
||||
|
||||
function layerClose(){
|
||||
$("#_layerPop").hide();
|
||||
}
|
||||
|
||||
function layerClose2(){
|
||||
$("#_layerPop2").hide();
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$('input[type="text"]').keydown(function() {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div class="mask"></div>
|
||||
|
||||
<!-- 팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
<div class="tooltip-wrap" id="_layerPop" name="_layerPop">
|
||||
<div class="popup_wrap alert_popup apl_popup" tabindex="0" data-tooltip-con="apl_popup" data-focus="apl_popup" data-focus-prev="apl_popup_close">
|
||||
<div class="popup_content">
|
||||
<div class="title_wrap">
|
||||
<button type="button" class="btn only_icon btn_popup_close tooltip-close"><i class="icon popup close"></i></button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<b class="alert_title">뉴스레터를 신청하시겠습니까?</b>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text btn_40 gray_fill tooltip-close" data-focus="apl_popup_close">취소</button>
|
||||
<button type="button" class="btn btn_text btn_40 darkblue_fill" data-tooltip="apl_after_popup" data-focus="apl_after_popup" data-focus-next="apl_popup">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //팝업 : 뉴스레터 신청 : apl_popup -->
|
||||
|
||||
<!-- //lnb -->
|
||||
<div class="sub_content">
|
||||
|
||||
<!-- page_location -->
|
||||
<ul class="page_location">
|
||||
<li><i class="icon home"></i></li>
|
||||
<li>분쟁조정 안내</li>
|
||||
<li>뉴스레터</li>
|
||||
<li>뉴스레터 서비스</li>
|
||||
</ul>
|
||||
<!-- //page_location -->
|
||||
|
||||
<h3 class="sub_con_tit">뉴스레터 서비스</h3>
|
||||
<p class="sub_con_sub_tit">한국공정거래조정원에서 매월 정기 발행하는 뉴스레터서비스입니다.</p>
|
||||
|
||||
<ul class="tabs blue_fill tab_02">
|
||||
<li><button type="button" class="tab active" onclick="pblEvt.tab(this,'active','ul',$('.tab'),'0');">뉴스레터 신청</button></li>
|
||||
<li><button type="button" class="tab" onclick="pblEvt.tab(this,'active','ul',$('.tab'),'1');">뉴스레터 해지</button></li>
|
||||
</ul>
|
||||
|
||||
<form id="_regForm" name="regForm" method="post" action="/web/user/news/${siteIdx}/01/${siteMenuIdx}/newsDetail.do">
|
||||
|
||||
<div class="tab_contents active news_service">
|
||||
<p class="text_explain">조정원에서 정기적으로 발행하는 뉴스레터 등 다양한 정책 정보를 받기를 원하시는 고객님들은 아래와 같은 입력 사항을 입력하신 후 등록해주시면 정지적으로 뉴스레터가 발송합니다.</p>
|
||||
<div class="box gray_fill">
|
||||
<ul class="input_box">
|
||||
<li>
|
||||
<p class="apl_tit">· 이름</p>
|
||||
<input type="text" class="input_text" title="이름 입력" name="clientName" id="_clientName" value="" maxlength="100">
|
||||
</li>
|
||||
<li>
|
||||
<p class="apl_tit">· 이메일</p>
|
||||
<div class="email_wrap">
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력" name="clientEmail1" id="_clientEmail1" value="" maxlength="25">
|
||||
@
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력" name="hidEmail2" id="_hidEmail2" value="" maxlength="23">
|
||||
|
||||
<select name="clientEmail2" id="_clientEmail2" class="select email_select" onchange="email_change();" title="이메일 공급자 선택">
|
||||
|
||||
<option value="0">직접입력</option>
|
||||
<option value="chol.com">chol.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
<option value="dreamwiz.com">dreamwiz.com</option>
|
||||
<option value="empal.com">empal.com</option>
|
||||
<option value="freechal.com">freechal.com</option>
|
||||
<option value="gmail.com">gmail.com</option>
|
||||
<option value="hanafos.com">hanafos.com</option>
|
||||
<option value="hanmir.com">hanmir.com</option>
|
||||
<option value="hitel.com">hitel.com</option>
|
||||
<option value="hotmail.com">hotmail.com</option>
|
||||
<option value="korea.com">korea.com</option>
|
||||
<option value="lycos.co.kr">lycos.co.kr</option>
|
||||
<option value="nate.com">nate.com</option>
|
||||
<option value="naver.com">naver.com</option>
|
||||
<option value="netian.com">netian.com</option>
|
||||
<option value="paran.com">paran.com</option>
|
||||
<option value="yahoo.com">yahoo.com</option>
|
||||
<option value="yahoo.co.kr">yahoo.co.kr</option>
|
||||
</select>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<b class="title depth02 orange_border round">개인정보 수집·이용 동의<span class="color_red">(필수)</span></b>
|
||||
<div class="box gray_border">
|
||||
<pre>
|
||||
1. 개인정보의 수집 및 이용 목적
|
||||
조정원에서 정기적으로 발행하는 뉴스레터 등 다양한 정책정보 수신을 위한 정책고객 가입하기는 관계법령 등에서
|
||||
정하는 소관 업무의 수행을 위하여 다음과 같이 개인정보를 수집 및 이용합니다. 수집된 개인정보는 정해진 목적 이외
|
||||
의 용도로는 이용되지 않으며, 수집 목적이 변경될 경우 사전에 알리고 동의를 받을 예정입니다.
|
||||
|
||||
2. 수집하는 개인정보의 항목
|
||||
가. 필수항목 : 신청인 성명, 연락처
|
||||
나. 선택항목 : 이메일 등
|
||||
다. 자동수집항목 : IP(Internet Protocol)주소 - 부정한 방법으로 타인명의를 사용하는 경우에 대비하기 위해 정보이용내
|
||||
역 등을 자동 수집합니다.
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="box gray_fill agree_box">
|
||||
<input type="checkbox" id="_agreeCheck" name="agreeCheck" class="checkbox"><label for="agree">위 약관에 동의</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" onclick="layerOpen();">뉴스레터 신청하기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<form name="regForm2" id="regForm2" action="" method="post">
|
||||
|
||||
<div class="tab_contents news_service">
|
||||
<p class="text_explain">조정원에서 정기적으로 발행하는 뉴스레터 해지를 원하시는 고객님께서는 정보를 입력해 주세요.</p>
|
||||
<div class="box gray_fill">
|
||||
<ul class="input_box">
|
||||
<li>
|
||||
<p class="apl_tit">· 이름</p>
|
||||
<input type="text" class="input_text" title="이름 입력">
|
||||
</li>
|
||||
<li>
|
||||
<p class="apl_tit">· 이메일</p>
|
||||
<div class="email_wrap">
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력">
|
||||
@
|
||||
<input type="text" class="input_text input_email" title="이메일 공급자 입력">
|
||||
<select name="" id="" class="select email_select" title="이메일 공급자 선택">
|
||||
<option value="0">직접입력</option>
|
||||
<option value="chol.com">chol.com</option>
|
||||
<option value="daum.net">daum.net</option>
|
||||
<option value="dreamwiz.com">dreamwiz.com</option>
|
||||
<option value="empal.com">empal.com</option>
|
||||
<option value="freechal.com">freechal.com</option>
|
||||
<option value="gmail.com">gmail.com</option>
|
||||
<option value="hanafos.com">hanafos.com</option>
|
||||
<option value="hanmir.com">hanmir.com</option>
|
||||
<option value="hitel.com">hitel.com</option>
|
||||
<option value="hotmail.com">hotmail.com</option>
|
||||
<option value="korea.com">korea.com</option>
|
||||
<option value="lycos.co.kr">lycos.co.kr</option>
|
||||
<option value="nate.com">nate.com</option>
|
||||
<option value="naver.com">naver.com</option>
|
||||
<option value="netian.com">netian.com</option>
|
||||
<option value="paran.com">paran.com</option>
|
||||
<option value="yahoo.com">yahoo.com</option>
|
||||
<option value="yahoo.co.kr">yahoo.co.kr</option>
|
||||
</select>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn_wrap center">
|
||||
<button type="button" class="btn btn_text darkblue_fill btn_45" data-tooltip="cancel_popup" onclick="layerOpen2();">뉴스레터 해지하기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user