shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 17:13:41 +09:00
parent 90ee89b4f5
commit fa4034cf82
10 changed files with 9 additions and 11 deletions

View File

@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
$g5['title'] = '배송일괄처리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
//sql_query(" update $g5[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
//sql_query(" update {$g5['g5_shop_cart_table']} set ct_status = '완료' where ct_status = '배송' ");
// 배송회사리스트 ---------------------------------------------
$delivery_options = '<option value="">선택하세요</option>'.PHP_EOL;

View File

@ -149,7 +149,7 @@ $pg_anchor = '<ul class="anchor">
</thead>
<tbody>
<?php
$sql = " select * from {$g5[shop_item_use_table]}
$sql = " select * from {$g5['g5_shop_item_use_table']}
where is_confirm = 0
order by is_id desc
limit $max_limit ";

View File

@ -22,7 +22,7 @@ if ($sel_field == "") $sel_field = "it_name";
if ($sort1 == "") $sort1 = "it_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from $g5[shop_item_table] ";
$sql_common = " from {$g5['g5_shop_item_table']} ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음

View File

@ -29,7 +29,7 @@ if ($default['de_sms_use']) {
{
$sms_contents = $default['de_sms_cont5'];
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
$sql = " select dl_company from $g5[shop_delivery_table] where dl_id = '$dl_id' ";
$sql = " select dl_company from {$g5['g5_shop_delivery_table']} where dl_id = '$dl_id' ";
$row = sql_fetch($sql);
$sms_contents = preg_replace("/{택배회사}/", $row['dl_company'], $sms_contents);
$sms_contents = preg_replace("/{운송장번호}/", $od_invoice, $sms_contents);

View File

@ -24,8 +24,8 @@ if (G5_HTTPS_DOMAIN) {
}
// 미수금에 대한 QUERY 문
// 테이블 a 는 주문서 ($g5[shop_order_table])
// 테이블 b 는 장바구니 ($g5[shop_cart_table])
// 테이블 a 는 주문서 ($g5['g5_shop_order_table'])
// 테이블 b 는 장바구니 ($g5['g5_shop_cart_table'])
define(_MISU_QUERY_, "
( od_cart_amount + od_send_cost + od_send_cost2 - od_cart_coupon - od_coupon - od_send_coupon - od_receipt_amount - od_cancel_amount ) as misu,
( od_cart_coupon + od_coupon + od_send_coupon ) as couponamount

View File

@ -14,7 +14,6 @@ $sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']}
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
//$row2 = sql_fetch(" select count(*) as cnt from $g5[shop_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';

View File

@ -94,7 +94,7 @@ $total_count = $row['cnt'];
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
$sql2 = " select ca_name from $g5[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
$sql2 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = '<a href="'.G5_SHOP_URL.'/list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> ';
}

View File

@ -22,7 +22,7 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
for ($i=1;$i<=$tv_idx;$i++)
{
$tv_it_id = get_session("ss_tv[$i]");
$rowx = sql_fetch(" select it_name from $g5[shop_item_table] where it_id = '$tv_it_id' ");
$rowx = sql_fetch(" select it_name from {$g5['g5_shop_item_table']} where it_id = '$tv_it_id' ");
$j = $i - 1;
if ($j%$tv_div['img_length']==0) $k++;
$it_name = get_text(addslashes($rowx['it_name']));

View File

@ -10,7 +10,6 @@ $sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
//$row2 = sql_fetch(" select count(*) as cnt from $g5[shop_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';

View File

@ -99,7 +99,7 @@ $total_count = $row['cnt'];
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
$sql2 = " select ca_name from $g5[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
$sql2 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = '<a href="./list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> &gt; ';
}