--- base/Documents/BaseForMySql_v1.0.erwin
+++ base/Documents/BaseForMySql_v1.0.erwin
| Binary file is not shown |
+++ base/Documents/행정표준용어2.xls
| Binary file is not shown |
--- base/src/main/java/egovframework/com/mng/sym/sit/web/SiteManageController.java
+++ base/src/main/java/egovframework/com/mng/sym/sit/web/SiteManageController.java
... | ... | @@ -74,9 +74,6 @@ |
| 74 | 74 |
@Resource(name = "propertiesService") |
| 75 | 75 |
protected EgovPropertyService propertiesService; |
| 76 | 76 |
|
| 77 |
- @Resource(name = "egovMessageSource") |
|
| 78 |
- EgovMessageSource egovMessageSource; |
|
| 79 |
- |
|
| 80 | 77 |
@Resource(name="cmmUseService") |
| 81 | 78 |
private CmmUseService cmmUseService; |
| 82 | 79 |
|
... | ... | @@ -95,11 +92,9 @@ |
| 95 | 92 |
else searchVO.setSiteId(loginVO.getSiteId()); |
| 96 | 93 |
} |
| 97 | 94 |
|
| 98 |
- /** EgovPropertyService.SiteList */ |
|
| 99 | 95 |
searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
| 100 | 96 |
searchVO.setPageSize(propertiesService.getInt("pageSize"));
|
| 101 | 97 |
|
| 102 |
- /** pageing */ |
|
| 103 | 98 |
PaginationInfo paginationInfo = new PaginationInfo(); |
| 104 | 99 |
paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); |
| 105 | 100 |
paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); |
... | ... | @@ -136,11 +131,9 @@ |
| 136 | 131 |
request.getSession().setAttribute("sessionVO", searchVO);
|
| 137 | 132 |
|
| 138 | 133 |
return "/mng/sym/sit/SiteInfoRegist"; |
| 139 |
- |
|
| 140 | 134 |
} |
| 141 | 135 |
|
| 142 | 136 |
//사이트정보를 등록한다. |
| 143 |
- @SuppressWarnings("unchecked")
|
|
| 144 | 137 |
@RequestMapping("/mng/sym/sit/insertSiteInfo.do")
|
| 145 | 138 |
public String insertSiteInfo(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") SiteManageVO searchVO, SiteManageVO siteManageVO, SiteMainContentsManageVO mainContentsVO, BindingResult bindingResult, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 146 | 139 |
|
... | ... | @@ -250,7 +243,6 @@ |
| 250 | 243 |
} |
| 251 | 244 |
|
| 252 | 245 |
//사이트정보를 수정한다. |
| 253 |
- @SuppressWarnings("unchecked")
|
|
| 254 | 246 |
@RequestMapping("/mng/sym/sit/updateSiteInfo.do")
|
| 255 | 247 |
public String updateSiteInfo(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") SiteManageVO searchVO, SiteManageVO siteManageVO, SiteMainContentsManageVO mainContentsVO, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 256 | 248 |
|
... | ... | @@ -483,5 +475,31 @@ |
| 483 | 475 |
printwriter.flush(); |
| 484 | 476 |
printwriter.close(); |
| 485 | 477 |
} |
| 486 |
- |
|
| 478 |
+ |
|
| 479 |
+ //사이트약관관리 |
|
| 480 |
+ @RequestMapping("/mng/sym/sit/sitePolicy.do")
|
|
| 481 |
+ public String sitePolicy(@ModelAttribute("searchVO") SiteManageVO siteManageVO, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 482 |
+ |
|
| 483 |
+ if(egovframework.rte.fdl.string.EgovStringUtil.isEmpty(siteManageVO.getSiteId())) {
|
|
| 484 |
+ LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 485 |
+ if(!egovframework.rte.fdl.string.EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 486 |
+ siteManageVO.setSiteId(loginVO.getSiteId()); |
|
| 487 |
+ } |
|
| 488 |
+ } |
|
| 489 |
+ SiteManageVO siteInfo = siteManageService.selectSiteDetail(siteManageVO); |
|
| 490 |
+ |
|
| 491 |
+ model.addAttribute("siteInfo", siteInfo);
|
|
| 492 |
+ |
|
| 493 |
+ return "/mng/sym/sit/SitePolicy"; |
|
| 494 |
+ } |
|
| 495 |
+ |
|
| 496 |
+ //사이트약관수정 |
|
| 497 |
+ @RequestMapping("/mng/sym/sit/updateSitePolicy.do")
|
|
| 498 |
+ public String updateSitePolicy(@ModelAttribute("searchVO") SiteManageVO siteManageVO, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 499 |
+ LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 500 |
+ siteManageVO.setLastUpdusrId(loginVO.getId()); |
|
| 501 |
+ siteManageService.batchScrtyPolicy(siteManageVO); |
|
| 502 |
+ |
|
| 503 |
+ return "forward:/mng/sym/sit/sitePolicy.do"; |
|
| 504 |
+ } |
|
| 487 | 505 |
} |
--- base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageMapper.java
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageMapper.java
... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 |
public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception; |
| 29 | 29 |
|
| 30 | 30 |
//유효한 게시판 목록을 불러온다.(커뮤니티, 동호회의 게시판이 나오지 않도록 COMTNBBSUSE 테이블과 Join 필요) |
| 31 |
- public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception; |
|
| 31 |
+ public List<BoardMasterVO> selectAllBBSMaster(BoardMasterVO vo) throws Exception; |
|
| 32 | 32 |
|
| 33 | 33 |
//사용등록이 된 게시판 목록 전체를 불러온다. |
| 34 | 34 |
public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception; |
--- base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageServiceImpl.java
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageServiceImpl.java
... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 |
|
| 61 | 61 |
//게시판 속성 정보의 목록을 조회 한다. |
| 62 | 62 |
public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception {
|
| 63 |
- return bbsAttributeManageMapper.selectAllBBSMasteInf(vo); |
|
| 63 |
+ return bbsAttributeManageMapper.selectAllBBSMaster(vo); |
|
| 64 | 64 |
} |
| 65 | 65 |
|
| 66 | 66 |
//게시판 속성정보 한 건을 상세조회한다. |
--- base/src/main/java/egovframework/module/sym/sit/service/SiteManageService.java
+++ base/src/main/java/egovframework/module/sym/sit/service/SiteManageService.java
... | ... | @@ -10,25 +10,25 @@ |
| 10 | 10 |
|
| 11 | 11 |
|
| 12 | 12 |
//사이트기관코드정보를 조회한다. |
| 13 |
- public SiteManageVO selectSiteSimpleInfo(SiteManageVO vo) throws Exception; |
|
| 13 |
+ SiteManageVO selectSiteSimpleInfo(SiteManageVO vo) throws Exception; |
|
| 14 | 14 |
|
| 15 | 15 |
//사이트간략정보 목록을 조회한다. |
| 16 |
- public List<SiteManageVO> selectSiteSimpleList() throws Exception; |
|
| 16 |
+ List<SiteManageVO> selectSiteSimpleList() throws Exception; |
|
| 17 | 17 |
|
| 18 | 18 |
//[교과코드] 사이트간략정보 목록을 조회한다. |
| 19 |
- public List<SiteManageVO> selectSiteListForOrgCode(SiteManageVO vo) throws Exception; |
|
| 19 |
+ List<SiteManageVO> selectSiteListForOrgCode(SiteManageVO vo) throws Exception; |
|
| 20 | 20 |
|
| 21 | 21 |
//도메인으로 부터 사이트정보 를 조회한다. |
| 22 |
- public void selectSiteListBinding(String domain, long fileLastModified) throws Exception; |
|
| 22 |
+ void selectSiteListBinding(String domain, long fileLastModified) throws Exception; |
|
| 23 | 23 |
|
| 24 | 24 |
//모든사이트정보 를 조회한다. |
| 25 |
- public HashMap<String, SiteManageVO> getSiteHash() ; |
|
| 25 |
+ HashMap<String, SiteManageVO> getSiteHash() ; |
|
| 26 | 26 |
|
| 27 | 27 |
//요청 도메인으로 부터 사이트정보 조회한다. |
| 28 | 28 |
SiteManageVO selectSiteServiceInfo(HttpServletRequest request) throws Exception; |
| 29 | 29 |
|
| 30 | 30 |
//SITE_ID로 부터 사이트정보 조회한다. |
| 31 |
- public SiteManageVO selectSiteServiceInfoBySiteId(String siteId) throws Exception; |
|
| 31 |
+ SiteManageVO selectSiteServiceInfoBySiteId(String siteId) throws Exception; |
|
| 32 | 32 |
|
| 33 | 33 |
//사이트정보를 상세조회한다. |
| 34 | 34 |
SiteManageVO selectSiteDetail(SiteManageVO vo) throws Exception; |
... | ... | @@ -40,12 +40,11 @@ |
| 40 | 40 |
int selectSiteListTotCnt(SiteManageVO searchVO); |
| 41 | 41 |
|
| 42 | 42 |
//메뉴아이디를 생성한다. |
| 43 |
- public String selectSiteIdGnr() throws Exception; |
|
| 43 |
+ String selectSiteIdGnr() throws Exception; |
|
| 44 | 44 |
|
| 45 | 45 |
//사이트정보를 등록한다. |
| 46 | 46 |
void insertSiteInfo(SiteManageVO vo, SiteMainContentsManageVO mainContentsVO) throws Exception; |
| 47 | 47 |
|
| 48 |
- |
|
| 49 | 48 |
//사이트정보를 수정한다. |
| 50 | 49 |
void updateSiteInfo(SiteManageVO vo, SiteMainContentsManageVO mainContentsVO) throws Exception; |
| 51 | 50 |
|
... | ... | @@ -53,11 +52,12 @@ |
| 53 | 52 |
void deleteSiteInfo(SiteManageVO vo) throws Exception; |
| 54 | 53 |
|
| 55 | 54 |
//보안설정을 배치처리한다. |
| 56 |
- public void batchScrtySetup(SiteManageVO vo) throws Exception ; |
|
| 55 |
+ void batchScrtySetup(SiteManageVO vo) throws Exception ; |
|
| 56 |
+ |
|
| 57 |
+ //약관내용을 수정한다. |
|
| 58 |
+ void batchScrtyPolicy(SiteManageVO vo) throws Exception; |
|
| 57 | 59 |
|
| 58 |
- //보안정책을 배치처리한다. |
|
| 59 |
- public void batchScrtyPolicy(SiteManageVO vo) throws Exception ; |
|
| 60 |
- |
|
| 61 |
- public void publishCreate(SiteManageVO vo, String action) throws Exception; |
|
| 62 |
- |
|
| 60 |
+ void publishCreate(SiteManageVO vo, String action) throws Exception; |
|
| 61 |
+ |
|
| 62 |
+ |
|
| 63 | 63 |
} |
--- base/src/main/java/egovframework/module/sym/sit/service/SiteManageVO.java
+++ base/src/main/java/egovframework/module/sym/sit/service/SiteManageVO.java
... | ... | @@ -55,9 +55,12 @@ |
| 55 | 55 |
//이용약관 |
| 56 | 56 |
private String useStplat; |
| 57 | 57 |
|
| 58 |
- //이메일수집거부저책 |
|
| 58 |
+ //이메일수집거부정책 |
|
| 59 | 59 |
private String emailColctPolicy; |
| 60 |
- |
|
| 60 |
+ |
|
| 61 |
+ //마케팅광고동의정책 |
|
| 62 |
+ private String marktPolicy; |
|
| 63 |
+ |
|
| 61 | 64 |
//레이아웃소스ID |
| 62 | 65 |
private String lytSourcId; |
| 63 | 66 |
|
... | ... | @@ -812,6 +815,13 @@ |
| 812 | 815 |
|
| 813 | 816 |
public void setInitMode(String initMode) {
|
| 814 | 817 |
this.initMode = initMode; |
| 815 |
- } |
|
| 816 |
- |
|
| 818 |
+ } |
|
| 819 |
+ |
|
| 820 |
+ public String getMarktPolicy() {
|
|
| 821 |
+ return marktPolicy; |
|
| 822 |
+ } |
|
| 823 |
+ |
|
| 824 |
+ public void setMarktPolicy(String marktPolicy) {
|
|
| 825 |
+ this.marktPolicy = marktPolicy; |
|
| 826 |
+ } |
|
| 817 | 827 |
} |
--- base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageMapper.java
+++ base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageMapper.java
... | ... | @@ -11,44 +11,45 @@ |
| 11 | 11 |
public interface SiteManageMapper {
|
| 12 | 12 |
|
| 13 | 13 |
//사이트 목록에 대한 상세내용을 조회한다. |
| 14 |
- public SiteManageVO selectSiteDetail(SiteManageVO vo) throws Exception; |
|
| 14 |
+ SiteManageVO selectSiteDetail(SiteManageVO vo) throws Exception; |
|
| 15 | 15 |
|
| 16 | 16 |
//도메인으로 부터 사이트에 대한 상세내용을 조회한다. |
| 17 |
- public SiteManageVO selectSiteByDomain(SiteManageVO vo) throws Exception; |
|
| 17 |
+ SiteManageVO selectSiteByDomain(SiteManageVO vo) throws Exception; |
|
| 18 | 18 |
|
| 19 | 19 |
//사이트기관코드정보를 조회한다. |
| 20 |
- public SiteManageVO selectSiteSimpleInfo(SiteManageVO vo) throws Exception; |
|
| 20 |
+ SiteManageVO selectSiteSimpleInfo(SiteManageVO vo) throws Exception; |
|
| 21 | 21 |
|
| 22 | 22 |
//사이트간략정보 목록을 조회한다. |
| 23 |
- public List<SiteManageVO> selectSiteSimpleList() throws Exception; |
|
| 23 |
+ List<SiteManageVO> selectSiteSimpleList() throws Exception; |
|
| 24 | 24 |
|
| 25 | 25 |
//[교과코드] 사이트간략정보 목록을 조회한다. |
| 26 |
- public List<SiteManageVO> selectSiteListForOrgCode(SiteManageVO vo) throws Exception; |
|
| 26 |
+ List<SiteManageVO> selectSiteListForOrgCode(SiteManageVO vo) throws Exception; |
|
| 27 | 27 |
|
| 28 | 28 |
//사이트정보 목록을 조회한다. |
| 29 |
- public List<SiteManageVO> selectSiteList(SiteManageVO searchVO) throws Exception; |
|
| 29 |
+ List<SiteManageVO> selectSiteList(SiteManageVO searchVO) throws Exception; |
|
| 30 | 30 |
|
| 31 | 31 |
//사이트정보 총 갯수를 조회한다. |
| 32 |
- public int selectSiteListTotCnt(SiteManageVO searchVO); |
|
| 32 |
+ int selectSiteListTotCnt(SiteManageVO searchVO); |
|
| 33 | 33 |
|
| 34 | 34 |
//사이트정보를 등록한다. |
| 35 |
- public void insertSiteInfo(SiteManageVO vo) throws Exception; |
|
| 35 |
+ void insertSiteInfo(SiteManageVO vo) throws Exception; |
|
| 36 | 36 |
|
| 37 | 37 |
//사이트정보를 수정한다. |
| 38 |
- public void updateSiteInfo(SiteManageVO vo) throws Exception; |
|
| 38 |
+ void updateSiteInfo(SiteManageVO vo) throws Exception; |
|
| 39 | 39 |
|
| 40 | 40 |
//사이트정보를 삭제한다. |
| 41 |
- public void deleteSiteInfo(SiteManageVO vo) throws Exception; |
|
| 41 |
+ void deleteSiteInfo(SiteManageVO vo) throws Exception; |
|
| 42 | 42 |
|
| 43 | 43 |
//메인컨텐츠정보를 등록한다. |
| 44 |
- public void insertSiteMainContents(SiteMainContentsManageVO vo) throws Exception; |
|
| 44 |
+ void insertSiteMainContents(SiteMainContentsManageVO vo) throws Exception; |
|
| 45 | 45 |
|
| 46 | 46 |
//사이트정보를 삭제한다. |
| 47 |
- public void deleteSiteMainContents(SiteMainContentsManageVO vo) throws Exception; |
|
| 47 |
+ void deleteSiteMainContents(SiteMainContentsManageVO vo) throws Exception; |
|
| 48 | 48 |
|
| 49 | 49 |
//보안설정을 배치처리한다. |
| 50 |
- public void updateBatchScrtySetup(SiteManageVO vo) throws Exception; |
|
| 50 |
+ void updateBatchScrtySetup(SiteManageVO vo) throws Exception; |
|
| 51 | 51 |
|
| 52 |
- //보안설정을 배치처리한다. |
|
| 53 |
- public void updateBatchScrtyPolicy(SiteManageVO vo) throws Exception; |
|
| 52 |
+ //약관내용을 수정한다. |
|
| 53 |
+ void updateBatchScrtyPolicy(SiteManageVO vo) throws Exception; |
|
| 54 |
+ |
|
| 54 | 55 |
} |
--- base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageServiceImpl.java
+++ base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageServiceImpl.java
... | ... | @@ -253,11 +253,22 @@ |
| 253 | 253 |
siteManageMapper.updateBatchScrtySetup(vo); |
| 254 | 254 |
} |
| 255 | 255 |
|
| 256 |
- //보안정책을 배치처리한다. |
|
| 256 |
+ //약관내용을 수정한다. |
|
| 257 | 257 |
public void batchScrtyPolicy(SiteManageVO vo) throws Exception {
|
| 258 |
- siteManageMapper.updateBatchScrtyPolicy(vo); |
|
| 258 |
+ siteManageMapper.updateBatchScrtyPolicy(vo); |
|
| 259 |
+ |
|
| 260 |
+ //이용약관 |
|
| 261 |
+ if("useStplat".equals(vo.getSysTyCode())){
|
|
| 262 |
+ EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.mnu.fileStorePathByJspFile") + "/" + vo.getSiteId() + "/" + "useStplat.jsp", "<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\" %>\n" + vo.getUseStplat());
|
|
| 263 |
+ //개인정보처리방침 |
|
| 264 |
+ }else if("indvdlInfoPolicy".equals(vo.getSysTyCode())){
|
|
| 265 |
+ EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.mnu.fileStorePathByJspFile") + "/" + vo.getSiteId() + "/" + "indvdlInfoPolicy.jsp", "<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\" %>\n" + vo.getIndvdlInfoPolicy());
|
|
| 266 |
+ //마케팅광고동의방침 |
|
| 267 |
+ }else if("marktPolicy".equals(vo.getSysTyCode())){
|
|
| 268 |
+ EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.mnu.fileStorePathByJspFile") + "/" + vo.getSiteId() + "/" + "marktPolicy.jsp", "<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\" %>\n" + vo.getMarktPolicy());
|
|
| 269 |
+ } |
|
| 259 | 270 |
} |
| 260 |
- |
|
| 271 |
+ |
|
| 261 | 272 |
public void publishCreate(SiteManageVO vo, String action) throws Exception {
|
| 262 | 273 |
|
| 263 | 274 |
EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.mnu.fileStorePathByJspFile") + "/" + vo.getSiteId() + "/" + "indvdlInfoPolicy.jsp", "<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\" %>\n" + vo.getIndvdlInfoPolicy());
|
--- base/src/main/resources/egovframework/mapper/mysql/sym/sit/SiteManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/sym/sit/SiteManage_SQL.xml
... | ... | @@ -19,7 +19,8 @@ |
| 19 | 19 |
<result property="adresReplcText" column="ADRES_REPLC_TEXT"/> |
| 20 | 20 |
<result property="indvdlInfoPolicy" column="INDVDLINFO_POLICY"/> |
| 21 | 21 |
<result property="useStplat" column="USE_STPLAT"/> |
| 22 |
- <result property="emailColctPolicy" column="EMAIL_COLCT_POLICY"/> |
|
| 22 |
+ <result property="emailColctPolicy" column="EMAIL_COLCT_POLICY"/> |
|
| 23 |
+ <result property="marktPolicy" column="MARKT_POLICY"/> |
|
| 23 | 24 |
<result property="lytTmplatId" column="LYT_TMPLAT_ID"/> |
| 24 | 25 |
<result property="cmyTmplatId" column="CMY_TMPLAT_ID"/> |
| 25 | 26 |
<result property="mobileUseAt" column="MOBILE_USE_AT"/> |
... | ... | @@ -140,7 +141,7 @@ |
| 140 | 141 |
|
| 141 | 142 |
<select id="selectSiteDetail" resultMap="siteManage"> |
| 142 | 143 |
SELECT A.SITE_ID, A.SITE_URL, A.SITE_NM, A.UPEND_LOGO_FILE_NM, A.LPT_LOGO_FILE_NM, A.ADRES_FILE_NM, A.ADRES_REPLC_TEXT, |
| 143 |
- A.INDVDLINFO_POLICY, A.USE_STPLAT, A.EMAIL_COLCT_POLICY, |
|
| 144 |
+ A.INDVDLINFO_POLICY, A.USE_STPLAT, A.EMAIL_COLCT_POLICY, A.MARKT_POLICY, |
|
| 144 | 145 |
A.LYT_TMPLAT_ID, A.CMY_TMPLAT_ID, A.MOBILE_USE_AT, |
| 145 | 146 |
A.USE_AT, A.ACTVTY_AT, |
| 146 | 147 |
A.FRST_REGISTER_PNTTM , A.FRST_REGISTER_ID, |
... | ... | @@ -262,6 +263,7 @@ |
| 262 | 263 |
, INDVDLINFO_POLICY |
| 263 | 264 |
, USE_STPLAT |
| 264 | 265 |
, EMAIL_COLCT_POLICY |
| 266 |
+ , MARKT_POLICY |
|
| 265 | 267 |
, LYT_TMPLAT_ID |
| 266 | 268 |
, CMY_TMPLAT_ID |
| 267 | 269 |
, MOBILE_USE_AT |
... | ... | @@ -302,6 +304,7 @@ |
| 302 | 304 |
, #{indvdlInfoPolicy}
|
| 303 | 305 |
, #{useStplat}
|
| 304 | 306 |
, #{emailColctPolicy}
|
| 307 |
+ , #{marktPolicy}
|
|
| 305 | 308 |
, #{lytTmplatId}
|
| 306 | 309 |
, #{cmyTmplatId}
|
| 307 | 310 |
, #{mobileUseAt}
|
... | ... | @@ -372,9 +375,18 @@ |
| 372 | 375 |
<if test='sloganReplcText != null and sloganReplcText != ""'> |
| 373 | 376 |
, SLOGAN_REPLC_TEXT = #{sloganReplcText}
|
| 374 | 377 |
</if> |
| 375 |
- , INDVDLINFO_POLICY = #{indvdlInfoPolicy}
|
|
| 376 |
- , USE_STPLAT = #{useStplat}
|
|
| 377 |
- , EMAIL_COLCT_POLICY = #{emailColctPolicy}
|
|
| 378 |
+ <if test='indvdlInfoPolicy != null and indvdlInfoPolicy != ""'> |
|
| 379 |
+ , INDVDLINFO_POLICY = #{indvdlInfoPolicy}
|
|
| 380 |
+ </if> |
|
| 381 |
+ <if test='useStplat != null and useStplat != ""'> |
|
| 382 |
+ , USE_STPLAT = #{useStplat}
|
|
| 383 |
+ </if> |
|
| 384 |
+ <if test='emailColctPolicy != null and emailColctPolicy != ""'> |
|
| 385 |
+ , EMAIL_COLCT_POLICY = #{emailColctPolicy}
|
|
| 386 |
+ </if> |
|
| 387 |
+ <if test='marktPolicy != null and marktPolicy != ""'> |
|
| 388 |
+ , MARKT_POLICY = #{marktPolicy}
|
|
| 389 |
+ </if> |
|
| 378 | 390 |
, MOBILE_USE_AT = #{mobileUseAt}
|
| 379 | 391 |
, ACTVTY_AT = #{actvtyAt}
|
| 380 | 392 |
, LAST_UPDUSR_PNTTM = SYSDATE() |
... | ... | @@ -427,13 +439,22 @@ |
| 427 | 439 |
</update> |
| 428 | 440 |
|
| 429 | 441 |
<update id="updateBatchScrtyPolicy"> |
| 430 |
- UPDATE comtnsiteinfo SET |
|
| 431 |
- INDVDLINFO_POLICY = #{indvdlInfoPolicy}
|
|
| 432 |
- , USE_STPLAT = #{useStplat}
|
|
| 433 |
- , EMAIL_COLCT_POLICY = #{emailColctPolicy}
|
|
| 434 |
- , CPYRHT_STTEMNT_SVC = #{cpyrhtSttemntSvc}
|
|
| 435 |
- , LAST_UPDUSR_PNTTM = SYSDATE() |
|
| 436 |
- , LAST_UPDUSR_ID = #{lastUpdusrId}
|
|
| 442 |
+ UPDATE comtnsiteinfo SET |
|
| 443 |
+ LAST_UPDUSR_PNTTM = NOW() |
|
| 444 |
+ , LAST_UPDUSR_ID = #{lastUpdusrId}
|
|
| 445 |
+ <if test='indvdlInfoPolicy != null and indvdlInfoPolicy != ""'> |
|
| 446 |
+ , INDVDLINFO_POLICY = #{indvdlInfoPolicy}
|
|
| 447 |
+ </if> |
|
| 448 |
+ <if test='useStplat != null and useStplat != ""'> |
|
| 449 |
+ , USE_STPLAT = #{useStplat}
|
|
| 450 |
+ </if> |
|
| 451 |
+ <if test='emailColctPolicy != null and emailColctPolicy != ""'> |
|
| 452 |
+ , EMAIL_COLCT_POLICY = #{emailColctPolicy}
|
|
| 453 |
+ </if> |
|
| 454 |
+ <if test='marktPolicy != null and marktPolicy != ""'> |
|
| 455 |
+ , MARKT_POLICY = #{marktPolicy}
|
|
| 456 |
+ </if> |
|
| 457 |
+ WHERE SITE_ID=#{siteId}
|
|
| 437 | 458 |
</update> |
| 438 | 459 |
|
| 439 | 460 |
<insert id="insertSiteMainContents"> |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/sit/SitePolicy.jsp
... | ... | @@ -0,0 +1,70 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | +<%@ page import="egovframework.com.cmm.service.EgovProperties"%> | |
| 3 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 4 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
| 6 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 7 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 8 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> | |
| 9 | +<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 10 | +<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 11 | +<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | +<c:set var="_C_LIB" value="/resources/lib"/> | |
| 13 | + | |
| 14 | +<c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 15 | + <c:param name="menu" value="SYSTEM_MANAGE"/> | |
| 16 | + <c:param name="depth1" value="SITE_POLICY"/> | |
| 17 | + <c:param name="depth2" value="${searchVO.sysTyCode}"/> | |
| 18 | + <c:param name="title" value="사이트관리"/> | |
| 19 | +</c:import> | |
| 20 | + | |
| 21 | +<script src="${_C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script> | |
| 22 | +<script src="${_C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script> | |
| 23 | +<script> | |
| 24 | +$(document).ready( function() { | |
| 25 | + tinymce.init({ | |
| 26 | + selector: '#policy', | |
| 27 | + language : 'ko_KR', | |
| 28 | + height: 300, | |
| 29 | + menubar: false, | |
| 30 | + statusbar: false, | |
| 31 | + plugins: [ | |
| 32 | + 'advlist autolink lists link image charmap print preview anchor textcolor', | |
| 33 | + 'searchreplace visualblocks code fullscreen', | |
| 34 | + 'insertdatetime media table contextmenu paste code help wordcount' | |
| 35 | + ], | |
| 36 | + toolbar: 'fullscreen | undo redo | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code', | |
| 37 | + content_css: [ | |
| 38 | + '/resources/template/manage/css/default.css' | |
| 39 | + ] | |
| 40 | + }); | |
| 41 | +}); | |
| 42 | +</script> | |
| 43 | +<div id="cntnts"> | |
| 44 | + <c:if test="${USER_INFO.userSe > 10}"> | |
| 45 | + <form name="SiteListForm" action="/mng/sym/sit/selectSiteInfoList.do" method="post"> | |
| 46 | + <div id="bbs_search"> | |
| 47 | + <c:import url="/mng/sym/sit/selectCommonSiteList.do"/> | |
| 48 | + </div> | |
| 49 | + </form> | |
| 50 | + </c:if> | |
| 51 | + | |
| 52 | + <!-- contents start --> | |
| 53 | + <form name="SiteListForm" action="/mng/sym/sit/updateSitePolicy.do" method="post"> | |
| 54 | + <input type="hidden" name="siteId" value="${searchVO.siteId}"/> | |
| 55 | + <input type="hidden" name="sysTyCode" value="${searchVO.sysTyCode}"/> | |
| 56 | + <c:choose> | |
| 57 | + <c:when test="${searchVO.sysTyCode eq 'useStplat'}"><c:set var="text" value="${siteInfo.useStplat}"/></c:when> | |
| 58 | + <c:when test="${searchVO.sysTyCode eq 'indvdlInfoPolicy'}"><c:set var="text" value="${siteInfo.indvdlInfoPolicy}"/></c:when> | |
| 59 | + <c:when test="${searchVO.sysTyCode eq 'marktPolicy'}"><c:set var="text" value="${siteInfo.marktPolicy}"/></c:when> | |
| 60 | + </c:choose> | |
| 61 | + <textarea id="policy" name="${searchVO.sysTyCode}"><c:out value="${text}"/></textarea> | |
| 62 | + | |
| 63 | + <div class="btn_r"> | |
| 64 | + <input type="image" src="${_IMG}/btn/btn_modify.gif" alt="수정"/> | |
| 65 | + </div> | |
| 66 | + | |
| 67 | + </form> | |
| 68 | +</div> | |
| 69 | + | |
| 70 | +<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
... | ... | @@ -15,7 +15,6 @@ |
| 15 | 15 |
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/template/manage/css/default.css'/>"/> |
| 16 | 16 |
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/template/manage/css/page.css?v=1'/>"/> |
| 17 | 17 |
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/template/manage/css/com.css'/>"/> |
| 18 |
-<link type="text/css" href="<c:url value='/resources/template/common/js/jquery/themes/base/jquery.ui.all.css'/>" rel="stylesheet" /> |
|
| 19 | 18 |
<link type="text/css" href="<c:url value='/resources/template/common/js/jquery/css/jquery.timepicker.css'/>" rel="stylesheet" /> |
| 20 | 19 |
<script type="text/javascript" src="<c:url value='/resources/template/common/js/jquery/jquery-1.9.1.min.js'/>"></script> |
| 21 | 20 |
<script type="text/javascript" src="<c:url value='/resources/template/common/js/jquery/jquery-ui.min.js'/>"></script> |
... | ... | @@ -44,11 +43,11 @@ |
| 44 | 43 |
<div id="wrap"> |
| 45 | 44 |
<div id="header"> |
| 46 | 45 |
<div class="topLc"> |
| 47 |
- <h1 class="logo"><a href="<c:url value="/mng/index.do"/>"><img src="<c:url value="${mngimg}/logo_admin.gif"/>" alt="관리자 페이지"/></a></h1>
|
|
| 46 |
+ <h1 class="logo"><a href="<c:url value="/mng/index.do"/>"><img src="${mngimg}/logo_admin.gif" alt="관리자 페이지"/></a></h1>
|
|
| 48 | 47 |
<div id="topMenu"> |
| 49 | 48 |
<ul class="list"> |
| 50 | 49 |
<li><span class="nonBtn"><c:out value="${USER_INFO.name}"/>님</span></li>
|
| 51 |
- <li><a href="<%=egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper.getRedirectLogoutUrl()%>" class="nonBtn"><img src="<c:url value="${mngimg }/btn_logout.gif"/>" alt="로그아웃"/></a></li>
|
|
| 50 |
+ <li><a href="<%=egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper.getRedirectLogoutUrl()%>" class="nonBtn"><img src="${mngimg}/logo_admin.gif" alt="로그아웃"/></a></li>
|
|
| 52 | 51 |
</ul> |
| 53 | 52 |
</div> |
| 54 | 53 |
</div> |
... | ... | @@ -77,9 +76,17 @@ |
| 77 | 76 |
<!-- 좌측메뉴 목록 --> |
| 78 | 77 |
<div id="leftMenu"> |
| 79 | 78 |
<c:choose> |
| 80 |
- <c:when test="${param.menu eq 'SYSTEM_MANAGE' }"> <!-- 환경설정 -->
|
|
| 79 |
+ <c:when test="${param.menu eq 'SYSTEM_MANAGE' }"> <!-- 시스템관리 -->
|
|
| 81 | 80 |
<ul class="list"> |
| 82 | 81 |
<li class="smnu"><a href="<c:url value="/mng/sym/sit/selectSiteInfoList.do"/>" <c:if test="${param.depth1 eq 'SITE_MANAGE' }">class="slt"</c:if>>사이트관리</a></li>
|
| 82 |
+ <li class="smnu"><a href="/mng/sym/sit/sitePolicy.do?sysTyCode=useStplat" <c:if test="${param.depth1 eq 'SITE_POLICY' }">class="slt"</c:if>>약관관리</a>
|
|
| 83 |
+ <ul class="slist"> |
|
| 84 |
+ <li><a href="/mng/sym/sit/sitePolicy.do?sysTyCode=useStplat" <c:if test="${param.depth2 eq 'useStplat' }">class="slt"</c:if>>이용약관</a></li>
|
|
| 85 |
+ <li><a href="/mng/sym/sit/sitePolicy.do?sysTyCode=indvdlInfoPolicy" <c:if test="${param.depth2 eq 'indvdlInfoPolicy' }">class="slt"</c:if>>개인정보처리방침</a></li>
|
|
| 86 |
+ <li><a href="/mng/sym/sit/sitePolicy.do?sysTyCode=marktPolicy" <c:if test="${param.depth2 eq 'marktPolicy' }">class="slt"</c:if>>마케팅광고동의</a></li>
|
|
| 87 |
+ </ul> |
|
| 88 |
+ </li> |
|
| 89 |
+ |
|
| 83 | 90 |
<c:if test="${USER_INFO.userSe > 10}">
|
| 84 | 91 |
<li class="smnu"><a href="<c:url value="/mng/cop/com/selectLytTemplateList.do"/>" <c:if test="${param.depth1 eq 'TMPLAT_MANAGE' }">class="slt"</c:if>>템플릿관리</a></li>
|
| 85 | 92 |
<li class="smnu"><a href="<c:url value="/mng/cop/com/selectLytSourcList.do"/>" <c:if test="${param.depth1 eq 'SOURC_MANAGE' }">class="slt"</c:if>>레이아웃 관리</a></li>
|
... | ... | @@ -132,18 +139,18 @@ |
| 132 | 139 |
|
| 133 | 140 |
<c:when test="${param.menu eq 'MILEAGE_MANAGE' }"> <!-- 마일리지관리 -->
|
| 134 | 141 |
<ul class="list"> |
| 135 |
- <li class="smnu"><a href="<c:url value="/mng/uss/ion/mlg/selectMlginfoList.do"/>" <c:if test="${param.depth1 eq 'MILEAGE_SETUP' }">class="slt"</c:if>>마일리지설정</a></li>
|
|
| 136 |
- <li class="smnu"><a href="<c:url value="/mng/uss/ion/mlg/selectMlgUserlogList.do"/>" <c:if test="${param.depth1 eq 'MILEAGE_LIST' }">class="slt"</c:if>>마일리지 내역</a></li>
|
|
| 137 |
- <li class="smnu"><a href="<c:url value="/mng/rnk/MileageRanking.do"/>" <c:if test="${param.depth1 eq 'RANKING_MILEAGE' }">class="slt"</c:if>>마일리지 TOP 10</a></li>
|
|
| 142 |
+ <li class="smnu"><a href="/mng/uss/ion/mlg/selectMlginfoList.do" <c:if test="${param.depth1 eq 'MILEAGE_SETUP' }">class="slt"</c:if>>마일리지설정</a></li>
|
|
| 143 |
+ <li class="smnu"><a href="/mng/uss/ion/mlg/selectMlgUserlogList.do" <c:if test="${param.depth1 eq 'MILEAGE_LIST' }">class="slt"</c:if>>마일리지 내역</a></li>
|
|
| 144 |
+ <li class="smnu"><a href="/mng/rnk/MileageRanking.do" <c:if test="${param.depth1 eq 'RANKING_MILEAGE' }">class="slt"</c:if>>마일리지 TOP 10</a></li>
|
|
| 138 | 145 |
</ul> |
| 139 | 146 |
</c:when> |
| 140 | 147 |
|
| 141 | 148 |
<c:when test="${param.menu eq 'SMS_MANAGE' }"> <!-- SMS/이메일관리 -->
|
| 142 | 149 |
<ul class="list"> |
| 143 |
- <li class="smnu"><a href="<c:url value="/mng/sms/selectSmsManage.do"/>" <c:if test="${param.depth1 eq 'SMS_SEND' }">class="slt"</c:if>>SMS/이메일관리</a>
|
|
| 150 |
+ <li class="smnu"><a href="/mng/sms/selectSmsManage.do" <c:if test="${param.depth1 eq 'SMS_SEND' }">class="slt"</c:if>>SMS/이메일관리</a>
|
|
| 144 | 151 |
<ul class="slist"> |
| 145 |
- <li><a href="<c:url value="/mng/sms/selectSmsManage.do"/>" <c:if test="${param.depth2 eq 'SMS' }">class="slt"</c:if>>개별메시지전송</a></li>
|
|
| 146 |
- <li><a href="<c:url value="/mng/sms/selectMmsManage.do"/>" <c:if test="${param.depth2 eq 'MMS' }">class="slt"</c:if>>그룹메세지전송</a></li>
|
|
| 152 |
+ <li><a href="/mng/sms/selectSmsManage.do" <c:if test="${param.depth2 eq 'SMS' }">class="slt"</c:if>>개별메시지전송</a></li>
|
|
| 153 |
+ <li><a href="/mng/sms/selectMmsManage.do" <c:if test="${param.depth2 eq 'MMS' }">class="slt"</c:if>>그룹메세지전송</a></li>
|
|
| 147 | 154 |
<!-- <li><a href="<c:url value="/mng/ems/selectEmsManage.do"/>" <c:if test="${param.depth2 eq 'EMS' }">class="slt"</c:if>>이메일전송</a></li> -->
|
| 148 | 155 |
</ul> |
| 149 | 156 |
</li> |
--- base/src/main/webapp/resources/template/.project
... | ... | @@ -1,11 +0,0 @@ |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<projectDescription> | |
| 3 | - <name>Daegudip2011</name> | |
| 4 | - <comment></comment> | |
| 5 | - <projects> | |
| 6 | - </projects> | |
| 7 | - <buildSpec> | |
| 8 | - </buildSpec> | |
| 9 | - <natures> | |
| 10 | - </natures> | |
| 11 | -</projectDescription> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?