Merge branch 'tolag3'

This commit is contained in:
leejunho 2024-09-23 18:15:54 +09:00
commit a581b282d1
10 changed files with 150 additions and 947 deletions

View File

@ -30,20 +30,12 @@ public class ImagePaginationRendererWeb extends AbstractPaginationRenderer imple
}
public void initVariables(){
/*firstPageLabel = "<li><a href='#' title='첫페이지' onclick=\"{0}({1});return false;\"><img src=\"/publish/image/board/arrowLeft2.png\" alt=\"첫페이지\"></a></li>";
previousPageLabel = "<li><a href='#' title='이전10페이지' onclick=\"{0}({1});return false;\"><img src=\"/publish/image/board/arrowLeft.png\" alt=\"이전10페이지\"></a></li>";
currentPageLabel = "<li class='active'><a href='#' title='현재페이지'>{0}</a></li>";
otherPageLabel = "<li><a href='#' title={2}페이지 onclick=\"{0}({1});return false;\">{2}</a></li>";
nextPageLabel = "<li><a href='#' title='다음10페이지' onclick=\"{0}({1});return false;\"><img src=\"/publish/image/board/arrowRight.png\" alt=\"다음10페이지\"></a></li>";
lastPageLabel = "<li><a href='#' title='마지막페이지' onclick=\"{0}({1});return false;\"><img src=\"/publish/image/board/arrowRight2.png\" alt=\"마지막페이지\"></a></li>";*/
firstPageLabel = "<button class='btn_page_first' title='첫 페이지 이동' onclick=\"{0}({1});return false;\"><i></i></button>";
previousPageLabel = "<button class='btn_page_prev' title='이전 페이지 이동' onclick=\"{0}({1});return false;\"><i></i></button>";
/*currentPageLabel = "<button class='on' title=\"현재 {0}페이지\" onclick='return false;' disabled>{0}</button>";*/
currentPageLabel = "<button class='on' title=\"현재 {0}페이지\" onclick=\"return false;\" readonly>{0}</button>";
otherPageLabel = "<button title=\"{1} 페이지 이동\" onclick=\"{0}({1});return false;\">{2}</button>";
nextPageLabel = "<button class='btn_page_next' title='다음 페이지 이동' onclick=\"{0}({1});return false;\"><i></i></button>";
lastPageLabel = "<button class='btn_page_last' title='마지막 페이지 이동' onclick=\"{0}({1});return false;\"><i></i></button>";
firstPageLabel = "<li><a href=\"#\" class=\"btn only_icon btn_40 btn_page_first\" title=\"첫 페이지 이동\" onclick=\"{0}({1});return false;\"><i class=\"icon page_first\"></i></a></li>";
previousPageLabel = "<li><a href=\"#\" class=\"btn only_icon btn_40 btn_page_prev\" title=\"이전 페이지 이동\" onclick=\"{0}({1});return false;\"><i class=\"icon page_prev\"></i></a></li>";
currentPageLabel = "<li><a href=\"#\" class=\"btn btn_40 active\" title=\"{0} 페이지 이동\" onclick=\\\"return false;\\\" readonly>{0}</a></li>";
otherPageLabel = "<li><a href=\"#\" class=\"btn btn_40\" title=\"{1} 페이지 이동\" onclick=\"{0}({1});return false;\">{2}</a></li>";
nextPageLabel = "<li><a href=\"#\" class=\"btn only_icon btn_40 btn_page_next\" title=\"다음 페이지 이동\" onclick=\"{0}({1});return false;\"><i class=\"icon page_next\"></i></a></li>";
lastPageLabel = "<li><a href=\"#\" class=\"btn only_icon btn_40 btn_page_last\" title=\"마지막 페이지 이동\" onclick=\"{0}({1});return false;\"><i class=\"icon page_last\"></i></a></li>";
}
@Override

View File

