-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoticelist.jsp
More file actions
285 lines (232 loc) · 8.44 KB
/
noticelist.jsp
File metadata and controls
285 lines (232 loc) · 8.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
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
279
280
281
282
283
284
285
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>공지사항</title>
<jsp:include page="/WEB-INF/view/common/common_include.jsp"></jsp:include>
<script type="text/javascript">
// 페이징 설정
var pageSize = 10;
var pageBlockSize = 5;
/** OnLoad event */
$(function() {
// 버튼 이벤트 등록
fRegisterButtonClickEvent();
fn_noticelist();
});
/** 버튼 이벤트 등록 */
function fRegisterButtonClickEvent() {
$('a[name=btn]').click(function(e) {
e.preventDefault();
var btnId = $(this).attr('id');
switch (btnId) {
case 'btnSearch' :
fn_noticelist();
break;
case 'btnCloseGrpCod' :
case 'btnCloseDtlCod' :
gfCloseModal();
break;
}
});
}
function fn_noticelist(pagenum) {
pagenum = pagenum || 1;
var param = {
delyn : $("#delyn").val()
, searchKey : $("#searchKey").val()
, sname : $("#sname").val()
, pageSize : pageSize
, pageBlockSize : pageBlockSize
, pagenum : pagenum
}
var listcollabck = function(returnvalue) {
console.log(returnvalue);
$("#listnotice").empty().append(returnvalue);
var totalcnt = $("#totalcnt").val();
console.log("totalcnt : " + totalcnt);
var paginationHtml = getPaginationHtml(pagenum, totalcnt, pageSize, pageBlockSize, 'fn_noticelist');
console.log("paginationHtml : " + paginationHtml);
$("#noticePagination").empty().append( paginationHtml );
}
callAjax("/mngNot/noticelist.do", "post", "text", false, param, listcollabck) ;
}
</script>
</head>
<body>
<form id="myForm" action="" method="">
<!-- 모달 배경 -->
<div id="mask"></div>
<div id="wrap_area">
<h2 class="hidden">header 영역</h2>
<jsp:include page="/WEB-INF/view/common/header.jsp"></jsp:include>
<h2 class="hidden">컨텐츠 영역</h2>
<div id="container">
<ul>
<li class="lnb">
<!-- lnb 영역 --> <jsp:include
page="/WEB-INF/view/common/lnbMenu.jsp"></jsp:include> <!--// lnb 영역 -->
</li>
<li class="contents">
<!-- contents -->
<h3 class="hidden">contents 영역</h3> <!-- content -->
<div class="content">
<p class="Location">
<a href="../dashboard/dashboard.do" class="btn_set home">메인으로</a> <span
class="btn_nav bold">운영</span> <span class="btn_nav bold">공지사항
관리</span> <a href="../system/comnCodMgr.do" class="btn_set refresh">새로고침</a>
</p>
<p class="conTitle">
<span>공지사항</span> <span class="fr">
<select id="delyn" name="delyn" style="width: 150px;">
<option value="" >전체</option>
<option value="Y" >삭제</option>
<option value="N" >미삭제</option>
</select>
<select id="searchKey" name="searchKey" style="width: 150px;" >
<option value="" >전체</option>
<option value="writer" >작성자</option>
<option value="title" >제목</option>
</select>
<input type="text" style="width: 300px; height: 25px;" id="sname" name="sname">
<a href="" class="btnType blue" id="btnSearch" name="btn"><span>검 색</span></a>
<a class="btnType blue" href="javascript:fPopModalComnGrpCod();" name="modal"><span>신규등록</span></a>
</span>
</p>
<div class="noticeList">
<table class="col">
<caption>caption</caption>
<colgroup>
<col width="15%">
<col width="40%">
<col width="15%">
<col width="15%">
<col width="15%">
</colgroup>
<thead>
<tr>
<th scope="col">글번호</th>
<th scope="col">제목</th>
<th scope="col">작성일자</th>
<th scope="col">작성자</th>
<th scope="col">삭제여부</th>
</tr>
</thead>
<tbody id="listnotice"></tbody>
</table>
</div>
<div class="paging_area" id="noticePagination"> </div>
</div> <!--// content -->
<h3 class="hidden">풋터 영역</h3>
<jsp:include page="/WEB-INF/view/common/footer.jsp"></jsp:include>
</li>
</ul>
</div>
</div>
<!-- 모달팝업 -->
<div id="layer1" class="layerPop layerType2" style="width: 600px;">
<dl>
<dt>
<strong>그룹코드 관리</strong>
</dt>
<dd class="content">
<!-- s : 여기에 내용입력 -->
<table class="row">
<caption>caption</caption>
<colgroup>
<col width="120px">
<col width="*">
<col width="120px">
<col width="*">
</colgroup>
<tbody>
<tr>
<th scope="row">그룹 코드 <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" name="grp_cod" id="grp_cod" /></td>
<th scope="row">그룹 코드 명 <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" name="grp_cod_nm" id="grp_cod_nm" /></td>
</tr>
<tr>
<th scope="row">코드 설명 <span class="font_red">*</span></th>
<td colspan="3"><input type="text" class="inputTxt p100"
name="grp_cod_eplti" id="grp_cod_eplti" /></td>
</tr>
<tr>
<th scope="row">사용 유무 <span class="font_red">*</span></th>
<td colspan="3"><input type="radio" id="radio1-1"
name="grp_use_poa" id="grp_use_poa_1" value='Y' /> <label for="radio1-1">사용</label>
<input type="radio" id="radio1-2"
name="grp_use_poa" id="grp_use_poa_2" value="N" /> <label for="radio1-2">미사용</label></td>
</tr>
</tbody>
</table>
<!-- e : 여기에 내용입력 -->
<div class="btn_areaC mt30">
<a href="" class="btnType blue" id="btnSaveGrpCod" name="btn"><span>저장</span></a>
<a href="" class="btnType blue" id="btnDeleteGrpCod" name="btn"><span>삭제</span></a>
<a href="" class="btnType gray" id="btnCloseGrpCod" name="btn"><span>취소</span></a>
</div>
</dd>
</dl>
<a href="" class="closePop"><span class="hidden">닫기</span></a>
</div>
<div id="layer2" class="layerPop layerType2" style="width: 600px;">
<dl>
<dt>
<strong>상세코드 관리</strong>
</dt>
<dd class="content">
<!-- s : 여기에 내용입력 -->
<table class="row">
<caption>caption</caption>
<colgroup>
<col width="120px">
<col width="*">
<col width="120px">
<col width="*">
</colgroup>
<tbody>
<tr>
<th scope="row">그룹 코드 ID <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" id="dtl_grp_cod" name="dtl_grp_cod" /></td>
<th scope="row">그룹 코드 명 <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" id="dtl_grp_cod_nm" name="dtl_grp_cod_nm" /></td>
</tr>
<tr>
<th scope="row">상세 코드 ID <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" id="dtl_cod" name="dtl_cod" /></td>
<th scope="row">상세 코드 명 <span class="font_red">*</span></th>
<td><input type="text" class="inputTxt p100" id="dtl_cod_nm" name="dtl_cod_nm" /></td>
</tr>
<tr>
<th scope="row">코드 설명</th>
<td colspan="3"><input type="text" class="inputTxt p100"
id="dtl_cod_eplti" name="dtl_cod_eplti" /></td>
</tr>
<tr>
<th scope="row">사용 유무 <span class="font_red">*</span></th>
<td colspan="3"><input type="radio" id="dtl_use_poa_1"
name="dtl_use_poa" value="Y" /> <label for="radio1-1">사용</label>
<input type="radio" id="dtl_use_poa_2"
name="dtl_use_poa" value="N" /> <label for="radio1-2">미사용</label></td>
</tr>
</tbody>
</table>
<!-- e : 여기에 내용입력 -->
<div class="btn_areaC mt30">
<a href="" class="btnType blue" id="btnSaveDtlCod" name="btn"><span>저장</span></a>
<a href="" class="btnType blue" id="btnDeleteDtlCod" name="btn"><span>삭제</span></a>
<a href="" class="btnType gray" id="btnCloseDtlCod" name="btn"><span>취소</span></a>
</div>
</dd>
</dl>
<a href="" class="closePop"><span class="hidden">닫기</span></a>
</div>
<!--// 모달팝업 -->
</form>
</body>
</html>