#252 주문상세 페이지에서도 요청정보 노출되도록 함
This commit is contained in:
@ -24,78 +24,11 @@ switch($rq['rq_type']) {
|
||||
break;
|
||||
}
|
||||
|
||||
$item = explode(',', $rq['ct_id']);
|
||||
if(!count($item))
|
||||
alert($type.'요청된 상품이 없습니다.');
|
||||
|
||||
$g4['title'] = $type.'요청 상세내용';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
// 요청상품
|
||||
$sql = " select * from {$g4['shop_order_table']} where od_id = '{$rq['od_id']}' ";
|
||||
$od = sql_fetch($sql);
|
||||
|
||||
$sql = " select ct_id, it_id, it_name, ct_option, ct_price, ct_qty, io_type, io_price, ct_status
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$od['uq_id']}'
|
||||
order by ct_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<section>
|
||||
<h2><?php echo $type; ?>요청 상품</h2>
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$excp = 0;
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(!in_array($row['ct_id'], $item)) {
|
||||
$excp++;
|
||||
continue;
|
||||
}
|
||||
|
||||
$image = get_it_image($row['it_id'], 50, 50);
|
||||
|
||||
if($row['io_type']) {
|
||||
$price = $row['io_price'];
|
||||
$tot_price = $row['io_price'] * $row['ct_qty'];
|
||||
} else {
|
||||
$price = $row['ct_price'] + $row['io_price'];
|
||||
$tot_price = ($row['ct_price'] + $row['io_price']) * $row['ct_qty'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="./itemform.php?w=u&it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo stripslashes($row['it_name']); ?></a></td>
|
||||
<td><?php echo $row['ct_option']; ?></td>
|
||||
<td><?php echo number_format($price); ?></td>
|
||||
<td><?php echo number_format($row['ct_qty']); ?></td>
|
||||
<td><?php echo number_format($tot_price); ?></td>
|
||||
<td><?php echo $row['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<div id="order_request">
|
||||
<?php
|
||||
// 요청 처리폼 include
|
||||
$disp_list = 1;
|
||||
include_once('./orderrequestform.php');
|
||||
?>
|
||||
</div>
|
||||
<?php include_once('./orderrequestview.inc.php'); ?>
|
||||
|
||||
<?php
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
|
||||
Reference in New Issue
Block a user