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
File name
Commit message
Commit date
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com" %>
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
<!DOCTYPE html>
<html lang="ko">
<head>
<title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value="/validator.do"/>"></script>
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script>
<validator:javascript formName="cntManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript" language="javascript">
var originText = "";
$( document ).ready(function() {
originText = CKEDITOR.instances.cntCn.getData(); //원본내용
});
function fn_egov_save_CntManage(cmd){ //저장처리화면
var varFrom = document.cntManageVO;
CKEDITOR.instances.cntCn.updateElement();
if(confirm("<spring:message code="common.save.msg" />")){
varFrom.action = "<c:url value='/uss/ion/cnt/egovCntManageRegist.do' />";
if(!validateCntManageVO(varFrom)){
return;
}else{
varFrom.cmd.value= cmd;
varFrom.submit();
}
}
}
/* ********************************************************
* RADIO BOX VALUE FUNCTION
******************************************************** */
function fn_egov_RadioBoxValue(sbName)
{
var FLength = document.getElementsByName(sbName).length;
var FValue = "";
for(var i=0; i < FLength; i++)
{
if(document.getElementsByName(sbName)[i].checked == true){
FValue = document.getElementsByName(sbName)[i].value;
}
}
return FValue;
}
/* ********************************************************
* SELECT BOX VALUE FUNCTION
******************************************************** */
function fn_egov_SelectBoxValue(sbName)
{
var FValue = "";
for(var i=0; i < document.getElementById(sbName).length; i++)
{
if(document.getElementById(sbName).options[i].selected == true){
FValue=document.getElementById(sbName).options[i].value;
}
}
return FValue;
}
function originTextCopy(){
CKEDITOR.instances.cntCn.setData(originText); //에디터로 원본내용 값 세팅
$('#origin_txt').css("display" , "none"); //버튼 삭제
$('#iframe_egov_cntDetail').contents().find('.cntDt_tr').css("background-color","#FFFFFF"); //하단 td 컬럼 색상 삭제
}
function ckeditorPriview() { //미리보기
event.preventDefault();
var cntPriviewWin = window.open('about:blank','ckeditorPriview','scrollbars=yes,resizable=yes, width=800,height=1200');
var vFrom = document.cntManageVO;
vFrom.target = 'ckeditorPriview';
vFrom.method ="post";
vFrom.action = "/web/ckeditorPriview.do";
vFrom.submit();
}
/* ********************************************************
* PROTOTYPE JS FUNCTION
******************************************************** */
String.prototype.trim = function(){
return this.replace(/^\s+|\s+$/g, "");
}
String.prototype.replaceAll = function(src, repl){
var str = this;
if(src == repl){return str;}
while(str.indexOf(src) != -1) {
str = str.replace(src, repl);
}
return str;
}
</script>
<style>
.date_format{width:91px !important;}
.main1_table input{
width: unset;
}
</style>
</head>
<body>
<form:form commandName="cntManageVO" name="cntManageVO" action="${pageContext.request.contextPath}/uss/ion/pwm/egovPopupRegist.do" method="post">
<input name="cmd" type="hidden" value="<c:out value='save'/>"/>
<input name="cntId" type="hidden" value="${cntManageVO.cntId }"/>
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">콘텐츠 등록/수정</h2>
<p class="tType6 c_999999">콘텐츠를 등록/수정 할 수 있습니다.</p>
</div>
<div class="pageCont">
<div class="listTop resisterList">
<p class="right block fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<c:if test="${siteId eq 'super'}">
<tr>
<th><span class="reqArea">사이트</span></th>
<td>
<select name="siteId" id="siteId" title="권한">
<c:forEach var="resultList" items="${siteManageList}" varStatus="status">
<option value="<c:out value="${resultList.siteId}"/>"
<c:if test="${cntManageVO.siteId eq resultList.siteId}"> selected='selected' </c:if>>
<c:out value="${resultList.siteNm}"/>
</option>
</c:forEach>
</select>
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">콘텐츠 이름</span></th>
<td>
<form:input path="cntName" cssClass="txaIpt" maxlength="100"/>
<form:errors path="cntName" cssClass="error"/>
</td>
</tr>
<tr>
<th><span class="reqArea">내용</span></th>
<td>
<form:textarea path="cntCn" cols="300" rows="20" />
<ckeditor:replace replace="cntCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
</td>
</tr>
<c:if test="${not empty cntManageVO.cntId}">
<tr>
<th>최종수정일</th>
<td>
<form:input path="registPnttm" size="73" cssClass="txaIpt" maxlength="255" readonly="readonly " style="width:95%"/>
<form:errors path="registPnttm" cssClass="error"/>
</td>
</tr>
<tr>
<th>작성자</th>
<td>
<form:input path="registerId" size="73" cssClass="txaIpt" maxlength="255" style="width:95%"/>
<form:errors path="registerId" cssClass="error"/>
</td>
</tr>
</c:if>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="location.href='/uss/ion/cnt/contentList.do'; return false;">
<input type="button" id="origin_txt" class="btnType1 bg_ed4545" value="원본 내용 " style="display:none;" onclick="originTextCopy(); return false;">
<input type="button" class="btnType1 bg_ed4545" value="미리보기" onclick="ckeditorPriview(); return false;">
<c:if test="${empty cntManageVO.cntDtId}">
<input type="button" class="btnType1" value="등 록" onclick="fn_egov_save_CntManage('save'); return false;">
</c:if>
<c:if test="${!empty cntManageVO.cntDtId }">
<input type="button" class="btnType1" value="수 정" onclick="fn_egov_save_CntManage('modi'); return false;">
</c:if>
</div>
<iframe name="iframe_egov_cntDetail" id="iframe_egov_cntDetail" src="/uss/ion/cnt/cntDetailList.do?cntId=${cntManageVO.cntId }"
style="margin-top: 1px;width: 100%; height: 750px; border:none;" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</div>
</div>
</form:form>
</body>
</html>