리빌더 부분 추가
This commit is contained in:
76
theme/rb.basic/shop/orderinquiry.sub.php
Normal file
76
theme/rb.basic/shop/orderinquiry.sub.php
Normal file
@ -0,0 +1,76 @@
|
||||
<!-- 주문 내역 목록 시작 { -->
|
||||
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
|
||||
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문일시</th>
|
||||
<th scope="col">상품수</th>
|
||||
<th scope="col">주문금액</th>
|
||||
<!--
|
||||
<th scope="col">입금액</th>
|
||||
<th scope="col">미입금액</th>
|
||||
-->
|
||||
<th scope="col">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
|
||||
switch($row['od_status']) {
|
||||
case '주문':
|
||||
$od_status = '<span class="status_01">입금확인중</span>';
|
||||
break;
|
||||
case '입금':
|
||||
$od_status = '<span class="status_02">입금완료</span>';
|
||||
break;
|
||||
case '준비':
|
||||
$od_status = '<span class="status_03">상품준비중</span>';
|
||||
break;
|
||||
case '배송':
|
||||
$od_status = '<span class="status_04">상품배송</span>';
|
||||
break;
|
||||
case '완료':
|
||||
$od_status = '<span class="status_05">사용완료</span>';
|
||||
break;
|
||||
default:
|
||||
$od_status = '<span class="status_06">주문취소</span>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>" class="font-B"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="text-center"><?php echo substr($row['od_time'],2,14); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_numbig"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<!--
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_misu']); ?></td>
|
||||
-->
|
||||
<td class="text-center"><?php echo $od_status; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- } 주문 내역 목록 끝 -->
|
||||
Reference in New Issue
Block a user