196 lines
5.8 KiB
Plaintext
196 lines
5.8 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
|
|
<!-- //JSTL 변수선언 -->
|
|
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
|
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
|
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
|
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
|
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
|
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
fnc_datepick();
|
|
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
if("true" != "${isAdmin}"){
|
|
$("#btn_reg_notice").hide();
|
|
}
|
|
});
|
|
|
|
function fn_openNoticeFormPopUp(objId){
|
|
window.open("","openNoticeFormPopUp","width=800 height=545 menubar=no status=no");
|
|
|
|
var url = "/notice/openNoticeFormPopUp.do";
|
|
|
|
if("true" != "${isAdmin}"){
|
|
url = "/notice/openNoticeDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.target = "openNoticeFormPopUp";
|
|
form.action = url;
|
|
form.submit();
|
|
|
|
}
|
|
|
|
function search(){
|
|
document.form1.action="/notice/getNoticeList.do";
|
|
document.form1.target="_self";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_search(){
|
|
search();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>공지사항_QnA</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td class="">
|
|
<label for="" class="">구분</label>
|
|
</td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option>선택</option>
|
|
<option>공지사항</option>
|
|
<option>QnA</option>
|
|
</select>
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">제목</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_title" id="search_title" value="${param.search_title}">
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">작성일</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" id="search_reqDateFrom" name="search_reqDateFrom" class="date_margin" value="${param.search_reqDateFrom}"> ~ <input type="text" id="search_reqDateTo" name="search_reqDateTo" value="${param.search_reqDateTo}">
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">중요</label>
|
|
</td>
|
|
<td style="width:50px;">
|
|
<input type="checkbox" name="search_important" id="search_important" value="checked" ${empty param.search_important?'':'checked'}>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" onclick="search();">
|
|
<input type="button" value="등록" class="plm_btns" id="btn_reg_notice" onclick="fn_openNoticeFormPopUp('');" >
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="4%" />
|
|
<col width="10%" />
|
|
<col width="*" />
|
|
<col width="15%" />
|
|
<col width="15%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>구분</td>
|
|
<td>제목</td>
|
|
<td>작성자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="5">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr style="text-align:center;${'checked' eq item.IMPORTANT?'font-weight:bold;color:red;':''}">
|
|
<td>${item.RNUM}</td>
|
|
<td>${item.SYSTEM_TYPE_TITLE}</td>
|
|
<td><a href="#" onclick="fn_openNoticeFormPopUp('${item.OBJID}');" style="${'checked' eq item.IMPORTANT?'font-weight:bold;color:red;':''}">${item.TITLE}</a></td>
|
|
<td>${item.REQ_DEPT_NAME} ${item.REQ_USER_NAME}</td>
|
|
<td>${item.REQ_REGDATE_TITLE}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty LIST}">
|
|
<div class="page_pro">
|
|
<table>
|
|
<tr>
|
|
<c:choose>
|
|
<c:when test="${nPage > 1}">
|
|
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">prev</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<c:forEach var="v" begin="${nPage>5?nPage-5:1}"
|
|
end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
|
|
<c:if test="${status.index -1 < maxPage}">
|
|
<c:choose>
|
|
<c:when test="${status.index eq nPage}">
|
|
<td><a href="#" class="now_page">${nPage}</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:if>
|
|
</c:forEach>
|
|
<c:choose>
|
|
<c:when test="${nPage < maxPage}">
|
|
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">next</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tr>
|
|
</table>
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |