사용자: 게시판 최소/최대 글자수 체크 관련 마크업

This commit is contained in:
whitedot
2013-08-26 16:10:36 +09:00
parent 2658f1d862
commit 09c7d154d5
4 changed files with 24 additions and 2 deletions

View File

@ -35,6 +35,10 @@
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
/* 게시판 쓰기 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrp {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}
#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */

View File

@ -2,6 +2,12 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script>
// 글자수 제한
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
</script>
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<h2 id="wrapper_title"><?php echo $g4['title'] ?></h2>
@ -122,7 +128,11 @@ echo $option_hidden;
<tr>
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
<td class="wr_content"><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
<td class="wr_content">
<!-- 최소/최대 글자 수 사용 시 --><p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 초과, 최대 <strong><?php echo $write_max; ?></strong>글자 미만까지 글을 쓰실 수 있습니다.</p>
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
<!-- 최소/최대 글자 수 사용 시 --><div id="char_count_wrp"><span id="char_count"></span>글자</div>
</td>
</tr>
<?php for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>

View File

@ -59,6 +59,10 @@
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
/* 게시판 쓰기 */
#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrp {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}
#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute;top:24px;right:117px;padding:8px;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;overflow-y:scroll}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */

View File

@ -119,7 +119,11 @@ echo $option_hidden;
<tr>
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
<td class="wr_content"><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
<td class="wr_content">
<!-- 최소/최대 글자 수 사용 시 --><p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 초과, 최대 <strong><?php echo $write_max; ?></strong>글자 미만까지 글을 쓰실 수 있습니다.</p>
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
<!-- 최소/최대 글자 수 사용 시 --><div id="char_count_wrp"><span id="char_count"></span>글자</div>
</td>
</tr>
<?php for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>