실무역량강화 ck에디터 적용

This commit is contained in:
hylee 2023-12-20 15:14:55 +09:00
parent 473791b65a
commit 32c230b11b
7 changed files with 665 additions and 695 deletions

View File

@ -309,7 +309,7 @@
<tr> <tr>
<th scope="row">상세교육내용</th> <th scope="row">상세교육내용</th>
<td> <td>
<c:out value="${info.prcsCn }" /> <c:out value="${fn:replace(info.prcsCn , crlf , '<br/>')}" escapeXml="false" />
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -269,7 +269,7 @@
<tr> <tr>
<th scope="row">상세교육내용</th> <th scope="row">상세교육내용</th>
<td> <td>
<textarea name="prcsCn" id="prcsCn" class="memo" disabled="disabled" class="inputLight" style="height: 200px;"><c:out value="${info.prcsCn }" /></textarea> <c:out value="${fn:replace(info.prcsCn , crlf , '<br/>')}" escapeXml="false" />
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -1,155 +1,160 @@
<!DOCTYPE html> <!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8" <%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%> pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<% <%
/** /**
* @Class Name : fndthEduPrcsMngDetail.jsp * @Class Name : fndthEduPrcsMngDetail.jsp
* @Description : 기반강화연수 상세화면 * @Description : 기반강화연수 상세화면
* @Modification Information * @Modification Information
* @ * @
* @ 수정일 수정자 수정내용 * @ 수정일 수정자 수정내용
* @ ------- -------- --------------------------- * @ ------- -------- ---------------------------
* @ 2021.12.16 조용준 최초 생성 * @ 2021.12.16 조용준 최초 생성
* @author 조용주 * @author 조용주
* @since 2021.12.16 * @since 2021.12.16
* @version 1.0 * @version 1.0
* @see * @see
* *
*/ */
%> %>
<html lang="ko"> <html lang="ko">
<head> <head>
<title>교육과정관리</title> <title>교육과정관리</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript"> <script type="text/javascript">
function fncGoList(){ function fncGoList(){
var listForm = document.listForm ; var listForm = document.listForm ;
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>"; listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
listForm.submit(); listForm.submit();
} }
function fncMdfy(){ function fncMdfy(){
var detailForm = document.detailForm ; var detailForm = document.detailForm ;
detailForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy.do'/>"; detailForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy.do'/>";
detailForm.submit(); detailForm.submit();
} }
</script> </script>
</head> </head>
<body> <body>
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post"> <form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
</form:form> </form:form>
<form:form id="detailForm" name="detailForm" commandName="vEPrcsDetailVO" method="post"> <form:form id="detailForm" name="detailForm" commandName="vEPrcsDetailVO" method="post">
<input type="hidden" name="prcsOrd" value="<c:out value='${vEPrcsDetailVO.prcsOrd}' default='1' />"/> <input type="hidden" name="prcsOrd" value="<c:out value='${vEPrcsDetailVO.prcsOrd}' default='1' />"/>
<!-- cont --> <!-- cont -->
<div class="cont_wrap"> <div class="cont_wrap">
<div class="box"> <div class="box">
<!-- cont_tit --> <!-- cont_tit -->
<div class="cont_tit"> <div class="cont_tit">
<h2>교육과정상세</h2> <h2>교육과정상세</h2>
<ul class="cont_nav"> <ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li> <li class="home"><a href="/"><i></i></a></li>
<li> <li>
<p>실무자역량강화(기반강화연수관리)</p> <p>실무자역량강화(기반강화연수관리)</p>
</li> </li>
<li><span class="cur_nav">과정관리상세</span></li> <li><span class="cur_nav">과정관리상세</span></li>
</ul> </ul>
</div> </div>
<!-- //cont_tit --> <!-- //cont_tit -->
<div class="cont"> <div class="cont">
<!-- list_상세 --> <!-- list_상세 -->
<div class="tb_tit01"> <div class="tb_tit01">
<p>교육과정관리</p> <p>교육과정관리</p>
</div> </div>
<div class="tb_type02"> <div class="tb_type02">
<table> <table>
<colgroup> <colgroup>
<col style="width: 210px;"> <col style="width: 210px;">
<col style="width: auto;"> <col style="width: auto;">
<col style="width: 210px;"> <col style="width: 210px;">
<col style="width: auto;"> <col style="width: auto;">
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th scope="row">교육부문</th> <th scope="row">교육부문</th>
<td colspan="3" style="position: relative;"> <td colspan="3" style="position: relative;">
<ve:code codeId="VEA001" code="${info.prcsDiv}"/> <ve:code codeId="VEA001" code="${info.prcsDiv}"/>
<div class="put_photo"> <div class="put_photo">
<div class="put_photo_in"> <div class="put_photo_in">
<div class="put_photo"> <div class="put_photo">
<div class="put_photo_in"> <div class="put_photo_in">
<div class="put_photo_box"> <div class="put_photo_box">
<c:if test="${empty info.imageAtchFileId}"> <c:if test="${empty info.imageAtchFileId}">
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요"> <img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
</c:if> </c:if>
<c:if test="${not empty info.imageAtchFileId}"> <c:if test="${not empty info.imageAtchFileId}">
<img id="instrPhoto" class="id_pic" alt="사진" src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${info.imageAtchFileId}"/>' /> <img id="instrPhoto" class="id_pic" alt="사진" src='<c:url value='/uss/ion/pwm/getImage.do'/>?atchFileId=<c:out value="${info.imageAtchFileId}"/>' />
</c:if> </c:if>
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value="<c:out value='${info.imageAtchFileId}'/>"/> <input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value="<c:out value='${info.imageAtchFileId}'/>"/>
</div> </div>
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> --> <!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정명</th> <th scope="row">과정명</th>
<td> <td>
<c:out value='${info.prcsNm}' /> <c:out value='${info.prcsNm}' />
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정설명</th> <th scope="row">과정설명</th>
<td> <td>
<c:out value='${info.prcsCn}' />
</td> <!-- <div id="bbs_cn"> -->
</tr> <c:out value="${fn:replace(info.prcsCn , crlf , '<br/>')}" escapeXml="false" />
<tr> <!-- </div> -->
<th scope="row">사용여부</th>
<td> <%-- <c:out value='${info.prcsCn}' /> --%>
<c:if test="${info.useYn eq 'Y'}"> </td>
사용 </tr>
</c:if> <tr>
<c:if test="${info.useYn ne 'Y'}"> <th scope="row">사용여부</th>
미사용 <td>
</c:if> <c:if test="${info.useYn eq 'Y'}">
</td> 사용
</tr> </c:if>
</tbody> <c:if test="${info.useYn ne 'Y'}">
</table> 미사용
</div> </c:if>
<!-- //list_상세 --> </td>
</tr>
<!-- btn_wrap --> </tbody>
<div class="btn_wrap btn_layout01"> </table>
<div class="btn_left"> </div>
</div> <!-- //list_상세 -->
<div class="btn_center">
</div> <!-- btn_wrap -->
<div class="btn_right"> <div class="btn_wrap btn_layout01">
<button type="button" class="btn_type02" onclick="fncMdfy(); return false;">수정</button> <div class="btn_left">
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button> </div>
</div> <div class="btn_center">
</div> </div>
</div> <div class="btn_right">
</div> <button type="button" class="btn_type02" onclick="fncMdfy(); return false;">수정</button>
</div> <button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
</form:form> </div>
<!-- //cont --> </div>
</body> </div>
</html> </div>
</div>
</form:form>
<!-- //cont -->
</body>
</html>

