사용자: 게시판스킨 에디터 미사용 시 내용 입력 높이 조절
This commit is contained in:
@ -66,7 +66,7 @@
|
|||||||
#bo_w .frm_tbl th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left}
|
#bo_w .frm_tbl th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left}
|
||||||
#bo_w .frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
#bo_w .frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||||
#bo_w .frm_tbl textarea, #bo_w .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
#bo_w .frm_tbl textarea, #bo_w .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
||||||
#bo_w .frm_tbl textarea {width:98%;height:100px}
|
#bo_w .frm_tbl textarea {width:98%;height:200px}
|
||||||
#bo_w .frm_address {display:block;margin-top:5px}
|
#bo_w .frm_address {display:block;margin-top:5px}
|
||||||
#bo_w .frm_file {display:block;margin-bottom:5px}
|
#bo_w .frm_file {display:block;margin-bottom:5px}
|
||||||
#bo_w .frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
#bo_w .frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
#bo_w .frm_tbl th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left}
|
#bo_w .frm_tbl th {width:100px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f7f7f7;text-align:left}
|
||||||
#bo_w .frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
#bo_w .frm_tbl td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||||
#bo_w .frm_tbl textarea, #bo_w .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
#bo_w .frm_tbl textarea, #bo_w .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
|
||||||
#bo_w .frm_tbl textarea {width:98%;height:100px}
|
#bo_w .frm_tbl textarea {width:98%;height:200px}
|
||||||
#bo_w .frm_address {display:block;margin-top:5px}
|
#bo_w .frm_address {display:block;margin-top:5px}
|
||||||
#bo_w .frm_file {display:block;margin-bottom:5px}
|
#bo_w .frm_file {display:block;margin-bottom:5px}
|
||||||
#bo_w .frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
#bo_w .frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||||
|
|||||||
@ -4,24 +4,26 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
|
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
|
||||||
|
|
||||||
<h2 id="wrapper_title"><?php echo $g5['title'] ?></h2>
|
<section id="bo_w">
|
||||||
|
<h2 id="wrapper_title"><?php echo $g5['title'] ?></h2>
|
||||||
|
|
||||||
<!-- 게시물 작성/수정 시작 { -->
|
<!-- 게시물 작성/수정 시작 { -->
|
||||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
|
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||||
<?php
|
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||||
$option = '';
|
<?php
|
||||||
$option_hidden = '';
|
$option = '';
|
||||||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
$option_hidden = '';
|
||||||
|
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||||
$option = '';
|
$option = '';
|
||||||
if ($is_notice) {
|
if ($is_notice) {
|
||||||
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
|
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
|
||||||
@ -46,50 +48,50 @@ if ($is_notice || $is_html || $is_secret || $is_mail) {
|
|||||||
if ($is_mail) {
|
if ($is_mail) {
|
||||||
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
|
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $option_hidden;
|
echo $option_hidden;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table id="bo_w" class="frm_tbl">
|
<table class="frm_tbl">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if ($is_name) { ?>
|
<?php if ($is_name) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_password) { ?>
|
<?php if ($is_password) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
||||||
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_email) { ?>
|
<?php if ($is_email) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_homepage) { ?>
|
<?php if ($is_homepage) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($option) { ?>
|
<?php if ($option) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">옵션</th>
|
<th scope="row">옵션</th>
|
||||||
<td><?php echo $option ?></td>
|
<td><?php echo $option ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_category) { ?>
|
<?php if ($is_category) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
|
||||||
<td>
|
<td>
|
||||||
<select name="ca_name" id="ca_name" required class="required" >
|
<select name="ca_name" id="ca_name" required class="required" >
|
||||||
@ -97,12 +99,13 @@ echo $option_hidden;
|
|||||||
<?php echo $category_option ?>
|
<?php echo $category_option ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
|
||||||
<td>
|
<td>
|
||||||
|
<div id="autosave_wrapper">
|
||||||
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50" maxlength="255">
|
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50" maxlength="255">
|
||||||
<?php if ($is_member) { // 임시 저장된 글 기능 ?>
|
<?php if ($is_member) { // 임시 저장된 글 기능 ?>
|
||||||
<script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
|
<script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
|
||||||
@ -114,10 +117,11 @@ echo $option_hidden;
|
|||||||
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
|
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
|
||||||
<td class="wr_content">
|
<td class="wr_content">
|
||||||
<?php if($write_min || $write_max) { ?>
|
<?php if($write_min || $write_max) { ?>
|
||||||
@ -130,17 +134,17 @@ echo $option_hidden;
|
|||||||
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
<div id="char_count_wrp"><span id="char_count"></span>글자</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
<?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
|
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
|
||||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
|
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
|
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">파일 #<?php echo $i+1 ?></th>
|
<th scope="row">파일 #<?php echo $i+1 ?></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
||||||
@ -151,46 +155,46 @@ echo $option_hidden;
|
|||||||
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($is_guest) { //자동등록방지 ?>
|
<?php if ($is_guest) { //자동등록방지 ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">자동등록방지</th>
|
<th scope="row">자동등록방지</th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo $captcha_html ?>
|
<?php echo $captcha_html ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<p>
|
<p>
|
||||||
작성하신 내용을 제출하시려면 <strong>글쓰기</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>취소</strong> 링크를 누르세요.
|
작성하신 내용을 제출하시려면 <strong>글쓰기</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>취소</strong> 링크를 누르세요.
|
||||||
</p>
|
</p>
|
||||||
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
|
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
|
||||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">취소</a>
|
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">취소</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
<?php if($write_min || $write_max) { ?>
|
<?php if($write_min || $write_max) { ?>
|
||||||
// 글자수 제한
|
// 글자수 제한
|
||||||
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
|
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
|
||||||
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
|
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
|
||||||
check_byte("wr_content", "char_count");
|
check_byte("wr_content", "char_count");
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#wr_content").on("keyup", function() {
|
$("#wr_content").on("keyup", function() {
|
||||||
check_byte("wr_content", "char_count");
|
check_byte("wr_content", "char_count");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
function html_auto_br(obj)
|
function html_auto_br(obj)
|
||||||
{
|
{
|
||||||
if (obj.checked) {
|
if (obj.checked) {
|
||||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||||
if (result)
|
if (result)
|
||||||
@ -200,10 +204,10 @@ function html_auto_br(obj)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
obj.value = "";
|
obj.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function fwrite_submit(f)
|
function fwrite_submit(f)
|
||||||
{
|
{
|
||||||
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
||||||
|
|
||||||
var subject = "";
|
var subject = "";
|
||||||
@ -258,6 +262,7 @@ function fwrite_submit(f)
|
|||||||
document.getElementById("btn_submit").disabled = "disabled";
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
</section>
|
||||||
<!-- } 게시물 작성/수정 끝 -->
|
<!-- } 게시물 작성/수정 끝 -->
|
||||||
Reference in New Issue
Block a user