주문 내역 확인 부분 출력되도록 수정
This commit is contained in:
@ -1,12 +1,27 @@
|
||||
<!-- 주문 내역 목록 시작 { -->
|
||||
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
|
||||
<?php
|
||||
function get_item_name($od_id) {
|
||||
global $g5;
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = {$od_id}
|
||||
group by it_id
|
||||
order by ct_id ";
|
||||
|
||||
//$result = sql_query($sql);
|
||||
$result = sql_fetch($sql);
|
||||
|
||||
return $result['it_name'];
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
<!--
|
||||
@ -48,13 +63,14 @@
|
||||
$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_name"><?php echo get_item_name($row['od_id']); ?></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>
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user