View File

@ -1,286 +1,290 @@
<!DOCTYPE html> <!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> <%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" /> <un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" />
<% <%
/** /**
* @Class Name : fndthEduPrcsMngList.jsp * @Class Name : fndthEduPrcsMngList.jsp
* @Description : 기반강화연수 과정관리 목록 * @Description : 기반강화연수 과정관리 목록
* @Modification Information * @Modification Information
* @ * @
* @ 수정일 수정자 수정내용 * @ 수정일 수정자 수정내용
* @ ------- -------- --------------------------- * @ ------- -------- ---------------------------
* @ 2021.12.14 조용준 최초 생성 * @ 2021.12.14 조용준 최초 생성
* @author 조용준 * @author 조용준
* @since 2021.12.14 * @since 2021.12.14
* @version 1.0 * @version 1.0
* @see * @see
* *
*/ */
%> %>
<html lang="ko"> <html lang="ko">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style> <style>
input:read-only{ input:read-only{
background-color: #ededed; background-color: #ededed;
} }
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
function fncGoList(){ function fncGoList(){
linkPage(1); linkPage(1);
} }
function linkPage(pageNo){ function linkPage(pageNo){
var listForm = document.listForm ; var listForm = document.listForm ;
listForm.pageIndex.value = pageNo ; listForm.pageIndex.value = pageNo ;
listForm.searchKeyword.value = $('#searchKeyword').val(); listForm.searchKeyword.value = $('#searchKeyword').val();
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>"; listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
listForm.submit(); listForm.submit();
} }
function fncGoDetail(prcsOrd){ function fncGoDetail(prcsOrd){
var listForm = document.listForm ; var listForm = document.listForm ;
listForm.prcsOrd.value = prcsOrd ; listForm.prcsOrd.value = prcsOrd ;
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngDetail.do'/>"; listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngDetail.do'/>";
listForm.submit(); listForm.submit();
} }
function fncCreate() { function fncCreate() {
var listForm = document.listForm ; var listForm = document.listForm ;
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngReg.do'/>"; listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngReg.do'/>";
listForm.submit(); listForm.submit();
} }
function fncDelete(prcsOrd){ function fncDelete(prcsOrd){
document.listForm.prcsOrd.value = prcsOrd ; document.listForm.prcsOrd.value = prcsOrd ;
var pageIndex = document.listForm.pageIndex.value; var pageIndex = document.listForm.pageIndex.value;
if($(".listCount").length == '1'){ if($(".listCount").length == '1'){
pageIndex = pageIndex -1; pageIndex = pageIndex -1;
} }
var data = new FormData(document.getElementById("listForm")); var data = new FormData(document.getElementById("listForm"));
if(confirm("삭제하시겠습니까?")){ if(confirm("삭제하시겠습니까?")){
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDeleteAjax.do'/>"; var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDeleteAjax.do'/>";
console.log(data); console.log(data);
$.ajax({ $.ajax({
type:"POST", type:"POST",
url: url, url: url,
data: data, data: data,
dataType:'json', dataType:'json',
async: false, async: false,
processData: false, processData: false,
contentType: false, contentType: false,
cache: false, cache: false,
success:function(returnData){ success:function(returnData){
if(returnData.result == "success"){ if(returnData.result == "success"){
alert("삭제되었습니다."); alert("삭제되었습니다.");
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화 document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
linkPage(pageIndex); linkPage(pageIndex);
} }
}, },
error:function(request , status, error){ error:function(request , status, error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
} }
}); });
} }
event.stopImmediatePropagation(); event.stopImmediatePropagation();
} }
function fncSaveSort(prcsOrd, count){ function fncSaveSort(prcsOrd, count){
var sortNo = $('#prcsSortNo'+count).val(); var sortNo = $('#prcsSortNo'+count).val();
if(sortNo == ''){ if(sortNo == ''){
alert("표시순서를 입력해 주세요."); alert("표시순서를 입력해 주세요.");
return false; return false;
} }
$('#prcsOrd').val(prcsOrd); $('#prcsOrd').val(prcsOrd);
$('#prcsSortNo').val(sortNo); $('#prcsSortNo').val(sortNo);
var data = new FormData(document.getElementById("listForm")); var data = new FormData(document.getElementById("listForm"));
var url = "<c:url value='/kccadr/oprtn/otsdCprtnPrcs/eduPrcsSortUpdateAjax.do'/>"; var url = "<c:url value='/kccadr/oprtn/otsdCprtnPrcs/eduPrcsSortUpdateAjax.do'/>";
$.ajax({ $.ajax({
type:"POST", type:"POST",
url: url, url: url,
data: data, data: data,
dataType:'json', dataType:'json',
async: false, async: false,
processData: false, processData: false,
contentType: false, contentType: false,
cache: false, cache: false,
success:function(returnData){ success:function(returnData){
if(returnData.result == "success"){ if(returnData.result == "success"){
alert("저장되었습니다."); alert("저장되었습니다.");
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화 document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
fncGoList(); fncGoList();
} }
}, },
error:function(request , status, error){ error:function(request , status, error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
} }
}); });
} }
</script> </script>
<title>교육과정관리</title> <title>교육과정관리</title>
</head> </head>
<body> <body>
<form:form id="listForm" name="listForm" method="post" commandName="vEPrcsDetailVO" onsubmit="return false;"> <form:form id="listForm" name="listForm" method="post" commandName="vEPrcsDetailVO" onsubmit="return false;">
<input type="hidden" name="pageIndex" value="<c:out value='${vEPrcsDetailVO.pageIndex}' default='1' />"/> <input type="hidden" name="pageIndex" value="<c:out value='${vEPrcsDetailVO.pageIndex}' default='1' />"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${vEPrcsDetailVO.searchSortCnd}" />" /> <input type="hidden" name="searchSortCnd" value="<c:out value="${vEPrcsDetailVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${vEPrcsDetailVO.searchSortOrd}" />" /> <input type="hidden" name="searchSortOrd" value="<c:out value="${vEPrcsDetailVO.searchSortOrd}" />" />
<input type="hidden" id="prcsOrd" name="prcsOrd" value="" /> <input type="hidden" id="prcsOrd" name="prcsOrd" value="" />
<input type="hidden" id="prcsSortNo" name="prcsSortNo" value="" /> <input type="hidden" id="prcsSortNo" name="prcsSortNo" value="" />
<div class="cont_wrap"> <div class="cont_wrap">
<div class="box"> <div class="box">
<!-- cont_tit --> <!-- cont_tit -->
<div class="cont_tit"> <div class="cont_tit">
<h2>과정관리목록</h2> <h2>과정관리목록</h2>
<ul class="cont_nav"> <ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li> <li class="home"><a href="/"><i></i></a></li>
<li> <li>
<p>실무자역량강화(기반강화연수관리)</p> <p>실무자역량강화(기반강화연수관리)</p>
</li> </li>
<li><span class="cur_nav">과정관리목록</span></li> <li><span class="cur_nav">과정관리목록</span></li>
</ul> </ul>
</div> </div>
<!-- //cont_tit --> <!-- //cont_tit -->
<div class="cont"> <div class="cont">
<div class="tb_tit01"> <div class="tb_tit01">
<p>교육 과정 관리</p> <p>교육 과정 관리</p>
</div> </div>
<!-- list_top --> <!-- list_top -->
<div class="list_top search-only"> <div class="list_top search-only">
<div class="list_top_1"> <div class="list_top_1">
<div class="util_right"> <div class="util_right">
<ve:select codeId="VEA001" name="searchStatus" id="searchStatus" css="class='sel_type1'" <ve:select codeId="VEA001" name="searchStatus" id="searchStatus" css="class='sel_type1'"
selectedValue="${vEPrcsDetailVO.searchStatus }" defaultValue="" selectedValue="${vEPrcsDetailVO.searchStatus }" defaultValue=""
defaultText="전체" defaultText="전체"
/> />
<div class="calendar_wrap"> <div class="calendar_wrap">
<input type="text" class="calendar" title="시작일 선택" id="searchSmbtStartDt" name="searchSmbtStartDt" value="${vEPrcsDetailVO.searchSmbtStartDt}"> <input type="text" class="calendar" title="시작일 선택" id="searchSmbtStartDt" name="searchSmbtStartDt" value="${vEPrcsDetailVO.searchSmbtStartDt}">
</div> </div>
~ ~
<div class="calendar_wrap"> <div class="calendar_wrap">
<input type="text" class="calendar" title="종료일 선택" id="searchSmbtEndDt" name="searchSmbtEndDt" value="${vEPrcsDetailVO.searchSmbtEndDt}"> <input type="text" class="calendar" title="종료일 선택" id="searchSmbtEndDt" name="searchSmbtEndDt" value="${vEPrcsDetailVO.searchSmbtEndDt}">
</div> </div>
<input type="text" id="searchKeyword" name="searchKeyword" placeholder="과정명를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEEduAplctVO.searchFullName}'/>"> <input type="text" id="searchKeyword" name="searchKeyword" placeholder="과정명를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEEduAplctVO.searchFullName}'/>">
<button type="button" class="btn_type08" onclick="fncGoList(); return false;">검색</button> <button type="button" class="btn_type08" onclick="fncGoList(); return false;">검색</button>
<button class="btn_type03" onclick="fncReset(this); return false;">초기화</button> <button class="btn_type03" onclick="fncReset(this); return false;">초기화</button>
</div> </div>
</div> </div>
</div> </div>
<div class="list_util"> <div class="list_util">
<p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p> <p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p>
<div> <div>
<select class="sel_type1" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px" class="sel_type1"> <select class="sel_type1" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px" class="sel_type1">
<option value='10' <c:if test="${vEPrcsDetailVO.pageUnit == '10' or vEPrcsDetailVO.pageUnit == ''}">selected</c:if>>10줄</option> <option value='10' <c:if test="${vEPrcsDetailVO.pageUnit == '10' or vEPrcsDetailVO.pageUnit == ''}">selected</c:if>>10줄</option>
<option value='20' <c:if test="${vEPrcsDetailVO.pageUnit == '20'}">selected</c:if>>20줄</option> <option value='20' <c:if test="${vEPrcsDetailVO.pageUnit == '20'}">selected</c:if>>20줄</option>
<option value='30' <c:if test="${vEPrcsDetailVO.pageUnit == '30'}">selected</c:if>>30줄</option> <option value='30' <c:if test="${vEPrcsDetailVO.pageUnit == '30'}">selected</c:if>>30줄</option>
<option value='100' <c:if test="${vEPrcsDetailVO.pageUnit == '100'}">selected</c:if>>100줄</option> <option value='100' <c:if test="${vEPrcsDetailVO.pageUnit == '100'}">selected</c:if>>100줄</option>
</select> </select>
<%--<button type="button" class="btn_down_excel">엑셀 다운로드</button>--%> <%--<button type="button" class="btn_down_excel">엑셀 다운로드</button>--%>
</div> </div>
</div> </div>
<!-- //list_top --> <!-- //list_top -->
<!-- list --> <!-- list -->
<div class="tb_type01"> <div class="tb_type01">
<table> <table>
<colgroup> <colgroup>
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 20%"> <col style="width: 20%">
<col style="width: auto"> <col style="width: auto">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%"> <col style="width: 10%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
<th>교육부문</th> <th>교육부문</th>
<th>과정명</th> <th>과정명</th>
<th>설명</th> <th>설명</th>
<th>등록일시</th> <th>등록일시</th>
<th>사용여부 </th> <th>사용여부 </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<c:forEach var="list" items="${list}" varStatus="status"> <c:forEach var="list" items="${list}" varStatus="status">
<tr class="listCount"> <tr class="listCount">
<td> <td>
<kc:code codeId="VEA001" code="${list.prcsDiv}"/> <kc:code codeId="VEA001" code="${list.prcsDiv}"/>
</td> </td>
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;"> <td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
<c:out value='${list.prcsNm}'/> <c:out value='${list.prcsNm}'/>
</td> </td>
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
<c:out value='${list.prcsCn}'/> <td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;text-align: left;">
</td> <!-- <div id="bbs_cn"> -->
<td> <c:out value="${fn:replace(list.prcsCn , crlf , '<br/>')}" escapeXml="false" />
<c:out value='${list.frstRegistPnttm}'/> <!-- </div> -->
</td> <%-- <c:out value='${list.prcsCn}'/> --%>
<td> </td>
<c:if test="${list.useYn eq 'Y'}"> <td>
사용 <c:out value='${list.frstRegistPnttm}'/>
</c:if> </td>
<c:if test="${list.useYn ne 'Y'}"> <td>
미사용 <c:if test="${list.useYn eq 'Y'}">
</c:if> 사용
</td> </c:if>
<c:if test="${list.useYn ne 'Y'}">
</tr> 미사용
</c:forEach> </c:if>
<c:if test="${empty list}"> </td>
<tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
</c:if> </tr>
</tbody> </c:forEach>
</table> <c:if test="${empty list}">
</div> <tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
<!-- //list --> </c:if>
</tbody>
<!-- page --> </table>
<div class="page"> </div>
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" /> <!-- //list -->
</div>
<div class="btn_wrap btn_layout01"> <!-- page -->
<div class="btn_left"> <div class="page">
</div> <ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
<div class="btn_center"> </div>
</div> <div class="btn_wrap btn_layout01">
<div class="btn_right"> <div class="btn_left">
<button type="button" class="btn_type01" onclick="fncCreate(); return false;">등록</button> </div>
</div> <div class="btn_center">
</div> </div>
<!-- //page --> <div class="btn_right">
</div> <button type="button" class="btn_type01" onclick="fncCreate(); return false;">등록</button>
</div> </div>
</div> </div>
<!-- //cont --> <!-- //page -->
<!-- //cont --> </div>
</div>
</form:form> </div>
<!-- //cont -->
</body> <!-- //cont -->
</html>
</form:form>
</body>
</html>

View File

@ -8,6 +8,7 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com"%>
<% <%
/** /**
* @Class Name : fndthEduPrcsMngMdfy.jsp * @Class Name : fndthEduPrcsMngMdfy.jsp
@ -98,6 +99,7 @@
} }
function fncSave(){ function fncSave(){
CKEDITOR.instances.prcsCn.updateElement();
var data = new FormData(document.getElementById("createForm")); var data = new FormData(document.getElementById("createForm"));
if(confirm("수정하시겠습니까?")){ if(confirm("수정하시겠습니까?")){
@ -215,7 +217,16 @@
<tr> <tr>
<th scope="row">상세교육과정</th> <th scope="row">상세교육과정</th>
<td> <td>
<textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"><c:out value="${info.prcsCn }" /></textarea> <%-- <textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"><c:out value="${info.prcsCn }" /></textarea> --%>
<textarea id="prcsCn" name="prcsCn" title="<spring:message code="cop.nttCn" />" cols="500" rows="20">
<%-- <c:out value="${board.nttCn}" escapeXml="false" /> --%>
<c:out value="${info.prcsCn}" escapeXml="false" />
</textarea>
<ckeditor:replace replace="prcsCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
<form:errors path="prcsCn" />
</td> </td>
</tr> </tr>

View File

@ -1,250 +1,199 @@
<!DOCTYPE html> <!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8" <%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%> pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<% <%@ taglib prefix="ckeditor" uri="http://ckeditor.com"%>
/** <%
* @Class Name : fndthEduPrcsMngReg.jsp /**
* @Description : 기반강화연수 과정 등록 * @Class Name : fndthEduPrcsMngReg.jsp
* @Modification Information * @Description : 기반강화연수 과정 등록
* @ * @Modification Information
* @ 수정일 수정자 수정내용 * @
* @ ------- -------- --------------------------- * @ 수정일 수정자 수정내용
* @ 2021.12.16 조용준 최초 생성 * @ ------- -------- ---------------------------
* @author 조용주 * @ 2021.12.16 조용준 최초 생성
* @since 2021.12.16 * @author 조용주
* @version 1.0 * @since 2021.12.16
* @see * @version 1.0
* * @see
*/ *
%> */
<html lang="ko"> %>
<head> <html lang="ko">
<title>교육과정관리</title> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>교육과정관리</title>
<script type="text/javascript"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
//세부과정 추가 버튼 클릭 시 세부과정 추가 <script type="text/javascript">
function addPro() { //세부과정 추가 버튼 클릭 시 세부과정 추가
var addQuest = $(".addPro_wrap");
var questLen = addQuest.children("div").length;
questLen = Number(questLen+1);
var trHtml=""; function fncSave(){
CKEDITOR.instances.prcsCn.updateElement();
trHtml += '<div class="tbody_one">';
trHtml += '<span><span class="span_num3">'+ questLen +'</span>.</span>'; var data = new FormData(document.getElementById("vEPrcsDetailVO"));
trHtml += '<div>'; if(confirm("저장하시겠습니까?")){
trHtml += '<input type="text" name="detailPrcsNm" id="detailPrcsNm"> '; var url = "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngRegAjax.do";
trHtml += '<button type="button" class="table_del3" onclick="delPro(this)"><img src="${pageContext.request.contextPath}/visitEdu/adm/publish/image/content/btn_del.png"></button>'; console.log(data);
trHtml += '</div>'; $.ajax({
trHtml += '</div>'; type:"POST",
url: url,
addQuest.append(trHtml); data: data,
} dataType:'json',
async: false,
//삭제 버튼 클릭 시 현재 div 삭제 후 지문 숫자 재선언 processData: false,
function delPro(item) { contentType: false,
var bodyThis = $(item).closest('.tbody_one'); cache: false,
var tb = $(item).closest('.addPro_wrap').find('.tbody_one'); success:function(returnData){
var len = $(item).closest('.addPro_wrap').children('.tbody_one').length; if(returnData.result == "success"){
var idx = bodyThis.index(); alert("저장되었습니다.");
fncGoList();
if(len == 1){ }
alert("세부과정은 최소1개가 존재해야합니다."); },
return false; error:function(request , status, error){
}else{ alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
bodyThis.remove(); }
});
for(var i=0;i<len;i++){ }
if(idx>i){ }
tb.eq(i).find('.span_num3').text(i+1);
}else{ function fncGoList(){
tb.eq(i).find('.span_num3').text(i); var listForm = document.listForm ;
} listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
} listForm.submit();
} }
}
function fncPhotoPopup() {
var pop = document.createForm;
function fncAddUser(){ commonPopWindowopenForm("${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoRegPopup.do", "750", "660", "fncPhotoPopup", $('#createForm'));
var obj = $(".memList:first").clone(true); }
obj.children('input').val('')
/* </script>
var len = $(".memList").length;
$.each(obj.find("input"), function(idx, objInput){ </head>
objInput.name = objInput.name.replace(/\[.*\]/,'['+(len+1)+']'); <body>
console.log(objInput.name); <form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
if(objInput.name.indexOf("memGrade") < 0){ </form:form>
objInput.value = '';
} <%-- <form:form id="createForm" name="createForm" commandName="adjustDeptManageVO" method="post"> --%>
});
obj.find("button").attr("id", obj.find("button").attr("id").replace(/[0-9]/gi, len+2)); <form:form commandName="vEPrcsDetailVO" name="createForm" method="post" enctype="multipart/form-data">
obj.find("tr:last > td").text(""); <!-- cont -->
*/ <div class="cont_wrap">
$(".memList:last").after(obj); <div class="box">
}
<!-- cont_tit -->
function fncDelUser(obj){ <div class="cont_tit">
if($(".memList").length <= 1){ <h2>교육과정등록</h2>
alert("담당자은 최소1개가 존재해야합니다."); <ul class="cont_nav">
}else{ <li class="home"><a href="/"><i></i></a></li>
$(obj).closest("td").remove(); <li>
} <p>실무자역량강화(기반강화연수관리)</p>
} </li>
<li><span class="cur_nav">기반강화연수관리</span></li>
function fncSave(){ </ul>
</div>
var data = new FormData(document.getElementById("createForm")); <!-- //cont_tit -->
if(confirm("저장하시겠습니까?")){
var url = "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngRegAjax.do"; <div class="cont">
console.log(data); <!-- list_상세 -->
$.ajax({ <div class="tb_tit01">
type:"POST", <p>교육과정</p>
url: url, </div>
data: data, <div class="tb_type02">
dataType:'json', <table>
async: false, <colgroup>
processData: false, <col style="width: 210px;">
contentType: false, <col style="width: auto;">
cache: false, <col style="width: 210px;">
success:function(returnData){ <col style="width: auto;">
if(returnData.result == "success"){ </colgroup>
alert("저장되었습니다.");
fncGoList(); <tbody>
} <tr>
}, <th scope="row">교육부문</th>
error:function(request , status, error){ <td colspan="3" style="position: relative;">
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); <ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'"
} selectedValue="" defaultValue=''
}); defaultText="선택"
} />
} <!-- <input type="text" name="instrNm"/> -->
<div class="put_photo">
function fncGoList(){ <div class="put_photo_in">
var listForm = document.listForm ; <div class="put_photo">
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>"; <div class="put_photo_in">
listForm.submit(); <div class="put_photo_box">
} <img id="emptyImg" src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value=""/>
function fncPhotoPopup() { </div>
var pop = document.createForm; <div>
commonPopWindowopenForm("${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoRegPopup.do", "750", "660", "fncPhotoPopup", $('#createForm')); <button type="button" class="btn_type01" onclick="fncPhotoPopup(); return false;">사진등록</button>
} </div>
</div>
</script> <!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div>
</head> </div>
<body> </div>
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post"> <%-- <ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="<c:out value='${info.prcsDiv}'/>" defaultValue='10'/> --%>
</form:form> </td>
<form:form id="createForm" name="createForm" commandName="adjustDeptManageVO" method="post"> </tr>
<!-- cont --> <tr>
<div class="cont_wrap"> <th scope="row">과정명</th>
<div class="box"> <td>
<input type="text" name="prcsNm"/>
<!-- cont_tit --> </td>
<div class="cont_tit"> </tr>
<h2>교육과정등록</h2> <tr>
<ul class="cont_nav"> <th scope="row">상세교육과정</th>
<li class="home"><a href="/"><i></i></a></li> <td>
<li> <!-- <textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"></textarea> -->
<p>실무자역량강화(기반강화연수관리)</p> <%--
</li> <form:textarea path="nttCn" class="textarea" cols="500" rows="20" />
<li><span class="cur_nav">기반강화연수관리</span></li> <ckeditor:replace replace="nttCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
</ul> <form:errors path="nttCn" />
</div> --%>
<!-- //cont_tit --> <form:textarea path="prcsCn" class="textarea" cols="500" rows="20" />
<ckeditor:replace replace="prcsCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
<div class="cont"> <form:errors path="prcsCn" />
<!-- list_상세 --> </td>
<div class="tb_tit01"> </tr>
<p>교육과정</p>
</div> <tr>
<div class="tb_type02"> <th scope="row">상태</th>
<table> <td>
<colgroup> <select name="useYn" class="sel_type1">
<col style="width: 210px;"> <option value="Y">사용</option>
<col style="width: auto;"> <option value="N">미사용</option>
<col style="width: 210px;"> </select>
<col style="width: auto;"> </td>
</colgroup> </tr>
</tbody>
<tbody> </table>
<tr> </div>
<th scope="row">교육부문</th> <!-- //list_상세 -->
<td colspan="3" style="position: relative;">
<ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" <!-- btn_wrap -->
selectedValue="" defaultValue='' <div class="btn_wrap btn_layout01">
defaultText="선택" <div class="btn_left">
/> </div>
<!-- <input type="text" name="instrNm"/> --> <div class="btn_center">
<div class="put_photo"> </div>
<div class="put_photo_in"> <div class="btn_right">
<div class="put_photo"> <button type="button" class="btn_type02" onclick="fncSave(); return false;">저장</button>
<div class="put_photo_in"> <button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
<div class="put_photo_box"> </div>
<img id="emptyImg" src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요"> </div>
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value=""/> </div>
</div> </div>
<div> </div>
<button type="button" class="btn_type01" onclick="fncPhotoPopup(); return false;">사진등록</button> </form:form>
</div> <!-- //cont -->
</div> </body>
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> --> </html>
</div>
</div>
</div>
<%-- <ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="<c:out value='${info.prcsDiv}'/>" defaultValue='10'/> --%>
</td>
</tr>
<tr>
<th scope="row">과정명</th>
<td>
<input type="text" name="prcsNm"/>
</td>
</tr>
<tr>
<th scope="row">상세교육과정</th>
<td>
<textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"></textarea>
</td>
</tr>
<tr>
<th scope="row">상태</th>
<td>
<select name="useYn" class="sel_type1">
<option value="Y">사용</option>
<option value="N">미사용</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
<!-- //list_상세 -->
<!-- btn_wrap -->
<div class="btn_wrap btn_layout01">
<div class="btn_left">
</div>
<div class="btn_center">
</div>
<div class="btn_right">
<button type="button" class="btn_type02" onclick="fncSave(); return false;">저장</button>
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
</div>
</div>
</div>
</div>
</div>
</form:form>
<!-- //cont -->
</body>
</html>

View File

@ -242,7 +242,8 @@
<tr> <tr>
<th scope="row">상세교육내용</th> <th scope="row">상세교육내용</th>
<td colspan="3"> <td colspan="3">
<div style="white-space:pre;"><c:out value='${info.prcsCn}'/></div> <c:out value="${fn:replace(info.prcsCn , crlf , '<br/>')}" escapeXml="false" />
<%-- <div style="white-space:pre;"><c:out value='${info.prcsCn}'/></div> --%>
</td> </td>
</tr> </tr>
<tr> <tr>