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

101 lines
3.4 KiB
PHP

<?
//로그인확인
include_once $_SERVER[DOCUMENT_ROOT] . "/module/member/auth.php";
//DB연결
$dblink = SetConn($_conf_db["main_db"]);
$arrList = getWishList($_SESSION[$_SITE["DOMAIN"]]["MEMBER"]["ID"],$scale,$_REQUEST[offset]);
//_DEBUG($arrList);
//DB해제
SetDisConn($dblink);
?>
<div class="sub-title">
<h2>관심상품</h2>
<div class="path">
Home <span class="arrow">&gt;</span> 마이페이지 <span class="arrow">&gt;</span> 관심상품
</div>
</div>
<div class="real-cont">
<!--// content -->
<div class="shop-table">
<table>
<colgroup>
<col width="*">
<col width="120">
<col width="100">
<col width="100">
</colgroup>
<thead>
<tr>
<th scope="col">상품명</th>
<th scope="col">판매가격</th>
<th scope="col">적립금</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
if($arrList["total"]>0){
for($i=0;$i<$arrList["total"];$i++){
//적립금계산
if($arrList["list"][$i][point_unit]=="P"){
$thisPoint = ($arrList["list"][$i][point]*$arrList["list"][$i][price])/100;
}else{
$thisPoint = $arrList["list"][$i][point];
}
//추가금액 계산
$optionPrice = $arrOpt1[$i][1] + $arrOpt2[$i][1] + $arrOpt3[$i][1] + $arrOpt4[$i][1] + $arrOpt5[$i][1];
//합계금액 계산
$totalPrice += $arrList["list"][$i][price];
?>
<tr>
<td class="space-left">
<div class="prod-info">
<div class="img"><a href="<?=$_SERVER[PHP_SELF]?>?goPage=GoodDetail&g_code=<?=$arrList["list"][$i][g_code]?>"><img src="/uploaded/shop_good/<?=$arrList["list"][$i][idx]?>/<?=$arrList["list"][$i][p_image]?>" width="70" height="70" class="img_border" /></a></div>
<div class="info">
<p class="tit"><a href="/shop.php?goPage=GoodDetail&g_code=<?=$arrList["list"][$i][g_code]?>"><?=stripslashes($arrList["list"][$i][g_name])?></a></p>
<!-- <p class="opt">[옵션]사이즈:PREE ,컬러:BLACK</p> -->
</div>
</div>
</td>
<td>
<p class="price"><?=number_format($arrList["list"][$i][price])?>원</p>
</td>
<td><?=$arrList["list"][$i][point_unit]=="P"?number_format(($arrList["list"][$i][point]*$arrList["list"][$i][price])/100):number_format($arrList["list"][$i][point])?></td>
<td class="bt">
<p><a href="javascript:addCart('<?=$arrList['list'][$i]['g_idx']?>', '1');"><img src="../images/shop/bt_cart.gif" alt="장바구니"></a></p>
<p><a href="javascript:deleteWish('<?=$arrList["list"][$i][c_idx]?>');"><img src="../images/shop/bt_del.gif" alt="삭제하기"></a></p>
</td>
</tr>
<?
}
}else{
?>
<tr height="100">
<td colspan="9" align="center">찜한 상품이 없습니다.</td>
</tr>
<?}?>
</tbody>
</table>
</div>
<div class="paginate">
<?=pageNavigation($arrList['total'],$scale,$pagescale,$offset,"")?>
</div>
<div class="order-desc">
<ul>
<li>· 상품이미지 및 상품명을 클릭하시면 해당 상품 페이지로 이동합니다.</li>
<li>· 품절/판매중지/절판 상품인 경우에는 한번에 장바구니에 담을 수 없습니다.</li>
</ul>
</div>
<!-- 본문내용 END -->
</div>
</div>