상품문의 후기 내용 글자수 체크 스크립트 제거

This commit is contained in:
chicpro
2013-10-08 10:10:49 +09:00
parent 7ec7f0b46c
commit 988b6f062b
8 changed files with 4 additions and 91 deletions

View File

@ -6,9 +6,6 @@ if (!$is_member) {
alert_close("상품문의는 회원만 작성 가능합니다.");
}
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
$iq_question_max_length = 10000;
$w = escape_trim($_REQUEST['w']);
$it_id = escape_trim($_REQUEST['it_id']);
$iq_id = escape_trim($_REQUEST['iq_id']);

View File

@ -6,9 +6,6 @@ if (!$is_member) {
alert_close("사용후기는 회원만 작성 가능합니다.");
}
// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
$is_content_max_length = 10000;
$w = escape_trim($_REQUEST['w']);
$it_id = escape_trim($_REQUEST['it_id']);
$is_id = escape_trim($_REQUEST['is_id']);

View File

@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="sit_qa_write" class="new_win">
<h1 class="new_win_title">상품문의 쓰기</h1>
<form name="fitemqa" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
<form name="fitemqa" method="post" action="./itemqaformupdate.php" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
@ -35,19 +35,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
</form>
</div>
<script type="text/javascript">
function fitemqa_submit(f)
{
<?php echo get_editor_js('iq_question'); ?>
if (iq_question_editor_data.length > <?php echo $iq_question_max_length; ?>) {
alert("내용은 <?php echo $iq_question_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+iq_question_editor_data.length+" 글자");
CKEDITOR.instances.iq_question.focus();
return false;
}
return true;
}
</script>
<!-- } 상품문의 쓰기 끝 -->

View File

@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="sit_use_write" class="new_win">
<h1 class="new_win_title">사용후기 쓰기</h1>
<form name="fitemuse" method="post" action="./itemuseformupdate.php" onsubmit="return fitemuse_submit(this);" autocomplete="off">
<form name="fitemuse" method="post" action="./itemuseformupdate.php" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
@ -68,34 +68,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</form>
</div>
<script type="text/javascript">
function fitemuse_submit(f)
{
/*
if (document.getElementById('tx_is_content')) {
var len = ed_is_content.inputLength();
if (len == 0) {
alert('내용을 입력하십시오.');
ed_is_content.returnFalse();
return false;
} else if (len > 1000) {
alert('내용은 1000글자 까지만 입력해 주세요.');
ed_is_content.returnFalse();
return false;
}
}
*/
<?php echo get_editor_js('is_content'); ?>
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
alert("내용은 <?php echo $is_content_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+is_content_editor_data.length+" 글자");
CKEDITOR.instances.is_content.focus();
return false;
}
return true;
}
</script>
<!-- } 사용후기 쓰기 끝 -->

View File

@ -12,9 +12,6 @@ if (!$is_member) {
alert_close("상품문의는 회원만 작성 가능합니다.");
}
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
$iq_question_max_length = 10000;
$w = escape_trim($_REQUEST['w']);
$it_id = escape_trim($_REQUEST['it_id']);
$iq_id = escape_trim($_REQUEST['iq_id']);

View File

@ -12,9 +12,6 @@ if (!$is_member) {
alert_close("사용후기는 회원만 작성 가능합니다.");
}
// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
$is_content_max_length = 10000;
$w = escape_trim($_REQUEST['w']);
$it_id = escape_trim($_REQUEST['it_id']);
$is_id = escape_trim($_REQUEST['is_id']);

View File

@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="sit_qa_write" class="new_win">
<h1 class="new_win_title">상품문의 쓰기</h1>
<form name="fitemqa" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
<form name="fitemqa" method="post" action="./itemqaformupdate.php" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
@ -35,19 +35,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
</form>
</div>
<script type="text/javascript">
function fitemqa_submit(f)
{
<?php echo get_editor_js('iq_question'); ?>
if (iq_question_editor_data.length > <?php echo $iq_question_max_length; ?>) {
alert("내용은 <?php echo $iq_question_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+iq_question_editor_data.length+" 글자");
CKEDITOR.instances.iq_question.focus();
return false;
}
return true;
}
</script>
<!-- } 상품문의 쓰기 끝 -->

View File

@ -8,7 +8,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="sit_use_write" class="new_win">
<h1 class="new_win_title">사용후기 쓰기</h1>
<form name="fitemuse" method="post" action="./itemuseformupdate.php" onsubmit="return fitemuse_submit(this);" autocomplete="off">
<form name="fitemuse" method="post" action="./itemuseformupdate.php" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
@ -68,19 +68,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</form>
</div>
<script type="text/javascript">
function fitemuse_submit(f)
{
<?php echo get_editor_js('is_content'); ?>
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
alert("내용은 <?php echo $is_content_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+is_content_editor_data.length+" 글자");
CKEDITOR.instances.is_content.focus();
return false;
}
return true;
}
</script>
<!-- } 사용후기 쓰기 끝 -->