diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php
index e2f81c882..60b7b2371 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'] = '주문내역';
@@ -39,11 +41,17 @@ if ($od_status) {
$sort1 = "od_invoice_time";
$sort2 = "desc";
break;
-
-
}
}
+if ($od_status) {
+ $where[] = " od_status = '$od_status' ";
+}
+
+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 +81,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 = '전체목록';
?>