diff --git a/adm/shop_admin/orderlist2.php b/adm/shop_admin/orderlist2.php index 21d63d20b..87c73f274 100644 --- a/adm/shop_admin/orderlist2.php +++ b/adm/shop_admin/orderlist2.php @@ -53,18 +53,6 @@ $tot_dc_amount = 0; $tot_receiptamount = 0; $tot_receiptcancel = 0; $tot_misuamount = 0; -for ($i=0; $row=mysql_fetch_array($result); $i++) -{ - $lines[$i] = $row; - - $tot_itemcount += $row['itemcount']; - $tot_orderamount += $row['orderamount']; - $tot_ordercancel += $row['ordercancel']; - $tot_dc_amount += $row['od_dc_amount']; - $tot_receiptamount += $row['receiptamount']; - $tot_receiptcancel += $row['receiptcancel']; - $tot_misu += $row['misu']; -} //$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search"; $qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search"; @@ -140,6 +128,141 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌 상태 + + '; + } + else + { + if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0) + { + //$s_receipt_way = "무통장입금"; + $s_receipt_way = cut_str($row['od_bank_account'],8,""); + $s_br = "
"; + } + + if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0) + { + // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임 + if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0) + ; // 화면 출력하지 않음 + else + { + $s_receipt_way .= $s_br."카드"; + if ($row['od_receipt_card'] == 0) + $s_receipt_way .= '(미승인)'; + $s_br = '
'; + } + } + } + + if ($row['od_receipt_point'] > 0) + $s_receipt_way .= $s_br.'포인트'; + + $od_mobile = ''; + if($row['od_mobile']) + $od_mobile = '(M)'; + + $tot_itemcount += $row['itemcount']; + $tot_orderamount += $row['orderamount']; + $tot_ordercancel += $row['ordercancel']; + $tot_dc_amount += $row['od_dc_amount']; + $tot_receiptamount += $row['receiptamount']; + $tot_receiptcancel += $row['receiptcancel']; + $tot_misu += $row['misu']; + ?> + + + + +
+ + + + / +
+ + + 건 + + + + + + + + + 주문 수정 + 주문 삭제 + + + + '.cut_str($row2['it_name'],35).'
'; + + // 옵션항목 + $sql3 = " select * + from {$g4['shop_cart_table']} + where uq_id = '{$row['uq_id']}' + and it_id = '{$row2['it_id']}' + order by ct_num "; + $result3 = sql_query($sql3); + $rowspan = mysql_num_rows($result3) + 1; + + for($j=0;$row3=sql_fetch_array($result3);$j++) { + if($row3['io_type']) + $ct_price = $row3['io_price']; + else + $ct_price = ($row3['ct_price'] + $row3['io_price']); + + $sub_amount = $row3['ct_qty'] * $ct_price; + $sub_point = $row3['ct_qty'] * $row3['ct_point']; + ?> + + + + + + + + + + + + + + + + + + + + 자료가 한건도 없습니다.'; + ?> + 합 계 @@ -153,111 +276,6 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌 - - '; - } - else - { - if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0) - { - //$s_receipt_way = "무통장입금"; - $s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,""); - $s_br = "
"; - } - - if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0) - { - // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임 - if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0) - ; // 화면 출력하지 않음 - else - { - $s_receipt_way .= $s_br."카드"; - if ($lines[$i]['od_receipt_card'] == 0) - $s_receipt_way .= '(미승인)'; - $s_br = '
'; - } - } - } - - if ($lines[$i]['od_receipt_point'] > 0) - $s_receipt_way .= $s_br.'포인트'; - - $od_mobile = ''; - if($lines[$i]['od_mobile']) - $od_mobile = '(M)'; - ?> - - - - -
- - - - / -
- - - 건 - - - - - - - - - 주문 수정 - 주문 삭제 - - - - '.cut_str($row2['it_name'],35).'
'; - $it_name .= print_item_options($row2['it_id'], $row2['it_opt1'], $row2['it_opt2'], $row2['it_opt3'], $row2['it_opt4'], $row2['it_opt5'], $row2['it_opt6']); - - $sub_amount = $row2['ct_qty'] * $row2['ct_price']; - $sub_point = $row2['ct_qty'] * $row2['ct_point']; - ?> - - - - - - - - - - - - - 자료가 한건도 없습니다.'; - ?> -