File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
Class Name : EgovNoticeRegist.jsp
Description : 게시물 생성 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2009.03.24 이삼섭 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 이삼섭
since : 2009.03.24
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<link href="/js/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="/js/calendar.js"></script>
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script>
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com"%>
<!-- <script type="text/javascript" src="/se2/js/service/HuskyEZCreator.js" charset="utf-8"></script> -->
<script type="text/javascript">
/* naver smart editor - 사진첨부*/
function pasteHTML(filepath){
var sHTML = '<img src="'+filepath+'">';
oEditors.getById["nttCn"].exec("PASTE_HTML", [sHTML]);
}
//var oEditors = [];
$(document).ready(function(){
/* naver smart editor */
/* nhn.husky.EZCreator.createInIFrame({
oAppRef: oEditors,
elPlaceHolder: "nttCn",
sSkinURI: "/se2/SmartEditor2Skin.html",
fCreator: "createSEditor2",
htParams : {
bUseToolbar : true
}
}); */
});
function fn_egov_regist_notice(cmd) {
CKEDITOR.instances.nttCn.updateElement();
//oEditors.getById["nttCn"].exec("UPDATE_CONTENTS_FIELD", []);
if(""==$("#nttCn").val()){
alert("내용을 넣어주세요.");
return;
}
if (confirm('<spring:message code="common.regist.msg" />')){
if(cmd == 'regi'){
document.frm.action = "<c:url value='/cop/bbs/insertExtBbs.do'/>";
}else{
document.frm.action = "<c:url value='/cop/bbs/modifyExtBbs.do'/>";
}
document.frm.submit();
}
}
function fn_egov_delete_notice() {
var delForm = document.delForm
delForm.action = "<c:url value='/cop/bbs/extBbsDelete.do'/>";
delForm.submit();
}
function fn_egov_select_noticeList() {
var searchForm = document.searchForm ;
searchForm.action = "<c:url value='/cop/bbs/selectExtBoardList.do'/>";
searchForm.submit();
}
</script>
<title>등록</title>
<style>
.main1_table button{width:69px;}
</style>
</head>
<body>
<div class="ad_content">
<div class="ad_con_head">
<div class="ad_head_text">
<p class="today_txt">${extTitle}</p>
<div class="ad_head_ment">
<p class="today_last_txt"><span id="cnt_cate_list"></span></p>
</div>
</div>
</div>
<div class="ad_subcon">
<form name=frm method="post" enctype="multipart/form-data">
<input type="hidden" name="pageIndex" value="${bizIntroVO.pageIndex}" />
<input type="hidden" name="nttId" value="${bizIntroVO.nttId}" />
<input type="hidden" name="bbsId" value="${bizIntroVO.bbsId}" />
<input type="hidden" name="searchCnd" value="<c:out value='${searchVO.searchCnd}'/>" />
<input type="hidden" name="searchWrd" value="<c:out value='${searchVO.searchWrd}'/>" />
<input type="hidden" name="atchFileId" value="<c:out value='${bizIntroVO.atchFileId}'/>" />
<input type="hidden" name="atchFileCnt" value="<c:out value='${bizIntroVO.atchFileCnt}'/>" id="<c:out value='${bizIntroVO.atchFileId}'/>" />
<input type="hidden" name="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" />
<div class="main1_div2">
<table class="main1_table">
<colgroup>
<col />
<col style="width:362px;"/>
<col />
<col />
</colgroup>
<tr>
<th>
<span class="star_t">*</span> 년도
</th>
<td colspan="3">
<c:if test="${bizIntroVO.cmd eq 'regi'}" >
<input id="bbsYear" name="bbsYear" type="text" value="${year}" size="50" maxlength="50" readonly />
</c:if>
<c:if test="${bizIntroVO.cmd eq 'modi'}" >
<input id="bbsYear" name="bbsYear" type="text" value="${bizIntroVO.bbsYear}" size="50" maxlength="50" readonly />
</c:if>
</td>
</tr>
<!-- 구분 -->
<tr>
<th>
<span class="star_t">* </span>구분
</th>
<td colspan="3">
<select id="seCd" name="seCd" title="구분">
<c:forEach var="codeResult" items="${ codeResult }" varStatus="status">
<option value="${codeResult.code}" <c:if test="${codeResult.code == bizIntroVO.seCd}">selected="selected"</c:if> >${codeResult.codeNm}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th>
<span class="star_t">*</span> 제목
</th>
<td colspan="3">
<input id="nttSj" name="nttSj" type="text" value="${bizIntroVO.nttSj}" size="50" maxlength="50" />
</td>
</tr>
<tr class="bid_02">
<th>
<span class="star_t">* </span>내용
</th>
<td colspan="3">
<textarea id="nttCn" name="nttCn" title="<spring:message code="cop.nttCn" />" cols="500" rows="20" style="width:100%; min-width:550px;">
<c:out value="${bizIntroVO.nttCn}" escapeXml="false" />
</textarea>
<ckeditor:replace replace="nttCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
</td>
</tr>
<c:if test="${not empty bizIntroVO.atchFileId}">
<tr>
<th>첨부파일목록</th>
<td colspan="3">
<c:import url="/cmm/fms/selectBBSFileInfsForUpdate.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${bizIntroVO.atchFileId}" />
<c:param name="updateFlag" value="Y" />
<c:param name="isImgView" value="false" />
</c:import>
</td>
</tr>
</c:if>
<tr>
<th>
<label for="egovComFileUploader">첨부파일</label>
</th>
<td colspan="3">
<input name="file_1" id="egovComFileUploader" type="file" />
<div id="egovComFileList"></div>
</td>
</tr>
</table>
<c:set var="isImgView" value="false" />
<c:set var="isImgBbs" value="false" />
<%-- <c:set var="isImgBbs" value="true" /> --%>
<c:set var="isPdf" value="false" />
<script type="text/javascript">
var maxFileNum = "5";
var maxFileSize = "1000000";
if (maxFileNum == null || maxFileNum == "") maxFileNum = 0;
var multi_selector = new MultiSelector(document.getElementById('egovComFileList'),
maxFileNum, null, <c:out value="${isImgView}" />,
maxFileSize, <c:out value="${isImgBbs}" />, 'atchFile', <c:out value="${isPdf}" />);
multi_selector.addElement(document.getElementById('egovComFileUploader'));
<c:if test="${not empty bizIntroVO.atchFileId}">
fn_egov_multi_selector_update_setting(multi_selector, document.frm.atchFileId.value,
"<c:out value='${bizIntroVO.atchFileCnt}'/>");
</c:if>
</script>
</div>
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
<div class="main1_btn_div">
<button class="main1_btn" onclick="javascript:fn_egov_select_noticeList(); return false;">목 록</button>
<c:if test="${bizIntroVO.cmd eq 'regi'}" >
<button class="main1_btn main1_save_btn" id="main1_save_btn" onclick="javascript:fn_egov_regist_notice('regi'); return false;">등 록</button>
</c:if>
<c:if test="${bizIntroVO.cmd eq 'modi'}" >
<button class="main1_btn main1_save_btn" id="main1_save_btn" onclick="javascript:fn_egov_regist_notice('modi'); return false;">수 정 </button>
<button class="main1_btn main1_delete_btn" id="main1_delete_btn" onclick="javascript:fn_egov_delete_notice(); return false;">삭 제</button>
</c:if>
</div>
<!-- 버튼 끝 -->
</form>
</div>
</div>
<!-- //content 끝 -->
<form name="searchForm" method="get" action="<c:url value='/cop/bbs/selectExtBoardList.do'/>" >
<input type="hidden" name="bbsId" value="${bizIntroVO.bbsId}" />
</form>
<form name="delForm" method="get" action="<c:url value='/cop/bbs/bisIntroDelete.do'/>" >
<input type="hidden" name="bbsId" value="${bizIntroVO.bbsId}" />
<input type="hidden" name="del" value="${bizIntroVO.nttId}"/>
</form>
</body>
</html>