+++ src/main/java/itn/com/uss/ion/bnr/sub/service/SubMainZoneManageService.java
... | ... | @@ -0,0 +1,29 @@ |
| 1 | +package itn.com.uss.ion.bnr.sub.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 7 | +import itn.com.uss.ion.pwm.service.PopupManageVO; | |
| 8 | +import itn.com.uss.ion.pwm.service.PopupzoneVO; | |
| 9 | +import itn.com.uss.ion.pwm.service.SocialVO; | |
| 10 | +import itn.com.uss.ion.pwm.service.SortVO; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * 개요 | |
| 14 | + * - 팝업창에 대한 Service Interface를 정의한다. | |
| 15 | + * | |
| 16 | + * 상세내용 | |
| 17 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 18 | + * - 팝업창의 조회기능은 목록조회, 상세조회, 팝업사용자 보기로 구분된다. | |
| 19 | + * @author 이창원 | |
| 20 | + * @version 1.0 | |
| 21 | + * @created 05-8-2009 오후 2:19:58 | |
| 22 | + */ | |
| 23 | +public interface SubMainZoneManageService { | |
| 24 | + | |
| 25 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; | |
| 26 | + | |
| 27 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; | |
| 28 | + | |
| 29 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageDAO.java
... | ... | @@ -0,0 +1,286 @@ |
| 1 | +package itn.com.uss.ion.bnr.sub.service.impl; | |
| 2 | +import java.util.List; | |
| 3 | + | |
| 4 | +import org.springframework.stereotype.Repository; | |
| 5 | + | |
| 6 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 7 | +import itn.com.cmm.service.impl.EgovComAbstractDAO; | |
| 8 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 9 | +import itn.com.uss.ion.pwm.service.PopupManageVO; | |
| 10 | +import itn.com.uss.ion.pwm.service.PopupzoneVO; | |
| 11 | +import itn.com.uss.ion.pwm.service.SocialVO; | |
| 12 | +import itn.com.uss.ion.pwm.service.SortVO; | |
| 13 | + | |
| 14 | +/** | |
| 15 | + * 개요 | |
| 16 | + * - 팝업창에 대한 DAO를 정의한다. | |
| 17 | + * | |
| 18 | + * 상세내용 | |
| 19 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 20 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. | |
| 21 | + * @author 이창원 | |
| 22 | + * @version 1.0 | |
| 23 | + * @created 05-8-2009 오후 2:21:04 | |
| 24 | + */ | |
| 25 | +@Repository("subMainZoneManageDAO") | |
| 26 | +public class SubMainZoneManageDAO extends EgovComAbstractDAO { | |
| 27 | + | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * 메인이미지 목록을 조회한다. | |
| 31 | + * @return 글 목록 | |
| 32 | + * @exception Exception | |
| 33 | + */ | |
| 34 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ | |
| 35 | + return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO); | |
| 36 | + } | |
| 37 | + | |
| 38 | + | |
| 39 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ | |
| 40 | + return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO); | |
| 41 | + } | |
| 42 | +// | |
| 43 | +// public SubMainZoneManageDAO(){} | |
| 44 | +// | |
| 45 | +// /** | |
| 46 | +// * 기 등록된 팝업창정보를 삭제한다. | |
| 47 | +// * @param popupManage - 팝업창 model | |
| 48 | +// * @return boolean - 반영성공 여부 | |
| 49 | +// * | |
| 50 | +// * @param popupManage | |
| 51 | +// */ | |
| 52 | +// public void deletePopup(PopupManageVO popupManageVO) throws Exception { | |
| 53 | +// delete("PopupManage.deletePopupManage", popupManageVO); | |
| 54 | +// } | |
| 55 | +// | |
| 56 | +// /** | |
| 57 | +// * 팝업창정보를 신규로 등록한다. | |
| 58 | +// * @param popupManage - 팝업창 model | |
| 59 | +// * @return boolean - 반영성공 여부 | |
| 60 | +// * | |
| 61 | +// * @param popupManage | |
| 62 | +// */ | |
| 63 | +// public void insertPopup(PopupManageVO popupManageVO) throws Exception { | |
| 64 | +// insert("PopupManage.insertPopupManage", popupManageVO); | |
| 65 | +// } | |
| 66 | +// | |
| 67 | +// /** | |
| 68 | +// * 기 등록된 팝업창정보를 수정한다. | |
| 69 | +// * @param popupManage - 팝업창 model | |
| 70 | +// * @return boolean - 반영성공 여부 | |
| 71 | +// * | |
| 72 | +// * @param popupManage | |
| 73 | +// */ | |
| 74 | +// public void updatePopup(PopupManageVO popupManageVO) throws Exception { | |
| 75 | +// update("PopupManage.updatePopupManage", popupManageVO); | |
| 76 | +// } | |
| 77 | +// | |
| 78 | +// /** | |
| 79 | +// * 팝업창을 사용자 화면에서 볼수 있는 정보들을 조회한다. | |
| 80 | +// * @param popupManageVO - 팝업창 Vo | |
| 81 | +// * @return popupManageVO - 팝업창 Vo | |
| 82 | +// * | |
| 83 | +// * @param popupManageVO | |
| 84 | +// */ | |
| 85 | +// public PopupManageVO selectPopup(PopupManageVO popupManageVO) throws Exception { | |
| 86 | +// return (PopupManageVO)select("PopupManage.selectPopupManageDetail", popupManageVO); | |
| 87 | +// } | |
| 88 | +// | |
| 89 | +// /** | |
| 90 | +// * 팝업창를 관리하기 위해 등록된 팝업창목록을 조회한다. | |
| 91 | +// * @param popupManageVO - 팝업창 Vo | |
| 92 | +// * @return List - 팝업창 목록 | |
| 93 | +// * | |
| 94 | +// * @param popupManageVO | |
| 95 | +// */ | |
| 96 | +// public List<?> selectPopupList(PopupManageVO popupManageVO) throws Exception { | |
| 97 | +// return list("PopupManage.selectPopupManage", popupManageVO); | |
| 98 | +// } | |
| 99 | +// | |
| 100 | +// /** | |
| 101 | +// * 팝업창를 관리하기 위해 등록된 팝업창목록 총갯수를 조회한다. | |
| 102 | +// * @param popupManageVO - 팝업창 Vo | |
| 103 | +// * @return List - 팝업창 목록 | |
| 104 | +// * | |
| 105 | +// * @param popupManageVO | |
| 106 | +// */ | |
| 107 | +// public int selectPopupListCount(PopupManageVO popupManageVO) throws Exception { | |
| 108 | +// return (Integer)select("PopupManage.selectPopupManageCnt", popupManageVO); | |
| 109 | +// } | |
| 110 | +// | |
| 111 | +// /** | |
| 112 | +// * 팝업창를 사용하기 위해 등록된 팝업창목록을 조회한다. | |
| 113 | +// * @param popupManageVO - 팝업창 Vo | |
| 114 | +// * @return List - 팝업창 목록 | |
| 115 | +// * | |
| 116 | +// * @param popupManageVO | |
| 117 | +// */ | |
| 118 | +// public List<?> selectPopupMainList(PopupManageVO popupManageVO) throws Exception { | |
| 119 | +// return list("PopupManage.selectPopupManageMain", popupManageVO); | |
| 120 | +// } | |
| 121 | +// | |
| 122 | +// /** | |
| 123 | +// * 메인알림창 목록을 조회한다. | |
| 124 | +// * @return 글 목록 | |
| 125 | +// * @exception Exception | |
| 126 | +// */ | |
| 127 | +// public List<?> selectPopupzoneList(PopupzoneVO popupzoneVo) throws Exception{ | |
| 128 | +// return list("PopupzoneManage.selectPopupzoneList", popupzoneVo); | |
| 129 | +// } | |
| 130 | +// | |
| 131 | +// /** | |
| 132 | +// * 메인배너 순번정보를 가져온다. | |
| 133 | +// * @param mode - 0:등록 1:수정 | |
| 134 | +// * @return 순번정보 | |
| 135 | +// * @exception Exception | |
| 136 | +// */ | |
| 137 | +// @SuppressWarnings("unchecked") | |
| 138 | +// public List<EgovMap> getSortList() throws Exception{ | |
| 139 | +// return (List<EgovMap>) list("PopupzoneManage.getSortList",null); | |
| 140 | +// } | |
| 141 | +// | |
| 142 | +// public PopupzoneVO selectPopupzoneVO(String pozId) throws Exception { | |
| 143 | +// return (PopupzoneVO)select("PopupzoneManage.selectPopupzoneVO", pozId); | |
| 144 | +// } | |
| 145 | +// | |
| 146 | +// /** | |
| 147 | +// * 메인배너 변경할때 나머지 배너들 순서 변경 | |
| 148 | +// * @param 입력된 sort번호 | |
| 149 | +// * @return 등록 결과 | |
| 150 | +// * @exception Exception | |
| 151 | +// */ | |
| 152 | +// public void updateSortUp(SortVO sortVO) throws Exception{ | |
| 153 | +// update("PopupzoneManage.updateSortUp", sortVO); | |
| 154 | +// } | |
| 155 | +// | |
| 156 | +// public void updateSortDown(SortVO sortVO) throws Exception { | |
| 157 | +// update("PopupzoneManage.updateSortDown", sortVO); | |
| 158 | +// } | |
| 159 | +// | |
| 160 | +// public void updatePopupzone(PopupzoneVO popupzoneVO) throws Exception { | |
| 161 | +// update("PopupzoneManage.updatePopupzone", popupzoneVO); | |
| 162 | +// } | |
| 163 | +// | |
| 164 | +// /** | |
| 165 | +// * 메인알림창을 삭제한다. | |
| 166 | +// * @param pozId - 삭제할 메인알림창 번호 | |
| 167 | +// * @return void형 | |
| 168 | +// * @exception Exception | |
| 169 | +// */ | |
| 170 | +// public void deletePopupzone(String pozId) throws Exception { | |
| 171 | +// delete("PopupzoneManage.deletePopupzone", pozId); | |
| 172 | +// } | |
| 173 | +// | |
| 174 | +// public int getMaxSort() throws Exception{ | |
| 175 | +// return (Integer)select("PopupzoneManage.getMaxSort") ; | |
| 176 | +// } | |
| 177 | +// | |
| 178 | +// /** | |
| 179 | +// * 메인배너의 새로운seq를 가지고온다. | |
| 180 | +// * @return seq | |
| 181 | +// * @exception Exception | |
| 182 | +// */ | |
| 183 | +// public int selectNextSeq() throws Exception{ | |
| 184 | +// return (Integer)select("PopupzoneManage.selectNextSeq"); | |
| 185 | +// } | |
| 186 | +// | |
| 187 | +// public void insertPopupzone(PopupzoneVO popupzoneVO) throws Exception{ | |
| 188 | +// insert("PopupzoneManage.insertPopupzone", popupzoneVO); | |
| 189 | +// } | |
| 190 | +// | |
| 191 | +// public void resetSort(PopupzoneVO popupzoneVO) throws Exception{ | |
| 192 | +// update("PopupzoneManage.resetSort", popupzoneVO); | |
| 193 | +// } | |
| 194 | +// | |
| 195 | +// /** | |
| 196 | +// * 메인이미지 목록을 조회한다. | |
| 197 | +// * @return 글 목록 | |
| 198 | +// * @exception Exception | |
| 199 | +// */ | |
| 200 | +// public List<?> selectMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ | |
| 201 | +// return list("MainzoneManage.selectMainzoneList", mainzoneVO); | |
| 202 | +// } | |
| 203 | +// | |
| 204 | +// public int getMainMaxSort() throws Exception{ | |
| 205 | +// return (Integer)select("MainzoneManage.getMainMaxSort"); | |
| 206 | +// } | |
| 207 | +// | |
| 208 | +// public void insertMainzone(MainzoneVO mainzoneVO) throws Exception{ | |
| 209 | +// insert("MainzoneManage.insertMainzone", mainzoneVO); | |
| 210 | +// } | |
| 211 | +// | |
| 212 | +// public void resetMainSort(MainzoneVO mainzoneVO) throws Exception{ | |
| 213 | +// insert("MainzoneManage.resetMainSort", mainzoneVO); | |
| 214 | +// } | |
| 215 | +// | |
| 216 | +// public void updateMainSortUp(SortVO sortVO) throws Exception{ | |
| 217 | +// update("MainzoneManage.updateMainSortUp", sortVO); | |
| 218 | +// } | |
| 219 | +// | |
| 220 | +// public MainzoneVO selectMainzoneVO(String mazId) throws Exception{ | |
| 221 | +// return (MainzoneVO)select("MainzoneManage.selectMainzoneVO", mazId); | |
| 222 | +// } | |
| 223 | +// | |
| 224 | +// @SuppressWarnings("unchecked") | |
| 225 | +// public List<EgovMap> getMainSortList() throws Exception{ | |
| 226 | +// return (List<EgovMap>) list("MainzoneManage.getMainSortList",null); | |
| 227 | +// } | |
| 228 | +// | |
| 229 | +// public void deleteMainzone(String mazId) throws Exception{ | |
| 230 | +// delete("MainzoneManage.deleteMainzone", mazId); | |
| 231 | +// } | |
| 232 | +// | |
| 233 | +// public void updateMainSortDown(SortVO sortVO) throws Exception{ | |
| 234 | +// update("MainzoneManage.updateMainSortDown", sortVO); | |
| 235 | +// } | |
| 236 | +// | |
| 237 | +// public void updateMainzone(MainzoneVO mainzoneVO) throws Exception{ | |
| 238 | +// update("MainzoneManage.updateMainzone", mainzoneVO); | |
| 239 | +// } | |
| 240 | +// | |
| 241 | +// @SuppressWarnings("unchecked") | |
| 242 | +// public List<MainzoneVO> selectMainzoneListRolling() throws Exception{ | |
| 243 | +// return (List<MainzoneVO>) list("MainzoneManage.selectMainzoneListRolling"); | |
| 244 | +// } | |
| 245 | +// | |
| 246 | +// public int selectPopupzoneListTotCnt(PopupzoneVO popupzoneVo) throws Exception { | |
| 247 | +// return (int)select("PopupzoneManage.selectPopupzoneListTotCnt", popupzoneVo); | |
| 248 | +// } | |
| 249 | +// | |
| 250 | +// public int selectMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ | |
| 251 | +// return (int)select("MainzoneManage.selectMainzoneCount", mainzoneVO); | |
| 252 | +// } | |
| 253 | +// | |
| 254 | +// public void resetVOSort(PopupzoneVO popupzoneVO) throws Exception{ | |
| 255 | +// update("PopupzoneManage.resetVOSort", popupzoneVO); | |
| 256 | +// } | |
| 257 | +// | |
| 258 | +// public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception{ | |
| 259 | +// update("MainzoneManage.resetMainVOSort", mainzoneVO); | |
| 260 | +// } | |
| 261 | +// | |
| 262 | +// @SuppressWarnings("unchecked") | |
| 263 | +// public List<SocialVO> selectSocialList(SocialVO socialVO) throws Exception{ | |
| 264 | +// return (List<SocialVO>) list("SocialManage.selectSocialList",socialVO); | |
| 265 | +// } | |
| 266 | +// | |
| 267 | +// public SocialVO selectSocialVO(String socialId) throws Exception{ | |
| 268 | +// return (SocialVO)select("SocialManage.selectSocialVO", socialId); | |
| 269 | +// } | |
| 270 | +// | |
| 271 | +// public void updateSocial(SocialVO socialVO) throws Exception{ | |
| 272 | +// update("SocialManage.updateSocial", socialVO); | |
| 273 | +// } | |
| 274 | +// | |
| 275 | +// public void resetSocialSort(SocialVO socialVO) throws Exception{ | |
| 276 | +// update("SocialManage.resetSocialSort", socialVO); | |
| 277 | +// } | |
| 278 | +// | |
| 279 | +// public void insertSocial(SocialVO socialVO) throws Exception{ | |
| 280 | +// insert("SocialManage.insertSocial", socialVO); | |
| 281 | +// } | |
| 282 | +// | |
| 283 | +// public void deleteSocial(String id) throws Exception{ | |
| 284 | +// delete("SocialManage.deleteSocial", id); | |
| 285 | +// } | |
| 286 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageServiceImpl.java
... | ... | @@ -0,0 +1,60 @@ |
| 1 | +package itn.com.uss.ion.bnr.sub.service.impl; | |
| 2 | + | |
| 3 | +import java.math.BigDecimal; | |
| 4 | +import java.util.LinkedHashMap; | |
| 5 | +import java.util.List; | |
| 6 | +import java.util.Map; | |
| 7 | + | |
| 8 | +import javax.annotation.Resource; | |
| 9 | + | |
| 10 | +import org.springframework.stereotype.Service; | |
| 11 | + | |
| 12 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 13 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 14 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 15 | +import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; | |
| 16 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 17 | +import itn.com.uss.ion.pwm.service.PopupManageVO; | |
| 18 | +import itn.com.uss.ion.pwm.service.PopupzoneVO; | |
| 19 | +import itn.com.uss.ion.pwm.service.SocialVO; | |
| 20 | +import itn.com.uss.ion.pwm.service.SortVO; | |
| 21 | +import itn.com.uss.ion.pwm.service.impl.PopupManageDAO; | |
| 22 | +import itn.com.uss.ion.pwm.service.impl.PopupzoneManageDAO; | |
| 23 | + | |
| 24 | +/** | |
| 25 | + * 개요 | |
| 26 | + * - 팝업창에 대한 ServiceImpl을 정의한다. | |
| 27 | + * | |
| 28 | + * 상세내용 | |
| 29 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 30 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. | |
| 31 | + * @author 이창원 | |
| 32 | + * @version 1.0 | |
| 33 | + * @created 05-8-2009 오후 2:19:58 | |
| 34 | + */ | |
| 35 | + | |
| 36 | +@Service("subMainZoneManageService") | |
| 37 | +public class SubMainZoneManageServiceImpl extends EgovAbstractServiceImpl implements SubMainZoneManageService { | |
| 38 | + | |
| 39 | + @Resource(name = "subMainZoneManageDAO") | |
| 40 | + public SubMainZoneManageDAO dao; | |
| 41 | + | |
| 42 | + /** PopupzoneManageDAO */ | |
| 43 | + @Resource(name="popupzoneManageDAO") | |
| 44 | + private PopupzoneManageDAO popupzoneManageDAO; | |
| 45 | + | |
| 46 | + @Resource(name = "egovPopupManageIdGnrService") | |
| 47 | + private EgovIdGnrService idgenService; | |
| 48 | + | |
| 49 | + @Override | |
| 50 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception { | |
| 51 | + return dao.selectSubMainzoneList(mainzoneVO); | |
| 52 | + } | |
| 53 | + | |
| 54 | + @Override | |
| 55 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception { | |
| 56 | + return dao.selectSubMainzoneCount(mainzoneVO); | |
| 57 | + } | |
| 58 | + | |
| 59 | + | |
| 60 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java
... | ... | @@ -0,0 +1,1177 @@ |
| 1 | +package itn.com.uss.ion.bnr.sub.web; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import javax.annotation.Resource; | |
| 7 | +import javax.servlet.http.HttpServletRequest; | |
| 8 | +import javax.servlet.http.HttpSession; | |
| 9 | + | |
| 10 | +import org.slf4j.Logger; | |
| 11 | +import org.slf4j.LoggerFactory; | |
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 13 | +import org.springframework.stereotype.Controller; | |
| 14 | +import org.springframework.ui.Model; | |
| 15 | +import org.springframework.ui.ModelMap; | |
| 16 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 17 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 18 | +import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 19 | + | |
| 20 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 21 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 22 | +import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; | |
| 23 | +import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 24 | +import itn.com.cmm.ComDefaultCodeVO; | |
| 25 | +import itn.com.cmm.EgovMessageSource; | |
| 26 | +import itn.com.cmm.LoginVO; | |
| 27 | +import itn.com.cmm.service.EgovCmmUseService; | |
| 28 | +import itn.com.cmm.service.EgovFileMngService; | |
| 29 | +import itn.com.cmm.service.EgovFileMngUtil; | |
| 30 | +import itn.com.cmm.service.FileVO; | |
| 31 | +import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; | |
| 32 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 33 | +import itn.let.sym.site.service.EgovSiteManagerService; | |
| 34 | + | |
| 35 | +/** | |
| 36 | + * 개요 | |
| 37 | + * - 팝업창에 대한 Controller를 정의한다. | |
| 38 | + * | |
| 39 | + * 상세내용 | |
| 40 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 41 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자 화면 보기로 구분된다. | |
| 42 | + * @author 이창원 | |
| 43 | + * @version 1.0 | |
| 44 | + * @created 05-8-2009 오후 2:19:57 | |
| 45 | + * <pre> | |
| 46 | + * << 개정이력(Modification Information) >> | |
| 47 | + * | |
| 48 | + * 수정일 수정자 수정내용 | |
| 49 | + * ------- -------- --------------------------- | |
| 50 | + * 2025.02.24 이호영 최초 생성 | |
| 51 | + * | |
| 52 | + * </pre> | |
| 53 | + */ | |
| 54 | + | |
| 55 | +@Controller | |
| 56 | +public class SubMainZoneManageController { | |
| 57 | + | |
| 58 | + private static final Logger LOGGER = LoggerFactory.getLogger(SubMainZoneManageController.class); | |
| 59 | + | |
| 60 | + @Autowired | |
| 61 | + private DefaultBeanValidator beanValidator; | |
| 62 | + | |
| 63 | + /** EgovMessageSource */ | |
| 64 | + @Resource(name = "egovMessageSource") | |
| 65 | + EgovMessageSource egovMessageSource; | |
| 66 | + | |
| 67 | + /** EgovPropertyService */ | |
| 68 | + @Resource(name = "propertiesService") | |
| 69 | + protected EgovPropertyService propertiesService; | |
| 70 | + | |
| 71 | + /** EgovPopupManageService */ | |
| 72 | + @Resource(name = "subMainZoneManageService") | |
| 73 | + private SubMainZoneManageService egovPopupManageService; | |
| 74 | + | |
| 75 | + /** cmmUseService */ | |
| 76 | + @Resource(name = "EgovCmmUseService") | |
| 77 | + private EgovCmmUseService cmmUseService; | |
| 78 | + | |
| 79 | + @Resource(name="EgovFileMngUtil") | |
| 80 | + private EgovFileMngUtil fileUtil; | |
| 81 | + | |
| 82 | + @Resource(name="EgovFileMngService") | |
| 83 | + private EgovFileMngService fileMngService; | |
| 84 | + | |
| 85 | + @Resource(name = "egovPopupZoneIdGnrService") | |
| 86 | + private EgovIdGnrService idgenService; | |
| 87 | + | |
| 88 | +// @Resource(name = "egovMainZoneIdGnrService") | |
| 89 | +// private EgovIdGnrService idgenServiceMain; | |
| 90 | + | |
| 91 | + @Resource(name = "egovSubMainZoneIdGnrService") | |
| 92 | + private EgovIdGnrService idgenServiceSubMain; | |
| 93 | + | |
| 94 | + @Resource(name = "egovSiteManagerService") | |
| 95 | + EgovSiteManagerService egovSiteManagerService; | |
| 96 | + | |
| 97 | + @Resource(name = "EgovFileMngService") | |
| 98 | + private EgovFileMngService fileService; | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + /*메인이미지 관리*/ | |
| 104 | + @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do") | |
| 105 | +// @RequestMapping(value="/uss/ion/pwm/mainzoneList.do") | |
| 106 | + public String selectMainzoneList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { | |
| 107 | + LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 108 | + | |
| 109 | + | |
| 110 | + if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 | |
| 111 | + mainzoneVO.setPageUnit(8); | |
| 112 | + }else { | |
| 113 | + mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** pageing */ | |
| 117 | + PaginationInfo paginationInfo = new PaginationInfo(); | |
| 118 | + paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); | |
| 119 | + paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); | |
| 120 | + paginationInfo.setPageSize(mainzoneVO.getPageSize()); | |
| 121 | + | |
| 122 | + mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 123 | + mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 124 | + mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 125 | + | |
| 126 | + if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 | |
| 127 | + mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 128 | + } | |
| 129 | + List<?> mainzoneList = egovPopupManageService.selectSubMainzoneList(mainzoneVO); | |
| 130 | + model.addAttribute("mainzoneList", mainzoneList); | |
| 131 | + | |
| 132 | + int totCnt = egovPopupManageService.selectSubMainzoneCount(mainzoneVO); | |
| 133 | + | |
| 134 | + paginationInfo.setTotalRecordCount(totCnt); | |
| 135 | + model.addAttribute("paginationInfo", paginationInfo); | |
| 136 | + | |
| 137 | + return "uss/ion/bnr/sub/subMainZoneList"; | |
| 138 | + } | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + /*알림창등록/수정 view*/ | |
| 143 | + @RequestMapping(value="/uss/ion/bnr/subMainzoneInsert.do") | |
| 144 | + public String subMainzoneInsert(@RequestParam Map<?, ?> commandMap, | |
| 145 | + HttpServletRequest request, Model model, HttpSession session) | |
| 146 | + throws Exception { | |
| 147 | + | |
| 148 | + MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 149 | + | |
| 150 | + //게시기간 시작일자(시) | |
| 151 | +// model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 152 | + //게시기간 시작일자(분) | |
| 153 | +// model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 154 | + //게시기간 종료일자(시) | |
| 155 | +// model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 156 | + //게시기간 종료일자(분) | |
| 157 | +// model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 158 | + | |
| 159 | + | |
| 160 | + //model.addAttribute("sortList", sortList); | |
| 161 | + model.addAttribute("mainzoneVO", mainzoneVO); | |
| 162 | + | |
| 163 | + return "uss/ion/bnr/sub/subMainZoneInsert.jsp"; | |
| 164 | + | |
| 165 | + } | |
| 166 | + | |
| 167 | + /*알림창등록/수정 view*/ | |
| 168 | + @RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do") | |
| 169 | + public String subMainzoneModify(@RequestParam Map<?, ?> commandMap, | |
| 170 | + HttpServletRequest request, Model model, HttpSession session) | |
| 171 | + throws Exception { | |
| 172 | + | |
| 173 | + MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 174 | + if("Modify".equals((String)commandMap.get("pageType"))){ //수정 | |
| 175 | + String mazId = (String)commandMap.get("selectedId"); | |
| 176 | + mainzoneVO = egovPopupManageService.selectMainzoneVO(mazId); | |
| 177 | + String sNtceBgnde = mainzoneVO.getNtceBgnde(); | |
| 178 | + String sNtceEndde = mainzoneVO.getNtceEndde(); | |
| 179 | + | |
| 180 | + if(sNtceBgnde != null && sNtceEndde != null ) { | |
| 181 | + | |
| 182 | + mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); | |
| 183 | + mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); | |
| 184 | + | |
| 185 | + mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); | |
| 186 | + mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); | |
| 187 | + | |
| 188 | + //게시기간 시작일자(시) | |
| 189 | + model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 190 | + //게시기간 시작일자(분) | |
| 191 | + model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 192 | + //게시기간 종료일자(시) | |
| 193 | + model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 194 | + //게시기간 종료일자(분) | |
| 195 | + model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 196 | + | |
| 197 | + | |
| 198 | + } | |
| 199 | + | |
| 200 | + if(mainzoneVO != null){ | |
| 201 | + mainzoneVO.setBeSort(mainzoneVO.getSort()); | |
| 202 | + | |
| 203 | + FileVO fileVO = new FileVO(); | |
| 204 | + String atchFileId = mainzoneVO.getMainzoneImageFile(); | |
| 205 | + fileVO.setAtchFileId(atchFileId); | |
| 206 | + List<FileVO> fileList = fileService.selectFileInfs(fileVO); | |
| 207 | + model.addAttribute("fileList", fileList); | |
| 208 | + } | |
| 209 | + }else{ //등록 | |
| 210 | + | |
| 211 | + //게시기간 시작일자(시) | |
| 212 | + model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 213 | + //게시기간 시작일자(분) | |
| 214 | + model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 215 | + //게시기간 종료일자(시) | |
| 216 | + model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 217 | + //게시기간 종료일자(분) | |
| 218 | + model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 219 | + | |
| 220 | + } | |
| 221 | + | |
| 222 | + //model.addAttribute("sortList", sortList); | |
| 223 | + model.addAttribute("mainzoneVO", mainzoneVO); | |
| 224 | + | |
| 225 | + /* 타겟 코드 */ | |
| 226 | + ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 227 | + vo.setCodeId("COM037"); | |
| 228 | + //List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 229 | + //model.addAttribute("targetList", targetList); | |
| 230 | + | |
| 231 | + return "uss/ion/bnr/sub/subMainZoneModify"; | |
| 232 | + } | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | +// | |
| 273 | +// | |
| 274 | +// | |
| 275 | +// | |
| 276 | +// /** | |
| 277 | +// * 팝업창관리 목록을 조회한다. | |
| 278 | +// * @param popupManageVO | |
| 279 | +// * @param model | |
| 280 | +// * @return "uss/ion/pwm/listPopupManage" | |
| 281 | +// * @throws Exception | |
| 282 | +// */ | |
| 283 | +// @RequestMapping(value = "/uss/ion/pwm/listPopup.do") | |
| 284 | +// public String selectEgovPopupManageList(@RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, ModelMap model , HttpSession session) throws Exception { | |
| 285 | +// | |
| 286 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 287 | +// /** EgovPropertyService.sample */ | |
| 288 | +// | |
| 289 | +// if(popupManageVO.getPageUnit() != 10) { | |
| 290 | +// popupManageVO.setPageUnit(popupManageVO.getPageUnit()); | |
| 291 | +// } | |
| 292 | +// | |
| 293 | +// /** pageing */ | |
| 294 | +// PaginationInfo paginationInfo = new PaginationInfo(); | |
| 295 | +// paginationInfo.setCurrentPageNo(popupManageVO.getPageIndex()); | |
| 296 | +// paginationInfo.setRecordCountPerPage(popupManageVO.getPageUnit()); | |
| 297 | +// paginationInfo.setPageSize(popupManageVO.getPageSize()); | |
| 298 | +// | |
| 299 | +// popupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 300 | +// popupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 301 | +// popupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 302 | +// | |
| 303 | +// if("".equals(popupManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List | |
| 304 | +// popupManageVO.setSearchSortCnd("POPUP_ID"); | |
| 305 | +// popupManageVO.setSearchSortOrd("desc"); | |
| 306 | +// } | |
| 307 | +// List<?> reusltList = egovPopupManageService.selectPopupList(popupManageVO); | |
| 308 | +// model.addAttribute("resultList", reusltList); | |
| 309 | +// | |
| 310 | +// model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword")); | |
| 311 | +// model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition")); | |
| 312 | +// | |
| 313 | +// model.addAttribute("delSttus", popupManageVO.getDelSttus()); | |
| 314 | +// | |
| 315 | +// int totCnt = egovPopupManageService.selectPopupListCount(popupManageVO); | |
| 316 | +// paginationInfo.setTotalRecordCount(totCnt); | |
| 317 | +// model.addAttribute("paginationInfo", paginationInfo); | |
| 318 | +// return "uss/ion/pwm/EgovPopupList"; | |
| 319 | +// } | |
| 320 | + | |
| 321 | +// /** | |
| 322 | +// * 통합링크관리 목록을 상세조회 조회한다. | |
| 323 | +// * @param popupManageVO | |
| 324 | +// * @param commandMap | |
| 325 | +// * @param model | |
| 326 | +// * @return | |
| 327 | +// * "/uss/ion/pwm/detailPopupManage" | |
| 328 | +// * @throws Exception | |
| 329 | +// */ | |
| 330 | +// @RequestMapping(value = "/uss/ion/pwm/detailPopup.do") | |
| 331 | +// public String egovPopupManageDetail(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { | |
| 332 | +// | |
| 333 | +// String sLocationUrl = "uss/ion/pwm/EgovPopupDetail"; | |
| 334 | +// | |
| 335 | +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); | |
| 336 | +// | |
| 337 | +// if (sCmd.equals("del")) { | |
| 338 | +// //egovPopupManageService.deletePopup(popupManageVO); | |
| 339 | +// popupManageVO.setDelSttus("Y"); | |
| 340 | +// try{ | |
| 341 | +// egovPopupManageService.deletePopup(popupManageVO); | |
| 342 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 343 | +// }catch(Exception e){ | |
| 344 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); | |
| 345 | +// } | |
| 346 | +// | |
| 347 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); | |
| 348 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 349 | +// | |
| 350 | +// | |
| 351 | +// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; | |
| 352 | +// } else { | |
| 353 | +// //상세정보 불러오기 | |
| 354 | +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); | |
| 355 | +// model.addAttribute("popupManageVO", popupManageVOs); | |
| 356 | +// } | |
| 357 | +// | |
| 358 | +// return sLocationUrl; | |
| 359 | +// } | |
| 360 | +// | |
| 361 | +// /** | |
| 362 | +// * 통합링크관리를 수정한다. | |
| 363 | +// * @param searchVO | |
| 364 | +// * @param popupManageVO | |
| 365 | +// * @param bindingResult | |
| 366 | +// * @param model | |
| 367 | +// * @return | |
| 368 | +// * "/uss/ion/pwm/updtPopupManage" | |
| 369 | +// * @throws Exception | |
| 370 | +// */ | |
| 371 | +// @RequestMapping(value = "/uss/ion/pwm/updtPopup.do") | |
| 372 | +// public String updateEgovPopupManage(HttpSession session , @RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, BindingResult bindingResult, RedirectAttributes redirectAttributes,ModelMap model) throws Exception { | |
| 373 | +// | |
| 374 | +// // 미인증 사용자에 대한 보안처리 | |
| 375 | +// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); | |
| 376 | +// if(!isAuthenticated) { | |
| 377 | +// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); | |
| 378 | +// return "uat/uia/EgovLoginUsr"; | |
| 379 | +// } | |
| 380 | +// | |
| 381 | +// // 로그인 객체 선언 | |
| 382 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 383 | +// | |
| 384 | +// String sLocationUrl = "uss/ion/pwm/EgovPopupUpdt"; | |
| 385 | +// | |
| 386 | +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); | |
| 387 | +// | |
| 388 | +// //팝업창시작일자(시) | |
| 389 | +// model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 390 | +// //팝업창시작일자(분) | |
| 391 | +// model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 392 | +// //팝업창종료일자(시) | |
| 393 | +// model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 394 | +// //팝업창정료일자(분) | |
| 395 | +// model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 396 | +// | |
| 397 | +// if (sCmd.equals("save")) { | |
| 398 | +// sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; | |
| 399 | +// //서버 validate 체크 | |
| 400 | +// beanValidator.validate(popupManageVO, bindingResult); | |
| 401 | +// if (bindingResult.hasErrors()) { | |
| 402 | +// return sLocationUrl; | |
| 403 | +// } | |
| 404 | +// //아이디 설정 | |
| 405 | +// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); | |
| 406 | +// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); | |
| 407 | +// //저장 | |
| 408 | +// egovPopupManageService.updatePopup(popupManageVO); | |
| 409 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); | |
| 410 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); | |
| 411 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 412 | +// } else { | |
| 413 | +// | |
| 414 | +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); | |
| 415 | +// | |
| 416 | +// String sNtceBgnde = popupManageVOs.getNtceBgnde(); | |
| 417 | +// String sNtceEndde = popupManageVOs.getNtceEndde(); | |
| 418 | +// | |
| 419 | +// popupManageVOs.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); | |
| 420 | +// popupManageVOs.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); | |
| 421 | +// | |
| 422 | +// popupManageVOs.setNtceEnddeHH(sNtceEndde.substring(8, 10)); | |
| 423 | +// popupManageVOs.setNtceEnddeMM(sNtceEndde.substring(10, 12)); | |
| 424 | +// | |
| 425 | +// model.addAttribute("popupManageVO", popupManageVOs); | |
| 426 | +// } | |
| 427 | +// return sLocationUrl; | |
| 428 | +// } | |
| 429 | +// | |
| 430 | +// /** | |
| 431 | +// * 통합링크관리를 등록한다. | |
| 432 | +// * @param searchVO | |
| 433 | +// * @param popupManageVO | |
| 434 | +// * @param bindingResult | |
| 435 | +// * @param model | |
| 436 | +// * @return | |
| 437 | +// * "/uss/ion/pwm/registPopupManage" | |
| 438 | +// * @throws Exception | |
| 439 | +// */ | |
| 440 | +// @RequestMapping(value = "/uss/ion/pwm/egovPopupRegist.do") | |
| 441 | +// public String insertEgovPopupRegist(@RequestParam Map<?, ?> commandMap, @ModelAttribute("popupManageVO") PopupManageVO popupManageVO, BindingResult bindingResult, | |
| 442 | +// RedirectAttributes redirectAttributes ,ModelMap model, HttpSession session ) throws Exception { | |
| 443 | +// | |
| 444 | +// /*if (!EgovDoubleSubmitHelper.checkAndSaveToken()) { | |
| 445 | +// return "forward:/uss/ion/pwm/listPopup.do"; | |
| 446 | +// }*/ | |
| 447 | +// | |
| 448 | +// // 0. Spring Security 사용자권한 처리 | |
| 449 | +// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); | |
| 450 | +// if (!isAuthenticated) { | |
| 451 | +// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); | |
| 452 | +// return "uat/uia/EgovLoginUsr"; | |
| 453 | +// } | |
| 454 | +// | |
| 455 | +// // 로그인 객체 선언 | |
| 456 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 457 | +// | |
| 458 | +// String sLocationUrl = "uss/ion/pwm/EgovPopupRegist"; | |
| 459 | +// | |
| 460 | +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); | |
| 461 | +// LOGGER.info("cmd => {}", sCmd); | |
| 462 | +// | |
| 463 | +// if (sCmd.equals("save")) { | |
| 464 | +// beanValidator.validate(popupManageVO, bindingResult); | |
| 465 | +// if (bindingResult.hasErrors()) { | |
| 466 | +// return sLocationUrl; | |
| 467 | +// } | |
| 468 | +// //아이디 설정 | |
| 469 | +// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); | |
| 470 | +// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); | |
| 471 | +// //저장 | |
| 472 | +// popupManageVO.setNttCn(unscript(popupManageVO.getNttCn())); // XSS 방지 | |
| 473 | +// popupManageVO.setDelSttus("N"); //최초 생성시 삭제여부 N | |
| 474 | +// egovPopupManageService.insertPopup(popupManageVO); | |
| 475 | +// | |
| 476 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 477 | +// popupManageVO.setSiteId(loginVO.getSiteId()); | |
| 478 | +// } | |
| 479 | +// | |
| 480 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); | |
| 481 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); | |
| 482 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 483 | +// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; | |
| 484 | +// } | |
| 485 | +// | |
| 486 | +// //팝업창시작일자(시) | |
| 487 | +// model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 488 | +// //팝업창시작일자(분) | |
| 489 | +// model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 490 | +// //팝업창종료일자(시) | |
| 491 | +// model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 492 | +// //팝업창정료일자(분) | |
| 493 | +// model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 494 | +// return sLocationUrl; | |
| 495 | +// } | |
| 496 | +// | |
| 497 | +// /** | |
| 498 | +// * 팝업창정보를 조회한다. | |
| 499 | +// * @param commandMap | |
| 500 | +// * @param popupManageVO | |
| 501 | +// * @return | |
| 502 | +// * @throws Exception | |
| 503 | +// */ | |
| 504 | +// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfoBack.do") | |
| 505 | +// public void egovPopupManageInfoAjaxBack(@RequestParam Map<?, ?> commandMap, HttpServletResponse response, PopupManageVO popupManageVO) throws Exception { | |
| 506 | +// | |
| 507 | +// response.setHeader("Content-Type", "text/html;charset=utf-8"); | |
| 508 | +// PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8")); | |
| 509 | +// | |
| 510 | +// LOGGER.debug("commandMap : {}", commandMap); | |
| 511 | +// LOGGER.debug("popupManageVO : {}", popupManageVO); | |
| 512 | +// | |
| 513 | +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); | |
| 514 | +// | |
| 515 | +// | |
| 516 | +// String sPrint = ""; | |
| 517 | +// sPrint = popupManageVOs.getFileUrl(); | |
| 518 | +// sPrint = sPrint + "||" + popupManageVOs.getPopupWSize(); | |
| 519 | +// sPrint = sPrint + "||" + popupManageVOs.getPopupHSize(); | |
| 520 | +// sPrint = sPrint + "||" + popupManageVOs.getPopupHlc(); | |
| 521 | +// sPrint = sPrint + "||" + popupManageVOs.getPopupWlc(); | |
| 522 | +// sPrint = sPrint + "||" + popupManageVOs.getStopVewAt(); | |
| 523 | +// sPrint = sPrint + "||" + popupManageVOs.getPopupType(); | |
| 524 | +// out.print(sPrint); | |
| 525 | +// out.flush(); | |
| 526 | +// } | |
| 527 | +// | |
| 528 | +// | |
| 529 | +// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfo.do") | |
| 530 | +// public ModelAndView ajaxPopupManageInfo(@RequestParam Map<String, Object> commandMap) throws Exception { | |
| 531 | +// ModelAndView modelAndView = new ModelAndView(); | |
| 532 | +// modelAndView.setViewName("jsonView"); | |
| 533 | +// | |
| 534 | +// PopupManageVO popupManageVO = new PopupManageVO(); | |
| 535 | +// popupManageVO.setPopupId((String) commandMap.get("popupIds")); | |
| 536 | +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); | |
| 537 | +// modelAndView.addObject("popupManageVOs", popupManageVOs); | |
| 538 | +// return modelAndView; | |
| 539 | +// } | |
| 540 | +// | |
| 541 | +// /** | |
| 542 | +// * 팝업창을 오픈 한다. | |
| 543 | +// * @param commandMap | |
| 544 | +// * @param popupManageVO | |
| 545 | +// * @return | |
| 546 | +// * @throws Exception | |
| 547 | +// */ | |
| 548 | +// @RequestMapping(value = "/uss/ion/pwm/openPopupManage.do") | |
| 549 | +// public String egovPopupManagePopupOpen(@RequestParam("fileUrl") String fileUrl, @RequestParam("stopVewAt") String stopVewAt, @RequestParam("popupId") String popupId, | |
| 550 | +// ModelMap model) throws Exception { | |
| 551 | +// //팝업창이 윈도우일 경우 | |
| 552 | +// //상세정보 불러오기 | |
| 553 | +// | |
| 554 | +// PopupManageVO paramPopupManageVO = new PopupManageVO(); | |
| 555 | +// paramPopupManageVO.setPopupId(popupId); | |
| 556 | +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(paramPopupManageVO); | |
| 557 | +// model.addAttribute("popupManageVO", popupManageVOs); | |
| 558 | +// | |
| 559 | +// model.addAttribute("stopVewAt", stopVewAt); | |
| 560 | +// model.addAttribute("popupId", popupId); | |
| 561 | +// | |
| 562 | +// return fileUrl; | |
| 563 | +// } | |
| 564 | +// | |
| 565 | +// /** | |
| 566 | +// * 팝업창관리 메인 테스트 목록을 조회한다. | |
| 567 | +// * @param popupManageVO | |
| 568 | +// * @param model | |
| 569 | +// * @return "uss/ion/pwm/listMainPopup" | |
| 570 | +// * @throws Exception | |
| 571 | +// */ | |
| 572 | +// @RequestMapping(value = "/uss/ion/pwm/listMainPopup.do") | |
| 573 | +// public String egovPopupManageMainList(PopupManageVO popupManageVO, ModelMap model) throws Exception { | |
| 574 | +// | |
| 575 | +// List<?> reusltList = egovPopupManageService.selectPopupMainList(popupManageVO); | |
| 576 | +// model.addAttribute("resultList", reusltList); | |
| 577 | +// | |
| 578 | +// return "uss/ion/pwm/EgovPopupMainList"; | |
| 579 | +// } | |
| 580 | +// | |
| 581 | +// /** | |
| 582 | +// * 시간을 LIST를 반환한다. | |
| 583 | +// * @return List | |
| 584 | +// * @throws | |
| 585 | +// */ | |
| 586 | +// @SuppressWarnings("unused") | |
| 587 | +// private List<ComDefaultCodeVO> getTimeHH() { | |
| 588 | +// ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>(); | |
| 589 | +// HashMap<?, ?> hmHHMM; | |
| 590 | +// for (int i = 0; i <= 24; i++) { | |
| 591 | +// String sHH = ""; | |
| 592 | +// String strI = String.valueOf(i); | |
| 593 | +// if (i < 10) { | |
| 594 | +// sHH = "0" + strI; | |
| 595 | +// } else { | |
| 596 | +// sHH = strI; | |
| 597 | +// } | |
| 598 | +// | |
| 599 | +// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 600 | +// codeVO.setCode(sHH); | |
| 601 | +// codeVO.setCodeNm(sHH); | |
| 602 | +// | |
| 603 | +// listHH.add(codeVO); | |
| 604 | +// } | |
| 605 | +// | |
| 606 | +// return listHH; | |
| 607 | +// } | |
| 608 | +// | |
| 609 | +// /** | |
| 610 | +// * 분을 LIST를 반환한다. | |
| 611 | +// * @return List | |
| 612 | +// * @throws | |
| 613 | +// */ | |
| 614 | +// @SuppressWarnings("unused") | |
| 615 | +// private List<ComDefaultCodeVO> getTimeMM() { | |
| 616 | +// ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>(); | |
| 617 | +// HashMap<?, ?> hmHHMM; | |
| 618 | +// for (int i = 0; i <= 60; i++) { | |
| 619 | +// | |
| 620 | +// String sMM = ""; | |
| 621 | +// String strI = String.valueOf(i); | |
| 622 | +// if (i < 10) { | |
| 623 | +// sMM = "0" + strI; | |
| 624 | +// } else { | |
| 625 | +// sMM = strI; | |
| 626 | +// } | |
| 627 | +// | |
| 628 | +// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 629 | +// codeVO.setCode(sMM); | |
| 630 | +// codeVO.setCodeNm(sMM); | |
| 631 | +// | |
| 632 | +// listMM.add(codeVO); | |
| 633 | +// } | |
| 634 | +// return listMM; | |
| 635 | +// } | |
| 636 | +// | |
| 637 | +// /** | |
| 638 | +// * 0을 붙여 반환 | |
| 639 | +// * @return String | |
| 640 | +// * @throws | |
| 641 | +// */ | |
| 642 | +// public String dateTypeIntForString(int iInput) { | |
| 643 | +// String sOutput = ""; | |
| 644 | +// if (Integer.toString(iInput).length() == 1) { | |
| 645 | +// sOutput = "0" + Integer.toString(iInput); | |
| 646 | +// } else { | |
| 647 | +// sOutput = Integer.toString(iInput); | |
| 648 | +// } | |
| 649 | +// | |
| 650 | +// return sOutput; | |
| 651 | +// } | |
| 652 | +// | |
| 653 | +// /** | |
| 654 | +// * XSS 방지 처리. | |
| 655 | +// * | |
| 656 | +// * @param data | |
| 657 | +// * @return | |
| 658 | +// */ | |
| 659 | +// protected String unscript(String data) { | |
| 660 | +// if (data == null || data.trim().equals("")) { | |
| 661 | +// return ""; | |
| 662 | +// } | |
| 663 | +// | |
| 664 | +// String ret = data; | |
| 665 | +// | |
| 666 | +// ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); | |
| 667 | +// ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script"); | |
| 668 | +// | |
| 669 | +// ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object"); | |
| 670 | +// ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object"); | |
| 671 | +// | |
| 672 | +// ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet"); | |
| 673 | +// ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet"); | |
| 674 | +// | |
| 675 | +// ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 676 | +// ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 677 | +// | |
| 678 | +// ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 679 | +// ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 680 | +// | |
| 681 | +// return ret; | |
| 682 | +// } | |
| 683 | +// | |
| 684 | +// /*알림창괸리*/ | |
| 685 | +// @RequestMapping(value="/uss/ion/pwm/popupzoneList.do") | |
| 686 | +// public String selectPopupZoneList(ModelMap model , @ModelAttribute("searchVO") PopupzoneVO popupzoneVo, HttpSession session) | |
| 687 | +// throws Exception { | |
| 688 | +// | |
| 689 | +// /** paging */ | |
| 690 | +// if(popupzoneVo.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 | |
| 691 | +// popupzoneVo.setPageUnit(8); | |
| 692 | +// }else { | |
| 693 | +// popupzoneVo.setPageUnit(popupzoneVo.getPageUnit()); | |
| 694 | +// } | |
| 695 | +// | |
| 696 | +// PaginationInfo paginationInfo = new PaginationInfo(); | |
| 697 | +// paginationInfo.setCurrentPageNo(popupzoneVo.getPageIndex()); | |
| 698 | +// paginationInfo.setRecordCountPerPage(popupzoneVo.getPageUnit()); | |
| 699 | +// paginationInfo.setPageSize(popupzoneVo.getPageSize()); | |
| 700 | +// | |
| 701 | +// popupzoneVo.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 702 | +// popupzoneVo.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 703 | +// popupzoneVo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 704 | +// | |
| 705 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 706 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 707 | +// popupzoneVo.setSiteId(loginVO.getSiteId()); | |
| 708 | +// } | |
| 709 | +// | |
| 710 | +// /** 알림창괸리 */ | |
| 711 | +// if("".equals(popupzoneVo.getSearchSortCnd())){ //최초조회시 최신것 조회List | |
| 712 | +// popupzoneVo.setSearchSortCnd("SORT"); | |
| 713 | +// popupzoneVo.setSearchSortOrd("asc"); | |
| 714 | +// } | |
| 715 | +// List<?> popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo); | |
| 716 | +// model.addAttribute("popupzoneList", popupzoneList); | |
| 717 | +// | |
| 718 | +// /* 타겟 코드 */ | |
| 719 | +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 720 | +// vo.setCodeId("COM037"); | |
| 721 | +// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 722 | +// model.addAttribute("targetList", targetList); | |
| 723 | +// | |
| 724 | +// /*메인이미지 코드*/ | |
| 725 | +// vo.setCodeId("ITN008"); | |
| 726 | +// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); | |
| 727 | +// model.addAttribute("imgCodeList", imgCode); | |
| 728 | +// | |
| 729 | +// int totCnt = egovPopupManageService.selectPopupzoneListTotCnt(popupzoneVo); | |
| 730 | +// paginationInfo.setTotalRecordCount(totCnt); | |
| 731 | +// model.addAttribute("paginationInfo", paginationInfo); | |
| 732 | +// return "uss/ion/pwm/PopupzoneList"; | |
| 733 | +// } | |
| 734 | +// | |
| 735 | +// /*알림창수정 view*/ | |
| 736 | +// @RequestMapping(value="/uss/ion/pwm/popupzoneModify.do") | |
| 737 | +// public String updatePopupZoneView(@RequestParam Map<?, ?> commandMap, | |
| 738 | +// HttpServletRequest request, Model model , HttpSession session) | |
| 739 | +// throws Exception { | |
| 740 | +// | |
| 741 | +// PopupzoneVO popupzoneVO = new PopupzoneVO(); | |
| 742 | +// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 | |
| 743 | +// String pozId = (String)commandMap.get("selectedId"); | |
| 744 | +// popupzoneVO = egovPopupManageService.selectPopupzoneVO(pozId); | |
| 745 | +// if(popupzoneVO != null){ | |
| 746 | +// popupzoneVO.setBeSort(popupzoneVO.getSort()); | |
| 747 | +// FileVO fileVO = new FileVO(); | |
| 748 | +// String atchFileId = popupzoneVO.getPopupzoneImageFile(); | |
| 749 | +// fileVO.setAtchFileId(atchFileId); | |
| 750 | +// List<FileVO> fileList = fileService.selectFileInfs(fileVO); | |
| 751 | +// model.addAttribute("fileList", fileList); | |
| 752 | +// } | |
| 753 | +// }else{ //등록 | |
| 754 | +// } | |
| 755 | +// | |
| 756 | +// if(null != commandMap.get("seCd")){ | |
| 757 | +// popupzoneVO.setSeCd((String)(commandMap.get("seCd"))); | |
| 758 | +// } | |
| 759 | +// | |
| 760 | +// model.addAttribute("popupzoneVO", popupzoneVO); | |
| 761 | +// | |
| 762 | +// /* 타겟 코드 */ | |
| 763 | +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 764 | +// vo.setCodeId("COM037"); | |
| 765 | +// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 766 | +// model.addAttribute("targetList", targetList); | |
| 767 | +// | |
| 768 | +// /*메인이미지 코드*/ | |
| 769 | +// vo.setCodeId("ITN008"); | |
| 770 | +// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); | |
| 771 | +// model.addAttribute("imgCodeList", imgCode); | |
| 772 | +// return "uss/ion/pwm/PopupZoneModify"; | |
| 773 | +// } | |
| 774 | +// | |
| 775 | +// /*알림창수정 */ | |
| 776 | +// @RequestMapping("/uss/ion/pwm/popupzoneUpdate.do") | |
| 777 | +// public String updatePopupzone( | |
| 778 | +// @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, | |
| 779 | +// final MultipartHttpServletRequest multiRequest, | |
| 780 | +// HttpServletRequest request, | |
| 781 | +// RedirectAttributes redirectAttributes, | |
| 782 | +// HttpServletResponse response,Model model) | |
| 783 | +// throws Exception { | |
| 784 | +// //popupzoneVO.setUpfile(managementPopupzoneFile(popupzoneVO.getSeq(),popupzoneVO.getUpfile(),multiRequest)); | |
| 785 | +// | |
| 786 | +// /*SortVO sortVO = new SortVO(); | |
| 787 | +// | |
| 788 | +// if(odl_popupzoneVO.getSort() > popupzoneVO.getSort()){ | |
| 789 | +// sortVO.setStartSort(popupzoneVO.getSort()); | |
| 790 | +// sortVO.setEndSort(odl_popupzoneVO.getSort()); | |
| 791 | +// egovPopupManageService.updateSortUp(sortVO); | |
| 792 | +// } | |
| 793 | +// else if(odl_popupzoneVO.getSort() < popupzoneVO.getSort()) { | |
| 794 | +// sortVO.setStartSort(odl_popupzoneVO.getSort()); | |
| 795 | +// sortVO.setEndSort(popupzoneVO.getSort()); | |
| 796 | +// egovPopupManageService.updateSortDown(sortVO); | |
| 797 | +// }*/ | |
| 798 | +// | |
| 799 | +// /*파일등록 */ | |
| 800 | +// List<FileVO> result = null; | |
| 801 | +// String uploadFolder = ""; | |
| 802 | +// String orignlFileNm = ""; | |
| 803 | +// String atchFileId = ""; | |
| 804 | +// final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 805 | +// | |
| 806 | +// if (!files.isEmpty()){ | |
| 807 | +// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); | |
| 808 | +// atchFileId = fileMngService.insertFileInfs(result); | |
| 809 | +// FileVO vo = null; | |
| 810 | +// Iterator<FileVO> iter = result.iterator(); | |
| 811 | +// while (iter.hasNext()) { | |
| 812 | +// vo = iter.next(); | |
| 813 | +// orignlFileNm = vo.getOrignlFileNm(); | |
| 814 | +// atchFileId = vo.getAtchFileId(); | |
| 815 | +// } | |
| 816 | +// if (vo == null) { | |
| 817 | +// } else { | |
| 818 | +// popupzoneVO.setPopupzoneImage(orignlFileNm); | |
| 819 | +// popupzoneVO.setPopupzoneImageFile(atchFileId); | |
| 820 | +// } | |
| 821 | +// } | |
| 822 | +// | |
| 823 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 824 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 825 | +// popupzoneVO.setSiteId(loginVO.getSiteId()); | |
| 826 | +// } | |
| 827 | +// popupzoneVO.setRegisterId(loginVO.getUniqId()); | |
| 828 | +// egovPopupManageService.updatePopupzone(popupzoneVO); | |
| 829 | +// | |
| 830 | +// if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 | |
| 831 | +// popupzoneVO.setSortOver("D"); | |
| 832 | +// } | |
| 833 | +// egovPopupManageService.resetVOSort(popupzoneVO); | |
| 834 | +// | |
| 835 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); | |
| 836 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); | |
| 837 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 838 | +// // return "forward:/uss/ion/pwm/popupzoneList.do"; | |
| 839 | +// } | |
| 840 | +// | |
| 841 | +// /*알림창삭제 */ | |
| 842 | +// @RequestMapping("/uss/ion/pwm/popupzoneListDelete.do") | |
| 843 | +// public String deletePopupzone(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , @RequestParam Map<?, ?> commandMap , Model model) throws Exception { | |
| 844 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 845 | +// PopupzoneVO popupzoneVO = new PopupzoneVO(); | |
| 846 | +// for(String id:del) { | |
| 847 | +// try{ | |
| 848 | +// popupzoneVO = egovPopupManageService.selectPopupzoneVO(id); | |
| 849 | +// }catch(Exception e){ | |
| 850 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); | |
| 851 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"); | |
| 852 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 853 | +// } | |
| 854 | +// egovPopupManageService.deletePopupzone(id); | |
| 855 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ | |
| 856 | +// popupzoneVO.setSiteId(loginVO.getSiteId()); | |
| 857 | +// } | |
| 858 | +// egovPopupManageService.resetSort(popupzoneVO); | |
| 859 | +// } | |
| 860 | +// | |
| 861 | +// String paramSeCd = ""; | |
| 862 | +// if(null != commandMap.get("seCd")) { | |
| 863 | +// paramSeCd = "?seCd="+(String)commandMap.get("seCd") ; | |
| 864 | +// } | |
| 865 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 866 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"+paramSeCd); | |
| 867 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 868 | +// } | |
| 869 | +// | |
| 870 | +// /* 알림창 등록 */ | |
| 871 | +// @RequestMapping("/uss/ion/pwm/popupzoneInsert.do") | |
| 872 | +// public String insertPopupzone( @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes, | |
| 873 | +// HttpServletRequest request, HttpServletResponse response,Model model) | |
| 874 | +// throws Exception { | |
| 875 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 876 | +// String pozId = idgenService.getNextStringId(); | |
| 877 | +// popupzoneVO.setPozId(pozId); | |
| 878 | +// | |
| 879 | +// /*파일등록 */ | |
| 880 | +// List<FileVO> result = null; | |
| 881 | +// String uploadFolder = ""; | |
| 882 | +// String orignlFileNm = ""; | |
| 883 | +// String atchFileId = ""; | |
| 884 | +// final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 885 | +// if (!files.isEmpty()){ | |
| 886 | +// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); | |
| 887 | +// atchFileId = fileMngService.insertFileInfs(result); | |
| 888 | +// FileVO vo = null; | |
| 889 | +// Iterator<FileVO> iter = result.iterator(); | |
| 890 | +// while (iter.hasNext()) { | |
| 891 | +// vo = iter.next(); | |
| 892 | +// orignlFileNm = vo.getOrignlFileNm(); | |
| 893 | +// atchFileId = vo.getAtchFileId(); | |
| 894 | +// } | |
| 895 | +// if (vo == null) { | |
| 896 | +// } else { | |
| 897 | +// popupzoneVO.setPopupzoneImage(orignlFileNm); | |
| 898 | +// popupzoneVO.setPopupzoneImageFile(atchFileId); | |
| 899 | +// } | |
| 900 | +// } | |
| 901 | +// | |
| 902 | +// popupzoneVO.setRegisterId(loginVO.getUniqId()); | |
| 903 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 904 | +// popupzoneVO.setSiteId(loginVO.getSiteId()); | |
| 905 | +// } | |
| 906 | +// | |
| 907 | +// egovPopupManageService.insertPopupzone(popupzoneVO); | |
| 908 | +// //sort 1부터 재 정렬 | |
| 909 | +// popupzoneVO.setSortOver("D"); | |
| 910 | +// egovPopupManageService.resetSort(popupzoneVO); | |
| 911 | +// | |
| 912 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); | |
| 913 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); | |
| 914 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 915 | +// //return "forward:/uss/ion/pwm/popupzoneList.do"; | |
| 916 | +// } | |
| 917 | +// | |
| 918 | +// /* 메인이미지 등록 */ | |
| 919 | +// @RequestMapping("/uss/ion/pwm/mainzoneInsert.do") | |
| 920 | +// public String insertMainzone( @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, final MultipartHttpServletRequest multiRequest, | |
| 921 | +// HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes , Model model) | |
| 922 | +// throws Exception { | |
| 923 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 924 | +// | |
| 925 | +// String mainId = idgenServiceMain.getNextStringId(); | |
| 926 | +// mainzoneVO.setMazId(mainId); | |
| 927 | +// mainzoneVO.setRegisterId(loginVO.getUniqId()); | |
| 928 | +// //SortVO sortVO = new SortVO(); | |
| 929 | +// //sortVO.setStartSort(mainzoneVO.getSort()); | |
| 930 | +// //sortVO.setEndSort(egovPopupManageService.getMainMaxSort()); | |
| 931 | +// | |
| 932 | +// /*파일등록 */ | |
| 933 | +// List<FileVO> result = null; | |
| 934 | +// String uploadFolder = ""; | |
| 935 | +// String orignlFileNm = ""; | |
| 936 | +// String atchFileId = ""; | |
| 937 | +// final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 938 | +// if (!files.isEmpty()){ | |
| 939 | +// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); | |
| 940 | +// atchFileId = fileMngService.insertFileInfs(result); | |
| 941 | +// FileVO vo = null; | |
| 942 | +// Iterator<FileVO> iter = result.iterator(); | |
| 943 | +// while (iter.hasNext()) { | |
| 944 | +// vo = iter.next(); | |
| 945 | +// orignlFileNm = vo.getOrignlFileNm(); | |
| 946 | +// atchFileId = vo.getAtchFileId(); | |
| 947 | +// } | |
| 948 | +// if (vo == null) { | |
| 949 | +// } else { | |
| 950 | +// mainzoneVO.setMainzoneImage(orignlFileNm); | |
| 951 | +// mainzoneVO.setMainzoneImageFile(atchFileId); | |
| 952 | +// } | |
| 953 | +// } | |
| 954 | +// | |
| 955 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 956 | +// mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 957 | +// } | |
| 958 | +// | |
| 959 | +// egovPopupManageService.insertMainzone(mainzoneVO); | |
| 960 | +// //sort 1부터 재 정렬 | |
| 961 | +// mainzoneVO.setSortOver("D"); //앞쪽에 넣음 | |
| 962 | +// egovPopupManageService.resetMainVOSort(mainzoneVO); | |
| 963 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); | |
| 964 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); | |
| 965 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 966 | +// //return "forward:/uss/ion/pwm/mainzoneList.do"; | |
| 967 | +// } | |
| 968 | +// | |
| 969 | +// | |
| 970 | +// /*메인 이미지삭제 */ | |
| 971 | +// @RequestMapping("/uss/ion/pwm/mainzoneListDelete.do") | |
| 972 | +// public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { | |
| 973 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 974 | +// MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 975 | +// for(String id:del) { | |
| 976 | +// try{ | |
| 977 | +// mainzoneVO = egovPopupManageService.selectMainzoneVO(id); | |
| 978 | +// }catch(Exception e){ | |
| 979 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); | |
| 980 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); | |
| 981 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 982 | +// } | |
| 983 | +// egovPopupManageService.deleteMainzone(id); | |
| 984 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ | |
| 985 | +// mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 986 | +// } | |
| 987 | +// egovPopupManageService.resetMainVOSort(mainzoneVO); | |
| 988 | +// } | |
| 989 | +// | |
| 990 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 991 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); | |
| 992 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 993 | +// } | |
| 994 | +// | |
| 995 | +// | |
| 996 | +// /*알림창수정 */ | |
| 997 | +// @RequestMapping("/uss/ion/pwm/mainzoneUpdate.do") | |
| 998 | +// public String updateMainzone( | |
| 999 | +// @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, | |
| 1000 | +// final MultipartHttpServletRequest multiRequest, | |
| 1001 | +// HttpServletRequest request, | |
| 1002 | +// RedirectAttributes redirectAttributes, | |
| 1003 | +// HttpServletResponse response,Model model) | |
| 1004 | +// throws Exception { | |
| 1005 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 1006 | +// | |
| 1007 | +// /*파일등록 */ | |
| 1008 | +// List<FileVO> result = null; | |
| 1009 | +// String uploadFolder = ""; | |
| 1010 | +// String orignlFileNm = ""; | |
| 1011 | +// String atchFileId = ""; | |
| 1012 | +// final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 1013 | +// | |
| 1014 | +// if (!files.isEmpty()){ | |
| 1015 | +// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); | |
| 1016 | +// atchFileId = fileMngService.insertFileInfs(result); | |
| 1017 | +// FileVO vo = null; | |
| 1018 | +// Iterator<FileVO> iter = result.iterator(); | |
| 1019 | +// while (iter.hasNext()) { | |
| 1020 | +// vo = iter.next(); | |
| 1021 | +// orignlFileNm = vo.getOrignlFileNm(); | |
| 1022 | +// atchFileId = vo.getAtchFileId(); | |
| 1023 | +// } | |
| 1024 | +// if (vo == null) { | |
| 1025 | +// } else { | |
| 1026 | +// mainzoneVO.setMainzoneImage(orignlFileNm); | |
| 1027 | +// mainzoneVO.setMainzoneImageFile(atchFileId); | |
| 1028 | +// } | |
| 1029 | +// } | |
| 1030 | +// mainzoneVO.setRegisterId(loginVO.getUniqId()); | |
| 1031 | +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 | |
| 1032 | +// mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 1033 | +// } | |
| 1034 | +// | |
| 1035 | +// egovPopupManageService.updateMainzone(mainzoneVO); | |
| 1036 | +// | |
| 1037 | +// //sort 1부터 재 정렬 | |
| 1038 | +// if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 | |
| 1039 | +// mainzoneVO.setSortOver("D"); | |
| 1040 | +// } | |
| 1041 | +// egovPopupManageService.resetMainVOSort(mainzoneVO); | |
| 1042 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); | |
| 1043 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); | |
| 1044 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 1045 | +// } | |
| 1046 | +// | |
| 1047 | +// /** | |
| 1048 | +// * 통합링크관리 목록을 상세조회 조회한다. | |
| 1049 | +// * @param popupManageVO | |
| 1050 | +// * @param commandMap | |
| 1051 | +// * @param model | |
| 1052 | +// * @return | |
| 1053 | +// * "/uss/ion/pwm/detailPopupManage" | |
| 1054 | +// * @throws Exception | |
| 1055 | +// */ | |
| 1056 | +// @RequestMapping(value = "/uss/ion/bnr/removePopupList.do") | |
| 1057 | +// public String deletePopupList(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, @RequestParam("checkList") String[] checkList, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { | |
| 1058 | +// try{ | |
| 1059 | +// for(String id:checkList) { | |
| 1060 | +// popupManageVO.setPopupId(id); | |
| 1061 | +// popupManageVO.setDelSttus("Y"); | |
| 1062 | +// egovPopupManageService.deletePopup(popupManageVO); | |
| 1063 | +// } | |
| 1064 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 1065 | +// }catch (Exception e) { | |
| 1066 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); | |
| 1067 | +// } | |
| 1068 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); | |
| 1069 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 1070 | +// } | |
| 1071 | +// | |
| 1072 | +// | |
| 1073 | +// | |
| 1074 | +// /*소셜허브괸리*/ | |
| 1075 | +// @RequestMapping(value="/uss/ion/pwm/socialList.do") | |
| 1076 | +// public String selectSocialList(ModelMap model , @ModelAttribute("searchVO") SocialVO socialVO, HttpSession session) | |
| 1077 | +// throws Exception { | |
| 1078 | +// | |
| 1079 | +// /** paging */ | |
| 1080 | +// if(socialVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 | |
| 1081 | +// socialVO.setPageUnit(8); | |
| 1082 | +// }else { | |
| 1083 | +// socialVO.setPageUnit(socialVO.getPageUnit()); | |
| 1084 | +// } | |
| 1085 | +// | |
| 1086 | +// PaginationInfo paginationInfo = new PaginationInfo(); | |
| 1087 | +// paginationInfo.setCurrentPageNo(socialVO.getPageIndex()); | |
| 1088 | +// paginationInfo.setRecordCountPerPage(socialVO.getPageUnit()); | |
| 1089 | +// paginationInfo.setPageSize(socialVO.getPageSize()); | |
| 1090 | +// | |
| 1091 | +// socialVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 1092 | +// socialVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 1093 | +// socialVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 1094 | +// | |
| 1095 | +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 1096 | +// | |
| 1097 | +// /** 소설괸리 */ | |
| 1098 | +// if("".equals(socialVO.getSearchSortCnd())){ //최초조회시 최신것 조회List | |
| 1099 | +// socialVO.setSearchSortCnd("SORT"); | |
| 1100 | +// socialVO.setSearchSortOrd("asc"); | |
| 1101 | +// } | |
| 1102 | +// List<SocialVO> socialList = egovPopupManageService.selectSocialList(socialVO); | |
| 1103 | +// model.addAttribute("socialList", socialList); | |
| 1104 | +// | |
| 1105 | +// /* 타겟 코드 */ | |
| 1106 | +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 1107 | +// vo.setCodeId("COM037"); | |
| 1108 | +// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 1109 | +// model.addAttribute("targetList", targetList); | |
| 1110 | +// | |
| 1111 | +// /*메인이미지 코드*/ | |
| 1112 | +// vo.setCodeId("ITN016"); | |
| 1113 | +// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); | |
| 1114 | +// model.addAttribute("imgCodeList", imgCode); | |
| 1115 | +// | |
| 1116 | +// paginationInfo.setTotalRecordCount(socialList.size()> 0 ? ((SocialVO)socialList.get(0)).getTotCnt() : 0); | |
| 1117 | +// model.addAttribute("paginationInfo", paginationInfo); | |
| 1118 | +// return "uss/ion/pwm/SocialList"; | |
| 1119 | +// } | |
| 1120 | +// | |
| 1121 | +// | |
| 1122 | +// | |
| 1123 | +// /*소셜창수정 view*/ | |
| 1124 | +// @RequestMapping(value="/uss/ion/pwm/socialModify.do") | |
| 1125 | +// public String updateSocialModifyView(@RequestParam Map<?, ?> commandMap, | |
| 1126 | +// HttpServletRequest request, Model model , HttpSession session) | |
| 1127 | +// throws Exception { | |
| 1128 | +// | |
| 1129 | +// SocialVO socialVO = new SocialVO(); | |
| 1130 | +// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 | |
| 1131 | +// String socialId = (String)commandMap.get("selectedId"); | |
| 1132 | +// //socialVO = egovPopupManageService.selectPopupzoneVO(pozId); | |
| 1133 | +// socialVO = egovPopupManageService.selectSocialVO(socialId); | |
| 1134 | +// if(socialVO != null){ | |
| 1135 | +// socialVO.setBeSort(socialVO.getSort()); | |
| 1136 | +// FileVO fileVO = new FileVO(); | |
| 1137 | +// String atchFileId = socialVO.getSocialImageFile(); | |
| 1138 | +// fileVO.setAtchFileId(atchFileId); | |
| 1139 | +// List<FileVO> fileList = fileService.selectFileInfs(fileVO); | |
| 1140 | +// model.addAttribute("fileList", fileList); | |
| 1141 | +// } | |
| 1142 | +// }else{ //등록 | |
| 1143 | +// } | |
| 1144 | +// | |
| 1145 | +// model.addAttribute("socialVO", socialVO); | |
| 1146 | +// | |
| 1147 | +// /* 타겟 코드 */ | |
| 1148 | +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 1149 | +// vo.setCodeId("COM037"); | |
| 1150 | +// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 1151 | +// model.addAttribute("targetList", targetList); | |
| 1152 | +// | |
| 1153 | +// /*소셜허브종류 코드*/ | |
| 1154 | +// vo.setCodeId("ITN016"); | |
| 1155 | +// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); | |
| 1156 | +// model.addAttribute("imgCodeList", imgCode); | |
| 1157 | +// //return "uss/ion/pwm/PopupZoneModify"; | |
| 1158 | +// return "uss/ion/pwm/SocialModify"; | |
| 1159 | +// } | |
| 1160 | +// | |
| 1161 | +// @RequestMapping(value = "/uss/ion/pwm/socialDelete.do") | |
| 1162 | +// public String deleteSocial(@RequestParam Map<?, ?> commandMap, @RequestParam("del") String[] del , RedirectAttributes redirectAttributes, ModelMap model) throws Exception { | |
| 1163 | +// try{ | |
| 1164 | +// for(String id:del) { | |
| 1165 | +// egovPopupManageService.deleteSocial(id); | |
| 1166 | +// } | |
| 1167 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 1168 | +// }catch (Exception e) { | |
| 1169 | +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); | |
| 1170 | +// } | |
| 1171 | +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/socialList.do"); | |
| 1172 | +// return redirectUrlMaker.getRedirectUrl(); | |
| 1173 | +// } | |
| 1174 | +// | |
| 1175 | +// | |
| 1176 | +// | |
| 1177 | +}(No newline at end of file) |
--- src/main/resources/egovframework/spring/com/context-idgen.xml
+++ src/main/resources/egovframework/spring/com/context-idgen.xml
... | ... | @@ -2002,6 +2002,24 @@ |
| 2002 | 2002 |
<property name="fillChar" value="0" /> |
| 2003 | 2003 |
</bean> |
| 2004 | 2004 |
|
| 2005 |
+ <!-- 알림이미지 ID Generation Strategy Config --> |
|
| 2006 |
+ <bean name="egovSubMainZoneIdGnrService" |
|
| 2007 |
+ class="egovframework.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" |
|
| 2008 |
+ destroy-method="destroy"> |
|
| 2009 |
+ <property name="dataSource" ref="dataSource" /> |
|
| 2010 |
+ <property name="strategy" ref="subMainZoneStrategy" /> |
|
| 2011 |
+ <property name="blockSize" value="10"/> |
|
| 2012 |
+ <property name="table" value="IDS"/> |
|
| 2013 |
+ <property name="tableName" value="MAZ_S_ID"/> |
|
| 2014 |
+ </bean> |
|
| 2015 |
+ <!-- 메인상단 이미지 ID Generation Strategy Config --> |
|
| 2016 |
+ <bean name="subMainZoneStrategy" |
|
| 2017 |
+ class="egovframework.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> |
|
| 2018 |
+ <property name="prefix" value="MAZS_" /> |
|
| 2019 |
+ <property name="cipers" value="12" /> |
|
| 2020 |
+ <property name="fillChar" value="0" /> |
|
| 2021 |
+ </bean> |
|
| 2022 |
+ |
|
| 2005 | 2023 |
|
| 2006 | 2024 |
<!-- 컨텐츠 관리 ID Generation Strategy Config --> |
| 2007 | 2025 |
<bean name="egovCntManageIdGnrService" |
--- src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql-uss-ion-bnr.xml
+++ src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql-uss-ion-bnr.xml
... | ... | @@ -4,4 +4,5 @@ |
| 4 | 4 |
|
| 5 | 5 |
<sqlMapConfig> |
| 6 | 6 |
<sqlMap resource="egovframework/sqlmap/com/uss/ion/bnr/EgovBanner_SQL_Mysql.xml"/><!-- 배너 추가 --> |
| 7 |
+ <sqlMap resource="egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml"/><!-- 서브팝업관리 --> |
|
| 7 | 8 |
</sqlMapConfig> |
+++ src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml
... | ... | @@ -0,0 +1,132 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> | |
| 3 | +<!-- | |
| 4 | + 수정일 수정자 수정내용 | |
| 5 | + =========== ======== ================================================= | |
| 6 | + 2011.10.06 이기하 보안 취약점 점검사항 반영 $->#변경 | |
| 7 | +--> | |
| 8 | +<sqlMap namespace="UnityLink"> | |
| 9 | + | |
| 10 | + <typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/> | |
| 11 | + <typeAlias alias="comDefaultVO" type="itn.com.cmm.ComDefaultVO"/> | |
| 12 | + <typeAlias alias="PopupManageVO" type="itn.com.uss.ion.pwm.service.PopupManageVO" /> | |
| 13 | + <typeAlias alias="popupzoneVO" type="itn.com.uss.ion.pwm.service.PopupzoneVO"/> | |
| 14 | + <typeAlias alias="mainzoneVO" type="itn.com.uss.ion.pwm.service.MainzoneVO"/> | |
| 15 | + <typeAlias alias="socialVO" type="itn.com.uss.ion.pwm.service.SocialVO"/> | |
| 16 | + <typeAlias alias="sortVO" type="itn.com.uss.ion.pwm.service.SortVO"/> | |
| 17 | + <!-- ::ResultMap 선언 --> | |
| 18 | + <resultMap id="PopupManageVOs" class="itn.com.uss.ion.pwm.service.PopupManageVO"> | |
| 19 | + <result property="popupId" column="POPUP_ID" columnIndex="1"/> | |
| 20 | + <result property="popupTitleNm" column="POPUP_SJ_NM" columnIndex="2"/> | |
| 21 | + <result property="fileUrl" column="FILE_URL" columnIndex="3"/> | |
| 22 | + <result property="popupHlc" column="POPUP_VRTICL_LC" columnIndex="4"/> | |
| 23 | + <result property="popupWlc" column="POPUP_WIDTH_LC" columnIndex="5"/> | |
| 24 | + <result property="popupHSize" column="POPUP_VRTICL_SIZE" columnIndex="6"/> | |
| 25 | + <result property="popupWSize" column="POPUP_WIDTH_SIZE" columnIndex="7"/> | |
| 26 | + <result property="ntceBgnde" column="NTCE_BGNDE" columnIndex="8"/> | |
| 27 | + <result property="ntceEndde" column="NTCE_ENDDE" columnIndex="9"/> | |
| 28 | + <result property="stopVewAt" column="STOPVEW_SETUP_AT" columnIndex="10"/> | |
| 29 | + <result property="ntceAt" column="NTCE_AT" columnIndex="11"/> | |
| 30 | + <result property="frstRegisterPnttm" column="FRST_REGIST_PNTTM" columnIndex="12"/> | |
| 31 | + <result property="frstRegisterId" column="FRST_REGISTER_ID" columnIndex="13"/> | |
| 32 | + <result property="lastUpdusrPnttm" column="LAST_UPDT_PNTTM" columnIndex="14"/> | |
| 33 | + <result property="lastUpdusrId" column="LAST_UPDUSR_ID" columnIndex="15"/> | |
| 34 | + <result property="popupType" column="POPUP_TYPE" columnIndex="16"/> | |
| 35 | + <result property="scrollType" column="SCROLL_TYPE" columnIndex="17"/> | |
| 36 | + <result property="nttCn" column="NTT_CN" columnIndex="18"/> | |
| 37 | + <result property="sortNum" column="SORT_NUM" columnIndex="19"/> | |
| 38 | + </resultMap> | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + <!-- 매인이미지 관리자 리스트 --> | |
| 44 | + <select id="subMainzoneManage.selectSubMainzoneList" parameterClass="mainzoneVO" resultClass="egovMap"> | |
| 45 | + /* subMainzoneManage.selectSubMainzoneList */ | |
| 46 | + <![CDATA[ | |
| 47 | + SELECT | |
| 48 | + MAZ_ID, | |
| 49 | + CONCAT("/UPLOADROOT/POPUPZONE/",UPFILE ) AS IMG, | |
| 50 | + CONTENT AS IMG_ALT, | |
| 51 | + MLINK, | |
| 52 | + ISTARGET, | |
| 53 | + CASE WHEN | |
| 54 | + DATE(SUBDATE(NOW(), INTERVAL 7 DAY)) < DATE(REGDT) | |
| 55 | + THEN 'Y' | |
| 56 | + ELSE 'N' | |
| 57 | + END AS NEW_FLAG, | |
| 58 | + DATE_FORMAT(REGDT, '%Y-%m-%d') REGDT, | |
| 59 | + MAINZONE_IMAGE, | |
| 60 | + MAINZONE_IMAGE_FILE , | |
| 61 | + SORT, | |
| 62 | + MAZ_NM, | |
| 63 | + USE_YN, | |
| 64 | + (SELECT USER_NM FROM LETTNEMPLYRINFO WHERE ESNTL_ID = REGISTER_ID) REGISTER_ID , | |
| 65 | + DEVICETYPE, | |
| 66 | + STR_TO_DATE(NTCE_BGNDE,'%Y%m%d') AS ntceBgnde, | |
| 67 | + STR_TO_DATE(NTCE_ENDDE,'%Y%m%d') AS ntceEndde | |
| 68 | + FROM SUB_MAINZONE MB | |
| 69 | + WHERE 1=1 | |
| 70 | + ]]> | |
| 71 | + <isEqual property="useYn" compareValue="Y"> | |
| 72 | + AND USE_YN = 'Y' | |
| 73 | + </isEqual> | |
| 74 | + <isNotEmpty property="searchKeyword"> | |
| 75 | + <isEqual property="searchCondition" compareValue=""> | |
| 76 | + AND ( MAZ_NM LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 77 | + OR CONTENT LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 78 | + ) | |
| 79 | + </isEqual> | |
| 80 | + <isEqual property="searchCondition" compareValue="1"> | |
| 81 | + AND MAZ_NM LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 82 | + </isEqual> | |
| 83 | + <isEqual property="searchCondition" compareValue="2"> | |
| 84 | + AND CONTENT LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 85 | + </isEqual> | |
| 86 | + </isNotEmpty> | |
| 87 | + <isNotEmpty property="searchConditionSite"> | |
| 88 | + AND SITE_ID = #searchConditionSite# | |
| 89 | + </isNotEmpty> | |
| 90 | + <isNotEmpty property="deviceType"> | |
| 91 | + <isEqual property="deviceType" compareValue="P"> | |
| 92 | + AND ( DEVICETYPE IS NULL OR DEVICETYPE = #deviceType# ) | |
| 93 | + </isEqual> | |
| 94 | + <isEqual property="deviceType" compareValue="M"> | |
| 95 | + AND DEVICETYPE = #deviceType# | |
| 96 | + </isEqual> | |
| 97 | + </isNotEmpty> | |
| 98 | + ORDER BY SORT | |
| 99 | + LIMIT #recordCountPerPage# OFFSET #firstIndex# | |
| 100 | + </select> | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + <select id="subMainzoneManage.selectSubMainzoneCount" resultClass="int"> | |
| 105 | + /* subMainzoneManage.selectSubMainzoneCount */ | |
| 106 | + SELECT | |
| 107 | + COUNT(*) totcnt | |
| 108 | + FROM SUB_MAINZONE | |
| 109 | + WHERE 1=1 | |
| 110 | + <isNotEmpty property="searchKeyword"> | |
| 111 | + <isEqual property="searchCondition" compareValue=""> | |
| 112 | + AND ( MAZ_NM LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 113 | + OR CONTENT LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 114 | + ) | |
| 115 | + </isEqual> | |
| 116 | + <isEqual property="searchCondition" compareValue="1"> | |
| 117 | + AND MAZ_NM LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 118 | + </isEqual> | |
| 119 | + <isEqual property="searchCondition" compareValue="2"> | |
| 120 | + AND CONTENT LIKE CONCAT ('%', #searchKeyword#,'%') | |
| 121 | + </isEqual> | |
| 122 | + </isNotEmpty> | |
| 123 | + <isNotEmpty property="searchConditionSite"> | |
| 124 | + AND SITE_ID = #searchConditionSite# | |
| 125 | + </isNotEmpty> | |
| 126 | + </select> | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | +</sqlMap>(No newline at end of file) |
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneInsert.jsp
... | ... | @@ -0,0 +1,438 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : EgovPopupList.jsp | |
| 3 | + Description : 팝업창관리 목록 페이지 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2009.09.16 장동한 최초 생성 | |
| 9 | + | |
| 10 | + author : 공통서비스 개발팀 장동한 | |
| 11 | + since : 2009.09.16 | |
| 12 | + | |
| 13 | + Copyright (C) 2009 by MOPAS All right reserved. | |
| 14 | +--%> | |
| 15 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 16 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 17 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 18 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 19 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 20 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 21 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 22 | +<!DOCTYPE html> | |
| 23 | +<html lang="ko"> | |
| 24 | +<head> | |
| 25 | +<title>팝업창관리 관리</title> | |
| 26 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 27 | +<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script> | |
| 28 | +<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> | |
| 29 | +<script type="text/javaScript" language="javascript"> | |
| 30 | +$( document ).ready(function(){ | |
| 31 | + makeDate('ntceBgndeYYYMMDD'); | |
| 32 | + makeDate('ntceEnddeYYYMMDD'); | |
| 33 | +}); | |
| 34 | + | |
| 35 | +function makeDate(id){ | |
| 36 | + let today = new Date(); | |
| 37 | + let formattedDate = today.toISOString().split('T')[0]; // YYYY-MM-DD 형식 | |
| 38 | + $("#"+id).val(formattedDate); | |
| 39 | +} | |
| 40 | + | |
| 41 | + | |
| 42 | +/* pagination 페이지 링크 function */ | |
| 43 | +function goList(){ | |
| 44 | + document.searchForm.submit(); | |
| 45 | +} | |
| 46 | + | |
| 47 | +/* 등록시 값 확인 */ | |
| 48 | +function fn_checkForm() { | |
| 49 | + frm = document.writeForm; | |
| 50 | + if(frm.mazNm.value=="") { | |
| 51 | + alert("비주얼명을 입력해 주십시오"); | |
| 52 | + frm.mazNm.focus(); | |
| 53 | + return false; | |
| 54 | + } | |
| 55 | + if(frm.content.value=="") { | |
| 56 | + alert("대체텍스트를 입력해 주십시오"); | |
| 57 | + frm.content.focus(); | |
| 58 | + return false; | |
| 59 | + } | |
| 60 | + if(frm.sort.value=="") { | |
| 61 | + alert("노출순서를 입력해 주십시오"); | |
| 62 | + frm.sort.focus(); | |
| 63 | + return false; | |
| 64 | + }else{ | |
| 65 | + var regexp = /^[0-9]*$/ | |
| 66 | + if( !regexp.test(frm.sort.value) ) { | |
| 67 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 68 | + frm.sort.focus(); | |
| 69 | + return false; | |
| 70 | + } | |
| 71 | + } | |
| 72 | + | |
| 73 | + return true; | |
| 74 | +} | |
| 75 | + | |
| 76 | +/* 글 등록 function */ | |
| 77 | +function fn_mainzone_insert() { | |
| 78 | + frm = document.writeForm; | |
| 79 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneInsert.do'/>"; | |
| 80 | + if(fn_checkForm()) | |
| 81 | + frm.submit(); | |
| 82 | +} | |
| 83 | + | |
| 84 | +/* 배너 삭제 function */ | |
| 85 | +function fn_mainzone_delete() { | |
| 86 | + var msg; | |
| 87 | + msg = "해당 메인이미지를 삭제하시겠습니까?"; | |
| 88 | + | |
| 89 | + if (confirm(msg)) { | |
| 90 | + frm = document.writeForm; | |
| 91 | + frm.del.value = frm.mazId.value ; | |
| 92 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneListDelete.do'/>"; | |
| 93 | + frm.submit(); | |
| 94 | + } | |
| 95 | + | |
| 96 | +} | |
| 97 | + | |
| 98 | +function validate(method_parm) { | |
| 99 | + frm = document.writeForm; | |
| 100 | + if(frm.mazNm.value=="") { | |
| 101 | + alert("비주얼명을 입력해 주십시오"); | |
| 102 | + frm.mazNm.focus(); | |
| 103 | + return false; | |
| 104 | + } | |
| 105 | + if(frm.content.value=="") { | |
| 106 | + alert("대체텍스트를 입력해 주십시오"); | |
| 107 | + frm.content.focus(); | |
| 108 | + return false; | |
| 109 | + } | |
| 110 | + if(frm.sort.value=="") { | |
| 111 | + alert("노출순서를 입력해 주십시오"); | |
| 112 | + frm.sort.focus(); | |
| 113 | + return false; | |
| 114 | + }else{ | |
| 115 | + var regexp = /^[0-9]*$/ | |
| 116 | + if( !regexp.test(frm.sort.value) ) { | |
| 117 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 118 | + frm.sort.focus(); | |
| 119 | + return false; | |
| 120 | + } | |
| 121 | + } | |
| 122 | + | |
| 123 | + var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value; | |
| 124 | + var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value; | |
| 125 | + | |
| 126 | + console.log("ntceBgndeYYYMMDD ::: "+ntceBgndeYYYMMDD); | |
| 127 | + console.log("ntceEnddeYYYMMDD ::: "+ntceEnddeYYYMMDD); | |
| 128 | + | |
| 129 | + if(ntceBgndeYYYMMDD ==""){ | |
| 130 | + | |
| 131 | + alert("게시기간 시작일을 입력해 주세요."); | |
| 132 | + return false; | |
| 133 | + | |
| 134 | + }else if(ntceEnddeYYYMMDD == ""){ | |
| 135 | + | |
| 136 | + alert("게시기간 종료일을 입력해 주세요."); | |
| 137 | + return false; | |
| 138 | + | |
| 139 | + }else{ | |
| 140 | + | |
| 141 | + var iChkBeginDe = Number( ntceBgndeYYYMMDD.replaceAll("-","") ); | |
| 142 | + var iChkEndDe = Number( ntceEnddeYYYMMDD.replaceAll("-","") ); | |
| 143 | + | |
| 144 | + if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){ | |
| 145 | + alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. "); | |
| 146 | + return; | |
| 147 | + } | |
| 148 | + | |
| 149 | + frm.ntceBgnde.value = ntceBgndeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceBgndeHH') + fn_egov_SelectBoxValue('ntceBgndeMM'); | |
| 150 | + frm.ntceEndde.value = ntceEnddeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceEnddeHH') + fn_egov_SelectBoxValue('ntceEnddeMM'); | |
| 151 | + | |
| 152 | + } | |
| 153 | + | |
| 154 | + var msg = "메인 배너를 등록하시겠습니까?"; | |
| 155 | + | |
| 156 | + if(!confirm(msg)){ | |
| 157 | + return false; | |
| 158 | + } | |
| 159 | + goSave(method_parm); | |
| 160 | +} | |
| 161 | +function fn_egov_downFile(atchFileId, fileSn){ | |
| 162 | + window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>"); | |
| 163 | +} | |
| 164 | + | |
| 165 | +/* ******************************************************** | |
| 166 | +* SELECT BOX VALUE FUNCTION | |
| 167 | +******************************************************** */ | |
| 168 | +function fn_egov_SelectBoxValue(sbName) | |
| 169 | +{ | |
| 170 | + var FValue = ""; | |
| 171 | + for(var i=0; i < document.getElementById(sbName).length; i++) | |
| 172 | + { | |
| 173 | + if(document.getElementById(sbName).options[i].selected == true){ | |
| 174 | + | |
| 175 | + FValue=document.getElementById(sbName).options[i].value; | |
| 176 | + } | |
| 177 | + } | |
| 178 | + | |
| 179 | + return FValue; | |
| 180 | +} | |
| 181 | + | |
| 182 | +</script> | |
| 183 | +<style> | |
| 184 | +.date_format{width:91px !important;} | |
| 185 | +.del_file_btn{border: none;background-color: transparent;background-image: url(/direct/img/upload_delect_img.png);background-repeat: no-repeat;background-position: center center;vertical-align: middle;margin-top: -4px;margin-right: 15px;} | |
| 186 | +.file_size{color: #0388d2;font-weight: bold;} | |
| 187 | +.uploaded_obj{width: 100%;} | |
| 188 | +</style> | |
| 189 | +</head> | |
| 190 | +<body> | |
| 191 | +<form:form commandName="mainzoneVO" name="writeForm" enctype="multipart/form-data" method="post"> | |
| 192 | + <input type="hidden" name="deviceType" id="deviceType" value="P"/> | |
| 193 | + <input type="hidden" name="selectedId" /> | |
| 194 | + <form:input path="mazId" type="hidden" /> | |
| 195 | + <form:input path="del" type="hidden" /> | |
| 196 | + <form:input path="upfile" type="hidden" /> | |
| 197 | + <form:input path="mainzoneImageFile" type="hidden" /> | |
| 198 | + <form:hidden path="ntceBgnde" /> | |
| 199 | + <form:hidden path="ntceEndde" /> | |
| 200 | + | |
| 201 | + <input type="hidden" name="beSort" value="${mainzoneVO.beSort}" /> | |
| 202 | + <!-- 드래그앤 드롭 파라미터 --> | |
| 203 | + <input type="hidden" name="menuName" value="mainzone" /> | |
| 204 | + <input type="hidden" name="fmsId" value="${mainzoneVO.mazId}" /> | |
| 205 | + <input type="hidden" name="limitcount" value="1" /><!-- 최대 업로드 파일갯수 --> | |
| 206 | + | |
| 207 | + <div class="contWrap"> | |
| 208 | + <div class="pageTitle"> | |
| 209 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 210 | + <h2 class="titType1 c_222222 fwBold">메인비주얼 등록/수정</h2> | |
| 211 | + <p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p> | |
| 212 | + </div> | |
| 213 | + <div class="pageNav"> | |
| 214 | + <img src="/pb/img/common/homeIcon.png" alt="홈이미지"> > <p class="topDepth">비주얼관리</p> > <p class="subDepth">메인비주얼관리</p> | |
| 215 | + </div> | |
| 216 | + <div class="pageCont"> | |
| 217 | + <div class="tableWrap"> | |
| 218 | + <p class="right fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p> | |
| 219 | + <table class="tbType2"> | |
| 220 | + <colgroup> | |
| 221 | + <col style="width: 15%"> | |
| 222 | + <col style="width: 85%"> | |
| 223 | + </colgroup> | |
| 224 | + <tbody> | |
| 225 | + <%-- <tr> | |
| 226 | + <th class="td_title1"><span class="star_t"></span>메인화면에 보이는 메인 이미지</th> | |
| 227 | + <td colspan="3" class="td_txt_exist"> | |
| 228 | + <c:if test="${mainzoneVO.mazId == null}"> | |
| 229 | + 등록된 메인 이미지가 없습니다. | |
| 230 | + </c:if> | |
| 231 | + <c:if test="${mainzoneVO.mazId != null}"> | |
| 232 | + <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' width="196" height="237" /> | |
| 233 | + </c:if> | |
| 234 | + </td> | |
| 235 | + </tr> --%> | |
| 236 | + <c:if test="${siteId eq 'super'}"> | |
| 237 | + <tr> | |
| 238 | + <th><span class="reqArea">사이트</span></th> | |
| 239 | + <td> | |
| 240 | + <select name="siteId" id="siteId" title="권한"> | |
| 241 | + <c:forEach var="resultList" items="${siteManageList}" varStatus="status"> | |
| 242 | + <option value="<c:out value="${resultList.siteId}"/>" | |
| 243 | + <c:if test="${mainzoneVO.siteId eq resultList.siteId}"> selected='selected' </c:if>> | |
| 244 | + <c:out value="${resultList.siteNm}"/> | |
| 245 | + </option> | |
| 246 | + </c:forEach> | |
| 247 | + </select> | |
| 248 | + </td> | |
| 249 | + </tr> | |
| 250 | + </c:if> | |
| 251 | + <tr> | |
| 252 | + <th><span>원본이미지</span></th> | |
| 253 | + <td> | |
| 254 | + <c:if test="${mainzoneVO.mazId == ''}"> | |
| 255 | + <div class="imgBox"></div> | |
| 256 | + </c:if> | |
| 257 | + <c:if test="${mainzoneVO.mazId != ''}"> | |
| 258 | + <img alt="${mainzoneVO.content}" onerror="this.src='/pb/img/noImg.png'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:300px;padding: 10px;" /> | |
| 259 | + <%-- <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:600px;" /> --%> | |
| 260 | + </c:if> | |
| 261 | + </td> | |
| 262 | + </tr> | |
| 263 | + <!-- <tr> --> | |
| 264 | + <!-- <th class="td_title1"><span class="star_t">*</span>기기종류</th> --> | |
| 265 | + <!-- <td colspan="3"> --> | |
| 266 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="P" style="margin-left: 13px; margin-right: 5px;" --> | |
| 267 | + <!-- checked="checked" --> | |
| 268 | + <%-- ${mainzoneVO.deviceType eq 'P' or mainzoneVO.deviceType eq '' ? 'checked="checked"' : ''} --%> | |
| 269 | + <!-- >PC --> | |
| 270 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="M" style="margin-left: 13px; margin-right: 5px;" --> | |
| 271 | + <%-- ${mainzoneVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%> | |
| 272 | + <!-- >모바일 --> | |
| 273 | + <!-- </td> --> | |
| 274 | + <!-- </tr> --> | |
| 275 | + <tr> | |
| 276 | + <th><span class="reqArea">비주얼명</span></th> | |
| 277 | + <td> | |
| 278 | + <form:input path="mazNm" maxlength="30" /> | |
| 279 | + </td> | |
| 280 | + </tr> | |
| 281 | + <tr> | |
| 282 | + <th><span class="reqArea">대체텍스트</span></th> | |
| 283 | + <td> | |
| 284 | + <form:input path="content" maxlength="500" /> | |
| 285 | + </td> | |
| 286 | + </tr> | |
| 287 | + <tr> | |
| 288 | + <th><span class="reqArea">사용여부</span></th> | |
| 289 | + <td> | |
| 290 | + <input type="radio" name="useYn" id="useY" value="Y" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'Y' or mainzoneVO.useYn eq '' ? 'checked="checked"' : ''} /><label for="">사용</label> | |
| 291 | + <input type="radio" name="useYn" id="useN" value="N" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'N' ? 'checked="checked"' : ''} /><label for="">미사용</label> | |
| 292 | + </td> | |
| 293 | + </tr> | |
| 294 | + | |
| 295 | + <tr> | |
| 296 | + <th><span class="reqArea">노출순서</span></th> | |
| 297 | + <td colspan="3"> | |
| 298 | + <form:input path="sort" maxlength="10" onkeyup="this.value=this.value.replace(/[^-\.0-9]/g,'')"/> | |
| 299 | + </td> | |
| 300 | + </tr> | |
| 301 | + <tr> | |
| 302 | + <th><span class="reqArea">게시기간</span></th> | |
| 303 | + <td> | |
| 304 | + <input type="hidden" name="cal_url" id="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" > | |
| 305 | + <input type="text" class="date_format" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 6, 8)}"/>" readonly> | |
| 306 | + | |
| 307 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceBgndeYYYMMDD);"> | |
| 308 | + <input type="button" class="calBtn"> | |
| 309 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 310 | + </a> | |
| 311 | + <form:select path="ntceBgndeHH" class="date_format"> | |
| 312 | + <form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 313 | + </form:select>시 | |
| 314 | + <form:select path="ntceBgndeMM" class="date_format"> | |
| 315 | + <form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 316 | + </form:select>분 | |
| 317 | +   ~   | |
| 318 | + <input type="text" class="date_format" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 6, 8)}"/>" readonly> | |
| 319 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceEnddeYYYMMDD);"> | |
| 320 | + <input type="button" class="calBtn"> | |
| 321 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 322 | + </a> | |
| 323 | + <form:select path="ntceEnddeHH" class="date_format"> | |
| 324 | + <form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 325 | + </form:select>시 | |
| 326 | + <form:select path="ntceEnddeMM" class="date_format"> | |
| 327 | + <form:options items="${ntceEnddeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 328 | + </form:select>분 | |
| 329 | + </td> | |
| 330 | + </tr> | |
| 331 | + <tr> | |
| 332 | + <th><span>링크주소</span></th> | |
| 333 | + <td colspan="3"> | |
| 334 | + <form:input path="mlink" maxlength="200" /> | |
| 335 | + </td> | |
| 336 | + </tr> | |
| 337 | + <tr> | |
| 338 | + <th><span class="reqArea">파일 첨부</span></th> | |
| 339 | + <td class="upload_area"> | |
| 340 | + <div class="file_upload_box no_img_box fileWrap"> | |
| 341 | + <table> | |
| 342 | + <colgroup> | |
| 343 | + <col style="width: 60%"> | |
| 344 | + <col style="width: 10%"> | |
| 345 | + <col style="width: 20%"> | |
| 346 | + <col style="width: 10%"> | |
| 347 | + </colgroup> | |
| 348 | + <thead> | |
| 349 | + <tr> | |
| 350 | + <th>파일명</th> | |
| 351 | + <th>크기</th> | |
| 352 | + <th>등록일시</th> | |
| 353 | + <th>삭제</th> | |
| 354 | + </tr> | |
| 355 | + </thead> | |
| 356 | + </table> | |
| 357 | + </div> | |
| 358 | + <div class="fileWrap fileAfter file_list_div asset_no_use_pro_table" style="display:none"> | |
| 359 | + <table> | |
| 360 | + <colgroup> | |
| 361 | + <col style="width: 60%"> | |
| 362 | + <col style="width: 10%"> | |
| 363 | + <col style="width: 20%"> | |
| 364 | + <col style="width: 10%"> | |
| 365 | + </colgroup> | |
| 366 | + <thead> | |
| 367 | + <tr> | |
| 368 | + <th>파일명</th> | |
| 369 | + <th>크기</th> | |
| 370 | + <th>등록일시</th> | |
| 371 | + <th>삭제</th> | |
| 372 | + </tr> | |
| 373 | + </thead> | |
| 374 | + <tbody id="tbody_fiielist"> | |
| 375 | + <c:forEach var="fileList" items="${fileList}" varStatus="status"> | |
| 376 | + <tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj"> | |
| 377 | + <td class="file_name"> | |
| 378 | + <a href="javascript:fn_egov_downFile('${fileList.atchFileId}','${fileList.fileSn}')"> | |
| 379 | + <img src="/direct/img/upload_hwp_img.png" alt="" /> | |
| 380 | + <span class="file_name_text">${fileList.orignlFileNm}</span> | |
| 381 | + </a> | |
| 382 | + </td> | |
| 383 | + <td><span class="file_size_text" value="${fileList.fileMg}"></span></td> | |
| 384 | + <td>${fileList.creatDt}</td> | |
| 385 | + <td> | |
| 386 | + <input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;"> | |
| 387 | + </td> | |
| 388 | + <input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileMg}" > | |
| 389 | + </tr> | |
| 390 | + </c:forEach> | |
| 391 | + </tbody> | |
| 392 | + </table> | |
| 393 | + </div> | |
| 394 | + <div class="fileInfo file_list_div"> | |
| 395 | + <ul class="inline"> | |
| 396 | + <li> | |
| 397 | + <p><span class="c_456ded fwBold totalfileCount">0</span>개 | <span class="c_456ded fwBold totalfileSize">0MB</span></p> | |
| 398 | + </li> | |
| 399 | + <li> | |
| 400 | + <p>최대 <span class="c_e40000 fwBold limitcount_li"></span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p> | |
| 401 | + </li> | |
| 402 | + </ul> | |
| 403 | + </div> | |
| 404 | + <div class="uploadBtm"> | |
| 405 | + <input type="file" id="file_temp" name="file_temp" class="uploadFile"> | |
| 406 | + <!-- <span class="uploadTtype4">메인비주얼 이미지 크기는 </span><span class="uploadTtype4" style="color: red;">1920 X 843 </span>입니다.</p> --> | |
| 407 | + </div> | |
| 408 | + </td> | |
| 409 | + </tr> | |
| 410 | + | |
| 411 | + <c:if test="${!empty mainzoneVO.mazId}"> | |
| 412 | + <tr> | |
| 413 | + <th><span class="reqArea">최종수정일</span></th> | |
| 414 | + <td> | |
| 415 | + ${mainzoneVO.moddt} | |
| 416 | + </td> | |
| 417 | + </tr> | |
| 418 | + | |
| 419 | + <tr> | |
| 420 | + <th><span class="reqArea">작성자</span></th> | |
| 421 | + <td> | |
| 422 | + ${mainzoneVO.registerId} | |
| 423 | + </td> | |
| 424 | + </tr> | |
| 425 | + </c:if> | |
| 426 | + </tbody> | |
| 427 | + </table> | |
| 428 | + </div> | |
| 429 | + <div class="btnWrap right"> | |
| 430 | + <input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;" > | |
| 431 | + <input type="button" class="btnType1" value="저 장" onclick="validate('mainzone_I'); return false;"> | |
| 432 | + </div> | |
| 433 | + </div> | |
| 434 | + </div> | |
| 435 | +</form:form> | |
| 436 | +<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" ></form> | |
| 437 | +</body> | |
| 438 | +</html> |
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp
... | ... | @@ -0,0 +1,260 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : EgovPopupList.jsp | |
| 3 | + Description : 팝업창관리 목록 페이지 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2009.09.16 장동한 최초 생성 | |
| 9 | + | |
| 10 | + author : 공통서비스 개발팀 장동한 | |
| 11 | + since : 2009.09.16 | |
| 12 | + | |
| 13 | + Copyright (C) 2009 by MOPAS All right reserved. | |
| 14 | +--%> | |
| 15 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 16 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 17 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 18 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 19 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 20 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 21 | +<% | |
| 22 | + response.setHeader("Cache-Control","no-store"); | |
| 23 | + response.setHeader("Pragma","no-cache"); | |
| 24 | + response.setDateHeader("Expires",0); | |
| 25 | + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); | |
| 26 | +%> | |
| 27 | +<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" /> | |
| 28 | +<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" /> | |
| 29 | +<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/> | |
| 30 | +<!DOCTYPE html> | |
| 31 | +<html lang="ko"> | |
| 32 | +<head> | |
| 33 | +<title>메인이미지 관리</title> | |
| 34 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 35 | +<script type="text/javaScript" language="javascript"> | |
| 36 | +$(document).ready(function(){ | |
| 37 | + | |
| 38 | + $(".img_cont").click(function(e){ | |
| 39 | + clickEvent = true; | |
| 40 | + }); | |
| 41 | + | |
| 42 | + $(".check").click(function(e){ | |
| 43 | + e.stopPropagation(); | |
| 44 | + }); | |
| 45 | +}); | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | +/* 메인창 수정 화면*/ | |
| 51 | +function fn_mainzone_view(id, pageType){ | |
| 52 | + document.modiForm.selectedId.value = id; | |
| 53 | + document.modiForm.pageType.value = "Modify"; | |
| 54 | + document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>"; | |
| 55 | + document.modiForm.submit(); | |
| 56 | +} | |
| 57 | + | |
| 58 | +/* 메인창 등록화면*/ | |
| 59 | +function fn_mainzone_insert_view(){ | |
| 60 | + document.modiForm.pageType.value = "Insert"; | |
| 61 | +// document.modiForm.action = "<c:url value='/uss/ion/pwm/mainzoneModify.do'/>"; | |
| 62 | + document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneInsert.do'/>"; | |
| 63 | + document.modiForm.submit(); | |
| 64 | +} | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | +function doDep3(event){ | |
| 69 | + event.preventDefault(); | |
| 70 | +} | |
| 71 | + | |
| 72 | +function linkPage(pageNo){ | |
| 73 | + <c:if test="${!empty loginId}"> | |
| 74 | + if(""!= document.listForm.searchKeyword.value){ | |
| 75 | + updateRecentSearch();//최근검색어 등록 | |
| 76 | + } | |
| 77 | + </c:if> | |
| 78 | + | |
| 79 | + var listForm = document.listForm ; | |
| 80 | + listForm.pageIndex.value = pageNo ; | |
| 81 | + listForm.searchCondition.value = $('#searchCondition').val(); | |
| 82 | + listForm.submit(); | |
| 83 | +} | |
| 84 | + | |
| 85 | + | |
| 86 | +function fnCheckAll() { | |
| 87 | + var checkField = document.listForm.del; | |
| 88 | + if(document.listForm.checkAll.checked) { | |
| 89 | + if(checkField) { | |
| 90 | + if(checkField.length > 1) { | |
| 91 | + for(var i=0; i < checkField.length; i++) { | |
| 92 | + checkField[i].checked = true; | |
| 93 | + } | |
| 94 | + } else { | |
| 95 | + checkField.checked = true; | |
| 96 | + } | |
| 97 | + } | |
| 98 | + } else { | |
| 99 | + if(checkField) { | |
| 100 | + if(checkField.length > 1) { | |
| 101 | + for(var j=0; j < checkField.length; j++) { | |
| 102 | + checkField[j].checked = false; | |
| 103 | + } | |
| 104 | + } else { | |
| 105 | + checkField.checked = false; | |
| 106 | + } | |
| 107 | + } | |
| 108 | + } | |
| 109 | +} | |
| 110 | + | |
| 111 | + | |
| 112 | +/* 체크된 메인배너 목록 삭제 */ | |
| 113 | +function fn_mainzone_contest_delete(){ | |
| 114 | + if($("input[name=del]:checked").length == 0){ | |
| 115 | + alert("선택된 항목이 없습니다."); | |
| 116 | + return; | |
| 117 | + } | |
| 118 | + | |
| 119 | + if (confirm("해당 메인이미지 삭제하시겠습니까?")){ | |
| 120 | + frm = document.listForm; | |
| 121 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneListDelete.do' />"; | |
| 122 | + frm.submit(); | |
| 123 | + } | |
| 124 | +} | |
| 125 | + | |
| 126 | +/* 테마별 색상맞추기 */ | |
| 127 | +$(window).load(function() { | |
| 128 | + $('table.bbs01_list td.subject a').hover( | |
| 129 | + function () { | |
| 130 | + $(this).css("color","#d10000"); | |
| 131 | + }, | |
| 132 | + function () { | |
| 133 | + $(this).css("color","#333333"); | |
| 134 | + } | |
| 135 | + ); | |
| 136 | +}); | |
| 137 | +</script> | |
| 138 | +</head> | |
| 139 | +<body> | |
| 140 | +<form name="listForm" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" method="post"> | |
| 141 | + <input name="pageIndex" type="hidden" value="<c:out value='${mainzoneVO.pageIndex}'/>"/> | |
| 142 | + <input type="hidden" name="selectedId" /> | |
| 143 | + <input type="hidden" name="pageType" /> | |
| 144 | + <div class="contWrap"> | |
| 145 | + <div class="pageTitle"> | |
| 146 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 147 | + <h2 class="titType1 c_222222 fwBold">서브메인비주얼관리</h2> | |
| 148 | + <p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 (하단)비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p> | |
| 149 | + </div> | |
| 150 | + <div class="pageCont"> | |
| 151 | + <div class="listSerch"> | |
| 152 | + <c:if test="${siteId eq 'super'}"> | |
| 153 | + <select name="searchConditionSite" id="searchConditionSite" title="사이트검색"> | |
| 154 | + <option value="" <c:if test="${empty userSearchVO.searchConditionSite }">selected="selected"</c:if> >전체 사이트</option> | |
| 155 | + <c:forEach var="result" items="${siteManageList}" varStatus="status"> | |
| 156 | + <option value="${result.siteId}" <c:if test="${result.siteId eq mainzoneVO.searchConditionSite }">selected="selected"</c:if> >${result.siteNm}</option> | |
| 157 | + </c:forEach> | |
| 158 | + </select> | |
| 159 | + </c:if> | |
| 160 | + <select name="searchCondition" id="searchCondition" class="select" title="검색조건선택"> | |
| 161 | + <option value=''>전체</option> | |
| 162 | + <option value='1' <c:if test="${mainzoneVO.searchCondition == '1'}">selected</c:if>>제목</option> | |
| 163 | + <option value='2' <c:if test="${mainzoneVO.searchCondition == '2'}">selected</c:if>>대체텍스트</option> | |
| 164 | + </select> | |
| 165 | + <input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${mainzoneVO.searchKeyword}'/>" size="40" title="검색" maxlength="100"/> | |
| 166 | + <input type="button" class="btnType1" value="검색" onclick="linkPage(1); return false;"> | |
| 167 | + </div> | |
| 168 | + <div class="listTop"> | |
| 169 | + <p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p> | |
| 170 | + <div class="rightWrap"> | |
| 171 | + <input type="button" class="printBtn" > | |
| 172 | + <select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);"> | |
| 173 | + <option value='8' <c:if test="${mainzoneVO.pageUnit == '8' or searchVO.pageUnit == ''}">selected</c:if>>8개씩 보기</option> | |
| 174 | + <option value='16' <c:if test="${mainzoneVO.pageUnit == '16'}">selected</c:if>>16개씩 보기</option> | |
| 175 | + <option value='24' <c:if test="${mainzoneVO.pageUnit == '24'}">selected</c:if>>24개씩 보기</option> | |
| 176 | + </select> | |
| 177 | + </div> | |
| 178 | + </div> | |
| 179 | + <div class="galleryListWrap"> | |
| 180 | + <ul class="inline"> | |
| 181 | + <c:forEach var="result" items="${mainzoneList}" varStatus="status"> | |
| 182 | + <li onclick="javascript:fn_mainzone_view('${result.mazId}'); return false;"> | |
| 183 | + <div class="check"><input type="checkbox" name="del" id="check_box${status.index}" value="${result.mazId}"></div> | |
| 184 | +<%-- <div class="img_cont_check"><input type="checkbox" name="del" id="img_cont_check_box${status.index}" class="img_cont_check_box" value="${result.mazId}"><label for="img_cont_check_box${status.index}"></label></div> --%> | |
| 185 | + <ul class="listCategory"> | |
| 186 | + <c:if test="${siteId eq 'super'}"> | |
| 187 | + <c:forEach var="siteManageList" items="${siteManageList}" varStatus="status"> | |
| 188 | + <c:if test="${result.siteId eq siteManageList.siteId}"> | |
| 189 | + <li> | |
| 190 | + <c:out value="${siteManageList.siteNm}"/> | |
| 191 | + </li> | |
| 192 | + </c:if> | |
| 193 | + </c:forEach> | |
| 194 | + </c:if> | |
| 195 | + <li class="useCg"> | |
| 196 | + <c:if test="${result.useYn eq 'Y'}"> | |
| 197 | + 사용 | |
| 198 | + </c:if> | |
| 199 | + <c:if test="${result.useYn ne 'Y'}"> | |
| 200 | + 미사용 | |
| 201 | + </c:if> | |
| 202 | + </li> | |
| 203 | + </ul> | |
| 204 | + <div class="imgBox"><img onerror="this.src='/pb/img/noImg.png'" src="<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${result.mainzoneImageFile}"/>" alt=""></div> | |
| 205 | + <%-- <div class="imgBox"><img onerror="this.src='/pb/img/noImg.png'" src="<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${result.mainzoneImageFile}"/>" alt=""></div> --%> | |
| 206 | + <div class="listInfo"> | |
| 207 | + <h3>${result.mazNm}</h3> | |
| 208 | + <table> | |
| 209 | + <tr> | |
| 210 | + <td colspan="2">작성자 : ${result.registerId}</td> | |
| 211 | + </tr> | |
| 212 | + <tr> | |
| 213 | + <td>노출순서 : ${result.sort}</td> | |
| 214 | + <td class="right">${result.ntceBgnde} ~ ${result.ntceEndde}</td> | |
| 215 | + </tr> | |
| 216 | + </table> | |
| 217 | + </div> | |
| 218 | + </li> | |
| 219 | + </c:forEach> | |
| 220 | + </ul> | |
| 221 | + <c:if test="${empty mainzoneList}"> | |
| 222 | + <div class="board1_btn"> | |
| 223 | + <ul style="text-align: center;"><spring:message code="common.nodata.msg" /></ul> | |
| 224 | + </div> | |
| 225 | + </c:if> | |
| 226 | + | |
| 227 | + </div> | |
| 228 | + <div class="btnWrap"> | |
| 229 | + <input type="button" class="btnType2" value="삭제" onclick="fn_mainzone_contest_delete(); return false;"> | |
| 230 | + <input type="button" class="btnType1" value="등록" onclick="fn_mainzone_insert_view(); return false;"> | |
| 231 | + </div> | |
| 232 | + <!-- 페이지 네비게이션 시작 --> | |
| 233 | + <c:if test="${!empty mainzoneList}"> | |
| 234 | + <div class="page"> | |
| 235 | + <ul class="inline"> | |
| 236 | + <ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" /> | |
| 237 | + </ul> | |
| 238 | + </div> | |
| 239 | + </c:if> | |
| 240 | + <!-- //페이지 네비게이션 끝 --> | |
| 241 | + </div> | |
| 242 | + </div> | |
| 243 | +</form> | |
| 244 | +<form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>"> | |
| 245 | + <input name="popupId" type="hidden" value="" /> | |
| 246 | + <input name="pageIndex" type="hidden" value="<c:out value='${mainzoneVO.pageIndex}'/>"/> | |
| 247 | + <input name="cmd" type="hidden" value="<c:out value=''/>"/> | |
| 248 | + </form> | |
| 249 | +<form name="modiForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneModify.do'/>" > | |
| 250 | + <input name="selectedId" type="hidden" /> | |
| 251 | + <input name="pageType" type="hidden" /> | |
| 252 | +</form> | |
| 253 | +<form name="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>"> | |
| 254 | + <input name="pageIndex" type="hidden" value="1" /> | |
| 255 | + <input name="searchCondition" type="hidden" /> | |
| 256 | + <input name="searchKeyword" type="hidden" /> | |
| 257 | + <input name="searchConditionSite" type="hidden" /> | |
| 258 | +</form> | |
| 259 | +</body> | |
| 260 | +</html> |
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
... | ... | @@ -0,0 +1,472 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : EgovPopupList.jsp | |
| 3 | + Description : 팝업창관리 목록 페이지 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2009.09.16 장동한 최초 생성 | |
| 9 | + | |
| 10 | + author : 공통서비스 개발팀 장동한 | |
| 11 | + since : 2009.09.16 | |
| 12 | + | |
| 13 | + Copyright (C) 2009 by MOPAS All right reserved. | |
| 14 | +--%> | |
| 15 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 16 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 17 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 18 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 19 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 20 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 21 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 22 | +<% | |
| 23 | + response.setHeader("Cache-Control","no-store"); | |
| 24 | + response.setHeader("Pragma","no-cache"); | |
| 25 | + response.setDateHeader("Expires",0); | |
| 26 | + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); | |
| 27 | +%> | |
| 28 | +<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" /> | |
| 29 | +<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" /> | |
| 30 | +<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/> | |
| 31 | +<!DOCTYPE html> | |
| 32 | +<html lang="ko"> | |
| 33 | +<head> | |
| 34 | +<title>팝업창관리 관리</title> | |
| 35 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 36 | +<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script> | |
| 37 | +<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> | |
| 38 | +<script type="text/javaScript" language="javascript"> | |
| 39 | +$( document ).ready(function(){ | |
| 40 | + makeDate('ntceBgndeYYYMMDD'); | |
| 41 | + makeDate('ntceEnddeYYYMMDD'); | |
| 42 | +}); | |
| 43 | + | |
| 44 | +function makeDate(id){ | |
| 45 | + let today = new Date(); | |
| 46 | + let formattedDate = today.toISOString().split('T')[0]; // YYYY-MM-DD 형식 | |
| 47 | + $("#"+id).val(formattedDate); | |
| 48 | +} | |
| 49 | + | |
| 50 | + | |
| 51 | +/* pagination 페이지 링크 function */ | |
| 52 | +function goList(){ | |
| 53 | + document.searchForm.submit(); | |
| 54 | +} | |
| 55 | + | |
| 56 | +/* 등록시 값 확인 */ | |
| 57 | +function fn_checkForm() { | |
| 58 | + frm = document.writeForm; | |
| 59 | + if(frm.mazNm.value=="") { | |
| 60 | + alert("비주얼명을 입력해 주십시오"); | |
| 61 | + frm.mazNm.focus(); | |
| 62 | + return false; | |
| 63 | + } | |
| 64 | + if(frm.content.value=="") { | |
| 65 | + alert("대체텍스트를 입력해 주십시오"); | |
| 66 | + frm.content.focus(); | |
| 67 | + return false; | |
| 68 | + } | |
| 69 | + if(frm.sort.value=="") { | |
| 70 | + alert("노출순서를 입력해 주십시오"); | |
| 71 | + frm.sort.focus(); | |
| 72 | + return false; | |
| 73 | + }else{ | |
| 74 | + var regexp = /^[0-9]*$/ | |
| 75 | + if( !regexp.test(frm.sort.value) ) { | |
| 76 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 77 | + frm.sort.focus(); | |
| 78 | + return false; | |
| 79 | + } | |
| 80 | + } | |
| 81 | + | |
| 82 | + return true; | |
| 83 | +} | |
| 84 | + | |
| 85 | +/* 글 등록 function */ | |
| 86 | +function fn_mainzone_insert() { | |
| 87 | + frm = document.writeForm; | |
| 88 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneInsert.do'/>"; | |
| 89 | + if(fn_checkForm()) | |
| 90 | + frm.submit(); | |
| 91 | +} | |
| 92 | + | |
| 93 | +/* 배너 삭제 function */ | |
| 94 | +function fn_mainzone_delete() { | |
| 95 | + var msg; | |
| 96 | + msg = "해당 메인이미지를 삭제하시겠습니까?"; | |
| 97 | + | |
| 98 | + if (confirm(msg)) { | |
| 99 | + frm = document.writeForm; | |
| 100 | + frm.del.value = frm.mazId.value ; | |
| 101 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneListDelete.do'/>"; | |
| 102 | + frm.submit(); | |
| 103 | + } | |
| 104 | + | |
| 105 | +} | |
| 106 | + | |
| 107 | +function validate(method_parm) { | |
| 108 | + frm = document.writeForm; | |
| 109 | + if(frm.mazNm.value=="") { | |
| 110 | + alert("비주얼명을 입력해 주십시오"); | |
| 111 | + frm.mazNm.focus(); | |
| 112 | + return false; | |
| 113 | + } | |
| 114 | + if(frm.content.value=="") { | |
| 115 | + alert("대체텍스트를 입력해 주십시오"); | |
| 116 | + frm.content.focus(); | |
| 117 | + return false; | |
| 118 | + } | |
| 119 | + if(frm.sort.value=="") { | |
| 120 | + alert("노출순서를 입력해 주십시오"); | |
| 121 | + frm.sort.focus(); | |
| 122 | + return false; | |
| 123 | + }else{ | |
| 124 | + var regexp = /^[0-9]*$/ | |
| 125 | + if( !regexp.test(frm.sort.value) ) { | |
| 126 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 127 | + frm.sort.focus(); | |
| 128 | + return false; | |
| 129 | + } | |
| 130 | + } | |
| 131 | + | |
| 132 | + var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value; | |
| 133 | + var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value; | |
| 134 | + | |
| 135 | + console.log("ntceBgndeYYYMMDD ::: "+ntceBgndeYYYMMDD); | |
| 136 | + console.log("ntceEnddeYYYMMDD ::: "+ntceEnddeYYYMMDD); | |
| 137 | + | |
| 138 | + if(ntceBgndeYYYMMDD ==""){ | |
| 139 | + | |
| 140 | + alert("게시기간 시작일을 입력해 주세요."); | |
| 141 | + return false; | |
| 142 | + | |
| 143 | + }else if(ntceEnddeYYYMMDD == ""){ | |
| 144 | + | |
| 145 | + alert("게시기간 종료일을 입력해 주세요."); | |
| 146 | + return false; | |
| 147 | + | |
| 148 | + }else{ | |
| 149 | + | |
| 150 | + var iChkBeginDe = Number( ntceBgndeYYYMMDD.replaceAll("-","") ); | |
| 151 | + var iChkEndDe = Number( ntceEnddeYYYMMDD.replaceAll("-","") ); | |
| 152 | + | |
| 153 | + if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){ | |
| 154 | + alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. "); | |
| 155 | + return; | |
| 156 | + } | |
| 157 | + | |
| 158 | + frm.ntceBgnde.value = ntceBgndeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceBgndeHH') + fn_egov_SelectBoxValue('ntceBgndeMM'); | |
| 159 | + frm.ntceEndde.value = ntceEnddeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceEnddeHH') + fn_egov_SelectBoxValue('ntceEnddeMM'); | |
| 160 | + | |
| 161 | + } | |
| 162 | + | |
| 163 | + var msg = "메인 배너를 등록하시겠습니까?"; | |
| 164 | + | |
| 165 | + if(method_parm == "mainzone_U"){ | |
| 166 | + | |
| 167 | + msg ="메인 배너를 수정하시겠습니까?"; | |
| 168 | + | |
| 169 | + } | |
| 170 | + | |
| 171 | + if(!confirm(msg)){ | |
| 172 | + return false; | |
| 173 | + } | |
| 174 | + goSave(method_parm); | |
| 175 | +} | |
| 176 | +function fn_egov_downFile(atchFileId, fileSn){ | |
| 177 | + window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>"); | |
| 178 | +} | |
| 179 | + | |
| 180 | +/* ******************************************************** | |
| 181 | +* SELECT BOX VALUE FUNCTION | |
| 182 | +******************************************************** */ | |
| 183 | +function fn_egov_SelectBoxValue(sbName) | |
| 184 | +{ | |
| 185 | + var FValue = ""; | |
| 186 | + for(var i=0; i < document.getElementById(sbName).length; i++) | |
| 187 | + { | |
| 188 | + if(document.getElementById(sbName).options[i].selected == true){ | |
| 189 | + | |
| 190 | + FValue=document.getElementById(sbName).options[i].value; | |
| 191 | + } | |
| 192 | + } | |
| 193 | + | |
| 194 | + return FValue; | |
| 195 | +} | |
| 196 | + | |
| 197 | +</script> | |
| 198 | +<style> | |
| 199 | +.date_format{width:91px !important;} | |
| 200 | +.del_file_btn{border: none;background-color: transparent;background-image: url(/direct/img/upload_delect_img.png);background-repeat: no-repeat;background-position: center center;vertical-align: middle;margin-top: -4px;margin-right: 15px;} | |
| 201 | +.file_size{color: #0388d2;font-weight: bold;} | |
| 202 | +.uploaded_obj{width: 100%;} | |
| 203 | +</style> | |
| 204 | +</head> | |
| 205 | +<body> | |
| 206 | +<form:form commandName="mainzoneVO" name="writeForm" enctype="multipart/form-data" method="post"> | |
| 207 | + <input type="hidden" name="deviceType" id="deviceType" value="P"/> | |
| 208 | + <input type="hidden" name="selectedId" /> | |
| 209 | + <form:input path="mazId" type="hidden" /> | |
| 210 | + <form:input path="del" type="hidden" /> | |
| 211 | + <form:input path="upfile" type="hidden" /> | |
| 212 | + <form:input path="mainzoneImageFile" type="hidden" /> | |
| 213 | + <form:hidden path="ntceBgnde" /> | |
| 214 | + <form:hidden path="ntceEndde" /> | |
| 215 | + | |
| 216 | + <input type="hidden" name="beSort" value="${mainzoneVO.beSort}" /> | |
| 217 | + <!-- 드래그앤 드롭 파라미터 --> | |
| 218 | + <input type="hidden" name="menuName" value="mainzone" /> | |
| 219 | + <input type="hidden" name="fmsId" value="${mainzoneVO.mazId}" /> | |
| 220 | + <input type="hidden" name="limitcount" value="1" /><!-- 최대 업로드 파일갯수 --> | |
| 221 | + | |
| 222 | + <div class="contWrap"> | |
| 223 | + <div class="pageTitle"> | |
| 224 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 225 | + <h2 class="titType1 c_222222 fwBold">메인비주얼 등록/수정</h2> | |
| 226 | + <p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p> | |
| 227 | + </div> | |
| 228 | + <div class="pageNav"> | |
| 229 | + <img src="/pb/img/common/homeIcon.png" alt="홈이미지"> > <p class="topDepth">비주얼관리</p> > <p class="subDepth">메인비주얼관리</p> | |
| 230 | + </div> | |
| 231 | + <div class="pageCont"> | |
| 232 | + <div class="tableWrap"> | |
| 233 | + <p class="right fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p> | |
| 234 | + <table class="tbType2"> | |
| 235 | + <colgroup> | |
| 236 | + <col style="width: 15%"> | |
| 237 | + <col style="width: 85%"> | |
| 238 | + </colgroup> | |
| 239 | + <tbody> | |
| 240 | + <%-- <tr> | |
| 241 | + <th class="td_title1"><span class="star_t"></span>메인화면에 보이는 메인 이미지</th> | |
| 242 | + <td colspan="3" class="td_txt_exist"> | |
| 243 | + <c:if test="${mainzoneVO.mazId == null}"> | |
| 244 | + 등록된 메인 이미지가 없습니다. | |
| 245 | + </c:if> | |
| 246 | + <c:if test="${mainzoneVO.mazId != null}"> | |
| 247 | + <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' width="196" height="237" /> | |
| 248 | + </c:if> | |
| 249 | + </td> | |
| 250 | + </tr> --%> | |
| 251 | + <c:if test="${siteId eq 'super'}"> | |
| 252 | + <tr> | |
| 253 | + <th><span class="reqArea">사이트</span></th> | |
| 254 | + <td> | |
| 255 | + <select name="siteId" id="siteId" title="권한"> | |
| 256 | + <c:forEach var="resultList" items="${siteManageList}" varStatus="status"> | |
| 257 | + <option value="<c:out value="${resultList.siteId}"/>" | |
| 258 | + <c:if test="${mainzoneVO.siteId eq resultList.siteId}"> selected='selected' </c:if>> | |
| 259 | + <c:out value="${resultList.siteNm}"/> | |
| 260 | + </option> | |
| 261 | + </c:forEach> | |
| 262 | + </select> | |
| 263 | + </td> | |
| 264 | + </tr> | |
| 265 | + </c:if> | |
| 266 | + <tr> | |
| 267 | + <th><span>원본이미지</span></th> | |
| 268 | + <td> | |
| 269 | + <c:if test="${mainzoneVO.mazId == ''}"> | |
| 270 | + <div class="imgBox"></div> | |
| 271 | + </c:if> | |
| 272 | + <c:if test="${mainzoneVO.mazId != ''}"> | |
| 273 | + <img alt="${mainzoneVO.content}" onerror="this.src='/pb/img/noImg.png'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:300px;padding: 10px;" /> | |
| 274 | + <%-- <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:600px;" /> --%> | |
| 275 | + </c:if> | |
| 276 | + </td> | |
| 277 | + </tr> | |
| 278 | + <!-- <tr> --> | |
| 279 | + <!-- <th class="td_title1"><span class="star_t">*</span>기기종류</th> --> | |
| 280 | + <!-- <td colspan="3"> --> | |
| 281 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="P" style="margin-left: 13px; margin-right: 5px;" --> | |
| 282 | + <!-- checked="checked" --> | |
| 283 | + <%-- ${mainzoneVO.deviceType eq 'P' or mainzoneVO.deviceType eq '' ? 'checked="checked"' : ''} --%> | |
| 284 | + <!-- >PC --> | |
| 285 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="M" style="margin-left: 13px; margin-right: 5px;" --> | |
| 286 | + <%-- ${mainzoneVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%> | |
| 287 | + <!-- >모바일 --> | |
| 288 | + <!-- </td> --> | |
| 289 | + <!-- </tr> --> | |
| 290 | + <tr> | |
| 291 | + <th><span class="reqArea">비주얼명</span></th> | |
| 292 | + <td> | |
| 293 | + <form:input path="mazNm" maxlength="30" /> | |
| 294 | + </td> | |
| 295 | + </tr> | |
| 296 | + <tr> | |
| 297 | + <th><span class="reqArea">대체텍스트</span></th> | |
| 298 | + <td> | |
| 299 | + <form:input path="content" maxlength="500" /> | |
| 300 | + </td> | |
| 301 | + </tr> | |
| 302 | + <tr> | |
| 303 | + <th><span class="reqArea">사용여부</span></th> | |
| 304 | + <td> | |
| 305 | + <input type="radio" name="useYn" id="useY" value="Y" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'Y' or mainzoneVO.useYn eq '' ? 'checked="checked"' : ''} /><label for="">사용</label> | |
| 306 | + <input type="radio" name="useYn" id="useN" value="N" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'N' ? 'checked="checked"' : ''} /><label for="">미사용</label> | |
| 307 | + </td> | |
| 308 | + </tr> | |
| 309 | + | |
| 310 | + <tr> | |
| 311 | + <th><span class="reqArea">노출순서</span></th> | |
| 312 | + <td colspan="3"> | |
| 313 | + <form:input path="sort" maxlength="10" onkeyup="this.value=this.value.replace(/[^-\.0-9]/g,'')"/> | |
| 314 | + </td> | |
| 315 | + </tr> | |
| 316 | + <tr> | |
| 317 | + <th><span class="reqArea">게시기간</span></th> | |
| 318 | + <td> | |
| 319 | + <input type="hidden" name="cal_url" id="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" > | |
| 320 | + <input type="text" class="date_format" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 6, 8)}"/>" readonly> | |
| 321 | + | |
| 322 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceBgndeYYYMMDD);"> | |
| 323 | + <input type="button" class="calBtn"> | |
| 324 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 325 | + </a> | |
| 326 | + <form:select path="ntceBgndeHH" class="date_format"> | |
| 327 | + <form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 328 | + </form:select>시 | |
| 329 | + <form:select path="ntceBgndeMM" class="date_format"> | |
| 330 | + <form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 331 | + </form:select>분 | |
| 332 | +   ~   | |
| 333 | + <input type="text" class="date_format" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 6, 8)}"/>" readonly> | |
| 334 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceEnddeYYYMMDD);"> | |
| 335 | + <input type="button" class="calBtn"> | |
| 336 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 337 | + </a> | |
| 338 | + <form:select path="ntceEnddeHH" class="date_format"> | |
| 339 | + <form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 340 | + </form:select>시 | |
| 341 | + <form:select path="ntceEnddeMM" class="date_format"> | |
| 342 | + <form:options items="${ntceEnddeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 343 | + </form:select>분 | |
| 344 | + </td> | |
| 345 | + </tr> | |
| 346 | + <tr> | |
| 347 | + <th><span>링크주소</span></th> | |
| 348 | + <td colspan="3"> | |
| 349 | + <form:input path="mlink" maxlength="200" /> | |
| 350 | + </td> | |
| 351 | + </tr> | |
| 352 | + <tr> | |
| 353 | + <th><span class="reqArea">파일 첨부</span></th> | |
| 354 | + <td class="upload_area"> | |
| 355 | + <div class="file_upload_box no_img_box fileWrap"> | |
| 356 | + <table> | |
| 357 | + <colgroup> | |
| 358 | + <col style="width: 60%"> | |
| 359 | + <col style="width: 10%"> | |
| 360 | + <col style="width: 20%"> | |
| 361 | + <col style="width: 10%"> | |
| 362 | + </colgroup> | |
| 363 | + <thead> | |
| 364 | + <tr> | |
| 365 | + <th>파일명</th> | |
| 366 | + <th>크기</th> | |
| 367 | + <th>등록일시</th> | |
| 368 | + <th>삭제</th> | |
| 369 | + </tr> | |
| 370 | + </thead> | |
| 371 | + </table> | |
| 372 | + </div> | |
| 373 | + <div class="fileWrap fileAfter file_list_div asset_no_use_pro_table" style="display:none"> | |
| 374 | + <table> | |
| 375 | + <colgroup> | |
| 376 | + <col style="width: 60%"> | |
| 377 | + <col style="width: 10%"> | |
| 378 | + <col style="width: 20%"> | |
| 379 | + <col style="width: 10%"> | |
| 380 | + </colgroup> | |
| 381 | + <thead> | |
| 382 | + <tr> | |
| 383 | + <th>파일명</th> | |
| 384 | + <th>크기</th> | |
| 385 | + <th>등록일시</th> | |
| 386 | + <th>삭제</th> | |
| 387 | + </tr> | |
| 388 | + </thead> | |
| 389 | + <tbody id="tbody_fiielist"> | |
| 390 | + <c:forEach var="fileList" items="${fileList}" varStatus="status"> | |
| 391 | + <tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj"> | |
| 392 | + <td class="file_name"> | |
| 393 | + <a href="javascript:fn_egov_downFile('${fileList.atchFileId}','${fileList.fileSn}')"> | |
| 394 | + <img src="/direct/img/upload_hwp_img.png" alt="" /> | |
| 395 | + <span class="file_name_text">${fileList.orignlFileNm}</span> | |
| 396 | + </a> | |
| 397 | + </td> | |
| 398 | + <td><span class="file_size_text" value="${fileList.fileMg}"></span></td> | |
| 399 | + <td>${fileList.creatDt}</td> | |
| 400 | + <td> | |
| 401 | + <input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;"> | |
| 402 | + </td> | |
| 403 | + <input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileMg}" > | |
| 404 | + </tr> | |
| 405 | + </c:forEach> | |
| 406 | + </tbody> | |
| 407 | + </table> | |
| 408 | + </div> | |
| 409 | + <div class="fileInfo file_list_div"> | |
| 410 | + <ul class="inline"> | |
| 411 | + <li> | |
| 412 | + <p><span class="c_456ded fwBold totalfileCount">0</span>개 | <span class="c_456ded fwBold totalfileSize">0MB</span></p> | |
| 413 | + </li> | |
| 414 | + <li> | |
| 415 | + <p>최대 <span class="c_e40000 fwBold limitcount_li"></span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p> | |
| 416 | + </li> | |
| 417 | + </ul> | |
| 418 | + </div> | |
| 419 | + <div class="uploadBtm"> | |
| 420 | + <input type="file" id="file_temp" name="file_temp" class="uploadFile"> | |
| 421 | + <!-- <span class="uploadTtype4">메인비주얼 이미지 크기는 </span><span class="uploadTtype4" style="color: red;">1920 X 843 </span>입니다.</p> --> | |
| 422 | + </div> | |
| 423 | + </td> | |
| 424 | + </tr> | |
| 425 | + | |
| 426 | + <%-- <tr> | |
| 427 | + <th class="td_title1"><span class="star_t">*</span>첨부 파일</th> | |
| 428 | + <td colspan="3" class="td_txt_exist"> | |
| 429 | + <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> | |
| 430 | + <c:param name="param_atchFileId" value="${mainzoneVO.mainzoneImageFile }" /> | |
| 431 | + <c:param name="img_view" value="N" /> | |
| 432 | + <c:param name="img_view_w" value="200" /> | |
| 433 | + <c:param name="img_view_h" value="200" /> | |
| 434 | + <c:param name="updateFlag" value="N" /> | |
| 435 | + <c:param name="img_change_view" value="Y" /> | |
| 436 | + </c:import> | |
| 437 | + </td> | |
| 438 | + </tr> --%> | |
| 439 | + <c:if test="${!empty mainzoneVO.mazId}"> | |
| 440 | + <tr> | |
| 441 | + <th><span class="reqArea">최종수정일</span></th> | |
| 442 | + <td> | |
| 443 | + ${mainzoneVO.moddt} | |
| 444 | + </td> | |
| 445 | + </tr> | |
| 446 | + | |
| 447 | + <tr> | |
| 448 | + <th><span class="reqArea">작성자</span></th> | |
| 449 | + <td> | |
| 450 | + ${mainzoneVO.registerId} | |
| 451 | + </td> | |
| 452 | + </tr> | |
| 453 | + </c:if> | |
| 454 | + </tbody> | |
| 455 | + </table> | |
| 456 | + </div> | |
| 457 | + <div class="btnWrap right"> | |
| 458 | + <input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;" > | |
| 459 | + <c:if test="${!empty mainzoneVO.mazId }"> | |
| 460 | + <input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_mainzone_delete(); return false;" > | |
| 461 | + <input type="button" class="btnType1" value="수 정" onclick="validate('mainzone_U'); return false;"> | |
| 462 | + </c:if> | |
| 463 | + <c:if test="${empty mainzoneVO.mazId }"> | |
| 464 | + <input type="button" class="btnType1" value="저 장" onclick="validate('mainzone_I'); return false;"> | |
| 465 | + </c:if> | |
| 466 | + </div> | |
| 467 | + </div> | |
| 468 | + </div> | |
| 469 | +</form:form> | |
| 470 | +<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" ></form> | |
| 471 | +</body> | |
| 472 | +</html> |
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?