포인트 리스트 스킨화
This commit is contained in:
@ -9,7 +9,7 @@ include_once(G5_PATH.'/head.sub.php');
|
|||||||
|
|
||||||
$list = array();
|
$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_order = " order by po_id desc ";
|
||||||
|
|
||||||
$sql = " select count(*) as cnt {$sql_common} ";
|
$sql = " select count(*) as cnt {$sql_common} ";
|
||||||
@ -18,92 +18,10 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
?>
|
|
||||||
|
|
||||||
<div id="point" class="new_win">
|
include_once($member_skin_path.'/point.skin.php');
|
||||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
|
||||||
|
|
||||||
<div class="tbl_head01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption>포인트 사용내역 목록</caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col">일시</th>
|
|
||||||
<th scope="col">내용</th>
|
|
||||||
<th scope="col">만료일</th>
|
|
||||||
<th scope="col">지급포인트</th>
|
|
||||||
<th scope="col">사용포인트</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
$sum_point1 = $sum_point2 = $sum_point3 = 0;
|
|
||||||
|
|
||||||
$sql = " select *
|
|
||||||
{$sql_common}
|
|
||||||
{$sql_order}
|
|
||||||
limit {$from_record}, {$rows} ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|
||||||
$point1 = $point2 = 0;
|
|
||||||
if ($row['po_point'] > 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';
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="td_datetime"><?php echo $row['po_datetime']; ?></td>
|
|
||||||
<td><?php echo $po_content; ?></td>
|
|
||||||
<td class="td_date<?php echo $expr; ?>">
|
|
||||||
<?php if ($row['po_expired'] == 1) { ?>
|
|
||||||
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
|
||||||
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date']; ?>
|
|
||||||
</td>
|
|
||||||
<td class="td_numbig"><?php echo $point1; ?></td>
|
|
||||||
<td class="td_numbig"><?php echo $point2; ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($i == 0)
|
|
||||||
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
|
|
||||||
else {
|
|
||||||
if ($sum_point1 > 0)
|
|
||||||
$sum_point1 = "+" . number_format($sum_point1);
|
|
||||||
$sum_point2 = number_format($sum_point2);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
<tfoot>
|
|
||||||
<tr>
|
|
||||||
<th scope="row" colspan="3">소계</th>
|
|
||||||
<td><?php echo $sum_point1; ?></td>
|
|
||||||
<td><?php echo $sum_point2; ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row" colspan="3">보유포인트</th>
|
|
||||||
<td colspan="2"><?php echo number_format($member['mb_point']); ?></td>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page='); ?>
|
|
||||||
|
|
||||||
<div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include_once(G5_PATH.'/tail.sub.php');
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
?>
|
?>
|
||||||
88
mobile/skin/member/basic/point.skin.php
Normal file
88
mobile/skin/member/basic/point.skin.php
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div id="point" class="new_win">
|
||||||
|
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||||
|
|
||||||
|
<div class="tbl_head01 tbl_wrap">
|
||||||
|
<table>
|
||||||
|
<caption>포인트 사용내역 목록</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">일시</th>
|
||||||
|
<th scope="col">내용</th>
|
||||||
|
<th scope="col">만료일</th>
|
||||||
|
<th scope="col">지급포인트</th>
|
||||||
|
<th scope="col">사용포인트</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$sum_point1 = $sum_point2 = $sum_point3 = 0;
|
||||||
|
|
||||||
|
$sql = " select *
|
||||||
|
{$sql_common}
|
||||||
|
{$sql_order}
|
||||||
|
limit {$from_record}, {$rows} ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
$point1 = $point2 = 0;
|
||||||
|
if ($row['po_point'] > 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';
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="td_datetime"><?php echo $row['po_datetime']; ?></td>
|
||||||
|
<td><?php echo $po_content; ?></td>
|
||||||
|
<td class="td_date<?php echo $expr; ?>">
|
||||||
|
<?php if ($row['po_expired'] == 1) { ?>
|
||||||
|
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
||||||
|
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date']; ?>
|
||||||
|
</td>
|
||||||
|
<td class="td_numbig"><?php echo $point1; ?></td>
|
||||||
|
<td class="td_numbig"><?php echo $point2; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($i == 0)
|
||||||
|
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
|
else {
|
||||||
|
if ($sum_point1 > 0)
|
||||||
|
$sum_point1 = "+" . number_format($sum_point1);
|
||||||
|
$sum_point2 = number_format($sum_point2);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" colspan="3">소계</th>
|
||||||
|
<td><?php echo $sum_point1; ?></td>
|
||||||
|
<td><?php echo $sum_point2; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" colspan="3">보유포인트</th>
|
||||||
|
<td colspan="2"><?php echo number_format($member['mb_point']); ?></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page='); ?>
|
||||||
|
|
||||||
|
<div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div>
|
||||||
|
</div>
|
||||||
88
skin/member/basic/point.skin.php
Normal file
88
skin/member/basic/point.skin.php
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div id="point" class="new_win">
|
||||||
|
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||||
|
|
||||||
|
<div class="tbl_head01 tbl_wrap">
|
||||||
|
<table>
|
||||||
|
<caption>포인트 사용내역 목록</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">일시</th>
|
||||||
|
<th scope="col">내용</th>
|
||||||
|
<th scope="col">만료일</th>
|
||||||
|
<th scope="col">지급포인트</th>
|
||||||
|
<th scope="col">사용포인트</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$sum_point1 = $sum_point2 = $sum_point3 = 0;
|
||||||
|
|
||||||
|
$sql = " select *
|
||||||
|
{$sql_common}
|
||||||
|
{$sql_order}
|
||||||
|
limit {$from_record}, {$rows} ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
$point1 = $point2 = 0;
|
||||||
|
if ($row['po_point'] > 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';
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="td_datetime"><?php echo $row['po_datetime']; ?></td>
|
||||||
|
<td><?php echo $po_content; ?></td>
|
||||||
|
<td class="td_date<?php echo $expr; ?>">
|
||||||
|
<?php if ($row['po_expired'] == 1) { ?>
|
||||||
|
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
||||||
|
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date']; ?>
|
||||||
|
</td>
|
||||||
|
<td class="td_numbig"><?php echo $point1; ?></td>
|
||||||
|
<td class="td_numbig"><?php echo $point2; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($i == 0)
|
||||||
|
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
|
else {
|
||||||
|
if ($sum_point1 > 0)
|
||||||
|
$sum_point1 = "+" . number_format($sum_point1);
|
||||||
|
$sum_point2 = number_format($sum_point2);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" colspan="3">소계</th>
|
||||||
|
<td><?php echo $sum_point1; ?></td>
|
||||||
|
<td><?php echo $sum_point2; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" colspan="3">보유포인트</th>
|
||||||
|
<td colspan="2"><?php echo number_format($member['mb_point']); ?></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page='); ?>
|
||||||
|
|
||||||
|
<div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user