사용자: #152 의 온라인서식필수입력처리 3,4,5

This commit is contained in:
whitedot
2013-01-18 15:19:06 +09:00
parent d8f2a32ad1
commit e9aafaa50e
3 changed files with 12 additions and 12 deletions

View File

@ -89,8 +89,8 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<fieldset id="bo_vc_winfo">
<legend class="sound_only">작성자</legend>
<? if ($is_guest) { ?>
<label for="wr_name">이름</label> <input type="text" id="wr_name" name="wr_name" class="fieldset_input required" maxLength="20" size="5" required>
<label for="wr_password">패스워드</label> <input type="password" id="wr_password" name="wr_password" class="fieldset_input required" maxLength="20" size="10" required>
<label for="wr_name">이름<strong class="sound_only">필수</strong></label> <input type="text" id="wr_name" name="wr_name" class="fieldset_input required" maxLength="20" size="5" required>
<label for="wr_password">패스워드<strong class="sound_only">필수</strong></label> <input type="password" id="wr_password" name="wr_password" class="fieldset_input required" maxLength="20" size="10" required>
<? } ?>
<input type="checkbox" id="wr_secret" name="wr_secret" value="secret">
<label for="wr_secret">비밀글</label>
@ -99,7 +99,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
<div id="bo_vc_warea">
<textarea id="wr_content" name="wr_content" required
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><? echo $c_wr_content; ?></textarea>
<? 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><?}?>
<input type="submit" class="bo_vc_submit" value="댓글입력">
</div>

View File

@ -52,14 +52,14 @@ echo $option_hidden;
<tbody>
<? if ($is_name) { ?>
<tr>
<th scope="row"><label for="wr_name">이름</label></th>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="wr_name" name="wr_name" class="frm_input required" size="10" maxlength="20" required value="<?=$name?>" title="이름"></td>
</tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<th scope="row"><label for="wr_password">패스워드</label></th>
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" id="wr_password" name="wr_password" class="frm_input" maxlength="20" <?=$password_required?>></td>
</tr>
<? } ?>
@ -87,7 +87,7 @@ echo $option_hidden;
<? if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류</label></th>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td>
<select id="ca_name" name="ca_name" class="required" required>
<option value="">선택하세요</option>
@ -98,12 +98,12 @@ echo $option_hidden;
<? } ?>
<tr>
<th scope="row"><label for="wr_subject">제목</label></th>
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="wr_subject" name="wr_subject" class="frm_input required" size="50" required value="<?=$subject?>" title="제목"></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">내용</label></th>
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
<td><?=editor_html("wr_content", $content);?></td>
</tr>

View File

@ -18,16 +18,16 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<tbody>
<? if (!$is_member) { ?>
<tr>
<th scope="row"><label for="fnick">이름</label></th>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fnick" name="fnick" class="frm_input required" required></td>
</tr>
<tr>
<th scope="row"><label for="fmail">E-mail</label></th>
<th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fmail" name="fmail" class="frm_input required" required></td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="subject">제목</label></th>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type=text id="subject" name="subject" class="frm_input required" required></td>
</tr>
<tr>
@ -39,7 +39,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</td>
</tr>
<tr>
<th scope="row"><label for="content">내용</label></th>
<th scope="row"><label for="content">내용<strong class="sound_only">필수</strong></label></th>
<td><textarea id="content" name="content" class="required" required></textarea></td>
</tr>
<tr>