전체선택 체크박스 앞으로 이동

This commit is contained in:
whitedot
2012-11-16 10:04:34 +09:00
parent e856b3ef74
commit 1149d86cf7
5 changed files with 27 additions and 34 deletions

View File

@ -83,19 +83,14 @@ var list_delete_php = 'auth_list_delete.php';
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<table>
<caption>
관리권한 현황
<p>
여러개의 권한설정을 한번에 삭제하실 때는 권한 체크기능을 이용하세요.
</p>
</caption>
<caption>설정된 관리권한 내역</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('a.mb_id')?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link('mb_nick')?>별명</a></th>
<th scope="col">메뉴</th>
<th scope="col">권한</th>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
</tr>
</thead>
<tbody>
@ -114,20 +109,18 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list = $i%2;
?>
<tr>
<td><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td>
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<?=$mb_nick?>
</td>
<td>
<input type="hidden" name="au_menu[<?=$i?>]" value="<?=$row['au_menu']?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk" name="chk[]" value="<?=$i?>" title="권한체크">
</td>
<td><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td><?=$mb_nick?></td>
<td>
<?=$row['au_menu']?>
<?=$auth_menu[$row['au_menu']]?>
</td>
<td><?=$row['au_auth']?></td>
<td>
<input type="checkbox" id="chk" name="chk[]" value="<?=$i?>" title="권한체크">
</td>
</tr>
<?
}

View File

@ -108,13 +108,13 @@ var list_delete_php = 'board_list_delete.php';
</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('a.gr_id')?>그룹</a></th>
<th scope="col"><?=subject_sort_link('bo_table')?>TABLE</a></th>
<th scope="col"><?=subject_sort_link('bo_skin', '', 'desc')?>스킨</a></th>
<th scope="col"><?=subject_sort_link('bo_subject')?>제목</a></th>
<th scope="col">포인트</th>
<th scope="col">검색</th>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
<th scope="col">관리</th>
</tr>
</thead>
@ -143,6 +143,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td>
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 선택">
</td>
<td>
<?if ($is_admin == 'super'){?>
<label for="gr_id_<?=$i?>">그룹지정</label>
@ -179,9 +182,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
<label for="bo_order_search_<?=$i?>">순서</label>
<input type="text" id="bo_order_search_<?=$i?>" name="bo_order_search[<?=$i?>]" value="<?=$row['bo_order_search']?>">
</td>
<td>
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 선택">
</td>
<td><?=$s_upd?> <?=$s_del?> <?=$s_copy?></td>
</tr>
<?

View File

@ -98,13 +98,13 @@ var list_update_php = "./boardgroup_list_update.php";
</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('gr_id')?>그룹아이디</a></th>
<th scope="col"><?=subject_sort_link('gr_subject')?>제목</a></th>
<th scope="col"><?=subject_sort_link('gr_admin')?>그룹관리자</a></th>
<th scope="col">게시판</th>
<th scope="col">접근사용</th>
<th scope="col">접근회원수</th>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재목록 전체선택" onclick="check_all(this.form)"></th>
<th scope="col">관리</th>
</tr>
</thead>
@ -129,6 +129,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
?>
<tr>
<td>
<input type="hidden" id="gr_id" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="그룹선택">
</td>
<td><a href="<?=$g4['bbs_path']?>/group.php?gr_id="<?=$row['gr_id']?>"><?=$row['gr_id']?></a></td>
<td>
<input type="text" id="gr_subject_<?=$i?>" name="gr_subject[<?=$i?>]" value="<?=get_text($row['gr_subject'])?>" title="그룹제목 수정">
@ -143,10 +147,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<td><a href="./board_list.php?sfl=a.gr_id&amp;stx=<?=$row['gr_id']?>"><?=$row2['cnt']?></a></td>
<td><input type="checkbox" id="gr_use_access" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1"></td>
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
<td>
<input type="hidden" id="gr_id" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="그룹선택">
</td>
<td><?=$s_upd?> <?=$s_del?></td>
</tr>

View File

@ -113,6 +113,7 @@ function point_clear()
</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
<th scope="col">이름</th>
<th scope="col">별명</th>
@ -120,7 +121,6 @@ function point_clear()
<th scope="col"><?=subject_sort_link('po_content')?>포인트 내용</a></th>
<th scope="col"><?=subject_sort_link('po_point')?>포인트</a></th>
<th scope="col">포인트합</th>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
</tr>
</thead>
<tbody>
@ -144,6 +144,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
?>
<tr>
<td>
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="hidden" id="po_id_<?=$i?>" name="po_id[<?=$i?>]" value="<?=$row[po_id]?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>">
</td>
<td><a href="?sfl=mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td><?=$row2['mb_name']?></td>
<td><?=$mb_nick?></td>
@ -151,11 +156,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<td><?=$link1?><?=$row['po_content']?><?=$link2?></td>
<td><?=number_format($row[po_point])?></td>
<td><?=number_format($row2[mb_point])?></td>
<td>
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="hidden" id="po_id_<?=$i?>" name="po_id[<?=$i?>]" value="<?=$row[po_id]?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>">
</td>
</tr>
<?

View File

@ -97,10 +97,10 @@ var list_delete_php = 'popular_list.php';
<table>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('pp_word')?>검색어</a></th>
<th scope="col">등록일</th>
<th scope="col">등록IP</th>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
</tr>
</thead>
<tbody>
@ -111,13 +111,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<tr>
<td>&nbsp; <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&amp;stx=<?=$word?>"><?=$word?></a></td>
<td><?=$row['pp_date']?></td>
<td><?=$row['pp_ip']?></td>
<td>
<input type="hidden" id="pp_id" name="pp_id[<?=$i?>]" value="<?=$row[pp_id]?>">
<input type="checkbox" id="chk" name="chk[]" value="<?=$i?>">
</td>
<td>&nbsp; <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&amp;stx=<?=$word?>"><?=$word?></a></td>
<td><?=$row['pp_date']?></td>
<td><?=$row['pp_ip']?></td>
</tr>
<?