공지사항 조회 수정

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

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

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

Loading…
Cancel
Save