include_once('./_common.php'); if ($is_guest) alert_close('회원만 조회하실 수 있습니다.'); $g4['title'] = $member['mb_nick'].' 님의 포인트 내역'; include_once(G4_PATH.'/head.sub.php'); $list = array(); $sql_common = " from {$g4['point_table']} where mb_id = '".mysql_escape_string($member['mb_id'])."' "; $sql_order = " order by po_id desc "; $sql = " select count(*) as cnt {$sql_common} "; $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 po_point {$sql_common} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); $sum_point1 = $sum_point2 = 0; for($i=0; $row=sql_fetch_array($result); $i++) { if($row['po_point'] >= 0) { $sum_point1 += $row['po_point']; } else { $sum_point2 += $row['po_point']; } } ?>
| 일시 | 내용 | 지급포인트 | 사용포인트 | |
|---|---|---|---|---|
| 소계 | =number_format($sum_point1)?> | =number_format($sum_point2)?> | ||
| 보유포인트 | =number_format($member['mb_point'])?> | |||
| =$row['po_datetime']?> | =$row['po_content']?> | =$point1?> | =$point2?> | |
| 자료가 없습니다. | ||||