diff --git a/adm/shop_admin/ajax.orderitem.php b/adm/shop_admin/ajax.orderitem.php new file mode 100644 index 000000000..e02d85efd --- /dev/null +++ b/adm/shop_admin/ajax.orderitem.php @@ -0,0 +1,100 @@ +주문정보가 존재하지 않습니다.'); + +// 상품목록 +$sql = " select it_id, + it_name, + cp_price, + ct_notax + from {$g5['g5_shop_cart_table']} + where od_id = '$od_id' + group by it_id + order by ct_id "; +$result = sql_query($sql); +?> + +
+

주문상품 목록

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
주문 상품 목록
상품명옵션항목상태수량판매가소계쿠폰포인트배송비
+ + + + +
+ +
+
\ No newline at end of file diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php index afa9c0ab3..fae477d4b 100644 --- a/adm/shop_admin/orderlist.php +++ b/adm/shop_admin/orderlist.php @@ -33,7 +33,7 @@ if ($od_status) { $sort1 = "od_receipt_time"; $sort2 = "desc"; break; - case '배송' : // 배송중 + case '배송' : // 배송중 $sort1 = "od_invoice_time"; $sort2 = "desc"; break; @@ -292,7 +292,7 @@ $listall = '전체목록/orderinquiryview.php?od_id=&uid=">
--> - + @@ -426,10 +426,43 @@ $listall = '전체목록 $(function(){ - $("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" }); + $("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" }); + + // 주문상품보기 + $(".orderitem").on("click", function() { + var $this = $(this); + var od_id = $this.text().replace(/[^0-9]/g, ""); + + if($this.next().size()) + return false; + + $("#orderitemlist").remove(); + + $.post( + "./ajax.orderitem.php", + { od_id: od_id }, + function(data) { + $this.parent().append("
"); + $("#orderitemlist > div") + .html(data) + .append("
"); + } + ); + + return false; + }); + + // 상품리스트 닫기 + $("#orderitemlist-x").on("click", function() { + $("#orderitemlist").remove(); + }); + + $("body").on("click", function() { + $("#orderitemlist").remove(); + }); }); -function set_date(today) +function set_date(today) { if (today == "오늘") { document.getElementById("fr_date").value = ""; @@ -468,10 +501,10 @@ function forderlist_submit(f) /* switch (f.od_status.value) { - case "" : + case "" : alert("변경하실 주문상태를 선택하세요."); return false; - case '주문' : + case '주문' : default : @@ -493,9 +526,9 @@ function forderlist_submit(f) var chk = document.getElementsByName("chk[]"); - for (var i=0; i div {position:absolute;top:0;left:0} /* 주문내역 수정 */ .sodr_nonpay {color:#ff6600}