AvocadoAmber/AvocadoEdition_Light/bbs/point.php

29 lines
832 B
PHP
Raw Normal View History

2022-09-17 20:50:50 +09:00
<?php
include_once('./_common.php');
if ($is_guest)
2024-09-19 20:57:39 +09:00
alert_close('회원만 조회하실 수 있습니다.');
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$g5['title'] = get_text($member['mb_nick']) . ' 님의 포인트 내역';
include_once(G5_PATH . '/head.sub.php');
2022-09-17 20:50:50 +09:00
$list = array();
2024-09-19 20:57:39 +09:00
$sql_common = " from {$g5['point_table']} where mb_id = '" . escape_trim($member['mb_id']) . "' ";
2022-09-17 20:50:50 +09:00
$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'];
2024-09-19 20:57:39 +09:00
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page < 1) {
$page = 1;
} // 페이지가 없으면 첫 페이지 (1 페이지)
2022-09-17 20:50:50 +09:00
$from_record = ($page - 1) * $rows; // 시작 열을 구함
2024-09-19 20:57:39 +09:00
include_once($member_skin_path . '/point.skin.php');
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
include_once(G5_PATH . '/tail.sub.php');