jhleem / egov star

이다솜 이다솜 2022-02-14 @36

[20220214 이다솜] 게시판 코밋
Index: base3.10/src/main/java/egovframework/com/cop/bbs/service/BoardVO.java =================================================================== --- base3.10/src/main/java/egovframework/com/cop/bbs/service/BoardVO.java (revision 35) +++ base3.10/src/main/java/egovframework/com/cop/bbs/service/BoardVO.java (revision 36) @@ -13,7 +13,7 @@ * * <pre> * << 개정이력(Modification Information) >> - * + * * 수정일 수정자 수정내용 * ------- -------- --------------------------- * 2009.3.19 이삼섭 최초 생성 @@ -26,16 +26,16 @@ /** 검색시작일 */ private String searchBgnDe = ""; - + /** 검색조건 */ private String searchCnd = ""; - + /** 검색종료일 */ private String searchEndDe = ""; - + /** 검색단어 */ private String searchWrd = ""; - + /** 정렬순서(DESC,ASC) */ private long sortOrdr = 0L; @@ -80,7 +80,7 @@ /** 게시판 유형코드 */ private String bbsTyCode = ""; - + /** 게시판 속성코드 */ private String bbsAttrbCode = ""; @@ -89,37 +89,40 @@ /** 파일첨부가능여부 */ private String fileAtchPosblAt = ""; - + /** 첨부가능파일숫자 */ private int posblAtchFileNumber = 0; - + /** 답장가능여부 */ private String replyPosblAt = ""; - + /** 조회 수 증가 여부 */ private boolean plusCount = false; - + /** 익명등록 여부 */ private String anonymousAt = ""; - + /** 하위 페이지 인덱스 (댓글 및 만족도 조사 여부 확인용) */ private String subPageIndex = ""; /** 게시글 댓글갯수 */ private String commentCo = ""; - + /** 볼드체 여부 */ private String sjBoldAt; - + /** 공지 여부 */ private String noticeAt; - + /** 비밀글 여부 */ private String secretAt; - + + /** 게시판소개 */ + private String bbsIntrcn = ""; + /** * searchBgnDe attribute를 리턴한다. - * + * * @return the searchBgnDe */ public String getSearchBgnDe() { @@ -128,7 +131,7 @@ /** * searchBgnDe attribute 값을 설정한다. - * + * * @param searchBgnDe * the searchBgnDe to set */ @@ -138,7 +141,7 @@ /** * searchCnd attribute를 리턴한다. - * + * * @return the searchCnd */ public String getSearchCnd() { @@ -147,7 +150,7 @@ /** * searchCnd attribute 값을 설정한다. - * + * * @param searchCnd * the searchCnd to set */ @@ -157,7 +160,7 @@ /** * searchEndDe attribute를 리턴한다. - * + * * @return the searchEndDe */ public String getSearchEndDe() { @@ -166,7 +169,7 @@ /** * searchEndDe attribute 값을 설정한다. - * + * * @param searchEndDe * the searchEndDe to set */ @@ -176,7 +179,7 @@ /** * searchWrd attribute를 리턴한다. - * + * * @return the searchWrd */ public String getSearchWrd() { @@ -185,7 +188,7 @@ /** * searchWrd attribute 값을 설정한다. - * + * * @param searchWrd * the searchWrd to set */ @@ -195,159 +198,175 @@ /** * sortOrdr attribute를 리턴한다. - * + * * @return the sortOrdr */ - public long getSortOrdr() { + @Override + public long getSortOrdr() { return sortOrdr; } /** * sortOrdr attribute 값을 설정한다. - * + * * @param sortOrdr * the sortOrdr to set */ - public void setSortOrdr(long sortOrdr) { + @Override + public void setSortOrdr(long sortOrdr) { this.sortOrdr = sortOrdr; } /** * searchUseYn attribute를 리턴한다. - * + * * @return the searchUseYn */ - public String getSearchUseYn() { + @Override + public String getSearchUseYn() { return searchUseYn; } /** * searchUseYn attribute 값을 설정한다. - * + * * @param searchUseYn * the searchUseYn to set */ - public void setSearchUseYn(String searchUseYn) { + @Override + public void setSearchUseYn(String searchUseYn) { this.searchUseYn = searchUseYn; } /** * pageIndex attribute를 리턴한다. - * + * * @return the pageIndex */ - public int getPageIndex() { + @Override + public int getPageIndex() { return pageIndex; } /** * pageIndex attribute 값을 설정한다. - * + * * @param pageIndex * the pageIndex to set */ - public void setPageIndex(int pageIndex) { + @Override + public void setPageIndex(int pageIndex) { this.pageIndex = pageIndex; } /** * pageUnit attribute를 리턴한다. - * + * * @return the pageUnit */ - public int getPageUnit() { + @Override + public int getPageUnit() { return pageUnit; } /** * pageUnit attribute 값을 설정한다. - * + * * @param pageUnit * the pageUnit to set */ - public void setPageUnit(int pageUnit) { + @Override + public void setPageUnit(int pageUnit) { this.pageUnit = pageUnit; } /** * pageSize attribute를 리턴한다. - * + * * @return the pageSize */ - public int getPageSize() { + @Override + public int getPageSize() { return pageSize; } /** * pageSize attribute 값을 설정한다. - * + * * @param pageSize * the pageSize to set */ - public void setPageSize(int pageSize) { + @Override + public void setPageSize(int pageSize) { this.pageSize = pageSize; } /** * firstIndex attribute를 리턴한다. - * + * * @return the firstIndex */ - public int getFirstIndex() { + @Override + public int getFirstIndex() { return firstIndex; } /** * firstIndex attribute 값을 설정한다. - * + * * @param firstIndex * the firstIndex to set */ - public void setFirstIndex(int firstIndex) { + @Override + public void setFirstIndex(int firstIndex) { this.firstIndex = firstIndex; } /** * lastIndex attribute를 리턴한다. - * + * * @return the lastIndex */ - public int getLastIndex() { + @Override + public int getLastIndex() { return lastIndex; } /** * lastIndex attribute 값을 설정한다. - * + * * @param lastIndex * the lastIndex to set */ - public void setLastIndex(int lastIndex) { + @Override + public void setLastIndex(int lastIndex) { this.lastIndex = lastIndex; } /** * recordCountPerPage attribute를 리턴한다. - * + * * @return the recordCountPerPage */ - public int getRecordCountPerPage() { + @Override + public int getRecordCountPerPage() { return recordCountPerPage; } /** * recordCountPerPage attribute 값을 설정한다. - * + * * @param recordCountPerPage * the recordCountPerPage to set */ - public void setRecordCountPerPage(int recordCountPerPage) { + @Override + public void setRecordCountPerPage(int recordCountPerPage) { this.recordCountPerPage = recordCountPerPage; } /** * rowNo attribute를 리턴한다. - * + * * @return the rowNo */ public int getRowNo() { @@ -356,7 +375,7 @@ /** * rowNo attribute 값을 설정한다. - * + * * @param rowNo * the rowNo to set */ @@ -366,7 +385,7 @@ /** * frstRegisterNm attribute를 리턴한다. - * + * * @return the frstRegisterNm */ public String getFrstRegisterNm() { @@ -375,7 +394,7 @@ /** * frstRegisterNm attribute 값을 설정한다. - * + * * @param frstRegisterNm * the frstRegisterNm to set */ @@ -385,7 +404,7 @@ /** * lastUpdusrNm attribute를 리턴한다. - * + * * @return the lastUpdusrNm */ public String getLastUpdusrNm() { @@ -394,7 +413,7 @@ /** * lastUpdusrNm attribute 값을 설정한다. - * + * * @param lastUpdusrNm * the lastUpdusrNm to set */ @@ -404,7 +423,7 @@ /** * isExpired attribute를 리턴한다. - * + * * @return the isExpired */ public String getIsExpired() { @@ -413,7 +432,7 @@ /** * isExpired attribute 값을 설정한다. - * + * * @param isExpired * the isExpired to set */ @@ -423,7 +442,7 @@ /** * parntsSortOrdr attribute를 리턴한다. - * + * * @return the parntsSortOrdr */ public String getParntsSortOrdr() { @@ -432,7 +451,7 @@ /** * parntsSortOrdr attribute 값을 설정한다. - * + * * @param parntsSortOrdr * the parntsSortOrdr to set */ @@ -442,7 +461,7 @@ /** * parntsReplyLc attribute를 리턴한다. - * + * * @return the parntsReplyLc */ public String getParntsReplyLc() { @@ -451,7 +470,7 @@ /** * parntsReplyLc attribute 값을 설정한다. - * + * * @param parntsReplyLc * the parntsReplyLc to set */ @@ -461,7 +480,7 @@ /** * bbsTyCode attribute를 리턴한다. - * + * * @return the bbsTyCode */ public String getBbsTyCode() { @@ -470,7 +489,7 @@ /** * bbsTyCode attribute 값을 설정한다. - * + * * @param bbsTyCode * the bbsTyCode to set */ @@ -480,7 +499,7 @@ /** * bbsAttrbCode attribute를 리턴한다. - * + * * @return the bbsAttrbCode */ public String getBbsAttrbCode() { @@ -489,7 +508,7 @@ /** * bbsAttrbCode attribute 값을 설정한다. - * + * * @param bbsAttrbCode * the bbsAttrbCode to set */ @@ -499,7 +518,7 @@ /** * bbsNm attribute를 리턴한다. - * + * * @return the bbsNm */ public String getBbsNm() { @@ -508,7 +527,7 @@ /** * bbsNm attribute 값을 설정한다. - * + * * @param bbsNm * the bbsNm to set */ @@ -518,7 +537,7 @@ /** * fileAtchPosblAt attribute를 리턴한다. - * + * * @return the fileAtchPosblAt */ public String getFileAtchPosblAt() { @@ -527,7 +546,7 @@ /** * fileAtchPosblAt attribute 값을 설정한다. - * + * * @param fileAtchPosblAt * the fileAtchPosblAt to set */ @@ -537,7 +556,7 @@ /** * posblAtchFileNumber attribute를 리턴한다. - * + * * @return the posblAtchFileNumber */ public int getPosblAtchFileNumber() { @@ -546,7 +565,7 @@ /** * posblAtchFileNumber attribute 값을 설정한다. - * + * * @param posblAtchFileNumber * the posblAtchFileNumber to set */ @@ -556,7 +575,7 @@ /** * replyPosblAt attribute를 리턴한다. - * + * * @return the replyPosblAt */ public String getReplyPosblAt() { @@ -565,7 +584,7 @@ /** * replyPosblAt attribute 값을 설정한다. - * + * * @param replyPosblAt * the replyPosblAt to set */ @@ -620,14 +639,15 @@ public void setAnonymousAt(String anonymousAt) { this.anonymousAt = anonymousAt; } - + /** * toString 메소드를 대치한다. */ - public String toString() { + @Override + public String toString() { return ToStringBuilder.reflectionToString(this); } - + /** * commentCo attribute를 리턴한다. * @return the commentCo @@ -636,40 +656,54 @@ return commentCo; } - + /** * commentCo attribute 값을 설정한다. * @param commentCo the commentCo to set */ - + public void setCommentCo(String commentCo) { this.commentCo = commentCo; } - - public String getSjBoldAt() { + + @Override + public String getSjBoldAt() { return sjBoldAt; } + @Override public void setSjBoldAt(String sjBoldAt) { this.sjBoldAt = sjBoldAt; } + @Override public String getNoticeAt() { return noticeAt; } + @Override public void setNoticeAt(String noticeAt) { this.noticeAt = noticeAt; } + @Override public String getSecretAt() { return secretAt; } + @Override public void setSecretAt(String secretAt) { this.secretAt = secretAt; } + public String getBbsIntrcn() { + return bbsIntrcn; + } + + public void setBbsIntrcn(String bbsIntrcn) { + this.bbsIntrcn = bbsIntrcn; + } + - + } Index: base3.10/src/main/webapp/WEB-INF/tiles/template/defaultTopMenu.jsp =================================================================== --- base3.10/src/main/webapp/WEB-INF/tiles/template/defaultTopMenu.jsp (revision 35) +++ base3.10/src/main/webapp/WEB-INF/tiles/template/defaultTopMenu.jsp (revision 36) @@ -12,7 +12,7 @@ </ul> <ul class="header_right"> <li><a href="/content/common/archive.html" title="archive">archive</a></li> - <li><a href="/content/common/notice_list.html" title="공지사항">notice</a></li> + <li><a href="/cop/bbs/000000000040/selectArticleList.do" title="공지사항">notice</a></li> <li><a href="javasctipt:void(0)" aria-haspopup="dialog" data-popup="login">admin</a></li> </ul> </div> Index: base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/cop/bbs/EgovArticleList.jsp =================================================================== --- base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/cop/bbs/EgovArticleList.jsp (revision 35) +++ base3.10/src/main/webapp/WEB-INF/jsp/egovframework/com/cop/bbs/EgovArticleList.jsp (revision 36) @@ -23,12 +23,7 @@ <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <c:set var="pageTitle"><spring:message code="comCopBbs.articleVO.title"/></c:set> -<!DOCTYPE html> -<html> -<head> -<title>${pageTitle} <spring:message code="title.list" /></title><!-- 게시글 목록 --> -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -<link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> + <link href="<c:url value='${brdMstrVO.tmplatCours}' />" rel="stylesheet" type="text/css"> <c:choose> <c:when test="${preview == 'true'}"> @@ -36,6 +31,9 @@ /********************************************************* * 초기화 ******************************************************** */ +$(function() { + fn_egov_init(); +}) function fn_egov_init(){ // 첫 입력란에 포커스.. document.articleForm.searchCnd.focus(); @@ -65,6 +63,9 @@ /********************************************************* * 초기화 ******************************************************** */ +$(function() { + fn_egov_init(); +}) function fn_egov_init(){ // 첫 입력란에 포커스.. document.articleForm.searchCnd.focus(); @@ -76,7 +77,7 @@ function fn_egov_select_linkPage(pageNo){ document.articleForm.pageIndex.value = pageNo; document.articleForm.action = "<c:url value='/cop/bbs/selectArticleList.do'/>"; - document.articleForm.submit(); + document.articleForm.submit(); } /********************************************************* * 조회 처리 함수 @@ -92,157 +93,150 @@ // 사이트 키값(siteId) 셋팅. document.articleForm.bbsId.bbsId.value = bbsId; document.articleForm.nttId.value = nttId; - document.articleForm.action = "<c:url value='/cop/bbs/selectArticleDetail.do'/>"; - document.articleForm.submit(); + document.articleForm.action = "<c:url value='/cop/bbs/selectArticleDetail.do'/>"; + document.articleForm.submit(); } </script> </c:otherwise> </c:choose> -</head> -<body onload="fn_egov_init()"> + <!-- javascript warning tag --> <noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript> +<div class="sub_container" id="contents"> + <div class="inner"> + <form name="articleForm" action="<c:url value='/cop/bbs/selectArticleList.do'/>" method="post" onSubmit="fn_egov_search_article(); return false;"> + <div class="sorting_wrap"> + <div class="total"> 전체 <em class="count">${paginationInfo.totalRecordCount}</em>건</div> + <div class="search_box" title="<spring:message code="common.searchCondition.msg" />"> + <!-- 검색키워드 및 조회버튼 --> + <input class="inputText" name="searchWrd" type="text" size="35" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value='<c:out value="${searchVO.searchWrd}"/>' placeholder="제목 또는 내용 또는 작성자를 입력하세요" maxlength="155" > + <input type="submit" class="btn_search" value="<spring:message code="button.inquire" />" title="<spring:message code="title.inquire" /> <spring:message code="input.button" />" /><!-- 조회 --> + <%-- <c:if test="${preview != 'true'}"> --%> + <%-- <span class="btn_b"><a href="<c:url value='/cop/bbs/insertArticleView.do?bbsId=${boardMasterVO.bbsId}' />" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span><!-- 등록 --> --%> + <%-- </c:if> --%> + </div> + <input name="bbsId" type="hidden" value="${boardMasterVO.bbsId}"> + <input name="pageIndex" type="hidden" value=""> + </div> + </form> +<!-- </div> --> +<!-- <div class="board"> --> -<div class="board"> - <form name="articleForm" action="<c:url value='/cop/bbs/selectArticleList.do'/>" method="post" onSubmit="fn_egov_search_article(); return false;"> - <h1>${pageTitle} <spring:message code="title.list" /> (<c:out value="${boardMasterVO.bbsNm}"/>)</h1><!-- 게시글 목록 --> - <!-- 하단 버튼 --> - <div class="search_box" title="<spring:message code="common.searchCondition.msg" />"> - <ul> - <li> - <select name="searchCnd" title="<spring:message code="title.searchCondition" /> <spring:message code="input.cSelect" />"> - <option value="0" <c:if test="${searchVO.searchCnd == '0'}">selected="selected"</c:if> ><spring:message code="comCopBbs.articleVO.list.nttSj" /></option><!-- 글 제목 --> - <option value="1" <c:if test="${searchVO.searchCnd == '1'}">selected="selected"</c:if> ><spring:message code="comCopBbs.articleVO.list.nttCn" /></option><!-- 글 내용 --> - <option value="2" <c:if test="${searchVO.searchCnd == '2'}">selected="selected"</c:if> ><spring:message code="table.reger" /></option><!-- 작성자 --> - </select> - </li> - <!-- 검색키워드 및 조회버튼 --> - <li> - <input class="s_input" name="searchWrd" type="text" size="35" title="<spring:message code="title.search" /> <spring:message code="input.input" />" value='<c:out value="${searchVO.searchWrd}"/>' maxlength="155" > - <input type="submit" class="s_btn" value="<spring:message code="button.inquire" />" title="<spring:message code="title.inquire" /> <spring:message code="input.button" />" /><!-- 조회 --> - <c:if test="${preview != 'true'}"> - <span class="btn_b"><a href="<c:url value='/cop/bbs/insertArticleView.do?bbsId=${boardMasterVO.bbsId}' />" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span><!-- 등록 --> - </c:if> - </li> - </ul> - </div> - <input name="bbsId" type="hidden" value="${boardMasterVO.bbsId}"> - <input name="pageIndex" type="hidden" value=""> - </form> - <!-- 목록영역 --> - <table class="board_list" summary="<spring:message code="common.summary.list" arguments="${pageTitle}" />"> - <caption>${pageTitle} <spring:message code="title.list" /></caption> - <colgroup> - <col style="width: 9%;"> - <col style="width: 40%;"> - <col style="width: 13%;"> - <col style="width: 13%;"> - <col style="width: 13%;"> - </colgroup> - <thead> - <tr> - <th><spring:message code="table.num" /></th><!-- 번호 --> - <th class="board_th_link"><spring:message code="comCopBbs.articleVO.list.nttSj" /></th><!--글 제목 --> - <th><spring:message code="table.reger" /></th><!-- 작성자명 --> - <th><spring:message code="table.regdate" /></th><!-- 작성시각 --> - <th><spring:message code="comCopBbs.articleVO.list.inqireCo" /></th><!-- 조회수 --> - </tr> - </thead> - <tbody class="ov"> - - <!-- 공지사항 본문 --> - <c:forEach items="${noticeList}" var="noticeInfo" varStatus="status"> - <tr> - <td><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_notice.png'/>" alt="notice"></td> - <td class="bold"> - <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> - <input name="nttId" type="hidden" value="<c:out value="${noticeInfo.nttId}"/>"> - <input name="bbsId" type="hidden" value="<c:out value="${noticeInfo.bbsId}"/>"> - <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> - <span class="link"><input type="submit" value="<c:out value='${fn:substring(noticeInfo.nttSj, 0, 40)}'/><c:if test="${noticeInfo.commentCo != ''}"> <c:out value='[${noticeInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"> - </span> - </form> - </td> - <td><c:out value='${noticeInfo.frstRegisterNm}'/></td> - <td><c:out value='${noticeInfo.frstRegisterPnttm}'/></td> - <td><c:out value='${noticeInfo.inqireCo}'/></td> - </tr> - </c:forEach> - <!-- 게시글 본문 --> - <c:forEach items="${resultList}" var="resultInfo" varStatus="status"> - <tr> - <td><c:out value="${(searchVO.pageIndex-1) * searchVO.pageSize + status.count}"/></td> - - <c:choose> - <c:when test="${resultInfo.sjBoldAt == 'Y'}"> - <!-- 제목 Bold인 경우 --> - <td class="bold"> - <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> - <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> - <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> - <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> - <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> - </form> - </td> - </c:when> - <c:when test="${resultInfo.secretAt == 'Y' && sessionUniqId != resultInfo.frstRegisterId}"> - <!-- 비밀글이며 작성자가 본인이 아닌 경우(클릭 불가) --> - <td class="left"> - <c:if test="${resultInfo.replyLc!=0}"> - <c:forEach begin="0" end="${resultInfo.replyLc}" step="1"> - &nbsp; - </c:forEach> - </c:if> - <img src="<c:url value='/images/egovframework/com/cop/bbs/icon_lock.png'/>" alt="secret">&nbsp;<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/> - <c:if test="${resultInfo.commentCo != ''}"> - <c:out value='[${resultInfo.commentCo}]'/> - </c:if> - </td> - </c:when> - <c:otherwise> - <!-- 나머지 경우 --> - <td class="left"> - <c:choose> - <c:when test="${preview == 'true'}"> - <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> - <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> - <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> - <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> - </c:when> - <c:otherwise> - <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> - <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> - <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> - <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> - <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> - </form> - </c:otherwise> - </c:choose> - </td> - </c:otherwise> - </c:choose> - <td><c:out value='${resultInfo.frstRegisterNm}'/></td> - <td><c:out value='${resultInfo.frstRegisterPnttm}'/></td> - <td><c:out value='${resultInfo.inqireCo}'/></td> - </tr> - </c:forEach> + <table class="board_list"> + <caption>공지사항 - 순서, 제목, 작성일 순으로 나열합니다.</caption> + <colgroup> + <col class="width100"> + <col class="widthauto"> + <col class="width150"> + </colgroup> + <thead> + <tr> + <th><spring:message code="table.num" /></th><!-- 번호 --> + <th class="board_th_link"><spring:message code="comCopBbs.articleVO.list.nttSj" /></th><!--글 제목 --> +<%-- <th><spring:message code="table.reger" /></th><!-- 작성자명 --> --%> + <th><spring:message code="table.regdate" /></th><!-- 작성시각 --> +<%-- <th><spring:message code="comCopBbs.articleVO.list.inqireCo" /></th><!-- 조회수 --> --%> + </tr> + </thead> + + <tbody> + <!-- 공지사항 본문 --> + <c:forEach items="${noticeList}" var="noticeInfo" varStatus="status"> + <tr> + <td class="board_num"><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_notice.png'/>" alt="notice"></td> + <td class="bold"> + <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> + <input name="nttId" type="hidden" value="<c:out value="${noticeInfo.nttId}"/>"> + <input name="bbsId" type="hidden" value="<c:out value="${noticeInfo.bbsId}"/>"> + <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> + <span class="link"><input type="submit" value="<c:out value='${fn:substring(noticeInfo.nttSj, 0, 40)}'/><c:if test="${noticeInfo.commentCo != ''}"> <c:out value='[${noticeInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"> + </span> + </form> + </td> + <td><c:out value='${noticeInfo.frstRegisterNm}'/></td> + <td><c:out value='${noticeInfo.frstRegisterPnttm}'/></td> + <td><c:out value='${noticeInfo.inqireCo}'/></td> + </tr> + </c:forEach> + <!-- 게시글 본문 --> + <c:forEach items="${resultList}" var="resultInfo" varStatus="status"> + <tr> + <td class="board_num"> + <p><c:out value="${(searchVO.pageIndex-1) * searchVO.pageSize + status.count}"/></p> + </td> + + <c:choose> + <c:when test="${resultInfo.sjBoldAt == 'Y'}"> + <!-- 제목 Bold인 경우 --> + <td class="bold"> + <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> + <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> + <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> + <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> + <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> + </form> + </td> + </c:when> + <c:when test="${resultInfo.secretAt == 'Y' && sessionUniqId != resultInfo.frstRegisterId}"> + <!-- 비밀글이며 작성자가 본인이 아닌 경우(클릭 불가) --> + <td class="left"> + <c:if test="${resultInfo.replyLc!=0}"> + <c:forEach begin="0" end="${resultInfo.replyLc}" step="1"> + &nbsp; + </c:forEach> + </c:if> + <img src="<c:url value='/images/egovframework/com/cop/bbs/icon_lock.png'/>" alt="secret">&nbsp;<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/> + <c:if test="${resultInfo.commentCo != ''}"> + <c:out value='[${resultInfo.commentCo}]'/> + </c:if> + </td> + </c:when> + <c:otherwise> + <!-- 나머지 경우 --> + <td class="left"> + <c:choose> + <c:when test="${preview == 'true'}"> + <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> + <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> + <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> + <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> + </c:when> + <c:otherwise> + <form name="subForm" method="post" action="<c:url value='/cop/bbs/selectArticleDetail.do'/>"> + <input name="nttId" type="hidden" value="<c:out value="${resultInfo.nttId}"/>"> + <input name="bbsId" type="hidden" value="<c:out value="${resultInfo.bbsId}"/>"> + <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> + <span class="link"><c:if test="${resultInfo.replyLc!=0}"><c:forEach begin="0" end="${resultInfo.replyLc}" step="1">&nbsp; </c:forEach><img src="<c:url value='/images/egovframework/com/cop/bbs/icon_reply.png'/>" alt="secret"></c:if><input type="submit" value="<c:out value='${fn:substring(resultInfo.nttSj, 0, 40)}'/><c:if test="${resultInfo.commentCo != ''}"> <c:out value='[${resultInfo.commentCo}]'/></c:if>" style="border:0px solid #e0e0e0;"></span> + </form> + </c:otherwise> + </c:choose> + </td> + </c:otherwise> + </c:choose> + <td><c:out value='${resultInfo.frstRegisterNm}'/></td> + <td><c:out value='${resultInfo.frstRegisterPnttm}'/></td> + <td><c:out value='${resultInfo.inqireCo}'/></td> + </tr> + </c:forEach> - <c:if test="${fn:length(resultList) == 0}"> - <!-- 글이 없는 경우 --> - <tr> - <td colspan="5"><spring:message code="common.nodata.msg" /></td> - </tr> - </c:if> - </tbody> + <c:if test="${fn:length(resultList) == 0}"> + <!-- 글이 없는 경우 --> + <tr> + <td colspan="3"><spring:message code="common.nodata.msg" /></td> + </tr> + </c:if> + </tbody> </table> - + <!-- paging navigation --> - <div class="pagination"> - <ul> - <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_egov_select_linkPage"/> - </ul> + <div class="bottom_wrap center"> + <div class="pagination"> + <ul> + <ui:pagination paginationInfo="${paginationInfo}" type="user" jsFunction="fn_egov_select_linkPage"/> + </ul> + </div> </div> <!-- 등록버튼 --> @@ -251,13 +245,9 @@ <span class="btn_s"><a href="<c:url value='/cop/bbs/insertBBSMasterView.do' />" title="<spring:message code="button.create" /> <spring:message code="input.button" />"><spring:message code="button.create" /></a></span> </div> --> - + </div> </div> <input name="nttId" type="hidden" value="0"> <input name="bbsId" type="hidden" value="${boardMasterVO.bbsId}"> <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"> - - -</body> -</html> \ No newline at end of file
Add a comment
List