diff --git a/adm/admin.menu500.shop_2of2.php b/adm/admin.menu500.shop_2of2.php index 758cd58d9..f64a6f193 100644 --- a/adm/admin.menu500.shop_2of2.php +++ b/adm/admin.menu500.shop_2of2.php @@ -1,6 +1,6 @@ "> - + @@ -89,17 +89,17 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page"; - - - - - - + + + + + + "; } @@ -112,7 +112,7 @@ if ($i == 0)
처음'>처음 - + 건수 :  
$row[od_id]".display_amount($row[cd_amount])."$row[cd_app_no]$row[cd_app_rt]$row[cd_app_time]$row[cd_opt01]{$row['od_id']}".display_amount($row['cd_amount'])."{$row['cd_app_no']}{$row['cd_app_rt']}{$row['cd_app_time']}{$row['cd_opt01']}
- +
@@ -121,5 +121,5 @@ if ($i == 0) diff --git a/adm/shop_admin/ordercartupdate.php b/adm/shop_admin/ordercartupdate.php index 188ae964c..c1f7e7503 100644 --- a/adm/shop_admin/ordercartupdate.php +++ b/adm/shop_admin/ordercartupdate.php @@ -1,44 +1,44 @@ 포인트관리에서 수작업으로 포인트를 맞추어 주셔야 합니다.\\n\\n만약, 미수금이 발생하는 경우에는 DC에 금액을 음수로 입력하시면 해결됩니다.", $url); else goto_url($url); diff --git a/adm/shop_admin/orderdelete.php b/adm/shop_admin/orderdelete.php index be70cd0c7..454cee80b 100644 --- a/adm/shop_admin/orderdelete.php +++ b/adm/shop_admin/orderdelete.php @@ -1,28 +1,28 @@ 0) + if ($tmp_row['mb_id'] && $row['ct_point'] > 0) { - $po_point = $row[ct_point] * $row[ct_qty]; - $po_content = "$cart_title3 $tmp_row[od_id] ($row[ct_id]) $cart_title4"; - insert_point($tmp_row[mb_id], $po_point, $po_content, "@delivery", $tmp_row[mb_id], "$tmp_row[od_id],$row[on_uid],$row[ct_id]"); + $po_point = $row['ct_point'] * $row['ct_qty']; + $po_content = "$cart_title3 {$tmp_row['od_id']} ({$row['ct_id']}) $cart_title4"; + insert_point($tmp_row['mb_id'], $po_point, $po_content, "@delivery", $tmp_row['mb_id'], "{$tmp_row['od_id']},{$row['on_uid']},{$row['ct_id']}"); } - sql_query("update $g4[yc4_cart_table] set ct_point_use = '1' where ct_id = '$row[ct_id]' "); + sql_query("update {$g4['yc4_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' "); } } //------------------------------------------------------------------------------ @@ -64,14 +64,14 @@ if (!isset($order_not_point)) { //------------------------------------------------------------------------------ // 주문서 정보 //------------------------------------------------------------------------------ -$sql = " select * from $g4[yc4_order_table] where od_id = '$od_id' "; +$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' "; $od = sql_fetch($sql); -if (!$od[od_id]) { +if (!$od['od_id']) { alert($alt_msg1); } -if ($od[mb_id] == "") { - $od[mb_id] = $mb_guest; +if ($od['mb_id'] == "") { + $od['mb_id'] = $mb_guest; } //------------------------------------------------------------------------------ @@ -79,11 +79,11 @@ if ($od[mb_id] == "") { $qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search&page=$page"; // PG사를 KCP 사용하면서 테스트 상점아이디라면 -if ($default[de_card_test]) { - // 로그인 아이디 / 비번 +if ($default['de_card_test']) { + // 로그인 아이디 / 비번 // 일반 : test1234 / test12345 // 에스크로 : escrow / escrow913 - $g4[yc4_cardpg][kcp] = "http://testadmin8.kcp.co.kr"; + $g4['yc4_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr"; } $sql = " select a.ct_id, @@ -102,8 +102,8 @@ $sql = " select a.ct_id, a.it_opt5, a.it_opt6, b.it_name - from $g4[yc4_cart_table] a, $g4[yc4_item_table] b - where a.on_uid = '$od[on_uid]' + from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b + where a.on_uid = '{$od['on_uid']}' and a.it_id = b.it_id order by a.ct_id "; $result = sql_query($sql); @@ -114,9 +114,9 @@ $result = sql_query($sql); - + 희망배송일은 - () 입니다. + () 입니다. @@ -125,10 +125,10 @@ $result = sql_query($sql);
- +'> - - +'> +'> @@ -160,36 +160,36 @@ $result = sql_query($sql); ".stripslashes($row[it_name])."
"; - $it_name .= print_item_options($row[it_id], $row[it_opt1], $row[it_opt2], $row[it_opt3], $row[it_opt4], $row[it_opt5], $row[it_opt6]); + $it_name = "".stripslashes($row['it_name'])."
"; + $it_name .= print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']); - $ct_amount[소계] = $row[ct_amount] * $row[ct_qty]; - $ct_point[소계] = $row[ct_point] * $row[ct_qty]; - if ($row[ct_status]=='주문' || $row[ct_status]=='준비' || $row[ct_status]=='배송' || $row[ct_status]=='완료') - $t_ct_amount[정상] += $row[ct_amount] * $row[ct_qty]; - else if ($row[ct_status]=='취소' || $row[ct_status]=='반품' || $row[ct_status]=='품절') - $t_ct_amount[취소] += $row[ct_amount] * $row[ct_qty]; - - $image = get_it_image("$row[it_id]_s", (int)($default[de_simg_width] / $image_rate), (int)($default[de_simg_height] / $image_rate), $row[it_id]); + $ct_amount['소계'] = $row['ct_amount'] * $row['ct_qty']; + $ct_point['소계'] = $row['ct_point'] * $row['ct_qty']; + if ($row['ct_status']=='주문' || $row['ct_status']=='준비' || $row['ct_status']=='배송' || $row['ct_status']=='완료') + $t_ct_amount['정상'] += $row['ct_amount'] * $row['ct_qty']; + else if ($row['ct_status']=='취소' || $row['ct_status']=='반품' || $row['ct_status']=='품절') + $t_ct_amount['취소'] += $row['ct_amount'] * $row['ct_qty']; + + $image = get_it_image("$row[it_id]_s", (int)($default['de_simg_width'] / $image_rate), (int)($default['de_simg_height'] / $image_rate), $row['it_id']); $list = $i%2; echo " - +
$image$it_name
- $row[ct_status] - $row[ct_qty] - ".number_format($row[ct_amount])." - ".number_format($ct_amount[소계])." - ".number_format($ct_point[소계])." - ".get_yn($row[ct_point_use])." - ".get_yn($row[ct_stock_use]).""; + ".$row['ct_status']." + ".$row['ct_qty']." + ".number_format($row['ct_amount'])." + ".number_format($ct_amount['소계'])." + ".number_format($ct_point['소계'])." + ".get_yn($row['dct_point_use'])." + ".get_yn($row['ct_stock_use']).""; echo ""; - $t_ct_amount[합계] += $ct_amount[소계]; - $t_ct_point[합계] += $ct_point[소계]; + $t_ct_amount['합계'] += $ct_amount['소계']; + $t_ct_point['합계'] += $ct_point['소계']; } ?> @@ -204,10 +204,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) 품절 - 주문일시 : () - + 주문일시 : () + - 주문합계 : + 주문합계 :
@@ -219,18 +219,18 @@ for ($i=0; $row=sql_fetch_array($result); $i++) 0) +if ($od['od_receipt_point'] > 0) $s_receipt_way .= "+포인트"; ?> @@ -250,17 +250,17 @@ if ($od[od_receipt_point] > 0) - + - - - 원 - - - 원 + + + 원 + + + 원 -미수금 : +미수금 : @@ -272,8 +272,8 @@ if ($od[od_receipt_point] > 0) - - + + - - + "; echo ""; - echo ""; + echo ""; echo ""; } ?> - - + + - + @@ -317,23 +317,23 @@ if ($od[od_receipt_point] > 0) - + - + - - + + @@ -341,15 +341,15 @@ if ($od[od_receipt_point] > 0) - + @@ -357,48 +357,48 @@ if ($od[od_receipt_point] > 0) - + - + - + - + - + - + - "; } } @@ -441,17 +441,17 @@ if ($od[od_receipt_point] > 0) - + \n"; $bank_account .= ""; @@ -475,14 +475,14 @@ if ($od[od_receipt_point] > 0) echo ""; } - if ($od[od_settle_case] == '무통장') - echo ""; + if ($od['od_settle_case'] == '무통장') + echo ""; ?> - + @@ -505,24 +505,24 @@ if ($od[od_receipt_point] > 0) - + - + - + - + @@ -557,16 +557,16 @@ if ($od[od_receipt_point] > 0) @@ -575,19 +575,19 @@ if ($od[od_receipt_point] > 0) @@ -599,19 +599,19 @@ if ($od[od_receipt_point] > 0) - @@ -619,9 +619,9 @@ if ($od[od_receipt_point] > 0) @@ -636,8 +636,8 @@ if ($od[od_receipt_point] > 0)
@@ -284,32 +284,32 @@ if ($od[od_receipt_point] > 0)
계좌번호".$od[od_bank_account]."".$od['od_bank_account']."
입금액 입금액
입금자
입금확인일시
휴대폰번호
결제액 결제액
결제 확인일시
신용카드 입금액
카드 승인일시
카드 승인취소
포인트
DC
환불액
배송회사 0) { + if ($od['dl_id'] > 0) { // get 으로 날리는 경우 운송장번호를 넘김 - if (strpos($dl[dl_url], "=")) $invoice = $od[od_invoice]; - echo "$dl[dl_company]   (고객센터 : $dl[dl_tel]) "; + if (strpos($dl['dl_url'], "=")) $invoice = $od['od_invoice']; + echo "{$dl['dl_company']}   (고객센터 : {$dl['dl_tel']}) "; } else echo "배송회사를 선택해 주세요."; ?> @@ -406,26 +406,26 @@ if ($od[od_receipt_point] > 0)
운송장번호  
배송일시  
주문자 배송비 원 + ' class=ed size=10 style='text-align:right;'>원
현금영수증"; - if ($od["od_cash"]) - echo "현금영수증 확인하기"; + if ($od["od_cash"]) + echo "현금영수증 확인하기"; else - echo "현금영수증을 발급하시려면 클릭하십시오."; + echo "현금영수증을 발급하시려면 클릭하십시오."; echo "
계좌번호
입금액 입금액 - 원 + '>원 0)
입금자명 - - + '> + SMS 문자전송
입금 확인일시 - + '> " + value="" onclick="if (this.checked == true) this.form.od_bank_time.value=this.form.od_bank_chk.value; else this.form.od_bank_time.value = this.form.od_bank_time.defaultValue;">현재 시간
휴대폰번호
결제액 결제액 - 원 + '>원 결제대행사"; @@ -532,7 +532,7 @@ if ($od[od_receipt_point] > 0)
휴대폰 결제일시 - + '> " onclick="if (this.checked == true) this.form.od_hp_time.value=this.form.od_card_chk.value; else this.form.od_hp_time.value = this.form.od_hp_time.defaultValue;">현재 시간 @@ -541,15 +541,15 @@ if ($od[od_receipt_point] > 0)
신용카드 결제액 - 원 + '>원   - 결제대행사
카드 승인일시 - + '> " + value="" onclick="if (this.checked == true) this.form.od_card_time.value=this.form.od_card_chk.value; else this.form.od_card_time.value = this.form.od_card_time.defaultValue;">현재 시간
카드 승인취소 - 원 + '>원
포인트 결제액 - 점 + '>점
DC - 원 + '>원
환불액 - 원 + '>원
운송장번호 - + '> + SMS 문자전송
배송일시 - + '> " + value="" onclick="if (this.checked == true) this.form.od_invoice_time.value=this.form.od_invoice_chk.value; else this.form.od_invoice_time.value = this.form.od_invoice_time.defaultValue;">현재 시간
0) - echo ""; + if ($od['dl_id'] > 0) + echo ""; ?>
@@ -659,7 +659,7 @@ if ($od[od_receipt_point] > 0) - + @@ -682,28 +682,28 @@ if ($od[od_receipt_point] > 0) 이름 - + ' required itemname='주문하신 분 이름'> 전화번호 - + ' required itemname='주문하신 분 전화번호'> 핸드폰 - + '> 주소 - - - -  
-
- + '> - + '> +  
+ '>
+ '> E-mail - + '> IP Address @@ -723,38 +723,38 @@ if ($od[od_receipt_point] > 0) 이름 - + ' required itemname='받으시는 분 이름'> 전화번호 - + ' required itemname='받으시는 분 전화번호'> 핸드폰 - + '> 주소 - - - -  
-
- + '> - + '> +  
+ '>
+ '> - + 희망배송일 - - () + ' maxlength=10 minlength=10 required itemname='희망배송일'> + () - + 전하는 말씀 - + @@ -765,7 +765,7 @@ if ($od[od_receipt_point] > 0)

    - ');"> + ');"> \ No newline at end of file diff --git a/adm/shop_admin/orderformupdate.php b/adm/shop_admin/orderformupdate.php index b086ada68..0bc0ba8f3 100644 --- a/adm/shop_admin/orderformupdate.php +++ b/adm/shop_admin/orderformupdate.php @@ -1,8 +1,8 @@ "> - 처음 + '>처음 - + 건수 :   @@ -131,80 +131,80 @@ $tot_dc_amount = 0; $tot_receiptamount = 0; $tot_receiptcancel = 0; $tot_misuamount = 0; -for ($i=0; $row=mysql_fetch_array($result); $i++) +for ($i=0; $row=mysql_fetch_array($result); $i++) { // 결제 수단 $s_receipt_way = $s_br = ""; if ($row[od_settle_case]) { - $s_receipt_way = $row[od_settle_case]; + $s_receipt_way = $row['od_settle_case']; $s_br = '
