require_once('phplib/common.php');
require_once('phplib/template.php');
require_once('phplib/member_lib.php');
require_once('phplib/cart_lib.php');
$history_limit = 10;
check_login();
mysql_open();
$member = get_member_info();
$sql = "SELECT * FROM `coupon_history` WHERE `member_id`='" . addslashes($_SESSION['member']['id']) . "' ORDER BY `id` DESC LIMIT $history_limit";
$history = mysql_fetch_all($sql, '', null, true);
mysql_close();
html_header_nocache();
html_header('', array(), array('member.css'));
?>
html_member_navi();
?>
紅利點數儲值及查詢
- 在此輸入 Coupon 代碼可以在您的會員帳戶中存入紅利點數。
- Coupon 代碼是一組 12 位的英數字組合。
- 100 點紅利可抵 1 元現金,不限單次折抵金額,可全額折抵商品金額(不含運費及手續費)。
if(count($history) > 0) { ?>
最近 次交易紀錄
時間 |
點數 |
原由 |
foreach($history as $h) { ?>
|
0 |
preg_match("/^([^\(]+)( \((.+)\))?$/", $h['reason'], $matches);
if(isset($matches[1])) echo $matches[1];
if(isset($matches[2])) echo "{$matches[2]}";
?> |
} ?>
} ?>
html_footer();
?>