관리자:board_list.php
This commit is contained in:
@ -27,9 +27,9 @@ if (!$sst) {
|
||||
$sql_order = " order by $sst $sod ";
|
||||
|
||||
$sql = " select count(*) as cnt
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order ";
|
||||
{$sql_common}
|
||||
{$sql_search}
|
||||
{$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
@ -39,10 +39,10 @@ if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order
|
||||
limit $from_record, $rows ";
|
||||
{$sql_common}
|
||||
{$sql_search}
|
||||
{$sql_order}
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = '';
|
||||
@ -61,7 +61,7 @@ var list_update_php = '';
|
||||
var list_delete_php = 'auth_list_delete.php';
|
||||
</script>
|
||||
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<form id="f_search" name="fsearch" method="get">
|
||||
<fieldset>
|
||||
<legend>관리권한 검색</legend>
|
||||
<div><span><?=$listall?></span> 설정된 관리권한 <?=number_format($total_count)?>건</div>
|
||||
@ -128,8 +128,11 @@ if ($i==0)
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
?>
|
||||
|
||||
<div><input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')"></div>
|
||||
<div><?=$pagelist?></div>
|
||||
<div class="btn_list"><input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')"></div>
|
||||
|
||||
<div class="paginate">
|
||||
<?=$pagelist?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
@ -142,10 +145,6 @@ else
|
||||
?>
|
||||
</form>
|
||||
|
||||
<script> document.fsearch.stx.focus(); </script>
|
||||
|
||||
<?$colspan=5?>
|
||||
|
||||
<form id="fauthlist2" name="fauthlist2" method="post" onsubmit="return fauthlist2_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
|
||||
@ -82,7 +82,7 @@ include_once ('./admin.head.php');
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
|
||||
<section id="adm_bo_basic">
|
||||
<section id="bo_basic">
|
||||
<h3><span></span>기본설정</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -117,7 +117,7 @@ include_once ('./admin.head.php');
|
||||
<?=help('분류와 분류 사이는 | 로 구분하세요. (예: 질문|답변) 첫자로 #은 입력하지 마세요. (예: #질문|#답변 [X])')?>
|
||||
<input type="text" id="bo_category_list" name="bo_category_list" value="<?=get_text($board['bo_category_list'])?>">
|
||||
<input type="checkbox" id="bo_use_category" name="bo_use_category" value="1" <?=$board['bo_use_category']?'checked':'';?>><label for="bo_use_category">사용</label>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_category_list" name="chk_category_list" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_category_list" name="chk_category_list" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($w == 'u') { ?>
|
||||
@ -133,7 +133,7 @@ include_once ('./admin.head.php');
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="adm_bo_rights">
|
||||
<section id="bo_rights">
|
||||
<h3><span></span>권한설정</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -141,7 +141,7 @@ include_once ('./admin.head.php');
|
||||
<th scope="row" id="th201"><label for="bo_admin">게시판 관리자</label></th>
|
||||
<td headers="th201">
|
||||
<input type="text" id="bo_admin" name="bo_admin" maxlength="20" value="<?=$board['bo_admin']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_admin" name="chk_admin" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_admin" name="chk_admin" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -149,63 +149,63 @@ include_once ('./admin.head.php');
|
||||
<td headers="th202">
|
||||
<?=help('권한 1은 비회원, 2 이상 회원입니다. 권한은 10 이 가장 높습니다.')?>
|
||||
<?=get_member_level_select('bo_list_level', 1, 10, $board['bo_list_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_list_level" name="chk_list_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_list_level" name="chk_list_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th203"><label for="bo_read_level">글읽기 권한</label></th>
|
||||
<td headers="th203">
|
||||
<?=get_member_level_select('bo_read_level', 1, 10, $board['bo_read_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_read_level" name="chk_read_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_read_level" name="chk_read_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th204"><label for="bo_write_level">글쓰기 권한</label></th>
|
||||
<td headers="th204">
|
||||
<?=get_member_level_select('bo_write_level', 1, 10, $board['bo_write_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_write_level" name="chk_write_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_write_level" name="chk_write_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th205"><label for="bo_reply_level">글답변 권한</label></th>
|
||||
<td headers="th205">
|
||||
<?=get_member_level_select('bo_reply_level', 1, 10, $board['bo_reply_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_reply_level" name="chk_reply_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_reply_level" name="chk_reply_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th206"><label for="bo_comment_level">코멘트쓰기 권한</label></th>
|
||||
<td headers="th206">
|
||||
<?=get_member_level_select('bo_comment_level', 1, 10, $board['bo_comment_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_comment_level" name="chk_comment_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_comment_level" name="chk_comment_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th207"><label for="bo_link_level">링크 권한</label></th>
|
||||
<td headers="th207">
|
||||
<?=get_member_level_select('bo_link_level', 1, 10, $board['bo_link_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_link_level" name="chk_link_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_link_level" name="chk_link_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th208"><label for="bo_upload_level">업로드 권한</label></th>
|
||||
<td headers="th208">
|
||||
<?=get_member_level_select('bo_upload_level', 1, 10, $board['bo_upload_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_upload_level" name="chk_upload_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_upload_level" name="chk_upload_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th209"><label for="bo_download_level">다운로드 권한</label></th>
|
||||
<td headers="th209">
|
||||
<?=get_member_level_select('bo_download_level', 1, 10, $board['bo_download_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_download_level" name="chk_download_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_download_level" name="chk_download_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th210"><label for="bo_html_level">HTML 쓰기 권한</label></th>
|
||||
<td headers="th210">
|
||||
<?=get_member_level_select('bo_html_level', 1, 10, $board['bo_html_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_html_level" name="chk_html_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_html_level" name="chk_html_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -213,14 +213,14 @@ include_once ('./admin.head.php');
|
||||
<td headers="th211">
|
||||
<?=help('트랙백이란? 쉽게 설명하여 "내가 작성하는 글을 다른사람에게 알리는 기능" 입니다.'.PHP_EOL.'자세한 내용은 검색엔진에서 "트랙백"으로 검색을 해보시기 바랍니다.')?>
|
||||
<?=get_member_level_select('bo_trackback_level', 1, 10, $board['bo_trackback_level']) ?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_trackback_level" name="chk_trackback_level" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_trackback_level" name="chk_trackback_level" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="adm_bo_function">
|
||||
<section id="bo_function">
|
||||
<h3><span></span>기능설정</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -228,35 +228,35 @@ include_once ('./admin.head.php');
|
||||
<th scope="row" id="th301"><label for="bo_count_modify">원글 수정 불가</label></th>
|
||||
<td headers="th301">
|
||||
코멘트 <input type="text" id="bo_count_modify" name="bo_count_modify" required numeric value="<?=$board['bo_count_modify']?>">개 이상 달리면 수정불가
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_count_modify" name="chk_count_modify" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_count_modify" name="chk_count_modify" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th302"><label for="bo_count_delete">원글 삭제 불가</label></th>
|
||||
<td headers="th302">
|
||||
코멘트 <input type="text" id="bo_count_delete" name="bo_count_delete" required numeric value="<?=$board['bo_count_delete']?>">개 이상 달리면 삭제불가
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_count_delete" name="chk_count_delete" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_count_delete" name="chk_count_delete" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th303"><label for="bo_use_sideview">글쓴이 사이드뷰</label></th>
|
||||
<td headers="th303">
|
||||
<input type="checkbox" id="bo_use_sideview" name="bo_use_sideview" value="1" <?=$board['bo_use_sideview']?'checked':'';?>>사용 (글쓴이 클릭시 나오는 레이어 메뉴)
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_sideview" name="chk_use_sideview" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_sideview" name="chk_use_sideview" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th304"><label for="bo_use_file_content">파일 설명 사용</label></th>
|
||||
<td headers="th304">
|
||||
<input type="checkbox" id="bo_use_file_content" name="bo_use_file_content" value="1" <?=$board['bo_use_file_content']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_file_content" name="chk_use_file_content" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_file_content" name="chk_use_file_content" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th305"><label for="bo_use_comment">코멘트 새창 사용</label></th>
|
||||
<td headers="th305">
|
||||
<input type="checkbox" id="bo_use_comment" name="bo_use_comment" value="1" <?=$board['bo_use_comment']?'checked':'';?>>사용 (코멘트수 클릭시 새창으로 보임)
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_comment" name="chk_use_comment" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_comment" name="chk_use_comment" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -269,7 +269,7 @@ include_once ('./admin.head.php');
|
||||
<option value='2'>무조건
|
||||
</select>
|
||||
<script>document.getElementById('bo_use_secret').value="<?=$board['bo_use_secret']?>";</script>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_secret" name="chk_use_secret" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_secret" name="chk_use_secret" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -277,7 +277,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th307">
|
||||
<?=help('글작성시 내용을 DHTML 에디터 기능으로 사용할 것인지 설정합니다. 스킨에 따라 적용되지 않을 수 있습니다.')?>
|
||||
<input type="checkbox" id="bo_use_dhtml_editor" name="bo_use_dhtml_editor" value="1" <?=$board['bo_use_dhtml_editor']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_dhtml_editor" name="chk_use_dhtml_editor" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_dhtml_editor" name="chk_use_dhtml_editor" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -285,77 +285,77 @@ include_once ('./admin.head.php');
|
||||
<td headers="th308">
|
||||
<?=help('비회원 글읽기가 가능하고 RSS 보이기 사용에 체크가 되어야만 RSS 지원을 합니다.')?>
|
||||
<input type="checkbox" id="bo_use_rss_view" name="bo_use_rss_view" value="1" <?=$board['bo_use_rss_view']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_rss_view" name="chk_use_rss_view" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_rss_view" name="chk_use_rss_view" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th309"><label for="bo_use_good">추천 사용</label></th>
|
||||
<td headers="th309">
|
||||
<input type="checkbox" id="bo_use_good" name="bo_use_good" value="1" <?=$board['bo_use_good']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_good" name="chk_use_good" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_good" name="chk_use_good" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th310"><label for="bo_use_nogood">비추천 사용</label></th>
|
||||
<td headers="th310">
|
||||
<input type="checkbox" id="bo_use_nogood" name="bo_use_nogood" value="1" <?=$board['bo_use_nogood']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_nogood" name="chk_use_nogood" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_nogood" name="chk_use_nogood" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th311"><label for="bo_use_name">이름(실명) 사용</label></th>
|
||||
<td headers="th311">
|
||||
<input type="checkbox" id="bo_use_name" name="bo_use_name" value="1" <?=$board['bo_use_name']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_name" name="chk_use_name" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_name" name="chk_use_name" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th312"><label for="bo_use_signature">서명보이기 사용</label></th>
|
||||
<td headers="th312">
|
||||
<input type="checkbox" id="bo_use_signature" name="bo_use_signature" value="1" <?=$board['bo_use_signature']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_signature" name="chk_use_signature" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_signature" name="chk_use_signature" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th313"><label for="bo_use_ip_view">IP 보이기 사용</label></th>
|
||||
<td headers="th313">
|
||||
<input type="checkbox" id="bo_use_ip_view" name="bo_use_ip_view" value="1" <?=$board['bo_use_ip_view']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_ip_view" name="chk_use_ip_view" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_ip_view" name="chk_use_ip_view" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th314"><label for="bo_use_trackback">트랙백 사용</label></th>
|
||||
<td headers="th314">
|
||||
<input type="checkbox" id="bo_use_trackback" name="bo_use_trackback" value="1" <?=$board['bo_use_trackback']?'checked':'';?>>사용 (트랙백쓰기 권한 보다 우선함)
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_trackback" name="chk_use_trackback" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_trackback" name="chk_use_trackback" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th315"><label for="bo_use_list_content">목록에서 내용 사용</label></th>
|
||||
<td headers="th315">
|
||||
<input type="checkbox" id="bo_use_list_content" name="bo_use_list_content" value="1" <?=$board['bo_use_list_content']?'checked':'';?>>사용 (사용시 속도 느려짐)
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_list_content" name="chk_use_list_content" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_list_content" name="chk_use_list_content" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th316"><label for="bo_use_list_view">전체목록보이기 사용</label></th>
|
||||
<td headers="th316">
|
||||
<input type="checkbox" id="bo_use_list_view" name="bo_use_list_view" value="1" <?=$board['bo_use_list_view']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_list_view" name="chk_use_list_view" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_list_view" name="chk_use_list_view" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th317"><label for="bo_use_email">메일발송 사용</label></th>
|
||||
<td headers="th317">
|
||||
<input type="checkbox" id="bo_use_email" name="bo_use_email" value="1" <?=$board['bo_use_email']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_email" name="chk_use_email" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_email" name="chk_use_email" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th318"><label for="bo_upload_count">파일 업로드 갯수</label></th>
|
||||
<td headers="th318">
|
||||
<input type="text" id="bo_upload_count" name="bo_upload_count" required value="<?=$board['bo_upload_count']?>"> 게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 이면 제한 없음)
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_upload_count" name="chk_upload_count" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_upload_count" name="chk_upload_count" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
@ -369,7 +369,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th319">
|
||||
<?=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']?>'> bytes 이하
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_upload_size" name="chk_upload_size" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_upload_size" name="chk_upload_size" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -377,7 +377,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th320">
|
||||
<?=help('글 입력시 최소 글자수를 설정. 0을 입력하면 검사하지 않음')?>
|
||||
<input type="text" id="bo_write_min" name="bo_write_min" numeric value="<?=$board['bo_write_min']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_write_min" name="chk_write_min" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_write_min" name="chk_write_min" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -385,7 +385,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th321">
|
||||
<?=help('글 입력시 최대 글자수를 설정. 0을 입력하면 검사하지 않음')?>
|
||||
<input type="text" id="bo_write_max" name="bo_write_max" numeric value="<?=$board['bo_write_max']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_write_max" name="chk_write_max" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_write_max" name="chk_write_max" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -393,7 +393,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th322">
|
||||
<?=help('코멘트 입력시 최소 글자수, 최대 글자수를 설정. 0을 입력하면 검사하지 않음')?>
|
||||
<input type="text" id="bo_comment_min" name="bo_comment_min" numeric value="<?=$board['bo_comment_min']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_comment_min" name="chk_comment_min" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_comment_min" name="chk_comment_min" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -401,14 +401,14 @@ include_once ('./admin.head.php');
|
||||
<td headers="th323">
|
||||
<?=help('코멘트 입력시 최소 글자수, 최대 글자수를 설정. 0을 입력하면 검사하지 않음')?>
|
||||
<input type="text" id="bo_comment_max" name="bo_comment_max" numeric value="<?=$board['bo_comment_max']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_comment_max" name="chk_comment_max" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_comment_max" name="chk_comment_max" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th324"><label for="bo_use_search">전체 검색 사용</label></th>
|
||||
<td headers="th324">
|
||||
<input type="checkbox" id="bo_use_search" name="bo_use_search" value="1" <?=$board['bo_use_search']?'checked':'';?>>사용
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_use_search" name="chk_use_search" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_use_search" name="chk_use_search" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -416,14 +416,14 @@ include_once ('./admin.head.php');
|
||||
<td headers="th325">
|
||||
<?=help('숫자가 낮은 게시판 부터 검색')?>
|
||||
<input type="text" id="bo_order_search" name="bo_order_search" value='<?=$board['bo_order_search']?>'>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_order_search" name="chk_order_search" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_order_search" name="chk_order_search" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="adm_bo_design">
|
||||
<section id="bo_design">
|
||||
<h3><span></span>디자인/양식</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -438,7 +438,7 @@ include_once ('./admin.head.php');
|
||||
}
|
||||
?></select>
|
||||
<script>document.fboardform.bo_skin.value="<?=$board['bo_skin']?>";</script>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_skin" name="chk_skin" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_skin" name="chk_skin" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -465,35 +465,35 @@ include_once ('./admin.head.php');
|
||||
<th scope="row" id="th403"><label for="bo_include_head">상단 파일 경로</label></th>
|
||||
<td headers="th403">
|
||||
<input type="text" id="bo_include_head" name="bo_include_head" value="<?=$board['bo_include_head']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_include_head" name="chk_include_head" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_include_head" name="chk_include_head" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th404"><label for="bo_include_tail">하단 파일 경로</label></th>
|
||||
<td headers="th404">
|
||||
<input type="text" id="bo_include_tail" name="bo_include_tail" value="<?=$board['bo_include_tail']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_include_tail" name="chk_include_tail" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_include_tail" name="chk_include_tail" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th405"><label for="tx_bo_content_head">상단 내용</label></th>
|
||||
<td headers="th405">
|
||||
<?=cheditor2('bo_content_head', $board['bo_content_head']);?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_content_head" name="chk_content_head" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_content_head" name="chk_content_head" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th406"><label for="tx_bo_content_tail">하단 내용</label></th>
|
||||
<td headers="th406">
|
||||
<?=cheditor2('bo_content_tail', $board['bo_content_tail']);?>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_content_tail" name="chk_content_tail" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_content_tail" name="chk_content_tail" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th407"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
|
||||
<td headers="th407">
|
||||
<textarea id="bo_insert_content" name="bo_insert_content" rows="5"><?=$board['bo_insert_content'] ?></textarea>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_insert_content" name="chk_insert_content" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_insert_content" name="chk_insert_content" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -501,14 +501,14 @@ include_once ('./admin.head.php');
|
||||
<td headers="th408">
|
||||
<?=help('목록에서의 제목 글자수. 잘리는 글은 … 로 표시')?>
|
||||
<input type="text" id="bo_subject_len" name="bo_subject_len" required value="<?=$board[bo_subject_len]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_subject_len" name="chk_subject_len" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_subject_len" name="chk_subject_len" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th409"><label for="bo_page_rows">페이지당 목록 수</label></th>
|
||||
<td headers="th409">
|
||||
<input type="text" id="bo_page_rows" name="bo_page_rows" required value="<?=$board[bo_page_rows]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_page_rows" name="chk_page_rows" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_page_rows" name="chk_page_rows" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -516,7 +516,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th410">
|
||||
<?=help('갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여줄것인지를 설정하는 값')?>
|
||||
<input type="text" id="bo_gallery_cols" name="bo_gallery_cols" required value="<?=$board[bo_gallery_cols]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_gallery_cols" name="chk_gallery_cols" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_gallery_cols" name="chk_gallery_cols" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -524,7 +524,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th411">
|
||||
<?=help('100 이하는 %')?>
|
||||
<input type="text" id="bo_table_width" name="bo_table_width" required value="<?=$board[bo_table_width]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_table_width" name="chk_table_width" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_table_width" name="chk_table_width" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -532,7 +532,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th412">
|
||||
<?=help('게시판에서 출력되는 이미지의 폭 크기')?>
|
||||
<input type="text" id="bo_image_width" name="bo_image_width" required value="<?=$board['bo_image_width']?>"> 픽셀
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_image_width" name="chk_image_width" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_image_width" name="chk_image_width" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -540,7 +540,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th413">
|
||||
<?=help('글 입력후 new 이미지를 출력하는 시간')?>
|
||||
<input type="text" id="bo_new" name="bo_new" required value="<?=$board[bo_new]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_new" name="chk_new" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_new" name="chk_new" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -548,7 +548,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th414">
|
||||
<?=help('조회수가 설정값 이상이면 hot 이미지 출력')?>
|
||||
<input type="text" id="bo_hot" name="bo_hot" required value="<?=$board[bo_hot]?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_hot" name="chk_hot" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_hot" name="chk_hot" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -559,7 +559,7 @@ include_once ('./admin.head.php');
|
||||
<option value='0'>나중에 쓴 답변 위로 달기
|
||||
</select>
|
||||
<script> document.fboardform.bo_reply_order.value = "<?=$board['bo_reply_order']?>"; </script>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_reply_order" name="chk_reply_order" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_reply_order" name="chk_reply_order" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -588,7 +588,7 @@ include_once ('./admin.head.php');
|
||||
<option value="ca_name desc, wr_num, wr_reply">ca_name desc : 분류명 오름차순
|
||||
</select>
|
||||
<script> document.fboardform.bo_sort_field.value = "<?=$board['bo_sort_field']?>"; </script>
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_sort_field" name="chk_sort_field" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_sort_field" name="chk_sort_field" value="1"></span>
|
||||
</td>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -603,7 +603,7 @@ include_once ('./admin.head.php');
|
||||
</tr>
|
||||
<?*/?>
|
||||
|
||||
<section id="adm_bo_point">
|
||||
<section id="bo_point">
|
||||
<h3><span></span>포인트 설정</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -618,35 +618,35 @@ include_once ('./admin.head.php');
|
||||
<th scope="row" id="th502"><label for="bo_read_point">글읽기 포인트</label></th>
|
||||
<td headers="th502">
|
||||
<input type="text" id="bo_read_point" name="bo_read_point" required value="<?=$board['bo_read_point']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_read_point" name="chk_read_point" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_read_point" name="chk_read_point" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th503"><label for="bo_write_point">글쓰기 포인트</label></th>
|
||||
<td headers="th503">
|
||||
<input type="text" id="bo_write_point" name="bo_write_point" required value="<?=$board['bo_write_point']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_write_point" name="chk_write_point" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_write_point" name="chk_write_point" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th504"><label for="bo_comment_point">코멘트쓰기 포인트</label></th>
|
||||
<td headers="th504">
|
||||
<input type="text" id="bo_comment_point" name="bo_comment_point" required value="<?=$board['bo_comment_point']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_comment_point" name="chk_comment_point" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_comment_point" name="chk_comment_point" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" id="th505"><label for="bo_download_point">다운로드 포인트</label></th>
|
||||
<td headers="th505">
|
||||
<input type="text" id="bo_download_point" name="bo_download_point" required value="<?=$board['bo_download_point']?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_download_point" name="chk_download_point" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_download_point" name="chk_download_point" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="adm_bo_extra">
|
||||
<section id="bo_extra">
|
||||
<h3><span></span>여분필드 설정</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
@ -659,7 +659,7 @@ include_once ('./admin.head.php');
|
||||
<td headers="th6<?=$i?>">
|
||||
<label for="bo_<?=$i?>">여분필드<?=$i?> 내용</label>
|
||||
<input type="text" id="bo_<?=$i?>" name="bo_<?=$i?>" value="<?=get_text($board['bo_'.$i])?>">
|
||||
<span class="adm_group_setting"><input type="checkbox" id="chk_<?=$i?>" name="chk_<?=$i?>" value="1"></span>
|
||||
<span class="group_setting"><input type="checkbox" id="chk_<?=$i?>" name="chk_<?=$i?>" value="1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -42,9 +42,9 @@ if (!$sst) {
|
||||
$sql_order = " order by $sst $sod ";
|
||||
|
||||
$sql = " select count(*) as cnt
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order ";
|
||||
{$sql_common}
|
||||
{$sql_search}
|
||||
{$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
@ -54,166 +54,157 @@ if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_order
|
||||
limit $from_record, $rows ";
|
||||
{$sql_common}
|
||||
{$sql_search}
|
||||
{$sql_order}
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음</a>';
|
||||
|
||||
$g4['title'] = "게시판관리";
|
||||
$g4['title'] = '게시판관리';
|
||||
include_once('./admin.head.php');
|
||||
|
||||
$colspan = 13;
|
||||
$colspan = 8;
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
var list_update_php = 'board_list_update.php';
|
||||
var list_delete_php = 'board_list_delete.php';
|
||||
</script>
|
||||
|
||||
<table width=100% cellpadding=3 cellspacing=1>
|
||||
<form name=fsearch method=get>
|
||||
<tr>
|
||||
<td width=50% align=left><?=$listall?> (게시판수 : <?=number_format($total_count)?>개)</td>
|
||||
<td width=50% align=right>
|
||||
<select name=sfl>
|
||||
<option value='bo_table'>TABLE</option>
|
||||
<option value='bo_subject'>제목</option>
|
||||
<option value='a.gr_id'>그룹ID</option>
|
||||
</select>
|
||||
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
|
||||
<input type=image src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<div id="bo_search">
|
||||
<span><?=$listall?> 게시판수 : <?=number_format($total_count)?>개</span>
|
||||
<form id="fsearch" name="fsearch" method="get">
|
||||
<select id="sfl" name="sfl">
|
||||
<option value="bo_table">TABLE</option>
|
||||
<option value="bo_subject">제목</option>
|
||||
<option value="a.gr_id">그룹ID</option>
|
||||
</select>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx?>">
|
||||
<input type="submit" value="검색">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form name=fboardlist method=post>
|
||||
<input type=hidden name=sst value="<?=$sst?>">
|
||||
<input type=hidden name=sod value="<?=$sod?>">
|
||||
<input type=hidden name=sfl value="<?=$sfl?>">
|
||||
<input type=hidden name=stx value="<?=$stx?>">
|
||||
<input type=hidden name=page value="<?=$page?>">
|
||||
<input type=hidden name=token value="<?=$token?>">
|
||||
<table width=100% cellpadding=0 cellspacing=1>
|
||||
<colgroup width=30>
|
||||
<colgroup width=>
|
||||
<colgroup width=100>
|
||||
<colgroup width=100>
|
||||
<colgroup width=55>
|
||||
<colgroup width=55>
|
||||
<colgroup width=55>
|
||||
<colgroup width=55>
|
||||
<colgroup width=35>
|
||||
<colgroup width=35>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
|
||||
<tr class='bgcol1 bold col1 ht center'>
|
||||
<td rowspan=2><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
|
||||
<td rowspan=2><?=subject_sort_link('bo_table')?>TABLE</a></td>
|
||||
<td colspan=2><?=subject_sort_link('bo_subject')?>제목</a></td>
|
||||
<td rowspan=2 title="글읽기 포인트"><?=subject_sort_link('bo_read_point')?>읽기<br>포인트</a></td>
|
||||
<td rowspan=2 title="글쓰기 포인트"><?=subject_sort_link('bo_write_point')?>쓰기<br>포인트</a></td>
|
||||
<td rowspan=2 title="코멘트쓰기 포인트"><?=subject_sort_link('bo_comment_point')?>코멘트<br>포인트</a></td>
|
||||
<td rowspan=2 title="다운로드 포인트"><?=subject_sort_link('bo_download_point')?>다운<br>포인트</a></td>
|
||||
<td rowspan=2 title="검색사용"><?=subject_sort_link('bo_use_search')?>검색<br>사용</a></td>
|
||||
<td rowspan=2 title="검색순서"><?=subject_sort_link('bo_order_search')?>검색<br>순서</a></td>
|
||||
<td rowspan=2><a href="./board_form.php"><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0 title='생성'></a></td>
|
||||
<button id="bo_add">게시판 생성</button>
|
||||
|
||||
<form id="fboardlist" name="fboardlist" method="post">
|
||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table>
|
||||
<caption>
|
||||
각 게시판의 검색사용을 체크하시면 전체 검색 시 결과에 반영됩니다.<br>
|
||||
검색순서는 전체 검색 시 결과의 우선 순위를 설정합니다.<br>
|
||||
여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 선택기능을 이용하세요.
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" id="th_group"><?=subject_sort_link('a.gr_id')?>그룹</a></th>
|
||||
<th scope="col" id="th_table"><?=subject_sort_link('bo_table')?>TABLE</a></th>
|
||||
<th scope="col" id="th_skin"><?=subject_sort_link('bo_skin', '', 'desc')?>스킨</a></th>
|
||||
<th scope="col" id="th_subject"><?=subject_sort_link('bo_subject')?>제목</a></th>
|
||||
<th scope="col" id="th_check"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
|
||||
<th scope="col" id="th_point">포인트</th>
|
||||
<th scope="col" id="th_search">검색</th>
|
||||
<th scope="col" id="th_control">관리</th>
|
||||
</tr>
|
||||
<tr class='bgcol1 bold col1 ht center'>
|
||||
<td><?=subject_sort_link('a.gr_id')?>그룹</a></td>
|
||||
<td><?=subject_sort_link('bo_skin', '', 'desc')?>스킨</a></td>
|
||||
</tr>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
// 스킨디렉토리
|
||||
$skin_options = "";
|
||||
$skin_options = '';
|
||||
$arr = get_skin_dir('board');
|
||||
for ($k=0; $k<count($arr); $k++)
|
||||
{
|
||||
$option = $arr[$k];
|
||||
if (strlen($option) > 10)
|
||||
$option = substr($arr[$k], 0, 18) . "…";
|
||||
$option = substr($arr[$k], 0, 18) . '…';
|
||||
|
||||
$skin_options .= "<option value='{$arr[$k]}'>$option</option>";
|
||||
$skin_options .= '<option value="'.$arr[$k].'">'.$option.'</option>';
|
||||
}
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$s_upd = "<a href='./board_form.php?w=u&bo_table={$row['bo_table']}&$qstr'><img src='img/icon_modify.gif' border=0 title='수정'></a>";
|
||||
$s_upd = '<a href="./board_form.php?w=u&bo_table='.$row['bo_table'].'&'.$qstr.'">수정</a>';
|
||||
$s_del = "";
|
||||
if ($is_admin == "super") {
|
||||
//$s_del = "<a href=\"javascript:del('./board_delete.php?bo_table=$row[bo_table]&$qstr');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
|
||||
$s_del = "<a href=\"javascript:post_delete('board_delete.php', '{$row['bo_table']}');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
|
||||
if ($is_admin == 'super') {
|
||||
//$s_del = '<a href="javascript:del(\'./board_delete.php?bo_table='.$row[bo_table].'&'.$qstr.'\');">삭제</a>';
|
||||
$s_del = '<a href="javascript:post_delete(\'board_delete.php\', \''.$row['bo_table'].'\');">삭제</a>';
|
||||
}
|
||||
$s_copy = "<a href=\"javascript:board_copy('{$row['bo_table']}');\"><img src='img/icon_copy.gif' border=0 title='복사'></a>";
|
||||
$s_copy = '<a href="javascript:board_copy(\''.$row['bo_table'].'\');">복사</a>';
|
||||
?>
|
||||
|
||||
/*
|
||||
// 스킨디렉토리
|
||||
$skin_options = "";
|
||||
$arr = get_skin_dir("board");
|
||||
for ($k=0; $k<count($arr); $k++)
|
||||
{
|
||||
$option = $arr[$k];
|
||||
if (strlen($option) > 10)
|
||||
$option = substr($arr[$k], 0, 18) . "…";
|
||||
|
||||
$skin_options .= "<option value='$arr[$k]'";
|
||||
if ($arr[$k] == $row[bo_skin])
|
||||
$skin_options .= " selected";
|
||||
$skin_options .= ">$option</option>";
|
||||
}
|
||||
*/
|
||||
|
||||
$list = $i % 2;
|
||||
echo "<input type=hidden name=board_table[$i] value='{$row['bo_table']}'>";
|
||||
echo "<tr class='list$list col1 ht center'>";
|
||||
echo "<td rowspan=2 height=25><input type=checkbox name=chk[] value='$i'></td>";
|
||||
echo "<td rowspan=2><a href='{$g4['bbs_path']}/board.php?bo_table={$row['bo_table']}'><b>{$row['bo_table']}</b></a></td>";
|
||||
echo "<td colspan=2 align=left height=25><input type=text class=ed name=bo_subject[$i] value='".get_text($row['bo_subject'])."' style='width:99%'></td>";
|
||||
echo "<td rowspan=2 title='읽기 포인트'><input type=text class=ed name=bo_read_point[$i] value='{$row['bo_read_point']}' style='width:33px;'></td>";
|
||||
echo "<td rowspan=2 title='쓰기 포인트'><input type=text class=ed name=bo_write_point[$i] value='{$row['bo_write_point']}' style='width:33px;'></td>";
|
||||
echo "<td rowspan=2 title='속글쓰기 포인트'><input type=text class=ed name=bo_comment_point[$i] value='{$row['bo_comment_point']}' style='width:33px;'></td>";
|
||||
echo "<td rowspan=2 title='다운로드 포인트'><input type=text class=ed name=bo_download_point[$i] value='{$row['bo_download_point']}' style='width:33px;'></td>";
|
||||
echo "<td rowspan=2 title='검색사용'><input type=checkbox name=bo_use_search[$i] ".($row['bo_use_search']?'checked':'')." value='1'></td>";
|
||||
echo "<td rowspan=2 title='검색순서'><input type=text class=ed name=bo_order_search[$i] value='{$row['bo_order_search']}' size=2></td>";
|
||||
echo "<td rowspan=2>$s_upd $s_del $s_copy</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr class='list$list col1 ht center'>";
|
||||
|
||||
if ($is_admin == "super")
|
||||
echo "<td align=left>".get_group_select("gr_id[$i]", $row['gr_id'])."</td>";
|
||||
else
|
||||
echo "<td align=center><input type=hidden name='gr_id[$i]' value='{$row['gr_id']}'>{$row['gr_subject']}</td>";
|
||||
|
||||
echo "<td align=left><select id=bo_skin_$i name=bo_skin[$i]>$skin_options</select></td>";
|
||||
echo "</tr>\n";
|
||||
echo "<script type='text/javascript'>document.getElementById('bo_skin_$i').value='{$row['bo_skin']}';</script>";
|
||||
<tr>
|
||||
<td headers="th_group" class="td_group">
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<label for="gr_id_<?=$i?>">그룹선택</label>
|
||||
<?=get_group_select('gr_id[$i]', $row['gr_id'])?>
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>"><?=$row['gr_subject']?>
|
||||
<?}?>
|
||||
</td>
|
||||
<td headers="th_table" class="td_table"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row['bo_table']?>"><?=$row['bo_table']?></a></td>
|
||||
<td headers="th_skin" class="td_skin">
|
||||
<label for="bo_skin_<?=$i?>">스킨선택</label>
|
||||
<select id="bo_skin_<?=$i?>" name="bo_skin[<?=$i?>]">
|
||||
<?=$skin_options?>
|
||||
</select>
|
||||
<script>document.getElementById("bo_skin_<?=$i?>").value="<?=$row['bo_skin']?>";</script>
|
||||
</td>
|
||||
<td headers="th_subject" class="td_subject"><input type="text" id="bo_subject[<?=$i?>]" name="bo_subject[<?=$i?>]" value="<?=get_text($row['bo_subject'])?>"></td>
|
||||
<td headers="th_check" class="td_check">
|
||||
<input type="hidden" id="board_table" name="board_table[<?=$i?>]" value="<?=$row['bo_table']?>">
|
||||
<label for="chk_<?=$i?>">게시판선택</label>
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>">
|
||||
</td>
|
||||
<td headers="th_point" class="td_point">
|
||||
<label for="bo_read_point_<?=$i?>">읽기포인트</label>
|
||||
<input type="text" id="bo_read_point_<?=$i?>" name="bo_read_point[<?=$i?>]" value="<?=$row['bo_read_point']?>">
|
||||
<label for="bo_write_point_<?=$i?>">쓰기포인트</label>
|
||||
<input type="text" id="bo_write_point_<?=$i?>" name="bo_write_point[<?=$i?>]" value="<?=$row['bo_write_point']?>">
|
||||
<label for="bo_comment_point_<?=$i?>">댓글포인트</label>
|
||||
<input type="text" id="bo_comment_point_<?=$i?>" name="bo_comment_point[<?=$i?>]" value="<?=$row['bo_comment_point']?>">
|
||||
<label for="bo_download_point_<?=$i?>">다운포인트</label>
|
||||
<input type="text" id="bo_download_point_<?=$i?>" name="bo_download_point[<?=$i?>]" value="<?=$row['bo_download_point']?>">
|
||||
</td>
|
||||
<td headers="th_search" class="td_search">
|
||||
<label for="bo_use_search_<?=$i?>">검색사용</label>
|
||||
<input type="checkbox" id="bo_use_search_<?=$i?>" name="bo_use_search[<?=$i?>]" <?=$row['bo_use_search']?"checked":""?> value="1">
|
||||
<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 headers="th_control" class="td_control"><?=$s_upd?> <?=$s_del?> <?=$s_copy?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "</table>";
|
||||
<div class="btn_list">
|
||||
<input type="button" value="선택수정" onclick="btn_check(this.form, 'update')">
|
||||
<?if ($is_admin == 'super') {?><input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')"><?}?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
echo "<table width=100% cellpadding=3 cellspacing=1>";
|
||||
echo "<tr><td width=70%>";
|
||||
echo "<input type=button class='btn1' value='선택수정' onclick=\"btn_check(this.form, 'update')\"> ";
|
||||
|
||||
if ($is_admin == "super")
|
||||
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
|
||||
|
||||
echo "</td>";
|
||||
echo "<td width=30% align=right>$pagelist</td></tr></table>\n";
|
||||
?>
|
||||
<div class="paginate">
|
||||
<?=$pagelist?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
echo "<script>document.fsearch.sfl.value = '$sfl';</script>";
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||
?>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
function board_copy(bo_table) {
|
||||
window.open("./board_copy.php?bo_table="+bo_table, "BoardCopy", "left=10,top=10,width=500,height=200");
|
||||
}
|
||||
@ -227,20 +218,20 @@ function post_delete(action_url, val)
|
||||
|
||||
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
|
||||
f.bo_table.value = val;
|
||||
f.action = action_url;
|
||||
f.action = action_url;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name='fpost' method='post'>
|
||||
<input type='hidden' name='sst' value='<?=$sst?>'>
|
||||
<input type='hidden' name='sod' value='<?=$sod?>'>
|
||||
<input type='hidden' name='sfl' value='<?=$sfl?>'>
|
||||
<input type='hidden' name='stx' value='<?=$stx?>'>
|
||||
<input type='hidden' name='page' value='<?=$page?>'>
|
||||
<input type='hidden' name='token' value='<?=$token?>'>
|
||||
<input type='hidden' name='bo_table'>
|
||||
<form id="fpost" name="fpost" method='post'>
|
||||
<input type="hidden" name="sst" value='<?=$sst?>'>
|
||||
<input type="hidden" name="sod" value='<?=$sod?>'>
|
||||
<input type="hidden" name="sfl" value='<?=$sfl?>'>
|
||||
<input type="hidden" name="stx" value='<?=$stx?>'>
|
||||
<input type="hidden" name="page" value='<?=$page?>'>
|
||||
<input type="hidden" name="token" value='<?=$token?>'>
|
||||
<input type="hidden" name="bo_table">
|
||||
</form>
|
||||
|
||||
<?
|
||||
|
||||
@ -403,9 +403,6 @@ include_once ('./admin.head.php');
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$( document ).tooltip();
|
||||
});
|
||||
function fconfigform_submit(f)
|
||||
{
|
||||
f.action = "./config_form_update.php";
|
||||
|
||||
Reference in New Issue
Block a user