공지사항 조회 수정

main
이범준 2 months ago
parent 2e11463fb6
commit 7cd77ff95b

@ -19,25 +19,27 @@
<form name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
<label is="name-label" for="cntnSeCd"
class="form-label fw-bold form-search-title">접속구분</label>
<select is="id-select" name="cntnSeCd" class="form-select">
<option value="">전체</option>
<option value="01">행정망</option>
<option value="02">인터넷망</option>
</select>
</div>
<div class="col-12">
<label is="name-label" for="sggCd"
class="form-label fw-bold form-search-title">시군구</label>
<select is="id-select" name="sggCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach>
</select>
</div>
<c:if test="${isPublicOfficer}">
<div class="col-12">
<label is="name-label" for="cntnSeCd"
class="form-label fw-bold form-search-title">접속구분</label>
<select is="id-select" name="cntnSeCd" class="form-select">
<option value="">전체</option>
<option value="01">행정망</option>
<option value="02">인터넷망</option>
</select>
</div>
<div class="col-12">
<label is="name-label" for="sggCd"
class="form-label fw-bold form-search-title">시군구</label>
<select is="id-select" name="sggCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:forEach>
</select>
</div>
</c:if>
<div class="col-12">
<select is="id-select" name="by" class="form-select">
<option value="NTC_TTL">제목</option>
@ -75,8 +77,10 @@
<thead class="sticky-thead">
<tr name="ntcThead">
<th style="width: 80px;" class="cmn">No.</th>
<th style="width: 180px;">접속구분</th>
<th style="width: 180px;">시군구명</th>
<c:if test="${isPublicOfficer}">
<th style="width: 180px;">접속구분</th>
<th style="width: 180px;">시군구명</th>
</c:if>
<th style="width: 800px;">제목</th>
<th style="width: 180px;">작성일시</th>
<th class="dummy-th"></th>
@ -87,8 +91,10 @@
<template is="curly-brackets" name="ntcRow">
<tr data-index="DATA-INDEX">
<td onclick ondblclick class="text-end">ROW_NUM</td>
<td onclick ondblclick class="text-start">CNTN_SE_NM</td>
<td onclick ondblclick class="text-start">SGG_NM</td>
<c:if test="${isPublicOfficer}">
<td onclick ondblclick class="text-start">CNTN_SE_NM</td>
<td onclick ondblclick class="text-start">SGG_NM</td>
</c:if>
<td onclick ondblclick class="text-start">NTC_TTL</td>
<td onclick ondblclick class="text-center">REG_DT</td>
<td class="dummy-td"></td>
@ -96,7 +102,7 @@
</template>
<template name="ntcNotFound">
<tr>
<td valign="top" colspan="6" class="dataTables_empty text-center">
<td valign="top" colspan="${isPublicOfficer ? 6 : 4}" class="dataTables_empty text-center">
공지사항 정보를 찾지 못했습니다.
</td>
</tr>
@ -319,7 +325,7 @@ $(document).ready(function(){
$P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.info.isAdmin != true){
if(!MY_INFO.info.isAdmin){
$P.$findn("btnAdd").attr("hidden","hidden");
}
});

@ -10,31 +10,32 @@
<input type="text" name="ntcId" data-map="NTC_ID" hidden />
<div class="row g-1">
<div class="col-md-12">
<label is="name-label" for="cntnSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
접속구분
</label>
<select is="id-select" name="cntnSeCd" data-map="CNTN_SE_CD" class="form-select">
<option value="01">행정망</option>
<option value="02">인터넷망</option>
</select>
</div>
<div class="col-md-12">
<label is="name-label" for="sggCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
시군구
</label>
<select is="id-select" name="sggCd" data-map="SGG_CD" class="form-select">
<option value="">전체</option>
<c:forEach items="${sggList}" var="item">
<c:if test="${item.SGG_CD ne 'ADMIN'}">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:if>
</c:forEach>
</select>
</div>
<c:if test="${isPublicOfficer}">
<div class="col-md-12">
<label is="name-label" for="cntnSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
접속구분
</label>
<select is="id-select" name="cntnSeCd" data-map="CNTN_SE_CD" class="form-select">
<option value="01">행정망</option>
<option value="02">인터넷망</option>
</select>
</div>
<div class="col-md-12">
<label is="name-label" for="sggCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
시군구
</label>
<select is="id-select" name="sggCd" data-map="SGG_CD" class="form-select">
<option value="">전체</option>
<c:forEach items="${sggList}" var="item">
<c:if test="${item.SGG_CD ne 'ADMIN'}">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
</c:if>
</c:forEach>
</select>
</div>
</c:if>
<div class="col-md-12">
<label is="name-label" for="ntcTtl"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">
@ -165,13 +166,15 @@ $(document).ready(function(){
if(ntcInfo == null){
ctrl.dataset.setData([]);
$P.$findn("btnRemove").attr("hidden","hidden");
} else {
ctrl.dataset.setData([ntcInfo]);
$P.$findn("sggCd").attr("disabled","disabled");
$P.$findn("cntnSeCd").attr("disabled","disabled");
if(MY_INFO.info.isAdmin != true){
if(!MY_INFO.info.isAdmin){
$P.$findn("btnSave").attr("hidden","hidden");
$P.$findn("btnRemove").attr("hidden","hidden");
}

Loading…
Cancel
Save