@ -11,6 +11,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
@ -143,18 +144,18 @@ public class XxxController {
public String xxxList(
ModelMap model
, HttpServletRequest request
, XxxVO xxxVO
, @ModelAttribute("xxxVO") XxxVO xxxVO
) throws Exception {
ArrayList xxxList = new ArrayList<XxxVO>();
for(int i = 0 ; i < 10 ; i++) {
XxxVO tmpVO = new XxxVO();
tmpVO.setTotCnt(200);
tmpVO.setCol1(String.valueOf(i));
tmpVO.setCol2("유형내용" + i + "입니다.");
tmpVO.setCol3("제목내용" + i + "입니다.");
tmpVO.setCol4("등록일시" + i + "입니다.");
tmpVO.setTotCnt(10);
xxxList.add(tmpVO);
}
@ -166,28 +167,16 @@ public class XxxController {
model.addAttribute("xxxList", xxxList);
model.addAttribute("paginationInfo", paginationInfo);
// if(setIdx.equals("101")){
// session.setAttribute("menuName", "조정신청");
// }else if(setIdx.equals("102")){
// session.setAttribute("menuName", "절차진행");
// }else if(setIdx.equals("103")){
// session.setAttribute("menuName", "절차종료");
// }else{
// session.setAttribute("menuName", "기타");
// }
//
// paramMap.put("setIdx", setIdx);
// paramMap.put("pageStart", cri.getPageStart());
// paramMap.put("perPageNum", cri.getPerPageNum());
// List<Map<String,Object>> bbsList = service.boardList(paramMap);
//
// PageMaker pageMaker = new PageMaker();
// pageMaker.setCri(cri);
// pageMaker.setTotalCount(service.boardListCnt(paramMap));
//
// map.addAttribute("bbsList", bbsList);
// map.addAttribute("pageMaker", pageMaker);
return "/web/xxx/xxxList";
}
@RequestMapping("/web/xxx/xxxDetail.do")
public String xxxDetail(
ModelMap model
, HttpServletRequest request
, @ModelAttribute("xxxVO") XxxVO xxxVO
) throws Exception {
return "/web/xxx/xxxDetail";
}
}

View File

@ -1,84 +1,35 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javaScript" language="javascript" defer="defer">
function footerSiteLinkPageGo (){
var url = $("#footerSite").val();
if (url == ""){
alert("사이트를 선택해 주세요");
}
else if (url == "SITE005" ) {
// 디지털 저작권 거래소
$('#usrModifyForm').attr("action","https://www.kdce.or.kr/user/main.do");
$('#usrModifyForm').submit();
} else if (url == "SITE006" ) {
// 권리자 찾기
$('#usrModifyForm').attr("action","https://www.findcopyright.or.kr/ssoMain.do");
$('#usrModifyForm').submit();
} else if (url == "SITE007" ) {
// OLIS 오픈소스SW 라이선스
$('#usrModifyForm').attr("action","https://www.olis.or.kr/membership/ssoOlisLogin.do");
$('#usrModifyForm').submit();
} else if (url == "SITE008" ) {
// 공유마당
$('#usrModifyForm').attr("action","https://gongu.copyright.or.kr/gongu/member/user/ssoLogin.do");
$('#usrModifyForm').submit();
} else if (url == "SITE009" ) {
// 저작권 인증
$('#usrModifyForm').attr("action","https://cras.copyright.or.kr/front/right/comm/ssoLoginMain.do");
$('#usrModifyForm').submit();
} else {
window.open(url);
}
}
</script>
<!-- 전자조정 footer -->
<footer>
<div class="inner">
<div class="area_top">
<ul class="site">
<li><a href="https://www.copyright.or.kr/customer-center/user-guide/privacy-policy/index.do" target="_blank" title="새창열림">개인정보처리방침</a></li>
<li><a href="https://www.copyright.or.kr/customer-center/user-guide/email-rejection/index.do" target="_blank" title="새창열림">이메일무단수집거부</a></li>
<li><a href="https://www.copyright.or.kr/customer-center/user-guide/customer-service-charter/index.do" target="_blank" title="새창열림">고객서비스헌장</a></li>
<li><a href="https://www.copyright.or.kr/customer-center/user-guide/policy/index.do" target="_blank" title="새창열림">저작권정책</a></li>
</ul>
<div class="site_go">
<label for="footerSite">위원회 운영사이트 선택</label>
<select name="footerSite" id="footerSite">
<option value="" selected>위원회 운영 누리집</option>
<option value="http://www.copyright.or.kr">대표홈페이지</option>
<option value="https://www.kdce.or.kr/user/main.do">디지털 저작권거래소</option>
<option value="https://www.findcopyright.or.kr/main/main.do">권리자 찾기</option>
<!-- <option value="SITE006">권리자 찾기</option> -->
<option value="http://www.uci.or.kr">UCI(국가디지털콘텐츠식별체계)</option>
<option value="https://gongu.copyright.or.kr">공유마당</option>
<option value="https://www.olis.or.kr/olis/olisMain.do">OLIS(오픈소스SW라이선스)</option>
<!-- <option value="SITE007">OLIS(오픈소스SW라이선스)</option> -->
<!-- <option value="http://edu-copyright.or.kr">원격교육연수원</option>
<option value="http://edulife.copyright.or.kr">원격평생교육원</option> -->
<option value="https://www.edu-copyright.or.kr">저작권e배움터</option>
<option value="http://www.cros.or.kr">저작권 등록</option>
<option value="http://www.swes.or.kr">온라인 임치</option>
<option value="https://cras.copyright.or.kr/front/right/comm/main_.do">저작권 인증</option>
<!-- <option value="SITE009">저작권 인증</option> -->
<option value="http://library.copyright.or.kr/">저작권도서관</option>
<footer class="footer">
<div class="inner">
<h1 class="logo">
<a href="#" class="pc_logo"><img src="/kofair_case_seed/usr/images/layout/footer_logo.png" alt=""></a>
<a href="#" class="m_logo"><img src="/kofair_case_seed/usr/images/layout/footer_logo_m.png" alt=""></a>
</h1>
<div class="footer_content">
<div class="footer_info">
<p>서울시 중구 세종대로 39 상공회의소회관 9층 한국공정거래조정원</p>
<p><b class="gMarket_bold">TEL : 1588-1490</b>(유료, 통화료 발신자 부담)</p>
<p><b class="gMarket_bold">FAX : 02-6363-9119</b></p>
</div>
<div class="footer_site">
<a href="/" target="_blank">기관소개 <i class="icon outlink"></i></a>
<a href="#">오시는 길 <i class="icon arrow right"></i></a>
<div class="site_wrap">
<select name="" id="" title="관련사이트 선택">
<option value="">관련사이트 바로가기</option>
</select>
<button class="btn_go" title="새창열림 사이트 이동" onclick="footerSiteLinkPageGo();">GO</button>
<button type="button" title="관련사이트 이동" class="btn btn_text btn_40 gray_fill fw_bold">GO</button>
</div>
</div>
<h1 class="logo"><a href="/" title="메인으로 이동"><img src="/kccadrPb/usr/image/common/footer_logo.png"
alt="저작권 전자조정시스템 Copyright Electronic Coordination System"></a></h1>
<address>
<%--<p>진주 [52852] 경상남도 진주시 충의로 19, 1/2/5층 ☎ 대표번호 055.792.0000</p> --%>
<p>진주 [52851] 경상남도 진주시 소호로 117 ☎ 대표번호 055.792.0000</p>
<p>서울 [04323] 서울특별시 용산구 후암로 107, 5/16층 ☎ 대표번호 02.2669.0010</p>
</address>
<a href="http://webwatch.or.kr" class="wa_mark" target="_blank" rel="noopener noreferrer" title="새창열림"><img src="/kccadrPb/usr/image/wa_mark.png" alt="과학기술정보통신부 WA(WEB접근성) 품질인증 마크, 웹와치(WebWatch) 2024.4.11~2025.4.10"></a>
</div>
</footer>
<!-- //footer -->
<div class="footer_bottom">
<div class="link">
<a href="#" class="fw_bold" target="_blank">개인정보처리방침 <i class="icon outlink"></i></a>
<a href="#">이메일무단수집거부</a>
</div>
<p class="copyright">Copyright KOFAIR. All Rights Reserved</p>
</div>
</div>
</footer>

View File

@ -25,33 +25,6 @@
<meta http-equiv="Content-Security-Policy"
content="default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;">
<%-- <link rel="stylesheet" href="/kccadrPb/usr/css/reset.css">
<link rel="stylesheet" href="/kccadrPb/usr/css/font.css">
<link rel="stylesheet" href="/kccadrPb/usr/css/common.css">
<link rel="stylesheet" href="/kccadrPb/usr/css/popup.css">
<script src="/kccadrPb/usr/script/jquery-3.5.0.js"></script>
<script src="/kccadrPb/usr/script/common.js"></script>
<c:if test="${!fn:contains(URL , 'main/mainPage.do')}">
<!-- 서브페이지 -->
<link rel="stylesheet" href="/kccadrPb/usr/css/content.css">
<link rel="stylesheet" href="/kccadrPb/usr/css/content_media.css">
<c:if test="${!fn:contains(URL , 'web/kccadr/accdnt/ai/docIssReqRegist.do')}">
<script src="/kccadrPb/usr/script/content.js"></script>
</c:if>
</c:if>
<script type="text/javascript" src="<c:url value='/js/web_common.js'/>"></script>
<c:if test="${!fn:contains(URL , 'main/mainPage.do')}">
<script type="text/javascript" src="<c:url value='/js/kccadr/kccadrCom.js?5'/>" defer="defer"></script>
</c:if>
<!-- 전자조정 공통 --> --%>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
@ -70,7 +43,6 @@ content="default-src * self blob: data: gap:; style-src * self 'unsafe-inline' b
<script src="/kofair_case_seed/usr/scripts/layout.js"></script>
<script src="/kofair_case_seed/usr/scripts/case.js"></script>
<script>
// 페이지 뒤로 가기 시 이벤트 발생
window.onpageshow = function(event) {

View File

@ -1,187 +0,0 @@
<%--
대국민(사용자)
Class Name : xxxDetail.jsp
Description : xxx 상세, 수정 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.08.09 이준호 내용
author : 이준호
since : 2021.08.09
--%>
<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>xxx 상세</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
/* 리스트로 이동 */
function goList(){
document.searchForm.action = "/kcc/adr/xxx/xxxList.do";
document.searchForm.submit();
}
/* 글 수정 Ajax */
function fn_xxx_updt() {
var data = new FormData(document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "/kcc/adr/xxx/updateXxx.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (returnData, status) {
if(status == 'success'){
alert("저장 되었습니다.");
goList();
} else if(status== 'fail'){
alert("저장에 실패하였습니다.");
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
/* 첨부파일 다운로드 */
function fn_egov_downFile(atchFileId, fileSn){//atchFileId -> 파일 Id, fileSn -> 파일 순번
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
}
</script>
</head>
<body>
<form name="writeForm" enctype="multipart/form-data" method="post">
<input type="hidden" id="xxxId" name="xxxId" value="<c:out value='${xxxVO.xxxId}'/>">
<input type="hidden" name="limitcount" value="50" /><!-- 드래그앤드랍 파일 최대 개수 -->
<div class="contWrap">
<div class="pageCont">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<!-- 상세 항목 -->
<tr>
<th>항목 이름</th>
<td colspan="3">
<input type="text" name="xxx" title="xxx" value="<c:out value='${xxxVO.xxx}'/>" maxlength="100"/>
</td>
</tr>
<tr>
<!-- 드래그엔 드롭 첨부파일 추가, 삭제 -->
<th>파일 첨부</th>
<td class="upload_area">
<div class="file_upload_box no_img_box fileWrap">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
</table>
</div>
<div class="fileWrap fileAfter file_list_div">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody id="tbody_fiielist" class="tb_file_after">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_<c:out value='${fileList.atchFileId}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="<c:out value='${fileList.fileMg}' />">
<td class="file_name">
<a href="javascript:fn_egov_downFile('<c:out value='${fileList.atchFileId}' />','<c:out value='${fileList.fileSn}' />')">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span>
</a>
</td>
<td>
<span class="file_size_text" value="<c:out value="${fileList.fileMg}"/>"></span>
</td>
<td>
<c:out value="${fileList.creatDt}"/>
</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일${status.count} 삭제">
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li">50</span>개 <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
<li>
<p><span class="c_456ded fwBold totalfileCount">1</span>개 <span class="c_456ded fwBold totalfileSize">72.01KB</span></p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" id="file_temp" name="file_temp" class="uploadFile">
</div>
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1" value="목 록" onclick="goList(); return false;">
<input type="button" class="btnType1" value="수 정" onclick="fn_xxx_updt(); return false;">
</div>
</div>
</div>
</form>
<form name="searchForm" id="searchForm" method="post" action="<c:url value='url'/>">
<input name="xxxId" type="hidden" value=""/>
</form>
</body>
</html>

View File

@ -1,229 +0,0 @@
<%--
대국민(사용자)
Class Name : xxxList.jsp
Description : (사용자)XXX 리스트 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.08.09 이준호 내용
author : 이준호
since : 2021.08.09
--%>
<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>xxx 목록</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
// 사용자 -> web_common.js, 관리자 -> ncms_common.js(공통js)에서 linkPage()함수를 호출하기 때문에 꼭 linkPage()함수 정의 필수(목록의 항목별 정렬을 해주는 버튼을 위해서)
function linkPage(pageNo){
var listForm = document.listForm ;
listForm.pageIndex.value = pageNo ;
listForm.submit();
}
//목록 전체 체크
function fnCheckAll() {
var checkField = document.listForm.del;
if(document.listForm.checkAll.checked) {
if(checkField) {
if(checkField.length > 1) {
for(var i=0; i < checkField.length; i++) {
checkField[i].checked = true;
}
} else {
checkField.checked = true;
}
}
} else {
if(checkField) {
if(checkField.length > 1) {
for(var j=0; j < checkField.length; j++) {
checkField[j].checked = false;
}
} else {
checkField.checked = false;
}
}
}
}
//Ajax예
function xxx(xxxId, value){
var xxxx = confirm("XXX 하시겠습니까?");
var xxxId = xxxId;
var value = value;
$.ajax({
type: "POST",
url: "/kcc/adr/xxx/xxxYyyyAjax.do",
data: {
"xxxId": xxxId,
"value": value
},
dataType:'json',
success: function (returnData, status) {
if(status == 'success'){
alert("xxx");
} else if(status== 'fail'){
alert("xxx");
}
},
error: function (e) { alert("xxx"); console.log("ERROR : ", e); }
});
}
/* xxx 등록 화면*/
function fn_xxx_regist(){
document.modiForm.action = "<c:url value='/kcc/adr/xxx/xxxRegist.do'/>";
document.modiForm.submit();
}
/* xxx 수정 화면*/
function fn_xxx_Updt(xxxId){
document.xxxForm.xxxId = xxxId;
document.modiForm.action = "<c:url value='/kcc/adr/xxx/xxxModify.do'/>";
document.modiForm.submit();
}
/* xxx 삭제*/
function fn_xxx_delete(){
document.modiForm.action = "<c:url value='/kcc/adr/xxx/deleteXxx.do'/>";
document.modiForm.submit();
}
function fn_xxx_inqire(xxxId){
document.xxxForm.xxxId = xxxId;
document.modiForm.action = "<c:url value='/kcc/adr/xxx/xxxDetail.do'/>";
document.modiForm.submit();
}
</script>
</head>
<body>
<form name="xxxForm" action="<c:url value='url'/>" method="post">
<input name="pageIndex" type="hidden" value="<c:out value='${xxxVO.pageIndex}'/>"/>
<input type="hidden" name="selected" />
<input type="hidden" name="pageType" />
<input type="hidden" name="searchSortCnd" value="<c:out value="${xxxVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${xxxVO.searchSortOrd}" />" />
<!-- 아래 목록의 양식은 퍼블리싱 페이지와 다름 검색, 줄수 표시, 항목정렬버튼, 번호항목, 첨부파일, 페이징 부분만 참고 -->
<div class="contWrap">
<div class="pageCont">
<div class="listSerch">
제목 :
<!-- 검색 -->
<input id="searchKeyword" name="searchKeyword" class="recentSearch" type="text" value="<c:out value='${xxxVO.searchKeyword}'/>" size="25" title="검색" maxlength="100" />
<input type="button" class="btnType1" value="검색" onclick="linkPage(1); return false;">
</div>
<div class="listTop">
<p class="tType5">게시판 수 :<span class="tType4 c_456ded fwBold"><c:out value="${paginationInfo.totalRecordCount}"/></span>건</p>
<div class="rightWrap">
<input type="button" class="printBtn">
<!-- 줄수 표시 -->
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);">
<option value='10' <c:if test="${xxxVO.pageUnit == '10' or xxxVO.pageUnit == ''}">selected</c:if>>10줄</option>
<option value='20' <c:if test="${xxxVO.pageUnit == '20'}">selected</c:if>>20줄</option>
<option value='30' <c:if test="${xxxVO.pageUnit == '30'}">selected</c:if>>30줄</option>
</select>
</div>
</div>
<div class="tableWrap">
<table class="tbType1">
<colgroup>
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
</colgroup>
<thead>
<tr>
<!-- 항목정렬 버튼 사용자 -> web_common.js, 관리자 -> ncms_common.js에서 처리 id를 'sort_'+'xxxVO 변수명'으로 명명-->
<th><input type="checkbox" name="checkAll" id="checkAll" class="check2" value="1" onClick="fnCheckAll();"></th>
<th>번호<input type="button" class="sort sortBtn" id="sort_xxxId"></th>
<th>휴대폰번호<input type="button" class="sort sortBtn" id="sort_xxxPhone"></th>
<th>내용<input type="button" class="sort sortBtn" id="sort_xxxContent"></th>
<th>일시<input type="button" class="sort sortBtn" id="sort_xxxPnttm"></th>
</tr>
</thead>
<tbody>
<!-- 리스트 -->
<c:forEach var="result" items="${xxxList}" varStatus="status">
<tr>
<td>
<input name="del" id="del_${status.index}" type="checkbox" value="${result.xxxId}" />
</td>
<!-- 정렬에 따른 번호 -->
<td>
<c:if test="${xxxVO.searchSortOrd eq 'desc' }">
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
</c:if>
<c:if test="${xxxVO.searchSortOrd eq 'asc' }">
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
</c:if>
</td>
<!-- 상세이동 -->
<td><a href="#" onclick="fn_xxx_inqire('<c:out value="${result.xxxId}"/>');"><c:out value="xxx"/></a></td>
<!-- 첨부파일 여부 -->
<c:if test="${xxxVO.fileAtchPosblAt == 'Y'}"> <!-- 첨부파일 가능 여부 체크 -->
<td class="fileTd">
<c:if test="${result.atchFileCnt > 0}">
<img src="/img/post/atch_file.png" alt="첨부파일 있음">
</c:if>
</td>
</c:if>
</tr>
</c:forEach>
<!-- 리스트가 비어있을경우 -->
<c:if test="${empty xxxList}">
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr>
</c:if>
</tbody>
</table>
</div>
<div class="btnWrap">
<input type="button" class="btnType2" value="삭제" onclick="fn_xxx_delete(); return false;">
<input type="button" class="btnType1" value="등록" onclick="fn_xxx_regist(); return false;">
</div>
<!-- 페이지 네비게이션 시작 -->
<c:if test="${!empty xxxList}">
<div class="page">
<ul class="inline">
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
</ul>
</div>
</c:if>
<!-- //페이지 네비게이션 끝 -->
</div>
</div>
</form>
<!-- form 기본 양식 -->
<form name="xxxForm" method="get" action="<c:url value='url'/>" >
<input name="xxxId" type="hidden" />
</form>
<!-- 목록 항목정렬, 검색을 위해 searchForm 꼭 필요 -->
<form name="searchForm" method="get" action="<c:url value='url'/>">
<input name="pageIndex" type="hidden" value="1" />
<input name="searchKeyword" type="hidden" />
<input name="searchCondition" type="hidden" />
<input name="xxxId" type="hidden" value=""/>
</form>
</body>
</html>

View File

@ -1,186 +0,0 @@
<%--
대국민(사용자)
Class Name : xxxModify.jsp
Description : xxx 상세, 수정 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.08.09 이준호 내용
author : 이준호
since : 2021.08.09
--%>
<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>xxx 수정</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
/* 리스트로 이동 */
function goList(){
document.searchForm.action = "/kcc/adr/xxx/xxxList.do";
document.searchForm.submit();
}
/* 글 수정 Ajax */
function fn_xxx_updt() {
var data = new FormData(document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "/kcc/adr/xxx/updateXxx.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (returnData, status) {
if(status == 'success'){
alert("저장 되었습니다.");
goList();
} else if(status== 'fail'){
alert("저장에 실패하였습니다.");
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
/* 첨부파일 다운로드 */
function fn_egov_downFile(atchFileId, fileSn){//atchFileId -> 파일 Id, fileSn -> 파일 순번
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
}
</script>
</head>
<body>
<form name="writeForm" enctype="multipart/form-data" method="post">
<input type="hidden" id="xxxId" name="xxxId" value="<c:out value='${xxxVO.xxxId}'/>">
<input type="hidden" name="limitcount" value="50" /><!-- 드래그앤드랍 파일 최대 개수 -->
<div class="contWrap">
<div class="pageCont">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<!-- 상세 항목 -->
<tr>
<th>항목 이름</th>
<td colspan="3">
<input type="text" name="xxx" title="xxx" value="<c:out value='${xxxVO.xxx}'/>" maxlength="100"/>
</td>
</tr>
<tr>
<!-- 드래그엔 드롭 첨부파일 추가, 삭제 -->
<th>파일 첨부</th>
<td class="upload_area">
<div class="file_upload_box no_img_box fileWrap">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
</table>
</div>
<div class="fileWrap fileAfter file_list_div">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody id="tbody_fiielist" class="tb_file_after">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_<c:out value='${fileList.atchFileId}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="<c:out value='${fileList.fileMg}' />">
<td class="file_name">
<a href="javascript:fn_egov_downFile('<c:out value='${fileList.atchFileId}' />','<c:out value='${fileList.fileSn}' />')">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span>
</a>
</td>
<td>
<span class="file_size_text" value="<c:out value="${fileList.fileMg}"/>"></span>
</td>
<td>
<c:out value="${fileList.creatDt}"/>
</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일${status.count} 삭제">
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li">50</span>개 <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
<li>
<p><span class="c_456ded fwBold totalfileCount">1</span>개 <span class="c_456ded fwBold totalfileSize">72.01KB</span></p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" id="file_temp" name="file_temp" class="uploadFile">
</div>
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1" value="목 록" onclick="goList(); return false;">
<input type="button" class="btnType1" value="수 정" onclick="fn_xxx_updt(); return false;">
</div>
</div>
</div>
</form>
<form name="searchForm" id="searchForm" method="post" action="<c:url value='url'/>">
<input name="xxxId" type="hidden" value=""/>
</form>
</body>
</html>

View File

@ -1,175 +0,0 @@
<%--
대국민(사용자)
Class Name : xxxRegist.jsp
Description : xxx 등록 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.08.09 이준호 내용
author : 이준호
since : 2021.08.09
--%>
<%-- 공통 JS 함수 정의 : /jsp/web/com/webLayout.jsp --%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<title>xxx 등록</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
/* 리스트로 이동 */
function goList(){
document.searchForm.action = "/kcc/adr/xxx/xxxList.do";
document.searchForm.submit();
}
/* 게시글 등록 */
function fn_xxx_insert() {
var data = new FormData(document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: "/kcc/adr/xxx/insertXxxAjax.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (returnData, status) {
if(status == 'success'){
alert("저장 되었습니다.");
//목록으로 이동
goList();
} else if(status== 'fail'){
alert("저장에 실패하였습니다.");
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
</script>
</head>
<body>
<form name="writeForm" enctype="multipart/form-data" method="post">
<input type="hidden" name="limitcount" value="50" /><!-- 드래그앤드랍 파일 최대 개수 -->
<div class="contWrap">
<div class="pageCont">
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th>항목 이름</th>
<td colspan="3">
<input type="text" name="xxx" title="xxx" value="<c:out value='${xxxVO.xxx}'/>" maxlength="100"/>
</td>
</tr>
<tr>
<th>파일 첨부</th>
<td class="upload_area">
<div class="file_upload_box no_img_box fileWrap">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
</table>
</div>
<div class="fileWrap fileAfter file_list_div">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th scope="col">파일명</th>
<th scope="col">크기</th>
<th scope="col">등록일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody id="tbody_fiielist" class="tb_file_after">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_<c:out value='${fileList.fmsImageFile}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="<c:out value='${fileList.fileSize}' />">
<td class="file_name">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span>
</td>
<td>
<span class="file_size_text" value="<c:out value="${fileList.fileSize}"/>"></span>
</td>
<td>
<c:out value="${fileList.regdt}"/>
</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('<c:out value='${fileList.fmsImageFile}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일${status.count} 삭제">
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li"><c:out value='${bdMstr.posblAtchFileNumber}' /></span>개 <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
<li>
<p><span class="c_456ded fwBold totalfileCount">1</span>개 <span class="c_456ded fwBold totalfileSize">72.01KB</span></p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" id="file_temp" name="file_temp" class="uploadFile">
</div>
</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;">
<input type="button" class="btnType1" value="저 장" onclick="fn_xxx_insert(); return false;">
</div>
</div>
</div>
</form>
<form name="searchForm" id="searchForm" method="post" action="<c:out value='url'/>">
</form>
</body>
</html>

View File

@ -0,0 +1,67 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
</script>
<div class="sub_content">
<!-- page_location -->
<ul class="page_location">
<li><i class="icon home"></i></li>
<li>분쟁조정 안내</li>
<li>분쟁조정 안내</li>
<li>분쟁조정 관련 서식</li>
</ul>
<!-- //page_location -->
<h3 class="sub_con_tit">분쟁조정 관련 서식</h3>
<p class="sub_con_sub_tit">분쟁조정 신청서(및 작성예시), 위임장, 합의취하서 등 분쟁조정 관련 서식을 제공하고 있습니다. 다운로드 받아 사용하시기 바랍니다.</p>
<div class="list_view">
<div class="list_view_wrap">
<h4 class="list_view_tit">
(가맹)(2023)기타 외식 가맹본부의 과중한 위약금 부과 관련 분쟁조정 사례
</h4>
<ul class="view_info">
<li>
<p class="view_info_tit">· 유형 : </p>
<i class="icon td_type"></i>
불공정거래행위-부당한 손해배상의무 부담
</li>
<li>
<p class="view_info_tit">· 작성자 : </p>
<i class="icon td_writer"></i>
관리자
</li>
<li>
<p class="view_info_tit">· 작성일 : </p>
<i class="icon td_calendar"></i>
2024-10-25
</li>
<li>
<p class="view_info_tit">· 조회수 : </p>
<i class="icon td_view"></i>
153
</li>
</ul>
<ul class="view_file_list">
<li><a href="#" download="download"><i class="icon file_download"></i>대규모유통업거래분야 분쟁 예방 체크리스트(대규모유통업자).pdf</a></li>
<li><a href="#" download="download"><i class="icon file_download"></i>대규모유통업거래분야 분쟁 예방 체크리스트(대규모유통업자).pdf</a></li>
</ul>
<div class="view_content">
온라인 분쟁조정 신청이 어려우신 경우 활용하시기 바랍니다.
</div>
<div class="btn_wrap right">
<button type="button" class="btn btn_text btn_40 gray_fill">목록</button>
</div>
</div>
</div>
</div>

View File

@ -9,13 +9,30 @@
<script type="text/javaScript" language="javascript">
$( document ).ready(function(){
});
function linkPage(pageNo){
var listForm = document.listForm ;
listForm.pageIndex.value = pageNo ;
listForm.action = "<c:url value='/web/xxx/adjstConciliatorList.do'/>";
listForm.submit();
}
function fncGoDetail(adrSeq, adrSn){
var listForm = document.listForm ;
listForm.adrSeq.value = adrSeq;
listForm.adrSn.value = adrSn;
listForm.action = "<c:url value='/web/xxx/adjstConciliatorDetail.do'/>";
listForm.submit();
}
</script>
<form id="listForm" name="listForm" method="post" action="">
<input type="hidden" name="pageIndex" value="<c:out value='${xxxVO.pageIndex}' default='1' />"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${xxxVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${xxxVO.searchSortOrd}" />" />
<input type="hidden" name="searchStatus" value="<c:out value="${xxxVO.searchStatus}" />" />
</form>
<div class="sub_content">
<!-- page_location -->
@ -62,7 +79,9 @@
<colgroup>
<col style="width:68px;">
<col style="width:auto;">
<col style="width:10%;">
<col style="width:auto;">
<col style="width:auto;">
<col style="width:auto;">
</colgroup>
<thead>
<tr>
@ -74,7 +93,13 @@
</tr>
</thead>
<tbody>
<c:choose>
<c:when test="${empty xxxList}">
<tr class="tr_list_none">
<td colspan="5" class="list_none">등록된 데이터가 없습니다.</td>
</tr>
</c:when>
</c:choose>
<c:forEach var="xxxList" items="${xxxList}" varStatus="status">
<tr>
<td class="table_number">
@ -84,7 +109,7 @@
${xxxList.col2}
</td>
<td class="td_title">
<a href="#none" class="list_title">
<a href="/web/xxx/xxxDetail.do" class="list_title">
${xxxList.col3}
</a>
</td>
@ -92,36 +117,20 @@
${xxxList.col4}
</td>
<td>
<!-- 각 퍼블리싱 파일마다 아이콘 확인해서 작성 -->
<i class="icon td_view hide td_icon"></i>
110
</td>
</tr>
</c:forEach>
<tr class="tr_list_none">
<td colspan="3" class="list_none">등록된 데이터가 없습니다.</td>
</tr>
</tbody>
</table>
</div>
<!-- //table -->
<ul class="page">
<li><a href="#" class="btn only_icon btn_40 btn_page_first" title="첫 페이지 이동"><i class="icon page_first"></i></a></li>
<li><a href="#" class="btn only_icon btn_40 btn_page_prev" title="이전 페이지 이동"><i class="icon page_prev"></i></a></li>
<li><a href="#" class="btn btn_40" title="1 페이지 이동">1</a></li>
<li><a href="#" class="btn btn_40" title="2 페이지 이동">2</a></li>
<li><a href="#" class="btn btn_40" title="3 페이지 이동">3</a></li>
<li><a href="#" class="btn btn_40" title="4 페이지 이동">4</a></li>
<li><a href="#" class="btn btn_40" title="5 페이지 이동">5</a></li>
<li><a href="#" class="btn btn_40" title="6 페이지 이동">6</a></li>
<li><a href="#" class="btn btn_40" title="7 페이지 이동">7</a></li>
<li><a href="#" class="btn btn_40" title="8 페이지 이동">8</a></li>
<li><a href="#" class="btn btn_40" title="9 페이지 이동">9</a></li>
<li><a href="#" class="btn btn_40 active" title="10 페이지 이동">10</a></li>
<li><a href="#" class="btn only_icon btn_40 btn_page_next" title="다음 페이지 이동"><i class="icon page_next"></i></a></li>
<li><a href="#" class="btn only_icon btn_40 btn_page_last" title="마지막 페이지 이동"><i class="icon page_last"></i></a></li>
</ul>
<ui:pagination paginationInfo = "${paginationInfo}" type="imageWeb" jsFunction="linkPage" />
</ul>
</div>