diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php index e2f81c882..c22809014 100644 --- a/adm/shop_admin/orderlist.php +++ b/adm/shop_admin/orderlist.php @@ -2,6 +2,8 @@ $sub_menu = '400400'; include_once('./_common.php'); +include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php'); + auth_check($auth[$sub_menu], "r"); $g5['title'] = '주문내역'; @@ -23,27 +25,53 @@ if ($search != "") { if ($od_status) { $where[] = " od_status = '$od_status' "; switch ($od_status) { - case G5_OD_STATUS_ORDER : // 입금확인중 + case '주문' : $sort1 = "od_id"; $sort2 = "desc"; break; - case G5_OD_STATUS_SETTLE : // 결제완료 + case '입금' : // 결제완료 $sort1 = "od_receipt_time"; $sort2 = "desc"; break; - case G5_OD_STATUS_READY : // 배송준비중 - $sort1 = "od_receipt_time"; - $sort2 = "desc"; - break; - case G5_OD_STATUS_DELIVERY : // 배송중 + case '배송' : // 배송중 $sort1 = "od_invoice_time"; $sort2 = "desc"; break; - - } } +if ($od_status) { + $where[] = " od_status = '$od_status' "; +} + +if ($od_settle_case) { + $where[] = " od_settle_case = '$od_settle_case' "; +} + +if ($od_misu) { + $where[] = " od_misu != 0 "; +} + +if ($od_cancel_price) { + $where[] = " od_cancel_price != 0 "; +} + +if ($od_refund_price) { + $where[] = " od_refund_price != 0 "; +} + +if ($od_receipt_point) { + $where[] = " od_receipt_point != 0 "; +} + +if ($od_coupon) { + $where[] = " od_coupon != 0 "; +} + +if ($fr_date && $to_date) { + $where[] = " od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' "; +} + if ($where) { $sql_search = ' where '.implode(' and ', $where); } @@ -73,8 +101,10 @@ $result = sql_query($sql); $qstr1 = "sel_field=$sel_field&search=$search&save_search=$search"; $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page"; +/* $listall = ''; if ($search) // 검색렬일 때만 처음 버튼을 보여줌 +*/ $listall = '전체목록'; ?>