'; } else { - if ($row[od_temp_bank] > 0 || $row[od_receipt_bank] > 0) + 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_receipt_way = cut_str($row['od_bank_account'],8,""); $s_br = "
"; } - if ($row[od_temp_card] > 0 || $row[od_receipt_card] > 0) + if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0) { // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임 - if ($row[misuamount] <= 0 && $row[od_receipt_card] == 0) + if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0) ; // 화면 출력하지 않음 - else + else { $s_receipt_way .= $s_br."카드"; - if ($row[od_receipt_card] == 0) + if ($row['od_receipt_card'] == 0) $s_receipt_way .= "(미승인)"; $s_br = "
"; } } } - if ($row[od_receipt_point] > 0) - $s_receipt_way .= $s_br."포인트"; + if ($row['od_receipt_point'] > 0) + $s_receipt_way .= $s_br."포인트"; $s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr"); - $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id=$row[od_id]&on_uid=$row[on_uid]&mb_id=$row[mb_id]&$qstr');"); + $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}&mb_id={$row['mb_id']}&$qstr');"); - $mb_nick = get_sideview($row[mb_id], $row[od_name], $row[od_email], ''); + $mb_nick = get_sideview($row['mb_id'], $row['od_name'], $row['od_email'], ''); $tot_cnt = ""; - if ($row[mb_id]) + if ($row['mb_id']) { - $sql2 = " select count(*) as cnt from $g4[yc4_order_table] where mb_id = '$row[mb_id]' "; + $sql2 = " select count(*) as cnt from {$g4['yc4_order_table']} where mb_id = '{$row['mb_id']}' "; $row2 = sql_fetch($sql2); - $tot_cnt = "($row2[cnt])"; + $tot_cnt = '('.$row2['cnt'].')'; } $list = $i%2; echo " - $row[od_id] - + {$row['od_id']} + $mb_nick - $row[mb_id] - {$row[itemcount]}건 $tot_cnt - ".number_format($row[orderamount])." - ".number_format($row[ordercancel])." - ".number_format($row[od_dc_amount])." - ".number_format($row[receiptamount])." - ".number_format($row[receiptcancel])." - ".number_format($row[misu])." + {$row['mb_id']} + {$row['itemcount']}건 $tot_cnt + ".number_format($row['orderamount'])." + ".number_format($row['ordercancel'])." + ".number_format($row['od_dc_amount'])." + ".number_format($row['receiptamount'])." + ".number_format($row['receiptcancel'])." + ".number_format($row['misu'])." $s_receipt_way $s_mod $s_del "; - $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]; + $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']; } mysql_free_result($result); if ($i == 0) @@ -229,7 +229,7 @@ if ($i == 0) - +
 
