From db07567e64467570f42aabd8c928aee11f42e7ee Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 12 Mar 2014 13:17:50 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=8A=A4=ED=82=A8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/point.php | 88 +------------------------ mobile/skin/member/basic/point.skin.php | 88 +++++++++++++++++++++++++ skin/member/basic/point.skin.php | 88 +++++++++++++++++++++++++ 3 files changed, 179 insertions(+), 85 deletions(-) create mode 100644 mobile/skin/member/basic/point.skin.php create mode 100644 skin/member/basic/point.skin.php diff --git a/bbs/point.php b/bbs/point.php index f0549bb14..d9adee088 100644 --- a/bbs/point.php +++ b/bbs/point.php @@ -9,7 +9,7 @@ include_once(G5_PATH.'/head.sub.php'); $list = array(); -$sql_common = " from {$g5['point_table']} where mb_id = '".mysql_escape_string($member['mb_id'])."' "; +$sql_common = " from {$g5['point_table']} where mb_id = '".escape_trim($member['mb_id'])."' "; $sql_order = " order by po_id desc "; $sql = " select count(*) as cnt {$sql_common} "; @@ -18,92 +18,10 @@ $total_count = $row['cnt']; $rows = $config['cf_page_rows']; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 -if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) +if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 -?> -
-

+include_once($member_skin_path.'/point.skin.php'); -
- - - - - - - - - - - - - 0) { - $point1 = '+' .number_format($row['po_point']); - $sum_point1 += $row['po_point']; - } else { - $point2 = number_format($row['po_point']); - $sum_point2 += $row['po_point']; - } - - $po_content = $row['po_content']; - - $expr = ''; - if($row['po_expired'] == 1) - $expr = ' txt_expired'; - ?> - - - - - - - - '; - else { - if ($sum_point1 > 0) - $sum_point1 = "+" . number_format($sum_point1); - $sum_point2 = number_format($sum_point2); - } - ?> - - - - - - - - - - - - -
포인트 사용내역 목록
일시내용만료일지급포인트사용포인트
- - 만료 - -
자료가 없습니다.
소계
보유포인트
-
- - - -
-
- - \ No newline at end of file diff --git a/mobile/skin/member/basic/point.skin.php b/mobile/skin/member/basic/point.skin.php new file mode 100644 index 000000000..4e108db80 --- /dev/null +++ b/mobile/skin/member/basic/point.skin.php @@ -0,0 +1,88 @@ +', 0); +?> + +
+

+ +
+ + + + + + + + + + + + + 0) { + $point1 = '+' .number_format($row['po_point']); + $sum_point1 += $row['po_point']; + } else { + $point2 = number_format($row['po_point']); + $sum_point2 += $row['po_point']; + } + + $po_content = $row['po_content']; + + $expr = ''; + if($row['po_expired'] == 1) + $expr = ' txt_expired'; + ?> + + + + + + + + '; + else { + if ($sum_point1 > 0) + $sum_point1 = "+" . number_format($sum_point1); + $sum_point2 = number_format($sum_point2); + } + ?> + + + + + + + + + + + + +
포인트 사용내역 목록
일시내용만료일지급포인트사용포인트
+ + 만료 + +
자료가 없습니다.
소계
보유포인트
+
+ + + +
+
\ No newline at end of file diff --git a/skin/member/basic/point.skin.php b/skin/member/basic/point.skin.php new file mode 100644 index 000000000..4e108db80 --- /dev/null +++ b/skin/member/basic/point.skin.php @@ -0,0 +1,88 @@ +', 0); +?> + +
+

+ +
+ + + + + + + + + + + + + 0) { + $point1 = '+' .number_format($row['po_point']); + $sum_point1 += $row['po_point']; + } else { + $point2 = number_format($row['po_point']); + $sum_point2 += $row['po_point']; + } + + $po_content = $row['po_content']; + + $expr = ''; + if($row['po_expired'] == 1) + $expr = ' txt_expired'; + ?> + + + + + + + + '; + else { + if ($sum_point1 > 0) + $sum_point1 = "+" . number_format($sum_point1); + $sum_point2 = number_format($sum_point2); + } + ?> + + + + + + + + + + + + +
포인트 사용내역 목록
일시내용만료일지급포인트사용포인트
+ + 만료 + +
자료가 없습니다.
소계
보유포인트
+
+ + + +
+
\ No newline at end of file