관리자 페이지 최근 포인트 발생내역
본문
관리자 페이지에 보면 최근 포인트 발생내역 특정 아이디만
안보이게 제외시키는방법없을까요?
답변 3
/adm/index.php 에서
if (!auth_check_menu($auth, '300100', 'r', true)) {
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
위 부분 찾으셔서
아래 처럼 추가해 보세요.~
if (!auth_check_menu($auth, '300100', 'r', true)) {
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
$sql_common .= " and a.mb_id not in ('admin') ";
/adm/index.php 에서
$sql_common = " from {$g5['point_table']} ";
$sql_search = " where (1) ";
$sql_order = " order by po_id desc ";
이 부분 찾아서
$sql_common = " from {$g5['point_table']} ";
$sql_search = " where (1) and mb_id not in ('admin') "; // admin => 제외할 아이디
$sql_order = " order by po_id desc ";
/adm/point_list.php 에서
auth_check_menu($auth, $sub_menu, 'r');
$sql_common = " from {$g5['point_table']} po";
$sql_search = " where (1) ";
위 부분 찾아서
auth_check_menu($auth, $sub_menu, 'r');
$sql_common = " from {$g5['point_table']} po";
$sql_search = " where (1) and po.mb_id not in ('admin') "; // admin => 제외할 아이디
참고로 not in ( 'aaa' , 'bbb' , 'ccc' ) 이렇게 복수개도 가능합니다.
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
찾으신 위 라인 기준으로 39줄 위에 있습니다~
!-->