@@ -241,5 +241,5 @@ f.sel_field.value = ''; diff --git a/adm/shop_admin/orderlist2.php b/adm/shop_admin/orderlist2.php index f8005d437..831d854b2 100644 --- a/adm/shop_admin/orderlist2.php +++ b/adm/shop_admin/orderlist2.php @@ -1,17 +1,17 @@ "> - 처음 + '>처음 - + 건수 :   @@ -126,44 +126,44 @@ $tot_dc_amount = 0; $tot_receiptamount = 0; $tot_receiptcancel = 0; $tot_misuamount = 0; -for ($i=0; $row=mysql_fetch_array($result); $i++) +for ($i=0; $row=mysql_fetch_array($result); $i++) { // 결제 수단 $s_receipt_way = $s_br = ""; - if ($row[od_settle_case]) + if ($row['od_settle_case']) { - $s_receipt_way = $row[od_settle_case]; + $s_receipt_way = $row['od_settle_case']; $s_br = '
'; } else { - if ($row[od_temp_bank] > 0 || $row[od_receipt_bank] > 0) + 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_receipt_way = cut_str($row['od_bank_account'],8,""); $s_br = "
"; } - if ($row[od_temp_card] > 0 || $row[od_receipt_card] > 0) + if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0) { // 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임 - if ($row[misuamount] <= 0 && $row[od_receipt_card] == 0) + if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0) ; // 화면 출력하지 않음 - else + else { $s_receipt_way .= $s_br."카드"; - if ($row[od_receipt_card] == 0) + if ($row['od_receipt_card'] == 0) $s_receipt_way .= "(미승인)"; $s_br = "
"; } } } - if ($row[od_receipt_point] > 0) - $s_receipt_way .= $s_br."포인트"; + if ($row['od_receipt_point'] > 0) + $s_receipt_way .= $s_br."포인트"; - $s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr"); - $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id=$row[od_id]&on_uid=$row[on_uid]&mb_id=$row[mb_id]&$qstr&list=2');"); + $s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}&$qstr"); + $s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}&mb_id={$row['mb_id']}&$qstr&list=2');"); if ($i>0) echo ""; @@ -171,44 +171,44 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $list = $i%2; echo " - $row[od_id] - ".cut_str($row[od_name],30,"")." - $row[mb_id] - {$row[itemcount]}건 - ".number_format($row[orderamount])." - ".number_format($row[ordercancel])." - ".number_format($row[od_dc_amount])." - ".number_format($row[receiptamount])." - ".number_format($row[receiptcancel])." - ".number_format($row[misu])." + {$row['od_id']} + ".cut_str($row['od_name'],30,"")." + {$row['mb_id']} + {$row['itemcount']}건 + ".number_format($row['orderamount'])." + ".number_format($row['ordercancel'])." + ".number_format($row['od_dc_amount'])." + ".number_format($row['receiptamount'])." + ".number_format($row['receiptcancel'])." + ".number_format($row['misu'])." $s_receipt_way $s_mod $s_del "; - $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]; + $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']; // 상품개별출력 - $sql2 = " select c.it_name, - b.* - from $g4[yc4_order_table] a - left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid) - left join $g4[yc4_item_table] c on (b.it_id = c.it_id) - where od_id = '$row[od_id]' "; + $sql2 = " select c.it_name, + b.* + from {$g4['yc4_order_table']} a + left join {$g4['yc4_cart_table']} b on (a.on_uid = b.on_uid) + left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id) + where od_id = '{$row['od_id']}' "; $result2 = sql_query($sql2); - for ($k=0; $row2=sql_fetch_array($result2); $k++) + for ($k=0; $row2=sql_fetch_array($result2); $k++) { - $href = "$g4[shop_path]/item.php?it_id=$row2[it_id]"; - $it_name = "".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]); + $href = G4_SHOP_URL."/item.php?it_id={$row2['it_id']}"; + $it_name = "".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_amount]; - $sub_point = $row2[ct_qty] * $row2[ct_point]; + $sub_amount = $row2['ct_qty'] * $row2['ct_amount']; + $sub_point = $row2['ct_qty'] * $row2['ct_point']; echo " @@ -216,14 +216,14 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) - +
".get_it_image("{$row2[it_id]}_s", 50, 50)."".get_it_image($row2['it_id'].'_s', 50, 50)." $it_name
- ".number_format($row2[ct_amount])."  - $row2[ct_qty] + ".number_format($row2['ct_amount'])."  + ".$row2['ct_qty']." ".number_format($sub_point)."  - $row2[ct_status] + ".$row2['ct_status']." ".number_format($sub_amount)."  @@ -253,7 +253,7 @@ if ($i == 0) - +
 
