Merge branch 'hylee' into advc
This commit is contained in:
commit
249ea06ff7
@ -136,6 +136,8 @@ public class VEPrcsDetailVO extends ComDefaultVO implements Serializable {
|
||||
private String cnclAtchFileId;
|
||||
private String cnclCn;
|
||||
|
||||
private String imageAtchFileId;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -656,6 +658,12 @@ public class VEPrcsDetailVO extends ComDefaultVO implements Serializable {
|
||||
public void setCnclCn(String cnclCn) {
|
||||
this.cnclCn = cnclCn;
|
||||
}
|
||||
public String getImageAtchFileId() {
|
||||
return imageAtchFileId;
|
||||
}
|
||||
public void setImageAtchFileId(String imageAtchFileId) {
|
||||
this.imageAtchFileId = imageAtchFileId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -30,5 +30,7 @@ public interface VEPrcsService {
|
||||
void updatePrcsSort(VEPrcsDetailVO paramVO) throws Exception;
|
||||
|
||||
void deleteInstr(VEPrcsDetailVO vEPrcsDetailVO);
|
||||
|
||||
void updateImageAtchFileId(VEPrcsDetailVO vEPrcsDetailVO);
|
||||
|
||||
}
|
||||
|
||||
@ -80,5 +80,9 @@ public class VEPrcsDAO extends EgovAbstractDAO {
|
||||
public void deleteInstr(VEPrcsDetailVO vEPrcsDetailVO) {
|
||||
delete("VEPrcsDAO.deleteInstr", vEPrcsDetailVO);
|
||||
}
|
||||
|
||||
public void updateImageAtchFileId(VEPrcsDetailVO vEPrcsDetailVO) {
|
||||
update("VEPrcsDAO.updateImageAtchFileId", vEPrcsDetailVO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -64,5 +64,10 @@ public class VEPrcsServiceImpl implements VEPrcsService {
|
||||
vEPrcsDAO.deleteInstr(vEPrcsDetailVO);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateImageAtchFileId(VEPrcsDetailVO vEPrcsDetailVO) {
|
||||
vEPrcsDAO.updateImageAtchFileId(vEPrcsDetailVO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,17 +1,21 @@
|
||||
package kcc.ve.oprtn.fndtnEnhanceTrn.prcsInfoMng.web;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
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 org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
|
||||
@ -20,12 +24,14 @@ import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import kcc.com.cmm.LoginVO;
|
||||
import kcc.com.cmm.service.EgovFileMngService;
|
||||
import kcc.com.cmm.service.EgovFileMngUtil;
|
||||
import kcc.com.cmm.service.FileVO;
|
||||
import kcc.com.cmm.util.StringUtil;
|
||||
import kcc.com.utl.user.service.CheckLoginUtil;
|
||||
import kcc.let.uat.uia.service.SsoLoginVO;
|
||||
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
||||
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduAplctService;
|
||||
import kcc.ve.instr.tngrVisitEdu.eduInfo.service.VEEduChasiService;
|
||||
import kcc.ve.instr.tngrVisitEdu.instrInfo.service.VEInstrDetailVO;
|
||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsCmpltDetailService;
|
||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsCntntVO;
|
||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsDetailVO;
|
||||
@ -104,7 +110,14 @@ public class FndthPrcsInfoMngController {
|
||||
|
||||
@Resource(name = "EgovFileMngService")
|
||||
private EgovFileMngService fileService;
|
||||
|
||||
|
||||
//파일 처리 egov
|
||||
@Resource(name="EgovFileMngUtil")
|
||||
private EgovFileMngUtil egovFileMngUtil;
|
||||
|
||||
//파일 처리 egov
|
||||
@Resource(name = "EgovFileMngService")
|
||||
private EgovFileMngService fileMngService;
|
||||
/*
|
||||
|
||||
// 교육신청 서비스단
|
||||
@ -325,6 +338,65 @@ public class FndthPrcsInfoMngController {
|
||||
return "oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy";
|
||||
}
|
||||
|
||||
/**
|
||||
* @methodName : instrAplctPhotoPopup
|
||||
* @author : 이호영
|
||||
* @date : 2023.11.14
|
||||
* @description : 기반강화 과정 수정 - 이미지 등록
|
||||
* @param vEInstrDetailVO
|
||||
* @param model
|
||||
* @param request
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoPopup.do")
|
||||
public String instrAplctPhotoPopup(@ModelAttribute("info") VEPrcsDetailVO vEPrcsDetailVO, ModelMap model, HttpServletRequest request) throws Exception {
|
||||
|
||||
//로그인 처리====================================
|
||||
//로그인 정보 가져오기
|
||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||
//로그인 처리====================================
|
||||
|
||||
if(StringUtils.isNotBlank(vEPrcsDetailVO.getImageAtchFileId())){
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(vEPrcsDetailVO.getImageAtchFileId());
|
||||
List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
model.addAttribute("fileList", fileList);
|
||||
}
|
||||
return "oprtn/fndthEnhanceTrn/popup/fndthEduPhotoPopup";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @methodName : instrAplctPhotoPopup
|
||||
* @author : 이호영
|
||||
* @date : 2023.11.15
|
||||
* @description : 기반강화 과정 등록 - 이미지 등록
|
||||
* @param vEPrcsDetailVO
|
||||
* @param model
|
||||
* @param request
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoRegPopup.do")
|
||||
public String fndthEduPhotoRegPopup(@ModelAttribute("info") VEPrcsDetailVO vEPrcsDetailVO, ModelMap model, HttpServletRequest request) throws Exception {
|
||||
|
||||
//로그인 처리====================================
|
||||
//로그인 정보 가져오기
|
||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||
SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기
|
||||
//로그인 처리====================================
|
||||
|
||||
if(StringUtils.isNotBlank(vEPrcsDetailVO.getImageAtchFileId())){
|
||||
FileVO fileVO = new FileVO();
|
||||
fileVO.setAtchFileId(vEPrcsDetailVO.getImageAtchFileId());
|
||||
List<FileVO> fileList = fileService.selectFileInfs(fileVO);
|
||||
model.addAttribute("fileList", fileList);
|
||||
}
|
||||
return "oprtn/fndthEnhanceTrn/popup/fndthEduPhotoRegPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 기반강화연수과정 화면
|
||||
*/
|
||||
@ -360,28 +432,74 @@ public class FndthPrcsInfoMngController {
|
||||
//세부과정 지우고 다시 생성
|
||||
VEPrcsCntntVO vEPrcsCntntVO = new VEPrcsCntntVO();
|
||||
vEPrcsCntntVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd());
|
||||
// int iv = vEPrcsOnlnCntntService.deleteAll(vEPrcsCntntVO);
|
||||
// String[] s_detailPrcsNm = request.getParameterValues("detailPrcsNm");
|
||||
/*for (int i=0;i<s_detailPrcsNm.length;i++) {
|
||||
String prcsOnlnOrd = prcsOnlnGnrService.getNextStringId(); // 고유ID
|
||||
vEPrcsCntntVO.setPrcsOnlnCntntOrd(prcsOnlnOrd);
|
||||
//vEPrcsCntntVO.setPrcsNm(s_detailPrcsNm[i]);
|
||||
vEPrcsCntntVO.setDetailPrcsNm(s_detailPrcsNm[i]);
|
||||
vEPrcsCntntVO.setChasi(String.valueOf(i+1));
|
||||
vEPrcsCntntVO.setUseYn("Y");
|
||||
vEPrcsCntntVO.setLastUpdusrId(loginVO.getUniqId()); //esntl_id
|
||||
vEPrcsOnlnCntntService.insert(vEPrcsCntntVO);
|
||||
} */
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/fndthEduPhotoPopupAjax.do")
|
||||
public ModelAndView fndthEduPhotoPopupAjax(
|
||||
@ModelAttribute("vEPrcsDetailVO") VEPrcsDetailVO vEPrcsDetailVO
|
||||
, final MultipartHttpServletRequest multiRequest
|
||||
, ModelMap model
|
||||
, HttpServletRequest request
|
||||
) throws Exception {
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
String atchFileId = "";
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
if (!files.isEmpty()) {
|
||||
//XXX_로 첨부파일 네이밍
|
||||
List<FileVO> result = egovFileMngUtil.parseFileInf(files, "fnd_", 0, "", "", "");
|
||||
atchFileId = fileMngService.insertFileInfs(result);
|
||||
}
|
||||
//첨부파일Id(atchFileId)를 해당 VO atchFileId변수에 저장
|
||||
vEPrcsDetailVO.setImageAtchFileId(atchFileId);
|
||||
vEPrcsService.updateImageAtchFileId(vEPrcsDetailVO);
|
||||
modelAndView.addObject("result", "success");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @methodName : fndthEduPhotoPopupAjax
|
||||
* @author : 이호영
|
||||
* @date : 2023.11.15
|
||||
* @description : 기반강화 과정 등록 - 이미지 등록 - ajax
|
||||
* @param vEPrcsDetailVO
|
||||
* @param multiRequest
|
||||
* @param model
|
||||
* @param request
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/fndthEduPhotoPopupRegAjax.do")
|
||||
public ModelAndView fndthEduPhotoPopupRegAjax(
|
||||
@ModelAttribute("vEPrcsDetailVO") VEPrcsDetailVO vEPrcsDetailVO
|
||||
, final MultipartHttpServletRequest multiRequest
|
||||
, ModelMap model
|
||||
, HttpServletRequest request
|
||||
) throws Exception {
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
String atchFileId = "";
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
if (!files.isEmpty()) {
|
||||
//XXX_로 첨부파일 네이밍
|
||||
List<FileVO> result = egovFileMngUtil.parseFileInf(files, "fnd_", 0, "", "", "");
|
||||
atchFileId = fileMngService.insertFileInfs(result);
|
||||
}
|
||||
//첨부파일Id(atchFileId)를 해당 VO atchFileId변수에 저장
|
||||
// vEPrcsService.updateImageAtchFileId(vEPrcsDetailVO);
|
||||
modelAndView.addObject("result", "success");
|
||||
modelAndView.addObject("atchFileId", atchFileId);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -1,259 +1,259 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
<!--
|
||||
수정일 수정자 수정내용
|
||||
=========== ======== =================================================
|
||||
2011.10.06 이기하 보안 취약점 점검사항 반영 $->#변경
|
||||
-->
|
||||
<sqlMap namespace="UnityLink">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="kcc.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="fmsFileVO" type="kcc.com.uss.ion.fms.service.FmsFileVO" />
|
||||
|
||||
|
||||
<!-- 첨부파일 관리::입력 -->
|
||||
<insert id="fmsFileDAO.insertFmsFile">
|
||||
INSERT
|
||||
INTO LETFMSFILE
|
||||
(
|
||||
FMS_ID,
|
||||
FMS_NM,
|
||||
CONTENT,
|
||||
FMS_LINK,
|
||||
FMS_DOWN_LINK,
|
||||
REGDT,
|
||||
MODDT,
|
||||
REGISTER_ID,
|
||||
FMS_IMAGE_FILE,
|
||||
FMS_IMAGE
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#fmsId#,
|
||||
#fmsNm#,
|
||||
#content#,
|
||||
#fmsLink#,
|
||||
#fmsDownLink#,
|
||||
now(),
|
||||
now(),
|
||||
#registerId#,
|
||||
#fmsImageFile#,
|
||||
#fmsImage#
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 첨부파일관리 리스트 -->
|
||||
<select id="fmsFileDAO.selectfmsFileList" parameterClass="fmsFileVO" resultClass="fmsFileVO">
|
||||
/* fmsFileDAO.selectfmsFileList */
|
||||
SELECT FMS_ID AS fmsId,
|
||||
FMS_NM AS fmsNm,
|
||||
CONTENT AS content,
|
||||
FMS_LINK AS fmsLink,
|
||||
FMS_DOWN_LINK AS fmsDownLink,
|
||||
/*
|
||||
DATE_FORMAT(REGDT, '%Y-%m-%d %h:%m:%s') regdt ,
|
||||
DATE_FORMAT(MODDT, '%Y-%m-%d %h:%m:%s') moddt ,
|
||||
*/
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
REGISTER_ID AS registerId,
|
||||
FMS_IMAGE_FILE AS fmsImageFile,
|
||||
FMS_IMAGE AS fmsImage,
|
||||
(
|
||||
SELECT
|
||||
ATCH_FILE_ID
|
||||
FROM
|
||||
LETTNFILEDETAIL
|
||||
WHERE
|
||||
ATCH_FILE_ID = FMS_IMAGE_FILE
|
||||
limit 1
|
||||
) AS atchFileId
|
||||
FROM LETFMSFILE A
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( FMS_NM LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
OR CONTENT LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
)
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="1">
|
||||
AND FMS_NM LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="2">
|
||||
AND CONTENT LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
</isEqual>
|
||||
</isNotEmpty>
|
||||
/*
|
||||
ORDER BY 1=1
|
||||
*/
|
||||
ORDER BY 1
|
||||
<isNotEmpty property="searchSortCnd">
|
||||
,$searchSortCnd$
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchSortOrd">
|
||||
$searchSortOrd$
|
||||
</isNotEmpty>
|
||||
/*
|
||||
LIMIT recordCountPerPage OFFSET firstIndex
|
||||
*/
|
||||
OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY;
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::리스트 count -->
|
||||
<select id="fmsFileDAO.selectfmsFileCount" resultClass="int">
|
||||
/* fmsFileDAO.selectfmsFileCount */
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETFMSFILE
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( FMS_NM LIKE '%'||#searchKeyword#||'%'
|
||||
OR CONTENT LIKE '%'||#searchKeyword#||'%'
|
||||
)
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="1">
|
||||
AND FMS_NM LIKE '%'||#searchKeyword#||'%'
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="2">
|
||||
AND CONTENT LIKE '%'||#searchKeyword#||'%'
|
||||
</isEqual>
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchConditionSite">
|
||||
AND SITE_ID = #searchConditionSite#
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::상세조회 -->
|
||||
<select id="fmsFileDAO.selectfmsFileVO" parameterClass="fmsFileVO" resultClass="fmsFileVO" >
|
||||
/* fmsFileDAO.selectfmsFileVO */
|
||||
SELECT FMS_ID AS fmsId,
|
||||
FMS_NM AS fmsNm,
|
||||
CONTENT AS content,
|
||||
FMS_LINK AS fmsLink,
|
||||
FMS_DOWN_LINK AS fmsDownLink,
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
REGISTER_ID AS registerId,
|
||||
FMS_IMAGE_FILE AS fmsImageFile,
|
||||
FMS_IMAGE AS fmsImage
|
||||
FROM LETFMSFILE
|
||||
WHERE 1=1
|
||||
AND FMS_ID = #fmsId#
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::상세조회(파일위치까지 조회: 파일까지 삭제하기 위해 -->
|
||||
<select id="fmsFileDAO.selectfmsFileDirVO" parameterClass="fmsFileVO" resultClass="fmsFileVO" >
|
||||
/* fmsFileDAO.selectfmsFileDirVO */
|
||||
SELECT A.FMS_ID AS fmsId,
|
||||
A.FMS_NM AS fmsNm,
|
||||
A.CONTENT AS content,
|
||||
A.FMS_LINK AS fmsLink,
|
||||
A.FMS_DOWN_LINK AS fmsDownLink,
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
A.REGISTER_ID AS registerId,
|
||||
A.FMS_IMAGE_FILE AS fmsImageFile,
|
||||
A.FMS_IMAGE AS fmsImage,
|
||||
CONCAT( B.FILE_STRE_COURS, B.STRE_FILE_NM) as whFile
|
||||
FROM LETFMSFILE A INNER JOIN LETTNFILEDETAIL B
|
||||
ON A.FMS_IMAGE_FILE = B.ATCH_FILE_ID
|
||||
AND A.FMS_ID = #fmsId#
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<delete id="fmsFileDAO.deleteFmsFile">
|
||||
<![CDATA[
|
||||
DELETE FROM LETFMSFILE
|
||||
WHERE FMS_ID = #fmsId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
|
||||
<!-- 첨부파일관리 리스트 -->
|
||||
<select id="fmsFileDAO.selectfmsFileVoList" parameterClass="fmsFileVO" resultClass="fmsFileVO">
|
||||
/* fmsFileDAO.selectfmsFileVoList */
|
||||
<![CDATA[
|
||||
SELECT A.FMS_ID AS fmsId,
|
||||
A.FMS_NM AS fmsNm,
|
||||
A.CONTENT AS content,
|
||||
CONCAT(A.FMS_LINK,B.FILE_SN) AS fmsLink,
|
||||
CONCAT(A.FMS_DOWN_LINK,B.FILE_SN) AS fmsDownLink ,
|
||||
TO_CHAR(A.REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(A.MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
A.REGISTER_ID AS registerId,
|
||||
A.FMS_IMAGE_FILE AS fmsImageFile,
|
||||
A.FMS_IMAGE AS fmsImage,
|
||||
CONCAT( B.FILE_STRE_COURS, B.STRE_FILE_NM) as whFile,
|
||||
LOWER(B.FILE_EXTSN) AS fileExtsn,
|
||||
B.ORIGNL_FILE_NM AS orignlFileNm ,
|
||||
B.FILE_SN AS fileSn ,
|
||||
B.FILE_STRE_COURS AS fileStreCours,
|
||||
B.STRE_FILE_NM AS streFileNm,
|
||||
B.FILE_SIZE AS fileSize
|
||||
FROM LETFMSFILE A LEFT JOIN LETTNFILEDETAIL B
|
||||
ON A.FMS_IMAGE_FILE = B.ATCH_FILE_ID
|
||||
WHERE 1=1
|
||||
AND A.FMS_ID = #fmsId#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<update id="fmsFileDAO.updateFmsFile">
|
||||
UPDATE LETFMSFILE
|
||||
SET
|
||||
FMS_NM= #fmsNm#,
|
||||
CONTENT= #content#,
|
||||
MODDT= now(),
|
||||
<isNotEmpty property="fmsLink">
|
||||
FMS_LINK = #fmsLink# ,
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="fmsDownLink">
|
||||
FMS_DOWN_LINK = #fmsDownLink# ,
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="fmsImageFile">
|
||||
FMS_IMAGE_FILE = #fmsImageFile# ,
|
||||
</isNotEmpty>
|
||||
REGISTER_ID= #registerId#
|
||||
WHERE FMS_ID=#fmsId#
|
||||
</update>
|
||||
|
||||
<!-- 첨부파일 임시테이블 ::입력 -->
|
||||
<insert id="fmsFileDAO.insertTempFileTable">
|
||||
INSERT
|
||||
INTO LETTNFILETEMPDETAIL
|
||||
(
|
||||
USER_ID,
|
||||
URL,
|
||||
FILE_SN,
|
||||
FILE_STRE_COURS,
|
||||
STRE_FILE_NM,
|
||||
ORIGNL_FILE_NM,
|
||||
FILE_EXTSN,
|
||||
FILE_SIZE
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#userId#,
|
||||
#url#,
|
||||
#fileSn#,
|
||||
#fileStreCours#,
|
||||
#streFileNm#,
|
||||
#orignlFileNm#,
|
||||
#fileExtsn#,
|
||||
#fileSize#
|
||||
)
|
||||
|
||||
</insert>
|
||||
|
||||
<delete id="fmsFileDAO.deleteTempFileTable">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNFILETEMPDETAIL
|
||||
WHERE USER_ID = #userId#
|
||||
AND URL = #url#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
||||
<!--
|
||||
수정일 수정자 수정내용
|
||||
=========== ======== =================================================
|
||||
2011.10.06 이기하 보안 취약점 점검사항 반영 $->#변경
|
||||
-->
|
||||
<sqlMap namespace="UnityLink">
|
||||
|
||||
<typeAlias alias="egovMap" type="egovframework.rte.psl.dataaccess.util.EgovMap"/>
|
||||
<typeAlias alias="comDefaultVO" type="kcc.com.cmm.ComDefaultVO"/>
|
||||
<typeAlias alias="fmsFileVO" type="kcc.com.uss.ion.fms.service.FmsFileVO" />
|
||||
|
||||
|
||||
<!-- 첨부파일 관리::입력 -->
|
||||
<insert id="fmsFileDAO.insertFmsFile">
|
||||
INSERT
|
||||
INTO LETFMSFILE
|
||||
(
|
||||
FMS_ID,
|
||||
FMS_NM,
|
||||
CONTENT,
|
||||
FMS_LINK,
|
||||
FMS_DOWN_LINK,
|
||||
REGDT,
|
||||
MODDT,
|
||||
REGISTER_ID,
|
||||
FMS_IMAGE_FILE,
|
||||
FMS_IMAGE
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#fmsId#,
|
||||
#fmsNm#,
|
||||
#content#,
|
||||
#fmsLink#,
|
||||
#fmsDownLink#,
|
||||
SYSDATE,
|
||||
SYSDATE,
|
||||
#registerId#,
|
||||
#fmsImageFile#,
|
||||
#fmsImage#
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 첨부파일관리 리스트 -->
|
||||
<select id="fmsFileDAO.selectfmsFileList" parameterClass="fmsFileVO" resultClass="fmsFileVO">
|
||||
/* fmsFileDAO.selectfmsFileList */
|
||||
SELECT FMS_ID AS fmsId,
|
||||
FMS_NM AS fmsNm,
|
||||
CONTENT AS content,
|
||||
FMS_LINK AS fmsLink,
|
||||
FMS_DOWN_LINK AS fmsDownLink,
|
||||
/*
|
||||
DATE_FORMAT(REGDT, '%Y-%m-%d %h:%m:%s') regdt ,
|
||||
DATE_FORMAT(MODDT, '%Y-%m-%d %h:%m:%s') moddt ,
|
||||
*/
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
REGISTER_ID AS registerId,
|
||||
FMS_IMAGE_FILE AS fmsImageFile,
|
||||
FMS_IMAGE AS fmsImage,
|
||||
(
|
||||
SELECT
|
||||
ATCH_FILE_ID
|
||||
FROM
|
||||
LETTNFILEDETAIL
|
||||
WHERE
|
||||
ATCH_FILE_ID = FMS_IMAGE_FILE
|
||||
limit 1
|
||||
) AS atchFileId
|
||||
FROM LETFMSFILE A
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( FMS_NM LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
OR CONTENT LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
)
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="1">
|
||||
AND FMS_NM LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="2">
|
||||
AND CONTENT LIKE CONCAT ('%', #searchKeyword#,'%')
|
||||
</isEqual>
|
||||
</isNotEmpty>
|
||||
/*
|
||||
ORDER BY 1=1
|
||||
*/
|
||||
ORDER BY 1
|
||||
<isNotEmpty property="searchSortCnd">
|
||||
,$searchSortCnd$
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchSortOrd">
|
||||
$searchSortOrd$
|
||||
</isNotEmpty>
|
||||
/*
|
||||
LIMIT recordCountPerPage OFFSET firstIndex
|
||||
*/
|
||||
OFFSET #firstIndex# ROWS FETCH NEXT #recordCountPerPage# ROWS ONLY;
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::리스트 count -->
|
||||
<select id="fmsFileDAO.selectfmsFileCount" resultClass="int">
|
||||
/* fmsFileDAO.selectfmsFileCount */
|
||||
SELECT
|
||||
COUNT(*) totcnt
|
||||
FROM LETFMSFILE
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="searchKeyword">
|
||||
<isEqual property="searchCondition" compareValue="">
|
||||
AND ( FMS_NM LIKE '%'||#searchKeyword#||'%'
|
||||
OR CONTENT LIKE '%'||#searchKeyword#||'%'
|
||||
)
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="1">
|
||||
AND FMS_NM LIKE '%'||#searchKeyword#||'%'
|
||||
</isEqual>
|
||||
<isEqual property="searchCondition" compareValue="2">
|
||||
AND CONTENT LIKE '%'||#searchKeyword#||'%'
|
||||
</isEqual>
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="searchConditionSite">
|
||||
AND SITE_ID = #searchConditionSite#
|
||||
</isNotEmpty>
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::상세조회 -->
|
||||
<select id="fmsFileDAO.selectfmsFileVO" parameterClass="fmsFileVO" resultClass="fmsFileVO" >
|
||||
/* fmsFileDAO.selectfmsFileVO */
|
||||
SELECT FMS_ID AS fmsId,
|
||||
FMS_NM AS fmsNm,
|
||||
CONTENT AS content,
|
||||
FMS_LINK AS fmsLink,
|
||||
FMS_DOWN_LINK AS fmsDownLink,
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
REGISTER_ID AS registerId,
|
||||
FMS_IMAGE_FILE AS fmsImageFile,
|
||||
FMS_IMAGE AS fmsImage
|
||||
FROM LETFMSFILE
|
||||
WHERE 1=1
|
||||
AND FMS_ID = #fmsId#
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 관리::상세조회(파일위치까지 조회: 파일까지 삭제하기 위해 -->
|
||||
<select id="fmsFileDAO.selectfmsFileDirVO" parameterClass="fmsFileVO" resultClass="fmsFileVO" >
|
||||
/* fmsFileDAO.selectfmsFileDirVO */
|
||||
SELECT A.FMS_ID AS fmsId,
|
||||
A.FMS_NM AS fmsNm,
|
||||
A.CONTENT AS content,
|
||||
A.FMS_LINK AS fmsLink,
|
||||
A.FMS_DOWN_LINK AS fmsDownLink,
|
||||
TO_CHAR(REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
A.REGISTER_ID AS registerId,
|
||||
A.FMS_IMAGE_FILE AS fmsImageFile,
|
||||
A.FMS_IMAGE AS fmsImage,
|
||||
CONCAT( B.FILE_STRE_COURS, B.STRE_FILE_NM) as whFile
|
||||
FROM LETFMSFILE A INNER JOIN LETTNFILEDETAIL B
|
||||
ON A.FMS_IMAGE_FILE = B.ATCH_FILE_ID
|
||||
AND A.FMS_ID = #fmsId#
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<delete id="fmsFileDAO.deleteFmsFile">
|
||||
<![CDATA[
|
||||
DELETE FROM LETFMSFILE
|
||||
WHERE FMS_ID = #fmsId#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
|
||||
<!-- 첨부파일관리 리스트 -->
|
||||
<select id="fmsFileDAO.selectfmsFileVoList" parameterClass="fmsFileVO" resultClass="fmsFileVO">
|
||||
/* fmsFileDAO.selectfmsFileVoList */
|
||||
<![CDATA[
|
||||
SELECT A.FMS_ID AS fmsId,
|
||||
A.FMS_NM AS fmsNm,
|
||||
A.CONTENT AS content,
|
||||
CONCAT(A.FMS_LINK,B.FILE_SN) AS fmsLink,
|
||||
CONCAT(A.FMS_DOWN_LINK,B.FILE_SN) AS fmsDownLink ,
|
||||
TO_CHAR(A.REGDT, 'YYYY-MM-DD HH24:MI:SS') regdt ,
|
||||
TO_CHAR(A.MODDT, 'YYYY-MM-DD HH24:MI:SS') moddt ,
|
||||
A.REGISTER_ID AS registerId,
|
||||
A.FMS_IMAGE_FILE AS fmsImageFile,
|
||||
A.FMS_IMAGE AS fmsImage,
|
||||
CONCAT( B.FILE_STRE_COURS, B.STRE_FILE_NM) as whFile,
|
||||
LOWER(B.FILE_EXTSN) AS fileExtsn,
|
||||
B.ORIGNL_FILE_NM AS orignlFileNm ,
|
||||
B.FILE_SN AS fileSn ,
|
||||
B.FILE_STRE_COURS AS fileStreCours,
|
||||
B.STRE_FILE_NM AS streFileNm,
|
||||
B.FILE_SIZE AS fileSize
|
||||
FROM LETFMSFILE A LEFT JOIN LETTNFILEDETAIL B
|
||||
ON A.FMS_IMAGE_FILE = B.ATCH_FILE_ID
|
||||
WHERE 1=1
|
||||
AND A.FMS_ID = #fmsId#
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<update id="fmsFileDAO.updateFmsFile">
|
||||
UPDATE LETFMSFILE
|
||||
SET
|
||||
FMS_NM= #fmsNm#,
|
||||
CONTENT= #content#,
|
||||
MODDT= SYSDATE,
|
||||
<isNotEmpty property="fmsLink">
|
||||
FMS_LINK = #fmsLink# ,
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="fmsDownLink">
|
||||
FMS_DOWN_LINK = #fmsDownLink# ,
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="fmsImageFile">
|
||||
FMS_IMAGE_FILE = #fmsImageFile# ,
|
||||
</isNotEmpty>
|
||||
REGISTER_ID= #registerId#
|
||||
WHERE FMS_ID=#fmsId#
|
||||
</update>
|
||||
|
||||
<!-- 첨부파일 임시테이블 ::입력 -->
|
||||
<insert id="fmsFileDAO.insertTempFileTable">
|
||||
INSERT
|
||||
INTO LETTNFILETEMPDETAIL
|
||||
(
|
||||
USER_ID,
|
||||
URL,
|
||||
FILE_SN,
|
||||
FILE_STRE_COURS,
|
||||
STRE_FILE_NM,
|
||||
ORIGNL_FILE_NM,
|
||||
FILE_EXTSN,
|
||||
FILE_SIZE
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#userId#,
|
||||
#url#,
|
||||
#fileSn#,
|
||||
#fileStreCours#,
|
||||
#streFileNm#,
|
||||
#orignlFileNm#,
|
||||
#fileExtsn#,
|
||||
#fileSize#
|
||||
)
|
||||
|
||||
</insert>
|
||||
|
||||
<delete id="fmsFileDAO.deleteTempFileTable">
|
||||
<![CDATA[
|
||||
DELETE FROM LETTNFILETEMPDETAIL
|
||||
WHERE USER_ID = #userId#
|
||||
AND URL = #url#
|
||||
]]>
|
||||
</delete>
|
||||
|
||||
</sqlMap>
|
||||
@ -54,9 +54,9 @@
|
||||
, SYSDATE
|
||||
, #aplctAtchFileId#
|
||||
, #cmpnnCn#
|
||||
, ''
|
||||
, #frstRegisterId#
|
||||
, SYSDATE
|
||||
, #frstRegisterId#
|
||||
, ''
|
||||
, #lastUpdusrId#
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -24,24 +24,26 @@
|
||||
last_updt_pnttm,
|
||||
last_updusr_id,
|
||||
lctr_div_cd,
|
||||
use_yn
|
||||
use_yn,
|
||||
image_atch_file_id
|
||||
|
||||
</sql>
|
||||
|
||||
<!-- 조회용 공통 컬럼 명 -->
|
||||
<sql id="VEPrcsDAO.select_column_name">
|
||||
A.PRCS_ORD AS prcsOrd,
|
||||
A.PRCS_DIV AS prcsDiv,
|
||||
A.PRCS_KIND AS prcsKind,
|
||||
A.PRCS_NM AS prcsNm,
|
||||
A.PRCS_CN AS prcsCn,
|
||||
A.PRCS_SORT_NO AS prcsSortNo,
|
||||
A.PRCS_ORD AS prcsOrd,
|
||||
A.PRCS_DIV AS prcsDiv,
|
||||
A.PRCS_KIND AS prcsKind,
|
||||
A.PRCS_NM AS prcsNm,
|
||||
A.PRCS_CN AS prcsCn,
|
||||
A.PRCS_SORT_NO AS prcsSortNo,
|
||||
TO_CHAR(A.FRST_REGIST_PNTTM,'YYYY-MM-DD') AS frstRegistPnttm,
|
||||
A.FRST_REGISTER_ID AS frstRegisterId,
|
||||
A.FRST_REGISTER_ID AS frstRegisterId,
|
||||
TO_CHAR(A.LAST_UPDT_PNTTM,'YYYY-MM-DD') AS lastUpdtPnttm,
|
||||
A.LAST_UPDUSR_ID AS lastUpdusrId,
|
||||
A.LCTR_DIV_CD AS lctrDivCd,
|
||||
A.USE_YN AS useYn
|
||||
A.LAST_UPDUSR_ID AS lastUpdusrId,
|
||||
A.LCTR_DIV_CD AS lctrDivCd,
|
||||
A.USE_YN AS useYn,
|
||||
A.IMAGE_ATCH_FILE_ID AS imageAtchFileId
|
||||
</sql>
|
||||
|
||||
<!-- 강사 등록 C -->
|
||||
@ -62,7 +64,8 @@
|
||||
SYSDATE,
|
||||
#lastUpdusrId#,
|
||||
#lctrDivCd#,
|
||||
#useYn#
|
||||
#useYn#,
|
||||
#imageAtchFileId#
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -341,6 +344,16 @@
|
||||
|
||||
</update>
|
||||
|
||||
<update id="VEPrcsDAO.updateImageAtchFileId" parameterClass="VEPrcsDetailVO">
|
||||
|
||||
UPDATE VE_PRCS SET
|
||||
IMAGE_ATCH_FILE_ID = #imageAtchFileId#
|
||||
, LAST_UPDUSR_ID = #lastUpdusrId#
|
||||
, LAST_UPDT_PNTTM = SYSDATE
|
||||
WHERE PRCS_ORD = #prcsOrd#
|
||||
|
||||
</update>
|
||||
|
||||
<delete id="VEPrcsDAO.deleteInstr" parameterClass="VEPrcsDetailVO">
|
||||
DELETE FROM VEA_PRCS_APLCT_PRD_INSTR_ASGNM
|
||||
WHERE prcs_aplct_prd_ord = #prcsAplctPrdOrd#
|
||||
|
||||
@ -421,7 +421,7 @@
|
||||
<!-- <input type="text" id="fileNm" size="30" class="file_input" readonly> --><!-- <button type="button" class="btnType01 btn_add_file">파일 첨부하기</button> -->
|
||||
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none"/>
|
||||
<button type="button" id="filebutton" class="btn_type01">파일 첨부하기</button>
|
||||
<p style="padding-left:30px;">첨부파일 가능 용량은 20MB입니다. </p><p style="color:red;font-weight:500">업로드 순서는 1.신청서 2.안내문 입니다.</p>
|
||||
<p style="padding-left:30px;">첨부파일 가능 용량은 20MB입니다. </p>
|
||||
<div class="file_wrap file_upload_box no_img_box">
|
||||
<table class="tbType02">
|
||||
<caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption>
|
||||
|
||||
@ -1,150 +1,155 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngDetail.jsp
|
||||
* @Description : 기반강화연수 상세화면
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
function fncMdfy(){
|
||||
var detailForm = document.detailForm ;
|
||||
detailForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy.do'/>";
|
||||
detailForm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
</form:form>
|
||||
<form:form id="detailForm" name="detailForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="prcsOrd" value="<c:out value='${vEPrcsDetailVO.prcsOrd}' default='1' />"/>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>교육 과정 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>교육콘텐츠</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">교육 과정 관리</span></li>
|
||||
<li><span class="cur_nav">교육 과정 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>교육과정관리</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">교육부문</th>
|
||||
<td colspan="3" style="position: relative;">
|
||||
<ve:code codeId="VEA001" code="${info.prcsDiv}"/>
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
</div>
|
||||
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">과정명</th>
|
||||
<td>
|
||||
<c:out value='${info.prcsNm}' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">과정설명</th>
|
||||
<td>
|
||||
<c:out value='${info.prcsCn}' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">사용여부</th>
|
||||
<td>
|
||||
<c:if test="${info.useYn eq 'Y'}">
|
||||
사용
|
||||
</c:if>
|
||||
<c:if test="${info.useYn ne 'Y'}">
|
||||
미사용
|
||||
</c:if>
|
||||
</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="fncMdfy(); return false;">수정</button>
|
||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form:form>
|
||||
<!-- //cont -->
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngDetail.jsp
|
||||
* @Description : 기반강화연수 상세화면
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
function fncMdfy(){
|
||||
var detailForm = document.detailForm ;
|
||||
detailForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy.do'/>";
|
||||
detailForm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
</form:form>
|
||||
<form:form id="detailForm" name="detailForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="prcsOrd" value="<c:out value='${vEPrcsDetailVO.prcsOrd}' default='1' />"/>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>교육과정상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>실무자역량강화(기반강화연수관리)</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">기반강화연수관리</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>교육과정관리</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">교육부문</th>
|
||||
<td colspan="3" style="position: relative;">
|
||||
<ve:code codeId="VEA001" code="${info.prcsDiv}"/>
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<c:if test="${empty info.imageAtchFileId}">
|
||||
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
</c:if>
|
||||
<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}"/>' />
|
||||
</c:if>
|
||||
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value="<c:out value='${info.imageAtchFileId}'/>"/>
|
||||
</div>
|
||||
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">과정명</th>
|
||||
<td>
|
||||
<c:out value='${info.prcsNm}' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">과정설명</th>
|
||||
<td>
|
||||
<c:out value='${info.prcsCn}' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">사용여부</th>
|
||||
<td>
|
||||
<c:if test="${info.useYn eq 'Y'}">
|
||||
사용
|
||||
</c:if>
|
||||
<c:if test="${info.useYn ne 'Y'}">
|
||||
미사용
|
||||
</c:if>
|
||||
</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="fncMdfy(); return false;">수정</button>
|
||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form:form>
|
||||
<!-- //cont -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,287 +1,287 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ 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="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" />
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngList.jsp
|
||||
* @Description : 기반강화연수 과정관리 목록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.14 조용준 최초 생성
|
||||
* @author 조용준
|
||||
* @since 2021.12.14
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<style>
|
||||
input:read-only{
|
||||
background-color: #ededed;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
function fncGoList(){
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.searchKeyword.value = $('#searchKeyword').val();
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
|
||||
function fncGoDetail(prcsOrd){
|
||||
var listForm = document.listForm ;
|
||||
listForm.prcsOrd.value = prcsOrd ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngDetail.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
|
||||
function fncCreate() {
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngReg.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fncDelete(prcsOrd){
|
||||
document.listForm.prcsOrd.value = prcsOrd ;
|
||||
|
||||
var pageIndex = document.listForm.pageIndex.value;
|
||||
if($(".listCount").length == '1'){
|
||||
pageIndex = pageIndex -1;
|
||||
}
|
||||
var data = new FormData(document.getElementById("listForm"));
|
||||
if(confirm("삭제하시겠습니까?")){
|
||||
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDeleteAjax.do'/>";
|
||||
console.log(data);
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("삭제되었습니다.");
|
||||
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
|
||||
linkPage(pageIndex);
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
}
|
||||
|
||||
function fncSaveSort(prcsOrd, count){
|
||||
|
||||
var sortNo = $('#prcsSortNo'+count).val();
|
||||
|
||||
if(sortNo == ''){
|
||||
|
||||
alert("표시순서를 입력해 주세요.");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
$('#prcsOrd').val(prcsOrd);
|
||||
$('#prcsSortNo').val(sortNo);
|
||||
var data = new FormData(document.getElementById("listForm"));
|
||||
var url = "<c:url value='/kccadr/oprtn/otsdCprtnPrcs/eduPrcsSortUpdateAjax.do'/>";
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("저장되었습니다.");
|
||||
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>교육과정관리</title>
|
||||
</head>
|
||||
<body>
|
||||
<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="searchSortCnd" value="<c:out value="${vEPrcsDetailVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${vEPrcsDetailVO.searchSortOrd}" />" />
|
||||
<input type="hidden" id="prcsOrd" name="prcsOrd" value="" />
|
||||
<input type="hidden" id="prcsSortNo" name="prcsSortNo" value="" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>과정관리목록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>기반강화연수관리</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">과정관리목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<div class="tb_tit01">
|
||||
<p>교육 과정 관리</p>
|
||||
</div>
|
||||
<!-- list_top -->
|
||||
<div class="list_top search-only">
|
||||
<div class="list_top_1">
|
||||
<div class="util_right">
|
||||
|
||||
<ve:select codeId="VEA001" name="searchStatus" id="searchStatus" css="class='sel_type1'"
|
||||
selectedValue="${vEPrcsDetailVO.searchStatus }" defaultValue=""
|
||||
defaultText="전체"
|
||||
/>
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="calendar" title="시작일 선택" id="searchSmbtStartDt" name="searchSmbtStartDt" value="${vEPrcsDetailVO.searchSmbtStartDt}">
|
||||
</div>
|
||||
~
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="calendar" title="종료일 선택" id="searchSmbtEndDt" name="searchSmbtEndDt" value="${vEPrcsDetailVO.searchSmbtEndDt}">
|
||||
</div>
|
||||
<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 class="btn_type03" onclick="fncReset(this); return false;">초기화</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list_util">
|
||||
<p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p>
|
||||
<div>
|
||||
<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='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='100' <c:if test="${vEPrcsDetailVO.pageUnit == '100'}">selected</c:if>>100줄</option>
|
||||
</select>
|
||||
<%--<button type="button" class="btn_down_excel">엑셀 다운로드</button>--%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- //list_top -->
|
||||
|
||||
|
||||
<!-- list -->
|
||||
<div class="tb_type01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 10%">
|
||||
<col style="width: 20%">
|
||||
<col style="width: auto">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>교육부문</th>
|
||||
<th>과정명</th>
|
||||
<th>설명</th>
|
||||
<th>등록일시</th>
|
||||
<th>사용여부 </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr class="listCount">
|
||||
<td>
|
||||
<kc:code codeId="VEA001" code="${list.prcsDiv}"/>
|
||||
</td>
|
||||
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
|
||||
<c:out value='${list.prcsNm}'/>
|
||||
</td>
|
||||
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
|
||||
<c:out value='${list.prcsCn}'/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value='${list.frstRegistPnttm}'/>
|
||||
</td>
|
||||
<td>
|
||||
<c:if test="${list.useYn eq 'Y'}">
|
||||
사용
|
||||
</c:if>
|
||||
<c:if test="${list.useYn ne 'Y'}">
|
||||
미사용
|
||||
</c:if>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list -->
|
||||
|
||||
<!-- page -->
|
||||
<div class="page">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</div>
|
||||
<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_type01" onclick="fncCreate(); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //page -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
<!-- //cont -->
|
||||
|
||||
</form:form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ 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="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" />
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngList.jsp
|
||||
* @Description : 기반강화연수 과정관리 목록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.14 조용준 최초 생성
|
||||
* @author 조용준
|
||||
* @since 2021.12.14
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<style>
|
||||
input:read-only{
|
||||
background-color: #ededed;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
function fncGoList(){
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.searchKeyword.value = $('#searchKeyword').val();
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
|
||||
function fncGoDetail(prcsOrd){
|
||||
var listForm = document.listForm ;
|
||||
listForm.prcsOrd.value = prcsOrd ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngDetail.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
|
||||
function fncCreate() {
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngReg.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fncDelete(prcsOrd){
|
||||
document.listForm.prcsOrd.value = prcsOrd ;
|
||||
|
||||
var pageIndex = document.listForm.pageIndex.value;
|
||||
if($(".listCount").length == '1'){
|
||||
pageIndex = pageIndex -1;
|
||||
}
|
||||
var data = new FormData(document.getElementById("listForm"));
|
||||
if(confirm("삭제하시겠습니까?")){
|
||||
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDeleteAjax.do'/>";
|
||||
console.log(data);
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("삭제되었습니다.");
|
||||
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
|
||||
linkPage(pageIndex);
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
}
|
||||
|
||||
function fncSaveSort(prcsOrd, count){
|
||||
|
||||
var sortNo = $('#prcsSortNo'+count).val();
|
||||
|
||||
if(sortNo == ''){
|
||||
|
||||
alert("표시순서를 입력해 주세요.");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
$('#prcsOrd').val(prcsOrd);
|
||||
$('#prcsSortNo').val(sortNo);
|
||||
var data = new FormData(document.getElementById("listForm"));
|
||||
var url = "<c:url value='/kccadr/oprtn/otsdCprtnPrcs/eduPrcsSortUpdateAjax.do'/>";
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("저장되었습니다.");
|
||||
document.listForm.prcsOrd.value = ""; //리스트 이동시 prcsOrd 초기화
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>교육과정관리</title>
|
||||
</head>
|
||||
<body>
|
||||
<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="searchSortCnd" value="<c:out value="${vEPrcsDetailVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${vEPrcsDetailVO.searchSortOrd}" />" />
|
||||
<input type="hidden" id="prcsOrd" name="prcsOrd" value="" />
|
||||
<input type="hidden" id="prcsSortNo" name="prcsSortNo" value="" />
|
||||
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>과정관리목록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>실무자역량강화(기반강화연수관리)</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">과정관리목록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<div class="tb_tit01">
|
||||
<p>교육 과정 관리</p>
|
||||
</div>
|
||||
<!-- list_top -->
|
||||
<div class="list_top search-only">
|
||||
<div class="list_top_1">
|
||||
<div class="util_right">
|
||||
|
||||
<ve:select codeId="VEA001" name="searchStatus" id="searchStatus" css="class='sel_type1'"
|
||||
selectedValue="${vEPrcsDetailVO.searchStatus }" defaultValue=""
|
||||
defaultText="전체"
|
||||
/>
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="calendar" title="시작일 선택" id="searchSmbtStartDt" name="searchSmbtStartDt" value="${vEPrcsDetailVO.searchSmbtStartDt}">
|
||||
</div>
|
||||
~
|
||||
<div class="calendar_wrap">
|
||||
<input type="text" class="calendar" title="종료일 선택" id="searchSmbtEndDt" name="searchSmbtEndDt" value="${vEPrcsDetailVO.searchSmbtEndDt}">
|
||||
</div>
|
||||
<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 class="btn_type03" onclick="fncReset(this); return false;">초기화</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list_util">
|
||||
<p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p>
|
||||
<div>
|
||||
<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='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='100' <c:if test="${vEPrcsDetailVO.pageUnit == '100'}">selected</c:if>>100줄</option>
|
||||
</select>
|
||||
<%--<button type="button" class="btn_down_excel">엑셀 다운로드</button>--%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- //list_top -->
|
||||
|
||||
|
||||
<!-- list -->
|
||||
<div class="tb_type01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 10%">
|
||||
<col style="width: 20%">
|
||||
<col style="width: auto">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>교육부문</th>
|
||||
<th>과정명</th>
|
||||
<th>설명</th>
|
||||
<th>등록일시</th>
|
||||
<th>사용여부 </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr class="listCount">
|
||||
<td>
|
||||
<kc:code codeId="VEA001" code="${list.prcsDiv}"/>
|
||||
</td>
|
||||
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
|
||||
<c:out value='${list.prcsNm}'/>
|
||||
</td>
|
||||
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
|
||||
<c:out value='${list.prcsCn}'/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value='${list.frstRegistPnttm}'/>
|
||||
</td>
|
||||
<td>
|
||||
<c:if test="${list.useYn eq 'Y'}">
|
||||
사용
|
||||
</c:if>
|
||||
<c:if test="${list.useYn ne 'Y'}">
|
||||
미사용
|
||||
</c:if>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list -->
|
||||
|
||||
<!-- page -->
|
||||
<div class="page">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</div>
|
||||
<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_type01" onclick="fncCreate(); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //page -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
<!-- //cont -->
|
||||
|
||||
</form:form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<title>기반강화연수관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
//세부과정 추가 버튼 클릭 시 세부과정 추가
|
||||
@ -130,6 +130,10 @@
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
function fncPhotoPopup() {
|
||||
var pop = document.createForm;
|
||||
commonPopWindowopenForm("${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoPopup.do", "750", "660", "fncPhotoPopup", $('#createForm'));
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@ -145,14 +149,13 @@
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>교육 과정 등록</h2>
|
||||
<h2>교육과정수정</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>교육콘텐츠</p>
|
||||
<p>실무자역량강화(기반강화연수관리)</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">교육 과정 관리</span></li>
|
||||
<li><span class="cur_nav">교육 과정 등록</span></li>
|
||||
<li><span class="cur_nav">기반강화연수관리</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
@ -185,9 +188,17 @@
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
<c:if test="${empty info.imageAtchFileId}">
|
||||
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
</c:if>
|
||||
<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}"/>' />
|
||||
</c:if>
|
||||
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value="<c:out value='${info.imageAtchFileId}'/>"/>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" class="btn_type01" onclick="fncPhotoPopup(); return false;">사진등록</button>
|
||||
</div>
|
||||
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,242 +1,256 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" 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" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngReg.jsp
|
||||
* @Description : 기반강화연수 과정 등록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<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="";
|
||||
|
||||
trHtml += '<div class="tbody_one">';
|
||||
trHtml += '<span><span class="span_num3">'+ questLen +'</span>.</span>';
|
||||
trHtml += '<div>';
|
||||
trHtml += '<input type="text" name="detailPrcsNm" id="detailPrcsNm"> ';
|
||||
trHtml += '<button type="button" class="table_del3" onclick="delPro(this)"><img src="${pageContext.request.contextPath}/visitEdu/adm/publish/image/content/btn_del.png"></button>';
|
||||
trHtml += '</div>';
|
||||
trHtml += '</div>';
|
||||
|
||||
addQuest.append(trHtml);
|
||||
}
|
||||
|
||||
//삭제 버튼 클릭 시 현재 div 삭제 후 지문 숫자 재선언
|
||||
function delPro(item) {
|
||||
var bodyThis = $(item).closest('.tbody_one');
|
||||
var tb = $(item).closest('.addPro_wrap').find('.tbody_one');
|
||||
var len = $(item).closest('.addPro_wrap').children('.tbody_one').length;
|
||||
var idx = bodyThis.index();
|
||||
|
||||
if(len == 1){
|
||||
alert("세부과정은 최소1개가 존재해야합니다.");
|
||||
return false;
|
||||
}else{
|
||||
bodyThis.remove();
|
||||
|
||||
for(var i=0;i<len;i++){
|
||||
if(idx>i){
|
||||
tb.eq(i).find('.span_num3').text(i+1);
|
||||
}else{
|
||||
tb.eq(i).find('.span_num3').text(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function fncAddUser(){
|
||||
var obj = $(".memList:first").clone(true);
|
||||
obj.children('input').val('')
|
||||
/*
|
||||
var len = $(".memList").length;
|
||||
$.each(obj.find("input"), function(idx, objInput){
|
||||
objInput.name = objInput.name.replace(/\[.*\]/,'['+(len+1)+']');
|
||||
console.log(objInput.name);
|
||||
if(objInput.name.indexOf("memGrade") < 0){
|
||||
objInput.value = '';
|
||||
}
|
||||
});
|
||||
obj.find("button").attr("id", obj.find("button").attr("id").replace(/[0-9]/gi, len+2));
|
||||
obj.find("tr:last > td").text("");
|
||||
*/
|
||||
$(".memList:last").after(obj);
|
||||
}
|
||||
|
||||
function fncDelUser(obj){
|
||||
if($(".memList").length <= 1){
|
||||
alert("담당자은 최소1개가 존재해야합니다.");
|
||||
}else{
|
||||
$(obj).closest("td").remove();
|
||||
}
|
||||
}
|
||||
|
||||
function fncSave(){
|
||||
|
||||
var data = new FormData(document.getElementById("createForm"));
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
var url = "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngRegAjax.do";
|
||||
console.log(data);
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("저장되었습니다.");
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
</form:form>
|
||||
<form:form id="createForm" name="createForm" commandName="adjustDeptManageVO" method="post">
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>교육 과정 등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>교육콘텐츠</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">교육 과정 관리</span></li>
|
||||
<li><span class="cur_nav">교육 과정 등록</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>교육과정</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">교육부문</th>
|
||||
<td colspan="3" style="position: relative;">
|
||||
<ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'"
|
||||
selectedValue="" defaultValue=''
|
||||
defaultText="선택"
|
||||
/>
|
||||
<!-- <input type="text" name="instrNm"/> -->
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
</div>
|
||||
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
|
||||
</div>
|
||||
</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>
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" 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" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : fndthEduPrcsMngReg.jsp
|
||||
* @Description : 기반강화연수 과정 등록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<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="";
|
||||
|
||||
trHtml += '<div class="tbody_one">';
|
||||
trHtml += '<span><span class="span_num3">'+ questLen +'</span>.</span>';
|
||||
trHtml += '<div>';
|
||||
trHtml += '<input type="text" name="detailPrcsNm" id="detailPrcsNm"> ';
|
||||
trHtml += '<button type="button" class="table_del3" onclick="delPro(this)"><img src="${pageContext.request.contextPath}/visitEdu/adm/publish/image/content/btn_del.png"></button>';
|
||||
trHtml += '</div>';
|
||||
trHtml += '</div>';
|
||||
|
||||
addQuest.append(trHtml);
|
||||
}
|
||||
|
||||
//삭제 버튼 클릭 시 현재 div 삭제 후 지문 숫자 재선언
|
||||
function delPro(item) {
|
||||
var bodyThis = $(item).closest('.tbody_one');
|
||||
var tb = $(item).closest('.addPro_wrap').find('.tbody_one');
|
||||
var len = $(item).closest('.addPro_wrap').children('.tbody_one').length;
|
||||
var idx = bodyThis.index();
|
||||
|
||||
if(len == 1){
|
||||
alert("세부과정은 최소1개가 존재해야합니다.");
|
||||
return false;
|
||||
}else{
|
||||
bodyThis.remove();
|
||||
|
||||
for(var i=0;i<len;i++){
|
||||
if(idx>i){
|
||||
tb.eq(i).find('.span_num3').text(i+1);
|
||||
}else{
|
||||
tb.eq(i).find('.span_num3').text(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function fncAddUser(){
|
||||
var obj = $(".memList:first").clone(true);
|
||||
obj.children('input').val('')
|
||||
/*
|
||||
var len = $(".memList").length;
|
||||
$.each(obj.find("input"), function(idx, objInput){
|
||||
objInput.name = objInput.name.replace(/\[.*\]/,'['+(len+1)+']');
|
||||
console.log(objInput.name);
|
||||
if(objInput.name.indexOf("memGrade") < 0){
|
||||
objInput.value = '';
|
||||
}
|
||||
});
|
||||
obj.find("button").attr("id", obj.find("button").attr("id").replace(/[0-9]/gi, len+2));
|
||||
obj.find("tr:last > td").text("");
|
||||
*/
|
||||
$(".memList:last").after(obj);
|
||||
}
|
||||
|
||||
function fncDelUser(obj){
|
||||
if($(".memList").length <= 1){
|
||||
alert("담당자은 최소1개가 존재해야합니다.");
|
||||
}else{
|
||||
$(obj).closest("td").remove();
|
||||
}
|
||||
}
|
||||
|
||||
function fncSave(){
|
||||
|
||||
var data = new FormData(document.getElementById("createForm"));
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
var url = "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngRegAjax.do";
|
||||
console.log(data);
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("저장되었습니다.");
|
||||
fncGoList();
|
||||
}
|
||||
},
|
||||
error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fncPhotoPopup() {
|
||||
var pop = document.createForm;
|
||||
commonPopWindowopenForm("${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/popup/fndthEduPhotoRegPopup.do", "750", "660", "fncPhotoPopup", $('#createForm'));
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
</form:form>
|
||||
<form:form id="createForm" name="createForm" commandName="adjustDeptManageVO" method="post">
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>교육과정등록</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>실무자역량강화(기반강화연수관리)</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">기반강화연수관리</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>교육과정</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">교육부문</th>
|
||||
<td colspan="3" style="position: relative;">
|
||||
<ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'"
|
||||
selectedValue="" defaultValue=''
|
||||
defaultText="선택"
|
||||
/>
|
||||
<!-- <input type="text" name="instrNm"/> -->
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<%-- <c:if test="${empty info.imageAtchFileId}"> --%>
|
||||
<img id="emptyImg" src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
|
||||
<%-- </c:if> --%>
|
||||
<%-- <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}"/>' /> --%>
|
||||
<%-- </c:if> --%>
|
||||
<input type="hidden" name="imageAtchFileId" id="imageAtchFileId" value=""/>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" class="btn_type01" onclick="fncPhotoPopup(); return false;">사진등록</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
|
||||
</div>
|
||||
</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>
|
||||
|
||||
@ -0,0 +1,186 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||
<%
|
||||
|
||||
/**
|
||||
* @Class Name : instrAsgnmPopup.jsp
|
||||
* @Description : 기반강화 교육과정등록 > 이미지 등록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2023.11.14 이호영 최초 생성
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>강사정보 수정 요청</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="<c:url value='/js/EgovMultiFileItn.js'/>"></script> <!-- 파일첨부, 썸네일이미지 있으면 미리보기 -->
|
||||
<!-- <script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script> -->
|
||||
<script src="${pageContext.request.contextPath}/kccadrPb/adm/script/postcode.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/jquery-3.5.0.js"></script>
|
||||
<script src="<c:url value='/js/kccadr/kccadrCom.js' />"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$(".btn_add_file").on('click', function(){
|
||||
$("#file_temp").click();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function fncPopClose(){
|
||||
self.close();
|
||||
}
|
||||
|
||||
function fncSave() {
|
||||
if(confirm("사진을 변경하시겠습니까?")){
|
||||
var data = new FormData(document.getElementById("createForm"));
|
||||
_fileForm2.forEach(function(obj, idx) {
|
||||
if (obj) data.append("file"+idx, obj.fileObj);
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
enctype: 'multipart/form-data',
|
||||
url: "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPhotoPopupAjax.do",
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success: function (returnData, status) {
|
||||
if(status == 'success'){
|
||||
/* 부모창 상세 페이지 이동 */
|
||||
/* window.opener.name = "parentPage";
|
||||
document.mdfyRqstPopup.target = "parentPage";
|
||||
document.mdfyRqstPopup.action = "${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/instrInfo/instrMngDetail.do";
|
||||
document.mdfyRqstPopup.submit();
|
||||
window.close(); */
|
||||
opener.parent.location.reload();
|
||||
window.close();
|
||||
|
||||
} else if(status== 'fail'){
|
||||
alert("사진변경 처리에 실패하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("사진변경 처리에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fncCmpnnPopup(rpplTy, rqstType) {
|
||||
$("#aprvlCd").val(rpplTy);
|
||||
$("#rqstType").val(rqstType);
|
||||
var pop = document.mdfyRqstPopup;
|
||||
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/instrInfo/instrAplctCmpnnPopup.do", "750", "300", "instrAplctCmpnnPop", $('#mdfyRqstPopup'));
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="area_popup supm_popup">
|
||||
<div class="cont_popup">
|
||||
|
||||
<form:form id="createForm" name="createForm" method="post" commandName="vELctrDetailVO" onsubmit="return false;">
|
||||
|
||||
<input type="hidden" name="prcsOrd" value="<c:out value="${info.prcsOrd}" />" />
|
||||
|
||||
|
||||
<div class="area_popup">
|
||||
<div class="cont_popup upload_area">
|
||||
|
||||
<div class="pop_tb_tit01">
|
||||
<p></p>
|
||||
<div class="btn_wrap_pop">
|
||||
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none"/>
|
||||
<button type="button" id="filebutton" class="btn_type01 btn_add_file">파일 찾기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="file_wrap file_upload_box no_img_box">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 10%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th>파일 명</th>
|
||||
<th>종류</th>
|
||||
<th>크기</th>
|
||||
<th>삭제</th>
|
||||
</thead>
|
||||
<tbody class="tb_file_before">
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<p>첨부하실 파일을 <span>마우스끌어서</span> 넣어주세요.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="file_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 100px;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th>파일 명</th>
|
||||
<th>종류</th>
|
||||
<th>크기</th>
|
||||
<th>삭제</th>
|
||||
</thead>
|
||||
<tbody id="tbody_fiielist" class="tb_file_after">
|
||||
<c:forEach var="fileList" items="${fileList}" varStatus="status">
|
||||
<tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj">
|
||||
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileSize}">
|
||||
<td class="td_filename">
|
||||
<p>${fileList.orignlFileNm}</p>
|
||||
</td>
|
||||
<td class="td_filesort">
|
||||
<p><c:out value="${fileList.fileExtsn}"/></p>
|
||||
</td>
|
||||
<td class="td_filesize">
|
||||
<p><c:out value="${fileList.fileMg}"/></p>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn_del" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;"><i></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btn_wrap_pop btn_layout01">
|
||||
<div class="btn_left">
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
<button type="button" onclick="fncSave(); return false;" class="btn_type04">확인</button>
|
||||
</div>
|
||||
<div class="btn_right">
|
||||
<button type="button" onclick="fncPopClose(); return false;" class="btn_type02">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form:form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,187 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ 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="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
||||
<%
|
||||
|
||||
/**
|
||||
* @Class Name : instrAsgnmPopup.jsp
|
||||
* @Description : 기반강화 교육과정등록 > 이미지 등록
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2023.11.14 이호영 최초 생성
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>강사정보 수정 요청</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="<c:url value='/js/EgovMultiFileItn.js'/>"></script> <!-- 파일첨부, 썸네일이미지 있으면 미리보기 -->
|
||||
<!-- <script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script> -->
|
||||
<script src="${pageContext.request.contextPath}/kccadrPb/adm/script/postcode.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/jquery-3.5.0.js"></script>
|
||||
<script src="<c:url value='/js/kccadr/kccadrCom.js' />"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$(".btn_add_file").on('click', function(){
|
||||
$("#file_temp").click();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function fncPopClose(){
|
||||
self.close();
|
||||
}
|
||||
|
||||
function fncSave() {
|
||||
if(confirm("사진을 변경하시겠습니까?")){
|
||||
var data = new FormData(document.getElementById("createForm"));
|
||||
_fileForm2.forEach(function(obj, idx) {
|
||||
if (obj) data.append("file"+idx, obj.fileObj);
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
enctype: 'multipart/form-data',
|
||||
url: "${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/fndthEduPhotoPopupRegAjax.do",
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
success: function (returnData, status) {
|
||||
if(status == 'success'){
|
||||
|
||||
console.log('returnData.atchFileId : ', returnData.atchFileId);
|
||||
var atchFileId = returnData.atchFileId;
|
||||
|
||||
$(window.opener.document).find('#emptyImg').hide();
|
||||
var imgTag = '<img id="instrPhoto" class="id_pic" alt="사진" src="${pageContext.request.contextPath}/uss/ion/pwm/getImage.do?atchFileId=' + atchFileId + '">';
|
||||
$(window.opener.document).find('.put_photo_box').append(imgTag);
|
||||
$(window.opener.document).find('#imageAtchFileId').val(atchFileId);
|
||||
window.close();
|
||||
|
||||
} else if(status== 'fail'){
|
||||
alert("사진변경 처리에 실패하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function (e) { alert("사진변경 처리에 실패하였습니다."); console.log("ERROR : ", e); }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fncCmpnnPopup(rpplTy, rqstType) {
|
||||
$("#aprvlCd").val(rpplTy);
|
||||
$("#rqstType").val(rqstType);
|
||||
var pop = document.mdfyRqstPopup;
|
||||
commonPopWindowopenForm("${pageContext.request.contextPath}/ve/oprtn/instr/tngrVisitEdu/instrInfo/instrAplctCmpnnPopup.do", "750", "300", "instrAplctCmpnnPop", $('#mdfyRqstPopup'));
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="area_popup supm_popup">
|
||||
<div class="cont_popup">
|
||||
|
||||
<form:form id="createForm" name="createForm" method="post" commandName="vELctrDetailVO" onsubmit="return false;">
|
||||
|
||||
<input type="hidden" name="prcsOrd" value="<c:out value="${info.prcsOrd}" />" />
|
||||
|
||||
|
||||
<div class="area_popup">
|
||||
<div class="cont_popup upload_area">
|
||||
|
||||
<div class="pop_tb_tit01">
|
||||
<p></p>
|
||||
<div class="btn_wrap_pop">
|
||||
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none"/>
|
||||
<button type="button" id="filebutton" class="btn_type01 btn_add_file">파일 찾기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="file_wrap file_upload_box no_img_box">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 10%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th>파일 명</th>
|
||||
<th>종류</th>
|
||||
<th>크기</th>
|
||||
<th>삭제</th>
|
||||
</thead>
|
||||
<tbody class="tb_file_before">
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<p>첨부하실 파일을 <span>마우스끌어서</span> 넣어주세요.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="file_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 15%;">
|
||||
<col style="width: 100px;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th>파일 명</th>
|
||||
<th>종류</th>
|
||||
<th>크기</th>
|
||||
<th>삭제</th>
|
||||
</thead>
|
||||
<tbody id="tbody_fiielist" class="tb_file_after">
|
||||
<c:forEach var="fileList" items="${fileList}" varStatus="status">
|
||||
<tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj">
|
||||
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileSize}">
|
||||
<td class="td_filename">
|
||||
<p>${fileList.orignlFileNm}</p>
|
||||
</td>
|
||||
<td class="td_filesort">
|
||||
<p><c:out value="${fileList.fileExtsn}"/></p>
|
||||
</td>
|
||||
<td class="td_filesize">
|
||||
<p><c:out value="${fileList.fileMg}"/></p>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn_del" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;"><i></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="btn_wrap_pop btn_layout01">
|
||||
<div class="btn_left">
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
<button type="button" onclick="fncSave(); return false;" class="btn_type04">확인</button>
|
||||
</div>
|
||||
<div class="btn_right">
|
||||
<button type="button" onclick="fncPopClose(); return false;" class="btn_type02">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form:form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -494,8 +494,7 @@
|
||||
</th>
|
||||
<td colspan="3" style="position: relative;">
|
||||
<label for="instrNm" class="label">강사명</label>
|
||||
<input type="text" name="instrNm" id="instrNm" size="25" value="<c:out value='${info.instrNm}'/>" maxLength="20" placeholder="홍길동">
|
||||
<div class="put_photo">
|
||||
<input type="text" name="instrNm" id="instrNm" size="25" value="<c:out value='${info.instrNm}'/>" maxLength="20" placeholder="홍길동"> <div class="put_photo">
|
||||
<div class="put_photo_in">
|
||||
<div class="put_photo_box">
|
||||
<c:if test="${empty info.phtAtchFileId}">
|
||||
|
||||
@ -1,276 +1,276 @@
|
||||
<%--
|
||||
Class Name : FmsFileList.jsp
|
||||
Description : 첨부파일 목록 페이지
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2009.09.16 장동한 최초 생성
|
||||
|
||||
author : 공통서비스 개발팀 장동한
|
||||
since : 2009.09.16
|
||||
|
||||
Copyright (C) 2009 by MOPAS All right reserved.
|
||||
--%>
|
||||
<%@ 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"%>
|
||||
<%
|
||||
response.setHeader("Cache-Control","no-store");
|
||||
response.setHeader("Pragma","no-cache");
|
||||
response.setDateHeader("Expires",0);
|
||||
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>메인이미지 관리</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
function fn_search(){
|
||||
<%--<c:if test="${!empty loginId}">
|
||||
if(""!= document.listForm.searchKeyword.value){
|
||||
updateRecentSearch();//최근검색어 등록
|
||||
}
|
||||
</c:if>--%>
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 메인창 수정 화면*/
|
||||
function fn_mainzone_view(id, pageType){
|
||||
document.modiForm.selectedId.value = id;
|
||||
document.modiForm.pageType.value = "Modify";
|
||||
document.modiForm.action = "<c:url value='/uss/ion/pwm/mainzoneModify.do'/>";
|
||||
document.modiForm.submit();
|
||||
}
|
||||
|
||||
/* 첨부파일 등록 및 수정 화면*/
|
||||
function fn_view_fms_file(fmsId , pageType){
|
||||
document.modiForm.pageType.value = pageType ;
|
||||
if(pageType=='U'){
|
||||
document.modiForm.fmsId.value = fmsId ;
|
||||
}
|
||||
document.modiForm.action = "<c:url value='/uss/ion/fms/viewUpdateFmsFile.do'/>";
|
||||
document.modiForm.submit();
|
||||
}
|
||||
|
||||
/* 체크된 메인배너 목록 삭제 */
|
||||
function fn_fms_file_delete(){
|
||||
if($("input[name=del]:checked").length == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (confirm("해당 첨부파일을 삭제하시겠습니까?")){
|
||||
frm = document.listForm;
|
||||
frm.action = "<c:url value='/uss/ion/fms/fmsFileListDelete.do' />";
|
||||
frm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
/* 테마별 색상맞추기 */
|
||||
$(window).load(function() {
|
||||
$('table.bbs01_list td.subject a').hover(
|
||||
function () {
|
||||
$(this).css("color","#d10000");
|
||||
},
|
||||
function () {
|
||||
$(this).css("color","#333333");
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="listForm" action="<c:url value='/uss/ion/fms/fmsFileList.do'/>" method="post">
|
||||
<input name="pageIndex" type="hidden" value="<c:out value='${fmsFileVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="selectedId" />
|
||||
<input type="hidden" name="pageType" />
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${fmsFileVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${fmsFileVO.searchSortOrd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<div class="cont_tit">
|
||||
<h2>첨부파일관리</h2>
|
||||
</div>
|
||||
<!-- cont -->
|
||||
<div class="cont">
|
||||
<!-- list_top -->
|
||||
<div class="list_top list_top_sub">
|
||||
<p>총 건수 : <span><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p>
|
||||
<div class="list_util">
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<select name="searchConditionSite" id="searchConditionSite" title="검색조건2-검색어구분">
|
||||
<option value="" <c:if test="${empty fmsFileVO.searchConditionSite }">selected="selected"</c:if> >전체 사이트</option>
|
||||
<c:forEach var="result" items="${siteManageList}" varStatus="status">
|
||||
<option value="${result.siteId}" <c:if test="${result.siteId eq fmsFileVO.searchConditionSite }">selected="selected"</c:if> >${result.siteNm}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</c:if>
|
||||
제목 :
|
||||
<input type="text" id="searchKeyword" name="searchKeyword" value="<c:out value='${fmsFileVO.searchKeyword}'/>" class="search_input" placeholder="검색어를 입력하세요">
|
||||
<button class="btn_search" onclick="fn_search(); return false;">검색</button>
|
||||
|
||||
<select class="sel2 sel_type1" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">
|
||||
<option value='10' <c:if test="${fmsFileVO.pageUnit == '10' or fmsFileVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
||||
<option value='20' <c:if test="${fmsFileVO.pageUnit == '20'}">selected</c:if>>20줄</option>
|
||||
<option value='30' <c:if test="${fmsFileVO.pageUnit == '30'}">selected</c:if>>30줄</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //list_top -->
|
||||
|
||||
<!-- list -->
|
||||
<div class="list tbType01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 6%">
|
||||
<col style="width: 8%">
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<col style="width: auto">
|
||||
</c:if>
|
||||
<col style="width: auto">
|
||||
<col style="width: 12%">
|
||||
<col style="width: 17%">
|
||||
<col style="width: 18%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="fnCheckAll();" /><label for="checkAll"></label></th>
|
||||
<th scope="col">번호<button class="sort sortBtn" id="sort_fmsId">▲</button></th>
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<th scope="col">사이트명<button class="sort sortBtn" id="sort_siteId">▲</button></th>
|
||||
</c:if>
|
||||
<th scope="col">제목<button class="sort sortBtn" id="sort_fmsNm">▲</button></th>
|
||||
<th scope="col">첨부파일<button class="sort sortBtn" id="sort_atchFileId">▲</button></th>
|
||||
<th scope="col">작성자<button class="sort sortBtn" id="sort_registerId">▲</button></th>
|
||||
<th scope="col">생성일<button class="sort sortBtn" id="sort_regdt">▲</button></th>
|
||||
<th scope="col">수정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="result" items="${fmsFileList}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<input name="del" id="del_${status.index}" type="checkbox" value="${result.fmsId}" />
|
||||
</td>
|
||||
<td>
|
||||
<c:if test="${fmsFileVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${fmsFileVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<td>
|
||||
<c:forEach var="siteManageList" items="${siteManageList}" varStatus="status">
|
||||
<c:if test="${result.siteId eq siteManageList.siteId}">
|
||||
<c:out value="${siteManageList.siteNm}"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</c:if>
|
||||
<td><c:out value="${result.fmsNm}"/></td>
|
||||
<td>
|
||||
<c:if test="${!empty result.atchFileId}">
|
||||
<img src="${pageContext.request.contextPath}/img/post/atch_file.png">
|
||||
</c:if>
|
||||
</td>
|
||||
<td><span class="privateInfo">${result.registerId}</span></td>
|
||||
<td><c:out value="${result.regdt}"/></td>
|
||||
<td>
|
||||
<button type="button" class="btnType01" onclick="fn_view_fms_file('${result.fmsId}' , 'U'); return false;">수정</button>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty fmsFileList}">
|
||||
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list -->
|
||||
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<button type="button" class="btnType03" onclick="fn_fms_file_delete(); return false;">삭제</button>
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" class="btnType02" onclick="fn_view_fms_file('', 'I'); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //btn_wrap -->
|
||||
|
||||
<!-- 페이지 네비게이션 시작 -->
|
||||
<c:if test="${!empty fmsFileList}">
|
||||
<div class="page">
|
||||
<ul class="inline">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</ul>
|
||||
</div>
|
||||
</c:if>
|
||||
<!-- //페이지 네비게이션 끝 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
</div>
|
||||
</form>
|
||||
<form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>">
|
||||
<input name="popupId" type="hidden" value="" />
|
||||
<input name="pageIndex" type="hidden" value="<c:out value='${fmsFileVO.pageIndex}'/>"/>
|
||||
<input name="cmd" type="hidden" value="<c:out value=''/>"/>
|
||||
</form>
|
||||
<form name="modiForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneModify.do'/>" >
|
||||
<input name="fmsId" type="hidden" />
|
||||
<input name="pageType" type="hidden" />
|
||||
</form>
|
||||
<form name="searchForm" method="get" action="<c:url value='/uss/ion/fms/fmsFileList.do'/>">
|
||||
<input name="pageIndex" type="hidden" value="1" />
|
||||
<input name="searchKeyword" type="hidden" />
|
||||
<input name="searchConditionSite" type="hidden" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%--
|
||||
Class Name : FmsFileList.jsp
|
||||
Description : 첨부파일 목록 페이지
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2009.09.16 장동한 최초 생성
|
||||
|
||||
author : 공통서비스 개발팀 장동한
|
||||
since : 2009.09.16
|
||||
|
||||
Copyright (C) 2009 by MOPAS All right reserved.
|
||||
--%>
|
||||
<%@ 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"%>
|
||||
<%
|
||||
response.setHeader("Cache-Control","no-store");
|
||||
response.setHeader("Pragma","no-cache");
|
||||
response.setDateHeader("Expires",0);
|
||||
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>메인이미지 관리</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
function fn_search(){
|
||||
<%--<c:if test="${!empty loginId}">
|
||||
if(""!= document.listForm.searchKeyword.value){
|
||||
updateRecentSearch();//최근검색어 등록
|
||||
}
|
||||
</c:if>--%>
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 메인창 수정 화면*/
|
||||
function fn_mainzone_view(id, pageType){
|
||||
document.modiForm.selectedId.value = id;
|
||||
document.modiForm.pageType.value = "Modify";
|
||||
document.modiForm.action = "<c:url value='/uss/ion/pwm/mainzoneModify.do'/>";
|
||||
document.modiForm.submit();
|
||||
}
|
||||
|
||||
/* 첨부파일 등록 및 수정 화면*/
|
||||
function fn_view_fms_file(fmsId , pageType){
|
||||
document.modiForm.pageType.value = pageType ;
|
||||
if(pageType=='U'){
|
||||
document.modiForm.fmsId.value = fmsId ;
|
||||
}
|
||||
document.modiForm.action = "<c:url value='/uss/ion/fms/viewUpdateFmsFile.do'/>";
|
||||
document.modiForm.submit();
|
||||
}
|
||||
|
||||
/* 체크된 메인배너 목록 삭제 */
|
||||
function fn_fms_file_delete(){
|
||||
if($("input[name=del]:checked").length == 0){
|
||||
alert("선택된 항목이 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (confirm("해당 첨부파일을 삭제하시겠습니까?")){
|
||||
frm = document.listForm;
|
||||
frm.action = "<c:url value='/uss/ion/fms/fmsFileListDelete.do' />";
|
||||
frm.submit();
|
||||
}
|
||||
}
|
||||
|
||||
/* 테마별 색상맞추기 */
|
||||
$(window).load(function() {
|
||||
$('table.bbs01_list td.subject a').hover(
|
||||
function () {
|
||||
$(this).css("color","#d10000");
|
||||
},
|
||||
function () {
|
||||
$(this).css("color","#333333");
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="listForm" action="<c:url value='/uss/ion/fms/fmsFileList.do'/>" method="post">
|
||||
<input name="pageIndex" type="hidden" value="<c:out value='${fmsFileVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="selectedId" />
|
||||
<input type="hidden" name="pageType" />
|
||||
<input type="hidden" name="searchSortCnd" value="<c:out value="${fmsFileVO.searchSortCnd}" />" />
|
||||
<input type="hidden" name="searchSortOrd" value="<c:out value="${fmsFileVO.searchSortOrd}" />" />
|
||||
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
<div class="cont_tit">
|
||||
<h2>첨부파일관리</h2>
|
||||
</div>
|
||||
<!-- cont -->
|
||||
<div class="cont">
|
||||
<!-- list_top -->
|
||||
<div class="list_top list_top_sub">
|
||||
<p>총 건수 : <span><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p>
|
||||
<div class="list_util">
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<select name="searchConditionSite" id="searchConditionSite" title="검색조건2-검색어구분">
|
||||
<option value="" <c:if test="${empty fmsFileVO.searchConditionSite }">selected="selected"</c:if> >전체 사이트</option>
|
||||
<c:forEach var="result" items="${siteManageList}" varStatus="status">
|
||||
<option value="${result.siteId}" <c:if test="${result.siteId eq fmsFileVO.searchConditionSite }">selected="selected"</c:if> >${result.siteNm}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</c:if>
|
||||
제목 :
|
||||
<input type="text" id="searchKeyword" name="searchKeyword" value="<c:out value='${fmsFileVO.searchKeyword}'/>" class="search_input" placeholder="검색어를 입력하세요">
|
||||
<button class="btn_search" onclick="fn_search(); return false;">검색</button>
|
||||
|
||||
<select class="sel2 sel_type1" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">
|
||||
<option value='10' <c:if test="${fmsFileVO.pageUnit == '10' or fmsFileVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
||||
<option value='20' <c:if test="${fmsFileVO.pageUnit == '20'}">selected</c:if>>20줄</option>
|
||||
<option value='30' <c:if test="${fmsFileVO.pageUnit == '30'}">selected</c:if>>30줄</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //list_top -->
|
||||
|
||||
<!-- list -->
|
||||
<div class="list tbType01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 6%">
|
||||
<col style="width: 8%">
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<col style="width: auto">
|
||||
</c:if>
|
||||
<col style="width: auto">
|
||||
<col style="width: 12%">
|
||||
<col style="width: 17%">
|
||||
<col style="width: 18%">
|
||||
<col style="width: 10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><input type="checkbox" name="checkAll" id="checkAll" onclick="fnCheckAll();" /><label for="checkAll"></label></th>
|
||||
<th scope="col">번호<button class="sort sortBtn" id="sort_fmsId">▲</button></th>
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<th scope="col">사이트명<button class="sort sortBtn" id="sort_siteId">▲</button></th>
|
||||
</c:if>
|
||||
<th scope="col">제목<button class="sort sortBtn" id="sort_fmsNm">▲</button></th>
|
||||
<th scope="col">첨부파일<button class="sort sortBtn" id="sort_atchFileId">▲</button></th>
|
||||
<th scope="col">작성자<button class="sort sortBtn" id="sort_registerId">▲</button></th>
|
||||
<th scope="col">생성일<button class="sort sortBtn" id="sort_regdt">▲</button></th>
|
||||
<th scope="col">수정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="result" items="${fmsFileList}" varStatus="status">
|
||||
<tr>
|
||||
<td>
|
||||
<input name="del" id="del_${status.index}" type="checkbox" value="${result.fmsId}" />
|
||||
</td>
|
||||
<td>
|
||||
<c:if test="${fmsFileVO.searchSortOrd eq 'desc' }">
|
||||
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
|
||||
</c:if>
|
||||
<c:if test="${fmsFileVO.searchSortOrd eq 'asc' }">
|
||||
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
<c:if test="${siteId eq 'super'}">
|
||||
<td>
|
||||
<c:forEach var="siteManageList" items="${siteManageList}" varStatus="status">
|
||||
<c:if test="${result.siteId eq siteManageList.siteId}">
|
||||
<c:out value="${siteManageList.siteNm}"/>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</c:if>
|
||||
<td><c:out value="${result.fmsNm}"/></td>
|
||||
<td>
|
||||
<c:if test="${!empty result.atchFileId}">
|
||||
<img src="${pageContext.request.contextPath}/img/post/atch_file.png">
|
||||
</c:if>
|
||||
</td>
|
||||
<td><span class="privateInfo">${result.registerId}</span></td>
|
||||
<td><c:out value="${result.regdt}"/></td>
|
||||
<td>
|
||||
<button type="button" class="btnType01" onclick="fn_view_fms_file('${result.fmsId}' , 'U'); return false;">수정</button>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty fmsFileList}">
|
||||
<tr><td colspan="7"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list -->
|
||||
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="area_left">
|
||||
<button type="button" class="btnType03" onclick="fn_fms_file_delete(); return false;">삭제</button>
|
||||
</div>
|
||||
<div class="area_right">
|
||||
<button type="button" class="btnType02" onclick="fn_view_fms_file('', 'I'); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //btn_wrap -->
|
||||
|
||||
<!-- 페이지 네비게이션 시작 -->
|
||||
<c:if test="${!empty fmsFileList}">
|
||||
<div class="page">
|
||||
<ul class="inline">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="image" jsFunction="linkPage" />
|
||||
</ul>
|
||||
</div>
|
||||
</c:if>
|
||||
<!-- //페이지 네비게이션 끝 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
</div>
|
||||
</form>
|
||||
<form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>">
|
||||
<input name="popupId" type="hidden" value="" />
|
||||
<input name="pageIndex" type="hidden" value="<c:out value='${fmsFileVO.pageIndex}'/>"/>
|
||||
<input name="cmd" type="hidden" value="<c:out value=''/>"/>
|
||||
</form>
|
||||
<form name="modiForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneModify.do'/>" >
|
||||
<input name="fmsId" type="hidden" />
|
||||
<input name="pageType" type="hidden" />
|
||||
</form>
|
||||
<form name="searchForm" method="get" action="<c:url value='/uss/ion/fms/fmsFileList.do'/>">
|
||||
<input name="pageIndex" type="hidden" value="1" />
|
||||
<input name="searchKeyword" type="hidden" />
|
||||
<input name="searchConditionSite" type="hidden" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,135 +1,141 @@
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<un:useConstants var="VeConstants" className="kcc.ve.cmm.VeConstants" />
|
||||
<title>교육신청 목록 > 성인 찾아가는 저작권 교육 > 한국저작권위원회 저작권 교육 시스템</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javaScript" language="javascript">
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.action = "<c:url value='/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function goWrite(){
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.do").submit();
|
||||
}
|
||||
|
||||
function fncGoDetail(eduAplctOrd){
|
||||
var listForm = document.listForm ;
|
||||
listForm.eduAplctOrd.value = eduAplctOrd ;
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctDetail.do").submit();
|
||||
}
|
||||
|
||||
function fncGoList(){
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
function fncReset(thisObj){
|
||||
var targetObj = $(thisObj).closest('.list_top').find('select,input');
|
||||
$.each(targetObj, function(){
|
||||
$(this).val('');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- content -->
|
||||
<div class="cont_wrap" id="sub">
|
||||
|
||||
<form:form id="listForm" name="listForm" commandName="vEEduAplctVO">
|
||||
|
||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="" />
|
||||
<div class="cont_tit">
|
||||
<h2>대시보드</h2>
|
||||
</div>
|
||||
<ul class="edu_process">
|
||||
<li class="edu_apply"><i></i><div class="text_area">신청중 강의<p><span><c:out value="${countMap['COUNT_APRVL_CD_10']}" /></span>건</p></div></li>
|
||||
<li class="edu_register"><i></i><div class="text_area">수강중 강의<p><span><c:out value="${countMap['COUNT_APRVL_CD_20']}" /></span>건</p></div></li>
|
||||
<li class="edu_close"><i></i><div class="text_area">종료된 강의<p><span><c:out value="${countMap['COUNT_END_CD']}" /></span>건</p></div></li>
|
||||
</ul>
|
||||
|
||||
<div class="tb_tit02">
|
||||
<div class="tb_tit02_left">
|
||||
<div class="t_best">최근 교육 목록</div>
|
||||
</div>
|
||||
<div class="btn_wrap1">
|
||||
<button type="button" title="최근 교육 목록 더보기" class="con_more" onclick="location.href='<c:url value="/web/ve/aplct/fndtnEnhanceTrn/fndtnEduAplctList.do" />'">더보기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tb_list02">
|
||||
<table>
|
||||
<caption>최근 교육 목록표</caption>
|
||||
<colgroup>
|
||||
<col style="width:35%;">
|
||||
<col style="width:;">
|
||||
<col style="width:13%;">
|
||||
<col style="width:13%;">
|
||||
<col style="width:13%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>교육과정</th>
|
||||
<th>교육기간</th>
|
||||
<th>신청결과</th>
|
||||
<th>설문조사</th>
|
||||
<th>이수증</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<%-- <td onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');" style="cursor:pointer;"> --%>
|
||||
<td>
|
||||
<c:out value="${list.prcsNm}"/>(<c:out value="${list.prcsAplctPrdOrd}"/>)
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.eduStrtPnttm}"/>~<c:out value="${list.eduDdlnPnttm}"/>
|
||||
</td>
|
||||
<td><kc:code codeId="VE0003" code="${list.aprvlCd}"/></td>
|
||||
<td>
|
||||
<!-- 신청 승인상태 20 and 현재가 교육종료보다 이후 체크 1 -->
|
||||
<c:choose>
|
||||
<c:when test="${list.aprvlCd eq 20 and list.dateChk eq 1 and not list.qestRsltExists }">
|
||||
<button type="button" title="설문등록" class="btnType04" data-tooltip="edu_in">설문등록</button>
|
||||
</c:when>
|
||||
<c:when test="${list.aprvlCd eq 20 and list.dateChk eq 1 and list.qestRsltExists }">
|
||||
설문완료
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${list.qestRsltExists }">
|
||||
<button type="button" title="출력" class="btnType03">출력</button>
|
||||
</c:when>
|
||||
<c:when test="${list.dateChk eq 1 and not list.qestRsltExists}">
|
||||
교육완료
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="6"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form:form>
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
|
||||
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<un:useConstants var="VeConstants" className="kcc.ve.cmm.VeConstants" />
|
||||
<title>교육신청 목록 > 성인 찾아가는 저작권 교육 > 한국저작권위원회 저작권 교육 시스템</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<script type="text/javaScript" language="javascript">
|
||||
function linkPage(pageNo){
|
||||
var listForm = document.listForm ;
|
||||
listForm.pageIndex.value = pageNo ;
|
||||
listForm.action = "<c:url value='/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function goWrite(){
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.do").submit();
|
||||
}
|
||||
|
||||
function fncGoDetail(eduAplctOrd){
|
||||
var listForm = document.listForm ;
|
||||
listForm.eduAplctOrd.value = eduAplctOrd ;
|
||||
$("#listForm").attr("action","${pageContext.request.contextPath}/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctDetail.do").submit();
|
||||
}
|
||||
|
||||
function fncGoList(){
|
||||
linkPage(1);
|
||||
}
|
||||
|
||||
function fncReset(thisObj){
|
||||
var targetObj = $(thisObj).closest('.list_top').find('select,input');
|
||||
$.each(targetObj, function(){
|
||||
$(this).val('');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- content -->
|
||||
<div class="cont_wrap" id="sub">
|
||||
|
||||
<form:form id="listForm" name="listForm" commandName="vEEduAplctVO">
|
||||
|
||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="" />
|
||||
<div class="cont_tit">
|
||||
<h2>대시보드</h2>
|
||||
</div>
|
||||
<ul class="edu_process">
|
||||
<li class="edu_apply" style="cursor: pointer;" onclick="location.href='<c:url value="/web/ve/aplct/fndtnEnhanceTrn/fndtnEduAplctList.do" />'"><i></i>
|
||||
<div class="text_area">신청중 강의<p><span><c:out value="${countMap['COUNT_APRVL_CD_10']}" /></span>건</p></div>
|
||||
</li>
|
||||
<li class="edu_register" style="cursor: pointer;" onclick="location.href='<c:url value="/web/ve/aplct/fndtnEnhanceTrn/fndtnEduAplctList.do" />'"><i></i>
|
||||
<div class="text_area">수강중 강의<p><span><c:out value="${countMap['COUNT_APRVL_CD_20']}" /></span>건</p></div>
|
||||
</li>
|
||||
<li class="edu_close" style="cursor: pointer;" onclick="location.href='<c:url value="/web/ve/aplct/fndtnEnhanceTrn/fndtnEduAplctList.do" />'"><i></i>
|
||||
<div class="text_area">종료된 강의<p><span><c:out value="${countMap['COUNT_END_CD']}" /></span>건</p></div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tb_tit02">
|
||||
<div class="tb_tit02_left">
|
||||
<div class="t_best">최근 교육 목록</div>
|
||||
</div>
|
||||
<div class="btn_wrap1">
|
||||
<button type="button" title="최근 교육 목록 더보기" class="con_more" onclick="location.href='<c:url value="/web/ve/aplct/fndtnEnhanceTrn/fndtnEduAplctList.do" />'">더보기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tb_list02">
|
||||
<table>
|
||||
<caption>최근 교육 목록표</caption>
|
||||
<colgroup>
|
||||
<col style="width:35%;">
|
||||
<col style="width:;">
|
||||
<col style="width:13%;">
|
||||
<col style="width:13%;">
|
||||
<col style="width:13%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>교육과정</th>
|
||||
<th>교육기간</th>
|
||||
<th>신청결과</th>
|
||||
<th>설문조사</th>
|
||||
<th>이수증</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr>
|
||||
<%-- <td onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');" style="cursor:pointer;"> --%>
|
||||
<td>
|
||||
<c:out value="${list.prcsNm}"/>(<c:out value="${list.prcsAplctPrdOrd}"/>)
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.eduStrtPnttm}"/>~<c:out value="${list.eduDdlnPnttm}"/>
|
||||
</td>
|
||||
<td><kc:code codeId="VE0003" code="${list.aprvlCd}"/></td>
|
||||
<td>
|
||||
<!-- 신청 승인상태 20 and 현재가 교육종료보다 이후 체크 1 -->
|
||||
<c:choose>
|
||||
<c:when test="${list.aprvlCd eq 20 and list.dateChk eq 1 and not list.qestRsltExists }">
|
||||
<button type="button" title="설문등록" class="btnType04" data-tooltip="edu_in">설문등록</button>
|
||||
</c:when>
|
||||
<c:when test="${list.aprvlCd eq 20 and list.dateChk eq 1 and list.qestRsltExists }">
|
||||
설문완료
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${list.qestRsltExists }">
|
||||
<button type="button" title="출력" class="btnType03">출력</button>
|
||||
</c:when>
|
||||
<c:when test="${list.dateChk eq 1 and not list.qestRsltExists}">
|
||||
교육완료
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="6"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form:form>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user