diff --git a/bbs/point.php b/bbs/point.php index a4bf3d76e..99d4bc276 100644 --- a/bbs/point.php +++ b/bbs/point.php @@ -1,7 +1,7 @@ include_once('./_common.php'); -if (!$member[mb_id]) +if (!$member[mb_id]) alert_close('회원만 조회하실 수 있습니다.'); $g4['title'] = $member[mb_nick].' 님의 포인트 내역'; @@ -20,6 +20,20 @@ $rows = $config[cf_page_rows]; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 + +// 지급포인트소계 +$sql = " select SUM(po_point) as sum_point1 + $sql_common + and po_point >= 0 "; +$row = sql_fetch($sql); +$sum_point1 = $row['sum_point1']; + +// 사용포인트소계 +$sql = " select SUM(po_point) as sum_point2 + $sql_common + and po_point < 0 "; +$row = sql_fetch($sql); +$sum_point2 = $row['sum_point2']; ?>