$sub_menu = "300100"; include_once('./_common.php'); auth_check($auth[$sub_menu], 'r'); if (!isset($board['bo_use'])) { // 게시판 사용 필드 추가 // both : pc, mobile 둘다 사용 // pc : pc 전용 사용 // mobile : mobile 전용 사용 // none : 사용 안함 sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use` ENUM( 'both', 'pc', 'mobile', 'none' ) NOT NULL DEFAULT 'both' AFTER `bo_subject` ", false); } $sql_common = " from {$g4['board_table']} a "; $sql_search = " where (1) "; if ($is_admin != "super") { $sql_common .= " , {$g4['group_table']} b "; $sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '{$member['mb_id']}') "; } if ($stx) { $sql_search .= " and ( "; switch ($sfl) { case "bo_table" : $sql_search .= " ($sfl like '$stx%') "; break; case "a.gr_id" : $sql_search .= " ($sfl = '$stx') "; break; default : $sql_search .= " ($sfl like '%$stx%') "; break; } $sql_search .= " ) "; } if (!$sst) { $sst = "a.gr_id, a.bo_table"; $sod = "asc"; } $sql_order = " order by $sst $sod "; $sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} "; $row = sql_fetch($sql); $total_count = $row['cnt']; $rows = $config['cf_page_rows']; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 $sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); $listall = ''; if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $listall = '전체목록'; $g4['title'] = '게시판관리'; include_once('./admin.head.php'); $colspan = 8; ?>
}?>여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.