관리자 on_uid를 uq_id로 변경

This commit is contained in:
chicpro
2013-03-26 14:58:48 +09:00
parent 9cee663718
commit 0bc7658b47
17 changed files with 52 additions and 52 deletions

View File

@ -34,7 +34,7 @@ if ($sel_ca_id != "") {
if ($sel_field == "") $sel_field = "od_id";
$sql_common = " from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (a.on_uid=b.on_uid)
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@ -154,7 +154,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$list = $i%2;
echo "
<input type='hidden' name='od_id[$i]' value='{$row['od_id']}'>
<input type='hidden' name='on_uid[$i]' value='{$row['on_uid']}'>
<input type='hidden' name='uq_id[$i]' value='{$row['uq_id']}'>
<tr class='list$list center ht'>
<td><a href='./orderform.php?od_id={$row['od_id']}'>{$row['od_id']}</a></td>
<td>$row[od_name]</td>

View File

@ -36,18 +36,18 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$od_id = $_POST['od_id'][$m];
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
$on_uid = $_POST['on_uid'][$m];
$uq_id = $_POST['uq_id'][$m];
$sql = " update {$g4['yc4_cart_table']}
set ct_status = '배송'
where ct_status in ('주문', '준비')
and on_uid = '$on_uid' ";
and uq_id = '$uq_id' ";
sql_query($sql);
include "./ordermail.inc.php";
// 재고 반영
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g4['yc4_cart_table']}
where on_uid = '$on_uid'
where uq_id = '$uq_id'
and ct_stock_use = '0' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
@ -58,7 +58,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$sql4 = " update {$g4['yc4_cart_table']}
set ct_stock_use = '1',
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
where on_uid = '$on_uid'
where uq_id = '$uq_id'
and ct_id = '{$row2['ct_id']}' ";
sql_query($sql4);
}

View File

@ -33,7 +33,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (b.on_uid=a.on_uid)
left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
group by a.od_id
/*having misu <= 0 and a.od_invoice = '' and ordercancel = 0*/
/*having orderamount - receiptamount = 0 and a.od_invoice = ''*/
@ -103,7 +103,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (b.on_uid=a.on_uid)
left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
group by a.od_id
/* having receiptamount <= 0 */
having misu > 0

View File

@ -23,7 +23,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
if ($od_id && $od_invoice)
{
$sql = " select od_id, on_uid, dl_id, od_invoice from {$g4['yc4_order_table']} where od_id = '$od_id' ";
$sql = " select od_id, uq_id, dl_id, od_invoice from {$g4['yc4_order_table']} where od_id = '$od_id' ";
$row = sql_fetch($sql);
//echo $sql; echo "<br/>";
//print_r2($row);
@ -44,7 +44,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
{
$sql = " update {$g4['yc4_cart_table']}
set ct_status = '$ct_status'
where on_uid = '{$row['on_uid']}'
where uq_id = '{$row['uq_id']}'
and ct_status in ('주문', '준비', '배송', '완료') ";
sql_query($sql);
}

View File

@ -20,7 +20,7 @@ function itemdelete($it_id)
$sql = " select b.od_id
from {$g4['yc4_cart_table']} a,
{$g4['yc4_order_table']} b
where a.on_uid = b.on_uid
where a.uq_id = b.uq_id
and a.it_id = '$it_id'
and a.ct_status != '쇼핑' ";
$result = sql_query($sql);

View File

@ -12,7 +12,7 @@ for ($i=0; $i<$cnt; $i++)
$ct_id = $_POST['ct_id'][$i];
$sql = " select * from {$g4['yc4_cart_table']}
where on_uid = '$on_uid'
where uq_id = '$uq_id'
and ct_id = '$ct_id' ";
$ct = sql_fetch($sql);
@ -55,7 +55,7 @@ for ($i=0; $i<$cnt; $i++)
{
$point_use = 0;
//insert_point($mb_id, (-1) * ($ct[ct_point] * $ct[ct_qty]), "주문번호 $od_id ($ct_id) 취소");
delete_point($mb_id, "@delivery", $mb_id, "$od_id,$on_uid,$ct_id");
delete_point($mb_id, "@delivery", $mb_id, "$od_id,$uq_id,$ct_id");
}
// 히스토리에 남김
@ -67,7 +67,7 @@ for ($i=0; $i<$cnt; $i++)
ct_stock_use = '$stock_use',
ct_status = '$ct_status',
ct_history = CONCAT(ct_history,'$ct_history')
where on_uid = '$on_uid'
where uq_id = '$uq_id'
and ct_id = '$ct_id' ";
sql_query($sql);
}

View File

