캡챠 체크 에러 체크 중
This commit is contained in:
@ -73,9 +73,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
|||||||
<?}?>
|
<?}?>
|
||||||
<? if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><? } ?>
|
<? if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><? } ?>
|
||||||
|
|
||||||
</section>
|
<? if ($is_comment_write) {
|
||||||
|
|
||||||
<? if ($is_comment_write) {
|
|
||||||
if($w == '')
|
if($w == '')
|
||||||
$w = 'c';
|
$w = 'c';
|
||||||
?>
|
?>
|
||||||
@ -93,44 +91,23 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
|||||||
<input type="hidden" name="page" value="<?=$page?>">
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
<input type="hidden" name="is_good" value="">
|
<input type="hidden" name="is_good" value="">
|
||||||
|
|
||||||
<table class="frm_tbl">
|
<fieldset id="bo_vc_winfo">
|
||||||
<tbody>
|
<legend class="sound_only">작성자</legend>
|
||||||
<? if ($is_guest) { ?>
|
<? if ($is_guest) { ?>
|
||||||
<tr>
|
<label for="wr_name">이름<strong class="sound_only">필수</strong></label> <input type="text" id="wr_name" name="wr_name" class="fs_input required" maxLength="20" size="5" required>
|
||||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
<label for="wr_password">패스워드<strong class="sound_only">필수</strong></label> <input type="password" id="wr_password" name="wr_password" class="fs_input required" maxLength="20" size="10" required>
|
||||||
<td><input type="text" id="wr_name" name="wr_name" class="frm_input required" maxLength="20" size="5" required></td>
|
<? } ?>
|
||||||
</tr>
|
<input type="checkbox" id="wr_secret" name="wr_secret" value="secret">
|
||||||
<tr>
|
<label for="wr_secret">비밀글</label>
|
||||||
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
</fieldset>
|
||||||
<td><input type="password" id="wr_password" name="wr_password" class="frm_input required" maxLength="20" size="10" required></td>
|
<? echo $captcha_html; ?>
|
||||||
</tr>
|
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
|
||||||
<? } ?>
|
<div id="bo_vc_warea">
|
||||||
<tr>
|
<textarea id="wr_content" name="wr_content" required
|
||||||
<th scope="row"><label for="wr_secret">비밀글사용</label></th>
|
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> title="댓글내용입력(필수)"><? echo $c_wr_content; ?></textarea>
|
||||||
<td><input type="checkbox" id="wr_secret" name="wr_secret" value="secret"></td>
|
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||||
</tr>
|
<input type="submit" class="bo_vc_submit" value="댓글입력">
|
||||||
<? if ($is_guest) { ?>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">자동등록방지</th>
|
|
||||||
<td><?=$captcha_html;?></td>
|
|
||||||
</tr>
|
|
||||||
<? } ?>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">내용</th>
|
|
||||||
<td>
|
|
||||||
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
|
|
||||||
<textarea id="wr_content" name="wr_content" required
|
|
||||||
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> title="댓글내용입력(필수)"><? echo $c_wr_content; ?></textarea>
|
|
||||||
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div class="btn_confirm">
|
|
||||||
<input type="submit" class="btn_submit" value="댓글입력">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
@ -293,3 +270,4 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
|||||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||||
</script>
|
</script>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user