공지사항 조회 수정

main
이범준 2 months ago
parent d590018678
commit 2e11463fb6

@ -19,6 +19,25 @@
<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>
<div class="col-12">
<select is="id-select" name="by" class="form-select">
<option value="NTC_TTL">제목</option>
@ -56,6 +75,7 @@
<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>
<th style="width: 800px;">제목</th>
<th style="width: 180px;">작성일시</th>
@ -67,6 +87,7 @@
<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>
<td onclick ondblclick class="text-start">NTC_TTL</td>
<td onclick ondblclick class="text-center">REG_DT</td>
@ -75,7 +96,7 @@
</template>
<template name="ntcNotFound">
<tr>
<td valign="top" colspan="5" class="dataTables_empty text-center">
<td valign="top" colspan="6" class="dataTables_empty text-center">
공지사항 정보를 찾지 못했습니다.
</td>
</tr>
@ -157,7 +178,8 @@ $(document).ready(function(){
searchForm.find("input[type='hidden']").val("");
searchForm.find("input[type='text']").val("");
searchForm.find("select[name='sggCd']").val(MY_INFO.info.sggCd);
//searchForm.find("select[name='cntnSeCd']").val(MY_INFO.info.);
//searchForm.find("select[name='sggCd']").val(MY_INFO.info.sggCd);
ctrl.dataset.setData([]);
}
@ -297,7 +319,7 @@ $(document).ready(function(){
$P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute != "ADMIN00"){
if(MY_INFO.info.isAdmin != true){
$P.$findn("btnAdd").attr("hidden","hidden");
}
});

@ -10,6 +10,17 @@
<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">
@ -158,8 +169,9 @@ $(document).ready(function(){
} else {
ctrl.dataset.setData([ntcInfo]);
$P.$findn("sggCd").attr("disabled","disabled");
$P.$findn("cntnSeCd").attr("disabled","disabled");
if(MY_INFO.institute != "ADMIN00"){
if(MY_INFO.info.isAdmin != true){
$P.$findn("btnSave").attr("hidden","hidden");
$P.$findn("btnRemove").attr("hidden","hidden");
}

@ -54,6 +54,13 @@
<input type="file" name="logo" hidden />
</div>
</div>
<div class="row g-3 mt-1 mb-3 superadmin">
<div class="col-md-6">
<label class="w-px-140 col-form-label text-sm-end pe-2 text-red" for="">상위시군구코드</label>
<input name="upSggCd" type="text" class="form-control" />
</div>
</div>
</div>
</form>
@ -274,7 +281,8 @@ $(document).ready(function(){
$P.$findn("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM);
$P.$findn("mainForm").find("[name='instCd']").val($P.sggInfo.INST_CD);
$P.$findn("mainForm").find("[name='instNm']").val($P.sggInfo.INST_NM);
$P.$findn("mainForm").find("[name='upSggCd']").val($P.sggInfo.UP_SGG_CD);
$P.$findn("offcsImage")
.attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH);

Loading…
Cancel
Save