@ -6,16 +6,16 @@ check_demo();
auth_check($auth[$sub_menu], "d");
if ($od_id && $on_uid)
if ($od_id && $uq_id)
{
// 장바구니 삭제
sql_query(" delete from {$g4['yc4_cart_table']} where on_uid = '$on_uid' ");
sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ");
// 카드결제내역 삭제
sql_query(" delete from {$g4['yc4_card_history_table']} where od_id = '$od_id' and on_uid = '$on_uid' ");
sql_query(" delete from {$g4['yc4_card_history_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
// 주문서 삭제
sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and on_uid = '$on_uid' ");
sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
}
if ($return_url)

View File

@ -45,14 +45,14 @@ if (!isset($order_not_point)) {
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 회원 ID 를 얻는다.
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['yc4_order_table']} where on_uid = '{$row['on_uid']}' ");
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ");
// 회원이면서 포인트가 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']}");
insert_point($tmp_row['mb_id'], $po_point, $po_content, "@delivery", $tmp_row['mb_id'], "{$tmp_row['od_id']},{$row['uq_id']},{$row['ct_id']}");
}
sql_query("update {$g4['yc4_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
@ -103,7 +103,7 @@ $sql = " select a.ct_id,
a.it_opt6,
b.it_name
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.on_uid = '{$od['on_uid']}'
where a.uq_id = '{$od['uq_id']}'
and a.it_id = b.it_id
order by a.ct_id ";
$result = sql_query($sql);
@ -125,7 +125,7 @@ $result = sql_query($sql);
<form name=frmorderform method=post action='' style="margin:0px;">
<input type=hidden name=ct_status value=''>
<input type=hidden name=on_uid value='<? echo $od['on_uid'] ?>'>
<input type=hidden name=uq_id value='<? echo $od['uq_id'] ?>'>
<input type=hidden name=od_id value='<? echo $od_id ?>'>
<input type=hidden name=mb_id value='<? echo $od['mb_id'] ?>'>
<input type=hidden name=od_email value='<? echo $od['od_email'] ?>'>
@ -236,7 +236,7 @@ if ($od['od_receipt_point'] > 0)
<table width=100% cellpadding=0 cellspacing=0 border=0>
<!-- on_uid : <? echo $od[on_uid] ?> -->
<!-- uq_id : <? echo $od[uq_id] ?> -->
<tr><td colspan=8 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td>주문번호</td>
@ -425,7 +425,7 @@ if ($od['od_receipt_point'] > 0)
if ($od["od_cash"])
echo "<a href=\"javascript:;\" onclick=\"window.open('https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?cash_no={$od['od_cash_no']}', 'taxsave_receipt', 'width=360,height=647,scrollbars=0,menus=0');\">현금영수증 확인하기</a>";
else
echo "<a href=\"javascript:;\" onclick=\"window.open('".G4_SHOP_URL."/taxsave_kcp.php?od_id=$od_id&on_uid={$od['on_uid']}', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');\">현금영수증을 발급하시려면 클릭하십시오.</a>";
echo "<a href=\"javascript:;\" onclick=\"window.open('".G4_SHOP_URL."/taxsave_kcp.php?od_id=$od_id&uq_id={$od['uq_id']}', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');\">현금영수증을 발급하시려면 클릭하십시오.</a>";
echo "</td></tr>";
}
}
@ -765,7 +765,7 @@ if ($od['od_receipt_point'] > 0)
<p align=center>
<input type=submit class=btn1 value='주소정보 수정'>&nbsp;
<input type=button class=btn1 value=' 목 록 ' accesskey='l' onclick="document.location.href='./orderlist.php?<?=$qstr?>';">&nbsp;
<input type=button class=btn1 value='주문서 삭제' onclick="del('<?="./orderdelete.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}&mb_id={$od['mb_id']}&$qstr"?>');">
<input type=button class=btn1 value='주문서 삭제' onclick="del('<?="./orderdelete.php?od_id={$od['od_id']}&uq_id={$od['uq_id']}&mb_id={$od['mb_id']}&$qstr"?>');">
</form>
<script language='javascript'>

View File

@ -26,7 +26,7 @@ if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (a.on_uid=b.on_uid)
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 김선용 200805 : 조인 사용으로 전체카운트가 일정레코드 이상일 때 지연시간 문제가 심각하므로 변경
@ -168,7 +168,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$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']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr');");
$mb_nick = get_sideview($row['mb_id'], $row['od_name'], $row['od_email'], '');
@ -183,7 +183,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}'>{$row['od_id']}</a></td>
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}'>{$row['od_id']}</a></td>
<!-- <td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'><span title='$od_deposit_name'>".cut_str($row['od_name'],8,"")."</span></a></td> -->
<td align=center>$mb_nick</td>
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$row['mb_id']}'>{$row['mb_id']}</a></td>

View File