@@ -265,5 +265,5 @@ f.sel_field.value = ''; diff --git a/adm/shop_admin/ordermail.inc.php b/adm/shop_admin/ordermail.inc.php index 91d827149..e33a2b754 100644 --- a/adm/shop_admin/ordermail.inc.php +++ b/adm/shop_admin/ordermail.inc.php @@ -5,9 +5,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_ORDERMAIL_")) exit; // 주문자님께 메일발송 체크를 했다면 -if ($od_send_mail) +if ($od_send_mail) { - $od = sql_fetch(" select * from $g4[yc4_order_table] where od_id = '$od_id' "); + $od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' "); $addmemo = nl2br(stripslashes($addmemo)); @@ -25,8 +25,8 @@ if ($od_send_mail) b.it_opt4_subject, b.it_opt5_subject, b.it_opt6_subject - from $g4[yc4_cart_table] a inner join $g4[yc4_item_table] b on (b.it_id=a.it_id) - where a.on_uid = '$od[on_uid]' + from {$g4['yc4_cart_table']} a inner join {$g4['yc4_item_table']} b on (b.it_id=a.it_id) + where a.on_uid = '{$od['on_uid']}' order by a.ct_id "; $result = sql_query($sql); for ($i=0; $ct=mysql_fetch_array($result); $i++) { @@ -51,19 +51,19 @@ if ($od_send_mail) $s_option = "없음"; } - $cart_list[$i][it_id] = $ct[it_id]; - $cart_list[$i][it_name] = $ct[it_name]; - $cart_list[$i][it_opt] = $s_option; + $cart_list[$i]['it_id'] = $ct['it_id']; + $cart_list[$i]['it_name'] = $ct['it_name']; + $cart_list[$i]['it_opt'] = $s_option; - $ct_status = $ct[ct_status]; + $ct_status = $ct['ct_status']; if ($ct_status == "준비") { $ct_status = "상품준비중"; } else if ($ct_status == "배송") { $ct_status = "배송중"; } - $cart_list[$i][ct_status] = $ct_status; - $cart_list[$i][ct_qty] = $ct[ct_qty]; + $cart_list[$i]['ct_status'] = $ct_status; + $cart_list[$i]['ct_qty'] = $ct['ct_qty']; } @@ -73,26 +73,26 @@ if ($od_send_mail) $is_receipt = false; // 신용카드 입금 - if ($od[od_receipt_card] > 0) { - $card_list[od_card_time] = $od[od_card_time]; - $card_list[od_receipt_card] = display_amount($od[od_receipt_card]); + if ($od['od_receipt_card'] > 0) { + $card_list['od_card_time'] = $od['od_card_time']; + $card_list['od_receipt_card'] = display_amount($od['od_receipt_card']); $is_receipt = true; } // 무통장 입금 - if ($od[od_receipt_bank] > 0) { - $bank_list[od_bank_time] = $od[od_bank_time]; - $bank_list[od_receipt_bank] = display_amount($od[od_receipt_bank]); - $bank_list[od_deposit_name] = $od[od_deposit_name]; + if ($od['od_receipt_bank'] > 0) { + $bank_list['od_bank_time'] = $od['od_bank_time']; + $bank_list['od_receipt_bank'] = display_amount($od['od_receipt_bank']); + $bank_list['od_deposit_name'] = $od['od_deposit_name']; $is_receipt = true; } // 포인트 입금 - if ($od[od_receipt_point] > 0) { - $point_list[od_time] = $od[od_time]; - $point_list[od_receipt_point] = display_point($od[od_receipt_point]); + if ($od['od_receipt_point'] > 0) { + $point_list['od_time'] = $od['od_time']; + $point_list['od_receipt_point'] = display_point($od['od_receipt_point']); $is_receipt = true; } @@ -100,32 +100,32 @@ if ($od_send_mail) // 배송정보 $is_delivery = false; if ((int)$od[dl_id] > 0) { - $dl = sql_fetch(" select * from $g4[yc4_delivery_table] where dl_id = '$od[dl_id]' "); + $dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' "); - $delivery_list[dl_url] = $dl[dl_url]; - if (strpos($delivery_list[dl_url], "=")) $delivery_list[dl_url] .= $od[od_invoice]; - $delivery_list[dl_company] = $dl[dl_company]; - $delivery_list[dl_tel] = $dl[dl_tel]; - $delivery_list[od_invoice] = $od[od_invoice]; - $delivery_list[od_invoice_time] = $od[od_invoice_time]; + $delivery_list['dl_url'] = $dl['dl_url']; + if (strpos($delivery_list['dl_url'], "=")) $delivery_list['dl_url'] .= $od['od_invoice']; + $delivery_list['dl_company'] = $dl['dl_company']; + $delivery_list['dl_tel'] = $dl['dl_tel']; + $delivery_list['od_invoice'] = $od['od_invoice']; + $delivery_list['od_invoice_time'] = $od['od_invoice_time']; $is_delivery = true; } // 입금 또는 배송내역이 있다면 메일 발송 - if ($is_receipt || $is_delivery) + if ($is_receipt || $is_delivery) { ob_start(); - include "$g4[shop_path]/mail/ordermail.mail.php"; + include G4_SHOP_PATH.'/mail/ordermail.mail.php'; $content = ob_get_contents(); ob_end_clean(); - $title = "{$od[od_name]}님께서 주문하신 내역을 다음과 같이 처리하였습니다."; - $email = $od[od_email]; + $title = "{$od['od_name']}님께서 주문하신 내역을 다음과 같이 처리하였습니다."; + $email = $od['od_email']; // 메일 보낸 내역 상점메모에 update - $od_shop_memo = "$g4[time_ymdhis] - 결제/배송내역 메일발송\n" . $od[od_shop_memo];; - /* 1.00.06 + $od_shop_memo = G4_TIME_YMDHIS.' - 결제/배송내역 메일발송\n' . $od['od_shop_memo']; + /* 1.00.06 ** 주석처리 - 처리하지 않음 if ($receipt_check) $od_shop_memo .= ", 입금확인"; @@ -133,11 +133,11 @@ if ($od_send_mail) $od_shop_memo .= ", 송장번호"; */ - sql_query(" update $g4[yc4_order_table] set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' "); + sql_query(" update {$g4['yc4_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' "); $admin = get_admin('super'); - mailer($config[cf_title], $admin[mb_email], $email, $title, $content, 1); + mailer($config['cf_title'], $admin['mb_email'], $email, $title, $content, 1); } } ?> diff --git a/adm/shop_admin/orderprint.php b/adm/shop_admin/orderprint.php index 470df5be3..808bd101d 100644 --- a/adm/shop_admin/orderprint.php +++ b/adm/shop_admin/orderprint.php @@ -1,16 +1,16 @@
- + @@ -30,9 +30,9 @@ include_once ("$g4[admin_path]/admin.head.php");
- " class=ed> + " class=ed> ∼ - " class=ed> + " class=ed>   "; @@ -137,23 +137,23 @@ if ($csv == 'xls') echo ""; echo ""; echo ""; - for ($i=0; $row=mysql_fetch_array($result); $i++) + for ($i=0; $row=mysql_fetch_array($result); $i++) { - $it_name = stripslashes($row[it_name]) . "
"; - $it_name .= print_item_options($row[it_id], $row[it_opt1], $row[it_opt2], $row[it_opt3], $row[it_opt4], $row[it_opt5], $row[it_opt6]); + $it_name = stripslashes($row['it_name']) . "
"; + $it_name .= print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']); echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; } if ($i == 0) @@ -169,24 +169,24 @@ function get_order($on_uid) { global $g4; - $sql = " select * from $g4[yc4_order_table] where on_uid = '$on_uid' "; + $sql = " select * from {$g4['yc4_order_table']} where on_uid = '$on_uid' "; return sql_fetch($sql); } -$g4[title] = "주문내역"; -include_once("$g4[path]/head.sub.php"); +$g4['title'] = "주문내역"; +include_once(G4_PATH.'/head.sub.php'); -if ($case == 1) +if ($case == 1) { $fr_date = date_conv($fr_date); $to_date = date_conv($to_date); - $sql = " SELECT DISTINCT a.on_uid FROM $g4[yc4_order_table] a, $g4[yc4_cart_table] b + $sql = " SELECT DISTINCT a.on_uid FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b where a.on_uid = b.on_uid and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' "; } else { - $sql = " SELECT DISTINCT a.on_uid FROM $g4[yc4_order_table] a, $g4[yc4_cart_table] b + $sql = " SELECT DISTINCT a.on_uid FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b where a.on_uid = b.on_uid and a.od_id between '$fr_od_id' and '$to_od_id' "; } @@ -194,7 +194,7 @@ if ($ct_status) $sql .= " and b.ct_status = '$ct_status' "; $sql .= " order by a.od_id "; $result = sql_query($sql); -if (mysql_num_rows($result) == 0) +if (mysql_num_rows($result) == 0) { echo ""; exit; @@ -202,7 +202,7 @@ if (mysql_num_rows($result) == 0) ?> - +주문내역
운송장번호전하실말씀
" . $row[od_b_zip1] . '-' . $row[od_b_zip2] . "" . $row[od_b_addr1] . ' ' . $row[od_b_addr2] . "" . $row[od_b_name] . "" . $row[od_b_tel] . "" . $row[od_b_hp] . "" . $row['od_b_zip1'] . '-' . $row['od_b_zip2'] . "" . $row['od_b_addr1'] . ' ' . $row['od_b_addr2'] . "" . $row['od_b_name'] . "" . $row['od_b_tel'] . "" . $row['od_b_hp'] . "" . $it_name . "" . $row[ct_qty] . "" . $row[it_id] . "'" . urlencode($row[od_id]) . "'" . $row[od_invoice] . "" . $row[od_memo] . "" . $row['ct_qty'] . "" . $row['it_id'] . "'" . urlencode($row['od_id']) . "'" . $row['od_invoice'] . "" . $row['od_memo'] . "