--- base/Documents/BaseForMySql_v1.0.erwin
+++ base/Documents/BaseForMySql_v1.0.erwin
| Binary file is not shown |
--- base/src/main/java/egovframework/com/cmm/service/FileVO.java
+++ base/src/main/java/egovframework/com/cmm/service/FileVO.java
... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 |
import java.util.List; |
| 6 | 6 |
|
| 7 | 7 |
import egovframework.com.cmm.ComDefaultVO; |
| 8 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 8 | 9 |
|
| 9 | 10 |
//파일정보 처리를 위한 VO 클래스 |
| 10 | 11 |
public class FileVO extends ComDefaultVO {
|
... | ... | @@ -136,7 +137,11 @@ |
| 136 | 137 |
|
| 137 | 138 |
//파일 세로 크기 |
| 138 | 139 |
private int fileImgHeight; |
| 139 |
- |
|
| 140 |
+ |
|
| 141 |
+ //용량변환 |
|
| 142 |
+ public String getFileMgByByteConvert() {
|
|
| 143 |
+ return EgovStringUtil.byteConverter(fileMg); |
|
| 144 |
+ } |
|
| 140 | 145 |
|
| 141 | 146 |
public Date getCreatDt() {
|
| 142 | 147 |
return creatDt; |
--- base/src/main/java/egovframework/com/cmm/service/impl/FileManageMapper.java
+++ base/src/main/java/egovframework/com/cmm/service/impl/FileManageMapper.java
... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 |
public int deleteTempFileDetail(FileVO fvo) throws Exception; |
| 65 | 65 |
|
| 66 | 66 |
//임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. |
| 67 |
- public void insertFileInfsByTempMaster(FileVO vo) throws Exception; |
|
| 67 |
+ //public void insertFileInfsByTempMaster(FileVO vo) throws Exception; |
|
| 68 | 68 |
|
| 69 | 69 |
//임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. |
| 70 | 70 |
public void insertFileDetailByTemp(FileVO vo) throws Exception; |
--- base/src/main/java/egovframework/com/cmm/service/impl/FileMngServiceImpl.java
+++ base/src/main/java/egovframework/com/cmm/service/impl/FileMngServiceImpl.java
... | ... | @@ -218,7 +218,8 @@ |
| 218 | 218 |
if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) {
|
| 219 | 219 |
if(EgovStringUtil.isEmpty(vo.getAtchFileId())) {
|
| 220 | 220 |
vo.setAtchFileId(vo.getFileGroupId()); |
| 221 |
- fileManageMapper.insertFileInfsByTempMaster(vo); |
|
| 221 |
+ //fileManageMapper.insertFileInfsByTempMaster(vo); |
|
| 222 |
+ fileManageMapper.insertFileMaster(vo); |
|
| 222 | 223 |
} |
| 223 | 224 |
|
| 224 | 225 |
fileManageMapper.insertFileDetailByTemp(vo); |
... | ... | @@ -245,7 +246,8 @@ |
| 245 | 246 |
if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) {
|
| 246 | 247 |
if(EgovStringUtil.isEmpty(vo.getAtchFileId())) {
|
| 247 | 248 |
vo.setAtchFileId(vo.getFileGroupId()); |
| 248 |
- fileManageMapper.insertFileInfsByTempMaster(vo); |
|
| 249 |
+ //fileManageMapper.insertFileInfsByTempMaster(vo); |
|
| 250 |
+ fileManageMapper.insertFileMaster(vo); |
|
| 249 | 251 |
} |
| 250 | 252 |
|
| 251 | 253 |
fileManageMapper.insertFileDetailByTemp(vo); |
--- base/src/main/java/egovframework/com/mng/uss/ion/bnr/web/BannerManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/ion/bnr/web/BannerManageController.java
... | ... | @@ -251,7 +251,7 @@ |
| 251 | 251 |
codeVO.setCodeId("COM109");
|
| 252 | 252 |
model.addAttribute("codeList", cmmUseService.selectCmmCodeDetail(codeVO));
|
| 253 | 253 |
|
| 254 |
- if("BAN001".equals(vo.getBannerTyCode())) {
|
|
| 254 |
+ if("BAN001".equals(vo.getBannerTyCode()) || "BAN002".equals(vo.getBannerTyCode())) {
|
|
| 255 | 255 |
String sNtceBgnde = vo.getNtceBgnde(); |
| 256 | 256 |
String sNtceEndde = vo.getNtceEndde(); |
| 257 | 257 |
vo.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); |
--- base/src/main/resources/egovframework/mapper/mysql/cmm/fms/File_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/fms/File_SQL.xml
... | ... | @@ -74,7 +74,7 @@ |
| 74 | 74 |
, NOW() |
| 75 | 75 |
</otherwise> |
| 76 | 76 |
</choose> |
| 77 |
- , #{useAt}
|
|
| 77 |
+ , 'Y' |
|
| 78 | 78 |
) |
| 79 | 79 |
</insert> |
| 80 | 80 |
|
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/Board_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/Board_SQL.xml
... | ... | @@ -316,7 +316,7 @@ |
| 316 | 316 |
|
| 317 | 317 |
WHERE cbm.SITE_ID = IFNULL(NULLIF(#{siteId},''),'SITE_000000000000001')
|
| 318 | 318 |
AND a.BBS_ID = #{bbsId}
|
| 319 |
- <if test='adminAt == "Y"'> |
|
| 319 |
+ <if test='adminAt != "Y"'> |
|
| 320 | 320 |
AND a.USE_AT = 'Y' |
| 321 | 321 |
</if> |
| 322 | 322 |
|
... | ... | @@ -667,7 +667,7 @@ |
| 667 | 667 |
USE_AT = 'Y' |
| 668 | 668 |
, LAST_UPDUSR_ID = #{lastUpdusrId}
|
| 669 | 669 |
, LAST_UPDUSR_PNTTM = NOW() |
| 670 |
- WHERE BBS_ID = #bbsId# |
|
| 670 |
+ WHERE BBS_ID = #{bbsId}
|
|
| 671 | 671 |
AND NTT_NO IN |
| 672 | 672 |
<foreach item="item" collection="nttNoArr" open=" (" close=") " separator=",">
|
| 673 | 673 |
#{item}
|
... | ... | @@ -739,7 +739,7 @@ |
| 739 | 739 |
</otherwise> |
| 740 | 740 |
</choose> |
| 741 | 741 |
FROM comtnbbs a |
| 742 |
- WHERE BBS_ID = #bbsId# |
|
| 742 |
+ WHERE BBS_ID = #{bbsId}
|
|
| 743 | 743 |
AND NTT_NO IN |
| 744 | 744 |
<foreach item="item" collection="nttNoArr" open=" (" close=") " separator=",">
|
| 745 | 745 |
#{item}
|
... | ... | @@ -759,7 +759,7 @@ |
| 759 | 759 |
FROM comtnbbsctgry a |
| 760 | 760 |
LEFT JOIN comtnbbsmaster b ON b.CTGRYMASTER_ID = a.CTGRYMASTER_ID |
| 761 | 761 |
LEFT JOIN comtnbbs c ON (c.CTGRY_ID = a.CTGRY_ID or c.CTGRY_ID is null) and c.USE_AT = 'Y' and c.BBS_ID = b.BBS_ID |
| 762 |
- WHERE b.BBS_ID = #bbsId# |
|
| 762 |
+ WHERE b.BBS_ID = #{bbsId}
|
|
| 763 | 763 |
GROUP BY a.CTGRY_NM |
| 764 | 764 |
order by a.CTGRY_ID desc |
| 765 | 765 |
</select> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/fms/EgovFileList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/fms/EgovFileList.jsp
... | ... | @@ -15,316 +15,360 @@ |
| 15 | 15 |
<c:set var="_FILE_CURR_SIZE" value="0"/> |
| 16 | 16 |
|
| 17 | 17 |
<c:choose> |
| 18 |
- <c:when test="${param.report eq 'Y'}">
|
|
| 19 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 20 |
- <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 21 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 22 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 23 |
- <c:choose> |
|
| 24 |
- <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 25 |
- <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 26 |
- </c:choose> |
|
| 27 |
- <c:choose> |
|
| 28 |
- <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 29 |
- <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 30 |
- <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 31 |
- </c:choose> |
|
| 32 |
- <c:choose> |
|
| 33 |
- <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 34 |
- </c:choose> |
|
| 35 |
- </c:url> |
|
| 36 |
- <a href="<c:out value='${downLoad}'/>" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 37 |
- <img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 38 |
- </a> |
|
| 39 |
- </c:forEach> |
|
| 40 |
- </c:when> |
|
| 41 |
- |
|
| 42 |
- <c:when test="${param.type eq 'mov'}">
|
|
| 43 |
- <c:set var="movCnt" value="0"/> |
|
| 44 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 45 |
- <c:if test="${movCnt == 0 and fn:toLowerCase(fileVO.fileExtsn) eq 'mp4'}">
|
|
| 46 |
- <div> |
|
| 47 |
- <c:import url="/multiview/main/popup/mediaPlayer.do" charEncoding="utf-8"> |
|
| 48 |
- <c:param name="upPath" value="${fn:replace(fileVO.fileStreCours, webPath, '')}/${fileVO.streFileNm}" />
|
|
| 49 |
- <c:param name="type" value="bbs"/> |
|
| 50 |
- </c:import> |
|
| 51 |
- </div> |
|
| 52 |
- <%-- |
|
| 53 |
- <iframe src="/multiview/main/popup/mediaPlayer.do?upPath=${fn:replace(fileVO.fileStreCours, webPath, '')}/${fileVO.streFileNm}&type=bbs" style="width:100%;height:485px;overflow:auto;border:none;"></iframe>
|
|
| 54 |
- --%> |
|
| 55 |
- <c:set var="movCnt" value="1"/> |
|
| 56 |
- </c:if> |
|
| 57 |
- </c:forEach> |
|
| 58 |
- </c:when> |
|
| 59 |
- |
|
| 60 |
- <c:when test="${param.mngAt eq 'Y'}">
|
|
| 61 |
- <div class="file_box"> |
|
| 62 |
- <c:if test="${updateFlag=='Y'}">
|
|
| 63 |
- <div class="file_top"> |
|
| 64 |
- |
|
| 65 |
- <input id="fileupload" class="fileupload <c:out value="${param.editorId}"/>" type="file" name="files" multiple style="display:none; opacity: 0; filter:alpha(opacity: 0);">
|
|
| 66 |
- <label class="file_btn" data-target="<c:out value="${param.editorId}"/>" id="btnAddFile_<c:out value="${param.editorId}"/>" for="fileupload"><img src="${CMMN_IMG }/btn_add_file.gif" alt="파일첨부"/></label>
|
|
| 67 |
- <p class="file_info"> |
|
| 68 |
- <strong class="blue">갯수 : </strong><span id="lblCurrCount_<c:out value="${param.editorId}"/>">0</span>/<span id="lblMaxCount_<c:out value="${param.editorId}"/>">0</span> ,
|
|
| 69 |
- <strong class="blue">크기 : </strong><span id="lblCurrSize_<c:out value="${param.editorId}"/>">0MB</span>/<span id="lblMaxSize_<c:out value="${param.editorId}"/>">0MB</span>
|
|
| 70 |
- </p> |
|
| 71 |
- </div> |
|
| 72 |
- </c:if> |
|
| 73 |
- <div id="progress"> |
|
| 74 |
- <span class="progress-bar" style="width:0%"></span> |
|
| 18 |
+ <c:when test="${param.type eq 'mov'}">
|
|
| 19 |
+ <c:set var="movCnt" value="0"/> |
|
| 20 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 21 |
+ <c:if test="${movCnt == 0 and fn:toLowerCase(fileVO.fileExtsn) eq 'mp4'}">
|
|
| 22 |
+ <div> |
|
| 23 |
+ <c:import url="/multiview/main/popup/mediaPlayer.do" charEncoding="utf-8"> |
|
| 24 |
+ <c:param name="upPath" value="${fn:replace(fileVO.fileStreCours, webPath, '')}/${fileVO.streFileNm}" />
|
|
| 25 |
+ <c:param name="type" value="bbs"/> |
|
| 26 |
+ </c:import> |
|
| 75 | 27 |
</div> |
| 76 |
- <table class="file_list_chart" summary="첨부파일 목록을 나타낸표입니다"> |
|
| 77 |
- <caption>첨부파일목록</caption> |
|
| 78 |
- <colgroup> |
|
| 79 |
- <col width="*" /> |
|
| 80 |
- <col width="150" /> |
|
| 81 |
- <col width="30" /> |
|
| 82 |
- </colgroup> |
|
| 83 |
- <thead> |
|
| 84 |
- <tr> |
|
| 85 |
- <th>파일명</th> |
|
| 86 |
- <c:choose> |
|
| 87 |
- <c:when test="${updateFlag=='Y'}">
|
|
| 88 |
- <th class="size">크기</th> |
|
| 89 |
- <th class="del">삭제</th> |
|
| 90 |
- </c:when> |
|
| 91 |
- <c:otherwise> |
|
| 92 |
- <th class="size" colspan="2">크기</th> |
|
| 93 |
- </c:otherwise> |
|
| 94 |
- </c:choose> |
|
| 95 |
- </tr> |
|
| 96 |
- </thead> |
|
| 97 |
- <tbody id="multiFileList_<c:out value="${param.editorId}"/>">
|
|
| 98 |
- <tr id="tr_file_empty_<c:out value="${param.editorId}"/>" <c:if test="${fn:length(fileList) ne '0'}">style="display:none"</c:if>>
|
|
| 28 |
+ <%-- |
|
| 29 |
+ <iframe src="/multiview/main/popup/mediaPlayer.do?upPath=${fn:replace(fileVO.fileStreCours, webPath, '')}/${fileVO.streFileNm}&type=bbs" style="width:100%;height:485px;overflow:auto;border:none;"></iframe>
|
|
| 30 |
+ --%> |
|
| 31 |
+ <c:set var="movCnt" value="1"/> |
|
| 32 |
+ </c:if> |
|
| 33 |
+ </c:forEach> |
|
| 34 |
+ </c:when> |
|
| 35 |
+ <c:when test="${param.tableAt eq 'Y'}">
|
|
| 36 |
+ <div class="file_box"> |
|
| 37 |
+ <c:if test="${updateFlag=='Y'}">
|
|
| 38 |
+ <div class="file_top"> |
|
| 39 |
+ |
|
| 40 |
+ <input id="fileupload" class="fileupload <c:out value="${param.editorId}"/>" type="file" name="files" multiple style="display:none; opacity: 0; filter:alpha(opacity: 0);">
|
|
| 41 |
+ <label class="file_btn" data-target="<c:out value="${param.editorId}"/>" id="btnAddFile_<c:out value="${param.editorId}"/>" for="fileupload"><img src="${CMMN_IMG }/btn_add_file.gif" alt="파일첨부"/></label>
|
|
| 42 |
+ <p class="file_info"> |
|
| 43 |
+ <strong class="blue">갯수 : </strong><span id="lblCurrCount_<c:out value="${param.editorId}"/>">0</span>/<span id="lblMaxCount_<c:out value="${param.editorId}"/>">0</span> ,
|
|
| 44 |
+ <strong class="blue">크기 : </strong><span id="lblCurrSize_<c:out value="${param.editorId}"/>">0MB</span>/<span id="lblMaxSize_<c:out value="${param.editorId}"/>">0MB</span>
|
|
| 45 |
+ </p> |
|
| 46 |
+ </div> |
|
| 47 |
+ </c:if> |
|
| 48 |
+ <div id="progress"> |
|
| 49 |
+ <span class="progress-bar" style="width:0%"></span> |
|
| 50 |
+ </div> |
|
| 51 |
+ <table class="file_list_chart" summary="첨부파일 목록을 나타낸표입니다"> |
|
| 52 |
+ <caption>첨부파일목록</caption> |
|
| 53 |
+ <colgroup> |
|
| 54 |
+ <col width="*" /> |
|
| 55 |
+ <col width="150" /> |
|
| 56 |
+ <col width="30" /> |
|
| 57 |
+ </colgroup> |
|
| 58 |
+ <thead> |
|
| 59 |
+ <tr> |
|
| 60 |
+ <th>파일명</th> |
|
| 61 |
+ <c:choose> |
|
| 62 |
+ <c:when test="${updateFlag=='Y'}">
|
|
| 63 |
+ <th class="size">크기</th> |
|
| 64 |
+ <th class="del">삭제</th> |
|
| 65 |
+ </c:when> |
|
| 66 |
+ <c:otherwise> |
|
| 67 |
+ <th class="size" colspan="2">크기</th> |
|
| 68 |
+ </c:otherwise> |
|
| 69 |
+ </c:choose> |
|
| 70 |
+ </tr> |
|
| 71 |
+ </thead> |
|
| 72 |
+ <tbody id="multiFileList_<c:out value="${param.editorId}"/>">
|
|
| 73 |
+ <tr id="tr_file_empty_<c:out value="${param.editorId}"/>" <c:if test="${fn:length(fileList) ne '0'}">style="display:none"</c:if>>
|
|
| 74 |
+ <c:choose> |
|
| 75 |
+ <c:when test="${updateFlag=='Y'}">
|
|
| 76 |
+ <td colspan="3" align="center">첨부된 파일이 없습니다.</td> |
|
| 77 |
+ </c:when> |
|
| 78 |
+ <c:otherwise> |
|
| 79 |
+ <td colspan="2" align="center">첨부된 파일이 없습니다.</td> |
|
| 80 |
+ </c:otherwise> |
|
| 81 |
+ </c:choose> |
|
| 82 |
+ </tr> |
|
| 83 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 84 |
+ <tr id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="db">
|
|
| 99 | 85 |
<c:choose> |
| 100 | 86 |
<c:when test="${updateFlag=='Y'}">
|
| 101 |
- <td colspan="3" align="center">첨부된 파일이 없습니다.</td> |
|
| 87 |
+ <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 88 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 89 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 90 |
+ <c:param name="returnUrl" value="${CURR_URL}"/>
|
|
| 91 |
+ </c:url> |
|
| 92 |
+ <td><img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 93 |
+ <c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
|
| 94 |
+ (<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
|
| 95 |
+ </c:if> |
|
| 96 |
+ </td> |
|
| 97 |
+ <td class="size"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 98 |
+ <td class="del"><a href="<c:out value="${delUrl}"/>" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 99 |
+ <img src="${CMMN_IMG }/btn_sdelete.gif"/>
|
|
| 100 |
+ </a> |
|
| 101 |
+ </td> |
|
| 102 |
+ <c:set var="_FILE_CURR_COUNT" value="${_FILE_CURR_COUNT + 1}"/>
|
|
| 103 |
+ <c:set var="_FILE_CURR_SIZE" value="${_FILE_CURR_SIZE + fileVO.fileMg}"/>
|
|
| 102 | 104 |
</c:when> |
| 103 | 105 |
<c:otherwise> |
| 104 |
- <td colspan="2" align="center">첨부된 파일이 없습니다.</td> |
|
| 105 |
- </c:otherwise> |
|
| 106 |
- </c:choose> |
|
| 107 |
- </tr> |
|
| 108 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 109 |
- <tr id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="db">
|
|
| 110 |
- <c:choose> |
|
| 111 |
- <c:when test="${updateFlag=='Y'}">
|
|
| 112 |
- <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 113 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 114 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 115 |
- <c:param name="returnUrl" value="${CURR_URL}"/>
|
|
| 116 |
- </c:url> |
|
| 117 |
- <td><img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 106 |
+ <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 107 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 108 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 109 |
+ <c:choose> |
|
| 110 |
+ <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 111 |
+ <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 112 |
+ </c:choose> |
|
| 113 |
+ <c:choose> |
|
| 114 |
+ <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 115 |
+ <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 116 |
+ <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 117 |
+ </c:choose> |
|
| 118 |
+ <c:choose> |
|
| 119 |
+ <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 120 |
+ </c:choose> |
|
| 121 |
+ </c:url> |
|
| 122 |
+ <td> |
|
| 123 |
+ <a href="<c:out value='${downLoad}'/>" onclick="fn_egov_downFile(this.href);return false;" class="test333">
|
|
| 124 |
+ <img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 118 | 125 |
<c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
| 119 | 126 |
(<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
| 120 | 127 |
</c:if> |
| 121 |
- </td> |
|
| 122 |
- <td class="size"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 123 |
- <td class="del"><a href="<c:out value="${delUrl}"/>" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 124 |
- <img src="${CMMN_IMG }/btn_sdelete.gif"/>
|
|
| 125 |
- </a> |
|
| 126 |
- </td> |
|
| 127 |
- <c:set var="_FILE_CURR_COUNT" value="${_FILE_CURR_COUNT + 1}"/>
|
|
| 128 |
- <c:set var="_FILE_CURR_SIZE" value="${_FILE_CURR_SIZE + fileVO.fileMg}"/>
|
|
| 129 |
- </c:when> |
|
| 130 |
- <c:otherwise> |
|
| 131 |
- <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 132 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 133 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 134 |
- <c:choose> |
|
| 135 |
- <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 136 |
- <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 137 |
- </c:choose> |
|
| 138 |
- <c:choose> |
|
| 139 |
- <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 140 |
- <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 141 |
- <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 142 |
- </c:choose> |
|
| 143 |
- <c:choose> |
|
| 144 |
- <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 145 |
- </c:choose> |
|
| 146 |
- </c:url> |
|
| 147 |
- <td> |
|
| 148 |
- <a href="<c:out value='${downLoad}'/>" onclick="fn_egov_downFile(this.href);return false;" class="test333">
|
|
| 149 |
- <img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 150 |
- <c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
|
| 151 |
- (<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
|
| 152 |
- </c:if> |
|
| 153 |
- </a> |
|
| 154 |
- </td> |
|
| 155 |
- <td class="size" colspan="2"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 156 |
- </c:otherwise> |
|
| 157 |
- </c:choose> |
|
| 158 |
- </tr> |
|
| 159 |
- </c:forEach> |
|
| 160 |
- </tbody> |
|
| 161 |
- </table> |
|
| 128 |
+ </a> |
|
| 129 |
+ </td> |
|
| 130 |
+ <td class="size" colspan="2"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 131 |
+ </c:otherwise> |
|
| 132 |
+ </c:choose> |
|
| 133 |
+ </tr> |
|
| 134 |
+ </c:forEach> |
|
| 135 |
+ </tbody> |
|
| 136 |
+ </table> |
|
| 137 |
+ </div> |
|
| 138 |
+ </c:when> |
|
| 139 |
+ <c:when test="${param.mngAt eq 'Y'}">
|
|
| 140 |
+ <c:if test="${updateFlag=='Y'}">
|
|
| 141 |
+ <input id="fileupload" class="fileupload <c:out value="${param.editorId}"/>" type="file" name="files" multiple style="display:none; opacity: 0; filter:alpha(opacity: 0);">
|
|
| 142 |
+ <label class="file_btn" data-target="<c:out value="${param.editorId}"/>" id="btnAddFile_<c:out value="${param.editorId}"/>" for="fileupload"><img src="${CMMN_IMG }/btn_add_file.gif" alt="파일첨부"/></label>
|
|
| 143 |
+ <%-- |
|
| 144 |
+ <div class="file-add-txt-area"> |
|
| 145 |
+ <div class="file-custom"> |
|
| 146 |
+ <input type="file" name="files" id="fileupload" class="input-file fileupload <c:out value="${param.editorId}"/>" multiple>
|
|
| 147 |
+ <button type="button" id="btnAddFile_<c:out value="${param.editorId}"/>" class="btn" data-target="<c:out value="${param.editorId}"/>">11111</button>
|
|
| 148 |
+ </div> |
|
| 162 | 149 |
</div> |
| 163 |
- </c:when> |
|
| 164 |
- |
|
| 165 |
- <c:when test="${param.commonAt eq 'Y'}">
|
|
| 166 |
- <!-- 첨부파일 --> |
|
| 167 |
- <input type="hidden" id="staffPage" value="common"/> |
|
| 168 |
- <div class="file-attachment-wrap"> |
|
| 169 |
- <div class="file-attachment-write"> |
|
| 170 |
- <div class="clear"> |
|
| 171 |
- <p class="title"> |
|
| 172 |
- 파일을 업로드 해주세요. |
|
| 173 |
- <span>(jpg, jpeg, png, docx, pptx, pdf)</span> |
|
| 174 |
- </p> |
|
| 175 |
- <input id="fileupload" class="fileupload <c:out value="${param.editorId}"/>" type="file" name="files" multiple style="display:none; opacity: 0; filter:alpha(opacity: 0);">
|
|
| 176 |
- <label class="file_btn" data-target="<c:out value="${param.editorId}"/>" id="btnAddFile_<c:out value="${param.editorId}"/>" for="fileupload"><button class="btn-file-attach f-r">불러오기</button></label>
|
|
| 177 |
- </div> |
|
| 178 |
- <div id="multiFileList_<c:out value="${param.editorId}"/>" class="inner-area">
|
|
| 179 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 180 |
- <c:choose> |
|
| 181 |
- <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 182 |
- <c:set var="ext" value="img"/> |
|
| 183 |
- </c:when> |
|
| 184 |
- <c:otherwise> |
|
| 185 |
- <c:set var="ext" value="file"/> |
|
| 186 |
- </c:otherwise> |
|
| 187 |
- </c:choose> |
|
| 188 |
- <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 189 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 190 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 191 |
- <c:param name="returnUrl" value="${CURR_URL}"/>
|
|
| 192 |
- </c:url> |
|
| 193 |
- |
|
| 194 |
- <a href="${delUrl}" id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="attachment icon-${ext} font-gray" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 195 |
- <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 196 |
- <span class="file-remove">-</span> |
|
| 197 |
- </a> |
|
| 198 |
- </c:forEach> |
|
| 199 |
- </div> |
|
| 200 |
- </div> |
|
| 201 |
- </div> |
|
| 202 |
- </c:when> |
|
| 203 |
- <c:when test="${param.commonViewAt eq 'Y'}">
|
|
| 204 |
- <div class="file-attachment-wrap test"> |
|
| 205 |
- <div class="file-attachment-view"> |
|
| 206 |
- <div class="inner-area"> |
|
| 207 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 208 |
- <c:choose> |
|
| 209 |
- <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 210 |
- <c:set var="ext" value="img"/> |
|
| 211 |
- </c:when> |
|
| 212 |
- <c:otherwise> |
|
| 213 |
- <c:set var="ext" value="file"/> |
|
| 214 |
- </c:otherwise> |
|
| 215 |
- </c:choose> |
|
| 216 |
- <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 217 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 218 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 219 |
- <c:choose> |
|
| 220 |
- <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 221 |
- <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 222 |
- </c:choose> |
|
| 223 |
- <c:choose> |
|
| 224 |
- <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 225 |
- <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 226 |
- <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 227 |
- </c:choose> |
|
| 228 |
- <c:choose> |
|
| 229 |
- <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 230 |
- </c:choose> |
|
| 231 |
- </c:url> |
|
| 232 |
- |
|
| 233 |
- <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 234 |
- <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 235 |
- </a> |
|
| 236 |
- </c:forEach> |
|
| 237 |
- </div> |
|
| 238 |
- </div> |
|
| 239 |
- </div> |
|
| 240 |
- </c:when> |
|
| 241 |
- <c:when test="${param.addYn eq 'Y'}">
|
|
| 242 |
- <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 243 |
- <c:choose> |
|
| 244 |
- <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 245 |
- <c:set var="ext" value="img"/> |
|
| 246 |
- </c:when> |
|
| 247 |
- <c:otherwise> |
|
| 248 |
- <c:set var="ext" value="file"/> |
|
| 249 |
- </c:otherwise> |
|
| 250 |
- </c:choose> |
|
| 251 |
- <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 252 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 253 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 254 |
- <c:choose> |
|
| 255 |
- <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 256 |
- <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 257 |
- </c:choose> |
|
| 258 |
- <c:choose> |
|
| 259 |
- <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 260 |
- <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 261 |
- <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 262 |
- </c:choose> |
|
| 263 |
- <c:choose> |
|
| 264 |
- <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 265 |
- </c:choose> |
|
| 266 |
- </c:url> |
|
| 267 |
- |
|
| 268 |
- <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 269 |
- <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 270 |
- </a> |
|
| 271 |
- </c:forEach> |
|
| 272 |
- </c:when> |
|
| 273 |
- |
|
| 274 |
- |
|
| 275 |
- <c:otherwise> |
|
| 150 |
+ --%> |
|
| 151 |
+ </c:if> |
|
| 152 |
+ <div id="progress"> |
|
| 153 |
+ <span class="progress-bar" style="width:0%"></span> |
|
| 154 |
+ </div> |
|
| 155 |
+ |
|
| 156 |
+ <ul id="multiFileList_<c:out value="${param.editorId}"/>" class="file-list">
|
|
| 157 |
+ <li id="tr_file_empty_<c:out value="${param.editorId}"/>" <c:if test="${fn:length(fileList) ne '0'}">style="display:none"</c:if>>첨부된 파일이 없습니다.</li>
|
|
| 276 | 158 |
<c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
| 277 |
- <tr id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="db">
|
|
| 159 |
+ <li id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="db">
|
|
| 278 | 160 |
<c:choose> |
| 279 |
- <c:when test="${updateFlag=='Y'}">
|
|
| 280 |
- <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 281 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 161 |
+ <c:when test="${updateFlag=='Y'}">
|
|
| 162 |
+ <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 163 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 282 | 164 |
<c:param name="fileSn" value="${fileVO.fileSn}"/>
|
| 283 | 165 |
<c:param name="returnUrl" value="${CURR_URL}"/>
|
| 284 |
- </c:url> |
|
| 285 |
- <td><img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 166 |
+ </c:url> |
|
| 167 |
+ <a href="${delUrl}" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 168 |
+ <span><c:out value="${fileVO.orignlFileNm}"/></span><span>(<c:out value="${fileVO.fileMgByByteConvert}"/>)</span>
|
|
| 286 | 169 |
<c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
| 287 | 170 |
(<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
| 288 | 171 |
</c:if> |
| 289 |
- </td> |
|
| 290 |
- <td class="size"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 291 |
- <td class="del"><a href="<c:out value="${delUrl}"/>" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 292 |
- <img src="${CMMN_IMG }/btn_sdelete.gif"/>
|
|
| 293 |
- </a> |
|
| 294 |
- </td> |
|
| 172 |
+ </a> |
|
| 173 |
+ |
|
| 174 |
+ <a href="${delUrl}" class="ico-sm-close" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;"><span class="txt-hide">삭제</span></a>
|
|
| 175 |
+ |
|
| 295 | 176 |
<c:set var="_FILE_CURR_COUNT" value="${_FILE_CURR_COUNT + 1}"/>
|
| 296 | 177 |
<c:set var="_FILE_CURR_SIZE" value="${_FILE_CURR_SIZE + fileVO.fileMg}"/>
|
| 297 |
- </c:when> |
|
| 298 |
- <c:otherwise> |
|
| 299 |
- <div class="file-attachment-wrap test"> |
|
| 300 |
- <div class="file-attachment-view"> |
|
| 301 |
- <div class="inner-area"> |
|
| 302 |
- <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 303 |
- <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 304 |
- <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 305 |
- <c:choose> |
|
| 306 |
- <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 307 |
- <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 308 |
- </c:choose> |
|
| 309 |
- <c:choose> |
|
| 310 |
- <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 311 |
- <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 312 |
- <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 313 |
- </c:choose> |
|
| 314 |
- <c:choose> |
|
| 315 |
- <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 316 |
- </c:choose> |
|
| 317 |
- </c:url> |
|
| 318 |
- <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 319 |
- <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 320 |
- </a> |
|
| 321 |
- </div> |
|
| 322 |
- </div> |
|
| 323 |
- </div> |
|
| 324 |
- </c:otherwise> |
|
| 178 |
+ </c:when> |
|
| 179 |
+ <c:otherwise> |
|
| 180 |
+ <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 181 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 182 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 183 |
+ <c:choose> |
|
| 184 |
+ <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 185 |
+ <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 186 |
+ </c:choose> |
|
| 187 |
+ <c:choose> |
|
| 188 |
+ <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 189 |
+ <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 190 |
+ <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 191 |
+ </c:choose> |
|
| 192 |
+ <c:choose> |
|
| 193 |
+ <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 194 |
+ </c:choose> |
|
| 195 |
+ </c:url> |
|
| 196 |
+ <a href="<c:out value='${downLoad}'/>" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 197 |
+ <span><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 198 |
+ <c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
|
| 199 |
+ (<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
|
| 200 |
+ </c:if> |
|
| 201 |
+ <span>(<c:out value="${fileVO.fileMgByByteConvert}"/>)</span>
|
|
| 202 |
+ </a> |
|
| 203 |
+ </c:otherwise> |
|
| 325 | 204 |
</c:choose> |
| 326 |
- </tr> |
|
| 327 |
- </c:forEach> |
|
| 205 |
+ </li> |
|
| 206 |
+ </c:forEach> |
|
| 207 |
+ </ul> |
|
| 208 |
+ </c:when> |
|
| 209 |
+ <c:when test="${param.commonAt eq 'Y'}">
|
|
| 210 |
+ <!-- 첨부파일 --> |
|
| 211 |
+ <input type="hidden" id="staffPage" value="common"/> |
|
| 212 |
+ <div class="file-attachment-wrap"> |
|
| 213 |
+ <div class="file-attachment-write"> |
|
| 214 |
+ <div class="clear"> |
|
| 215 |
+ <p class="title"> |
|
| 216 |
+ 파일을 업로드 해주세요. |
|
| 217 |
+ <span>(jpg, jpeg, png, docx, pptx, pdf)</span> |
|
| 218 |
+ </p> |
|
| 219 |
+ <input id="fileupload" class="fileupload <c:out value="${param.editorId}"/>" type="file" name="files" multiple style="display:none; opacity: 0; filter:alpha(opacity: 0);">
|
|
| 220 |
+ <label class="file_btn" data-target="<c:out value="${param.editorId}"/>" id="btnAddFile_<c:out value="${param.editorId}"/>" for="fileupload"><button class="btn-file-attach f-r">불러오기</button></label>
|
|
| 221 |
+ </div> |
|
| 222 |
+ <div id="multiFileList_<c:out value="${param.editorId}"/>" class="inner-area">
|
|
| 223 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 224 |
+ <c:choose> |
|
| 225 |
+ <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 226 |
+ <c:set var="ext" value="img"/> |
|
| 227 |
+ </c:when> |
|
| 228 |
+ <c:otherwise> |
|
| 229 |
+ <c:set var="ext" value="file"/> |
|
| 230 |
+ </c:otherwise> |
|
| 231 |
+ </c:choose> |
|
| 232 |
+ <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 233 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 234 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 235 |
+ <c:param name="returnUrl" value="${CURR_URL}"/>
|
|
| 236 |
+ </c:url> |
|
| 237 |
+ |
|
| 238 |
+ <a href="${delUrl}" id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="attachment icon-${ext} font-gray" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 239 |
+ <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 240 |
+ <span class="file-remove">-</span> |
|
| 241 |
+ </a> |
|
| 242 |
+ </c:forEach> |
|
| 243 |
+ </div> |
|
| 244 |
+ </div> |
|
| 245 |
+ </div> |
|
| 246 |
+ </c:when> |
|
| 247 |
+ <c:when test="${param.commonViewAt eq 'Y'}">
|
|
| 248 |
+ <div class="file-attachment-wrap test"> |
|
| 249 |
+ <div class="file-attachment-view"> |
|
| 250 |
+ <div class="inner-area"> |
|
| 251 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 252 |
+ <c:choose> |
|
| 253 |
+ <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 254 |
+ <c:set var="ext" value="img"/> |
|
| 255 |
+ </c:when> |
|
| 256 |
+ <c:otherwise> |
|
| 257 |
+ <c:set var="ext" value="file"/> |
|
| 258 |
+ </c:otherwise> |
|
| 259 |
+ </c:choose> |
|
| 260 |
+ <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 261 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 262 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 263 |
+ <c:choose> |
|
| 264 |
+ <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 265 |
+ <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 266 |
+ </c:choose> |
|
| 267 |
+ <c:choose> |
|
| 268 |
+ <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 269 |
+ <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 270 |
+ <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 271 |
+ </c:choose> |
|
| 272 |
+ <c:choose> |
|
| 273 |
+ <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 274 |
+ </c:choose> |
|
| 275 |
+ </c:url> |
|
| 276 |
+ |
|
| 277 |
+ <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 278 |
+ <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 279 |
+ </a> |
|
| 280 |
+ </c:forEach> |
|
| 281 |
+ </div> |
|
| 282 |
+ </div> |
|
| 283 |
+ </div> |
|
| 284 |
+ </c:when> |
|
| 285 |
+ <c:when test="${param.addYn eq 'Y'}">
|
|
| 286 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 287 |
+ <c:choose> |
|
| 288 |
+ <c:when test="${fn:toLowerCase(fileVO.fileExtsn) eq 'jpg' or fn:toLowerCase(fileVO.fileExtsn) eq 'jpeg' or fn:toLowerCase(fileVO.fileExtsn) eq 'png'}">
|
|
| 289 |
+ <c:set var="ext" value="img"/> |
|
| 290 |
+ </c:when> |
|
| 291 |
+ <c:otherwise> |
|
| 292 |
+ <c:set var="ext" value="file"/> |
|
| 293 |
+ </c:otherwise> |
|
| 294 |
+ </c:choose> |
|
| 295 |
+ <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 296 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 297 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 298 |
+ <c:choose> |
|
| 299 |
+ <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 300 |
+ <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 301 |
+ </c:choose> |
|
| 302 |
+ <c:choose> |
|
| 303 |
+ <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 304 |
+ <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 305 |
+ <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 306 |
+ </c:choose> |
|
| 307 |
+ <c:choose> |
|
| 308 |
+ <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 309 |
+ </c:choose> |
|
| 310 |
+ </c:url> |
|
| 311 |
+ |
|
| 312 |
+ <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 313 |
+ <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 314 |
+ </a> |
|
| 315 |
+ </c:forEach> |
|
| 316 |
+ </c:when> |
|
| 317 |
+ |
|
| 318 |
+ |
|
| 319 |
+ <c:otherwise> |
|
| 320 |
+ <c:forEach var="fileVO" items="${fileList}" varStatus="status">
|
|
| 321 |
+ <tr id="<c:out value="${fileVO.atchFileId}_${fileVO.fileSn}"/>" class="db">
|
|
| 322 |
+ <c:choose> |
|
| 323 |
+ <c:when test="${updateFlag=='Y'}">
|
|
| 324 |
+ <c:url var="delUrl" value='/cmm/fms/deleteFileInfs.do'> |
|
| 325 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 326 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 327 |
+ <c:param name="returnUrl" value="${CURR_URL}"/>
|
|
| 328 |
+ </c:url> |
|
| 329 |
+ <td><img src='${CMMN_IMG }/ico_file.gif' alt='파일'/> <c:out value="${fileVO.orignlFileNm}"/>
|
|
| 330 |
+ <c:if test="${not empty fileVO.la and not empty fileVO.lo }">
|
|
| 331 |
+ (<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.la }"/>,<fmt:formatNumber type="number" pattern="###.#####" value="${fileVO.lo }"/>)
|
|
| 332 |
+ </c:if> |
|
| 333 |
+ </td> |
|
| 334 |
+ <td class="size"><c:out value="${fileVO.fileMgByByteConvert}"/></td>
|
|
| 335 |
+ <td class="del"><a href="<c:out value="${delUrl}"/>" onclick="fn_egov_editor_file_del('<c:out value="${param.editorId}"/>', '<c:out value="${param.estnAt}"/>', '<c:out value="${param.bbsId}"/>', '<c:out value="${fileVO.atchFileId}"/>','<c:out value="${fileVO.fileSn}"/>');return false;">
|
|
| 336 |
+ <img src="${CMMN_IMG }/btn_sdelete.gif"/>
|
|
| 337 |
+ </a> |
|
| 338 |
+ </td> |
|
| 339 |
+ <c:set var="_FILE_CURR_COUNT" value="${_FILE_CURR_COUNT + 1}"/>
|
|
| 340 |
+ <c:set var="_FILE_CURR_SIZE" value="${_FILE_CURR_SIZE + fileVO.fileMg}"/>
|
|
| 341 |
+ </c:when> |
|
| 342 |
+ <c:otherwise> |
|
| 343 |
+ <div class="file-attachment-wrap test"> |
|
| 344 |
+ <div class="file-attachment-view"> |
|
| 345 |
+ <div class="inner-area"> |
|
| 346 |
+ <c:url var="downLoad" value="/cmm/fms/FileDown.do"> |
|
| 347 |
+ <c:param name="atchFileId" value="${fileVO.atchFileId}"/>
|
|
| 348 |
+ <c:param name="fileSn" value="${fileVO.fileSn}"/>
|
|
| 349 |
+ <c:choose> |
|
| 350 |
+ <c:when test="${not empty param.bbsId}"><c:param name="bbsId" value="${param.bbsId}"/></c:when>
|
|
| 351 |
+ <c:otherwise><c:param name="bbsId" value="00000000000000000000"/></c:otherwise> |
|
| 352 |
+ </c:choose> |
|
| 353 |
+ <c:choose> |
|
| 354 |
+ <c:when test="${not empty param.trgetId}"><c:param name="trgetId" value="${param.trgetId}"/></c:when>
|
|
| 355 |
+ <c:when test="${not empty param.nttNo and not empty param.menuId}"><c:param name="trgetId" value="SYSTEM_DEFAULT_BOARD"/></c:when>
|
|
| 356 |
+ <c:when test="${not empty param.nttNo and empty param.menuId}"><c:param name="trgetId" value="MMAMVP_SERVICE_BOARD"/></c:when>
|
|
| 357 |
+ </c:choose> |
|
| 358 |
+ <c:choose> |
|
| 359 |
+ <c:when test="${not empty param.nttNo}"><c:param name="nttId" value="${param.nttNo}"/></c:when>
|
|
| 360 |
+ </c:choose> |
|
| 361 |
+ </c:url> |
|
| 362 |
+ <a href="<c:out value='${downLoad}'/>" class="attachment icon-file font-gray test2" onclick="fn_egov_downFile(this.href);return false;">
|
|
| 363 |
+ <span class="text"><c:out value="${fileVO.orignlFileNm}"/></span>
|
|
| 364 |
+ </a> |
|
| 365 |
+ </div> |
|
| 366 |
+ </div> |
|
| 367 |
+ </div> |
|
| 368 |
+ </c:otherwise> |
|
| 369 |
+ </c:choose> |
|
| 370 |
+ </tr> |
|
| 371 |
+ </c:forEach> |
|
| 328 | 372 |
</c:otherwise> |
| 329 | 373 |
</c:choose> |
| 330 | 374 |
|
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/BoardMstrList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/BoardMstrList.jsp
... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 |
|
| 39 | 39 |
<script> |
| 40 | 40 |
function fnBBS_Manage(url) {
|
| 41 |
- var win = window.open(url ,'bbs',' scrollbars=yes, resizable=yes, left=0, top=0, width=1100,height=750'); |
|
| 41 |
+ var win = window.open(url ,'bbs',' scrollbars=yes, resizable=yes, left=0, top=0, width=1290,height=750'); |
|
| 42 | 42 |
if(win != null) {
|
| 43 | 43 |
win.focus(); |
| 44 | 44 |
} |
... | ... | @@ -144,7 +144,7 @@ |
| 144 | 144 |
<c:url var="manageUrl" value="/mng/cop/bbs/selectBoardList.do${_BASE_PARAM}">
|
| 145 | 145 |
<c:param name="bbsId" value="${result.bbsId}"/>
|
| 146 | 146 |
</c:url> |
| 147 |
- <a href="${manageUrl}" onclick="fnBBS_Manage(this.href);return false;" class="btn btn-sm spot">게시글관리</a>
|
|
| 147 |
+ <a href="${manageUrl}" onclick="fnBBS_Manage(this.href);return false;" class="btn btn-sm spot"><i class="ico-sm-menu"></i> 게시글관리</a>
|
|
| 148 | 148 |
</td> |
| 149 | 149 |
<td data-tit="생성일"><fmt:formatDate value="${result.frstRegisterPnttm}" pattern="yyyy-MM-dd"/></td>
|
| 150 | 150 |
<td data-tit="관리"> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/ctg/CtgryMasterList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/ctg/CtgryMasterList.jsp
... | ... | @@ -91,7 +91,7 @@ |
| 91 | 91 |
<td data-tit="대분류코드"><c:out value="${result.ctgrymasterId}"/></td>
|
| 92 | 92 |
<td data-tit="대분류명"><c:out value="${result.ctgrymasterNm}"/></td>
|
| 93 | 93 |
<td data-tit="카테고리관리"> |
| 94 |
- <a href="<c:url value="/mng/cop/bbs/ctg/selectBBSCtgryList.do"><c:param name="ctgrymasterId" value="${result.ctgrymasterId}"/><c:param name="ctgrymasterNm" value="${result.ctgrymasterNm}"/></c:url>" onclick="fnCtgy_Manage(this.href);return false;" class="btn btn-sm spot">카테고리관리</a>
|
|
| 94 |
+ <a href="<c:url value="/mng/cop/bbs/ctg/selectBBSCtgryList.do"><c:param name="ctgrymasterId" value="${result.ctgrymasterId}"/><c:param name="ctgrymasterNm" value="${result.ctgrymasterNm}"/></c:url>" onclick="fnCtgy_Manage(this.href);return false;" class="btn btn-sm spot"><i class="ico-sm-menu"></i> 카테고리관리</a>
|
|
| 95 | 95 |
</td> |
| 96 | 96 |
<td data-tit="생성일"><c:out value="${result.creatDt}"/></td>
|
| 97 | 97 |
<td data-tit="관리"> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeInqire.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeInqire.jsp
... | ... | @@ -1,22 +1,7 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|
| 3 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 4 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
|
| 5 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 6 |
-<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> |
|
| 7 |
-<c:set var="_C_IMG" value="${pageContext.request.contextPath}/resources/template/common/images"/>
|
|
| 8 |
-<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/>
|
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 3 |
+ |
|
| 9 | 4 |
<c:set var="_PREFIX" value="/mng/cop/bbs"/> |
| 10 |
-<c:set var="serverName" value="<%=request.getServerName()%>"/> |
|
| 11 |
-<c:set var="serverPort" value="<%=request.getServerPort()%>"/> |
|
| 12 |
-<c:choose> |
|
| 13 |
- <c:when test="${serverPort == 80}">
|
|
| 14 |
- <c:set var="serverPort" value=""/> |
|
| 15 |
- </c:when> |
|
| 16 |
- <c:otherwise> |
|
| 17 |
- <c:set var="serverPort" value=":${serverPort}"/>
|
|
| 18 |
- </c:otherwise> |
|
| 19 |
-</c:choose> |
|
| 20 | 5 |
|
| 21 | 6 |
<% /*URL 정의*/ %> |
| 22 | 7 |
<c:url var="_BASE_PARAM" value=""> |
... | ... | @@ -36,140 +21,130 @@ |
| 36 | 21 |
</c:url> |
| 37 | 22 |
<% /*URL 정의*/ %> |
| 38 | 23 |
|
| 39 |
-<%-- nttNo = 0은 취소/환불 규정 때문에 처리함 --%> |
|
| 40 |
-<c:if test="${searchVO.nttNo ne 0 }">
|
|
| 41 |
- <c:import url="/EgovPageLink.do?link=/mng/template/popTop" charEncoding="utf-8"> |
|
| 42 |
- <c:param name="title" value="${brdMstrVO.bbsNm}"/>
|
|
| 24 |
+<c:import url="/EgovPageLink.do?link=/mng/template/popTop" charEncoding="utf-8"> |
|
| 25 |
+ <c:param name="title" value="${brdMstrVO.bbsNm}"/>
|
|
| 26 |
+</c:import> |
|
| 27 |
+ |
|
| 28 |
+<script> |
|
| 29 |
+ function onloading() {
|
|
| 30 |
+ if ("<c:out value='${msg}'/>" != "") {
|
|
| 31 |
+ alert("<c:out value='${msg}'/>");
|
|
| 32 |
+ } |
|
| 33 |
+ } |
|
| 34 |
+ |
|
| 35 |
+ function fn_egov_delete_notice(url) {
|
|
| 36 |
+ |
|
| 37 |
+ if (confirm('<spring:message code="common.delete.msg" />')) {
|
|
| 38 |
+ document.location.href = url; |
|
| 39 |
+ } |
|
| 40 |
+ } |
|
| 41 |
+</script> |
|
| 42 |
+ |
|
| 43 |
+<div class="write-type"> |
|
| 44 |
+ <table> |
|
| 45 |
+ <colgroup> |
|
| 46 |
+ <col style="width:250px" /> |
|
| 47 |
+ <col /> |
|
| 48 |
+ </colgroup> |
|
| 49 |
+ <tbody> |
|
| 50 |
+ <tr> |
|
| 51 |
+ <th><spring:message code="cop.nttSj" /></th> |
|
| 52 |
+ <td><c:out value="${board.nttSj}" /></td>
|
|
| 53 |
+ </tr> |
|
| 54 |
+ <c:if test="${!empty brdMstrVO.ctgrymasterId}">
|
|
| 55 |
+ <tr> |
|
| 56 |
+ <th><spring:message code="cop.category.view" /></th> |
|
| 57 |
+ <td><c:out value="${board.ctgryNm}" /></td>
|
|
| 58 |
+ </tr> |
|
| 59 |
+ </c:if> |
|
| 60 |
+ <tr> |
|
| 61 |
+ <th><spring:message code="cop.ntcrNm" /></th> |
|
| 62 |
+ <td><c:out value="${board.ntcrNm}" /> (<c:out value="${board.frstRegisterId}" />)</td>
|
|
| 63 |
+ </tr> |
|
| 64 |
+ <tr> |
|
| 65 |
+ <th><spring:message code="cop.frstRegisterPnttm" /></th> |
|
| 66 |
+ <td><fmt:formatDate value="${board.frstRegisterPnttm}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
| 67 |
+ </tr> |
|
| 68 |
+ <tr> |
|
| 69 |
+ <th><spring:message code="cop.inqireCo" /></th> |
|
| 70 |
+ <td><c:out value="${board.inqireCo}" /></td>
|
|
| 71 |
+ </tr> |
|
| 72 |
+ <tr> |
|
| 73 |
+ <th>내용</th> |
|
| 74 |
+ <td><c:out value="${board.nttCn}" escapeXml="false" /></td>
|
|
| 75 |
+ </tr> |
|
| 76 |
+ <c:if test="${brdMstrVO.fileAtchPosblAt eq 'Y'}">
|
|
| 77 |
+ <tr> |
|
| 78 |
+ <th><spring:message code="cop.atchFileList" /></th> |
|
| 79 |
+ <td> |
|
| 80 |
+ <c:if test="${not empty board.atchFileId}">
|
|
| 81 |
+ <c:import url="/cmm/fms/selectFileInfs.do" charEncoding="utf-8"> |
|
| 82 |
+ <c:param name="param_atchFileId" value="${board.atchFileId}" />
|
|
| 83 |
+ <c:param name="imagePath" value="${_IMG }"/>
|
|
| 84 |
+ <c:param name="mngAt" value="Y"/> |
|
| 85 |
+ </c:import> |
|
| 86 |
+ </c:if> |
|
| 87 |
+ </td> |
|
| 88 |
+ </tr> |
|
| 89 |
+ </c:if> |
|
| 90 |
+ <c:if test="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and board.processSttusCode eq 'QA03'}">
|
|
| 91 |
+ <c:if test="${not empty board.estnData}">
|
|
| 92 |
+ <tr> |
|
| 93 |
+ <th>답변 내용</th> |
|
| 94 |
+ <td><c:out value="${board.estnParseData.cn}" escapeXml="false" /></td>
|
|
| 95 |
+ </tr> |
|
| 96 |
+ </c:if> |
|
| 97 |
+ <c:if test="${not empty board.estnAtchFileId}">
|
|
| 98 |
+ <tr> |
|
| 99 |
+ <th><spring:message code="cop.atchFileList" /></th> |
|
| 100 |
+ <td> |
|
| 101 |
+ <c:if test="${not empty board.estnAtchFileId}">
|
|
| 102 |
+ <c:import url="/cmm/fms/selectFileInfs.do" charEncoding="utf-8"> |
|
| 103 |
+ <c:param name="param_atchFileId" value="${board.estnAtchFileId}" />
|
|
| 104 |
+ <c:param name="imagePath" value="${_IMG }"/>
|
|
| 105 |
+ <c:param name="mngAt" value="Y"/> |
|
| 106 |
+ </c:import> |
|
| 107 |
+ </c:if> |
|
| 108 |
+ </td> |
|
| 109 |
+ </tr> |
|
| 110 |
+ </c:if> |
|
| 111 |
+ </c:if> |
|
| 112 |
+ </tbody> |
|
| 113 |
+ </table> |
|
| 114 |
+</div> |
|
| 115 |
+ |
|
| 116 |
+<div class="fnc-area"> |
|
| 117 |
+ <div class="r-area"> |
|
| 118 |
+ <a href="${_PREFIX}/selectBoardList.do${_BASE_PARAM}" class="btn">목록</a>
|
|
| 119 |
+ |
|
| 120 |
+ <c:choose> |
|
| 121 |
+ <c:when test="${brdMstrVO.replyPosblAt eq 'Y'}">
|
|
| 122 |
+ <c:url var="addReplyBoardArticleUrl" value="${_PREFIX}/addReplyBoardArticle.do${_BASE_PARAM}">
|
|
| 123 |
+ <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 124 |
+ <c:param name="registAction" value="reply" /> |
|
| 125 |
+ </c:url> |
|
| 126 |
+ <a href="${addReplyBoardArticleUrl}" class="btn spot2">답글</a>
|
|
| 127 |
+ </c:when> |
|
| 128 |
+ <c:otherwise> |
|
| 129 |
+ <c:url var="forUpdateBoardArticleUrl" value="${_PREFIX}/forUpdateBoardArticle.do${_BASE_PARAM}">
|
|
| 130 |
+ <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 131 |
+ <c:param name="registAction" value="updt" /> |
|
| 132 |
+ </c:url> |
|
| 133 |
+ <a href="${forUpdateBoardArticleUrl}" class="btn spot2">수정</a>
|
|
| 134 |
+ </c:otherwise> |
|
| 135 |
+ </c:choose> |
|
| 136 |
+ |
|
| 137 |
+ <c:url var="deleteBoardArticleUrl" value="${_PREFIX}/deleteBoardArticle.do${_BASE_PARAM}">
|
|
| 138 |
+ <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 139 |
+ </c:url> |
|
| 140 |
+ <a href="${deleteBoardArticleUrl}" class="btn spot">삭제</a>
|
|
| 141 |
+ </div> |
|
| 142 |
+</div> |
|
| 143 |
+ |
|
| 144 |
+<c:if test="${brdMstrVO.commentUseAt eq 'Y'}">
|
|
| 145 |
+ <c:import url="/mng/cop/bbs/selectCommentList.do" charEncoding="utf-8"> |
|
| 146 |
+ <c:param name="tmplatId" value="${brdMstrVO.tmplatId}" />
|
|
| 43 | 147 |
</c:import> |
| 44 | 148 |
</c:if> |
| 45 |
- |
|
| 46 |
- <script type="text/javascript"> |
|
| 47 |
- function onloading() {
|
|
| 48 |
- if ("<c:out value='${msg}'/>" != "") {
|
|
| 49 |
- alert("<c:out value='${msg}'/>");
|
|
| 50 |
- } |
|
| 51 |
- } |
|
| 52 |
- |
|
| 53 |
- function fn_egov_delete_notice(url) {
|
|
| 54 |
- |
|
| 55 |
- if (confirm('<spring:message code="common.delete.msg" />')) {
|
|
| 56 |
- document.location.href = url; |
|
| 57 |
- } |
|
| 58 |
- } |
|
| 59 |
- </script> |
|
| 60 |
-<div id="cntnts"> |
|
| 61 |
- |
|
| 62 |
- <div class="view_wrap"> |
|
| 63 |
- <dl class="view_tit"> |
|
| 64 |
- <dt><spring:message code="cop.nttSj" /></dt> |
|
| 65 |
- <dd><strong><c:out value="${board.nttSj}" /></strong></dd>
|
|
| 66 |
- </dl> |
|
| 67 |
- |
|
| 68 |
- <table class="view_writer_chart"> |
|
| 69 |
- <caption></caption> |
|
| 70 |
- <colgroup> |
|
| 71 |
- <col width="110px" /> |
|
| 72 |
- <col width="*" /> |
|
| 73 |
- <col width="110px" /> |
|
| 74 |
- <col width="*" /> |
|
| 75 |
- </colgroup> |
|
| 76 |
- <tbody> |
|
| 77 |
- <c:if test="${!empty brdMstrVO.ctgrymasterId}">
|
|
| 78 |
- <tr> |
|
| 79 |
- <th><spring:message code="cop.category.view" /></th> |
|
| 80 |
- <td colspan="3" class="last"><c:out value="${board.ctgryNm}" /></td>
|
|
| 81 |
- </tr> |
|
| 82 |
- </c:if> |
|
| 83 |
- <tr> |
|
| 84 |
- <th><spring:message code="cop.ntcrNm" /></th> |
|
| 85 |
- <td colspan="3" class="last"><c:out value="${board.ntcrNm}" /> (<c:out value="${board.frstRegisterId}" />)</td>
|
|
| 86 |
- </tr> |
|
| 87 |
- <tr> |
|
| 88 |
- <th><spring:message code="cop.frstRegisterPnttm" /></th> |
|
| 89 |
- <td><fmt:formatDate value="${board.frstRegisterPnttm}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
|
| 90 |
- <th><spring:message code="cop.inqireCo" /></th> |
|
| 91 |
- <td class="last"><c:out value="${board.inqireCo}" /></td>
|
|
| 92 |
- </tr> |
|
| 93 |
- </tbody> |
|
| 94 |
- </table> |
|
| 95 |
- <div class="view_cont"> |
|
| 96 |
- <c:out value="${board.nttCn}" escapeXml="false" />
|
|
| 97 |
- </div> |
|
| 98 |
- |
|
| 99 |
- <c:if test="${brdMstrVO.fileAtchPosblAt eq 'Y'}">
|
|
| 100 |
- <dl class="view_tit02"> |
|
| 101 |
- <dt><spring:message code="cop.atchFileList" /></dt> |
|
| 102 |
- <dd> |
|
| 103 |
- <ul class="list"> |
|
| 104 |
- <c:if test="${not empty board.atchFileId}">
|
|
| 105 |
- <c:import url="/cmm/fms/selectFileInfs.do" charEncoding="utf-8"> |
|
| 106 |
- <c:param name="param_atchFileId" value="${board.atchFileId}" />
|
|
| 107 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 108 |
- <c:param name="mngAt" value="Y"/> |
|
| 109 |
- </c:import> |
|
| 110 |
- </c:if> |
|
| 111 |
- </ul> |
|
| 112 |
- </dd> |
|
| 113 |
- </dl> |
|
| 114 |
- </c:if> |
|
| 115 |
- |
|
| 116 |
- <c:if test="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and board.processSttusCode eq 'QA03'}">
|
|
| 117 |
- <c:if test="${not empty board.estnData}">
|
|
| 118 |
- <div class="view_cont"> |
|
| 119 |
- <c:out value="${board.estnParseData.cn}" escapeXml="false" />
|
|
| 120 |
- </div> |
|
| 121 |
- </c:if> |
|
| 122 |
- <c:if test="${not empty board.estnAtchFileId}">
|
|
| 123 |
- <dl class="view_tit02"> |
|
| 124 |
- <dt><spring:message code="cop.atchFileList" /></dt> |
|
| 125 |
- <dd> |
|
| 126 |
- <ul class="list"> |
|
| 127 |
- <c:import url="/cmm/fms/selectFileInfs.do" charEncoding="utf-8"> |
|
| 128 |
- <c:param name="param_atchFileId" value="${board.estnAtchFileId}" />
|
|
| 129 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 130 |
- </c:import> |
|
| 131 |
- </ul> |
|
| 132 |
- </dd> |
|
| 133 |
- </dl> |
|
| 134 |
- </c:if> |
|
| 135 |
- </c:if> |
|
| 136 |
- |
|
| 137 |
- </div> |
|
| 138 |
- |
|
| 139 |
- <div class="btn_r"> |
|
| 140 |
- <%-- nttNo = 0은 취소/환불 규정 때문에 처리함 --%> |
|
| 141 |
- <c:if test="${searchVO.nttNo ne 0 }">
|
|
| 142 |
- <a href="<c:url value="${_PREFIX}/selectBoardList.do${_BASE_PARAM}"/>"><img src="${_IMG}/btn/btn_list.gif" alt="목록"/></a>
|
|
| 143 |
- </c:if> |
|
| 144 |
- <c:if test="${brdMstrVO.replyPosblAt eq 'Y' and searchVO.nttNo ne 0}">
|
|
| 145 |
- <c:url var="addReplyBoardArticleUrl" value="${_PREFIX}/addReplyBoardArticle.do${_BASE_PARAM}">
|
|
| 146 |
- <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 147 |
- <c:param name="registAction" value="reply" /> |
|
| 148 |
- </c:url> |
|
| 149 |
- <a href="<c:out value="${addReplyBoardArticleUrl}"/>"><img src="${_IMG}/btn/btn_reply.gif" alt="답글"/></a>
|
|
| 150 |
- </c:if> |
|
| 151 |
- |
|
| 152 |
- <c:if test="${searchVO.nttNo ne 0 }">
|
|
| 153 |
- <c:url var="forUpdateBoardArticleUrl" value="${_PREFIX}/forUpdateBoardArticle.do${_BASE_PARAM}">
|
|
| 154 |
- <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 155 |
- <c:param name="registAction" value="updt" /> |
|
| 156 |
- </c:url> |
|
| 157 |
- </c:if> |
|
| 158 |
- <a href="<c:out value="${forUpdateBoardArticleUrl}"/>"><img src="${_IMG}/btn/btn_modify.gif" alt="수정"/></a>
|
|
| 159 |
- <c:url var="deleteBoardArticleUrl" value="${_PREFIX}/deleteBoardArticle.do${_BASE_PARAM}">
|
|
| 160 |
- <c:param name="nttNo" value="${board.nttNo}" />
|
|
| 161 |
- </c:url> |
|
| 162 |
- <c:if test="${searchVO.nttNo ne 0 }">
|
|
| 163 |
- <a href="<c:out value="${deleteBoardArticleUrl}"/>" onclick="fn_egov_delete_notice(this.href);return false;"><img src="${_IMG}/btn/btn_del.gif" alt="삭제"/></a>
|
|
| 164 |
- </c:if> |
|
| 165 |
- </div> |
|
| 166 |
- |
|
| 167 |
- <c:if test="${brdMstrVO.commentUseAt eq 'Y'}">
|
|
| 168 |
- <c:import url="/mng/cop/bbs/selectCommentList.do" charEncoding="utf-8"> |
|
| 169 |
- <c:param name="tmplatId" value="${brdMstrVO.tmplatId}" />
|
|
| 170 |
- </c:import> |
|
| 171 |
- </c:if> |
|
| 172 |
- |
|
| 173 |
-</div> |
|
| 174 | 149 |
|
| 175 | 150 |
<c:import url="/EgovPageLink.do?link=/mng/template/popBottom" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeList.jsp
... | ... | @@ -26,7 +26,6 @@ |
| 26 | 26 |
<c:param name="title" value="${brdMstrVO.bbsNm}"/>
|
| 27 | 27 |
</c:import> |
| 28 | 28 |
|
| 29 |
-<script src="${C_LIB}/jquery/jquery.form.js" ></script>
|
|
| 30 | 29 |
<script src="${C_JS}/board.js" ></script>
|
| 31 | 30 |
<script> |
| 32 | 31 |
|
... | ... | @@ -48,31 +47,34 @@ |
| 48 | 47 |
|
| 49 | 48 |
$('#btnManageMove').click(function() {if(checkArticle()) {$('#registAction').val('Move');bbsSelectPop();}return false;});
|
| 50 | 49 |
$('#btnManageCopy').click(function() {if(checkArticle()) {$('#registAction').val('Copy');bbsSelectPop();}return false;});
|
| 51 |
- $('#btnManageHide').click(function() {if(checkArticle()) {if(confirm('삭제 하시겠습니까?')) {$('#registAction').val('Hide');} else {return false;}} else {return false;}});
|
|
| 52 |
- $('#btnManageRemove').click(function() {if(checkArticle()) {if(confirm('완전삭제 후에는 복구 할 수 없습니다. 완전삭제 하시겠습니까?')) {$('#registAction').val('Remove');} else {return false;}} else {return false;}});
|
|
| 53 |
- $('#btnManageRepair').click(function() {if(checkArticle()) {if(confirm('복구 하시겠습니까?')) {$('#registAction').val('Repair');} else {return false;}} else {return false;}});
|
|
| 54 |
- |
|
| 55 |
- $("#listForm").ajaxForm({
|
|
| 56 |
- url : '${pageContext.request.contextPath}/cop/bbs/manageArticle.do'
|
|
| 57 |
- , dataType : 'json' |
|
| 58 |
- , beforeSubmit : function($form, options) {
|
|
| 59 |
- if(checkArticle()) {
|
|
| 60 |
- cfgCommonPopShow(); |
|
| 61 |
- } else {
|
|
| 62 |
- return false; |
|
| 63 |
- } |
|
| 64 |
- } |
|
| 65 |
- , success : function(data) {
|
|
| 66 |
- cfgCommonPopHide(); |
|
| 67 |
- alert(data.message); |
|
| 68 |
- document.location.href = $('#returnUrl').val();
|
|
| 50 |
+ $('#btnManageHide').click(function() {
|
|
| 51 |
+ if(checkArticle()) {
|
|
| 52 |
+ if(confirm('삭제 하시겠습니까?')) {
|
|
| 53 |
+ $('#registAction').val('Hide');
|
|
| 54 |
+ goManage(); |
|
| 55 |
+ } else {
|
|
| 56 |
+ return false;} |
|
| 57 |
+ } else {
|
|
| 58 |
+ return false; |
|
| 69 | 59 |
} |
| 70 |
- , error : function() {
|
|
| 71 |
- alert('문제가 발생하여 요청처리를 완료하지 못하였습니다.');
|
|
| 72 |
- cfgCommonPopHide(); |
|
| 73 |
- } |
|
| 74 |
- , resetForm : true |
|
| 75 |
- }); |
|
| 60 |
+ }); |
|
| 61 |
+ $('#btnManageRemove').click(function() {if(checkArticle()) {if(confirm('완전삭제 후에는 복구 할 수 없습니다. 완전삭제 하시겠습니까?')) {$('#registAction').val('Remove');goManage();} else {return false;}} else {return false;}});
|
|
| 62 |
+ $('#btnManageRepair').click(function() {if(checkArticle()) {if(confirm('복구 하시겠습니까?')) {$('#registAction').val('Repair');goManage();} else {return false;}} else {return false;}});
|
|
| 63 |
+ |
|
| 64 |
+ function goManage(){
|
|
| 65 |
+ $.ajax({
|
|
| 66 |
+ url:"/cop/bbs/manageArticle.do", |
|
| 67 |
+ type:"POST", |
|
| 68 |
+ data:$("#listForm").serialize(),
|
|
| 69 |
+ dataType : "json", |
|
| 70 |
+ success:function(data){
|
|
| 71 |
+ alert(data.message); |
|
| 72 |
+ document.location.href = $('#returnUrl').val();
|
|
| 73 |
+ },error:function(){
|
|
| 74 |
+ alert('문제가 발생하여 요청처리를 완료하지 못하였습니다.');
|
|
| 75 |
+ } |
|
| 76 |
+ }); |
|
| 77 |
+ } |
|
| 76 | 78 |
}); |
| 77 | 79 |
|
| 78 | 80 |
function checkArticle() {
|
... | ... | @@ -98,18 +100,7 @@ |
| 98 | 100 |
$('#listForm').submit();
|
| 99 | 101 |
} |
| 100 | 102 |
|
| 101 |
-function cancleBbsMaster() {
|
|
| 102 |
- cfgCommonPopHide(); |
|
| 103 |
-} |
|
| 104 | 103 |
|
| 105 |
-function cfgCommonPopShow() {
|
|
| 106 |
- $('#wrap').append("<div id='layer_blind_box' style='position:absolute; position:fixed; top:0; left:0; width:100%; height:100%; background:#000; z-index:50;'></div>");
|
|
| 107 |
- $('#layer_blind_box').css('opacity', 0.3);
|
|
| 108 |
-} |
|
| 109 |
- |
|
| 110 |
-function cfgCommonPopHide() {
|
|
| 111 |
- $('#layer_blind_box').remove();
|
|
| 112 |
-}; |
|
| 113 | 104 |
//관리자 함수끝 |
| 114 | 105 |
|
| 115 | 106 |
</script> |
... | ... | @@ -267,17 +258,15 @@ |
| 267 | 258 |
<td data-tit="<spring:message code="cop.ntcrNm" />"><c:out value="${result.ntcrNm}"/></td>
|
| 268 | 259 |
<td data-tit="<spring:message code="cop.frstRegisterPnttm" />"><fmt:formatDate value="${result.frstRegisterPnttm}" pattern="yyyy-MM-dd"/></td>
|
| 269 | 260 |
<td data-tit="<spring:message code="cop.inqireCo" />"><c:out value="${result.inqireCo}"/></td>
|
| 270 |
- |
|
| 271 |
- |
|
| 272 | 261 |
</tr> |
| 273 | 262 |
</c:forEach> |
| 274 | 263 |
|
| 275 | 264 |
<%-- 일반 글 --%> |
| 276 | 265 |
<c:forEach var="result" items="${resultList}" varStatus="status">
|
| 277 |
- <tr <c:if test="${result.useAt eq 'N'}">class="deleted"</c:if>>
|
|
| 266 |
+ <tr <c:if test="${result.useAt eq 'N'}">class="txt-del"</c:if>>
|
|
| 278 | 267 |
<td data-tit="선택"> |
| 279 | 268 |
<div class="checkradio"> |
| 280 |
- <input type="checkbox" id="checkbox${result.nttNo}" name="nttNoArr"/>
|
|
| 269 |
+ <input type="checkbox" id="checkbox${result.nttNo}" name="nttNoArr" value="${result.nttNo}"/>
|
|
| 281 | 270 |
<label for="checkbox${result.nttNo}" class="txt-hide">선택</label>
|
| 282 | 271 |
</div> |
| 283 | 272 |
</td> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeRegist.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/NoticeRegist.jsp
... | ... | @@ -1,21 +1,6 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|
| 3 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 4 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
|
| 5 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 6 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> |
|
| 7 |
-<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 8 | 3 |
|
| 9 |
-<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> |
|
| 10 |
-<%@ page import="egovframework.com.cmm.service.Globals"%> |
|
| 11 |
-<% org.springframework.web.util.UrlPathHelper helper = new org.springframework.web.util.UrlPathHelper();%> |
|
| 12 |
-<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response)%>"/> |
|
| 13 |
- |
|
| 14 |
-<c:set var="_C_IMG" value="/resources/template/common/images"/> |
|
| 15 |
-<c:set var="_C_JS" value="/resources/template/common/js"/> |
|
| 16 |
-<c:set var="_C_LIB" value="/resources/lib"/> |
|
| 17 |
-<c:set var="_C_HTML" value="/resources/template/common/html"/> |
|
| 18 |
-<c:set var="_IMG" value="/resources/template/manage/images"/> |
|
| 19 | 4 |
<c:set var="_PREFIX" value="/mng/cop/bbs"/> |
| 20 | 5 |
<c:set var="_ACTION" value=""/> |
| 21 | 6 |
<c:set var="_EDITOR_ID" value="nttCn"/> |
... | ... | @@ -38,48 +23,34 @@ |
| 38 | 23 |
</c:import> |
| 39 | 24 |
</c:if> |
| 40 | 25 |
|
| 41 |
-<script type="text/javascript" src="${_C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
|
|
| 42 |
-<script type="text/javascript" src="${_C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
|
| 26 |
+<script src="${C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
|
|
| 27 |
+<script src="${C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
|
| 43 | 28 |
|
| 44 | 29 |
|
| 45 |
-<script type="text/javascript" src="${_C_LIB}/upload/upload.js" ></script>
|
|
| 46 |
-<script type="text/javascript" src="${_C_JS}/board2.js?v=1" ></script>
|
|
| 30 |
+<script src="${C_LIB}/upload/upload.js"></script>
|
|
| 31 |
+<script src="${C_JS}/board2.js"></script>
|
|
| 47 | 32 |
|
| 48 |
-<script src="${_C_LIB}/jquery/jquery.ui.widget.js"></script>
|
|
| 49 |
-<script src="${_C_LIB}/upload/jquery.iframe-transport.js"></script>
|
|
| 50 |
-<script src="${_C_LIB}/upload/jquery.fileupload.js"></script>
|
|
| 51 |
-<script src="${_C_LIB}/upload/jquery.fileupload-process.js"></script>
|
|
| 52 |
-<script src="${_C_LIB}/upload/jquery.fileupload-image.js"></script>
|
|
| 53 |
-<script src="${_C_LIB}/upload/jquery.fileupload-audio.js"></script>
|
|
| 54 |
-<script src="${_C_LIB}/upload/jquery.fileupload-video.js"></script>
|
|
| 55 |
-<script src="${_C_LIB}/upload/jquery.fileupload-validate.js"></script>
|
|
| 56 |
-<script src="${_C_LIB}/upload/jquery.fileupload-ui.js"></script>
|
|
| 33 |
+<script src="${C_LIB}/jquery/jquery.ui.widget.js"></script>
|
|
| 34 |
+<script src="${C_LIB}/upload/jquery.iframe-transport.js"></script>
|
|
| 35 |
+<script src="${C_LIB}/upload/jquery.fileupload.js"></script>
|
|
| 36 |
+<script src="${C_LIB}/upload/jquery.fileupload-process.js"></script>
|
|
| 37 |
+<script src="${C_LIB}/upload/jquery.fileupload-image.js"></script>
|
|
| 38 |
+<script src="${C_LIB}/upload/jquery.fileupload-audio.js"></script>
|
|
| 39 |
+<script src="${C_LIB}/upload/jquery.fileupload-video.js"></script>
|
|
| 40 |
+<script src="${C_LIB}/upload/jquery.fileupload-validate.js"></script>
|
|
| 41 |
+<script src="${C_LIB}/upload/jquery.fileupload-ui.js"></script>
|
|
| 57 | 42 |
|
| 58 |
-<%-- K-MOOC --%> |
|
| 59 |
-<c:if test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000007'}">
|
|
| 60 |
-<script> |
|
| 61 |
-$(function() {
|
|
| 62 |
- $( "#tmp01" ).datepicker({
|
|
| 63 |
- dateFormat: "yy-mm-dd" |
|
| 64 |
- }); |
|
| 65 |
- $( "#tmp02" ).datepicker({
|
|
| 66 |
- dateFormat: "yy-mm-dd" |
|
| 67 |
- }); |
|
| 68 |
-}); |
|
| 69 |
-</script> |
|
| 70 |
-</c:if> |
|
| 71 |
- |
|
| 72 |
-<script type="text/javascript" src="<c:url value="/validator.do"/>"></script> |
|
| 43 |
+<script src="<c:url value="/validator.do"/>"></script> |
|
| 73 | 44 |
<validator:javascript formName="board" staticJavascript="false" xhtml="true" cdata="false"/> |
| 74 |
-<script type="text/javascript"> |
|
| 45 |
+<script> |
|
| 75 | 46 |
function fn_egov_regist() {
|
| 76 | 47 |
|
| 77 | 48 |
tinyMCE.triggerSave(); |
| 78 |
- |
|
| 49 |
+ /* |
|
| 79 | 50 |
if (!fn_egov_bbs_basic_regist(document.board)){
|
| 80 | 51 |
return false; |
| 81 | 52 |
} |
| 82 |
- |
|
| 53 |
+ */ |
|
| 83 | 54 |
$('#fileGroupId').val($('#fileGroupId_${_EDITOR_ID}').val());
|
| 84 | 55 |
|
| 85 | 56 |
<c:if test="${!empty brdMstrVO.ctgrymasterId and searchVO.registAction ne 'reply'}">
|
... | ... | @@ -117,313 +88,179 @@ |
| 117 | 88 |
</c:if> |
| 118 | 89 |
|
| 119 | 90 |
|
| 120 |
- $(document).ready(function(){
|
|
| 121 |
- var adfile_config = {
|
|
| 122 |
- siteId:"<c:out value='${brdMstrVO.siteId}'/>",
|
|
| 123 |
- pathKey:"Board", |
|
| 124 |
- appendPath:"<c:out value='${brdMstrVO.bbsId}'/>",
|
|
| 125 |
- editorId:"${_EDITOR_ID}",
|
|
| 126 |
- fileAtchPosblAt:"${brdMstrVO.fileAtchPosblAt}",
|
|
| 127 |
- maxMegaFileSize:${brdMstrVO.posblAtchFileSize},
|
|
| 128 |
- atchFileId:"${board.atchFileId}"
|
|
| 129 |
- }; |
|
| 130 |
- |
|
| 131 |
- fnCtgryInit('<c:out value='${board.ctgryPathById}'/>');
|
|
| 132 |
- fn_egov_bbs_editor(adfile_config); |
|
| 133 |
- |
|
| 134 |
- $("#egovComFileUploader").change(function(){
|
|
| 135 |
- var fileVal = $(this).val(), |
|
| 136 |
- ext = fileVal.split("."),
|
|
| 137 |
- splitSize = ext.length - 1, |
|
| 138 |
- fileExt = ext[splitSize].toLowerCase(); |
|
| 91 |
+$(document).ready(function(){
|
|
| 92 |
+ var adfile_config = {
|
|
| 93 |
+ siteId:"<c:out value='${brdMstrVO.siteId}'/>",
|
|
| 94 |
+ pathKey:"Board", |
|
| 95 |
+ appendPath:"<c:out value='${brdMstrVO.bbsId}'/>",
|
|
| 96 |
+ editorId:"${_EDITOR_ID}",
|
|
| 97 |
+ fileAtchPosblAt:"${brdMstrVO.fileAtchPosblAt}",
|
|
| 98 |
+ maxMegaFileSize:${brdMstrVO.posblAtchFileSize},
|
|
| 99 |
+ atchFileId:"${board.atchFileId}"
|
|
| 100 |
+ }; |
|
| 139 | 101 |
|
| 140 |
- |
|
| 141 |
- if($("#box_images > li").length > 0){
|
|
| 142 |
- alert("기존 책표지를 삭제 후 등록해주세요.")
|
|
| 143 |
- $(this).val("");
|
|
| 144 |
- }else if(fileExt=="bmp" || fileExt=="gif" || fileExt=="jpeg" || fileExt=="jpg" || fileExt=="png" || fileExt=="BMP" || fileExt=="GIF" || fileExt=="JPEG" || fileExt=="JPG" || fileExt=="PNG"){
|
|
| 145 |
- |
|
| 146 |
- }else{
|
|
| 147 |
- alert("이미지 확장자만 저장할 수 있습니다.");
|
|
| 148 |
- $(this).val("");
|
|
| 149 |
- } |
|
| 150 |
- }); |
|
| 151 |
- }); |
|
| 102 |
+ fnCtgryInit('<c:out value='${board.ctgryPathById}'/>');
|
|
| 103 |
+ fn_egov_bbs_editor(adfile_config); |
|
| 104 |
+}); |
|
| 152 | 105 |
</script> |
| 153 | 106 |
|
| 107 |
+<form:form commandName="board" name="board" method="post" action="${_ACTION}" enctype="multipart/form-data" onsubmit="return fn_egov_regist()">
|
|
| 108 |
+ <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
|
|
| 109 |
+ <input type="hidden" name="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" /> |
|
| 110 |
+ <input type="hidden" id="posblAtchFileNumber_${_EDITOR_ID}" name="posblAtchFileNumber_${_EDITOR_ID}" value="${brdMstrVO.posblAtchFileNumber}" />
|
|
| 111 |
+ <input type="hidden" id="posblAtchFileSize_${_EDITOR_ID}" name="posblAtchFileSize_${_EDITOR_ID}" value="${brdMstrVO.posblAtchFileSize * 1024 * 1024}" />
|
|
| 112 |
+ <input type="hidden" id="fileGroupId" name="fileGroupId" value="${board.atchFileId}"/>
|
|
| 113 |
+ <input type="hidden" name="bbsId" value="<c:out value='${brdMstrVO.bbsId}'/>" />
|
|
| 114 |
+ <input name="menuId" type="hidden" value="<c:out value='${searchVO.menuId}'/>" />
|
|
| 115 |
+ <input type="hidden" name="registAction" value="<c:out value='${searchVO.registAction}'/>"/>
|
|
| 116 |
+ <input type="hidden" name="tmplatImportAt" value="<c:out value='${searchVO.tmplatImportAt}'/>"/>
|
|
| 117 |
+ <input type="hidden" name="siteId" value="<c:out value='${searchVO.siteId}'/>"/>
|
|
| 154 | 118 |
|
| 155 |
-<div id="cntnts"> |
|
| 156 |
- <form:form commandName="board" name="board" method="post" action="${_ACTION}" enctype="multipart/form-data" onsubmit="return fn_egov_regist()">
|
|
| 157 |
- <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
|
|
| 158 |
- <input type="hidden" name="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" /> |
|
| 159 |
- <input type="hidden" id="posblAtchFileNumber_${_EDITOR_ID}" name="posblAtchFileNumber_${_EDITOR_ID}" value="${brdMstrVO.posblAtchFileNumber}" />
|
|
| 160 |
- <input type="hidden" id="posblAtchFileSize_${_EDITOR_ID}" name="posblAtchFileSize_${_EDITOR_ID}" value="${brdMstrVO.posblAtchFileSize * 1024 * 1024}" />
|
|
| 161 |
- <input type="hidden" id="fileGroupId" name="fileGroupId" value="${board.atchFileId}"/>
|
|
| 162 |
- <input type="hidden" name="bbsId" value="<c:out value='${brdMstrVO.bbsId}'/>" />
|
|
| 163 |
- <input name="menuId" type="hidden" value="<c:out value='${searchVO.menuId}'/>" />
|
|
| 164 |
- <input type="hidden" name="registAction" value="<c:out value='${searchVO.registAction}'/>"/>
|
|
| 165 |
- <input type="hidden" name="tmplatImportAt" value="<c:out value='${searchVO.tmplatImportAt}'/>"/>
|
|
| 166 |
- <input type="hidden" name="siteId" value="<c:out value='${searchVO.siteId}'/>"/>
|
|
| 167 |
- |
|
| 168 |
- <form:hidden path="nttNo"/> |
|
| 169 |
- <form:hidden path="ctgryId"/> |
|
| 170 |
- <form:hidden path="atchFileId"/> |
|
| 171 |
- |
|
| 172 |
- <table class="chart2" summary="작성인, 제목, 내용, 파일첨부를 입력하는 표입니다." > |
|
| 173 |
- <caption> </caption> |
|
| 174 |
- <colgroup> |
|
| 175 |
- <col width="20%" /> |
|
| 176 |
- <col width="80%" /> |
|
| 177 |
- </colgroup> |
|
| 178 |
- <tbody> |
|
| 179 |
- <c:choose> |
|
| 180 |
- <c:when test="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and searchVO.registAction eq 'reply'}">
|
|
| 181 |
- <input type="hidden" name="nttSj" value="dummy"/> |
|
| 182 |
- <tr> |
|
| 183 |
- <th><spring:message code="cop.processSttus" /></th> |
|
| 184 |
- <td> |
|
| 185 |
- <%-- |
|
| 186 |
- <c:choose> |
|
| 187 |
- <c:when test="${not empty board.processSttusCode}"><c:set var="processSttusCode" value="${board.processSttusCode}"/></c:when>
|
|
| 188 |
- <c:otherwise><c:set var="processSttusCode" value="QA03"/></c:otherwise> |
|
| 189 |
- </c:choose> |
|
| 190 |
- --%> |
|
| 191 |
- <select name="processSttusCode" class="select"> |
|
| 192 |
- <c:forEach var="resultState" items="${qaCodeList}" varStatus="status">
|
|
| 193 |
- <option value='<c:out value="${resultState.code}"/>' <c:if test="${resultState.code eq 'QA03'}">selected="selected"</c:if>><c:out value="${resultState.codeNm}"/></option>
|
|
| 194 |
- </c:forEach> |
|
| 195 |
- </select> |
|
| 196 |
- </td> |
|
| 197 |
- </tr> |
|
| 198 |
- </c:when> |
|
| 199 |
- <c:otherwise> |
|
| 200 |
- <tr> |
|
| 201 |
- <th> |
|
| 202 |
- <label for="nttSj"> |
|
| 119 |
+ <form:hidden path="nttNo"/> |
|
| 120 |
+ <form:hidden path="ctgryId"/> |
|
| 121 |
+ <form:hidden path="atchFileId"/> |
|
| 122 |
+ |
|
| 123 |
+ <fieldset> |
|
| 124 |
+ <legend class="hdn">게시글 입력 폼</legend> |
|
| 125 |
+ |
|
| 126 |
+ <div class="write-type"> |
|
| 127 |
+ <table> |
|
| 128 |
+ <colgroup> |
|
| 129 |
+ <col style="width:250px" /> |
|
| 130 |
+ <col /> |
|
| 131 |
+ </colgroup> |
|
| 132 |
+ <tbody> |
|
| 133 |
+ <c:choose> |
|
| 134 |
+ <c:when test="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and searchVO.registAction eq 'reply'}">
|
|
| 135 |
+ <input type="hidden" name="nttSj" value="dummy"/> |
|
| 136 |
+ <tr> |
|
| 137 |
+ <th><spring:message code="cop.processSttus" /></th> |
|
| 138 |
+ <td> |
|
| 139 |
+ <%-- |
|
| 203 | 140 |
<c:choose> |
| 204 |
- <%-- 교재/사전 --%> |
|
| 205 |
- <c:when test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000005'}">교재명</c:when>
|
|
| 206 |
- <%-- K-MOOC --%> |
|
| 207 |
- <c:when test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000007'}">강좌명</c:when>
|
|
| 208 |
- <c:otherwise><spring:message code="cop.nttSj" /></c:otherwise> |
|
| 141 |
+ <c:when test="${not empty board.processSttusCode}"><c:set var="processSttusCode" value="${board.processSttusCode}"/></c:when>
|
|
| 142 |
+ <c:otherwise><c:set var="processSttusCode" value="QA03"/></c:otherwise> |
|
| 209 | 143 |
</c:choose> |
| 210 |
- </label> |
|
| 211 |
- </th> |
|
| 212 |
- <td><form:input path="nttSj" cssClass="inp_long"/><br/><form:errors path="nttSj" /></td> |
|
| 213 |
- </tr> |
|
| 214 |
- |
|
| 215 |
- <c:if test="${!empty brdMstrVO.ctgrymasterId and searchVO.registAction ne 'reply'}">
|
|
| 216 |
- <tr> |
|
| 217 |
- <th> |
|
| 218 |
- <label for="ctgry1"> |
|
| 219 |
- <c:choose> |
|
| 220 |
- <%-- 교재/사전 --%> |
|
| 221 |
- <c:when test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000005'}">언어</c:when>
|
|
| 222 |
- <c:otherwise><spring:message code="cop.category.view" /></c:otherwise> |
|
| 223 |
- </c:choose> |
|
| 224 |
- </label> |
|
| 225 |
- </th> |
|
| 226 |
- <td> |
|
| 227 |
- <c:forEach var="ctgryLevel" begin="1" end="${boardCateLevel}" step="1" varStatus="status">
|
|
| 228 |
- <c:choose> |
|
| 229 |
- <c:when test="${status.first}">
|
|
| 230 |
- <select name="regCateList" id="ctgry${ctgryLevel}" onchange="fnCtgryChange(${ctgryLevel})">
|
|
| 231 |
- <option value=""><spring:message code="cop.select" /></option> |
|
| 232 |
- <c:forEach var="cate" items="${boardCateList}">
|
|
| 233 |
- <c:if test="${cate.ctgryLevel eq 1 }">
|
|
| 234 |
- <option value="${cate.ctgryId}">${cate.ctgryNm}</option>
|
|
| 235 |
- </c:if> |
|
| 236 |
- </c:forEach> |
|
| 237 |
- </select> |
|
| 238 |
- </c:when> |
|
| 239 |
- <c:otherwise><select name="regCateList" id="ctgry${ctgryLevel}" onchange="fnCtgryChange(${ctgryLevel})"><option value=""><spring:message code="cop.select" /></option></select></c:otherwise>
|
|
| 240 |
- </c:choose> |
|
| 241 |
- </c:forEach> |
|
| 242 |
- <script type="text/javascript"> |
|
| 243 |
- fnCtgryInit('${board.ctgryPathById}');
|
|
| 244 |
- </script> |
|
| 245 |
- </td> |
|
| 246 |
- </tr> |
|
| 247 |
- </c:if> |
|
| 248 |
- |
|
| 249 |
- <c:choose> |
|
| 250 |
- <%-- 교재/사전 --%> |
|
| 251 |
- <c:when test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000005'}">
|
|
| 252 |
- <tr> |
|
| 253 |
- <th><label>출판사</label></th> |
|
| 254 |
- <td><form:input path="tmp01" cssClass="inp_long"/></td> |
|
| 255 |
- </tr> |
|
| 144 |
+ --%> |
|
| 145 |
+ <div class="selectbox"> |
|
| 146 |
+ <select name="processSttusCode" class="select"> |
|
| 147 |
+ <c:forEach var="resultState" items="${qaCodeList}" varStatus="status">
|
|
| 148 |
+ <option value='<c:out value="${resultState.code}"/>' <c:if test="${resultState.code eq 'QA03'}">selected="selected"</c:if>><c:out value="${resultState.codeNm}"/></option>
|
|
| 149 |
+ </c:forEach> |
|
| 150 |
+ </select> |
|
| 151 |
+ </div> |
|
| 152 |
+ </td> |
|
| 153 |
+ </tr> |
|
| 154 |
+ </c:when> |
|
| 155 |
+ <c:otherwise> |
|
| 156 |
+ <tr> |
|
| 157 |
+ <th><label for="nttSj"><spring:message code="cop.nttSj" /></label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 158 |
+ <td> |
|
| 159 |
+ <form:input path="nttSj" cssClass="q4" required="required"/> |
|
| 160 |
+ <div><form:errors path="nttSj"/></div> |
|
| 161 |
+ </td> |
|
| 162 |
+ </tr> |
|
| 163 |
+ <c:if test="${!empty brdMstrVO.ctgrymasterId and searchVO.registAction ne 'reply'}">
|
|
| 256 | 164 |
<tr> |
| 257 |
- <th><label>저자</label></th> |
|
| 258 |
- <td><form:input path="tmp02" cssClass="inp_long"/></td> |
|
| 259 |
- </tr> |
|
| 260 |
- <tr> |
|
| 261 |
- <th><label>책표지</label></th> |
|
| 165 |
+ <th><label for="ctgry1"><spring:message code="cop.category.view" /></label></th> |
|
| 262 | 166 |
<td> |
| 263 |
- <input name="file_1" id="egovComFileUploader" type="file" class="inp" /><br/> |
|
| 264 |
- <span>권장사이즈 220 * 310</span> |
|
| 265 |
- <c:import url="/cmm/fms/selectImageFileInfs.do" charEncoding="utf-8"> |
|
| 266 |
- <c:param name="atchFileId" value="${board.atchFileId}" />
|
|
| 267 |
- <c:param name="mngAt" value="Y"/> |
|
| 268 |
- <c:param name="bbsId" value="${brdMstrVO.bbsId}"/>
|
|
| 269 |
- <c:param name="siteId" value="${brdMstrVO.siteId}"/>
|
|
| 270 |
- <c:param name="width" value="220"/> |
|
| 271 |
- <c:param name="height" value="310"/> |
|
| 272 |
- </c:import> |
|
| 167 |
+ <div class="selectbox"> |
|
| 168 |
+ <c:forEach var="ctgryLevel" begin="1" end="${boardCateLevel}" step="1" varStatus="status">
|
|
| 169 |
+ <c:choose> |
|
| 170 |
+ <c:when test="${status.first}">
|
|
| 171 |
+ <select name="regCateList" id="ctgry${ctgryLevel}" onchange="fnCtgryChange(${ctgryLevel})">
|
|
| 172 |
+ <option value=""><spring:message code="cop.select" /></option> |
|
| 173 |
+ <c:forEach var="cate" items="${boardCateList}">
|
|
| 174 |
+ <c:if test="${cate.ctgryLevel eq 1 }">
|
|
| 175 |
+ <option value="${cate.ctgryId}">${cate.ctgryNm}</option>
|
|
| 176 |
+ </c:if> |
|
| 177 |
+ </c:forEach> |
|
| 178 |
+ </select> |
|
| 179 |
+ </c:when> |
|
| 180 |
+ <c:otherwise><select name="regCateList" id="ctgry${ctgryLevel}" onchange="fnCtgryChange(${ctgryLevel})"><option value=""><spring:message code="cop.select" /></option></select></c:otherwise>
|
|
| 181 |
+ </c:choose> |
|
| 182 |
+ </c:forEach> |
|
| 183 |
+ </div> |
|
| 184 |
+ <script> |
|
| 185 |
+ fnCtgryInit('${board.ctgryPathById}');
|
|
| 186 |
+ </script> |
|
| 273 | 187 |
</td> |
| 274 | 188 |
</tr> |
| 189 |
+ </c:if> |
|
| 190 |
+ |
|
| 191 |
+ <c:if test="${brdMstrVO.othbcUseAt eq 'Y'}">
|
|
| 275 | 192 |
<tr> |
| 276 |
- <th><label>구매URL</label></th> |
|
| 277 |
- <td><form:input path="tmp05" cssClass="inp_long"/></td> |
|
| 278 |
- </tr> |
|
| 279 |
- <tr> |
|
| 280 |
- <th><label>키워드</label></th> |
|
| 281 |
- <td><form:input path="tmp04" cssClass="inp_long"/></td> |
|
| 282 |
- </tr> |
|
| 283 |
- <tr> |
|
| 284 |
- <th><label>E-Book 여부</label></th> |
|
| 193 |
+ <th><label for="othbcAt1"><spring:message code="cop.publicAt" /></label></th> |
|
| 285 | 194 |
<td> |
| 286 |
- <label>예 : <input type="radio" name="tmp03" value="Y" <c:if test="${board.tmp03 eq 'Y'}">checked="checked"</c:if>/></label>
|
|
| 287 |
- <label>아니오 : <input type="radio" name="tmp03" value="N" <c:if test="${board.tmp03 ne 'Y'}">checked="checked"</c:if>/></label>
|
|
| 195 |
+ <div class="checkradio"> |
|
| 196 |
+ <form:radiobutton path="othbcAt" value="Y" /> |
|
| 197 |
+ <label for="othbcAt1"><spring:message code="cop.public" /></label> |
|
| 198 |
+ </div> |
|
| 199 |
+ <div class="checkradio"> |
|
| 200 |
+ <form:radiobutton path="othbcAt" value="N" /> |
|
| 201 |
+ <label for="othbcAt2"><spring:message code="cop.private" /></label> |
|
| 202 |
+ </div> |
|
| 288 | 203 |
</td> |
| 289 | 204 |
</tr> |
| 290 |
- <tr> |
|
| 291 |
- <th><label>학습자료로 공개</label></th> |
|
| 292 |
- <td> |
|
| 293 |
- <label>공개 : <input type="radio" name="tmp06" value="Y" <c:if test="${board.tmp06 eq 'Y'}">checked="checked"</c:if>/></label>
|
|
| 294 |
- <label>비공개 : <input type="radio" name="tmp06" value="N" <c:if test="${board.tmp06 ne 'Y'}">checked="checked"</c:if>/></label>
|
|
| 295 |
- </td> |
|
| 296 |
- </tr> |
|
| 297 |
- <tr> |
|
| 298 |
- <th><label for="noticeAt">메인노출 여부</label></th> |
|
| 299 |
- <td> |
|
| 300 |
- <label><spring:message code="button.yes" /> : <form:radiobutton path="noticeAt" value="Y"/> </label> |
|
| 301 |
- <label><spring:message code="button.no" /> : <form:radiobutton path="noticeAt" value="N"/></label> |
|
| 302 |
- <br/><form:errors path="noticeAt" /> |
|
| 303 |
- </td> |
|
| 304 |
- </tr> |
|
| 305 |
- </c:when> |
|
| 306 |
- <%-- K-MOOC --%> |
|
| 307 |
- <c:when test="${brdMstrVO.bbsId eq 'BBSMSTR_000000000007'}">
|
|
| 308 |
- <tr> |
|
| 309 |
- <th><label>강좌표지</label></th> |
|
| 310 |
- <td> |
|
| 311 |
- <input name="file_1" id="egovComFileUploader" type="file" class="inp" /><br/> |
|
| 312 |
- <span>권장사이즈 395 * 240</span> |
|
| 313 |
- <c:import url="/cmm/fms/selectImageFileInfs.do" charEncoding="utf-8"> |
|
| 314 |
- <c:param name="atchFileId" value="${board.atchFileId}" />
|
|
| 315 |
- <c:param name="mngAt" value="Y"/> |
|
| 316 |
- <c:param name="bbsId" value="${brdMstrVO.bbsId}"/>
|
|
| 317 |
- <c:param name="siteId" value="${brdMstrVO.siteId}"/>
|
|
| 318 |
- <c:param name="width" value="395"/> |
|
| 319 |
- <c:param name="height" value="240"/> |
|
| 320 |
- </c:import> |
|
| 321 |
- </td> |
|
| 322 |
- </tr> |
|
| 323 |
- <tr> |
|
| 324 |
- <th><label>강좌기간</label></th> |
|
| 325 |
- <td><form:input path="tmp01" readonly="true"/> ~ <form:input path="tmp02" readonly="true"/></td> |
|
| 326 |
- </tr> |
|
| 327 |
- <tr> |
|
| 328 |
- <th><label>강좌운영기관</label></th> |
|
| 329 |
- <td><form:input path="tmp03" cssClass="inp_long"/></td> |
|
| 330 |
- </tr> |
|
| 331 |
- <tr> |
|
| 332 |
- <th><label>K-MOOC URL</label></th> |
|
| 333 |
- <td><form:input path="tmp05" cssClass="inp_long"/></td> |
|
| 334 |
- </tr> |
|
| 335 |
- <tr> |
|
| 336 |
- <th><label>학습자료로 공개</label></th> |
|
| 337 |
- <td> |
|
| 338 |
- <label>공개 : <input type="radio" name="tmp06" value="Y" <c:if test="${board.tmp06 eq 'Y'}">checked="checked"</c:if>/></label>
|
|
| 339 |
- <label>비공개 : <input type="radio" name="tmp06" value="N" <c:if test="${board.tmp06 ne 'Y'}">checked="checked"</c:if>/></label>
|
|
| 340 |
- </td> |
|
| 341 |
- </tr> |
|
| 342 |
- </c:when> |
|
| 343 |
- <c:otherwise> |
|
| 344 |
- <c:if test="${brdMstrVO.othbcUseAt eq 'Y'}">
|
|
| 345 |
- <tr> |
|
| 346 |
- <th><label for="othbcAt"><spring:message code="cop.publicAt" /></label></th> |
|
| 347 |
- <td> |
|
| 348 |
- <spring:message code="cop.public" /> : <form:radiobutton path="othbcAt" value="Y"/> |
|
| 349 |
- <spring:message code="cop.private" /> : <form:radiobutton path="othbcAt" value="N"/> |
|
| 350 |
- <br/><form:errors path="othbcAt" /> |
|
| 351 |
- </td> |
|
| 352 |
- </tr> |
|
| 353 |
- </c:if> |
|
| 354 |
- </c:otherwise> |
|
| 355 |
- </c:choose> |
|
| 356 |
- </c:otherwise> |
|
| 357 |
- </c:choose> |
|
| 358 |
- |
|
| 359 |
- <tr> |
|
| 360 |
- <td colspan="2"> |
|
| 361 |
- <form:textarea path="nttCn" rows="30" cssStyle="width:100%"/><br/><form:errors path="nttCn" /> |
|
| 362 |
- </td> |
|
| 363 |
- </tr> |
|
| 364 |
- <c:if test="${brdMstrVO.fileAtchPosblAt eq 'Y'}">
|
|
| 205 |
+ </c:if> |
|
| 206 |
+ </c:otherwise> |
|
| 207 |
+ </c:choose> |
|
| 365 | 208 |
<tr> |
| 366 |
- <th><spring:message code="cop.atchFile" /></th> |
|
| 209 |
+ <th><label for="nttCn">내용</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 367 | 210 |
<td> |
| 368 |
- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 369 |
- <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 370 |
- <c:param name="estnAt" value="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and searchVO.registAction eq 'reply' ? 'Y' : 'N'}" />
|
|
| 371 |
- <c:param name="param_atchFileId" value="${board.atchFileId}" />
|
|
| 372 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 373 |
- <c:param name="mngAt" value="Y"/> |
|
| 374 |
- </c:import> |
|
| 375 |
- <noscript> |
|
| 376 |
- <input name="file_1" id="egovComFileUploader" type="file" class="inp" /> |
|
| 377 |
- </noscript> |
|
| 211 |
+ <form:textarea path="nttCn" rows="30"/> |
|
| 212 |
+ <form:errors path="nttCn" /> |
|
| 378 | 213 |
</td> |
| 379 | 214 |
</tr> |
| 380 |
- </c:if> |
|
| 381 |
- </tbody> |
|
| 382 |
- </table> |
|
| 383 |
- |
|
| 384 |
- <c:if test="${board.bbsId eq 'BBSMSTR_000000000025'}">
|
|
| 385 |
- <strong style="color:red;">※ 첨부파일에 첫번째가 "취소 신청서", 두번째까 "환불 신청서"로 사용자 페이지에 노출됩니다. 순서에 맞게 등록 부탁드립니다.</strong> |
|
| 386 |
- </c:if> |
|
| 387 |
- |
|
| 388 |
- <div class="btn_r"> |
|
| 215 |
+ <c:if test="${brdMstrVO.fileAtchPosblAt eq 'Y'}">
|
|
| 216 |
+ <tr> |
|
| 217 |
+ <th><spring:message code="cop.atchFile" /></th> |
|
| 218 |
+ <td> |
|
| 219 |
+ <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 220 |
+ <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 221 |
+ <c:param name="estnAt" value="${brdMstrVO.bbsAttrbCode eq 'BBSA11' and searchVO.registAction eq 'reply' ? 'Y' : 'N'}" />
|
|
| 222 |
+ <c:param name="param_atchFileId" value="${board.atchFileId}" />
|
|
| 223 |
+ <c:param name="imagePath" value="${_IMG }"/>
|
|
| 224 |
+ <c:param name="mngAt" value="Y"/> |
|
| 225 |
+ </c:import> |
|
| 226 |
+ </td> |
|
| 227 |
+ </tr> |
|
| 228 |
+ </c:if> |
|
| 229 |
+ </tbody> |
|
| 230 |
+ </table> |
|
| 231 |
+ </div> |
|
| 232 |
+ |
|
| 233 |
+ <div class="btn-cont"> |
|
| 389 | 234 |
<c:choose> |
| 390 | 235 |
<c:when test="${searchVO.registAction eq 'regist' }">
|
| 391 |
- <input type="image" src="${_IMG}/btn/btn_regist.gif" alt="등록"/>
|
|
| 236 |
+ <button type="submit" class="btn-lg spot2">등록</button> |
|
| 392 | 237 |
</c:when> |
| 393 | 238 |
<c:when test="${searchVO.registAction eq 'updt' }">
|
| 394 |
- <input type="image" src="${_IMG}/btn/btn_modify.gif" alt="수정"/>
|
|
| 239 |
+ <button type="submit" class="btn-lg spot2">수정</button> |
|
| 395 | 240 |
</c:when> |
| 396 | 241 |
<c:when test="${searchVO.registAction eq 'reply' }">
|
| 397 |
- <input type="image" src="${_IMG}/btn/btn_reply.gif" alt="답변"/>
|
|
| 242 |
+ <button type="submit" class="btn-lg spot2">딥변</button> |
|
| 398 | 243 |
</c:when> |
| 399 |
- </c:choose> |
|
| 400 |
- <c:url var="selectBoardListUrl" value="${_PREFIX}/selectBoardList.do">
|
|
| 401 |
- <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 244 |
+ </c:choose> |
|
| 245 |
+ |
|
| 246 |
+ <c:url var="selectBoardListUrl" value="${_PREFIX}/selectBoardList.do">
|
|
| 247 |
+ <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 402 | 248 |
<c:param name="sysTyCode" value="${searchVO.sysTyCode}"/>
|
| 403 |
- <c:param name="bbsId" value="${brdMstrVO.bbsId}" />
|
|
| 404 |
- <c:param name="trgetId" value="${searchVO.trgetId}" />
|
|
| 405 |
- <c:param name="pageIndex" value="${searchVO.pageIndex}" />
|
|
| 249 |
+ <c:param name="bbsId" value="${brdMstrVO.bbsId}" />
|
|
| 250 |
+ <c:param name="trgetId" value="${searchVO.trgetId}" />
|
|
| 251 |
+ <c:param name="pageIndex" value="${searchVO.pageIndex}" />
|
|
| 406 | 252 |
<c:param name="searchCondition" value="${searchVO.searchCondition}" />
|
| 407 | 253 |
<c:param name="searchKeyword" value="${searchVO.searchKeyword}" />
|
| 408 | 254 |
<c:param name="searchCate" value="${searchVO.searchCate}" />
|
| 409 | 255 |
<c:forEach var="searchCate" items="${searchVO.searchCateList}" varStatus="statusCate">
|
| 410 |
- <c:if test="${not empty searchCate}">
|
|
| 411 |
- <c:param name="searchCateList" value="${searchCate}" />
|
|
| 412 |
- </c:if> |
|
| 413 |
- </c:forEach> |
|
| 414 |
- </c:url> |
|
| 415 |
- <%-- nttNo = 0은 취소/환불 규정 때문에 처리함 --%> |
|
| 416 |
- <c:choose> |
|
| 417 |
- <c:when test="${searchVO.nttNo ne 0 }"><a href="${selectBoardListUrl}"><img src="${_IMG}/btn/btn_list.gif" alt="목록" /></a></c:when>
|
|
| 418 |
- <c:otherwise> |
|
| 419 |
- <a href="/mng/cop/bbs/selectBoardArticle.do?nttNo=0&siteId=${searchVO.siteId}&bbsId=${brdMstrVO.bbsId}&trgetId=SYSTEM_DEFAULT_BOARD">
|
|
| 420 |
- <img src="${_IMG}/btn/btn_list.gif" alt="목록" />
|
|
| 421 |
- </a> |
|
| 422 |
- </c:otherwise> |
|
| 423 |
- </c:choose> |
|
| 256 |
+ <c:if test="${not empty searchCate}">
|
|
| 257 |
+ <c:param name="searchCateList" value="${searchCate}" />
|
|
| 258 |
+ </c:if> |
|
| 259 |
+ </c:forEach> |
|
| 260 |
+ </c:url> |
|
| 261 |
+ <a href="${selectBoardListUrl}" class="btn btn-lg">목록</a>
|
|
| 424 | 262 |
</div> |
| 425 |
- </form:form> |
|
| 426 |
- |
|
| 427 |
-</div> |
|
| 263 |
+ </fieldset> |
|
| 264 |
+</form:form> |
|
| 428 | 265 |
|
| 429 | 266 |
<c:import url="/EgovPageLink.do?link=/mng/template/popBottom" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/ccm/cca/CcmCmmnCodeList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/ccm/cca/CcmCmmnCodeList.jsp
... | ... | @@ -86,7 +86,7 @@ |
| 86 | 86 |
</td> |
| 87 | 87 |
<td data-tit="코드갯수"><c:out value="${resultInfo.codeCnt}"/></td>
|
| 88 | 88 |
<td data-tit="하위코드"> |
| 89 |
- <a href="/mng/sym/ccm/cde/EgovCcmCmmnDetailCodeList.do?searchCode=<c:out value="${resultInfo.codeId}"/>" onclick="fn_egov_CmmnCode(this.href);return false;" class="btn btn-sm spot">하위코드관리</a>
|
|
| 89 |
+ <a href="/mng/sym/ccm/cde/EgovCcmCmmnDetailCodeList.do?searchCode=<c:out value="${resultInfo.codeId}"/>" onclick="fn_egov_CmmnCode(this.href);return false;" class="btn btn-sm spot"><i class="ico-sm-menu"></i> 하위코드관리</a>
|
|
| 90 | 90 |
</td> |
| 91 | 91 |
<td data-tit="관리"> |
| 92 | 92 |
<div class="btn-cont"> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmHistoryList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmHistoryList.jsp
... | ... | @@ -1,22 +1,12 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@ page import="egovframework.com.cmm.service.EgovProperties"%> |
|
| 3 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
|
| 4 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 5 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
|
| 6 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 7 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> |
|
| 8 |
-<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
|
| 9 |
-<c:set var="_C_IMG" value="/template/common/images"/> |
|
| 10 |
-<c:set var="_C_JS" value="/template/common/js"/> |
|
| 11 |
-<c:set var="_IMG" value="/resources/template/manage/images"/> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 12 | 3 |
|
| 13 | 4 |
<c:import url="/EgovPageLink.do?link=/mng/template/popTop" charEncoding="utf-8"> |
| 14 | 5 |
<c:param name="title" value="메뉴 복원"/> |
| 15 | 6 |
</c:import> |
| 16 | 7 |
|
| 17 |
-<script type="text/javascript" language="javascript"> |
|
| 8 |
+<script> |
|
| 18 | 9 |
function fn_egov_Rollback(id){
|
| 19 |
- |
|
| 20 | 10 |
if(confirm("복원하시겠습니까?")){
|
| 21 | 11 |
document.location.href = "/mng/sym/mpm/updateMpmRollBack.do?siteId=${searchVO.siteId}&menuId=${searchVO.menuId}&menuHistId=" + id;
|
| 22 | 12 |
} |
... | ... | @@ -27,63 +17,55 @@ |
| 27 | 17 |
</c:if> |
| 28 | 18 |
</script> |
| 29 | 19 |
|
| 30 |
-<div id="cntnts"> |
|
| 31 |
- |
|
| 32 |
- |
|
| 33 |
-<p class="total">총 ${paginationInfo.totalRecordCount}개 ㅣ 현재페이지 <strong class="green">${paginationInfo.currentPageNo}</strong>/${paginationInfo.totalPageCount}</p>
|
|
| 34 |
- |
|
| 35 |
- <table class="chart_board"> |
|
| 36 |
- <colgroup> |
|
| 37 |
- <col class="co1"/> |
|
| 38 |
- <col class="co3"/> |
|
| 39 |
- <col class="co6"/> |
|
| 40 |
- </colgroup> |
|
| 41 |
- <thead> |
|
| 42 |
- <tr> |
|
| 43 |
- <th>번호</th> |
|
| 44 |
- <th>변경일자</th> |
|
| 45 |
- <th>복원</th> |
|
| 46 |
- </tr> |
|
| 47 |
- </thead> |
|
| 48 |
- <tbody> |
|
| 49 |
- |
|
| 50 |
- |
|
| 51 |
- <c:forEach var="result" items="${resultList}" varStatus="status">
|
|
| 52 |
- <tr> |
|
| 53 |
- <td><c:out value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageUnit) - (status.count - 1)}" /></td>
|
|
| 54 |
- <td> |
|
| 55 |
- <c:url var="viewUrl" value="/mng/sym/mpm/selectMpmHistory.do"> |
|
| 56 |
- <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 57 |
- <c:param name="menuHistId" value="${result.menuHistId}" />
|
|
| 58 |
- <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 59 |
- <c:if test="${not empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if>
|
|
| 60 |
- </c:url> |
|
| 61 |
- <a href="${viewUrl}"><fmt:formatDate value="${result.lastUpdusrPnttm}" pattern="yyyy-MM-dd HH:mm:ss"/></a>
|
|
| 62 |
- </td> |
|
| 63 |
- <td><a href="#" onclick="fn_egov_Rollback('${result.menuHistId}'); return false;"><img src="${_IMG}/btn/btn_select.gif" alt="선택"/></a></td>
|
|
| 64 |
- </tr> |
|
| 65 |
- </c:forEach> |
|
| 66 |
- <c:if test="${fn:length(resultList) == 0}">
|
|
| 67 |
- <tr> |
|
| 68 |
- <td colspan="3" ><spring:message code="common.nodata.msg" /></td> |
|
| 69 |
- </tr> |
|
| 70 |
- </c:if> |
|
| 71 |
- |
|
| 72 |
- </tbody> |
|
| 73 |
- </table> |
|
| 74 |
- |
|
| 75 |
- |
|
| 76 |
- <div id="paging"> |
|
| 77 |
- <c:url var="pageUrl" value="/mng/sym/mpm/selectMpmHistoryList.do"> |
|
| 78 |
- <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 79 |
- <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 80 |
- </c:url> |
|
| 81 |
- |
|
| 82 |
- <ul> |
|
| 83 |
- <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" />
|
|
| 84 |
- </ul> |
|
| 85 |
- </div> |
|
| 20 |
+<p class="total-count">총 ${paginationInfo.totalRecordCount}개 ㅣ 현재페이지 <strong class="green">${paginationInfo.currentPageNo}</strong>/${paginationInfo.totalPageCount}</p>
|
|
| 21 |
+<div class="list-type sm"> |
|
| 22 |
+ <table> |
|
| 23 |
+ <colgroup> |
|
| 24 |
+ <col style="width:110px"> |
|
| 25 |
+ <col> |
|
| 26 |
+ <col style="width:130px"> |
|
| 27 |
+ </colgroup> |
|
| 28 |
+ <thead> |
|
| 29 |
+ <tr> |
|
| 30 |
+ <th scope="col">번호</th> |
|
| 31 |
+ <th scope="col">변경일자</th> |
|
| 32 |
+ <th scope="col">복원</th> |
|
| 33 |
+ </tr> |
|
| 34 |
+ </thead> |
|
| 35 |
+ <tbody> |
|
| 36 |
+ <c:forEach var="result" items="${resultList}" varStatus="status">
|
|
| 37 |
+ <tr> |
|
| 38 |
+ <td data-tit="번호"><c:out value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageUnit) - (status.count - 1)}" /></td>
|
|
| 39 |
+ <td data-tit="변경일자"> |
|
| 40 |
+ <c:url var="viewUrl" value="/mng/sym/mpm/selectMpmHistory.do"> |
|
| 41 |
+ <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 42 |
+ <c:param name="menuHistId" value="${result.menuHistId}" />
|
|
| 43 |
+ <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 44 |
+ <c:if test="${not empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if>
|
|
| 45 |
+ </c:url> |
|
| 46 |
+ <a href="${viewUrl}"><fmt:formatDate value="${result.lastUpdusrPnttm}" pattern="yyyy-MM-dd HH:mm:ss"/></a>
|
|
| 47 |
+ </td> |
|
| 48 |
+ <td data-tit="복원"> |
|
| 49 |
+ <button type="button" class="btn-sm spot" onclick="fn_egov_Rollback('${result.menuHistId}'); return false;">선택</button>
|
|
| 50 |
+ </td> |
|
| 86 | 51 |
|
| 87 |
-</div> |
|
| 52 |
+ </tr> |
|
| 53 |
+ </c:forEach> |
|
| 54 |
+ |
|
| 55 |
+ <c:if test="${fn:length(resultList) == 0}">
|
|
| 56 |
+ <tr> |
|
| 57 |
+ <td class="" colspan="3"><spring:message code="common.nodata.msg" /></td> |
|
| 58 |
+ </tr> |
|
| 59 |
+ </c:if> |
|
| 60 |
+ </tbody> |
|
| 61 |
+ </table> |
|
| 62 |
+</div> |
|
| 63 |
+<c:url var="pageUrl" value="/mng/sym/mpm/selectMpmHistoryList.do"> |
|
| 64 |
+ <c:param name="siteId" value="${searchVO.siteId}"/>
|
|
| 65 |
+ <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 66 |
+</c:url> |
|
| 67 |
+<ul class="paging"> |
|
| 68 |
+ <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" />
|
|
| 69 |
+</ul> |
|
| 88 | 70 |
|
| 89 | 71 |
<c:import url="/EgovPageLink.do?link=/mng/template/popBottom" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmHistoryView.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmHistoryView.jsp
... | ... | @@ -1,33 +1,155 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|
| 3 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 4 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
|
| 5 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 6 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> |
|
| 7 |
-<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> |
|
| 8 |
-<c:set var="_IMG" value="/resources/template/manage/images"/> |
|
| 9 |
-<c:set var="_C_LIB" value="/resources/lib"/> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 3 |
+ |
|
| 10 | 4 |
<c:set var="_EDITOR_ID" value="htmlCn_Html"/> |
| 11 |
-<c:set var="_MOBILE_EDITOR_ID" value="mobileHtmlCn_Html"/> |
|
| 12 | 5 |
|
| 13 | 6 |
<c:import url="/EgovPageLink.do?link=/mng/template/popTop" charEncoding="utf-8"> |
| 14 | 7 |
<c:param name="title" value="메뉴 복원"/> |
| 15 | 8 |
</c:import> |
| 16 | 9 |
|
| 17 |
-<script type="text/javascript" src="${_C_LIB}/tiny_mce/jquery.tinymce.js"></script>
|
|
| 18 |
-<script type="text/javascript"> |
|
| 10 |
+<script src="${C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
|
|
| 11 |
+<script src="${C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
|
| 12 |
+ |
|
| 13 |
+<script src="${C_LIB}/ace/src-min/ace.js"></script>
|
|
| 14 |
+<script> |
|
| 15 |
+ |
|
| 16 |
+ function fn_egov_preview_mnu() {
|
|
| 17 |
+ var compositionTyCode = $("input[name=compositionTyCode]:checked").val();
|
|
| 18 |
+ var url = $("#url").val();
|
|
| 19 |
+ |
|
| 20 |
+ if(url.indexOf("http") === 0 && compositionTyCode === "LINK") {
|
|
| 21 |
+ window.open(url,"PREVIEWWINDOW",""); |
|
| 22 |
+ return false; |
|
| 23 |
+ } |
|
| 24 |
+ |
|
| 25 |
+ if(!fn_egov_validatet_mnu()) {
|
|
| 26 |
+ return; |
|
| 27 |
+ } |
|
| 28 |
+ |
|
| 29 |
+ document.mnuVO.action = "/mng/sym/mpm/previewMpm.do"; |
|
| 30 |
+ document.mnuVO.target = "previewForm"; |
|
| 31 |
+ document.mnuVO.submit(); |
|
| 32 |
+ |
|
| 33 |
+ } |
|
| 34 |
+ |
|
| 35 |
+ function fn_egov_preview_callback(url) {
|
|
| 36 |
+ if(url.indexOf == -1) {
|
|
| 37 |
+ url = url + '?'; |
|
| 38 |
+ } |
|
| 39 |
+ |
|
| 40 |
+ var win = window.open('about:blank' ,'preview','');
|
|
| 41 |
+ |
|
| 42 |
+ document.mnuVO.action = url + '&previewYn=Y'; |
|
| 43 |
+ document.mnuVO.target = "preview"; |
|
| 44 |
+ document.mnuVO.submit(); |
|
| 45 |
+ |
|
| 46 |
+ if(win != null) {
|
|
| 47 |
+ win.focus(); |
|
| 48 |
+ } |
|
| 49 |
+ } |
|
| 50 |
+ |
|
| 51 |
+ function fn_egov_regist_mnu() {
|
|
| 52 |
+ if(!fn_egov_validatet_mnu()) {
|
|
| 53 |
+ return false; |
|
| 54 |
+ } |
|
| 55 |
+ |
|
| 56 |
+ $('#fileGroupId').val($('#fileGroupId_${_EDITOR_ID}').val());
|
|
| 57 |
+ $('#mobileFileGroupId').val($('#fileGroupId_${_MOBILE_EDITOR_ID}').val());
|
|
| 58 |
+ |
|
| 59 |
+ if(!confirm("<spring:message code="${_MODE eq 'REG' ? 'common.regist.msg' : 'common.update.msg'}" />")){
|
|
| 60 |
+ return false; |
|
| 61 |
+ } |
|
| 62 |
+ |
|
| 63 |
+ document.mnuVO.action = "${_MODE eq 'REG' ? '/mng/sym/mpm/insertMpm.do' : '/mng/sym/mpm/updateMpm.do'}";
|
|
| 64 |
+ document.mnuVO.target = "_self"; |
|
| 65 |
+ //document.mnuVO.submit(); |
|
| 66 |
+ } |
|
| 67 |
+ |
|
| 68 |
+ function fn_egov_validatet_mnu() {
|
|
| 69 |
+ |
|
| 70 |
+ tinyMCE.triggerSave(); |
|
| 71 |
+ /* |
|
| 72 |
+ if (!validateMnuVO(document.mnuVO)){
|
|
| 73 |
+ return false; |
|
| 74 |
+ } |
|
| 75 |
+ */ |
|
| 76 |
+ if(!fnImageCheck('imageFile')) {
|
|
| 77 |
+ return false; |
|
| 78 |
+ } |
|
| 79 |
+ |
|
| 80 |
+ var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val(); //구성유형
|
|
| 81 |
+ var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val(); //컨텐츠유형
|
|
| 82 |
+ |
|
| 83 |
+ if(compositionTyCode == 'LINK') {
|
|
| 84 |
+ if($.trim($('#url').val()) == "") {
|
|
| 85 |
+ alert("URL 을 입력하세요");
|
|
| 86 |
+ $('#url').focus();
|
|
| 87 |
+ return false; |
|
| 88 |
+ } |
|
| 89 |
+ } |
|
| 90 |
+ |
|
| 91 |
+ var progrmId = ""; |
|
| 92 |
+ if(cntntsTyCode == 'CTS02') {
|
|
| 93 |
+ progrmId = $('#selectBbs option:selected').val();
|
|
| 94 |
+ if(progrmId == "") {
|
|
| 95 |
+ alert("게시판을 선택하세요");
|
|
| 96 |
+ $('#selectBbs').focus();
|
|
| 97 |
+ return false; |
|
| 98 |
+ } |
|
| 99 |
+ } |
|
| 100 |
+ |
|
| 101 |
+ if(cntntsTyCode == 'CTS04') {
|
|
| 102 |
+ progrmId = $('#selectProgrmId option:selected').val();
|
|
| 103 |
+ if(progrmId == "") {
|
|
| 104 |
+ alert("프로그램을 선택하세요");
|
|
| 105 |
+ $('#selectProgrmId').focus();
|
|
| 106 |
+ return false; |
|
| 107 |
+ } |
|
| 108 |
+ } |
|
| 109 |
+ |
|
| 110 |
+ if(cntntsTyCode == 'CTS05' || cntntsTyCode == 'CTS06') {
|
|
| 111 |
+ progrmId = ""; |
|
| 112 |
+ if($.trim($('#url').val()) == "") {
|
|
| 113 |
+ alert("URL 을 입력하세요");
|
|
| 114 |
+ $('#url').focus();
|
|
| 115 |
+ return false; |
|
| 116 |
+ } |
|
| 117 |
+ } |
|
| 118 |
+ |
|
| 119 |
+ if(!$.isNumeric($('#sortOrdr').val())) {
|
|
| 120 |
+ alert("노출순서는 숫자만 입력하세요");
|
|
| 121 |
+ $('#sortOrdr').focus();
|
|
| 122 |
+ return false; |
|
| 123 |
+ } |
|
| 124 |
+ |
|
| 125 |
+ $('#progrmId').val(progrmId);
|
|
| 126 |
+ |
|
| 127 |
+ $('#htmlCn').val($('input:radio[name=htmlsourcTyCode]:checked').val() == 'HTML' ? $('#htmlCn_Html').val() : $('#htmlCn_Jsp').val());
|
|
| 128 |
+ $('#mobileHtmlCn').val($('input:radio[name=mobileHtmlsourcTyCode]:checked').val() == 'HTML' ? $('#mobileHtmlCn_Html').val() : $('#mobileHtmlCn_Jsp').val());
|
|
| 129 |
+ |
|
| 130 |
+ if($.trim($('#menuId').val()) == "") {
|
|
| 131 |
+ $('#menuId').val($('#takeMenuId').val());
|
|
| 132 |
+ } |
|
| 133 |
+ return true; |
|
| 134 |
+ } |
|
| 135 |
+ |
|
| 136 |
+ function fileDel(valId, divId) {
|
|
| 137 |
+ $('#' + valId).val('');
|
|
| 138 |
+ $('#' + divId).toggle();
|
|
| 139 |
+ } |
|
| 140 |
+ |
|
| 19 | 141 |
function fn_egov_select_prog() {
|
| 20 |
- |
|
| 142 |
+ |
|
| 21 | 143 |
var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
| 22 | 144 |
var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
| 23 | 145 |
if(compositionTyCode == 'LINK' && cntntsTyCode != 'CTS01') {
|
| 24 | 146 |
$('input:radio[name=compositionTyCode]:input[value=CNTNTS]').attr('checked', true);
|
| 25 |
- } |
|
| 26 |
- |
|
| 27 |
- fn_egov_all_prog_hide(); |
|
| 28 |
- |
|
| 147 |
+ } |
|
| 148 |
+ |
|
| 149 |
+ fn_egov_all_prog_hide(); |
|
| 150 |
+ |
|
| 29 | 151 |
if(cntntsTyCode == 'CTS01') {//없음
|
| 30 |
- |
|
| 152 |
+ |
|
| 31 | 153 |
} else if(cntntsTyCode == 'CTS02') {//게시판
|
| 32 | 154 |
$('#bbsDiv').show();
|
| 33 | 155 |
} else if(cntntsTyCode == 'CTS04') {//프로그램
|
... | ... | @@ -38,7 +160,7 @@ |
| 38 | 160 |
} |
| 39 | 161 |
|
| 40 | 162 |
function fn_egov_all_prog_hide() {
|
| 41 |
- |
|
| 163 |
+ |
|
| 42 | 164 |
$('#bbsDiv').hide();
|
| 43 | 165 |
$('#progDiv').hide();
|
| 44 | 166 |
$('#urlTr').hide();
|
... | ... | @@ -46,464 +168,469 @@ |
| 46 | 168 |
|
| 47 | 169 |
function fn_egov_select_comp() {
|
| 48 | 170 |
|
| 49 |
- var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
|
| 50 |
- |
|
| 51 |
- $('#htmlTr').hide(1, fnTabHide);
|
|
| 171 |
+ var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
|
| 172 |
+ |
|
| 173 |
+ $('#htmlTr').hide();
|
|
| 52 | 174 |
$('#urlTr').hide();
|
| 53 | 175 |
if(compositionTyCode == 'LINK') {
|
| 54 | 176 |
$('input:radio[name=htmlUseAt]:input[value=N]').attr('checked', true);
|
| 55 | 177 |
$('input:radio[name=cntntsTyCode]:input[value=CTS01]').attr('checked', true);
|
| 56 |
- fn_egov_all_prog_hide(); |
|
| 178 |
+ fn_egov_all_prog_hide(); |
|
| 57 | 179 |
$('#urlTr').show();
|
| 58 |
- |
|
| 180 |
+ |
|
| 59 | 181 |
} else if(compositionTyCode == 'CNTNTS') {
|
| 60 | 182 |
if($('input:radio[name=htmlUseAt]:checked').val() == "Y") {
|
| 61 |
- $('#htmlTr').show(1, fnTabShow);
|
|
| 183 |
+ $('#htmlTr').show();
|
|
| 62 | 184 |
} |
| 63 |
- |
|
| 64 |
- var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
|
| 65 |
- if(cntntsTyCode == 'CTS05' || cntntsTyCode == 'CTS06') {
|
|
| 66 |
- $('#urlTr').show();
|
|
| 67 |
- } |
|
| 185 |
+ |
|
| 186 |
+ var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
|
| 187 |
+ if(cntntsTyCode == 'CTS05' || cntntsTyCode == 'CTS06') {
|
|
| 188 |
+ $('#urlTr').show();
|
|
| 189 |
+ } |
|
| 68 | 190 |
} |
| 69 |
- } |
|
| 191 |
+ } |
|
| 70 | 192 |
|
| 71 |
- function fn_egov_select_html() {
|
|
| 72 |
- |
|
| 73 |
- var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
|
| 74 |
- var htmlUseAt = $('input:radio[name=htmlUseAt]:checked').val();
|
|
| 75 |
- |
|
| 76 |
- |
|
| 77 |
- if(compositionTyCode == 'LINK' && htmlUseAt == 'Y') {
|
|
| 78 |
- $('input:radio[name=compositionTyCode]:input[value=CNTNTS]').attr('checked', true);
|
|
| 79 |
- var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
|
| 80 |
- if(cntntsTyCode == 'CTS05' || cntntsTyCode == 'CTS06') {
|
|
| 81 |
- $('#urlTr').show();
|
|
| 82 |
- } else {
|
|
| 83 |
- $('#urlTr').hide();
|
|
| 84 |
- } |
|
| 85 |
- } |
|
| 86 |
- |
|
| 193 |
+ function fn_egov_select_html() {
|
|
| 194 |
+ |
|
| 195 |
+ var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
|
| 196 |
+ var htmlUseAt = $('input:radio[name=htmlUseAt]:checked').val();
|
|
| 197 |
+ |
|
| 198 |
+ |
|
| 199 |
+ if(compositionTyCode == 'LINK' && htmlUseAt == 'Y') {
|
|
| 200 |
+ $('input:radio[name=compositionTyCode]:input[value=CNTNTS]').attr('checked', true);
|
|
| 201 |
+ var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
|
| 202 |
+ if(cntntsTyCode == 'CTS05' || cntntsTyCode == 'CTS06') {
|
|
| 203 |
+ $('#urlTr').show();
|
|
| 204 |
+ } else {
|
|
| 205 |
+ $('#urlTr').hide();
|
|
| 206 |
+ } |
|
| 207 |
+ } |
|
| 208 |
+ |
|
| 87 | 209 |
if(htmlUseAt == 'Y') {
|
| 88 |
- $('#htmlTr').show(1, fnTabShow);
|
|
| 210 |
+ $('#htmlTr').show();
|
|
| 89 | 211 |
} else if(htmlUseAt == 'N') {
|
| 90 |
- $('#htmlTr').hide(1, fnTabHide);
|
|
| 91 |
- } |
|
| 92 |
- } |
|
| 93 |
- |
|
| 94 |
- function fn_egov_select_html_cn() {
|
|
| 95 |
- var htmlsourcTyCode = $('input:radio[name=htmlsourcTyCode]:checked').val();
|
|
| 96 |
- $('#div_HtmlCn_Html').hide();
|
|
| 212 |
+ $('#htmlTr').hide();
|
|
| 213 |
+ } |
|
| 214 |
+ } |
|
| 215 |
+ |
|
| 216 |
+ function fn_egov_select_html_cn() {
|
|
| 217 |
+ var htmlsourcTyCode = $('input:radio[name=htmlsourcTyCode]:checked').val();
|
|
| 218 |
+ $('#div_HtmlCn_Html').hide();
|
|
| 97 | 219 |
$('#div_HtmlCn_Jsp').hide();
|
| 98 |
- |
|
| 99 |
- if(htmlsourcTyCode == 'HTML') {
|
|
| 100 |
- $('#div_HtmlCn_Html').show();
|
|
| 101 |
- } else if(htmlsourcTyCode == 'JSP') {
|
|
| 102 |
- $('#div_HtmlCn_Jsp').show();
|
|
| 103 |
- } |
|
| 104 |
- } |
|
| 105 |
- |
|
| 220 |
+ |
|
| 221 |
+ if(htmlsourcTyCode == 'HTML') {
|
|
| 222 |
+ $('#div_HtmlCn_Html').show();
|
|
| 223 |
+ } else if(htmlsourcTyCode == 'JSP') {
|
|
| 224 |
+ $('#div_HtmlCn_Jsp').show();
|
|
| 225 |
+ } |
|
| 226 |
+ } |
|
| 227 |
+ |
|
| 106 | 228 |
function fn_egov_select_html_mobile_cn() {
|
| 107 |
- var mobileHtmlsourcTyCode = $('input:radio[name=mobileHtmlsourcTyCode]:checked').val();
|
|
| 108 |
- $('#div_MobileHtmlCn_Html').hide();
|
|
| 229 |
+ var mobileHtmlsourcTyCode = $('input:radio[name=mobileHtmlsourcTyCode]:checked').val();
|
|
| 230 |
+ $('#div_MobileHtmlCn_Html').hide();
|
|
| 109 | 231 |
$('#div_MobileHtmlCn_Jsp').hide();
|
| 110 |
- |
|
| 111 |
- if(mobileHtmlsourcTyCode == 'HTML') {
|
|
| 112 |
- $('#div_MobileHtmlCn_Html').show();
|
|
| 113 |
- } else if(mobileHtmlsourcTyCode == 'JSP') {
|
|
| 114 |
- $('#div_MobileHtmlCn_Jsp').show();
|
|
| 115 |
- } |
|
| 116 |
- } |
|
| 117 | 232 |
|
| 118 |
- |
|
| 119 |
- function fnTabView(idx) {
|
|
| 120 |
- |
|
| 121 |
- $('#tabLink01').removeClass('active');
|
|
| 122 |
- $('#tabLink02').removeClass('active');
|
|
| 123 |
- $('#tabLink' + idx).addClass('active');
|
|
| 124 |
- |
|
| 125 |
- $('#tab01').hide();
|
|
| 126 |
- $('#tab02').hide();
|
|
| 127 |
- $('#tab' + idx).show();
|
|
| 128 |
- |
|
| 129 |
- } |
|
| 233 |
+ if(mobileHtmlsourcTyCode == 'HTML') {
|
|
| 234 |
+ $('#div_MobileHtmlCn_Html').show();
|
|
| 235 |
+ } else if(mobileHtmlsourcTyCode == 'JSP') {
|
|
| 236 |
+ $('#div_MobileHtmlCn_Jsp').show();
|
|
| 237 |
+ } |
|
| 238 |
+ } |
|
| 130 | 239 |
|
| 131 |
- function fnTabShow() {
|
|
| 132 |
- |
|
| 240 |
+ |
|
| 241 |
+ function fnTabView(idx) {
|
|
| 242 |
+ |
|
| 243 |
+ $('#tabLink01').removeClass('active');
|
|
| 244 |
+ $('#tabLink02').removeClass('active');
|
|
| 245 |
+ $('#tabLink' + idx).addClass('active');
|
|
| 246 |
+ |
|
| 247 |
+ $('#tab01').hide();
|
|
| 248 |
+ $('#tab02').hide();
|
|
| 249 |
+ $('#tab' + idx).show();
|
|
| 250 |
+ |
|
| 251 |
+ } |
|
| 252 |
+ |
|
| 253 |
+ function fnTabShow() {
|
|
| 254 |
+ |
|
| 133 | 255 |
if($('#tabLink01').attr('class') == 'active') {
|
| 134 | 256 |
$('#tab01').show();
|
| 135 | 257 |
} else if($('#tabLink02').attr('class') == 'active') {
|
| 136 | 258 |
$('#tab02').show();
|
| 137 |
- } |
|
| 138 |
- } |
|
| 139 |
- |
|
| 259 |
+ } |
|
| 260 |
+ } |
|
| 261 |
+ |
|
| 140 | 262 |
function fnTabHide() {
|
| 141 |
- $('#tab01').hide();
|
|
| 142 |
- $('#tab02').hide();
|
|
| 143 |
- } |
|
| 144 |
- |
|
| 263 |
+ //$('#tab01').hide();
|
|
| 264 |
+ //$('#tab02').hide();
|
|
| 265 |
+ } |
|
| 266 |
+ |
|
| 145 | 267 |
$(document).ready( function() {
|
| 146 | 268 |
var adfile_config = {
|
| 147 |
- storePath:"Menu.fileStorePath", |
|
| 148 |
- appendPath:"", |
|
| 149 |
- siteId:"${searchVO.siteId}",
|
|
| 150 |
- editorId:"${_EDITOR_ID}"
|
|
| 151 |
- }; |
|
| 152 |
- |
|
| 153 |
- var moblie_adfile_config = {
|
|
| 154 |
- storePath:"Menu.fileStorePath", |
|
| 155 |
- appendPath:"", |
|
| 156 |
- siteId:"${searchVO.siteId}",
|
|
| 157 |
- editorId:"${_MOBILE_EDITOR_ID}"
|
|
| 158 |
- }; |
|
| 159 |
- |
|
| 160 |
- $('#' + adfile_config.editorId).tinymce({
|
|
| 161 |
- script_url : '${_C_LIB}/tiny_mce/tiny_mce.js',
|
|
| 162 |
- language : "ko", |
|
| 163 |
- theme : "advanced", |
|
| 164 |
- skin : "o2k7", |
|
| 165 |
- skin_variant : "silver", |
|
| 166 |
- plugins : "autolink,lists,table,advhr,advimage,advlink,inlinepopups,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,advlist,advfile,template", |
|
| 167 |
- theme_advanced_buttons1 : "img,|,attach,|,media,|,template",//"image,file,media", |
|
| 168 |
- theme_advanced_buttons2 : "code,|,fullscreen,|,preview,|,print,|,newdocument,|,undo,redo,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink,cleanup,|,tablecontrols", |
|
| 169 |
- theme_advanced_buttons3 : "fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,outdent,indent,|,charmap,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl", |
|
| 170 |
- theme_advanced_toolbar_location : "top", |
|
| 171 |
- theme_advanced_toolbar_align : "left", |
|
| 172 |
- theme_advanced_statusbar_location : "bottom", |
|
| 173 |
- theme_advanced_resizing : true, |
|
| 174 |
- content_css : "/resources/template/manage/css/default.css", |
|
| 175 |
- template_external_list_url : "/resources/template/manage/docTemplate/mpm/template_list.js", |
|
| 176 |
- convert_urls : false, |
|
| 177 |
- adfile_external_param : adfile_config, |
|
| 178 |
- setup : function(ed) {
|
|
| 179 |
- ed.addButton('img', {
|
|
| 180 |
- title : '이미지 삽입/편집', |
|
| 181 |
- image : '/lib/tiny_mce/img/icon_01.gif', |
|
| 182 |
- onclick : function() {
|
|
| 183 |
- ed.execCommand('mceAdvImage');
|
|
| 184 |
- } |
|
| 185 |
- }); |
|
| 186 |
- ed.addButton('attach', {
|
|
| 187 |
- title : '파일 첨부', |
|
| 188 |
- image : '/lib/tiny_mce/img/icon_03.gif', |
|
| 189 |
- onclick : function() {
|
|
| 190 |
- ed.execCommand('mceAdvFile');
|
|
| 191 |
- } |
|
| 192 |
- }); |
|
| 193 |
- } |
|
| 194 |
- }); |
|
| 195 |
- |
|
| 196 |
- fn_egov_file_clean_action(adfile_config.editorId); |
|
| 197 |
- |
|
| 198 |
- $('#' + moblie_adfile_config.editorId).tinymce({
|
|
| 199 |
- script_url : '${_C_LIB}/tiny_mce/tiny_mce.js',
|
|
| 200 |
- language : "ko", |
|
| 201 |
- theme : "advanced", |
|
| 202 |
- skin : "o2k7", |
|
| 203 |
- skin_variant : "silver", |
|
| 204 |
- plugins : "autolink,lists,table,advhr,advimage,advlink,inlinepopups,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,advlist,advfile,template", |
|
| 205 |
- theme_advanced_buttons1 : "img,|,attach,|,media,|,template",//"image,file,media", |
|
| 206 |
- theme_advanced_buttons2 : "code,|,fullscreen,|,preview,|,print,|,newdocument,|,undo,redo,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink,cleanup,|,tablecontrols", |
|
| 207 |
- theme_advanced_buttons3 : "fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,outdent,indent,|,charmap,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl", |
|
| 208 |
- theme_advanced_toolbar_location : "top", |
|
| 209 |
- theme_advanced_toolbar_align : "left", |
|
| 210 |
- theme_advanced_statusbar_location : "bottom", |
|
| 211 |
- theme_advanced_resizing : true, |
|
| 212 |
- content_css : "/resources/template/manage/css/default.css", |
|
| 213 |
- template_external_list_url : "/resources/template/manage/docTemplate/mpm/template_list.js", |
|
| 214 |
- convert_urls : false, |
|
| 215 |
- adfile_external_param : moblie_adfile_config, |
|
| 216 |
- setup : function(ed) {
|
|
| 217 |
- ed.addButton('img', {
|
|
| 218 |
- title : '이미지 삽입/편집', |
|
| 219 |
- image : '/lib/tiny_mce/img/icon_01.gif', |
|
| 220 |
- onclick : function() {
|
|
| 221 |
- ed.execCommand('mceAdvImage');
|
|
| 222 |
- } |
|
| 223 |
- }); |
|
| 224 |
- ed.addButton('attach', {
|
|
| 225 |
- title : '파일 첨부', |
|
| 226 |
- image : '/lib/tiny_mce/img/icon_03.gif', |
|
| 227 |
- onclick : function() {
|
|
| 228 |
- ed.execCommand('mceAdvFile');
|
|
| 229 |
- } |
|
| 230 |
- }); |
|
| 231 |
- } |
|
| 232 |
- }); |
|
| 233 |
- |
|
| 234 |
- fn_egov_file_clean_action(moblie_adfile_config.editorId); |
|
| 235 |
- |
|
| 236 |
- $('input:radio[name=compositionTyCode]').click(fn_egov_select_comp);
|
|
| 237 |
- $('input:radio[name=htmlUseAt]').click(fn_egov_select_html);
|
|
| 238 |
- $('input:radio[name=htmlsourcTyCode]').click(fn_egov_select_html_cn);
|
|
| 239 |
- $('input:radio[name=mobileHtmlsourcTyCode]').click(fn_egov_select_html_mobile_cn);
|
|
| 240 |
- $('input:radio[name=cntntsTyCode]').click(fn_egov_select_prog);
|
|
| 241 |
- |
|
| 242 |
- fn_egov_select_prog(); |
|
| 243 |
- fn_egov_select_html(); |
|
| 244 |
- fn_egov_select_html_cn(); |
|
| 245 |
- fn_egov_select_html_mobile_cn() |
|
| 246 |
- fn_egov_select_comp(); |
|
| 247 |
- |
|
| 248 |
- $('#tab02').hide();
|
|
| 249 |
- //$('#menuNm').focus();
|
|
| 269 |
+ storePath:"Menu.fileStorePath", |
|
| 270 |
+ appendPath:"", |
|
| 271 |
+ siteId:"${searchVO.siteId}",
|
|
| 272 |
+ editorId:"${_EDITOR_ID}"
|
|
| 273 |
+ }; |
|
| 274 |
+ |
|
| 275 |
+ var moblie_adfile_config = {
|
|
| 276 |
+ storePath:"Menu.fileStorePath", |
|
| 277 |
+ appendPath:"", |
|
| 278 |
+ siteId:"${searchVO.siteId}",
|
|
| 279 |
+ editorId:"${_MOBILE_EDITOR_ID}"
|
|
| 280 |
+ }; |
|
| 281 |
+ |
|
| 282 |
+ tinymce.init({
|
|
| 283 |
+ selector: '.editor', |
|
| 284 |
+ language : 'ko_KR', |
|
| 285 |
+ height: 300, |
|
| 286 |
+ menubar: false, |
|
| 287 |
+ statusbar: false, |
|
| 288 |
+ plugins: [ |
|
| 289 |
+ 'advlist autolink lists link image charmap print preview anchor textcolor', |
|
| 290 |
+ 'searchreplace visualblocks code fullscreen', |
|
| 291 |
+ 'insertdatetime media table contextmenu paste code help wordcount' |
|
| 292 |
+ ], |
|
| 293 |
+ toolbar: 'fullscreen | undo redo | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code', |
|
| 294 |
+ content_css: [ |
|
| 295 |
+ '/resources/template/manage/css/default.css' |
|
| 296 |
+ ] |
|
| 297 |
+ }); |
|
| 298 |
+ |
|
| 299 |
+ |
|
| 300 |
+ fn_egov_file_clean_action(adfile_config.editorId); |
|
| 301 |
+ |
|
| 302 |
+ fn_egov_file_clean_action(moblie_adfile_config.editorId); |
|
| 303 |
+ |
|
| 304 |
+ $('input:radio[name=compositionTyCode]').click(fn_egov_select_comp);
|
|
| 305 |
+ $('input:radio[name=htmlUseAt]').click(fn_egov_select_html);
|
|
| 306 |
+ $('input:radio[name=htmlsourcTyCode]').click(fn_egov_select_html_cn);
|
|
| 307 |
+ $('input:radio[name=mobileHtmlsourcTyCode]').click(fn_egov_select_html_mobile_cn);
|
|
| 308 |
+ $('input:radio[name=cntntsTyCode]').click(fn_egov_select_prog);
|
|
| 309 |
+ |
|
| 310 |
+ fn_egov_select_prog(); |
|
| 311 |
+ fn_egov_select_html(); |
|
| 312 |
+ fn_egov_select_html_cn(); |
|
| 313 |
+ fn_egov_select_html_mobile_cn() |
|
| 314 |
+ fn_egov_select_comp(); |
|
| 315 |
+ |
|
| 316 |
+ $('#tab02').hide();
|
|
| 317 |
+ $('#menuNm').focus();
|
|
| 318 |
+ |
|
| 250 | 319 |
}); |
| 251 | 320 |
|
| 252 |
-</script> |
|
| 253 |
-<style type="text/css"> |
|
| 254 |
-<!-- |
|
| 255 |
-.conf_top{overflow:hidden;}
|
|
| 256 |
-.tab_menu{right:0;z-index:1000;}
|
|
| 257 |
-.tab_menu li{float:left;background:#f8f8f8;width:150px;height:30px;text-align:center;border:1px solid #ccc;}
|
|
| 258 |
-.tab_menu li a{display:block;padding:8px 0px;height:30px;}
|
|
| 259 |
-.tab_menu li a:hover, .tab_menu li a.active{background:url('${_IMG}/tab_over.gif') 0 0 repeat;padding:8px 0px;height:15px;font-weight:bold;color:#32688c;}
|
|
| 260 |
-.cont{position:relative;width:100%;border-top:1px solid #ccc;padding:0px 0;z-index:1001;}
|
|
| 261 |
-.cont table{width:100%;}
|
|
| 262 |
---> |
|
| 263 |
-</style> |
|
| 264 | 321 |
|
| 265 |
-<div id="cntnts"> |
|
| 266 |
- |
|
| 267 |
-<form:form commandName="mnuVO" name="mnu" method="post" action="" enctype="multipart/form-data" onsubmit="return false;"> |
|
| 322 |
+ function fn_egov_addMngr(idField, nmField, rtnFunc) {
|
|
| 323 |
+ var url = "/mng/usr/EgovMberManage.do?selectMode=Y"; |
|
| 324 |
+ var win = window.open(url ,'mBer',' scrollbars=yes, resizable=yes, left=0, top=0, width=1200,height=800'); |
|
| 325 |
+ if(win != null) {
|
|
| 326 |
+ win.focus(); |
|
| 327 |
+ } |
|
| 328 |
+ return false; |
|
| 329 |
+ } |
|
| 330 |
+ |
|
| 331 |
+ function fn_egov_selectMngr(id, nm) {
|
|
| 332 |
+ $('#ulMngr').append("<li><a href=\"#\" onclick=\"fn_egov_delMngr(this);return false;\"><img src=\"${_IMG}/btn/btn_del_s.gif\" alt=\"삭제하기\"/></a> <input type=\"hidden\" name=\"mngrIdArr\" value=\"" + id + "\"/>" + nm + "</li>");
|
|
| 333 |
+ } |
|
| 334 |
+ |
|
| 335 |
+ function fn_egov_delMngr(obj) {
|
|
| 336 |
+ obj.parentNode.parentNode.removeChild(obj.parentNode); |
|
| 337 |
+ } |
|
| 338 |
+</script> |
|
| 339 |
+ |
|
| 340 |
+<iframe id="previewForm" name="previewForm" frameborder="0" width="0" height="0"></iframe> |
|
| 341 |
+ |
|
| 342 |
+<form:form commandName="mnuVO" name="mnuVO" method="post" action="" enctype="multipart/form-data" onsubmit="return fn_egov_regist_mnu();"> |
|
| 343 |
+ |
|
| 344 |
+ <%-- |
|
| 268 | 345 |
<form:hidden path="siteId"/> |
| 269 | 346 |
<form:hidden path="menuId"/> |
| 347 |
+ <form:hidden path="takeMenuId"/> |
|
| 270 | 348 |
<form:hidden path="progrmId"/> |
| 271 | 349 |
<form:hidden path="atchFileId"/> |
| 272 | 350 |
<form:hidden path="mobileAtchFileId"/> |
| 273 |
- |
|
| 274 |
- <form:hidden path="htmlCn"/> |
|
| 275 |
- <form:hidden path="mobileHtmlCn"/> |
|
| 276 |
- |
|
| 277 |
- <table class="chart2"> |
|
| 278 |
- <caption>메뉴 등록폼</caption> |
|
| 279 |
- <colgroup> |
|
| 280 |
- <col width="150"/> |
|
| 281 |
- <col/> |
|
| 282 |
- </colgroup> |
|
| 283 |
- <tbody> |
|
| 284 |
- <tr> |
|
| 285 |
- <th><em>*</em> <label>메뉴명</label></th> |
|
| 286 |
- <td> |
|
| 287 |
- <form:input path="menuNm" cssClass="inp_long" size="50" maxlength="50" /> |
|
| 288 |
- <div><form:errors path="menuNm"/></div> |
|
| 289 |
- </td> |
|
| 290 |
- </tr> |
|
| 291 |
- <tr> |
|
| 292 |
- <th><label for="imageFileNm">스마트아이콘</label></th> |
|
| 293 |
- <td> |
|
| 294 |
- <input type="file" name="imageFileIdFile" id="imageFileNm" title="스마트아이콘" class="input300 inp" > |
|
| 295 |
- <c:if test="${not empty mnuVO.imageFileNm}"><br/><img src="${MenuFileStoreWebPath}${mnuVO.siteId}/${mnuVO.imageFileNm}"/></c:if>
|
|
| 296 |
- </td> |
|
| 297 |
- </tr> |
|
| 298 |
- <tr> |
|
| 299 |
- <th> <label>노출대상</label></th> |
|
| 300 |
- <td> |
|
| 301 |
- 일반인 : <input type="checkbox" name="generalUseAt" value="Y" <c:if test="${mnuVO.generalUseAt == 'Y'}"> checked="checked"</c:if>/>
|
|
| 302 |
- 학생 : <input type="checkbox" name="stdntUseAt" value="Y" <c:if test="${mnuVO.stdntUseAt == 'Y'}"> checked="checked"</c:if>/>
|
|
| 303 |
- 학부모 : <input type="checkbox" name="stdnprntUseAt" value="Y" <c:if test="${mnuVO.stdnprntUseAt == 'Y'}"> checked="checked"</c:if>/>
|
|
| 304 |
- 교직원 : <input type="checkbox" name="profsrUseAt" value="Y" <c:if test="${mnuVO.profsrUseAt == 'Y'}"> checked="checked"</c:if>/>
|
|
| 305 |
- </td> |
|
| 306 |
- </tr> |
|
| 307 |
- <tr> |
|
| 308 |
- <th><em>*</em> <label>구성유형</label></th> |
|
| 309 |
- <td> |
|
| 310 |
- 링크 구성 : <form:radiobutton path="compositionTyCode" value="LINK" /> |
|
| 311 |
- 컨텐츠 구성 : <form:radiobutton path="compositionTyCode" value="CNTNTS"/> |
|
| 312 |
- <br/><form:errors path="compositionTyCode" /> |
|
| 313 |
- </td> |
|
| 314 |
- </tr> |
|
| 315 |
- <tr> |
|
| 316 |
- <th><em>*</em> <label>HTML 사용여부</label></th> |
|
| 317 |
- <td> |
|
| 318 |
- <spring:message code="button.yes" /> : <form:radiobutton path="htmlUseAt" value="Y" /> |
|
| 319 |
- <spring:message code="button.no" /> : <form:radiobutton path="htmlUseAt" value="N" /> |
|
| 320 |
- <br/><form:errors path="htmlUseAt" /> |
|
| 321 |
- </td> |
|
| 322 |
- </tr> |
|
| 323 |
- <tr id="htmlTr"> |
|
| 324 |
- <th><label>HTML</label></th> |
|
| 325 |
- <td> |
|
| 326 |
- <div class="conf_top"> |
|
| 327 |
- <ul class="tab_menu"> |
|
| 328 |
- <li><a href="#tab1" id="tabLink01" onclick="fnTabView('01');return false;" class="active">WEB</a></li>
|
|
| 329 |
- <li><a href="#tab2" id="tabLink02" onclick="fnTabView('02');return false;">MOBILE</a></li>
|
|
| 330 |
- </ul> |
|
| 331 |
- </div> |
|
| 332 |
- |
|
| 333 |
- <div id="tab01" class="cont"> |
|
| 334 |
- <table> |
|
| 335 |
- <caption>메뉴 등록폼</caption> |
|
| 336 |
- <colgroup> |
|
| 337 |
- <col width="130"/> |
|
| 338 |
- <col/> |
|
| 339 |
- </colgroup> |
|
| 340 |
- <tbody> |
|
| 341 |
- <tr> |
|
| 342 |
- <th> <label>스타일시트</label></th> |
|
| 343 |
- <td> |
|
| 344 |
- <form:textarea path="styleCn" rows="10" cssStyle="width:90%;" cssClass="inp_default" /> |
|
| 345 |
- <form:errors path="styleCn" /> |
|
| 346 |
- </td> |
|
| 347 |
- </tr> |
|
| 348 |
- <tr> |
|
| 349 |
- <th> <label>자바스크립트</label></th> |
|
| 350 |
- <td> |
|
| 351 |
- <form:textarea path="scriptCn" rows="10" cssStyle="width:90%;" cssClass="inp_default" /> |
|
| 352 |
- <form:errors path="scriptCn" /> |
|
| 353 |
- </td> |
|
| 354 |
- </tr> |
|
| 355 |
- <tr> |
|
| 356 |
- <th> <label>내용유형</label></th> |
|
| 357 |
- <td> |
|
| 358 |
- HTML : <form:radiobutton path="htmlsourcTyCode" value="HTML"/> |
|
| 359 |
- JSP : <form:radiobutton path="htmlsourcTyCode" value="JSP"/> |
|
| 360 |
- <br/><form:errors path="htmlsourcTyCode" /> |
|
| 361 |
- </td> |
|
| 362 |
- </tr> |
|
| 363 |
- <tr> |
|
| 364 |
- <th> <label>내용</label></th> |
|
| 365 |
- <td> |
|
| 366 |
- <div id="div_HtmlCn_Html"> |
|
| 367 |
- <textarea id="htmlCn_Html" rows="30"style="width:90%;" class="inp_default" >${mnuVO.htmlCn}</textarea>
|
|
| 368 |
- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 369 |
- <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 370 |
- <c:param name="estnAt" value="N" /> |
|
| 371 |
- <c:param name="param_atchFileId" value="${mnuVO.atchFileId}" />
|
|
| 372 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 373 |
- </c:import> |
|
| 374 |
- </div> |
|
| 375 |
- <div id="div_HtmlCn_Jsp"><textarea id="htmlCn_Jsp" rows="30"style="width:90%;" class="inp_default" >${mnuVO.htmlCn}</textarea></div>
|
|
| 376 |
- </td> |
|
| 377 |
- </tr> |
|
| 378 |
- </tbody> |
|
| 379 |
- </table> |
|
| 380 |
- </div> |
|
| 381 |
- <div id="tab02" class="cont"> |
|
| 382 |
- <table> |
|
| 383 |
- <caption>메뉴 등록폼</caption> |
|
| 384 |
- <colgroup> |
|
| 385 |
- <col width="130"/> |
|
| 386 |
- <col/> |
|
| 387 |
- </colgroup> |
|
| 388 |
- <tbody> |
|
| 389 |
- <tr> |
|
| 390 |
- <th> <label>스타일시트</label></th> |
|
| 391 |
- <td> |
|
| 392 |
- <form:textarea path="mobileStyleCn" rows="10" cssStyle="width:90%;" cssClass="inp_default" /> |
|
| 393 |
- <form:errors path="mobileStyleCn" /> |
|
| 394 |
- </td> |
|
| 395 |
- </tr> |
|
| 396 |
- <tr> |
|
| 397 |
- <th> <label>자바스크립트</label></th> |
|
| 398 |
- <td> |
|
| 399 |
- <form:textarea path="mobileScriptCn" rows="10" cssStyle="width:90%;" cssClass="inp_default" /> |
|
| 400 |
- <form:errors path="mobileScriptCn" /> |
|
| 401 |
- </td> |
|
| 402 |
- </tr> |
|
| 403 |
- <tr> |
|
| 404 |
- <th> <label>내용유형</label></th> |
|
| 405 |
- <td> |
|
| 406 |
- HTML : <form:radiobutton path="mobileHtmlsourcTyCode" value="HTML" onclick="fn_egov_select_comp()" /> |
|
| 407 |
- JSP : <form:radiobutton path="mobileHtmlsourcTyCode" value="JSP" onclick="fn_egov_select_comp()" /> |
|
| 408 |
- <br/><form:errors path="mobileHtmlsourcTyCode" /> |
|
| 409 |
- </td> |
|
| 410 |
- </tr> |
|
| 411 |
- <tr> |
|
| 412 |
- <th> <label>내용</label></th> |
|
| 413 |
- <td> |
|
| 414 |
- <div id="div_MobileHtmlCn_Html"> |
|
| 415 |
- <textarea id="mobileHtmlCn_Html" rows="30"style="width:90%;" class="inp_default" >${mnuVO.mobileHtmlCn}</textarea>
|
|
| 416 |
- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 417 |
- <c:param name="editorId" value="${_MOBILE_EDITOR_ID}"/>
|
|
| 418 |
- <c:param name="estnAt" value="N" /> |
|
| 419 |
- <c:param name="param_atchFileId" value="${mnuVO.mobileAtchFileId}" />
|
|
| 420 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 421 |
- </c:import> |
|
| 422 |
- </div> |
|
| 423 |
- <div id="div_MobileHtmlCn_Jsp"><textarea id="mobileHtmlCn_Jsp" rows="30"style="width:90%;" class="inp_default" >${mnuVO.mobileHtmlCn}</textarea></div>
|
|
| 424 |
- </td> |
|
| 425 |
- </tr> |
|
| 426 |
- </tbody> |
|
| 427 |
- </table> |
|
| 428 |
- </div> |
|
| 429 |
- </td> |
|
| 430 |
- </tr> |
|
| 431 |
- <tr> |
|
| 432 |
- <th><em>*</em> <label>컨텐츠유형</label></th> |
|
| 433 |
- <td> |
|
| 434 |
- <form:radiobuttons path="cntntsTyCode" items="${mnuCntsList}" itemLabel="codeNm" itemValue="code"/>
|
|
| 435 |
- <div><form:errors path="cntntsTyCode"/></div> |
|
| 436 |
- <div id="bbsDiv" style="display:none"> |
|
| 437 |
- <select name="selectBbs" id="selectBbs" class="searchCate inp"> |
|
| 438 |
- <option value="">--- 선택하세요 ---</option> |
|
| 439 |
- <c:forEach var="result" items="${bbsList}" varStatus="status">
|
|
| 440 |
- <option value="<c:out value="${result.bbsId}"/>" <c:if test="${mnuVO.progrmId == result.bbsId}">selected="selected"</c:if>><c:out value="${result.bbsNm}"/></option>
|
|
| 441 |
- </c:forEach> |
|
| 442 |
- </select> |
|
| 443 |
- </div> |
|
| 444 |
- <div id="progDiv" style="display:none"> |
|
| 445 |
- <select name="selectProgrmId" id="selectProgrmId" class="searchCate inp"> |
|
| 446 |
- <option value="">--- 선택하세요 ---</option> |
|
| 447 |
- <c:forEach var="result" items="${progList}" varStatus="status">
|
|
| 448 |
- <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 449 |
- </c:forEach> |
|
| 450 |
- </select> |
|
| 451 |
- 프로그램인자:<form:input path="progrmFactr" size="30" cssClass="inp" maxlength="30" /> |
|
| 452 |
- </div> |
|
| 453 |
- </td> |
|
| 454 |
- </tr> |
|
| 455 |
- <tr id="urlTr"> |
|
| 456 |
- <th> <label>URL</label></th> |
|
| 457 |
- <td> |
|
| 458 |
- <form:input path="url" size="100" cssClass="inp" maxlength="255" /> |
|
| 459 |
- <div><form:errors path="url"/></div> |
|
| 460 |
- </td> |
|
| 461 |
- </tr> |
|
| 462 |
- <tr> |
|
| 463 |
- <th> <label>새창여부</label></th> |
|
| 464 |
- <td> |
|
| 465 |
- <spring:message code="button.yes" /> : <form:radiobutton path="nwdAt" value="Y" /> |
|
| 466 |
- <spring:message code="button.no" /> : <form:radiobutton path="nwdAt" value="N" /> |
|
| 467 |
- <br/><form:errors path="nwdAt" /> |
|
| 468 |
- </td> |
|
| 469 |
- </tr> |
|
| 470 |
- <tr> |
|
| 471 |
- <th> <label>노출여부</label></th> |
|
| 472 |
- <td> |
|
| 473 |
- <spring:message code="button.yes" /> : <form:radiobutton path="expsrUseAt" value="Y" /> |
|
| 474 |
- <spring:message code="button.no" /> : <form:radiobutton path="expsrUseAt" value="N" /> |
|
| 475 |
- <br/><form:errors path="expsrUseAt" /> |
|
| 476 |
- </td> |
|
| 477 |
- </tr> |
|
| 478 |
- <tr <c:if test="${empty mnuVO.upperMenuId}">style="display:none"</c:if>>
|
|
| 479 |
- <th> <label>노출순서</label></th> |
|
| 480 |
- <td> |
|
| 481 |
- <form:input path="sortOrdr" size="10" cssClass="inp"/> |
|
| 482 |
- <div><form:errors path="sortOrdr"/></div> |
|
| 483 |
- </td> |
|
| 484 |
- </tr> |
|
| 485 |
- <tr> |
|
| 486 |
- <th> <label>모바일사용여부</label></th> |
|
| 487 |
- <td> |
|
| 488 |
- <spring:message code="button.yes" /> : <form:radiobutton path="mobileUseAt" value="Y" /> |
|
| 489 |
- <spring:message code="button.no" /> : <form:radiobutton path="mobileUseAt" value="N" /> |
|
| 490 |
- <br/><form:errors path="mobileUseAt" /> |
|
| 491 |
- </td> |
|
| 492 |
- </tr> |
|
| 493 |
- </tbody> |
|
| 494 |
- </table> |
|
| 495 |
- |
|
| 496 |
- <div class="btn_r"> |
|
| 497 |
- <c:url var="listUrl" value="/mng/sym/mpm/selectMpmHistoryList.do"> |
|
| 498 |
- <c:param name="siteId" value="${param.siteId}"/>
|
|
| 499 |
- <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 500 |
- <c:param name="pageIndex" value="${searchVO.pageIndex}" />
|
|
| 501 |
- </c:url> |
|
| 502 |
- <a href="${listUrl}"><img src="${_IMG}/btn/btn_list.gif" alt="목록"/></a>
|
|
| 503 |
- </div> |
|
| 504 |
- |
|
| 351 |
+ --%> |
|
| 352 |
+ <input type="hidden" name="siteId" value="${mnuVO.siteId}"/>
|
|
| 353 |
+ <input type="hidden" name="menuId" value="${mnuVO.menuId}"/>
|
|
| 354 |
+ <input type="hidden" name="takeMenuId" value="${mnuVO.takeMenuId}"/>
|
|
| 355 |
+ <input type="hidden" name="progrmId" value="${mnuVO.progrmId}"/>
|
|
| 356 |
+ <input type="hidden" name="atchFileId" value="${mnuVO.atchFileId}"/>
|
|
| 357 |
+ <input type="hidden" name="mobileAtchFileId" value="${mnuVO.mobileAtchFileId}"/>
|
|
| 358 |
+ |
|
| 359 |
+ <input type="hidden" name="siteUrl" value="${siteInfo.siteUrl}"/>
|
|
| 360 |
+ <input type="hidden" id="htmlCn" name="htmlCn"/> |
|
| 361 |
+ <input type="hidden" id="mobileHtmlCn" name="mobileHtmlCn"/> |
|
| 362 |
+ |
|
| 363 |
+ <input type="hidden" id="posblAtchFileNumber_${_EDITOR_ID}" name="posblAtchFileNumber_${_EDITOR_ID}" value="100" />
|
|
| 364 |
+ <input type="hidden" id="posblAtchFileSize_${_EDITOR_ID}" name="posblAtchFileSize_${_EDITOR_ID}" value="${2048 * 1024 * 1024}" />
|
|
| 365 |
+ <input type="hidden" id="fileGroupId" name="fileGroupId" value="${mnuVO.atchFileId}"/>
|
|
| 366 |
+ |
|
| 367 |
+ <input type="hidden" id="posblAtchFileNumber_${_MOBILE_EDITOR_ID}" name="posblAtchFileNumber_${_MOBILE_EDITOR_ID}" value="100" />
|
|
| 368 |
+ <input type="hidden" id="posblAtchFileSize_${_MOBILE_EDITOR_ID}" name="posblAtchFileSize_${_MOBILE_EDITOR_ID}" value="${2048 * 1024 * 1024}" />
|
|
| 369 |
+ <input type="hidden" id="mobileFileGroupId" name="mobileFileGroupId" value="${mnuVO.mobileAtchFileId}"/>
|
|
| 370 |
+ |
|
| 371 |
+ <fieldset> |
|
| 372 |
+ <legend class="hdn">메뉴 입력 폼</legend> |
|
| 373 |
+ <div class="write-type"> |
|
| 374 |
+ <table> |
|
| 375 |
+ <colgroup> |
|
| 376 |
+ <col style="width:250px" /> |
|
| 377 |
+ <col /> |
|
| 378 |
+ </colgroup> |
|
| 379 |
+ <tbody> |
|
| 380 |
+ <c:if test="${not empty mnuVO.upperMenuId}">
|
|
| 381 |
+ <tr> |
|
| 382 |
+ <th><label for="upperMenuId">상위메뉴</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 383 |
+ <td> |
|
| 384 |
+ <div class="selectbox"> |
|
| 385 |
+ <select name="upperMenuId" id="upperMenuId"> |
|
| 386 |
+ <c:forEach var="result" items="${mpmList}" varStatus="status">
|
|
| 387 |
+ <option value="${result.menuId}" <c:if test="${result.menuId == mnuVO.upperMenuId}">selected="selected"</c:if>>${result.menuNm}</option>
|
|
| 388 |
+ </c:forEach> |
|
| 389 |
+ </select> |
|
| 390 |
+ </div> |
|
| 391 |
+ </td> |
|
| 392 |
+ </tr> |
|
| 393 |
+ </c:if> |
|
| 394 |
+ <tr> |
|
| 395 |
+ <th><label for="menuNm">메뉴명</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 396 |
+ <td> |
|
| 397 |
+ <form:input path="menuNm" cssClass="q4" maxlength="50" /> |
|
| 398 |
+ <div><form:errors path="menuNm" /></div> |
|
| 399 |
+ </td> |
|
| 400 |
+ </tr> |
|
| 401 |
+ <tr> |
|
| 402 |
+ <th>노출대상</th> |
|
| 403 |
+ <td> |
|
| 404 |
+ <div class="checkradio"> |
|
| 405 |
+ <input type="checkbox" id="generalUseAt" name="generalUseAt" value="Y" <c:if test="${not empty mnuVO.generalUseAt}"> checked</c:if>/>
|
|
| 406 |
+ <label for="generalUseAt">일반</label> |
|
| 407 |
+ </div> |
|
| 408 |
+ <div class="checkradio"> |
|
| 409 |
+ <input type="checkbox" id="stdntUseAt" name="stdntUseAt" value="Y" <c:if test="${not empty mnuVO.stdntUseAt}"> checked</c:if>/>
|
|
| 410 |
+ <label for="stdntUseAt">학생</label> |
|
| 411 |
+ </div> |
|
| 412 |
+ <div class="checkradio"> |
|
| 413 |
+ <input type="checkbox" id="stdnprntUseAt" name="stdnprntUseAt" value="Y" <c:if test="${not empty mnuVO.stdnprntUseAt}"> checked</c:if>/>
|
|
| 414 |
+ <label for="stdnprntUseAt">학부모</label> |
|
| 415 |
+ </div> |
|
| 416 |
+ <div class="checkradio"> |
|
| 417 |
+ <input type="checkbox" id="profsrUseAt" name="profsrUseAt" value="Y" <c:if test="${not empty mnuVO.profsrUseAt}"> checked=</c:if>/>
|
|
| 418 |
+ <label for="profsrUseAt">선생님</label> |
|
| 419 |
+ </div> |
|
| 420 |
+ </td> |
|
| 421 |
+ </tr> |
|
| 422 |
+ <tr> |
|
| 423 |
+ <th>구성유형 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 424 |
+ <td> |
|
| 425 |
+ <div class="checkradio"> |
|
| 426 |
+ <form:radiobutton path="compositionTyCode" value="LINK" /> |
|
| 427 |
+ <label for="compositionTyCode1">링크 구성</label> |
|
| 428 |
+ </div> |
|
| 429 |
+ <div class="checkradio"> |
|
| 430 |
+ <form:radiobutton path="compositionTyCode" value="CNTNTS"/> |
|
| 431 |
+ <label for="compositionTyCode2">컨텐츠 구성</label> |
|
| 432 |
+ </div> |
|
| 433 |
+ </td> |
|
| 434 |
+ </tr> |
|
| 435 |
+ <tr> |
|
| 436 |
+ <th>HTML 사용여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 437 |
+ <td> |
|
| 438 |
+ <div class="checkradio"> |
|
| 439 |
+ <form:radiobutton path="htmlUseAt" value="Y" /> |
|
| 440 |
+ <label for="htmlUseAt1"><spring:message code="button.yes" /></label> |
|
| 441 |
+ </div> |
|
| 442 |
+ <div class="checkradio"> |
|
| 443 |
+ <form:radiobutton path="htmlUseAt" value="N" /> |
|
| 444 |
+ <label for="htmlUseAt2"><spring:message code="button.no" /></label> |
|
| 445 |
+ </div> |
|
| 446 |
+ </td> |
|
| 447 |
+ </tr> |
|
| 448 |
+ <%-- |
|
| 449 |
+ <tr> |
|
| 450 |
+ <th> <label>스타일시트</label></th> |
|
| 451 |
+ <td> |
|
| 452 |
+ <form:textarea path="styleCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="css"/> |
|
| 453 |
+ <form:errors path="styleCn" /> |
|
| 454 |
+ </td> |
|
| 455 |
+ </tr> |
|
| 456 |
+ <tr> |
|
| 457 |
+ <th> <label>자바스크립트</label></th> |
|
| 458 |
+ <td> |
|
| 459 |
+ <form:textarea path="scriptCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="javascript"/> |
|
| 460 |
+ <form:errors path="scriptCn" /> |
|
| 461 |
+ </td> |
|
| 462 |
+ </tr> |
|
| 463 |
+ --%> |
|
| 464 |
+ <tr> |
|
| 465 |
+ <th>내용유형 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 466 |
+ <td> |
|
| 467 |
+ <div class="checkradio"> |
|
| 468 |
+ <form:radiobutton path="htmlsourcTyCode" value="HTML"/> |
|
| 469 |
+ <label for="htmlsourcTyCode1">HTML</label> |
|
| 470 |
+ </div> |
|
| 471 |
+ <div class="checkradio"> |
|
| 472 |
+ <form:radiobutton path="htmlsourcTyCode" value="JSP"/> |
|
| 473 |
+ <label for="htmlsourcTyCode2">JSP</label> |
|
| 474 |
+ </div> |
|
| 475 |
+ </td> |
|
| 476 |
+ </tr> |
|
| 477 |
+ |
|
| 478 |
+ <tr id="htmlTr"> |
|
| 479 |
+ <th> <label>내용</label></th> |
|
| 480 |
+ <td> |
|
| 481 |
+ <div id="div_HtmlCn_Html"> |
|
| 482 |
+ <textarea id="htmlCn_Html" rows="50" class="editor" ><c:if test="${mnuVO.htmlsourcTyCode eq 'HTML'}">${mnuVO.htmlCn}</c:if> </textarea>
|
|
| 483 |
+ <%-- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 484 |
+ <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 485 |
+ <c:param name="estnAt" value="N" /> |
|
| 486 |
+ <c:param name="param_atchFileId" value="${mnuVO.atchFileId}" />
|
|
| 487 |
+ <c:param name="imagePath" value="${_IMG }"/>
|
|
| 488 |
+ </c:import> --%> |
|
| 489 |
+ </div> |
|
| 490 |
+ <div id="div_HtmlCn_Jsp"> |
|
| 491 |
+ <textarea id="htmlCn_Jsp" lang="jsp" style="height: 355px"><c:if test="${mnuVO.htmlsourcTyCode eq 'JSP'}">${mnuVO.htmlCn}</c:if></textarea>
|
|
| 492 |
+ </div> |
|
| 493 |
+ </td> |
|
| 494 |
+ </tr> |
|
| 495 |
+ <tr> |
|
| 496 |
+ <th><label for="upperMenuId">컨텐츠유형</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 497 |
+ <td> |
|
| 498 |
+ <c:forEach var="result" items="${mnuCntsList}" varStatus="status">
|
|
| 499 |
+ <div class="checkradio"> |
|
| 500 |
+ <input id="cntntsTyCode${status.count}" name="cntntsTyCode" type="radio" value="${result.code}" <c:if test="${result.code eq 'CTS01'}">checked</c:if>>
|
|
| 501 |
+ <label for="cntntsTyCode${status.count}"><c:out value="${result.codeNm}"/></label>
|
|
| 502 |
+ </div> |
|
| 503 |
+ </c:forEach> |
|
| 504 |
+ |
|
| 505 |
+ <div id="bbsDiv" class="selectbox" style="display:none"> |
|
| 506 |
+ <select name="selectBbs" id="selectBbs"> |
|
| 507 |
+ <option value="">--- 선택하세요 ---</option> |
|
| 508 |
+ <c:choose> |
|
| 509 |
+ <c:when test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 510 |
+ <c:forEach var="result" items="${bbsList}" varStatus="status">
|
|
| 511 |
+ <option value="<c:out value="${result.bbsId}"/>" <c:if test="${mnuVO.progrmId == result.bbsId}">selected="selected"</c:if>><c:out value="${result.bbsNm}"/></option>
|
|
| 512 |
+ </c:forEach> |
|
| 513 |
+ </c:when> |
|
| 514 |
+ <c:otherwise> |
|
| 515 |
+ <c:forEach var="result" items="${attrbList}" varStatus="status">
|
|
| 516 |
+ <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 517 |
+ </c:forEach> |
|
| 518 |
+ </c:otherwise> |
|
| 519 |
+ </c:choose> |
|
| 520 |
+ </select> |
|
| 521 |
+ </div> |
|
| 522 |
+ |
|
| 523 |
+ <div id="progDiv" class="selectbox" style="display:none"> |
|
| 524 |
+ <select name="selectProgrmId" id="selectProgrmId" class="searchCate inp"> |
|
| 525 |
+ <option value="">--- 선택하세요 ---</option> |
|
| 526 |
+ <c:forEach var="result" items="${progList}" varStatus="status">
|
|
| 527 |
+ <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 528 |
+ </c:forEach> |
|
| 529 |
+ </select> |
|
| 530 |
+ 프로그램인자:<form:input path="progrmFactr" size="30" cssClass="inp" maxlength="30" /> |
|
| 531 |
+ </div> |
|
| 532 |
+ </td> |
|
| 533 |
+ </tr> |
|
| 534 |
+ <tr id="urlTr"> |
|
| 535 |
+ <th> <label>URL</label></th> |
|
| 536 |
+ <td> |
|
| 537 |
+ <form:input path="url" size="100" cssClass="q4" maxlength="255" /> |
|
| 538 |
+ <p class="msg"><em>외부링크 삽입시 예)</em> http://www.site.com</p> |
|
| 539 |
+ <div><form:errors path="url"/></div> |
|
| 540 |
+ </td> |
|
| 541 |
+ </tr> |
|
| 542 |
+ <tr> |
|
| 543 |
+ <th>새창여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 544 |
+ <td> |
|
| 545 |
+ <div class="checkradio"> |
|
| 546 |
+ <form:radiobutton path="nwdAt" value="Y" /> |
|
| 547 |
+ <label for="nwdAt1"><spring:message code="button.yes" /></label> |
|
| 548 |
+ </div> |
|
| 549 |
+ <div class="checkradio"> |
|
| 550 |
+ <form:radiobutton path="nwdAt" value="N" /> |
|
| 551 |
+ <label for="nwdAt2"><spring:message code="button.no" /></label> |
|
| 552 |
+ </div> |
|
| 553 |
+ </td> |
|
| 554 |
+ </tr> |
|
| 555 |
+ <tr> |
|
| 556 |
+ <th>노출여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 557 |
+ <td> |
|
| 558 |
+ <div class="checkradio"> |
|
| 559 |
+ <form:radiobutton path="expsrUseAt" value="Y" /> |
|
| 560 |
+ <label for="expsrUseAt1"><spring:message code="button.yes" /></label> |
|
| 561 |
+ </div> |
|
| 562 |
+ <div class="checkradio"> |
|
| 563 |
+ <form:radiobutton path="expsrUseAt" value="N" /> |
|
| 564 |
+ <label for="expsrUseAt2"><spring:message code="button.no" /></label> |
|
| 565 |
+ </div> |
|
| 566 |
+ </td> |
|
| 567 |
+ </tr> |
|
| 568 |
+ <tr <c:if test="${empty mnuVO.upperMenuId}">style="display:none"</c:if>>
|
|
| 569 |
+ <th>노출순서 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 570 |
+ <td> |
|
| 571 |
+ <form:input path="sortOrdr" type="number" size="10" cssClass="q0" maxlength="10" /> |
|
| 572 |
+ <input type="hidden" name="menuLevel" value="<c:out value="${mnuVO.menuLevel}"/>"/>
|
|
| 573 |
+ <div><form:errors path="sortOrdr"/></div> |
|
| 574 |
+ </td> |
|
| 575 |
+ </tr> |
|
| 576 |
+ |
|
| 577 |
+ <tr style="display:none;"> |
|
| 578 |
+ <th>모바일사용여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 579 |
+ <td> |
|
| 580 |
+ <div class="checkradio"> |
|
| 581 |
+ <form:radiobutton path="mobileUseAt" value="Y" /> |
|
| 582 |
+ <label for="mobileUseAt1"><spring:message code="button.yes" /></label> |
|
| 583 |
+ </div> |
|
| 584 |
+ <div class="checkradio"> |
|
| 585 |
+ <form:radiobutton path="mobileUseAt" value="N" /> |
|
| 586 |
+ <label for="mobileUseAt2"><spring:message code="button.no" /></label> |
|
| 587 |
+ </div> |
|
| 588 |
+ </td> |
|
| 589 |
+ </tr> |
|
| 590 |
+ |
|
| 591 |
+ </tbody> |
|
| 592 |
+ </table> |
|
| 593 |
+ </div> |
|
| 594 |
+ <div class="btn-cont"> |
|
| 595 |
+ <c:url var="listUrl" value="/mng/sym/mpm/selectMpmHistoryList.do"> |
|
| 596 |
+ <c:param name="siteId" value="${param.siteId}"/>
|
|
| 597 |
+ <c:param name="menuId" value="${searchVO.menuId}" />
|
|
| 598 |
+ <c:param name="pageIndex" value="${searchVO.pageIndex}" />
|
|
| 599 |
+ </c:url> |
|
| 600 |
+ <a href="${listUrl}" class="btn-lg">목록</a>
|
|
| 601 |
+ </div> |
|
| 602 |
+ </fieldset> |
|
| 505 | 603 |
</form:form> |
| 506 | 604 |
|
| 507 |
- </div> |
|
| 605 |
+<script> |
|
| 606 |
+ $(function() {
|
|
| 607 |
+ $("textarea[lang]").each(function() {
|
|
| 608 |
+ var textarea = $(this); |
|
| 609 |
+ var mode = textarea.attr("lang");
|
|
| 610 |
+ var editDiv = $("<div>", {
|
|
| 611 |
+ position: "absolute", |
|
| 612 |
+ width:"100%", |
|
| 613 |
+ height:textarea.height() |
|
| 614 |
+ }).insertBefore(textarea); |
|
| 615 |
+ |
|
| 616 |
+ textarea.css("display", "none");
|
|
| 617 |
+ |
|
| 618 |
+ var editor = ace.edit(editDiv[0]); |
|
| 619 |
+ editor.setFontSize("11px");
|
|
| 620 |
+ editor.getSession().setValue(textarea.val()); |
|
| 621 |
+ if(mode =="jsp") {
|
|
| 622 |
+ editor.setTheme("ace/theme/chrome");
|
|
| 623 |
+ }else {
|
|
| 624 |
+ editor.setTheme("ace/theme/clouds");
|
|
| 625 |
+ } |
|
| 626 |
+ editor.getSession().setMode("ace/mode/" + mode);
|
|
| 627 |
+ |
|
| 628 |
+ textarea.closest("#mnuVO").submit(function() {
|
|
| 629 |
+ textarea.val(editor.getSession().getValue()); |
|
| 630 |
+ }); |
|
| 631 |
+ }); |
|
| 632 |
+ |
|
| 633 |
+ }); |
|
| 634 |
+</script> |
|
| 508 | 635 |
|
| 509 | 636 |
<c:import url="/EgovPageLink.do?link=/mng/template/popBottom" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmList.jsp
... | ... | @@ -1,14 +1,5 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@page import="egovframework.com.cmm.service.Globals"%> |
|
| 3 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
|
| 4 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 5 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
|
| 6 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 7 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> |
|
| 8 |
-<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> |
|
| 9 |
-<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>"/> |
|
| 10 |
-<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/>
|
|
| 11 |
-<c:set var="_C_JS" value="${pageContext.request.contextPath}/template/common/js"/>
|
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 12 | 3 |
|
| 13 | 4 |
<c:set var="MENU_AUTO_MAKE_SITE_ID" value="<%=Globals.MENU_AUTO_MAKE_SITE_ID%>"/> |
| 14 | 5 |
<c:set var="_SITE_ID" value=""/> |
... | ... | @@ -20,122 +11,7 @@ |
| 20 | 11 |
<c:param name="title" value="${searchVO.siteId eq MENU_AUTO_MAKE_SITE_ID ? '기본 자동생성 메뉴관리' : '메뉴관리'}"/>
|
| 21 | 12 |
</c:import> |
| 22 | 13 |
|
| 23 |
-<script type="text/javascript" src="<c:url value='/resources/template/common/js/jquery/jquery.contextmenu.r2.packed.js'/>"></script> |
|
| 24 |
-<script type="text/javascript"> |
|
| 25 |
-var sorttableClass = ".sortable"; |
|
| 26 |
-$(function() {
|
|
| 27 |
- $( sorttableClass).sortable({
|
|
| 28 |
- //items: "li:.ui-state-default", |
|
| 29 |
- //cancel: ".ui-state-disabled", |
|
| 30 |
- opacity: 0.7, |
|
| 31 |
- cursor: 'move', |
|
| 32 |
- //revert: true, |
|
| 33 |
- axis: 'y', |
|
| 34 |
- start: function(event, ui) {
|
|
| 35 |
- ui.item.data('originIndex', ui.item.index());
|
|
| 36 |
- }, |
|
| 37 |
- stop: function(event, ui) {
|
|
| 38 |
- //var oriItem = null |
|
| 39 |
- var moveItem = ui.item; |
|
| 40 |
- |
|
| 41 |
- var originIndex = moveItem.data('originIndex');
|
|
| 42 |
- var newIndex = moveItem.index(); |
|
| 43 |
- |
|
| 44 |
- if(originIndex != newIndex) {
|
|
| 45 |
- //oriItem = (originIndex < newIndex) ? ui.item.prev() : ui.item.next(); |
|
| 46 |
- //var url = '/mng/sym/mpm/updateMpmSortOrdr.do?upperMenuId=' + oriItem.attr("menuId") + '&menuId=' + moveItem.attr("menuId") + '&sortOrdr=' + oriItem.attr("sortOrdr");
|
|
| 47 |
- |
|
| 48 |
- var sortTyCode = (originIndex < newIndex) ? "D" : "U"; |
|
| 49 |
- var url = '${pageContext.request.contextPath}/mng/sym/mpm/updateMpmSortOrdr.do?siteId=' + moveItem.attr("siteId") + '&sysTyCode=' + moveItem.attr("sysTyCode") + '&upperMenuId=' + moveItem.attr("upperMenuId") + '&menuId=' + moveItem.attr("menuId") + '&sortOrdr=' + newIndex + '&sortTyCode=' + sortTyCode;
|
|
| 50 |
- |
|
| 51 |
- $( sorttableClass ).sortable( "option", "disabled", true ); |
|
| 52 |
- |
|
| 53 |
- $.getJSON(url, function(data) {
|
|
| 54 |
- if(data.updateCnt > 0) {
|
|
| 55 |
- $( sorttableClass ).sortable( "option", "disabled", false ); |
|
| 56 |
- } else {
|
|
| 57 |
- alert('문제가 발생하여 작업을 완료하지 못하였습니다.');
|
|
| 58 |
- } |
|
| 59 |
- }) |
|
| 60 |
- .success(function() {})
|
|
| 61 |
- .error(function() {alert('문제가 발생하여 작업을 완료하지 못하였습니다.');})
|
|
| 62 |
- .complete(function() {});
|
|
| 63 |
- |
|
| 64 |
- /* |
|
| 65 |
- $.ajax({
|
|
| 66 |
- type: 'GET', |
|
| 67 |
- url: url, |
|
| 68 |
- dataType: 'json', |
|
| 69 |
- success: function(html, textStatus) {
|
|
| 70 |
- $( sorttableClass ).sortable( "option", "disabled", false ); |
|
| 71 |
- }, |
|
| 72 |
- error: function(xhr, textStatus, errorThrown) {
|
|
| 73 |
- alert('An error occurred! ' + ( errorThrown ? errorThrown :xhr.status ));
|
|
| 74 |
- $( sorttableClass ).sortable( "option", "disabled", true ); |
|
| 75 |
- }, |
|
| 76 |
- beforeSend: function() {
|
|
| 77 |
- $(sorttableClass ).sortable( "option", "disabled", true ); |
|
| 78 |
- } |
|
| 79 |
- }); |
|
| 80 |
- */ |
|
| 81 |
- } |
|
| 82 |
- } |
|
| 83 |
- }); |
|
| 84 |
- $( sorttableClass ).disableSelection(); |
|
| 85 |
- $(".imgCol").click(function() {
|
|
| 86 |
- $(this).parent().parent().parent().parent().parent().find(sorttableClass + ':first').toggle(function(){
|
|
| 87 |
- |
|
| 88 |
- }); |
|
| 89 |
- $(this).parent().find('.imgCol').toggle();
|
|
| 90 |
- }); |
|
| 91 |
- |
|
| 92 |
- $('a.menu').contextMenu('menuContext', {
|
|
| 93 |
- menuStyle: {
|
|
| 94 |
- border: '1px solid #8bb1f7' |
|
| 95 |
- }, |
|
| 96 |
- shadow : false, |
|
| 97 |
- itemStyle: {
|
|
| 98 |
- backgroundColor : 'white', |
|
| 99 |
- color: 'black', |
|
| 100 |
- border: 'none', |
|
| 101 |
- padding: '1px' |
|
| 102 |
- }, |
|
| 103 |
- itemHoverStyle: {
|
|
| 104 |
- color: 'black', |
|
| 105 |
- backgroundColor: '#e9e9e9', |
|
| 106 |
- border: '1px solid #8bb1f7' |
|
| 107 |
- }, |
|
| 108 |
- |
|
| 109 |
- bindings: {
|
|
| 110 |
- 'cmMenuNm': function(t) {
|
|
| 111 |
- $('#cmSiteId').val(t.siteId);
|
|
| 112 |
- $('#menuId').val(t.id);
|
|
| 113 |
- $('#menuNm').val(t.innerText);
|
|
| 114 |
- cfgCommonPopShow('common_pop_up');
|
|
| 115 |
- } |
|
| 116 |
- } |
|
| 117 |
- }); |
|
| 118 |
- |
|
| 119 |
- $('#btnMenuNmChange').click(function() {
|
|
| 120 |
- var url = '${pageContext.request.contextPath}/mng/sym/sit/updateMpmMenuNm.do?siteId=' + $('#cmSiteId').val() + '&menuId=' + $('#menuId').val() + '&menuNm=' + encodeURIComponent($('#menuNm').val());
|
|
| 121 |
- |
|
| 122 |
- $.getJSON(url, function(data) {
|
|
| 123 |
- if(data.updateCount > 0) {
|
|
| 124 |
- $('#' + data.menuId).html(data.menuNm);
|
|
| 125 |
- } else {
|
|
| 126 |
- alert('문제가 발생하여 작업을 완료하지 못하였습니다.');
|
|
| 127 |
- } |
|
| 128 |
- }) |
|
| 129 |
- .success(function() {})
|
|
| 130 |
- .error(function() {alert('문제가 발생하여 작업을 완료하지 못하였습니다.');})
|
|
| 131 |
- .complete(function() {cfgCommonPopHide();});
|
|
| 132 |
- |
|
| 133 |
- return false; |
|
| 134 |
- }); |
|
| 135 |
- |
|
| 136 |
-}); |
|
| 137 |
-</script> |
|
| 138 |
-<script type="text/javascript"> |
|
| 14 |
+<script> |
|
| 139 | 15 |
function fn_egov_delete_mnu(siteId, menuId) {
|
| 140 | 16 |
|
| 141 | 17 |
if (confirm('<spring:message code="common.delete.msg" />')) {
|
... | ... | @@ -152,7 +28,7 @@ |
| 152 | 28 |
url = url + "siteId=" + siteId; |
| 153 | 29 |
url = url + "&menuId=" + menuId; |
| 154 | 30 |
|
| 155 |
- var win = window.open(url ,'his',' scrollbars=yes, resizable=yes, left=0, top=0, width=1100,height=750'); |
|
| 31 |
+ var win = window.open(url ,'his',' scrollbars=yes, resizable=yes, left=0, top=0, width=1290,height=750'); |
|
| 156 | 32 |
if(win != null) {
|
| 157 | 33 |
win.focus(); |
| 158 | 34 |
} |
... | ... | @@ -173,22 +49,131 @@ |
| 173 | 49 |
}; |
| 174 | 50 |
</script> |
| 175 | 51 |
|
| 176 |
-<div id="cntnts"> |
|
| 52 |
+<c:if test="${USER_INFO.userSe > 10}">
|
|
| 53 |
+ <form name="SiteListForm" action="<c:url value="/mng/sym/mpm/selectMpmList.do"/>" method="post"> |
|
| 54 |
+ <c:import url="/mng/sym/sit/selectCommonSiteList.do"/> |
|
| 55 |
+ </form> |
|
| 56 |
+</c:if> |
|
| 177 | 57 |
|
| 178 |
- <c:choose> |
|
| 179 |
- <c:when test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 180 |
- <c:if test="${USER_INFO.userSe > 10}">
|
|
| 181 |
- <form name="SiteListForm" action="<c:url value="/mng/sym/mpm/selectMpmList.do"/>" method="post"> |
|
| 182 |
- <div id="bbs_search"> |
|
| 183 |
- <c:import url="/mng/sym/sit/selectCommonSiteList.do"/> |
|
| 184 |
- </div> |
|
| 185 |
- </form> |
|
| 186 |
- </c:if> |
|
| 187 |
- </c:when> |
|
| 188 |
- <c:otherwise> |
|
| 189 |
- <c:set var="_SITE_NM" value="-"/> |
|
| 190 |
- </c:otherwise> |
|
| 191 |
- </c:choose> |
|
| 58 |
+<div class="menu-board"> |
|
| 59 |
+ <table> |
|
| 60 |
+ <colgroup> |
|
| 61 |
+ <col style="width: 50%;"> |
|
| 62 |
+ <col> |
|
| 63 |
+ <col> |
|
| 64 |
+ <col> |
|
| 65 |
+ <col> |
|
| 66 |
+ </colgroup> |
|
| 67 |
+ <thead> |
|
| 68 |
+ <tr> |
|
| 69 |
+ <th scope="col">메뉴명</th> |
|
| 70 |
+ <th scope="col">노출여부</th> |
|
| 71 |
+ <th scope="col">하위추가</th> |
|
| 72 |
+ <th scope="col">관리</th> |
|
| 73 |
+ <th scope="col">복원</th> |
|
| 74 |
+ </tr> |
|
| 75 |
+ </thead> |
|
| 76 |
+ <tbody> |
|
| 77 |
+ </tbody> |
|
| 78 |
+ </table> |
|
| 79 |
+ |
|
| 80 |
+ <c:set var="_PRE_MENU_LEVEL" value="-1"/> |
|
| 81 |
+ <c:forEach var="result" items="${mpmList}" varStatus="status">
|
|
| 82 |
+ <c:choose> |
|
| 83 |
+ <c:when test="${result.menuLevel eq 0}">
|
|
| 84 |
+ <table> |
|
| 85 |
+ <colgroup> |
|
| 86 |
+ <col style="width: 50%;"> |
|
| 87 |
+ <col> |
|
| 88 |
+ <col> |
|
| 89 |
+ <col> |
|
| 90 |
+ <col> |
|
| 91 |
+ </colgroup> |
|
| 92 |
+ <caption class="hdn">메뉴관리</caption> |
|
| 93 |
+ <tbody> |
|
| 94 |
+ <tr> |
|
| 95 |
+ <td class="menu-tit"> |
|
| 96 |
+ <a <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">href="<c:url value='${result.menuWebPath}'/>"</c:if> class="menu" target="_blank" id="<c:out value="${result.menuId}"/>" siteId="${result.siteId}"><c:out value="${result.menuNm}" /></a>
|
|
| 97 |
+ </td> |
|
| 98 |
+ <td> |
|
| 99 |
+ <span class="label-state spot"></span> |
|
| 100 |
+ </td> |
|
| 101 |
+ <td> |
|
| 102 |
+ <a href="<c:url value='/mng/sym/mpm/addMpm.do'/>?siteId=<c:out value="${result.siteId}"/>&upperMenuId=<c:out value="${result.menuId}"/>&menuLevel=<c:out value="${result.menuLevel + 1}"/>" class="btn btn-ico">
|
|
| 103 |
+ <i class="ico-sm-plus"></i> |
|
| 104 |
+ <span class="txt-hide">추가</span> |
|
| 105 |
+ </a> |
|
| 106 |
+ </td> |
|
| 107 |
+ <td></td> |
|
| 108 |
+ <td></td> |
|
| 109 |
+ </tr> |
|
| 110 |
+ </tbody> |
|
| 111 |
+ </table> |
|
| 112 |
+ </c:when> |
|
| 113 |
+ <c:otherwise> |
|
| 114 |
+ <ul class="menu-depth depth${result.menuLevel}">
|
|
| 115 |
+ <li> |
|
| 116 |
+ <table> |
|
| 117 |
+ <colgroup> |
|
| 118 |
+ <col style="width: 50%;"> |
|
| 119 |
+ <col> |
|
| 120 |
+ <col> |
|
| 121 |
+ <col> |
|
| 122 |
+ <col> |
|
| 123 |
+ </colgroup> |
|
| 124 |
+ <caption class="hdn">메뉴관리</caption> |
|
| 125 |
+ <tbody> |
|
| 126 |
+ <tr> |
|
| 127 |
+ <td class="menu-tit"> |
|
| 128 |
+ <span class="label num sm spot${result.menuLevel}">${result.menuLevel}</span>
|
|
| 129 |
+ <a <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">href="<c:url value='${result.menuWebPath}'/>"</c:if> class="menu" target="_blank" id="<c:out value="${result.menuId}"/>" siteId="${result.siteId}"><c:out value="${result.menuNm}" /></a>
|
|
| 130 |
+ <c:if test="${result.menuLastNodeAt eq 'N' and not empty result.upperMenuId}">
|
|
| 131 |
+ <button type="button" class="btn-ico-sm n-menu-board-toggle"> |
|
| 132 |
+ <!-- <i class="ico-sm-plus"></i> --> |
|
| 133 |
+ <i class="ico-sm-minus"></i> |
|
| 134 |
+ </button> |
|
| 135 |
+ <%--<img src="${_IMG}/btn/btn_minus.gif" class="imgCol"/><img src="${_IMG}/btn/btn_plus.gif" class="imgCol" style="display:none"/>--%>
|
|
| 136 |
+ </c:if> |
|
| 137 |
+ </td> |
|
| 138 |
+ <td> |
|
| 139 |
+ <span class="label-state <c:if test="${result.expsrUseAt == 'Y'}">spot</c:if>"></span>
|
|
| 140 |
+ </td> |
|
| 141 |
+ <td> |
|
| 142 |
+ <a href="<c:url value='/mng/sym/mpm/addMpm.do'/>?siteId=<c:out value="${result.siteId}"/>&upperMenuId=<c:out value="${result.menuId}"/>&menuLevel=<c:out value="${result.menuLevel + 1}"/>" class="btn btn-ico">
|
|
| 143 |
+ <i class="ico-sm-plus"></i> |
|
| 144 |
+ <span class="txt-hide">추가</span> |
|
| 145 |
+ </a> |
|
| 146 |
+ </td> |
|
| 147 |
+ <td> |
|
| 148 |
+ <c:if test="${not empty result.upperMenuId}">
|
|
| 149 |
+ <a href="<c:url value='/mng/sym/mpm/forUpdateMpm.do'/>?siteId=<c:out value="${result.siteId}"/>&menuId=<c:out value="${result.menuId}"/>" class="btn btn-ico">
|
|
| 150 |
+ <i class="ico-sm-edit"></i> |
|
| 151 |
+ <span class="txt-hide">수정</span> |
|
| 152 |
+ </a> |
|
| 153 |
+ <button class="btn-ico" onclick="fn_egov_delete_mnu('<c:out value="${result.siteId}"/>', '<c:out value="${result.menuId}"/>')">
|
|
| 154 |
+ <i class="ico-sm-trash"></i> |
|
| 155 |
+ <span class="txt-hide">삭제</span> |
|
| 156 |
+ </button> |
|
| 157 |
+ </c:if> |
|
| 158 |
+ </td> |
|
| 159 |
+ <td> |
|
| 160 |
+ <c:if test="${not empty result.upperMenuId}">
|
|
| 161 |
+ <button class="btn-ico" onclick="fn_egov_view_HisManage('<c:out value="${result.siteId}"/>', '<c:out value="${result.menuId}"/>');return false;">
|
|
| 162 |
+ <i class="ico-sm-refresh"></i> |
|
| 163 |
+ <span class="txt-hide">찾기</span> |
|
| 164 |
+ </button> |
|
| 165 |
+ </c:if> |
|
| 166 |
+ </td> |
|
| 167 |
+ </tr> |
|
| 168 |
+ </tbody> |
|
| 169 |
+ </table> |
|
| 170 |
+ </li> |
|
| 171 |
+ </ul> |
|
| 172 |
+ </c:otherwise> |
|
| 173 |
+ </c:choose> |
|
| 174 |
+ </c:forEach> |
|
| 175 |
+</div> |
|
| 176 |
+<%-- |
|
| 192 | 177 |
|
| 193 | 178 |
<table class="chart_board"> |
| 194 | 179 |
<colgroup> |
... | ... | @@ -294,5 +279,6 @@ |
| 294 | 279 |
--> |
| 295 | 280 |
|
| 296 | 281 |
</div> |
| 282 |
+--%> |
|
| 297 | 283 |
|
| 298 | 284 |
<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmPreview.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmPreview.jsp
... | ... | @@ -1,11 +1,6 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@ page import="egovframework.com.cmm.service.EgovProperties"%> |
|
| 3 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
|
| 4 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 5 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
|
| 6 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 7 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 8 | 3 |
|
| 9 |
-<script type="text/javascript"> |
|
| 4 |
+<script> |
|
| 10 | 5 |
parent.fn_egov_preview_callback('${result}');
|
| 11 | 6 |
</script>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmRegist.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sym/mpm/MpmRegist.jsp
... | ... | @@ -1,13 +1,6 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> |
|
| 2 |
-<%@page import="egovframework.com.cmm.service.Globals"%> |
|
| 3 |
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|
| 4 |
-<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
|
| 5 |
-<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> |
|
| 6 |
-<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
|
| 7 |
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> |
|
| 8 |
-<c:set var="_IMG" value="/resources/template/manage/images"/> |
|
| 9 |
-<c:set var="_JS" value="/resources/template/manage/js"/> |
|
| 10 |
-<c:set var="_C_LIB" value="/resources/lib"/> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
+<%@ include file="/WEB-INF/jsp/egovframework/cmm/include/defualt.jsp"%> |
|
| 3 |
+ |
|
| 11 | 4 |
<c:set var="_MODE" value=""/> |
| 12 | 5 |
<c:set var="MENU_AUTO_MAKE_SITE_ID" value="<%=Globals.MENU_AUTO_MAKE_SITE_ID%>"/> |
| 13 | 6 |
<c:set var="_EDITOR_ID" value="htmlCn_Html"/> |
... | ... | @@ -28,12 +21,11 @@ |
| 28 | 21 |
<c:param name="title" value="${searchVO.siteId eq MENU_AUTO_MAKE_SITE_ID ? '기본 자동생성 메뉴관리' : '메뉴관리'}"/>
|
| 29 | 22 |
</c:import> |
| 30 | 23 |
|
| 31 |
-<script type="text/javascript" src="${_C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
|
|
| 32 |
-<script type="text/javascript" src="${_C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
|
| 24 |
+<script src="${C_LIB}/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
|
|
| 25 |
+<script src="${C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
|
| 33 | 26 |
|
| 34 |
-<script type="text/javascript" src="${_JS}/select_design.js"></script>
|
|
| 35 |
-<script type="text/javascript" src="/lib/ace/src-min/ace.js"></script> |
|
| 36 |
-<script type="text/javascript"> |
|
| 27 |
+<script src="${C_LIB}/ace/src-min/ace.js"></script>
|
|
| 28 |
+<script> |
|
| 37 | 29 |
|
| 38 | 30 |
function fn_egov_preview_mnu() {
|
| 39 | 31 |
var compositionTyCode = $("input[name=compositionTyCode]:checked").val();
|
... | ... | @@ -43,9 +35,7 @@ |
| 43 | 35 |
window.open(url,"PREVIEWWINDOW",""); |
| 44 | 36 |
return false; |
| 45 | 37 |
} |
| 46 |
- |
|
| 47 |
- |
|
| 48 |
- |
|
| 38 |
+ |
|
| 49 | 39 |
if(!fn_egov_validatet_mnu()) {
|
| 50 | 40 |
return; |
| 51 | 41 |
} |
... | ... | @@ -169,7 +159,7 @@ |
| 169 | 159 |
if(compositionTyCode == 'LINK' && cntntsTyCode != 'CTS01') {
|
| 170 | 160 |
$('input:radio[name=compositionTyCode]:input[value=CNTNTS]').attr('checked', true);
|
| 171 | 161 |
} |
| 172 |
- |
|
| 162 |
+ |
|
| 173 | 163 |
fn_egov_all_prog_hide(); |
| 174 | 164 |
|
| 175 | 165 |
if(cntntsTyCode == 'CTS01') {//없음
|
... | ... | @@ -194,7 +184,7 @@ |
| 194 | 184 |
|
| 195 | 185 |
var compositionTyCode = $('input:radio[name=compositionTyCode]:checked').val();
|
| 196 | 186 |
|
| 197 |
- $('#htmlTr').hide(1, fnTabHide);
|
|
| 187 |
+ $('#htmlTr').hide();
|
|
| 198 | 188 |
$('#urlTr').hide();
|
| 199 | 189 |
if(compositionTyCode == 'LINK') {
|
| 200 | 190 |
$('input:radio[name=htmlUseAt]:input[value=N]').attr('checked', true);
|
... | ... | @@ -204,7 +194,7 @@ |
| 204 | 194 |
|
| 205 | 195 |
} else if(compositionTyCode == 'CNTNTS') {
|
| 206 | 196 |
if($('input:radio[name=htmlUseAt]:checked').val() == "Y") {
|
| 207 |
- $('#htmlTr').show(1, fnTabShow);
|
|
| 197 |
+ $('#htmlTr').show();
|
|
| 208 | 198 |
} |
| 209 | 199 |
|
| 210 | 200 |
var cntntsTyCode = $('input:radio[name=cntntsTyCode]:checked').val();
|
... | ... | @@ -231,9 +221,9 @@ |
| 231 | 221 |
} |
| 232 | 222 |
|
| 233 | 223 |
if(htmlUseAt == 'Y') {
|
| 234 |
- $('#htmlTr').show(1, fnTabShow);
|
|
| 224 |
+ $('#htmlTr').show();
|
|
| 235 | 225 |
} else if(htmlUseAt == 'N') {
|
| 236 |
- $('#htmlTr').hide(1, fnTabHide);
|
|
| 226 |
+ $('#htmlTr').hide();
|
|
| 237 | 227 |
} |
| 238 | 228 |
} |
| 239 | 229 |
|
... | ... | @@ -360,12 +350,12 @@ |
| 360 | 350 |
obj.parentNode.parentNode.removeChild(obj.parentNode); |
| 361 | 351 |
} |
| 362 | 352 |
</script> |
| 363 |
- |
|
| 364 |
-<div id="cntnts"> |
|
| 353 |
+ |
|
| 365 | 354 |
<iframe id="previewForm" name="previewForm" frameborder="0" width="0" height="0"></iframe> |
| 355 |
+ |
|
| 366 | 356 |
<form:form commandName="mnuVO" name="mnuVO" method="post" action="" enctype="multipart/form-data" onsubmit="return fn_egov_regist_mnu();"> |
| 367 |
- |
|
| 368 |
- <%-- |
|
| 357 |
+ |
|
| 358 |
+ <%-- |
|
| 369 | 359 |
<form:hidden path="siteId"/> |
| 370 | 360 |
<form:hidden path="menuId"/> |
| 371 | 361 |
<form:hidden path="takeMenuId"/> |
... | ... | @@ -379,306 +369,274 @@ |
| 379 | 369 |
<input type="hidden" name="progrmId" value="${mnuVO.progrmId}"/>
|
| 380 | 370 |
<input type="hidden" name="atchFileId" value="${mnuVO.atchFileId}"/>
|
| 381 | 371 |
<input type="hidden" name="mobileAtchFileId" value="${mnuVO.mobileAtchFileId}"/>
|
| 382 |
- |
|
| 372 |
+ |
|
| 383 | 373 |
<input type="hidden" name="siteUrl" value="${siteInfo.siteUrl}"/>
|
| 384 | 374 |
<input type="hidden" id="htmlCn" name="htmlCn"/> |
| 385 | 375 |
<input type="hidden" id="mobileHtmlCn" name="mobileHtmlCn"/> |
| 386 |
- |
|
| 376 |
+ |
|
| 387 | 377 |
<input type="hidden" id="posblAtchFileNumber_${_EDITOR_ID}" name="posblAtchFileNumber_${_EDITOR_ID}" value="100" />
|
| 388 | 378 |
<input type="hidden" id="posblAtchFileSize_${_EDITOR_ID}" name="posblAtchFileSize_${_EDITOR_ID}" value="${2048 * 1024 * 1024}" />
|
| 389 | 379 |
<input type="hidden" id="fileGroupId" name="fileGroupId" value="${mnuVO.atchFileId}"/>
|
| 390 |
- |
|
| 380 |
+ |
|
| 391 | 381 |
<input type="hidden" id="posblAtchFileNumber_${_MOBILE_EDITOR_ID}" name="posblAtchFileNumber_${_MOBILE_EDITOR_ID}" value="100" />
|
| 392 | 382 |
<input type="hidden" id="posblAtchFileSize_${_MOBILE_EDITOR_ID}" name="posblAtchFileSize_${_MOBILE_EDITOR_ID}" value="${2048 * 1024 * 1024}" />
|
| 393 | 383 |
<input type="hidden" id="mobileFileGroupId" name="mobileFileGroupId" value="${mnuVO.mobileAtchFileId}"/>
|
| 394 |
- |
|
| 395 |
- <div class="btn_r"> |
|
| 396 |
- <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 397 |
- <a href="#" onclick="fn_egov_preview_mnu(); return false;""><img src="${_IMG}/btn/btn_preview.gif" alt="미리보기"/></a>
|
|
| 398 |
- </c:if> |
|
| 399 |
- <input type="image" src="${_IMG}/btn/${_MODE eq 'REG' ? 'btn_regist.gif' : 'btn_modify.gif' }"/>
|
|
| 400 |
- <%-- <a href="#" onclick="fn_egov_regist_mnu(); return false;"><img src="${_IMG}/btn/${_MODE eq 'REG' ? 'btn_regist.gif' : 'btn_modify.gif' }"/></a> --%>
|
|
| 401 |
- <c:url var="listUrl" value='/mng/sym/mpm/selectMpmList.do'> |
|
| 402 |
- <c:param name="siteId" value="${param.siteId}"/>
|
|
| 403 |
- </c:url> |
|
| 404 |
- <a href="${listUrl}"><img src="${_IMG}/btn/btn_list.gif" alt="목록"/></a>
|
|
| 405 |
- </div> |
|
| 406 |
- |
|
| 407 |
- <table class="chart2"> |
|
| 408 |
- <caption>메뉴 등록폼</caption> |
|
| 409 |
- <colgroup> |
|
| 410 |
- <col width="150"/> |
|
| 411 |
- <col/> |
|
| 412 |
- </colgroup> |
|
| 413 |
- <tbody> |
|
| 414 |
- <c:if test="${not empty mnuVO.upperMenuId}">
|
|
| 415 |
- <tr> |
|
| 416 |
- <th><em>*</em> <label>상위메뉴</label></th> |
|
| 417 |
- <td> |
|
| 418 |
- <select name="upperMenuId" id="upperMenuId" style="width:300px;height:21px;display:none;"> |
|
| 419 |
- <c:forEach var="result" items="${mpmList}" varStatus="status">
|
|
| 420 |
- <option value="${result.menuId}" <c:if test="${result.menuId == mnuVO.upperMenuId}">selected="selected"</c:if> ><c:forEach begin="1" end="${result.menuLevel}" step="1"> </c:forEach><c:if test="${result.menuLevel ne 0}"><img src=${_IMG}/btn/folder_${result.menuLevel}.gif> </c:if>${result.menuNm}</option>
|
|
| 421 |
- </c:forEach> |
|
| 422 |
- </select> |
|
| 423 |
- <script> |
|
| 424 |
- makeSelectBoxGlobal("upperMenuId", "selectBoxSelectedAreaGlobal", "white", "${_IMG}/btn/select_btn.gif", "selectBoxOptionGlobal", "selectBoxSelectedAreaFocusGlobal", "selectBoxOptionOverGlobal");
|
|
| 425 |
- </script> |
|
| 426 |
- </td> |
|
| 427 |
- </tr> |
|
| 428 |
- </c:if> |
|
| 429 |
- <tr> |
|
| 430 |
- <th><em>*</em> <label>메뉴명</label></th> |
|
| 431 |
- <td> |
|
| 432 |
- <form:input path="menuNm" cssClass="inp_long" size="50" maxlength="50" /> |
|
| 433 |
- <div><form:errors path="menuNm"/></div> |
|
| 434 |
- </td> |
|
| 435 |
- </tr> |
|
| 436 |
- <%-- <tr> |
|
| 437 |
- <th><label for="imageFileNm">스마트아이콘</label></th> |
|
| 438 |
- <td> |
|
| 439 |
- <input type="file" name="imageFileIdFile" id="imageFile" title="스마트아이콘" class="input300 inp" > <strong class="org">가로 * 세로 : 155 * 150 (이내)</strong> |
|
| 440 |
- <c:if test="${not empty mnuVO.imageFileNm}"><br/><div id="divImageFile"><a href="#" onclick="fileDel('imageFileNm', 'divImageFile');return false;"><img src="${_IMG}/btn/del.gif"/></a><img src="${MenuFileStoreWebPath}${mnuVO.siteId}/${mnuVO.imageFileNm}"/></div></c:if>
|
|
| 441 |
- </td> |
|
| 442 |
- </tr> --%> |
|
| 443 |
- |
|
| 444 |
- <tr> |
|
| 445 |
- <th> <label>노출대상</label></th> |
|
| 446 |
- <td> |
|
| 447 |
- <label>일반 : <input type="checkbox" name="generalUseAt" value="Y" <c:if test="${mnuVO.generalUseAt == 'Y'}"> checked="checked"</c:if>/></label>
|
|
| 448 |
- <label>일반학생 : <input type="checkbox" name="stdntUseAt" value="Y" <c:if test="${mnuVO.stdntUseAt == 'Y'}"> checked="checked"</c:if>/></label>
|
|
| 449 |
- <label>외대학생 : <input type="checkbox" name="stdnprntUseAt" value="Y" <c:if test="${mnuVO.stdnprntUseAt == 'Y'}"> checked="checked"</c:if>/></label>
|
|
| 450 |
- <label>교수 : <input type="checkbox" name="profsrUseAt" value="Y" <c:if test="${mnuVO.profsrUseAt == 'Y'}"> checked="checked"</c:if>/></label>
|
|
| 451 |
- <!-- |
|
| 452 |
- 일반 : <input type="checkbox" name="generalUseAt" value="Y" checked="checked"/> |
|
| 453 |
- 일반학생 : <input type="checkbox" name="stdntUseAt" value="Y" checked="checked"/> |
|
| 454 |
- 외대학생 : <input type="checkbox" name="stdnprntUseAt" value="Y" checked="checked"/> |
|
| 455 |
- 교수 : <input type="checkbox" name="profsrUseAt" value="Y" checked="checked"/> |
|
| 456 |
- --> |
|
| 457 |
- </td> |
|
| 458 |
- </tr> |
|
| 459 |
- |
|
| 460 |
- <tr> |
|
| 461 |
- <th><em>*</em> <label>구성유형</label></th> |
|
| 462 |
- <td> |
|
| 463 |
- 링크 구성 : <form:radiobutton path="compositionTyCode" value="LINK" /> |
|
| 464 |
- 컨텐츠 구성 : <form:radiobutton path="compositionTyCode" value="CNTNTS"/> |
|
| 465 |
- <br/><form:errors path="compositionTyCode" /> |
|
| 466 |
- </td> |
|
| 467 |
- </tr> |
|
| 468 |
- <tr> |
|
| 469 |
- <th><em>*</em> <label>HTML 사용여부</label></th> |
|
| 470 |
- <td> |
|
| 471 |
- <spring:message code="button.yes" /> : <form:radiobutton path="htmlUseAt" value="Y" /> |
|
| 472 |
- <spring:message code="button.no" /> : <form:radiobutton path="htmlUseAt" value="N" /> |
|
| 473 |
- <br/><form:errors path="htmlUseAt" /> |
|
| 474 |
- </td> |
|
| 475 |
- </tr> |
|
| 476 |
- <tr id="htmlTr"> |
|
| 477 |
- <th><label>HTML</label></th> |
|
| 478 |
- <td> |
|
| 479 |
- <div class="conf_top"> |
|
| 480 |
- <!-- <ul class="tab_menu"> |
|
| 481 |
- <li><a href="#tab1" id="tabLink01" onclick="fnTabView('01');return false;" class="active">WEB</a></li>
|
|
| 482 |
- <li><a href="#tab2" id="tabLink02" onclick="fnTabView('02');return false;">MOBILE</a></li>
|
|
| 483 |
- </ul> --> |
|
| 484 |
- </div> |
|
| 485 |
- |
|
| 486 |
- <div id="tab01" class="cont"> |
|
| 487 |
- <table> |
|
| 488 |
- <caption>메뉴 등록폼</caption> |
|
| 489 |
- <colgroup> |
|
| 490 |
- <col width="130"/> |
|
| 491 |
- <col/> |
|
| 492 |
- </colgroup> |
|
| 493 |
- <tbody> |
|
| 494 |
- <%-- |
|
| 495 |
- <tr> |
|
| 496 |
- <th> <label>스타일시트</label></th> |
|
| 497 |
- <td> |
|
| 498 |
- <form:textarea path="styleCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="css"/> |
|
| 499 |
- <form:errors path="styleCn" /> |
|
| 500 |
- </td> |
|
| 501 |
- </tr> |
|
| 502 |
- <tr> |
|
| 503 |
- <th> <label>자바스크립트</label></th> |
|
| 504 |
- <td> |
|
| 505 |
- <form:textarea path="scriptCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="javascript"/> |
|
| 506 |
- <form:errors path="scriptCn" /> |
|
| 507 |
- </td> |
|
| 508 |
- </tr> |
|
| 509 |
- --%> |
|
| 510 |
- <tr> |
|
| 511 |
- <th> <label>내용유형</label></th> |
|
| 512 |
- <td> |
|
| 513 |
- HTML : <form:radiobutton path="htmlsourcTyCode" value="HTML"/> |
|
| 514 |
- JSP : <form:radiobutton path="htmlsourcTyCode" value="JSP"/> |
|
| 515 |
- <br/><form:errors path="htmlsourcTyCode" /> |
|
| 516 |
- </td> |
|
| 517 |
- </tr> |
|
| 518 |
- <tr> |
|
| 519 |
- <th> <label>내용</label></th> |
|
| 520 |
- <td> |
|
| 521 |
- <div id="div_HtmlCn_Html"> |
|
| 522 |
- <%-- <textarea id="htmlCn_Html" rows="50" style="width:100%;" class="inp_default editor" ><c:if test="${mnuVO.htmlsourcTyCode eq 'HTML'}">${mnuVO.htmlCn}</c:if> </textarea> --%>
|
|
| 523 |
- <textarea id="htmlCn_Html" rows="50" style="width:100%;" class="inp_default editor" ><c:if test="${mnuVO.htmlsourcTyCode eq 'HTML'}">${mnuVO.htmlCn}</c:if> </textarea>
|
|
| 524 |
- <%-- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 525 |
- <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 526 |
- <c:param name="estnAt" value="N" /> |
|
| 527 |
- <c:param name="param_atchFileId" value="${mnuVO.atchFileId}" />
|
|
| 528 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 529 |
- </c:import> --%> |
|
| 530 |
- </div> |
|
| 531 |
- <div id="div_HtmlCn_Jsp"><textarea id="htmlCn_Jsp" rows="50"style="width:90%;height:300px;" class="inp_default" lang="jsp"><c:if test="${mnuVO.htmlsourcTyCode eq 'JSP'}">${mnuVO.htmlCn}</c:if> </textarea></div>
|
|
| 532 |
- </td> |
|
| 533 |
- </tr> |
|
| 534 |
- </tbody> |
|
| 535 |
- </table> |
|
| 536 |
- </div> |
|
| 537 |
- <div id="tab02" class="cont"> |
|
| 538 |
- <table> |
|
| 539 |
- <caption>메뉴 등록폼</caption> |
|
| 540 |
- <colgroup> |
|
| 541 |
- <col width="130"/> |
|
| 542 |
- <col/> |
|
| 543 |
- </colgroup> |
|
| 544 |
- <tbody> |
|
| 545 |
- <tr> |
|
| 546 |
- <th> <label>스타일시트</label></th> |
|
| 547 |
- <td> |
|
| 548 |
- <form:textarea path="mobileStyleCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="css"/> |
|
| 549 |
- <form:errors path="mobileStyleCn" /> |
|
| 550 |
- </td> |
|
| 551 |
- </tr> |
|
| 552 |
- <tr> |
|
| 553 |
- <th> <label>자바스크립트</label></th> |
|
| 554 |
- <td> |
|
| 555 |
- <form:textarea path="mobileScriptCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="javascript"/> |
|
| 556 |
- <form:errors path="mobileScriptCn" /> |
|
| 557 |
- </td> |
|
| 558 |
- </tr> |
|
| 559 |
- <tr> |
|
| 560 |
- <th> <label>내용유형</label></th> |
|
| 561 |
- <td> |
|
| 562 |
- HTML : <form:radiobutton path="mobileHtmlsourcTyCode" value="HTML"/> |
|
| 563 |
- JSP : <form:radiobutton path="mobileHtmlsourcTyCode" value="JSP"/> |
|
| 564 |
- <br/><form:errors path="mobileHtmlsourcTyCode" /> |
|
| 565 |
- </td> |
|
| 566 |
- </tr> |
|
| 567 |
- <tr> |
|
| 568 |
- <th> <label>내용</label></th> |
|
| 569 |
- <td> |
|
| 570 |
- <div id="div_MobileHtmlCn_Html"> |
|
| 571 |
- <textarea id="mobileHtmlCn_Html" rows="50" style="width:100%;" class="inp_default editor" ><c:if test="${mnuVO.mobileHtmlsourcTyCode eq 'HTML'}">${mnuVO.mobileHtmlCn}</c:if> </textarea>
|
|
| 572 |
- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 573 |
- <c:param name="editorId" value="${_MOBILE_EDITOR_ID}"/>
|
|
| 574 |
- <c:param name="estnAt" value="N" /> |
|
| 575 |
- <c:param name="param_atchFileId" value="${mnuVO.mobileAtchFileId}" />
|
|
| 576 |
- <c:param name="imagePath" value="${_IMG }"/>
|
|
| 577 |
- </c:import> |
|
| 578 |
- </div> |
|
| 579 |
- <div id="div_MobileHtmlCn_Jsp"><textarea id="mobileHtmlCn_Jsp" rows="50" style="width:90%;" class="inp_default" lang="jsp"><c:if test="${mnuVO.mobileHtmlsourcTyCode eq 'JSP'}">${mnuVO.mobileHtmlCn}</c:if> </textarea></div>
|
|
| 580 |
- </td> |
|
| 581 |
- </tr> |
|
| 582 |
- </tbody> |
|
| 583 |
- </table> |
|
| 584 |
- </div> |
|
| 585 |
- </td> |
|
| 586 |
- </tr> |
|
| 587 |
- <tr> |
|
| 588 |
- <th><em>*</em> <label>컨텐츠유형</label></th> |
|
| 589 |
- <td> |
|
| 590 |
- <form:radiobuttons path="cntntsTyCode" items="${mnuCntsList}" itemLabel="codeNm" itemValue="code"/>
|
|
| 591 |
- <div><form:errors path="cntntsTyCode"/></div> |
|
| 592 |
- <div id="bbsDiv" style="display:none"> |
|
| 593 |
- <select name="selectBbs" id="selectBbs" class="searchCate inp"> |
|
| 594 |
- <option value="">--- 선택하세요 ---</option> |
|
| 595 |
- <c:choose> |
|
| 596 |
- <c:when test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 597 |
- <c:forEach var="result" items="${bbsList}" varStatus="status">
|
|
| 598 |
- <option value="<c:out value="${result.bbsId}"/>" <c:if test="${mnuVO.progrmId == result.bbsId}">selected="selected"</c:if>><c:out value="${result.bbsNm}"/></option>
|
|
| 599 |
- </c:forEach> |
|
| 600 |
- </c:when> |
|
| 601 |
- <c:otherwise> |
|
| 602 |
- <c:forEach var="result" items="${attrbList}" varStatus="status">
|
|
| 603 |
- <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 604 |
- </c:forEach> |
|
| 605 |
- </c:otherwise> |
|
| 606 |
- </c:choose> |
|
| 607 |
- </select> |
|
| 608 |
- </div> |
|
| 609 |
- |
|
| 610 |
- <div id="progDiv" style="display:none"> |
|
| 611 |
- <select name="selectProgrmId" id="selectProgrmId" class="searchCate inp"> |
|
| 612 |
- <option value="">--- 선택하세요 ---</option> |
|
| 613 |
- <c:forEach var="result" items="${progList}" varStatus="status">
|
|
| 614 |
- <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 615 |
- </c:forEach> |
|
| 616 |
- </select> |
|
| 617 |
- 프로그램인자:<form:input path="progrmFactr" size="30" cssClass="inp" maxlength="30" /> |
|
| 618 |
- </div> |
|
| 619 |
- |
|
| 620 |
- </td> |
|
| 621 |
- </tr> |
|
| 622 |
- <tr id="urlTr"> |
|
| 623 |
- <th> <label>URL</label></th> |
|
| 624 |
- <td> |
|
| 625 |
- <form:input path="url" size="100" cssClass="inp" maxlength="255" /> |
|
| 626 |
- <br/><span>※ 외부링크 삽입시 예) http://www.homepage.com</span> |
|
| 627 |
- <div><form:errors path="url"/></div> |
|
| 628 |
- </td> |
|
| 629 |
- </tr> |
|
| 630 |
- <tr> |
|
| 631 |
- <th> <label>새창여부</label></th> |
|
| 632 |
- <td> |
|
| 633 |
- <spring:message code="button.yes" /> : <form:radiobutton path="nwdAt" value="Y" /> |
|
| 634 |
- <spring:message code="button.no" /> : <form:radiobutton path="nwdAt" value="N" /> |
|
| 635 |
- <br/><form:errors path="nwdAt" /> |
|
| 636 |
- </td> |
|
| 637 |
- </tr> |
|
| 638 |
- <tr> |
|
| 639 |
- <th> <label>노출여부</label></th> |
|
| 640 |
- <td> |
|
| 641 |
- <spring:message code="button.yes" /> : <form:radiobutton path="expsrUseAt" value="Y" /> |
|
| 642 |
- <spring:message code="button.no" /> : <form:radiobutton path="expsrUseAt" value="N" /> |
|
| 643 |
- <br/><form:errors path="expsrUseAt" /> |
|
| 644 |
- </td> |
|
| 645 |
- </tr> |
|
| 646 |
- <tr <c:if test="${empty mnuVO.upperMenuId}">style="display:none"</c:if>>
|
|
| 647 |
- <th> <label>노출순서</label></th> |
|
| 648 |
- <td> |
|
| 649 |
- <form:input path="sortOrdr" size="10" cssClass="inp"/> |
|
| 650 |
- <input type="hidden" name="menuLevel" value="<c:out value="${mnuVO.menuLevel}"/>"/>
|
|
| 651 |
- <div><form:errors path="sortOrdr"/></div> |
|
| 652 |
- </td> |
|
| 653 |
- </tr> |
|
| 654 |
- <tr style="display:none;"> |
|
| 655 |
- <th> <label>모바일사용여부</label></th> |
|
| 656 |
- <td> |
|
| 657 |
- <spring:message code="button.yes" /> : <form:radiobutton path="mobileUseAt" value="Y" /> |
|
| 658 |
- <spring:message code="button.no" /> : <form:radiobutton path="mobileUseAt" value="N" /> |
|
| 659 |
- <br/><form:errors path="mobileUseAt" /> |
|
| 660 |
- </td> |
|
| 661 |
- </tr> |
|
| 662 |
- </tbody> |
|
| 663 |
- </table> |
|
| 664 |
- |
|
| 665 |
- <div class="btn_r"> |
|
| 666 |
- <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 667 |
- <a href="#" onclick="fn_egov_preview_mnu(); return false;""><img src="${_IMG}/btn/btn_preview.gif" alt="미리보기"/></a>
|
|
| 668 |
- </c:if> |
|
| 669 |
- <input type="image" src="${_IMG}/btn/${_MODE eq 'REG' ? 'btn_regist.gif' : 'btn_modify.gif' }"/>
|
|
| 670 |
- <%-- <a href="#" onclick="fn_egov_regist_mnu(); return false;"><img src="${_IMG}/btn/${_MODE eq 'REG' ? 'btn_regist.gif' : 'btn_modify.gif' }"/></a> --%>
|
|
| 671 |
- <c:url var="listUrl" value='/mng/sym/mpm/selectMpmList.do'> |
|
| 672 |
- <c:param name="siteId" value="${param.siteId}"/>
|
|
| 673 |
- </c:url> |
|
| 674 |
- <a href="${listUrl}"><img src="${_IMG}/btn/btn_list.gif" alt="목록"/></a>
|
|
| 675 |
- </div> |
|
| 676 |
- |
|
| 384 |
+ |
|
| 385 |
+ <fieldset> |
|
| 386 |
+ <legend class="hdn">메뉴 입력 폼</legend> |
|
| 387 |
+ |
|
| 388 |
+ <div class="fnc-area"> |
|
| 389 |
+ <div class="r-area"> |
|
| 390 |
+ <%-- |
|
| 391 |
+ <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 392 |
+ <button type="button" class="btn spot" onclick="fn_egov_preview_mnu(); return false;">미리보기</button> |
|
| 393 |
+ </c:if> |
|
| 394 |
+ --%> |
|
| 395 |
+ <button type="submit" class="btn spot2">${_MODE eq 'REG' ? '등록' : '수정' }</button>
|
|
| 396 |
+ <c:url var="listUrl" value='/mng/sym/mpm/selectMpmList.do'> |
|
| 397 |
+ <c:param name="siteId" value="${param.siteId}"/>
|
|
| 398 |
+ </c:url> |
|
| 399 |
+ <a href="${listUrl}" class="btn">목록</a>
|
|
| 400 |
+ </div> |
|
| 401 |
+ </div> |
|
| 402 |
+ |
|
| 403 |
+ <div class="write-type"> |
|
| 404 |
+ <table> |
|
| 405 |
+ <colgroup> |
|
| 406 |
+ <col style="width:250px" /> |
|
| 407 |
+ <col /> |
|
| 408 |
+ </colgroup> |
|
| 409 |
+ <tbody> |
|
| 410 |
+ <c:if test="${not empty mnuVO.upperMenuId}">
|
|
| 411 |
+ <tr> |
|
| 412 |
+ <th><label for="upperMenuId">상위메뉴</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 413 |
+ <td> |
|
| 414 |
+ <div class="selectbox"> |
|
| 415 |
+ <select name="upperMenuId" id="upperMenuId"> |
|
| 416 |
+ <c:forEach var="result" items="${mpmList}" varStatus="status">
|
|
| 417 |
+ <option value="${result.menuId}" <c:if test="${result.menuId == mnuVO.upperMenuId}">selected="selected"</c:if>>${result.menuNm}</option>
|
|
| 418 |
+ </c:forEach> |
|
| 419 |
+ </select> |
|
| 420 |
+ </div> |
|
| 421 |
+ </td> |
|
| 422 |
+ </tr> |
|
| 423 |
+ </c:if> |
|
| 424 |
+ <tr> |
|
| 425 |
+ <th><label for="menuNm">메뉴명</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 426 |
+ <td> |
|
| 427 |
+ <form:input path="menuNm" cssClass="q4" maxlength="50" /> |
|
| 428 |
+ <div><form:errors path="menuNm" /></div> |
|
| 429 |
+ </td> |
|
| 430 |
+ </tr> |
|
| 431 |
+ <tr> |
|
| 432 |
+ <th>노출대상</th> |
|
| 433 |
+ <td> |
|
| 434 |
+ <div class="checkradio"> |
|
| 435 |
+ <input type="checkbox" id="generalUseAt" name="generalUseAt" value="Y" <c:if test="${not empty mnuVO.generalUseAt}"> checked</c:if>/>
|
|
| 436 |
+ <label for="generalUseAt">일반</label> |
|
| 437 |
+ </div> |
|
| 438 |
+ <div class="checkradio"> |
|
| 439 |
+ <input type="checkbox" id="stdntUseAt" name="stdntUseAt" value="Y" <c:if test="${not empty mnuVO.stdntUseAt}"> checked</c:if>/>
|
|
| 440 |
+ <label for="stdntUseAt">학생</label> |
|
| 441 |
+ </div> |
|
| 442 |
+ <div class="checkradio"> |
|
| 443 |
+ <input type="checkbox" id="stdnprntUseAt" name="stdnprntUseAt" value="Y" <c:if test="${not empty mnuVO.stdnprntUseAt}"> checked</c:if>/>
|
|
| 444 |
+ <label for="stdnprntUseAt">학부모</label> |
|
| 445 |
+ </div> |
|
| 446 |
+ <div class="checkradio"> |
|
| 447 |
+ <input type="checkbox" id="profsrUseAt" name="profsrUseAt" value="Y" <c:if test="${not empty mnuVO.profsrUseAt}"> checked=</c:if>/>
|
|
| 448 |
+ <label for="profsrUseAt">선생님</label> |
|
| 449 |
+ </div> |
|
| 450 |
+ </td> |
|
| 451 |
+ </tr> |
|
| 452 |
+ <tr> |
|
| 453 |
+ <th>구성유형 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 454 |
+ <td> |
|
| 455 |
+ <div class="checkradio"> |
|
| 456 |
+ <form:radiobutton path="compositionTyCode" value="LINK" /> |
|
| 457 |
+ <label for="compositionTyCode1">링크 구성</label> |
|
| 458 |
+ </div> |
|
| 459 |
+ <div class="checkradio"> |
|
| 460 |
+ <form:radiobutton path="compositionTyCode" value="CNTNTS"/> |
|
| 461 |
+ <label for="compositionTyCode2">컨텐츠 구성</label> |
|
| 462 |
+ </div> |
|
| 463 |
+ </td> |
|
| 464 |
+ </tr> |
|
| 465 |
+ <tr> |
|
| 466 |
+ <th>HTML 사용여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 467 |
+ <td> |
|
| 468 |
+ <div class="checkradio"> |
|
| 469 |
+ <form:radiobutton path="htmlUseAt" value="Y" /> |
|
| 470 |
+ <label for="htmlUseAt1"><spring:message code="button.yes" /></label> |
|
| 471 |
+ </div> |
|
| 472 |
+ <div class="checkradio"> |
|
| 473 |
+ <form:radiobutton path="htmlUseAt" value="N" /> |
|
| 474 |
+ <label for="htmlUseAt2"><spring:message code="button.no" /></label> |
|
| 475 |
+ </div> |
|
| 476 |
+ </td> |
|
| 477 |
+ </tr> |
|
| 478 |
+ <%-- |
|
| 479 |
+ <tr> |
|
| 480 |
+ <th> <label>스타일시트</label></th> |
|
| 481 |
+ <td> |
|
| 482 |
+ <form:textarea path="styleCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="css"/> |
|
| 483 |
+ <form:errors path="styleCn" /> |
|
| 484 |
+ </td> |
|
| 485 |
+ </tr> |
|
| 486 |
+ <tr> |
|
| 487 |
+ <th> <label>자바스크립트</label></th> |
|
| 488 |
+ <td> |
|
| 489 |
+ <form:textarea path="scriptCn" rows="10" cssStyle="width:90%;height:300px;" cssClass="inp_default" lang="javascript"/> |
|
| 490 |
+ <form:errors path="scriptCn" /> |
|
| 491 |
+ </td> |
|
| 492 |
+ </tr> |
|
| 493 |
+ --%> |
|
| 494 |
+ <tr> |
|
| 495 |
+ <th>내용유형 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 496 |
+ <td> |
|
| 497 |
+ <div class="checkradio"> |
|
| 498 |
+ <form:radiobutton path="htmlsourcTyCode" value="HTML"/> |
|
| 499 |
+ <label for="htmlsourcTyCode1">HTML</label> |
|
| 500 |
+ </div> |
|
| 501 |
+ <div class="checkradio"> |
|
| 502 |
+ <form:radiobutton path="htmlsourcTyCode" value="JSP"/> |
|
| 503 |
+ <label for="htmlsourcTyCode2">JSP</label> |
|
| 504 |
+ </div> |
|
| 505 |
+ </td> |
|
| 506 |
+ </tr> |
|
| 507 |
+ |
|
| 508 |
+ <tr id="htmlTr"> |
|
| 509 |
+ <th> <label>내용</label></th> |
|
| 510 |
+ <td> |
|
| 511 |
+ <div id="div_HtmlCn_Html"> |
|
| 512 |
+ <textarea id="htmlCn_Html" rows="50" class="editor" ><c:if test="${mnuVO.htmlsourcTyCode eq 'HTML'}">${mnuVO.htmlCn}</c:if> </textarea>
|
|
| 513 |
+ <%-- <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> |
|
| 514 |
+ <c:param name="editorId" value="${_EDITOR_ID}"/>
|
|
| 515 |
+ <c:param name="estnAt" value="N" /> |
|
| 516 |
+ <c:param name="param_atchFileId" value="${mnuVO.atchFileId}" />
|
|
| 517 |
+ <c:param name="imagePath" value="${_IMG }"/>
|
|
| 518 |
+ </c:import> --%> |
|
| 519 |
+ </div> |
|
| 520 |
+ <div id="div_HtmlCn_Jsp"> |
|
| 521 |
+ <textarea id="htmlCn_Jsp" lang="jsp" style="height: 355px"><c:if test="${mnuVO.htmlsourcTyCode eq 'JSP'}">${mnuVO.htmlCn}</c:if></textarea>
|
|
| 522 |
+ </div> |
|
| 523 |
+ </td> |
|
| 524 |
+ </tr> |
|
| 525 |
+ <tr> |
|
| 526 |
+ <th><label for="upperMenuId">컨텐츠유형</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 527 |
+ <td> |
|
| 528 |
+ <c:forEach var="result" items="${mnuCntsList}" varStatus="status">
|
|
| 529 |
+ <div class="checkradio"> |
|
| 530 |
+ <input id="cntntsTyCode${status.count}" name="cntntsTyCode" type="radio" value="${result.code}" <c:if test="${result.code eq 'CTS01'}">checked</c:if>>
|
|
| 531 |
+ <label for="cntntsTyCode${status.count}"><c:out value="${result.codeNm}"/></label>
|
|
| 532 |
+ </div> |
|
| 533 |
+ </c:forEach> |
|
| 534 |
+ |
|
| 535 |
+ <div id="bbsDiv" class="selectbox" style="display:none"> |
|
| 536 |
+ <select name="selectBbs" id="selectBbs"> |
|
| 537 |
+ <option value="">--- 선택하세요 ---</option> |
|
| 538 |
+ <c:choose> |
|
| 539 |
+ <c:when test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 540 |
+ <c:forEach var="result" items="${bbsList}" varStatus="status">
|
|
| 541 |
+ <option value="<c:out value="${result.bbsId}"/>" <c:if test="${mnuVO.progrmId == result.bbsId}">selected="selected"</c:if>><c:out value="${result.bbsNm}"/></option>
|
|
| 542 |
+ </c:forEach> |
|
| 543 |
+ </c:when> |
|
| 544 |
+ <c:otherwise> |
|
| 545 |
+ <c:forEach var="result" items="${attrbList}" varStatus="status">
|
|
| 546 |
+ <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 547 |
+ </c:forEach> |
|
| 548 |
+ </c:otherwise> |
|
| 549 |
+ </c:choose> |
|
| 550 |
+ </select> |
|
| 551 |
+ </div> |
|
| 552 |
+ |
|
| 553 |
+ <div id="progDiv" class="selectbox" style="display:none"> |
|
| 554 |
+ <select name="selectProgrmId" id="selectProgrmId" class="searchCate inp"> |
|
| 555 |
+ <option value="">--- 선택하세요 ---</option> |
|
| 556 |
+ <c:forEach var="result" items="${progList}" varStatus="status">
|
|
| 557 |
+ <option value="<c:out value="${result.code}"/>" <c:if test="${mnuVO.progrmId == result.code}">selected="selected"</c:if>><c:out value="${result.codeNm}"/></option>
|
|
| 558 |
+ </c:forEach> |
|
| 559 |
+ </select> |
|
| 560 |
+ 프로그램인자:<form:input path="progrmFactr" size="30" cssClass="inp" maxlength="30" /> |
|
| 561 |
+ </div> |
|
| 562 |
+ </td> |
|
| 563 |
+ </tr> |
|
| 564 |
+ <tr id="urlTr"> |
|
| 565 |
+ <th> <label>URL</label></th> |
|
| 566 |
+ <td> |
|
| 567 |
+ <form:input path="url" size="100" cssClass="q4" maxlength="255" /> |
|
| 568 |
+ <p class="msg"><em>외부링크 삽입시 예)</em> http://www.site.com</p> |
|
| 569 |
+ <div><form:errors path="url"/></div> |
|
| 570 |
+ </td> |
|
| 571 |
+ </tr> |
|
| 572 |
+ <tr> |
|
| 573 |
+ <th>새창여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 574 |
+ <td> |
|
| 575 |
+ <div class="checkradio"> |
|
| 576 |
+ <form:radiobutton path="nwdAt" value="Y" /> |
|
| 577 |
+ <label for="nwdAt1"><spring:message code="button.yes" /></label> |
|
| 578 |
+ </div> |
|
| 579 |
+ <div class="checkradio"> |
|
| 580 |
+ <form:radiobutton path="nwdAt" value="N" /> |
|
| 581 |
+ <label for="nwdAt2"><spring:message code="button.no" /></label> |
|
| 582 |
+ </div> |
|
| 583 |
+ </td> |
|
| 584 |
+ </tr> |
|
| 585 |
+ <tr> |
|
| 586 |
+ <th>노출여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 587 |
+ <td> |
|
| 588 |
+ <div class="checkradio"> |
|
| 589 |
+ <form:radiobutton path="expsrUseAt" value="Y" /> |
|
| 590 |
+ <label for="expsrUseAt1"><spring:message code="button.yes" /></label> |
|
| 591 |
+ </div> |
|
| 592 |
+ <div class="checkradio"> |
|
| 593 |
+ <form:radiobutton path="expsrUseAt" value="N" /> |
|
| 594 |
+ <label for="expsrUseAt2"><spring:message code="button.no" /></label> |
|
| 595 |
+ </div> |
|
| 596 |
+ </td> |
|
| 597 |
+ </tr> |
|
| 598 |
+ <tr <c:if test="${empty mnuVO.upperMenuId}">style="display:none"</c:if>>
|
|
| 599 |
+ <th>노출순서 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 600 |
+ <td> |
|
| 601 |
+ <form:input path="sortOrdr" type="number" size="10" cssClass="q0" maxlength="10" /> |
|
| 602 |
+ <input type="hidden" name="menuLevel" value="<c:out value="${mnuVO.menuLevel}"/>"/>
|
|
| 603 |
+ <div><form:errors path="sortOrdr"/></div> |
|
| 604 |
+ </td> |
|
| 605 |
+ </tr> |
|
| 606 |
+ |
|
| 607 |
+ <tr style="display:none;"> |
|
| 608 |
+ <th>모바일사용여부 <i class="required">*<span class="txt-hide" >필수</span></i></th> |
|
| 609 |
+ <td> |
|
| 610 |
+ <div class="checkradio"> |
|
| 611 |
+ <form:radiobutton path="mobileUseAt" value="Y" /> |
|
| 612 |
+ <label for="mobileUseAt1"><spring:message code="button.yes" /></label> |
|
| 613 |
+ </div> |
|
| 614 |
+ <div class="checkradio"> |
|
| 615 |
+ <form:radiobutton path="mobileUseAt" value="N" /> |
|
| 616 |
+ <label for="mobileUseAt2"><spring:message code="button.no" /></label> |
|
| 617 |
+ </div> |
|
| 618 |
+ </td> |
|
| 619 |
+ </tr> |
|
| 620 |
+ |
|
| 621 |
+ </tbody> |
|
| 622 |
+ </table> |
|
| 623 |
+ </div> |
|
| 624 |
+ <div class="btn-cont"> |
|
| 625 |
+ <%-- |
|
| 626 |
+ <c:if test="${searchVO.siteId ne MENU_AUTO_MAKE_SITE_ID}">
|
|
| 627 |
+ <button type="button" class="btn-lg spot" onclick="fn_egov_preview_mnu(); return false;">미리보기</button> |
|
| 628 |
+ </c:if> |
|
| 629 |
+ --%> |
|
| 630 |
+ <button type="submit" class="btn-lg spot2">${_MODE eq 'REG' ? '등록' : '수정' }</button>
|
|
| 631 |
+ <c:url var="listUrl" value='/mng/sym/mpm/selectMpmList.do'> |
|
| 632 |
+ <c:param name="siteId" value="${param.siteId}"/>
|
|
| 633 |
+ </c:url> |
|
| 634 |
+ <a href="${listUrl}" class="btn-lg">목록</a>
|
|
| 635 |
+ </div> |
|
| 636 |
+ </fieldset> |
|
| 677 | 637 |
</form:form> |
| 678 |
- |
|
| 679 |
- |
|
| 680 |
-</div> |
|
| 681 |
-<script type="text/javascript"> |
|
| 638 |
+ |
|
| 639 |
+<script> |
|
| 682 | 640 |
$(function() {
|
| 683 | 641 |
$("textarea[lang]").each(function() {
|
| 684 | 642 |
var textarea = $(this); |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/bottom.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/bottom.jsp
... | ... | @@ -27,5 +27,16 @@ |
| 27 | 27 |
|
| 28 | 28 |
<script src="/resources/lib/jquery/ui/i18n/jquery.ui.datepicker-ko.js"></script> |
| 29 | 29 |
<script src="/resources/lib/jquery/jquery.timepicker.min.js"></script> |
| 30 |
+<script> |
|
| 31 |
+ //jquery-ui |
|
| 32 |
+ $('.datepicker').datepicker({
|
|
| 33 |
+ showOn: "both", |
|
| 34 |
+ buttonImage: "/resources/manage/image/common/ico_cal.svg", |
|
| 35 |
+ buttonText: "기간 선택", |
|
| 36 |
+ // buttonImageOnly: true, |
|
| 37 |
+ changeMonth: true, |
|
| 38 |
+ changeYear: true |
|
| 39 |
+ }); |
|
| 40 |
+</script> |
|
| 30 | 41 |
</body> |
| 31 | 42 |
</html>(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/popBottom.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/popBottom.jsp
... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 |
<div class="dim"></div> |
| 8 | 8 |
|
| 9 | 9 |
<!--퍼블 layout--> |
| 10 |
-<script src="/resources/manage/js/_layout.js"></script> |
|
| 10 |
+<%--<script src="/resources/manage/js/_layout.js"></script>--%> |
|
| 11 | 11 |
|
| 12 | 12 |
<script src="/resources/manage/js/jquery-ui.min.js"></script> |
| 13 | 13 |
<script src="/resources/manage/js/jquery.easing.1.3.js"></script> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
... | ... | @@ -13,10 +13,8 @@ |
| 13 | 13 |
<title>관리자페이지 : <c:out value='${param.title}'/></title>
|
| 14 | 14 |
|
| 15 | 15 |
<link href="/resources/manage/css/style.css" rel="stylesheet" /> |
| 16 |
- <link href="/resources/template/common/js/jquery/css/jquery.timepicker.css" rel="stylesheet" /> |
|
| 17 | 16 |
|
| 18 |
- <%--<script src="<c:url value='/resources/template/common/js/jquery/jquery-1.9.1.min.js'/>"></script>--%> |
|
| 19 |
- <script src="/resources/manage/js/jquery-3.6.0.min.js"></script> |
|
| 17 |
+ <%--<script src="/resources/manage/js/jquery-3.6.0.min.js"></script>--%> |
|
| 20 | 18 |
<script src="<c:url value='/resources/common/js/common.js'/>"></script> |
| 21 | 19 |
|
| 22 | 20 |
<c:if test="${not empty param.validator }">
|
... | ... | @@ -44,7 +42,7 @@ |
| 44 | 42 |
<div class="l-area"> |
| 45 | 43 |
<h1 class="logo"> |
| 46 | 44 |
<a href="/mng/index.do"> |
| 47 |
- <img src="/resources/manage/image/logo/logo.svg" alt="logo" /> |
|
| 45 |
+ <img src="/resources/manage/image/logo/logo_foxCMS.svg" alt="logo" /> |
|
| 48 | 46 |
</a> |
| 49 | 47 |
</h1> |
| 50 | 48 |
<%-- 대메뉴 목록 --%> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/uss/ion/bnr/BannerRegist.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/uss/ion/bnr/BannerRegist.jsp
... | ... | @@ -44,32 +44,29 @@ |
| 44 | 44 |
} |
| 45 | 45 |
</c:if> |
| 46 | 46 |
--%> |
| 47 |
- <c:if test="${banner.bannerTyCode eq 'BAN001'}">
|
|
| 48 |
- var ntceBgndeYYYMMDD = $.trim($('#ntceBgndeYYYMMDD').val().replace(/-/g, ''));
|
|
| 49 |
- var ntceEnddeYYYMMDD = $.trim($('#ntceEnddeYYYMMDD').val().replace(/-/g, ''));
|
|
| 47 |
+ var ntceBgndeYYYMMDD = $.trim($('#ntceBgndeYYYMMDD').val().replace(/-/g, ''));
|
|
| 48 |
+ var ntceEnddeYYYMMDD = $.trim($('#ntceEnddeYYYMMDD').val().replace(/-/g, ''));
|
|
| 50 | 49 |
|
| 51 |
- if(ntceBgndeYYYMMDD == "") {
|
|
| 52 |
- alert("게시시작일자를 선택하세요");
|
|
| 53 |
- return false; |
|
| 54 |
- } |
|
| 50 |
+ if(ntceBgndeYYYMMDD == "") {
|
|
| 51 |
+ alert("게시시작일자를 선택하세요");
|
|
| 52 |
+ return false; |
|
| 53 |
+ } |
|
| 55 | 54 |
|
| 56 |
- if(ntceEnddeYYYMMDD == "") {
|
|
| 57 |
- alert("게시종료일자를 선택하세요");
|
|
| 58 |
- return false; |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- var iChkBeginDe = Number( ntceBgndeYYYMMDD ); |
|
| 62 |
- var iChkEndDe = Number( ntceEnddeYYYMMDD ); |
|
| 55 |
+ if(ntceEnddeYYYMMDD == "") {
|
|
| 56 |
+ alert("게시종료일자를 선택하세요");
|
|
| 57 |
+ return false; |
|
| 58 |
+ } |
|
| 63 | 59 |
|
| 64 |
- if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){
|
|
| 65 |
- alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. ");
|
|
| 66 |
- return false; |
|
| 67 |
- } |
|
| 60 |
+ var iChkBeginDe = Number( ntceBgndeYYYMMDD ); |
|
| 61 |
+ var iChkEndDe = Number( ntceEnddeYYYMMDD ); |
|
| 68 | 62 |
|
| 69 |
- $('#ntceBgnde').val(ntceBgndeYYYMMDD + $('#ntceBgndeHH').val() + $('#ntceBgndeMM').val());
|
|
| 70 |
- $('#ntceEndde').val(ntceEnddeYYYMMDD + $('#ntceEnddeHH').val() + $('#ntceEnddeMM').val());
|
|
| 71 |
- |
|
| 72 |
- </c:if> |
|
| 63 |
+ if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){
|
|
| 64 |
+ alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. ");
|
|
| 65 |
+ return false; |
|
| 66 |
+ } |
|
| 67 |
+ |
|
| 68 |
+ $('#ntceBgnde').val(ntceBgndeYYYMMDD + $('#ntceBgndeHH').val() + $('#ntceBgndeMM').val());
|
|
| 69 |
+ $('#ntceEndde').val(ntceEnddeYYYMMDD + $('#ntceEnddeHH').val() + $('#ntceEnddeMM').val());
|
|
| 73 | 70 |
|
| 74 | 71 |
if(!confirm("<spring:message code="${_MODE eq 'REG' ? 'common.regist.msg' : 'common.update.msg'}" />")){
|
| 75 | 72 |
return false; |
... | ... | @@ -230,18 +227,23 @@ |
| 230 | 227 |
</div> |
| 231 | 228 |
</td> |
| 232 | 229 |
</tr> |
| 230 |
+ |
|
| 233 | 231 |
<tr> |
| 234 | 232 |
<th><label for="ntceBgndeYYYMMDD">게시 기간</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
| 235 | 233 |
<td> |
| 236 |
- <input type="text" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="inp" value="<c:out value="${fn:substring(banner.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(banner.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(banner.ntceBgnde, 6, 8)}"/>" readonly="readonly" />
|
|
| 234 |
+ <label class="datepicker-box"> |
|
| 235 |
+ <input type="text" id="ntceBgndeYYYMMDD" class="datepicker" name="ntceBgndeYYYMMDD" maxlength="10" title="기간입력" value="<c:out value="${fn:substring(banner.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(banner.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(banner.ntceBgnde, 6, 8)}"/>" readonly="readonly">
|
|
| 236 |
+ </label> |
|
| 237 | 237 |
<form:select path="ntceBgndeHH"> |
| 238 | 238 |
<form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/>
|
| 239 | 239 |
</form:select>H |
| 240 | 240 |
<form:select path="ntceBgndeMM"> |
| 241 | 241 |
<form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/>
|
| 242 | 242 |
</form:select>M |
| 243 |
- <span> ~ </span> |
|
| 244 |
- <input type="text" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="inp" value="<c:out value="${fn:substring(banner.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(banner.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(banner.ntceEndde, 6, 8)}"/>" readonly="readonly" />
|
|
| 243 |
+ <span> - </span> |
|
| 244 |
+ <label class="datepicker-box"> |
|
| 245 |
+ <input type="text" id="ntceEnddeYYYMMDD" class="datepicker" name="ntceEnddeYYYMMDD" maxlength="10" title="기간입력" value="<c:out value="${fn:substring(banner.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(banner.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(banner.ntceEndde, 6, 8)}"/>" readonly="readonly">
|
|
| 246 |
+ </label> |
|
| 245 | 247 |
<form:select path="ntceEnddeHH"> |
| 246 | 248 |
<form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/>
|
| 247 | 249 |
</form:select>H |
... | ... | @@ -250,6 +252,7 @@ |
| 250 | 252 |
</form:select>M |
| 251 | 253 |
</td> |
| 252 | 254 |
</tr> |
| 255 |
+ |
|
| 253 | 256 |
</tbody> |
| 254 | 257 |
</table> |
| 255 | 258 |
</div> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/uss/ion/pwm/PopupRegist.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/uss/ion/pwm/PopupRegist.jsp
... | ... | @@ -23,7 +23,6 @@ |
| 23 | 23 |
<script src="${C_LIB}/tinymce/js/tinymce/tinymce.min.js"></script>
|
| 24 | 24 |
<script src="${C_LIB}/upload/upload.js" ></script>
|
| 25 | 25 |
|
| 26 |
-<link rel="stylesheet" href="${C_LIB}/jquery-ui-1.12.1.custom/jquery-ui.css">
|
|
| 27 | 26 |
<script src="${C_LIB}/jquery/jquery.ui.widget.js"></script>
|
| 28 | 27 |
<script src="${C_LIB}/upload/jquery.iframe-transport.js"></script>
|
| 29 | 28 |
<script src="${C_LIB}/upload/jquery.fileupload.js"></script>
|
... | ... | @@ -311,16 +310,19 @@ |
| 311 | 310 |
<tr> |
| 312 | 311 |
<th><label for="ntceBgndeYYYMMDD">게시 기간</label> <i class="required">*<span class="txt-hide" >필수</span></i></th> |
| 313 | 312 |
<td> |
| 314 |
- <input type="text" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="inp" value="<c:out value="${fn:substring(popupManageVO.ntceBgnde, 0, 4)}" />-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 6, 8)}"/>" readonly="readonly"/>
|
|
| 313 |
+ <label class="datepicker-box"> |
|
| 314 |
+ <input type="text" id="ntceBgndeYYYMMDD" class="datepicker" name="ntceBgndeYYYMMDD" maxlength="10" title="기간입력" value="<c:out value="${fn:substring(popupManageVO.ntceBgnde, 0, 4)}" />-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 6, 8)}"/>" readonly="readonly">
|
|
| 315 |
+ </label> |
|
| 315 | 316 |
<form:select path="ntceBgndeHH"> |
| 316 | 317 |
<form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/>
|
| 317 | 318 |
</form:select>H |
| 318 | 319 |
<form:select path="ntceBgndeMM"> |
| 319 | 320 |
<form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/>
|
| 320 | 321 |
</form:select>M |
| 321 |
- <span> ~ </span> |
|
| 322 |
- <input type="text" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="inp" value="<c:out value="${fn:substring(popupManageVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 6, 8)}"/>" readonly="readonly"/>
|
|
| 323 |
- |
|
| 322 |
+ <span> - </span> |
|
| 323 |
+ <label class="datepicker-box"> |
|
| 324 |
+ <input type="text" id="ntceEnddeYYYMMDD" class="datepicker" name="ntceEnddeYYYMMDD" maxlength="10" title="기간입력" value="<c:out value="${fn:substring(popupManageVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 6, 8)}"/>" readonly="readonly">
|
|
| 325 |
+ </label> |
|
| 324 | 326 |
<form:select path="ntceEnddeHH"> |
| 325 | 327 |
<form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/>
|
| 326 | 328 |
</form:select>H |
--- base/src/main/webapp/resources/common/js/board.js
+++ base/src/main/webapp/resources/common/js/board.js
... | ... | @@ -104,8 +104,8 @@ |
| 104 | 104 |
toolbar1: '', |
| 105 | 105 |
toolbar2: 'fullscreen | undo redo | fontselect fontsizeselect bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent', |
| 106 | 106 |
content_css: [ |
| 107 |
- '/template/lms/font/font.css' |
|
| 108 |
- , '/template/lms/css/common/base.css' |
|
| 107 |
+ //'/template/lms/font/font.css' |
|
| 108 |
+ //, '/template/lms/css/common/base.css' |
|
| 109 | 109 |
] |
| 110 | 110 |
, setup: function (editor) {
|
| 111 | 111 |
editor.addButton('ImageButton', {
|
--- base/src/main/webapp/resources/common/js/board2.js
+++ base/src/main/webapp/resources/common/js/board2.js
... | ... | @@ -104,8 +104,8 @@ |
| 104 | 104 |
toolbar1: '', |
| 105 | 105 |
toolbar2: 'fullscreen | undo redo | fontselect fontsizeselect bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | code', |
| 106 | 106 |
content_css: [ |
| 107 |
- '/template/lms/font/font.css' |
|
| 108 |
- , '/template/lms/css/common/base.css' |
|
| 107 |
+ //'/template/lms/font/font.css' |
|
| 108 |
+ //, '/template/lms/css/common/base.css' |
|
| 109 | 109 |
] |
| 110 | 110 |
, setup: function (editor) {
|
| 111 | 111 |
editor.addButton('ImageButton', {
|
--- base/src/main/webapp/resources/common/js/common.js
+++ base/src/main/webapp/resources/common/js/common.js
... | ... | @@ -269,32 +269,23 @@ |
| 269 | 269 |
icon = "icon-img"; |
| 270 | 270 |
} |
| 271 | 271 |
|
| 272 |
- var pageChk = $("#staffPage").val();
|
|
| 273 | 272 |
var list = ""; |
| 274 |
- |
|
| 275 |
- if(pageChk == "staff"){
|
|
| 276 |
- list += "<a href=\"#none\" class=\"attachment " + icon + " font-gray\" id=\"" + userFile.atchFileId + '_' + userFile.fileSn + "\">"; |
|
| 277 |
- list += "<span class=\"text\">" + userFile.orignlFileNm + "</span>"; |
|
| 278 |
- list += "<span class=\"file-remove\" onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\">-</span>"
|
|
| 279 |
- list += "</a>"; |
|
| 280 |
- //list += "<a href=\"/cmm/fms/deleteStreamLongFile.do?tmprFileId=" + userFile.tmprFileId + "\" class=\"" + userFile.atchFileId + '_' + userFile.fileSn + "\" onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\"><span class=\"file-remove\">-</span></a>";
|
|
| 281 |
- }else if(pageChk == "common"){
|
|
| 273 |
+ list += "<li id='" + userFile.atchFileId + '_' + userFile.fileSn + "'>"; |
|
| 274 |
+ list += "<a href=\"/cmm/fms/deleteStreamLongFile.do?tmprFileId=" + userFile.tmprFileId + "\" onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\">" + userFile.orignlFileNm + "<span>(" + fn_byte_convert(userFile.fileMg) + ")</span></a>";
|
|
| 275 |
+ list += "<a href=\"/cmm/fms/deleteStreamLongFile.do?tmprFileId=" + userFile.tmprFileId + "\" onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\" class=\"ico-sm-close\"><span class=\"txt-hide\">삭제</span></a>";
|
|
| 276 |
+ list += "</li>"; |
|
| 277 |
+ /* |
|
| 278 |
+ if(pageChk == "common"){
|
|
| 282 | 279 |
list += "<a href='#' id='" + userFile.atchFileId + '_' + userFile.fileSn + "' onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\" class='attachment " + icon + " font-gray'>";
|
| 283 | 280 |
list += "<span class=\"text\">" + userFile.orignlFileNm + "</span>"; |
| 284 | 281 |
list += "<span class='file-remove'>-</span>"; |
| 285 | 282 |
list += "</a>"; |
| 286 |
- }else{
|
|
| 287 |
- list += "<tr id='" + userFile.atchFileId + '_' + userFile.fileSn + "'>"; |
|
| 288 |
- list += "<td><img src='/template/manage/images/ico_file.gif' alt='파일'/> " + userFile.orignlFileNm + "</td>"; |
|
| 289 |
- list += "<td class='size'>" + fn_byte_convert(userFile.fileMg) + "</td>"; |
|
| 290 |
- list += "<td class='del'><a href=\"/cmm/fms/deleteStreamLongFile.do?tmprFileId=" + userFile.tmprFileId + "\" onclick=\"fn_egov_editor_tmpr_file_del('" + wireData.editorId + "','" + userFile.tmprFileId + "');return false;\"><img src=\"/template/manage/images/btn_sdelete.gif\"/></a></td>";
|
|
| 291 |
- list += "</tr>"; |
|
| 292 | 283 |
} |
| 293 |
- |
|
| 294 |
- $('#fileGroupId_' + wireData.editorId).val(userFile.atchFileId);
|
|
| 295 |
- $('#fileCurrSize_' + wireData.editorId).val(wireData.totalFileMg);
|
|
| 296 |
- $('#fileCurrCount_' + wireData.editorId).val(wireData.totalFileCount);
|
|
| 297 |
- $('#multiFileList_' + wireData.editorId).append(list);
|
|
| 284 |
+ */ |
|
| 285 |
+ $('#fileGroupId_' + wireData.editorId).val(userFile.atchFileId);
|
|
| 286 |
+ $('#fileCurrSize_' + wireData.editorId).val(wireData.totalFileMg);
|
|
| 287 |
+ $('#fileCurrCount_' + wireData.editorId).val(wireData.totalFileCount);
|
|
| 288 |
+ $('#multiFileList_' + wireData.editorId).append(list);
|
|
| 298 | 289 |
|
| 299 | 290 |
|
| 300 | 291 |
/*if(userFile.IsEdit == 'True') {
|
... | ... | @@ -304,9 +295,9 @@ |
| 304 | 295 |
if(tinymce) {
|
| 305 | 296 |
var html = ""; |
| 306 | 297 |
if (isImage(userFile.orignlFileNm)) {
|
| 307 |
- html = '' + userFile.fileStreWebCours + '<img src="/" class="' + userFile.streFileNm + '' + userFile.atchFileId + '_' + userFile.fileSn + '">'; |
|
| 298 |
+ html = '<img src="' + userFile.fileStreWebCours + '/' + userFile.streFileNm + '" class="' + userFile.atchFileId + '_' + userFile.fileSn + '">'; |
|
| 308 | 299 |
} else if(isVideo(userFile.orignlFileNm)) {
|
| 309 |
- html = '' + userFile.fileStreWebCours + '<video src="/" controls class="' + userFile.streFileNm + '' + userFile.atchFileId + '_' + userFile.fileSn + '"></video>'; |
|
| 300 |
+ html = '<video src="' + userFile.fileStreWebCours + '/' + userFile.streFileNm + '" controls class="' + userFile.atchFileId + '_' + userFile.fileSn + '"></video>'; |
|
| 310 | 301 |
} |
| 311 | 302 |
|
| 312 | 303 |
if(html != ''){
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?