@ -26,7 +26,7 @@ if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (a.on_uid=b.on_uid)
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@ -163,7 +163,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$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_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr&list=2');");
if ($i>0)
echo "<tr><td colspan=12 height=1 bgcolor='#CCCCCC'></td></tr>";
@ -171,7 +171,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}'>{$row['od_id']}</a></td>
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}'>{$row['od_id']}</a></td>
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'><span title='$od_deposit_name'>".cut_str($row['od_name'],30,"")."</span></a></td>
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$row['mb_id']}'>{$row['mb_id']}</a></td>
<td align=center>{$row['itemcount']}건</td>
@ -197,7 +197,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$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_cart_table']} b on (a.uq_id = b.uq_id)
left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
where od_id = '{$row['od_id']}' ";
$result2 = sql_query($sql2);

View File

@ -26,7 +26,7 @@ if ($od_send_mail)
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']}'
where a.uq_id = '{$od['uq_id']}'
order by a.ct_id ";
$result = sql_query($sql);
for ($i=0; $ct=mysql_fetch_array($result); $i++) {

View File

@ -41,7 +41,7 @@ if ($csv == 'csv')
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice
FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
where a.on_uid = b.on_uid
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
@ -97,7 +97,7 @@ if ($csv == 'xls')
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.it_opt1, b.it_opt2, b.it_opt3, b.it_opt4, b.it_opt5, b.it_opt6
FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
where a.on_uid = b.on_uid
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
@ -165,11 +165,11 @@ if ($csv == 'xls')
exit;
}
function get_order($on_uid)
function get_order($uq_id)
{
global $g4;
$sql = " select * from {$g4['yc4_order_table']} where on_uid = '$on_uid' ";
$sql = " select * from {$g4['yc4_order_table']} where uq_id = '$uq_id' ";
return sql_fetch($sql);
}
@ -180,14 +180,14 @@ 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
where a.on_uid = b.on_uid
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
where a.uq_id = b.uq_id
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
where a.on_uid = b.on_uid
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
where a.uq_id = b.uq_id
and a.od_id between '$fr_od_id' and '$to_od_id' ";
}
if ($ct_status)
@ -237,7 +237,7 @@ $mod = 10;
$tot_total_amount = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['yc4_order_table']} where on_uid = '{$row['on_uid']}' ";
$sql1 = " select * from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
// 1.03.02
@ -287,7 +287,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
b.it_name
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.it_id = b.it_id
and a.on_uid = '{$row['on_uid']}' ";
and a.uq_id = '{$row['uq_id']}' ";
if ($ct_status)
$sql2 .= " and a.ct_status = '$ct_status' ";
$sql2 .= " order by a.ct_id ";

View File

@ -27,7 +27,7 @@ if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (a.on_uid = b.on_uid)
left join {$g4['yc4_cart_table']} b on (a.uq_id = b.uq_id)
left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
$sql_search ";

View File

@ -54,7 +54,7 @@ function print_line($save)
<?
unset($save);
unset($tot);
$sql = " select on_uid,
$sql = " select uq_id,
SUBSTRING(od_time,1,10) as od_date,
od_send_cost,
od_receipt_bank,
@ -82,7 +82,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['yc4_cart_table']}
where on_uid = '{$row['on_uid']}' ";
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
$row1['orderamount'] += $row['od_send_cost'];

View File

@ -54,7 +54,7 @@ function print_line($save)
<?
unset($save);
unset($tot);
$sql = " select on_uid,
$sql = " select uq_id,
SUBSTRING(od_time,1,7) as od_date,
od_send_cost,
od_receipt_bank,
@ -82,7 +82,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['yc4_cart_table']}
where on_uid = '{$row['on_uid']}' ";
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
$row1['orderamount'] += $row['od_send_cost'];

View File

@ -31,7 +31,7 @@ unset($tot);
$sql = " select od_id,
mb_id,
od_name,
on_uid,
uq_id,
od_send_cost,
od_receipt_bank,
od_receipt_card,
@ -52,7 +52,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['yc4_cart_table']}
where on_uid = '{$row['on_uid']}' ";
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
if ($row['mb_id'] == '') { // 비회원일 경우는 주문자로 링크

View File

@ -49,7 +49,7 @@ function print_line($save)
<?
unset($save);
unset($tot);
$sql = " select on_uid,
$sql = " select uq_id,
SUBSTRING(od_time,1,4) as od_date,
od_send_cost,
od_receipt_bank,
@ -77,7 +77,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
from {$g4['yc4_cart_table']}
where on_uid = '{$row['on_uid']}' ";
where uq_id = '{$row['uq_id']}' ";
$row1 = sql_fetch($sql1);
$row1['orderamount'] += $row['od_send_cost'];