itsolution/module/shop/mypage/point.php
2021-10-26 18:21:20 +09:00

73 lines
2.1 KiB
PHP

<?
//로그인확인
include_once $_SERVER[DOCUMENT_ROOT] . "/module/member/auth.php";
//DB연결
$dblink = SetConn($_conf_db["main_db"]);
$arrList = getPointList(
$_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["ID"],
mysql_real_escape_string($_REQUEST[type]),
$scale, mysql_real_escape_string($_REQUEST[offset])
);
$nowPoint = getNowPoint($_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["ID"]);
//DB해제
SetDisConn($dblink);
?>
<div class="sub-title">
<h2>마이페이지</h2>
</div>
<div class="real-cont">
<!--// content -->
<div class="total-price">사용가능한 적립금은 <strong><?=number_format($nowPoint[nowpoint])?>원</strong>입니다.</div>
<br>
<div class="shop-table">
<table>
<colgroup>
<col width="140">
<col width="*">
<col width="140">
<col width="140">
<col width="140">
</colgroup>
<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>
<?if($arrList['list']['total'] > 0):?>
<?for ($i=0;$i<$arrList['list']['total'];$i++) {?>
<tr>
<td class="prd_date"><?=substr($arrList['list'][$i]['wdate'],0,10)?></td>
<td class="prd_subject"><?=stripslashes($arrList['list'][$i]['contents'])?></td>
<td class="prd_point"><?=number_format($arrList['list'][$i]['minus'])?></td>
<td class="prd_point"><?=number_format($arrList['list'][$i]['plus'])?></td>
<td class="prd_point2"><?=number_format($arrList['list'][$i]['nowpoint'])?></td>
</tr>
<?}?>
<?else:?>
<tr height="100" align="center">
<td width="100%" colspan="8" >적립금 기록이 없습니다.</td>
</tr>
<?endif;?>
</tbody>
</table>
</div>
<div class="paginate">
<?=pageNavigation($arrList['total'],$scale,$pagescale,$offset,"")?>
</div>
<!-- 본문내용 END -->
</div>
</div>