베스트문자샘플 (메인)화면 기능 추가
@baa9ee61430218e5ae328ea41d1d5ae4a4437aaf
--- src/main/java/itn/let/lett/service/LetterService.java
+++ src/main/java/itn/let/lett/service/LetterService.java
... | ... | @@ -175,4 +175,18 @@ |
| 175 | 175 |
public List<LetterVO> selectMainTagWebList(LetterVO letterVO) throws Exception ; |
| 176 | 176 |
// 첫번째 키워드 조회 |
| 177 | 177 |
public LetterVO selectFrsKeyword(LetterVO letterVO) throws Exception ; |
| 178 |
+ |
|
| 179 |
+ |
|
| 180 |
+ |
|
| 181 |
+ // 메인베스트 태그 관리 |
|
| 182 |
+ public List<LetterVO> selectBastMsgTagList(LetterVO letterVO) throws Exception ; |
|
| 183 |
+ |
|
| 184 |
+ // 메인베스트 태그 상세 |
|
| 185 |
+ public LetterVO selectBastMsgTagInfo(LetterVO letterVO) throws Exception ; |
|
| 186 |
+ |
|
| 187 |
+ // 메인베스트 태그 등록 |
|
| 188 |
+ public void insertBastMsgTag(LetterVO letterVO) throws Exception ; |
|
| 189 |
+ |
|
| 190 |
+ // 메인베스트 태그 수정 |
|
| 191 |
+ public void updateBastMsgTag(LetterVO letterVO) throws Exception ; |
|
| 178 | 192 |
} |
--- src/main/java/itn/let/lett/service/LetterVO.java
+++ src/main/java/itn/let/lett/service/LetterVO.java
... | ... | @@ -46,6 +46,7 @@ |
| 46 | 46 |
private int chkIdsSize; |
| 47 | 47 |
|
| 48 | 48 |
// 메인태그관리 |
| 49 |
+ private String mainSearchTagNo; |
|
| 49 | 50 |
private String mainTagNo; |
| 50 | 51 |
private String tagNm; |
| 51 | 52 |
private String tagType; |
... | ... | @@ -380,7 +381,10 @@ |
| 380 | 381 |
public void setLetterAlt(String letterAlt) {
|
| 381 | 382 |
this.letterAlt = letterAlt; |
| 382 | 383 |
} |
| 383 |
- |
|
| 384 |
- |
|
| 385 |
- |
|
| 384 |
+ public String getMainSearchTagNo() {
|
|
| 385 |
+ return mainSearchTagNo; |
|
| 386 |
+ } |
|
| 387 |
+ public void setMainSearchTagNo(String mainSearchTagNo) {
|
|
| 388 |
+ this.mainSearchTagNo = mainSearchTagNo; |
|
| 389 |
+ } |
|
| 386 | 390 |
} |
--- src/main/java/itn/let/lett/service/impl/LetterDAO.java
+++ src/main/java/itn/let/lett/service/impl/LetterDAO.java
... | ... | @@ -324,4 +324,25 @@ |
| 324 | 324 |
return (LetterVO) select("LetterDAO.selectFrsKeyword", letterVO);
|
| 325 | 325 |
} |
| 326 | 326 |
|
| 327 |
+ |
|
| 328 |
+ // 메인 베스트 태그 관리 |
|
| 329 |
+ @SuppressWarnings("unchecked")
|
|
| 330 |
+ public List<LetterVO> selectBastMsgTagList(LetterVO letterVO) throws Exception {
|
|
| 331 |
+ return (List<LetterVO>) list("LetterDAO.selectBastMsgTagList", letterVO);
|
|
| 332 |
+ } |
|
| 333 |
+ |
|
| 334 |
+ // 메인 베스트 태그 상세 |
|
| 335 |
+ public LetterVO selectBastMsgTagInfo(LetterVO letterVO) throws Exception {
|
|
| 336 |
+ return (LetterVO) select("LetterDAO.selectBastMsgTagInfo", letterVO);
|
|
| 337 |
+ } |
|
| 338 |
+ |
|
| 339 |
+ // 메인 베스트 태그 등록 |
|
| 340 |
+ public void insertBastMsgTag(LetterVO letterVO) throws Exception {
|
|
| 341 |
+ insert("LetterDAO.insertBastMsgTag", letterVO);
|
|
| 342 |
+ } |
|
| 343 |
+ |
|
| 344 |
+ // 메인 베스트 태그 수정 |
|
| 345 |
+ public void updateBastMsgTag(LetterVO letterVO) throws Exception {
|
|
| 346 |
+ update("LetterDAO.updateBastMsgTag", letterVO);
|
|
| 347 |
+ } |
|
| 327 | 348 |
} |
--- src/main/java/itn/let/lett/service/impl/LetterServiceImpl.java
+++ src/main/java/itn/let/lett/service/impl/LetterServiceImpl.java
... | ... | @@ -404,5 +404,25 @@ |
| 404 | 404 |
@Override |
| 405 | 405 |
public LetterVO selectFrsKeyword(LetterVO letterVO) throws Exception {
|
| 406 | 406 |
return letterDAO.selectFrsKeyword(letterVO); |
| 407 |
- } |
|
| 407 |
+ } |
|
| 408 |
+ |
|
| 409 |
+ @Override |
|
| 410 |
+ public List<LetterVO> selectBastMsgTagList(LetterVO letterVO) throws Exception {
|
|
| 411 |
+ return letterDAO.selectBastMsgTagList(letterVO); |
|
| 412 |
+ } |
|
| 413 |
+ |
|
| 414 |
+ @Override |
|
| 415 |
+ public LetterVO selectBastMsgTagInfo(LetterVO letterVO) throws Exception {
|
|
| 416 |
+ return letterDAO.selectBastMsgTagInfo(letterVO); |
|
| 417 |
+ } |
|
| 418 |
+ |
|
| 419 |
+ @Override |
|
| 420 |
+ public void insertBastMsgTag(LetterVO letterVO) throws Exception {
|
|
| 421 |
+ letterDAO.insertBastMsgTag(letterVO); |
|
| 422 |
+ } |
|
| 423 |
+ |
|
| 424 |
+ @Override |
|
| 425 |
+ public void updateBastMsgTag(LetterVO letterVO) throws Exception {
|
|
| 426 |
+ letterDAO.updateBastMsgTag(letterVO); |
|
| 427 |
+ } |
|
| 408 | 428 |
} |
--- src/main/java/itn/let/lett/web/LetterController.java
+++ src/main/java/itn/let/lett/web/LetterController.java
... | ... | @@ -2436,7 +2436,7 @@ |
| 2436 | 2436 |
model.addAttribute("paginationInfo", paginationInfo);
|
| 2437 | 2437 |
|
| 2438 | 2438 |
return "letter/messages/MainTagList"; |
| 2439 |
- } |
|
| 2439 |
+ } |
|
| 2440 | 2440 |
|
| 2441 | 2441 |
/** |
| 2442 | 2442 |
* 메인태그 등록화면 |
... | ... | @@ -2528,7 +2528,118 @@ |
| 2528 | 2528 |
modelAndView.addObject("msg", msg);
|
| 2529 | 2529 |
|
| 2530 | 2530 |
return modelAndView; |
| 2531 |
- } |
|
| 2531 |
+ } |
|
| 2532 |
+ |
|
| 2533 |
+ |
|
| 2534 |
+ |
|
| 2535 |
+ /*-------------------------------------------*/ |
|
| 2536 |
+ |
|
| 2537 |
+ |
|
| 2538 |
+ /** |
|
| 2539 |
+ * @Method Name : selectBastMsgTagList |
|
| 2540 |
+ * @작성일 : 2023. 9. 5. |
|
| 2541 |
+ * @작성자 : WYH |
|
| 2542 |
+ * @변경이력 : |
|
| 2543 |
+ * @Method 설명 : 배스트 문자샘플 매인화면 |
|
| 2544 |
+ */ |
|
| 2545 |
+ @RequestMapping(value="/letter/messages/selectBastMsgTagList.do") |
|
| 2546 |
+ public String selectBastMsgTagList(@ModelAttribute("searchVO") LetterVO searchVO,
|
|
| 2547 |
+ ModelMap model) throws Exception {
|
|
| 2548 |
+ |
|
| 2549 |
+ if(searchVO.getPageUnit() != 10) {
|
|
| 2550 |
+ searchVO.setPageUnit(searchVO.getPageUnit()); |
|
| 2551 |
+ } |
|
| 2552 |
+ |
|
| 2553 |
+ /** pageing */ |
|
| 2554 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 2555 |
+ paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); |
|
| 2556 |
+ paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); |
|
| 2557 |
+ paginationInfo.setPageSize(searchVO.getPageSize()); |
|
| 2558 |
+ |
|
| 2559 |
+ if("".equals(searchVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 2560 |
+ searchVO.setSearchSortCnd("mainSearchTagNo");
|
|
| 2561 |
+ searchVO.setSearchSortOrd("desc");
|
|
| 2562 |
+ } |
|
| 2563 |
+ |
|
| 2564 |
+ searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 2565 |
+ searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 2566 |
+ searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 2567 |
+ List<LetterVO> mainTagList = letterService.selectBastMsgTagList(searchVO); |
|
| 2568 |
+ |
|
| 2569 |
+ model.addAttribute("resultList", mainTagList);
|
|
| 2570 |
+ paginationInfo.setTotalRecordCount(mainTagList.size() > 0 ? ((LetterVO)mainTagList.get(0)).getTotCnt() : 0); |
|
| 2571 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 2572 |
+ |
|
| 2573 |
+ return "letter/messages/BastMsgTagList"; |
|
| 2574 |
+ } |
|
| 2575 |
+ |
|
| 2576 |
+ /** |
|
| 2577 |
+ * @Method Name : insertBastMsgTagView |
|
| 2578 |
+ * @작성일 : 2023. 9. 5. |
|
| 2579 |
+ * @작성자 : WYH |
|
| 2580 |
+ * @변경이력 : |
|
| 2581 |
+ * @Method 설명 : 베스트 문자샘플 등록화면 |
|
| 2582 |
+ */ |
|
| 2583 |
+ @RequestMapping("/letter/messages/insertBastMsgTagView.do")
|
|
| 2584 |
+ public String insertBastMsgTagView( |
|
| 2585 |
+ @ModelAttribute("searchVO") LetterVO searchVO
|
|
| 2586 |
+ , Model model) throws Exception {
|
|
| 2587 |
+ |
|
| 2588 |
+ LetterVO letterVO = new LetterVO(); |
|
| 2589 |
+ if(null != searchVO.getMainSearchTagNo() && !"".equals(searchVO.getMainSearchTagNo())) {
|
|
| 2590 |
+ //수정 |
|
| 2591 |
+ letterVO = letterService.selectBastMsgTagInfo(searchVO); //이전 로그인한 IP 까지 조회 |
|
| 2592 |
+ } |
|
| 2593 |
+ model.addAttribute("letterVO", letterVO);
|
|
| 2594 |
+ |
|
| 2595 |
+ return "letter/messages/BastMsgTagInfo"; |
|
| 2596 |
+ } |
|
| 2597 |
+ |
|
| 2598 |
+ /** |
|
| 2599 |
+ * @Method Name : saveBastMsgTagAjax |
|
| 2600 |
+ * @작성일 : 2023. 9. 5. |
|
| 2601 |
+ * @작성자 : WYH |
|
| 2602 |
+ * @변경이력 : |
|
| 2603 |
+ * @Method 설명 : 베스트 문자샘플 등록 / 수정 |
|
| 2604 |
+ */ |
|
| 2605 |
+ @RequestMapping(value = "/letter/messages/saveBastMsgTagAjax.do") |
|
| 2606 |
+ public ModelAndView saveBastMsgTagAjax( |
|
| 2607 |
+ @ModelAttribute("letterVO") LetterVO letterVO) throws Exception {
|
|
| 2608 |
+ |
|
| 2609 |
+ ModelAndView modelAndView = new ModelAndView(); |
|
| 2610 |
+ modelAndView.setViewName("jsonView");
|
|
| 2611 |
+ |
|
| 2612 |
+ boolean isSuccess = true; |
|
| 2613 |
+ String msg = ""; |
|
| 2614 |
+ |
|
| 2615 |
+ // 로그인VO에서 사용자 정보 가져오기 |
|
| 2616 |
+ LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 2617 |
+ String frstRegisterId = loginVO == null ? "" : loginVO.getId(); |
|
| 2618 |
+ letterVO.setRegId(frstRegisterId); // 최초등록자ID |
|
| 2619 |
+ |
|
| 2620 |
+ |
|
| 2621 |
+ try{
|
|
| 2622 |
+ if(null != letterVO.getMainSearchTagNo() && !"".equals(letterVO.getMainSearchTagNo())) {
|
|
| 2623 |
+ //수정 |
|
| 2624 |
+ letterService.updateBastMsgTag(letterVO); |
|
| 2625 |
+ } |
|
| 2626 |
+ else {
|
|
| 2627 |
+ // 등록 |
|
| 2628 |
+ letterService.insertBastMsgTag(letterVO); |
|
| 2629 |
+ } |
|
| 2630 |
+ |
|
| 2631 |
+ } |
|
| 2632 |
+ catch(Exception e) {
|
|
| 2633 |
+ isSuccess = false; |
|
| 2634 |
+ msg = e.getMessage(); |
|
| 2635 |
+ } |
|
| 2636 |
+ |
|
| 2637 |
+ modelAndView.addObject("isSuccess", isSuccess);
|
|
| 2638 |
+ modelAndView.addObject("msg", msg);
|
|
| 2639 |
+ |
|
| 2640 |
+ return modelAndView; |
|
| 2641 |
+ } |
|
| 2642 |
+ |
|
| 2532 | 2643 |
|
| 2533 | 2644 |
@RequestMapping(value={"/letter/photo/updateMultiMjonMsgAgentStsDataAjax.do"})
|
| 2534 | 2645 |
public ModelAndView updateMultiMjonMsgAgentStsDataAjax(@ModelAttribute("mjonMsgAgentStsVO") MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception {
|
--- src/main/resources/egovframework/sqlmap/let/letter/LetterMessages_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/letter/LetterMessages_SQL_Mysql.xml
... | ... | @@ -1043,7 +1043,7 @@ |
| 1043 | 1043 |
WHERE LETTER_ID = #letterId# |
| 1044 | 1044 |
</update> |
| 1045 | 1045 |
|
| 1046 |
- |
|
| 1046 |
+ <!-- 베스트 문자샘플 리스트 조회 --> |
|
| 1047 | 1047 |
<select id="LetterDAO.selectMainTagList" parameterClass="letterVO" resultClass="letterVO"> |
| 1048 | 1048 |
SELECT |
| 1049 | 1049 |
COUNT(A.MAIN_TAG_NO) OVER() AS totCnt, |
... | ... | @@ -1097,14 +1097,15 @@ |
| 1097 | 1097 |
DATE_FORMAT(A.REG_DT,'%Y-%m-%d %H:%i:%S') AS regDt, |
| 1098 | 1098 |
A.MOD_ID AS modId, |
| 1099 | 1099 |
DATE_FORMAT(A.MOD_DT,'%Y-%m-%d %H:%i:%S') AS modDt |
| 1100 |
- FROM mj_main_tag A |
|
| 1100 |
+ FROM |
|
| 1101 |
+ MJ_MAIN_TAG A |
|
| 1101 | 1102 |
WHERE 1=1 |
| 1102 | 1103 |
AND A.MAIN_TAG_NO = #mainTagNo# |
| 1103 | 1104 |
LIMIT 1 |
| 1104 | 1105 |
</select> |
| 1105 | 1106 |
|
| 1106 | 1107 |
<insert id="LetterDAO.insertMainTag" parameterClass="letterVO"> |
| 1107 |
- INSERT INTO mj_main_tag ( |
|
| 1108 |
+ INSERT INTO MJ_MAIN_TAG ( |
|
| 1108 | 1109 |
TAG_NM, |
| 1109 | 1110 |
TAG_TYPE, |
| 1110 | 1111 |
TAG_Div, |
... | ... | @@ -1186,4 +1187,108 @@ |
| 1186 | 1187 |
ORDER BY sort asc |
| 1187 | 1188 |
LIMIT 1 |
| 1188 | 1189 |
</select> |
| 1190 |
+ |
|
| 1191 |
+ <!-- 메인 베스트 태그관리 리스트 --> |
|
| 1192 |
+ <select id="LetterDAO.selectBastMsgTagList" parameterClass="letterVO" resultClass="letterVO"> |
|
| 1193 |
+ SELECT |
|
| 1194 |
+ COUNT(A.MAIN_SEARCH_TAG_NO) OVER() AS totCnt |
|
| 1195 |
+ , A.MAIN_SEARCH_TAG_NO AS mainSearchTagNo |
|
| 1196 |
+ , A.TAG_NM AS tagNm |
|
| 1197 |
+ , A.TAG_TYPE AS tagType |
|
| 1198 |
+ , A.TAG_Div AS tagDiv |
|
| 1199 |
+ , A.URL AS url |
|
| 1200 |
+ , A.SORT AS sort |
|
| 1201 |
+ , A.USE_YN AS useYn |
|
| 1202 |
+ , A.REG_ID AS regId |
|
| 1203 |
+ , DATE_FORMAT(A.REG_DT,'%Y-%m-%d %H:%i') AS regDt |
|
| 1204 |
+ , A.MOD_ID AS modId |
|
| 1205 |
+ , DATE_FORMAT(A.MOD_DT,'%Y-%m-%d %H:%i') AS modDt |
|
| 1206 |
+ FROM |
|
| 1207 |
+ mj_main_search_tag A |
|
| 1208 |
+ WHERE 1=1 |
|
| 1209 |
+ <isNotEmpty property="searchTagDiv"> |
|
| 1210 |
+ AND A.TAG_DIV = #searchTagDiv# |
|
| 1211 |
+ </isNotEmpty> |
|
| 1212 |
+ <isNotEmpty property="searchTagType"> |
|
| 1213 |
+ AND A.TAG_TYPE = #searchTagType# |
|
| 1214 |
+ </isNotEmpty> |
|
| 1215 |
+ <isNotEmpty property="searchUseYn"> |
|
| 1216 |
+ AND A.USE_YN = #searchUseYn# |
|
| 1217 |
+ </isNotEmpty> |
|
| 1218 |
+ <isNotEmpty property="searchKeyword"> |
|
| 1219 |
+ AND A.TAG_NM LIKE CONCAT('%',#searchKeyword#,'%')
|
|
| 1220 |
+ </isNotEmpty> |
|
| 1221 |
+ |
|
| 1222 |
+ ORDER BY 1=1 |
|
| 1223 |
+ <isNotEmpty property="searchSortCnd"> |
|
| 1224 |
+ ,$searchSortCnd$ |
|
| 1225 |
+ </isNotEmpty> |
|
| 1226 |
+ <isNotEmpty property="searchSortOrd"> |
|
| 1227 |
+ $searchSortOrd$ |
|
| 1228 |
+ </isNotEmpty> |
|
| 1229 |
+ LIMIT #recordCountPerPage# OFFSET #firstIndex# |
|
| 1230 |
+ </select> |
|
| 1231 |
+ |
|
| 1232 |
+ <select id="LetterDAO.selectBastMsgTagInfo" parameterClass="letterVO" resultClass="letterVO"> |
|
| 1233 |
+ SELECT |
|
| 1234 |
+ COUNT(A.MAIN_SEARCH_TAG_NO) OVER() AS totCnt, |
|
| 1235 |
+ A.MAIN_SEARCH_TAG_NO AS mainTagNo, |
|
| 1236 |
+ A.TAG_NM AS tagNm, |
|
| 1237 |
+ A.TAG_TYPE AS tagType, |
|
| 1238 |
+ A.TAG_Div AS tagDiv, |
|
| 1239 |
+ A.URL AS url, |
|
| 1240 |
+ A.SORT AS sort, |
|
| 1241 |
+ A.USE_YN AS useYn, |
|
| 1242 |
+ A.REG_ID AS regId, |
|
| 1243 |
+ DATE_FORMAT(A.REG_DT,'%Y-%m-%d %H:%i:%S') AS regDt, |
|
| 1244 |
+ A.MOD_ID AS modId, |
|
| 1245 |
+ DATE_FORMAT(A.MOD_DT,'%Y-%m-%d %H:%i:%S') AS modDt |
|
| 1246 |
+ FROM |
|
| 1247 |
+ MJ_MAIN_SEARCH_TAG A |
|
| 1248 |
+ WHERE 1=1 |
|
| 1249 |
+ AND A.MAIN_SEARCH_TAG_NO = #mainSearchTagNo# |
|
| 1250 |
+ LIMIT 1 |
|
| 1251 |
+ </select> |
|
| 1252 |
+ |
|
| 1253 |
+ <insert id="LetterDAO.insertBastMsgTag" parameterClass="letterVO"> |
|
| 1254 |
+ INSERT INTO MJ_MAIN_SEARCH_TAG ( |
|
| 1255 |
+ TAG_NM |
|
| 1256 |
+ , TAG_TYPE |
|
| 1257 |
+ , TAG_Div |
|
| 1258 |
+ , URL |
|
| 1259 |
+ , SORT |
|
| 1260 |
+ , USE_YN |
|
| 1261 |
+ , REG_ID |
|
| 1262 |
+ , REG_DT |
|
| 1263 |
+ , MOD_ID |
|
| 1264 |
+ , MOD_DT |
|
| 1265 |
+ ) |
|
| 1266 |
+ VALUES ( |
|
| 1267 |
+ #tagNm# |
|
| 1268 |
+ , #tagType# |
|
| 1269 |
+ , #tagDiv# |
|
| 1270 |
+ , #url# |
|
| 1271 |
+ , #sort# |
|
| 1272 |
+ , #useYn# |
|
| 1273 |
+ , #regId# |
|
| 1274 |
+ , now() |
|
| 1275 |
+ , #regId# |
|
| 1276 |
+ , now() |
|
| 1277 |
+ ) |
|
| 1278 |
+ </insert> |
|
| 1279 |
+ <update id="LetterDAO.updateBastMsgTag" parameterClass="letterVO"> |
|
| 1280 |
+ UPDATE |
|
| 1281 |
+ MJ_MAIN_SEARCH_TAG |
|
| 1282 |
+ SET |
|
| 1283 |
+ TAG_NM = #tagNm# |
|
| 1284 |
+ , TAG_TYPE = #tagType# |
|
| 1285 |
+ , TAG_Div = #tagDiv# |
|
| 1286 |
+ , URL = #url# |
|
| 1287 |
+ , SORT = #sort# |
|
| 1288 |
+ , USE_YN = #useYn# |
|
| 1289 |
+ , MOD_ID = #modId# |
|
| 1290 |
+ , MOD_DT = now() |
|
| 1291 |
+ WHERE 1=1 |
|
| 1292 |
+ AND MAIN_SEARCH_TAG_NO = #mainSearchTagNo# |
|
| 1293 |
+ </update> |
|
| 1189 | 1294 |
</sqlMap> |
+++ src/main/webapp/WEB-INF/jsp/letter/messages/BastMsgTagInfo.jsp
... | ... | @@ -0,0 +1,222 @@ |
| 1 | +<% | |
| 2 | + /** | |
| 3 | + * @Class Name : EgovHpcmRegist.jsp | |
| 4 | + * @Description : EgovHpcmRegist 화면 | |
| 5 | + * @Modification Information | |
| 6 | + * @ | |
| 7 | + * @ 수정일 수정자 수정내용 | |
| 8 | + * @ ------- -------- --------------------------- | |
| 9 | + * @ 2009.02.01 박정규 최초 생성 | |
| 10 | + * 2016.06.13 김연호 표준프레임워크 v3.6 개선 | |
| 11 | + * | |
| 12 | + * @author 공통서비스팀 | |
| 13 | + * @since 2009.02.01 | |
| 14 | + * @version 1.0 | |
| 15 | + * @see | |
| 16 | + * | |
| 17 | + */ | |
| 18 | +%> | |
| 19 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 20 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 21 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 22 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 23 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 24 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 25 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 26 | +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> | |
| 27 | +<!DOCTYPE html> | |
| 28 | +<html lang="ko"> | |
| 29 | +<head> | |
| 30 | +<title>베스트 문자샘플 등록</title> | |
| 31 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 32 | +<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> | |
| 33 | +<script type="text/javaScript" language="javascript"> | |
| 34 | +var crudMode = "${searchVO.crudMode}"; | |
| 35 | +var mainTagNo = "${searchVO.mainTagNo}"; | |
| 36 | +var tagDiv = "1"; | |
| 37 | +$( document ).ready(function(){ | |
| 38 | + // Start | |
| 39 | + init(); | |
| 40 | + | |
| 41 | + | |
| 42 | + // change 함수 | |
| 43 | + $("input[name='tagDiv']:radio").change(function () { | |
| 44 | + tagDiv = $(this).val(); | |
| 45 | + | |
| 46 | + if (tagDiv == "1") { | |
| 47 | + $("#tagTypeTr").show(); | |
| 48 | + $("#urlTr").hide(); | |
| 49 | + | |
| 50 | + } | |
| 51 | + else if (tagDiv == "2") { | |
| 52 | + $("#urlTr").show(); | |
| 53 | + $("#tagTypeTr").hide(); | |
| 54 | + } | |
| 55 | + | |
| 56 | + }); | |
| 57 | + | |
| 58 | +}); | |
| 59 | + | |
| 60 | +// Start | |
| 61 | +function init() { | |
| 62 | + tagDiv = $('input[name="tagDiv"]:checked').val(); | |
| 63 | + | |
| 64 | + if (tagDiv == "1") { | |
| 65 | + $("#tagTypeTr").show(); | |
| 66 | + $("#urlTr").hide(); | |
| 67 | + } | |
| 68 | + else if (tagDiv == "2") { | |
| 69 | + $("#urlTr").show(); | |
| 70 | + $("#tagTypeTr").hide(); | |
| 71 | + } | |
| 72 | + else { | |
| 73 | + $('#tagDiv1').prop('checked', true); | |
| 74 | + $("#tagTypeTr").show(); | |
| 75 | + $("#urlTr").hide(); | |
| 76 | + } | |
| 77 | +} | |
| 78 | + | |
| 79 | + | |
| 80 | +// 등록, 수정 | |
| 81 | +function setDataSave(tagNo) { | |
| 82 | + var frm = document.writeForm; | |
| 83 | + tagDiv = $('input[name="tagDiv"]:checked').val(); | |
| 84 | + | |
| 85 | + if (tagDiv == "1") { | |
| 86 | + // 검색 | |
| 87 | + if(frm.tagType.value.trim() == ""){ | |
| 88 | + alert("문자구분은 필수값입니다."); | |
| 89 | + return false; | |
| 90 | + } | |
| 91 | + else if(frm.tagNm.value.trim() == ""){ | |
| 92 | + alert("문자키워드는 필수값입니다."); | |
| 93 | + return false; | |
| 94 | + } | |
| 95 | + else if(frm.sort.value.trim() == ""){ | |
| 96 | + alert("정렬순서는 필수값입니다."); | |
| 97 | + return false; | |
| 98 | + } | |
| 99 | + } | |
| 100 | + else if (tagDiv == "2") { | |
| 101 | + // 소개 | |
| 102 | + if(frm.tagNm.value.trim() == ""){ | |
| 103 | + alert("문자키워드는 필수값입니다."); | |
| 104 | + return false; | |
| 105 | + } | |
| 106 | + else if(frm.url.value.trim() == ""){ | |
| 107 | + alert("URL은 필수값입니다."); | |
| 108 | + return false; | |
| 109 | + } | |
| 110 | + else if(frm.sort.value.trim() == ""){ | |
| 111 | + alert("정렬순서는 필수값입니다."); | |
| 112 | + return false; | |
| 113 | + } | |
| 114 | + } | |
| 115 | + | |
| 116 | + if(!confirm("저장 하시겠습니까?")) { | |
| 117 | + return; | |
| 118 | + } | |
| 119 | + | |
| 120 | + $.ajax({ | |
| 121 | + type: "POST" | |
| 122 | + , url: "/letter/messages/saveBastMsgTagAjax.do" | |
| 123 | + , data: $("#writeForm").serialize() | |
| 124 | + , dataType:'json' | |
| 125 | + , async: false | |
| 126 | + , success: function (data) { | |
| 127 | + if (data.isSuccess) { | |
| 128 | + alert("저장 완료했습니다."); | |
| 129 | + location.href = "/letter/messages/selectBastMsgTagList.do"; | |
| 130 | + } | |
| 131 | + else { | |
| 132 | + alert("Msg : " + data.msg); | |
| 133 | + } | |
| 134 | + } | |
| 135 | + , error: function (e) { | |
| 136 | + alert("ERROR : " + JSON.stringify(e)); | |
| 137 | + } | |
| 138 | + }); | |
| 139 | + | |
| 140 | +} | |
| 141 | + | |
| 142 | +</script> | |
| 143 | + | |
| 144 | +</head> | |
| 145 | +<body> | |
| 146 | +<form name="writeForm" id="writeForm" method="post"> | |
| 147 | + <input type="hidden" id="mainSearchTagNo" name="mainSearchTagNo" value="${searchVO.mainSearchTagNo}" /> | |
| 148 | + | |
| 149 | + <div class="contWrap"> | |
| 150 | + <div class="pageTitle"> | |
| 151 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 152 | + <h2 class="titType1 c_222222 fwBold">베스트 문자샘플 등록</h2> | |
| 153 | + <p class="tType6 c_999999"></p> | |
| 154 | + </div> | |
| 155 | + <div class="pageCont"> | |
| 156 | + <table class="tbType2"> | |
| 157 | + <colgroup> | |
| 158 | + <col style="width: 20%"> | |
| 159 | + <col style="width: 80%"> | |
| 160 | + </colgroup> | |
| 161 | + <tbody> | |
| 162 | + <tr> | |
| 163 | + <th><span class="reqArea">메뉴 분류</span></th> | |
| 164 | + <td colspan="3"> | |
| 165 | + <input type="radio" name="tagDiv" id="tagDiv1" value='1' <c:if test="${letterVO.tagDiv eq '1'}"> checked="checked"</c:if> /> | |
| 166 | + <label for="refundCheckF">검색</label> | |
| 167 | + | |
| 168 | + <input type="radio" name="tagDiv" id="tagDiv2" value='2' <c:if test="${letterVO.tagDiv eq '2'}"> checked="checked"</c:if> /> | |
| 169 | + <label for="refundCheckF">소개</label> | |
| 170 | + </select> | |
| 171 | + </td> | |
| 172 | + </tr> | |
| 173 | + <tr id="tagTypeTr"> | |
| 174 | + <th><span class="reqArea">문자 구분</span></th> | |
| 175 | + <td colspan="3"> | |
| 176 | + <select id="tagType" name="tagType"> | |
| 177 | + <option value="">선택</option> | |
| 178 | + <option value="S" <c:if test="${letterVO.tagType eq 'S'}">selected="selected"</c:if>>단문</option> | |
| 179 | + <option value="L" <c:if test="${letterVO.tagType eq 'L'}">selected="selected"</c:if>>장문</option> | |
| 180 | + <option value="P" <c:if test="${letterVO.tagType eq 'P'}">selected="selected"</c:if>>그림</option> | |
| 181 | + </select> | |
| 182 | + </td> | |
| 183 | + </tr> | |
| 184 | + <tr id="urlTr"> | |
| 185 | + <th><span class="reqArea">URL</span></th> | |
| 186 | + <td colspan="3"> | |
| 187 | + <input type="text" name="url" id="url" title="URL" maxlength="500" value="${letterVO.url}"/> | |
| 188 | + </td> | |
| 189 | + </tr> | |
| 190 | + <tr> | |
| 191 | + <th><span class="reqArea">문자 키워드</span></th> | |
| 192 | + <td colspan="3"> | |
| 193 | + <input type="text" name="tagNm" id="tagNm" title="문자 키워드" maxlength="50" value="${letterVO.tagNm}"/> | |
| 194 | + </td> | |
| 195 | + </tr> | |
| 196 | + <tr> | |
| 197 | + <th><span class="reqArea">정렬순서</span></th> | |
| 198 | + <td colspan="3"> | |
| 199 | + <input type="text" name="sort" id="sort" title="도움말정의" maxlength="100" value="1" value="${letterVO.sort}"/> | |
| 200 | + </td> | |
| 201 | + </tr> | |
| 202 | + <tr> | |
| 203 | + <th><span class="reqArea">사용여부</span></th> | |
| 204 | + <td colspan="3"> | |
| 205 | + <select id="useYn" name="useYn"> | |
| 206 | + <option value="Y" <c:if test="${letterVO.useYn eq 'Y'}">selected="selected"</c:if>>사용</option> | |
| 207 | + <option value="N" <c:if test="${letterVO.useYn eq 'N'}">selected="selected"</c:if>>미사용</option> | |
| 208 | + </select> | |
| 209 | + | |
| 210 | + </td> | |
| 211 | + </tr> | |
| 212 | + </tbody> | |
| 213 | + </table> | |
| 214 | + <div class="btnWrap"> | |
| 215 | + <input type="button" class="btnType1 bg_888888" value="목 록" onclick="location.href='/letter/messages/selectBastMsgTagList.do'"> | |
| 216 | + <input type="button" class="btnType1" value="저 장" onclick="setDataSave('${searchVO.getMainSearchTagNo()}'); return false;"> | |
| 217 | + </div> | |
| 218 | + </div> | |
| 219 | + </div> | |
| 220 | +</form> | |
| 221 | +</body> | |
| 222 | +</html> |
+++ src/main/webapp/WEB-INF/jsp/letter/messages/BastMsgTagList.jsp
... | ... | @@ -0,0 +1,271 @@ |
| 1 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 5 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | +<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%> | |
| 8 | + | |
| 9 | +<% pageContext.setAttribute("newLineChar", "\r\n"); %> | |
| 10 | +<% pageContext.setAttribute("newLineChar2", "\n"); %> | |
| 11 | + | |
| 12 | +<% | |
| 13 | + response.setHeader("Cache-Control","no-store"); | |
| 14 | + response.setHeader("Pragma","no-cache"); | |
| 15 | + response.setDateHeader("Expires",0); | |
| 16 | + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); | |
| 17 | +%> | |
| 18 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 19 | +<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> | |
| 20 | +<script type="text/javaScript" language="javascript"> | |
| 21 | + | |
| 22 | +// 검색 | |
| 23 | +function fn_search(){ | |
| 24 | + linkPage(1); | |
| 25 | +} | |
| 26 | +// 페이지 이동 | |
| 27 | +function linkPage(pageNo){ | |
| 28 | + var listForm = document.listForm ; | |
| 29 | + listForm.pageIndex.value = pageNo ; | |
| 30 | + listForm.submit(); | |
| 31 | +} | |
| 32 | + | |
| 33 | +function infoPage(mainSearchTagNo){ | |
| 34 | + var listForm = document.listForm ; | |
| 35 | + if(mainSearchTagNo != '' && mainSearchTagNo != null){ | |
| 36 | + listForm.mainSearchTagNo.value = mainSearchTagNo ; | |
| 37 | + } | |
| 38 | + listForm.action = "/letter/messages/insertBastMsgTagView.do"; | |
| 39 | + listForm.submit(); | |
| 40 | +} | |
| 41 | + | |
| 42 | +// 전체 체크 버튼 | |
| 43 | +function fnCheckAll(){ | |
| 44 | + var checkField = document.listForm.checkField; | |
| 45 | + if(document.listForm.checkAll.checked) { | |
| 46 | + if(checkField.length > 1) { | |
| 47 | + for(var i=0; i < checkField.length; i++) { | |
| 48 | + checkField[i].checked = true; | |
| 49 | + } | |
| 50 | + } else { | |
| 51 | + checkField.checked = true; | |
| 52 | + } | |
| 53 | + } else { | |
| 54 | + if(checkField.length > 1) { | |
| 55 | + for(var j=0; j < checkField.length; j++) { | |
| 56 | + checkField[j].checked = false; | |
| 57 | + } | |
| 58 | + } else { | |
| 59 | + checkField.checked = false; | |
| 60 | + } | |
| 61 | + } | |
| 62 | +} | |
| 63 | + | |
| 64 | +//우선순위 변경 기능 | |
| 65 | +function fnSortChange(){ | |
| 66 | + if($("input:checkbox[name='checkField']").is(":checked")==false){ | |
| 67 | + alert("선택된 항목이 없습니다."); | |
| 68 | + return; | |
| 69 | + } | |
| 70 | + var checkField = document.listForm.checkField; | |
| 71 | + var id = document.listForm.checkId; | |
| 72 | + var checkedIds = ""; | |
| 73 | + var checkedCount = 0; | |
| 74 | + var chkIds = new Array(); | |
| 75 | + if(checkField) { | |
| 76 | + if(checkField.length > 1) { | |
| 77 | + for(var i=0; i < checkField.length; i++) { | |
| 78 | + if(checkField[i].checked) { | |
| 79 | + chkIds.push(id[i].value); | |
| 80 | + checkedCount++; | |
| 81 | + } | |
| 82 | + } | |
| 83 | + } else { | |
| 84 | + if(checkField.checked) { | |
| 85 | + chkIds.push(id.value); | |
| 86 | + } | |
| 87 | + } | |
| 88 | + } | |
| 89 | + var url = "/letter/messages/updateMainTagSortChangeAjax.do"; | |
| 90 | + | |
| 91 | + //배열 직렬화 | |
| 92 | + jQuery.ajaxSettings.traditional = true; | |
| 93 | + | |
| 94 | + $.ajax({ | |
| 95 | + type:"post" | |
| 96 | + , async:false | |
| 97 | + , url: url | |
| 98 | + , data: { | |
| 99 | + "chkIds" : chkIds, | |
| 100 | + "sort" : document.listForm.chgNum.value, | |
| 101 | + } | |
| 102 | + , dataType : "json" | |
| 103 | + , success: function (returnData, status) { | |
| 104 | + if(returnData.result == 'success'){ | |
| 105 | + alert("우선순위 변경에 성공하였습니다."); | |
| 106 | + location.reload(true); | |
| 107 | + } else if(returnData.result == 'fail'){ | |
| 108 | + alert("우선순위 변경에 실패하였습니다."); | |
| 109 | + } else if(returnData.result == 'auth_fail'){ | |
| 110 | + alert("권한이 없습니다."); | |
| 111 | + location.reload(true); | |
| 112 | + } else{ | |
| 113 | + alert("실패"); | |
| 114 | + } | |
| 115 | + }, | |
| 116 | + error: function (e) { alert("실패"); console.log("ERROR : ", e); } | |
| 117 | + }); | |
| 118 | +} | |
| 119 | +</script> | |
| 120 | +<form name="listForm" action="<c:url value='/letter/messages/selectMainTagList.do'/>" method="post"> | |
| 121 | + <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> | |
| 122 | + <input type="hidden" name="mainSearchTagNo" /> | |
| 123 | + <input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" /> | |
| 124 | + <input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" /> | |
| 125 | + | |
| 126 | + <div class="contWrap"> | |
| 127 | + <div class="pageTitle"> | |
| 128 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 129 | + <h2 class="titType1 c_222222 fwBold">베스트 문자샘플(메인)</h2> | |
| 130 | + <p class="tType6 c_999999"></p> | |
| 131 | + </div> | |
| 132 | + <div class="pageCont"> | |
| 133 | + <div class="listSerch"> | |
| 134 | + | |
| 135 | + <select id="searchTagDiv" name="searchTagDiv"> | |
| 136 | + <option value="" <c:if test="${empty searchVO.searchTagDiv}">selected="selected"</c:if>>분류(전체)</option> | |
| 137 | + <option value="1" <c:if test="${searchVO.searchTagDiv == '1'}">selected="selected"</c:if>>검색</option> | |
| 138 | + <option value="2" <c:if test="${searchVO.searchTagDiv == '2'}">selected="selected"</c:if>>소개</option> | |
| 139 | + </select> | |
| 140 | + | |
| 141 | + <select id="searchTagType" name="searchTagType"> | |
| 142 | + <option value="" <c:if test="${empty searchVO.searchTagType}">selected="selected"</c:if>>문자구분(전체)</option> | |
| 143 | + <option value="S" <c:if test="${searchVO.searchTagType == 'S'}">selected="selected"</c:if>>단문</option> | |
| 144 | + <option value="L" <c:if test="${searchVO.searchTagType == 'L'}">selected="selected"</c:if>>장문</option> | |
| 145 | + <option value="P" <c:if test="${searchVO.searchTagType == 'P'}">selected="selected"</c:if>>그림</option> | |
| 146 | + </select> | |
| 147 | + | |
| 148 | + <select id="searchUseYn" name="searchUseYn"> | |
| 149 | + <option value="" <c:if test="${empty searchVO.searchUseYn}">selected="selected"</c:if>>사용여부(전체)</option> | |
| 150 | + <option value="Y" <c:if test="${searchVO.searchUseYn == 'Y'}">selected="selected"</c:if>>사용</option> | |
| 151 | + <option value="N" <c:if test="${searchVO.searchUseYn == 'N'}">selected="selected"</c:if>>미사용</option> | |
| 152 | + </select> | |
| 153 | + | |
| 154 | + <input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${searchVO.searchKeyword}'/>" size="25" title="검색" maxlength="100" /> | |
| 155 | + <input type="button" class="btnType1" value="검색" onclick="fn_search(); return false;"> | |
| 156 | + | |
| 157 | + </div> | |
| 158 | + <div class="listTop"> | |
| 159 | + <p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p> | |
| 160 | + <div class="rightWrap"> | |
| 161 | + <!-- <input type="button" class="printBtn"> --> | |
| 162 | + <select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);"> | |
| 163 | + <option value='10' <c:if test="${searchVO.pageUnit == '10' or searchVO.pageUnit == ''}">selected</c:if>>10줄</option> | |
| 164 | + <option value='20' <c:if test="${searchVO.pageUnit == '20'}">selected</c:if>>20줄</option> | |
| 165 | + <option value='30' <c:if test="${searchVO.pageUnit == '30'}">selected</c:if>>30줄</option> | |
| 166 | + </select> | |
| 167 | + </div> | |
| 168 | + </div> | |
| 169 | + <div class="tableWrap"> | |
| 170 | + <table class="tbType1"> | |
| 171 | + <colgroup> | |
| 172 | + <col style="width: 5%"> | |
| 173 | + <col style="width: 5%"> | |
| 174 | + <col style="width: 5%"> | |
| 175 | + <col style="width: 5%"> | |
| 176 | + <col style="width: 14%"> | |
| 177 | + <col style="width: auto;"> | |
| 178 | + <col style="width: 6%"> | |
| 179 | + <col style="width: 5%"> | |
| 180 | + <col style="width: 9%"> | |
| 181 | + <col style="width: 8%"> | |
| 182 | + </colgroup> | |
| 183 | + <thead> | |
| 184 | + <tr> | |
| 185 | + <th><input type="checkbox" name="checkAll" id="checkAll" onclick="fnCheckAll();" /><label for="checkAll"></label></th> | |
| 186 | + <th>번호<input type="button" class="sort sortBtn" id="sort_mainSearchTagNo"></th> | |
| 187 | + <th>분류<input type="button" class="sort sortBtn" id="sort_tagDiv"></th> | |
| 188 | + <th>구분<input type="button" class="sort sortBtn" id="sort_tagType"></th> | |
| 189 | + <th>키워드<input type="button" class="sort sortBtn" id="sort_tagNm"></th> | |
| 190 | + <th>URL</th> | |
| 191 | + <th>순서<input type="button" class="sort sortBtn" id="sort_sort"></th> | |
| 192 | + <th>사용<input type="button" class="sort sortBtn" id="sort_useYn"></th> | |
| 193 | + <th>등록자</th> | |
| 194 | + <th>등록일자<input type="button" class="sort sortBtn" id="sort_regDt"></th> | |
| 195 | + </tr> | |
| 196 | + </thead> | |
| 197 | + <tbody> | |
| 198 | + <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 199 | + <tr> | |
| 200 | + <td> | |
| 201 | + <input type="checkbox" name="checkField" id="<c:out value='${result.mainSearchTagNo }'/>"/> | |
| 202 | + <input name="checkId" type="hidden" value="<c:out value='${result.mainSearchTagNo}'/>"/> | |
| 203 | + </td> | |
| 204 | + <td> | |
| 205 | + <c:if test="${searchVO.searchSortOrd eq 'desc' }"> | |
| 206 | + <c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/> | |
| 207 | + </c:if> | |
| 208 | + <c:if test="${searchVO.searchSortOrd eq 'asc' }"> | |
| 209 | + <c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/> | |
| 210 | + </c:if> | |
| 211 | + </td> | |
| 212 | + <td> | |
| 213 | + <c:choose> | |
| 214 | + <c:when test="${result.tagDiv == '1'}">검색</c:when> | |
| 215 | + <c:when test="${result.tagDiv == '2'}">소개</c:when> | |
| 216 | + </c:choose> | |
| 217 | + </td> | |
| 218 | + <td> | |
| 219 | + <c:choose> | |
| 220 | + <c:when test="${result.tagType == 'S'}">단문</c:when> | |
| 221 | + <c:when test="${result.tagType == 'L'}">장문</c:when> | |
| 222 | + <c:when test="${result.tagType == 'P'}">그림</c:when> | |
| 223 | + <c:otherwise>-</c:otherwise> | |
| 224 | + </c:choose> | |
| 225 | + </td> | |
| 226 | + <td> | |
| 227 | + <a href="#" onclick="infoPage('${result.mainSearchTagNo}'); return false;"><c:out value="${result.tagNm}"/></a> | |
| 228 | + </td> | |
| 229 | + <td style="text-align: left;"> | |
| 230 | + <a href="#" onclick="infoPage('${result.mainSearchTagNo}'); return false;"><c:out value="${result.url}"/></a> | |
| 231 | + </td> | |
| 232 | + <td> | |
| 233 | + <c:out value="${result.sort}"/> | |
| 234 | + </td> | |
| 235 | + <td> | |
| 236 | + <c:choose> | |
| 237 | + <c:when test="${result.useYn == 'Y'}">사용</c:when> | |
| 238 | + <c:when test="${result.useYn == 'N'}">미사용</c:when> | |
| 239 | + </c:choose> | |
| 240 | + </td> | |
| 241 | + <td><c:out value="${result.regId}"/></td> | |
| 242 | + <td title="<c:out value="${result.regDt}"/>"> | |
| 243 | + <fmt:parseDate value="${result.regDt}" var="regDateValue" pattern="yyyy-MM-dd HH:mm"/> | |
| 244 | + <fmt:formatDate value="${regDateValue}" pattern="MM-dd HH:mm"/> | |
| 245 | + </td> | |
| 246 | + </tr> | |
| 247 | + </c:forEach> | |
| 248 | + <c:if test="${empty resultList}"> | |
| 249 | + <tr><td colspan="10"><spring:message code="common.nodata.msg" /></td></tr> | |
| 250 | + </c:if> | |
| 251 | + </tbody> | |
| 252 | + </table> | |
| 253 | + </div> | |
| 254 | + <div> | |
| 255 | + 선택한 그림문자의 우선순위를 <input type="text" id="chgNum" name="chgNum" value="" maxlength="9">번으로 <button type="button" onclick="fnSortChange();" class="btnType1">변경</button> | |
| 256 | + </div> | |
| 257 | + <div class="btnWrap"> | |
| 258 | + <input type="button" class="btnType1" value="등록" onclick="infoPage(''); return false;" value="등록" > | |
| 259 | + </div> | |
| 260 | + <!-- 페이지 네비게이션 시작 --> | |
| 261 | + <c:if test="${!empty resultList}"> | |
| 262 | + <div class="page"> | |
| 263 | + <ul class="inline"> | |
| 264 | + <ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" /> | |
| 265 | + </ul> | |
| 266 | + </div> | |
| 267 | + </c:if> | |
| 268 | + <!-- //페이지 네비게이션 끝 --> | |
| 269 | + </div> | |
| 270 | + </div> | |
| 271 | +</form> |
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?