882 lines
49 KiB
Plaintext
882 lines
49 KiB
Plaintext
<%@ page contentType="text/html;charset=utf-8" %>
|
|
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
|
|
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
|
|
<!doctype html>
|
|
<html lang="ko">
|
|
<head>
|
|
<title><s:message code="manager.bbs.bbsSetEdit.title"/></title>
|
|
<link rel="stylesheet" href="/codemirror/lib/codemirror.css">
|
|
<link rel="stylesheet" href="/codemirror/addon/dialog/dialog.css">
|
|
<link rel="stylesheet" href="/codemirror/addon/hint/show-hint.css">
|
|
<link rel="stylesheet" href="/codemirror/addon/display/fullscreen.css">
|
|
<!-- theme css -->
|
|
<link rel="stylesheet" href="/codemirror/theme/3024-day.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/3024-night.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/ambiance.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/base16-dark.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/base16-light.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/blackboard.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/cobalt.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/eclipse.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/elegant.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/erlang-dark.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/lesser-dark.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/mbo.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/midnight.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/monokai.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/neat.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/night.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/paraiso-dark.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/paraiso-light.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/rubyblue.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/solarized.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/the-matrix.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/tomorrow-night-eighties.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/twilight.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/vibrant-ink.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/xq-dark.css">
|
|
<link rel="stylesheet" href="/codemirror/theme/xq-light.css">
|
|
<!-- theme css -->
|
|
|
|
<script src="/codemirror/lib/codemirror.js"></script>
|
|
<script src="/codemirror/mode/xml/xml.js"></script>
|
|
<script src="/codemirror/addon/dialog/dialog.js"></script>
|
|
<script src="/codemirror/addon/search/searchcursor.js"></script>
|
|
<script src="/codemirror/addon/search/search.js"></script>
|
|
<script src="/codemirror/addon/fold/xml-fold.js"></script>
|
|
<script src="/codemirror/addon/edit/matchtags.js"></script>
|
|
<script src="/codemirror/addon/edit/closetag.js"></script>
|
|
<script src="/codemirror/addon/hint/show-hint.js"></script>
|
|
<script src="/codemirror/addon/hint/xml-hint.js"></script>
|
|
<script src="/codemirror/addon/hint/html-hint.js"></script>
|
|
<script src="/codemirror/mode/javascript/javascript.js"></script>
|
|
<script src="/codemirror/mode/css/css.js"></script>
|
|
<script src="/codemirror/mode/htmlmixed/htmlmixed.js"></script>
|
|
<script src="/codemirror/addon/display/fullscreen.js"></script>
|
|
<script src="/codemirror/mode/clike/clike.js"></script>
|
|
<script src="/codemirror/keymap/extra.js"></script>
|
|
<script src="/codemirror/addon/selection/active-line.js"></script>
|
|
<script src="/codemirror/addon/edit/matchbrackets.js"></script>
|
|
<script src="/codemirror/addon/zen/zen_codemirror.min.js"></script>
|
|
<script src="/js/cookie.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="page-title-wrap clear">
|
|
<div class="page-title-inner">
|
|
<h3 class="page-title"><s:message code="manager.bbs.nav.bbsSetView"/></h3>
|
|
<div class="tooltipBox type01">
|
|
<button type="button" class="page-tip">페이지안내</button>
|
|
<div class="tooltipText">
|
|
<p></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<form:form id="frm" name="frm" action="/${pageType}/proc/${siteIdx}/bbsSetModProc.do" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="bbsSetIdx" id="bbsSetIdx" value="<c:out escapeXml='true' value='${tBbsSetDB.bbsSetIdx}' />" />
|
|
<textarea name="bbsSetTHtml" id="bbsSetTHtml" style="display:none; "><c:out escapeXml='true' value='${tBbsSetDB.bbsSetTHtml}' /></textarea>
|
|
<textarea name="bbsSetFHtml" id="bbsSetFHtml" style="display:none; "><c:out escapeXml='true' value='${tBbsSetDB.bbsSetFHtml}' /></textarea>
|
|
<input type="hidden" name="page" value="<c:out escapeXml='true' value='${page}' />" />
|
|
<input type="hidden" name="row" value="<c:out escapeXml='true' value='${row}' />" />
|
|
<input type="hidden" name="orderColumn" value="<c:out escapeXml='true' value='${orderColumn}' />" />
|
|
<input type="hidden" name="order" value="<c:out escapeXml='true' value='${order}' />" />
|
|
<input type="hidden" name="column" value="<c:out escapeXml='true' value='${column}' />" />
|
|
<input type="hidden" name="search" value="<c:out escapeXml='true' value='${search}' />" />
|
|
<fieldset>
|
|
<legend><s:message code="manager.bbs.bbsSetEdit.table.caption"/></legend>
|
|
<!-- 게시판 기능 상단 HTML -->
|
|
<div class="bbs-view-layout">
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetTHtml"/></p>
|
|
<div class="item-box" style="overflow:hidden;">
|
|
<textarea name="codeTextAreaT" id="codeTextAreaT" style="width:100%;"><c:out escapeXml='true' value='${tBbsSetDB.bbsSetTHtml}' /></textarea>
|
|
<div class="skin-list-box">
|
|
<label for="layout-skin-list" class="hidden">레이아웃 스킨 선택</label>
|
|
<select onchange="selectTheme1()" id="select1" class="layout-skin-list">
|
|
<option selected>default</option>
|
|
<option>3024-day</option>
|
|
<option>3024-night</option>
|
|
<option>ambiance</option>
|
|
<option>base16-dark</option>
|
|
<option>base16-light</option>
|
|
<option>blackboard</option>
|
|
<option>cobalt</option>
|
|
<option>eclipse</option>
|
|
<option>elegant</option>
|
|
<option>erlang-dark</option>
|
|
<option>lesser-dark</option>
|
|
<option>mbo</option>
|
|
<option>midnight</option>
|
|
<option>monokai</option>
|
|
<option>neat</option>
|
|
<option>night</option>
|
|
<option>paraiso-dark</option>
|
|
<option>paraiso-light</option>
|
|
<option>rubyblue</option>
|
|
<option>solarized dark</option>
|
|
<option>solarized light</option>
|
|
<option>the-matrix</option>
|
|
<option>tomorrow-night-eighties</option>
|
|
<option>twilight</option>
|
|
<option>vibrant-ink</option>
|
|
<option>xq-dark</option>
|
|
<option>xq-light</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div> <!-- 게시판 기능 상단 HTML END -->
|
|
<!-- 게시판 명 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetName"/></p>
|
|
<div class="item-box">
|
|
<input type="text" class="width50 essential" maxlength="100" name="bbsSetName" id="bbsSetName" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetName"/>" value="<c:out escapeXml='true' value='${tBbsSetDB.bbsSetName}' />" required />
|
|
</div>
|
|
</div> <!-- 게시판 명 END -->
|
|
<!-- 게시판 타입 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetType"/></p>
|
|
<div class="item-box">
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'B'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeB" value="B" <c:if test="${tBbsSetDB.bbsSetType == 'B'}">checked</c:if>><label for="bbsSetTypeB"><s:message code="manager.bbs.bbsSetEdit.bbsSetBasic"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'W'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeW" value="W" <c:if test="${tBbsSetDB.bbsSetType == 'W'}">checked</c:if>><label for="bbsSetTypeW"><s:message code="manager.bbs.bbsSetEdit.bbsSetAnswer"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'L'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeL" value="L" <c:if test="${tBbsSetDB.bbsSetType == 'L'}">checked</c:if>><label for="bbsSetTypeL"><s:message code="manager.bbs.bbsSetEdit.bbsSetLink"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'A'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeA" value="A" <c:if test="${tBbsSetDB.bbsSetType == 'A'}">checked</c:if>><label for="bbsSetTypeA"><s:message code="manager.bbs.bbsSetEdit.bbsSetAlbum"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'M'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeM" value="M" <c:if test="${tBbsSetDB.bbsSetType == 'M'}">checked</c:if>><label for="bbsSetTypeM"><s:message code="manager.bbs.bbsSetEdit.bbsSetMovie"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'T'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeT" value="T" <c:if test="${tBbsSetDB.bbsSetType == 'T'}">checked</c:if>><label for="bbsSetTypeT"><s:message code="manager.bbs.bbsSetEdit.bbsSetThumbFile"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'F'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeF" value="F" <c:if test="${tBbsSetDB.bbsSetType == 'F'}">checked</c:if>><label for="bbsSetTypeF"><s:message code="manager.bbs.bbsSetEdit.bbsSetFile"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'R'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeR" value="R" <c:if test="${tBbsSetDB.bbsSetType == 'R'}">checked</c:if>><label for="bbsSetTypeR"><s:message code="manager.bbs.bbsSetEdit.bbsSetRequest"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetType == 'E'}">checked</c:if>" name="bbsSetType" id="bbsSetTypeE" value="E" <c:if test="${tBbsSetDB.bbsSetType == 'E'}">checked</c:if>><label for="bbsSetTypeE"><s:message code="manager.bbs.bbsSetEdit.bbsSetEvent"/></label>
|
|
</div>
|
|
</div> <!-- 게시판 타입 END -->
|
|
<!-- 목록 설정 -->
|
|
<div class="bbs-view-item" id="divSubType">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetSubType"/></p>
|
|
<div class="item-box">
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetSubType == 'L'}">checked</c:if>" name="bbsSetSubType" id="bbsSetSubTypeL" value="L" <c:if test="${tBbsSetDB.bbsSetSubType == 'L'}">checked</c:if>/><label for="bbsSetSubTypeL"><s:message code="manager.bbs.bbsSetEdit.bbsSetSubType.list"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetSubType == 'I'}">checked</c:if>" name="bbsSetSubType" id="bbsSetSubTypeI" value="I" <c:if test="${tBbsSetDB.bbsSetSubType == 'I'}">checked</c:if>/><label for="bbsSetSubTypeI"><s:message code="manager.bbs.bbsSetEdit.bbsSetSubType.listItem"/></label>
|
|
<input type="radio" class="radio <c:if test="${tBbsSetDB.bbsSetSubType == 'G'}">checked</c:if>" name="bbsSetSubType" id="bbsSetSubTypeG" value="G" <c:if test="${tBbsSetDB.bbsSetSubType == 'G'}">checked</c:if>/><label for="bbsSetSubTypeG"><s:message code="manager.bbs.bbsSetEdit.bbsSetSubType.gallery"/></label>
|
|
<!--
|
|
<input type="radio" class="radio" name="bbsSetSubType" id="bbsSetSubTypeS" value="S" <c:if test="${tBbsSetDB.bbsSetSubType == 'S'}">checked</c:if>/><label for="bbsSetSubTypeS"><s:message code="manager.bbs.bbsSetEdit.bbsSetSubType.slide"/></label>
|
|
-->
|
|
</div>
|
|
</div> <!-- 목록 설정 END -->
|
|
<!-- 유튜브 사용여부 -->
|
|
<div class="bbs-view-item" id="divYoutube">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetYoutube"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetYoutube == 'Y'}">checked</c:if>" name="bbsSetYoutube" id="bbsSetYoutube" value="Y" <c:if test="${tBbsSetDB.bbsSetYoutube == 'Y'}">checked</c:if>/><label for="bbsSetYoutube"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 유튜브 사용여부 END -->
|
|
<!-- 담당자 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="common.manager"/></p>
|
|
<div class="item-box">
|
|
<c:forEach items="${tBbsSetDB.tBbsManagers}" var="tBbsManager" varStatus="status">
|
|
<c:if test='${tBbsManager.tMember.memberStatus == "U"}'>
|
|
<c:if test='${status.index > 0}'>,</c:if> <c:out escapeXml='true' value='${tBbsManager.tMember.memberName}' />
|
|
</c:if>
|
|
</c:forEach>
|
|
<c:if test='${memberGrant == "S" || memberAuth}'>
|
|
<a href="/common/<c:out escapeXml='true' value='${siteIdx}' />/bbs/<c:out escapeXml='true' value='${bbsSetIdx}' />/${pageType}/managerList.do" id="managerSearch" class="btn-sch-item" ><s:message code="common.button.manager"/></a>
|
|
</c:if>
|
|
</div>
|
|
</div> <!-- 담당자 END -->
|
|
<!-- 게시목록 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsData"/></p>
|
|
<div class="item-box">
|
|
<div class="row">
|
|
<s:message code="manager.bbs.bbsSetEdit.bbsData.mini.row"/> :
|
|
<span id="galleryMiniRow" style="display:inline-block;vertical-align:middle"> <s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.mini.row"/> / </span>
|
|
<select name="bbsSetDataMiniRow" id="bbsSetDataMiniRow" style="width:50px;">
|
|
<c:forEach begin="1" end="20" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetDataMiniRow}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select> <s:message code="manager.bbs.row"/>
|
|
|
|
<span id="galleryMiniCol" style="display:inline-block;vertical-align:middle">
|
|
<s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.mini.col"/> /
|
|
<select name="bbsSetDataMiniCol" id="bbsSetDataMiniCol" title="<s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.mini.col"/>" style="width:50px;">
|
|
<c:forEach begin="1" end="20" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetDataMiniCol}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select> <s:message code="manager.bbs.row"/>
|
|
</span>
|
|
</div>
|
|
<div class="row">
|
|
<s:message code="manager.bbs.bbsSetEdit.bbsData.row"/> :
|
|
<span id="galleryRow" style="display:inline-block;vertical-align:middle"><s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.row"/> / </span>
|
|
<select name="bbsSetDataRow" id="bbsSetDataRow" style="width:50px;">
|
|
<c:forEach begin="1" end="30" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetDataRow}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select> <s:message code="manager.bbs.row"/>
|
|
<span id="galleryCol" style="display:inline-block;vertical-align:middle">
|
|
<s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.col"/> /
|
|
<select name="bbsSetDataCol" id="bbsSetDataCol" title="<s:message code="manager.bbs.bbsSetEdit.bbsData.gallery.col"/>" style="width:50px;">
|
|
<c:forEach begin="1" end="20" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetDataCol}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select> <s:message code="manager.bbs.row"/>
|
|
</span>
|
|
</div>
|
|
<div class="row">
|
|
<div id="commentRow">
|
|
<s:message code="manager.bbs.bbsSetEdit.bbsComment.row"/> :
|
|
<select name="bbsSetCommentRow" id="bbsSetCommentRow" title="<s:message code="manager.bbs.bbsSetEdit.bbsComment.row"/>" style="width:50px;">
|
|
<c:forEach begin="1" end="30" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetCommentRow}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select> <s:message code="manager.bbs.row"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> <!-- 게시목록 설정 END -->
|
|
<!-- 첨부파일 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetFile.set"/></p>
|
|
<div class="item-box">
|
|
<p class="mb5"><s:message code="manager.bbs.bbsSetEdit.bbsSetFile.size"/> : <input type="text" class="width80px numOnly" maxlength="10" name="bbsSetFileSize" id="bbsSetFileSize" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetFile.size"/>" required value='${tBbsSetDB.bbsSetFileSize}' /> Mbyte</p>
|
|
<p><s:message code="manager.bbs.bbsSetEdit.bbsSetFile.count"/> : <input type="text" class="width80px numOnly" maxlength="10" name="bbsSetFileCount" id="bbsSetFileCount" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetFile.count"/>" required value='${tBbsSetDB.bbsSetFileCount}' /> <s:message code="manager.bbs.ea"/></p>
|
|
</div>
|
|
</div> <!-- 첨부파일 설정 END -->
|
|
<!-- 게시판 조회수 시간설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetDataCookieTime"/></p>
|
|
<div class="item-box">
|
|
<input type="text" class="width80px numOnly" maxlength="10" name="bbsSetDataCookieTime" id="bbsSetDataCookieTime" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetDataCookieTime"/>" required value='${tBbsSetDB.bbsSetDataCookieTime}' />
|
|
</div>
|
|
</div> <!-- 게시판 조회수 시간설정 END -->
|
|
<!-- 게시판 작성자 설정 시간설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetDataSaveType"/></p>
|
|
<div class="item-box">
|
|
<select name="bbsSetDataSaveType" id="bbsSetDataSaveType" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetDataSaveType"/>" style="width:100px;">
|
|
<option value="memberName" <c:if test='${tBbsSetDB.bbsSetDataSaveType == "memberName"}'>selected</c:if>><s:message code="common.writer"/></option>
|
|
<option value="memberDept" <c:if test='${tBbsSetDB.bbsSetDataSaveType == "memberDept"}'>selected</c:if>><s:message code="common.memberDept"/></option>
|
|
</select>
|
|
</div>
|
|
</div> <!-- 게시판 작성자 설정 시간설정 END -->
|
|
<!-- 인증 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetCertify"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetCertify == 'Y'}">checked</c:if>" name="bbsSetCertify" id="bbsSetCertify" value="Y" <c:if test="${tBbsSetDB.bbsSetCertify == 'Y'}">checked</c:if>/><label for="bbsSetCertify"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 인증 설정 END -->
|
|
<!-- 카테고리기능 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetCategory"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetCategory == 'Y'}">checked</c:if>" name="bbsSetCategory" id="bbsSetCategory" value="Y" <c:if test="${tBbsSetDB.bbsSetCategory == 'Y'}">checked</c:if>/><label for="bbsSetCategory"><s:message code="common.message.checkbox.check"/></label>
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetCategoryView == 'Y'}">checked</c:if>" name="bbsSetCategoryView" id="bbsSetCategoryView" value="Y" <c:if test="${tBbsSetDB.bbsSetCategoryView == 'Y'}">checked</c:if>/><label for="bbsSetCategoryView"><s:message code="manager.bbs.bbsSetEdit.bbsSetCategoryView"/></label>
|
|
</div>
|
|
</div> <!-- 카테고리기능 설정 END -->
|
|
<!-- 에디터 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetEditor"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetEditor == 'Y'}">checked</c:if>" name="bbsSetEditor" id="bbsSetEditor" value="Y" <c:if test="${tBbsSetDB.bbsSetEditor == 'Y'}">checked</c:if>/><label for="bbsSetEditor"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 에디터 설정 END -->
|
|
<!-- 휴지통기능 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetTrash"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetTrash == 'Y'}">checked</c:if>" name="bbsSetTrash" id="bbsSetTrash" value="Y" <c:if test="${tBbsSetDB.bbsSetTrash == 'Y'}">checked</c:if>/><label for="bbsSetTrash"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 휴지통기능 설정 END -->
|
|
<!-- 베스트 기능 설정 -->
|
|
<div class="bbs-view-item" id="divBest">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetBest"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetBest == 'Y'}">checked</c:if>" name="bbsSetBest" id="bbsSetBest" value="Y" <c:if test="${tBbsSetDB.bbsSetBest == 'Y'}">checked</c:if>/><label for="bbsSetBest"><s:message code="common.message.checkbox.check"/></label>
|
|
<select name="bbsSetBestRow" id="bbsSetBestRow" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetBest"/>" style="width:50px;">
|
|
<c:forEach begin="1" end="5" step="1" var="index">
|
|
<option value="<c:out escapeXml='true' value='${index}' />" <c:if test='${index==tBbsSetDB.bbsSetBestRow}'>selected</c:if>><c:out escapeXml='true' value='${index}' /></option>
|
|
</c:forEach>
|
|
</select>
|
|
</div>
|
|
</div> <!-- 베스트 기능 설정 END -->
|
|
<!-- 등록일기준 정렬 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetDateOrder"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetDateOrder == 'Y'}">checked</c:if>" name="bbsSetDateOrder" id="bbsSetDateOrder" value="Y" <c:if test="${tBbsSetDB.bbsSetDateOrder == 'Y'}">checked</c:if>/><label for="bbsSetDateOrder"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 등록일기준 정렬 설정 END -->
|
|
<!-- 답글 설정 -->
|
|
<div class="bbs-view-item" id="divReply">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetReply"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetReply == 'Y'}">checked</c:if>" name="bbsSetReply" id="bbsSetReply" value="Y" <c:if test="${tBbsSetDB.bbsSetReply == 'Y'}">checked</c:if>/><label for="bbsSetReply"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 답글 설정 END -->
|
|
<!-- 댓글 설정 -->
|
|
<div class="bbs-view-item" id="divComment">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetComment"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetComment == 'Y'}">checked</c:if>" name="bbsSetComment" id="bbsSetComment" value="Y" <c:if test="${tBbsSetDB.bbsSetComment == 'Y'}">checked</c:if>/><label for="bbsSetComment"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 댓글 설정 END -->
|
|
<!-- 이전글/다음글 설정 -->
|
|
<div class="bbs-view-item" id="divNP">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetNP"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetNP == 'Y'}">checked</c:if>" name="bbsSetNP" id="bbsSetNP" value="Y" <c:if test="${tBbsSetDB.bbsSetNP == 'Y'}">checked</c:if>/><label for="bbsSetNP"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 이전글/다음글 설정 END -->
|
|
<!-- 비밀글설정 설정 -->
|
|
<div class="bbs-view-item" id="divSecret">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetSecret"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetSecret == 'Y'}">checked</c:if>" name="bbsSetSecret" id="bbsSetSecret" value="Y" <c:if test="${tBbsSetDB.bbsSetSecret == 'Y'}">checked</c:if>/><label for="bbsSetSecret"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 비밀글설정 설정 END -->
|
|
<!-- 내글만보기 설정 -->
|
|
<div class="bbs-view-item" id="divMydata">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetMyData"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetMyData == 'Y'}">checked</c:if>" name="bbsSetMyData" id="bbsSetMyData" value="Y" <c:if test="${tBbsSetDB.bbsSetMyData == 'Y'}">checked</c:if>/><label for="bbsSetMyData"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 내글만보기 설정 END -->
|
|
<!-- 포인트사용 설정 -->
|
|
<div class="bbs-view-item" id="divPoint">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetPoint"/></p>
|
|
<div class="item-box">
|
|
<div class="row">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetPoint == 'Y'}">checked</c:if>" name="bbsSetPoint" id="bbsSetPoint" value="Y" <c:if test="${tBbsSetDB.bbsSetPoint == 'Y'}">checked</c:if>/><label for="bbsSetPoint"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
<div class="row"><s:message code="manager.bbs.bbsSetEdit.bbsSetPointWrite"/> : <input type="text" class="width80px numOnly" maxlength="10" name="bbsSetPointWrite" id="bbsSetPointWrite" style="width:70px !important;" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetPointWrite"/>" value='${tBbsSetDB.bbsSetPointWrite}' /> point</div>
|
|
<div class="row"><s:message code="manager.bbs.bbsSetEdit.bbsSetPointReply"/> : <input type="text" class="width80px numOnly" maxlength="10" name="bbsSetPointReply" style="width:70px !important;" id="bbsSetPointReply" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetPointReply"/>" value='${tBbsSetDB.bbsSetPointReply}' /> point</div>
|
|
<div class="row"><s:message code="manager.bbs.bbsSetEdit.bbsSetPointComment"/> : <input type="text" class="width80px numOnly" maxlength="10" name="bbsSetPointComment" id="bbsSetPointComment" style="width:70px !important;" title="<s:message code="manager.bbs.bbsSetEdit.bbsSetPointComment"/>" value='${tBbsSetDB.bbsSetPointComment}' /> point</div>
|
|
</div>
|
|
</div> <!-- 포인트사용 설정 END -->
|
|
<!-- 워터마크 설정 -->
|
|
<div class="bbs-view-item" id="divWaterMark">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetWaterMark"/></p>
|
|
<div class="item-box">
|
|
<input type="checkbox" class="checkbox width-none <c:if test="${tBbsSetDB.bbsSetWaterMark == 'Y'}">checked</c:if>" name="bbsSetWaterMark" id="bbsSetWaterMark" value="Y" <c:if test="${tBbsSetDB.bbsSetWaterMark == 'Y'}">checked</c:if>/><label for="bbsSetWaterMark"><s:message code="common.message.checkbox.check"/></label>
|
|
</div>
|
|
</div> <!-- 워터마크 설정 END -->
|
|
<!-- 워터마크 이미지 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetWaterMarkImg"/></p>
|
|
<div class="item-box">
|
|
<div class="row"><input type="file" name="upFile" id="bbsSetWaterMarkImg" value="" /><label for="bbsSetWaterMarkImg"><c:choose><c:when test='${tBbsSetDB.bbsSetWaterMarkReImg != null && tBbsSetDB.bbsSetWaterMarkReImg != ""}'><c:out escapeXml='true' value='${tBbsSetDB.bbsSetWaterMarkImg}' /></c:when><c:otherwise><s:message code="manager.bbs.bbsSetEdit.bbsSetWaterMarkImg"/></c:otherwise></c:choose></label><span class="file-info"><s:message code="manager.bbs.bbsSetEdit.bbsSetWaterMarkImg"/></span></div>
|
|
<c:if test='${tBbsSetDB.bbsSetWaterMarkReImg != null && tBbsSetDB.bbsSetWaterMarkReImg != ""}'>
|
|
<div>
|
|
<img src="/site/<c:out escapeXml='true' value='${siteIdx}' />/upload/bbs/<c:out escapeXml='true' value='${bbsSetIdx}' />/<c:out escapeXml='true' value='${tBbsSetDB.bbsSetWaterMarkReImg}' />" alt="<c:out escapeXml='true' value='${tBbsSetDB.bbsSetWaterMarkImg}' />" width="100%"/>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</div> <!-- 워터마크 이미지 설정 END -->
|
|
<!-- 게시판 기능 하단 HTML 설정 -->
|
|
<div class="bbs-view-item">
|
|
<p class="item-title"><s:message code="manager.bbs.bbsSetEdit.bbsSetFHtml"/></p>
|
|
<div class="item-box" style="overflow:hidden;">
|
|
<textarea name="codeTextAreaF" id="codeTextAreaF" style="width:100%;"><c:out escapeXml='true' value='${tBbsSetDB.bbsSetFHtml}' /></textarea>
|
|
<div class="skin-list-box">
|
|
<label for="layout-skin-list" class="hidden">레이아웃 스킨 선택</label>
|
|
<select onchange="selectTheme2()" id="select2" class="layout-skin-list">
|
|
<option selected>default</option>
|
|
<option>3024-day</option>
|
|
<option>3024-night</option>
|
|
<option>ambiance</option>
|
|
<option>base16-dark</option>
|
|
<option>base16-light</option>
|
|
<option>blackboard</option>
|
|
<option>cobalt</option>
|
|
<option>eclipse</option>
|
|
<option>elegant</option>
|
|
<option>erlang-dark</option>
|
|
<option>lesser-dark</option>
|
|
<option>mbo</option>
|
|
<option>midnight</option>
|
|
<option>monokai</option>
|
|
<option>neat</option>
|
|
<option>night</option>
|
|
<option>paraiso-dark</option>
|
|
<option>paraiso-light</option>
|
|
<option>rubyblue</option>
|
|
<option>solarized dark</option>
|
|
<option>solarized light</option>
|
|
<option>the-matrix</option>
|
|
<option>tomorrow-night-eighties</option>
|
|
<option>twilight</option>
|
|
<option>vibrant-ink</option>
|
|
<option>xq-dark</option>
|
|
<option>xq-light</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div> <!-- 게시판 기능 하단 HTML 설정 END -->
|
|
</div> <!-- .bbs-view-layout END -->
|
|
<div class="btn-area btn_wrap right">
|
|
<button type="submit" class="btn btn_text btn_46 blue_fill"><s:message code="common.button.mod"/></button>
|
|
<c:if test='${memberGrant == "S" || memberAuth}'>
|
|
<c:if test="${tBbsSetDB.bbsSetStatus == 'D'}">
|
|
<a class="btn btn_text btn_46 gray_fill" style="display:flex;justify-content:center;align-items:center;" href="/${pageType}/proc/<c:out escapeXml='true' value='${siteIdx}' />/bbsSetDelProc/<c:out escapeXml='true' value='${tBbsSetDB.bbsSetIdx}' />.do?page=<c:out escapeXml='true' value='${page}' />&row=<c:out escapeXml='true' value='${row}' />&orderColumn=<c:out escapeXml='true' value='${orderColumn}' />&order=<c:out escapeXml='true' value='${order}' />&column=<c:out escapeXml='true' value='${column}' />&search=<c:out escapeXml='true' value='${search}' />"><s:message code="common.button.del"/></a>
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test='${memberGrant == "S" || memberAuth || (pageType == "gte" && (memberAuthG || memberAuthM))}'>
|
|
<a class="btn btn_text btn_46 gray_fill" style="display:flex;justify-content:center;align-items:center;" href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/bbsSetList.do?page=<c:out escapeXml='true' value='${page}' />&row=<c:out escapeXml='true' value='${row}' />&orderColumn=<c:out escapeXml='true' value='${orderColumn}' />&order=<c:out escapeXml='true' value='${order}' />&column=<c:out escapeXml='true' value='${column}' />&search=<c:out escapeXml='true' value='${search}' />"><s:message code="common.button.list"/></a>
|
|
</c:if>
|
|
</div>
|
|
</fieldset>
|
|
</form:form>
|
|
|
|
<c:if test='${memberGrant == "S" || memberAuth || memberAuthG}'>
|
|
|
|
<div class="bookmark-list-pc menu-manage member downNupType02<c:if test='${pageType == "gtm" && (memberGrant != "S" && !memberAuth)}'>_none</c:if>">
|
|
<button type="button">북마크 버튼</button>
|
|
<ul>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/bbsSetEdit/<c:out escapeXml='true' value='${bbsSetIdx}' />.do"><img src="<s:message code="manager.bbs.button.bbsSet"/>" alt="<s:message code="manager.bbs.button.bbsSet.alt"/>"><s:message code="manager.bbs.button.bbsSet.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsDataList.do"><img src="<s:message code="manager.bbs.button.bbsData"/>" alt="<s:message code="manager.bbs.button.bbsData.alt"/>"><s:message code="manager.bbs.button.bbsData.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsCategoryList.do"><img src="<s:message code="manager.bbs.button.bbsCategory"/>" alt="<s:message code="manager.bbs.button.bbsCategory.alt"/>"><s:message code="manager.bbs.button.bbsCategory.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsAuthEdit.do"><img src="<s:message code="manager.bbs.button.bbsAuth"/>" alt="<s:message code="manager.bbs.button.bbsAuth.alt"/>"><s:message code="manager.bbs.button.bbsAuth.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsItemList.do"><img src="<s:message code="manager.bbs.button.bbsItem"/>" alt="<s:message code="manager.bbs.button.bbsItem.alt"/>"><s:message code="manager.bbs.button.bbsItem.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsTrashList.do"><img src="<s:message code="manager.bbs.button.bbsTrash"/>" alt="<s:message code="manager.bbs.button.bbsTrash.alt"/>"><s:message code="manager.bbs.button.bbsTrash.alt"/></a></li>
|
|
<li><a href="/${pageType}/<c:out escapeXml='true' value='${siteIdx}' />/<c:out escapeXml='true' value='${bbsSetIdx}' />/bbsSetSkinList.do"><img src="<s:message code="manager.bbs.button.bbsSkin"/>" alt="<s:message code="manager.bbs.button.bbsSkin.alt"/>"><s:message code="manager.bbs.button.bbsSkin.alt"/></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</c:if>
|
|
|
|
<script>
|
|
/* <![CDATA[ */
|
|
$(".dataDel").click(function(){
|
|
if(!confirm("<s:message code='common.message.bbs.set.confirm.del'/>")){
|
|
return false;
|
|
}
|
|
$.blockUI({ message : '<h1><img src="/img/blockbusy.gif" /> <s:message code="common.message.ajaxwait"/></h1>' });
|
|
});
|
|
|
|
$("#bbsSetName").focus();
|
|
|
|
$("#managerSearch").click(function(){
|
|
var url = $(this).attr("href");
|
|
window.open(url,"popManagerChk","width=1025, height=768, resizable=no, location=no, toolbar=no, menubar=no, status=no, scrollbars=yes");
|
|
return false;
|
|
});
|
|
|
|
$("input[name=bbsSetType]").change(function() {
|
|
|
|
$("#bbsSetMyData").prop("checked", false);
|
|
$("#bbsSetReply").prop("checked", false);
|
|
$("#bbsSetReply").attr("disabled", false);
|
|
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "A" || $('input:radio[name="bbsSetType"]:checked').val() == "M" || $('input:radio[name="bbsSetType"]:checked').val() == "T" || $('input:radio[name="bbsSetType"]:checked').val() == "E"){
|
|
$('input:radio[name="bbsSetSubType"]')[0].checked = true;
|
|
$("#divReply").hide();
|
|
$("#divSecret").hide();
|
|
$("#divSubType").show();
|
|
$("#divBest").show();
|
|
$("#divComment").show();
|
|
$("#divNP").show();
|
|
$("#commentRow").show();
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "A"){
|
|
$("#divWaterMark").show();
|
|
$("#divWaterMarkImg").show();
|
|
}else{
|
|
$("#divWaterMark").hide();
|
|
$("#divWaterMarkImg").hide();
|
|
}
|
|
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "M"){
|
|
$("#divYoutube").show();
|
|
}else{
|
|
$("#divYoutube").hide();
|
|
}
|
|
|
|
}else{
|
|
$('input:radio[name="bbsSetSubType"]')[0].checked = true;
|
|
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "L" || $('input:radio[name="bbsSetType"]:checked').val() == "W"){
|
|
$("#divReply").hide();
|
|
$("#divSecret").hide();
|
|
$("#divComment").hide();
|
|
$("#divNP").hide();
|
|
$("#commentRow").hide();
|
|
}else{
|
|
$("#divReply").show();
|
|
$("#divSecret").show();
|
|
$("#divComment").show();
|
|
$("#divNP").show();
|
|
$("#commentRow").show();
|
|
}
|
|
|
|
$("input:checkbox[name=bbsSetBest]").prop("checked", false);
|
|
|
|
$("#divSubType").hide();
|
|
$("#divBest").hide();
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
$("#divWaterMark").hide();
|
|
$("#divWaterMarkImg").hide();
|
|
}
|
|
});
|
|
|
|
$("input[name=bbsSetSubType]").change(function() {
|
|
if($('input:radio[name="bbsSetSubType"]:checked').val() == "G"){
|
|
$("#galleryMiniRow").show();
|
|
$("#galleryMiniCol").show();
|
|
$("#galleryRow").show();
|
|
$("#galleryCol").show();
|
|
}else{
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
}
|
|
});
|
|
|
|
$("input[name=bbsSetMyData]").click(function(){
|
|
|
|
$("#bbsSetReply").prop("checked", false);
|
|
$("#bbsSetReply").attr("disabled", false);
|
|
|
|
if($('input[name="bbsSetMyData"]:checked').val() == "Y"){
|
|
$("#divReply").hide();
|
|
$("#bbsSetReply").attr("disabled", true);
|
|
}else{
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "B" ||
|
|
$('input:radio[name="bbsSetType"]:checked').val() == "F" ||
|
|
$('input:radio[name="bbsSetType"]:checked').val() == "R"){
|
|
$("#divReply").show();
|
|
}else{
|
|
$("#divReply").hide();
|
|
}
|
|
}
|
|
});
|
|
|
|
<c:choose>
|
|
<c:when test="${tBbsSetDB.bbsSetType == 'A' || tBbsSetDB.bbsSetType == 'M' || tBbsSetDB.bbsSetType == 'T' || tBbsSetDB.bbsSetType == 'E'}">
|
|
$("input:checkbox[name=bbsSetReply]").prop("checked", false);
|
|
$("#divReply").hide();
|
|
$("#divSecret").hide();
|
|
$("#divSubType").show();
|
|
$("#divBest").show();
|
|
$("#divComment").show();
|
|
$("#divNP").show();
|
|
$("#commentRow").show();
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
|
|
<c:choose>
|
|
<c:when test="${tBbsSetDB.bbsSetType == 'A' || tBbsSetDB.bbsSetType == 'E'}">
|
|
$("#divWaterMark").show();
|
|
$("#divWaterMarkImg").show();
|
|
</c:when>
|
|
<c:otherwise>
|
|
$("#divWaterMark").hide();
|
|
$("#divWaterMarkImg").hide();
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<c:choose>
|
|
<c:when test="${tBbsSetDB.bbsSetType == 'M'}">
|
|
$("#divYoutube").show();
|
|
</c:when>
|
|
<c:otherwise>
|
|
$("#divYoutube").hide();
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<c:choose>
|
|
<c:when test="${tBbsSetDB.bbsSetSubType == 'G'}">
|
|
$("#galleryMiniRow").show();
|
|
$("#galleryMiniCol").show();
|
|
$("#galleryRow").show();
|
|
$("#galleryCol").show();
|
|
</c:when>
|
|
<c:otherwise>
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
</c:when>
|
|
<c:otherwise>
|
|
|
|
<c:choose>
|
|
<c:when test='${tBbsSetDB.bbsSetType == "L" || tBbsSetDB.bbsSetType == "W"}'>
|
|
$("#divReply").hide();
|
|
$("#divSecret").hide();
|
|
$("#divComment").hide();
|
|
$("#divNP").hide();
|
|
$("#commentRow").hide();
|
|
</c:when>
|
|
<c:otherwise>
|
|
$("#divReply").show();
|
|
$("#divSecret").show();
|
|
$("#divComment").show();
|
|
$("#divNP").show();
|
|
$("#commentRow").show();
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<c:if test='${tBbsSetDB.bbsSetMyData == "Y"}'>
|
|
$("#divReply").hide();
|
|
$("#bbsSetReply").prop("checked", false);
|
|
$("#bbsSetReply").attr("disabled", true);
|
|
</c:if>
|
|
|
|
$("#divSubType").hide();
|
|
$("#divBest").hide();
|
|
$("#galleryMiniRow").hide();
|
|
$("#galleryMiniCol").hide();
|
|
$("#galleryRow").hide();
|
|
$("#galleryCol").hide();
|
|
$("#divWaterMark").hide();
|
|
$("#divWaterMarkImg").hide();
|
|
$("#divYoutube").hide();
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
var F11key = false;
|
|
|
|
$(".CodeMirror").keyup(function(e) {
|
|
|
|
if(e.keyCode == "122" || e.keyCode == "27"){
|
|
if(F11key == false){
|
|
if(e.keyCode == "122"){ //F11
|
|
$(".iconmWrap").hide();
|
|
$(".CodeMirror").css("width", "100%");
|
|
F11key = true;
|
|
}else if(e.keyCode == "27"){ //ESC
|
|
$(".iconmWrap").show();
|
|
$(".CodeMirror").css("width", "600px");
|
|
}
|
|
}else{
|
|
$(".iconmWrap").show();
|
|
$(".CodeMirror").css("width", "600px");
|
|
F11key = false;
|
|
}
|
|
}
|
|
});
|
|
|
|
$("input:checkbox[name=bbsSetPoint]").click(function(){
|
|
if($("input:checkbox[name=bbsSetPoint]:checked").val() == "Y"){
|
|
$("#bbsSetPointWrite").attr("disabled", false);
|
|
$("#bbsSetPointReply").attr("disabled", false);
|
|
$("#bbsSetPointComment").attr("disabled", false);
|
|
}else{
|
|
$("#bbsSetPointWrite").attr("disabled", true);
|
|
$("#bbsSetPointReply").attr("disabled", true);
|
|
$("#bbsSetPointComment").attr("disabled", true);
|
|
}
|
|
});
|
|
|
|
<c:choose>
|
|
<c:when test='${tBbsSetDB.bbsSetPoint == "Y"}'>
|
|
$("#bbsSetPointWrite").attr("disabled", false);
|
|
$("#bbsSetPointReply").attr("disabled", false);
|
|
$("#bbsSetPointComment").attr("disabled", false);
|
|
</c:when>
|
|
<c:otherwise>
|
|
$("#bbsSetPointWrite").attr("disabled", true);
|
|
$("#bbsSetPointReply").attr("disabled", true);
|
|
$("#bbsSetPointComment").attr("disabled", true);
|
|
$("#bbsSetPointWrite").val("0");
|
|
$("#bbsSetPointReply").val("0");
|
|
$("#bbsSetPointComment").val("0");
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
CodeMirror.commands.autocomplete = function(cm) {
|
|
CodeMirror.showHint(cm, CodeMirror.hint.javascript);
|
|
};
|
|
|
|
var editor1 = CodeMirror.fromTextArea(document.getElementById("codeTextAreaT"), {
|
|
value: "<html>\n " + document.documentElement.innerHTML + "\n</html>",
|
|
mode: "text/html",
|
|
lineNumbers: true,
|
|
matchTags: {bothTags: true},
|
|
extraKeys: {
|
|
"Ctrl-E": "toMatchingTag",
|
|
"Ctrl-Space": "autocomplete",
|
|
"F11": function(cm) {
|
|
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
|
},
|
|
"Esc": function(cm) {
|
|
if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
|
}
|
|
},
|
|
autoCloseTags: true,
|
|
styleActiveLine: true,
|
|
matchBrackets: true,
|
|
syntax: 'html', /* define Zen Coding syntax */
|
|
profile: 'xhtml', /* define Zen Coding output profile */
|
|
|
|
// send all key events to Zen Coding
|
|
onKeyEvent: function() {
|
|
return zen_editor.handleKeyEvent.apply(zen_editor, arguments);
|
|
}
|
|
});
|
|
|
|
var editor2 = CodeMirror.fromTextArea(document.getElementById("codeTextAreaF"), {
|
|
value: "<html>\n " + document.documentElement.innerHTML + "\n</html>",
|
|
mode: "text/html",
|
|
lineNumbers: true,
|
|
matchTags: {bothTags: true},
|
|
extraKeys: {
|
|
"Ctrl-E": "toMatchingTag",
|
|
"Ctrl-Space": "autocomplete",
|
|
"F11": function(cm) {
|
|
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
|
},
|
|
"Esc": function(cm) {
|
|
if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
|
}
|
|
},
|
|
autoCloseTags: true,
|
|
styleActiveLine: true,
|
|
matchBrackets: true,
|
|
syntax: 'html', /* define Zen Coding syntax */
|
|
profile: 'xhtml', /* define Zen Coding output profile */
|
|
|
|
// send all key events to Zen Coding
|
|
onKeyEvent: function() {
|
|
return zen_editor.handleKeyEvent.apply(zen_editor, arguments);
|
|
}
|
|
});
|
|
|
|
var input1 = document.getElementById("select1");
|
|
var input2 = document.getElementById("select2");
|
|
|
|
function selectTheme1() {
|
|
var theme = input1.options[input1.selectedIndex].innerHTML;
|
|
editor1.setOption("theme", theme);
|
|
jf_setCookie("selectTheme1", theme);
|
|
}
|
|
|
|
function selectTheme2() {
|
|
var theme = input2.options[input2.selectedIndex].innerHTML;
|
|
editor2.setOption("theme", theme);
|
|
jf_setCookie("selectTheme2", theme);
|
|
}
|
|
|
|
var choice1 = jf_getCookie("selectTheme1");
|
|
var choice2 = jf_getCookie("selectTheme2");
|
|
|
|
if (choice1 != "") {
|
|
input1.value = choice1;
|
|
editor1.setOption("theme", choice1);
|
|
$("#select1").val(choice1).attr("selected", "selected");
|
|
}
|
|
|
|
if (choice2 != "") {
|
|
input2.value = choice2;
|
|
editor2.setOption("theme", choice2);
|
|
$("#select2").val(choice2).attr("selected", "selected");
|
|
}
|
|
|
|
$("#frm").submit(function(){
|
|
|
|
$("#bbsSetTHtml").val(editor1.getValue());
|
|
$("#bbsSetFHtml").val(editor2.getValue());
|
|
|
|
if(!confirm("<s:message code='common.message.bbs.set.confirm.mod'/>")){
|
|
return false;
|
|
}
|
|
|
|
if($("#bbsSetName").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetName"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetName").focus();
|
|
return false;
|
|
}else if($("#bbsSetFileSize").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetFile.set"/> <s:message code="manager.bbs.bbsSetEdit.bbsSetFile.size"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetFileSize").focus();
|
|
return false;
|
|
}else if($("#bbsSetFileCount").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetFile.set"/> <s:message code="manager.bbs.bbsSetEdit.bbsSetFile.count"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetFileCount").focus();
|
|
return false;
|
|
}else if($("#bbsSetDataCookieTime").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetDataCookieTime"/> <s:message code="manager.bbs.bbsSetEdit.bbsSetDataCookieTime"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetDataCookieTime").focus();
|
|
return false;
|
|
}else if($("input:checkbox[name=bbsSetPoint]:checked").val() == "Y"){
|
|
if($("#bbsSetPointWrite").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetPointWrite"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetPointWrite").focus();
|
|
return false;
|
|
}else if($("#bbsSetPointReply").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetPointReply"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetPointReply").focus();
|
|
return false;
|
|
}else if($("#bbsSetPointComment").val() == ""){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetPointComment"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetPointComment").focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if($('input:radio[name="bbsSetType"]:checked').val() == "A" || $('input:radio[name="bbsSetType"]:checked').val() == "M"){
|
|
if(!$('input:radio[name="bbsSetSubType"]').is(":checked")){
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetSubType"/> <s:message code="common.message.essential"/>");
|
|
$("#bbsSetSubType").focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if($('input:checkbox[name="bbsSetWaterMark"]').is(":checked") && $("#bbsSetWaterMarkImg").val() == ""){
|
|
|
|
<c:if test='${tBbsSetDB.bbsSetWaterMarkReImg == null || tBbsSetDB.bbsSetWaterMarkReImg == ""}'>
|
|
alert("<s:message code="manager.bbs.bbsSetEdit.bbsSetWaterMarkImg"/> <s:message code="common.message.essential"/>");
|
|
return false;
|
|
</c:if>
|
|
}
|
|
|
|
if($("#bbsSetWaterMarkImg").val() != ""){
|
|
var val = $("#bbsSetWaterMarkImg").val().split("\\");
|
|
var fileName = val[val.length-1]; //마지막 화일명
|
|
var fileType = fileName.substring(fileName.lastIndexOf("."));//확장자빼오기
|
|
|
|
var extArray = new Array("txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz");
|
|
|
|
var extChk = false;
|
|
|
|
for(var f=0; f<extArray.length; f++){
|
|
if("."+extArray[f] == fileType.toLowerCase()){
|
|
extChk = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if(!extChk){
|
|
alert("<s:message code="common.fileupload.message.no.upload"/>");
|
|
return false;
|
|
}
|
|
|
|
if(fileType.toLowerCase() != '.jpg' && fileType.toLowerCase() != '.gif' &&
|
|
fileType.toLowerCase() != '.bmp' && fileType.toLowerCase() != '.png'){//허용 확장자 비교
|
|
alert("<s:message code="common.fileupload.message.image.upload"/>");
|
|
$("#bannerDataFile").focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
$.blockUI({ message : '<h1><img src="/img/blockbusy.gif" /> <s:message code="common.message.ajaxwait"/></h1>' });
|
|
});
|
|
/* ]]> */
|
|
</script>
|
|
|
|
</body>
|
|
</html> |