관리자: wrest.js 변경에 따른 유효성 검사 class 처리

This commit is contained in:
whitedot
2012-12-17 16:47:46 +09:00
parent b26b568a99
commit 2b2f25c0c7
6 changed files with 47 additions and 47 deletions

View File

@ -20,7 +20,7 @@ $html_title = '게시판';
if ($w == '') {
$html_title .= ' 생성';
$bo_table_attr = 'required alphanumericunderline';
$bo_table_attr = 'class="required alnum_"';
$board[bo_count_delete] = 1;
$board[bo_count_modify] = 1;
@ -114,7 +114,7 @@ include_once ('./admin.head.php');
<tr>
<th scope="row"><label for="bo_subject">게시판 제목</label></th>
<td>
<input type="text" id="bo_subject" name="bo_subject" maxlength="120" required value="<?=get_text($board['bo_subject'])?>" size="80">
<input type="text" id="bo_subject" name="bo_subject" maxlength="120" class="required" value="<?=get_text($board['bo_subject'])?>" size="80">
</td>
</tr>
<tr>
@ -266,7 +266,7 @@ include_once ('./admin.head.php');
<tr>
<th scope="row"><label for="bo_count_modify">원글 수정 불가</label></th>
<td>
댓글 <input type="text" id="bo_count_modify" name="bo_count_modify" required numeric value="<?=$board[bo_count_modify]?>" size="3">개 이상 달리면 수정불가
댓글 <input type="text" id="bo_count_modify" name="bo_count_modify" class="required numeric" value="<?=$board[bo_count_modify]?>" size="3">개 이상 달리면 수정불가
<span class="group_setting">
<input type="checkbox" id="chk_count_modify" name="chk_count_modify" value="1">
<label for="chk_count_modify">동일그룹 모두 적용</label>
@ -276,7 +276,7 @@ include_once ('./admin.head.php');
<tr>
<th scope="row"><label for="bo_count_delete">원글 삭제 불가</label></th>
<td>
댓글 <input type="text" id="bo_count_delete" name="bo_count_delete" required numeric value="<?=$board[bo_count_delete]?>" size="3">개 이상 달리면 삭제불가
댓글 <input type="text" id="bo_count_delete" name="bo_count_delete" class="required numeric" value="<?=$board[bo_count_delete]?>" size="3">개 이상 달리면 삭제불가
<span class="group_setting">
<input type="checkbox" id="chk_count_delete" name="chk_count_delete" value="1">
<label for="chk_count_delete">동일그룹 모두 적용</label>
@ -456,7 +456,7 @@ include_once ('./admin.head.php');
<th scope="row"><label for="bo_upload_count">파일 업로드 갯수</label></th>
<td>
<?=help('게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 이면 제한 없음)')?>
<input type="text" id="bo_upload_count" name="bo_upload_count" required value="<?=$board[bo_upload_count]?>" size="3">
<input type="text" id="bo_upload_count" name="bo_upload_count" class="required numeric" value="<?=$board[bo_upload_count]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_upload_count" name="chk_upload_count" value="1">
<label for="chk_upload_count">동일그룹 모두 적용</label>
@ -473,7 +473,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_upload_size">파일 업로드 용량</label></th>
<td>
<?=help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,024,768 bytes')?>
업로드 파일 한개당 <input type="text" id="bo_upload_size" name="bo_upload_size" required value="<?=$board[bo_upload_size]?>" size="10"> bytes 이하
업로드 파일 한개당 <input type="text" id="bo_upload_size" name="bo_upload_size" class="required numeric" value="<?=$board[bo_upload_size]?>" size="10"> bytes 이하
<span class="group_setting">
<input type="checkbox" id="chk_upload_size" name="chk_upload_size" value="1">
<label for="chk_upload_size">동일그룹 모두 적용</label>
@ -555,7 +555,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_skin">스킨 디렉토리</label></th>
<td>
<select id="bo_skin" name="bo_skin" required>
<select id="bo_skin" name="bo_skin" class="required">
<?
$arr = get_skin_dir('board');
for ($i=0; $i<count($arr); $i++) {
@ -643,7 +643,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_subject_len">제목 길이</label></th>
<td>
<?=help('목록에서의 제목 글자수. 잘리는 글은 … 로 표시')?>
<input type="text" id="bo_subject_len" name="bo_subject_len" required value="<?=$board[bo_subject_len]?>" size="3">
<input type="text" id="bo_subject_len" name="bo_subject_len" class="required numeric" value="<?=$board[bo_subject_len]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_subject_len" name="chk_subject_len" value="1">
<label for="chk_subject_len">동일그룹 모두 적용</label>
@ -653,7 +653,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_page_rows">페이지당 목록 수</label></th>
<td>
<input type="text" id="bo_page_rows" name="bo_page_rows" required value="<?=$board[bo_page_rows]?>" size="3">
<input type="text" id="bo_page_rows" name="bo_page_rows" class="required numeric" value="<?=$board[bo_page_rows]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_page_rows" name="chk_page_rows" value="1">
<label for="chk_page_rows">동일그룹 모두 적용</label>
@ -664,7 +664,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_gallery_cols">가로 이미지수</label></th>
<td>
<?=help('갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여줄것인지를 설정하는 값')?>
<input type="text" id="bo_gallery_cols" name="bo_gallery_cols" required value="<?=$board[bo_gallery_cols]?>" size="3">
<input type="text" id="bo_gallery_cols" name="bo_gallery_cols" class="required numeric" value="<?=$board[bo_gallery_cols]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_gallery_cols" name="chk_gallery_cols" value="1">
<label for="chk_gallery_cols">동일그룹 모두 적용</label>
@ -675,7 +675,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_table_width">게시판 테이블 폭</label></th>
<td>
<?=help('100 이하는 %')?>
<input type="text" id="bo_table_width" name="bo_table_width" required value="<?=$board[bo_table_width]?>" size="3">
<input type="text" id="bo_table_width" name="bo_table_width" class="required numeric" value="<?=$board[bo_table_width]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_table_width" name="chk_table_width" value="1">
<label for="chk_table_width">동일그룹 모두 적용</label>
@ -686,7 +686,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_image_width">이미지 폭 크기</label></th>
<td>
<?=help('게시판에서 출력되는 이미지의 폭 크기')?>
<input type="text" id="bo_image_width" name="bo_image_width" required value="<?=$board[bo_image_width]?>" size="3"> 픽셀
<input type="text" id="bo_image_width" name="bo_image_width" class="required numeric" value="<?=$board[bo_image_width]?>" size="3"> 픽셀
<span class="group_setting">
<input type="checkbox" id="chk_image_width" name="chk_image_width" value="1">
<label for="chk_image_width">동일그룹 모두 적용</label>
@ -697,7 +697,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_new">새글 아이콘</label></th>
<td>
<?=help('글 입력후 new 이미지를 출력하는 시간')?>
<input type="text" id="bo_new" name="bo_new" required value="<?=$board[bo_new]?>" size="3">
<input type="text" id="bo_new" name="bo_new" class="required numeric" value="<?=$board[bo_new]?>" size="3">
<span class="group_setting">
<input type="checkbox" id="chk_new" name="chk_new" value="1">
<label for="chk_new">동일그룹 모두 적용</label>
@ -708,7 +708,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<th scope="row"><label for="bo_hot">인기글 아이콘</label></th>
<td>
<?=help('조회수가 설정값 이상이면 hot 이미지 출력')?>
<input type="text" id="bo_hot" name="bo_hot" required value="<?=$board[bo_hot]?>" size="5">
<input type="text" id="bo_hot" name="bo_hot" class="required numeric" value="<?=$board[bo_hot]?>" size="5">
<span class="group_setting">
<input type="checkbox" id="chk_hot" name="chk_hot" value="1">
<label for="chk_hot">동일그룹 모두 적용</label>
@ -785,7 +785,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_read_point">글읽기 포인트</label></th>
<td>
<input type="text" id="bo_read_point" name="bo_read_point" required value="<?=$board[bo_read_point]?>" size="5">
<input type="text" id="bo_read_point" name="bo_read_point" class="required numeric" value="<?=$board[bo_read_point]?>" size="5">
<span class="group_setting">
<input type="checkbox" id="chk_read_point" name="chk_read_point" value="1">
<label for="chk_read_point">동일그룹 모두 적용</label>
@ -795,7 +795,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_write_point">글쓰기 포인트</label></th>
<td>
<input type="text" id="bo_write_point" name="bo_write_point" required value="<?=$board[bo_write_point]?>" size="5">
<input type="text" id="bo_write_point" name="bo_write_point" class="required numeric" value="<?=$board[bo_write_point]?>" size="5">
<span class="group_setting">
<input type="checkbox" id="chk_write_point" name="chk_write_point" value="1">
<label for="chk_write_point">동일그룹 모두 적용</label>
@ -805,7 +805,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_comment_point">댓글쓰기 포인트</label></th>
<td>
<input type="text" id="bo_comment_point" name="bo_comment_point" required value="<?=$board[bo_comment_point]?>" size="5">
<input type="text" id="bo_comment_point" name="bo_comment_point" class="required numeric" value="<?=$board[bo_comment_point]?>" size="5">
<span class="group_setting">
<input type="checkbox" id="chk_comment_point" name="chk_comment_point" value="1">
<label for="chk_comment_point">동일그룹 모두 적용</label>
@ -815,7 +815,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<tr>
<th scope="row"><label for="bo_download_point">다운로드 포인트</label></th>
<td>
<input type="text" id="bo_download_point" name="bo_download_point" required value="<?=$board[bo_download_point]?>" size="5">
<input type="text" id="bo_download_point" name="bo_download_point" class="required numeric" value="<?=$board[bo_download_point]?>" size="5">
<span class="group_setting">
<input type="checkbox" id="chk_download_point" name="chk_download_point" value="1">
<label for="chk_download_point">동일그룹 모두 적용</label>
@ -850,7 +850,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
<legend><span></span>XSS 혹은 CSRF 방지</legend>
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
<label for="admin_password">관리자 패스워드</label>
<input type="password" id="admin_password" name="admin_password" required title="관리자 패스워드">
<input type="password" id="admin_password" name="admin_password" class="required" title="관리자 패스워드">
</fieldset>
<div class="btn_confirm">