shop 테이블명 g5_shop 으로 변경
This commit is contained in:
@ -19,7 +19,7 @@ if ($w == "")
|
||||
$it['ca_id3'] = get_cookie("ck_ca_id3");
|
||||
if (!$it['ca_id'])
|
||||
{
|
||||
$sql = " select ca_id from {$g5['shop_category_table']} order by ca_id limit 1 ";
|
||||
$sql = " select ca_id from {$g5['g5_shop_category_table']} order by ca_id limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['ca_id'])
|
||||
alert("등록된 분류가 없습니다. 우선 분류를 등록하여 주십시오.");
|
||||
@ -36,7 +36,7 @@ else if ($w == "u")
|
||||
|
||||
if ($is_admin != 'super')
|
||||
{
|
||||
$sql = " select it_id from {$g5['shop_item_table']} a, {$g5['shop_category_table']} b
|
||||
$sql = " select it_id from {$g5['g5_shop_item_table']} a, {$g5['g5_shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id
|
||||
and b.ca_mb_id = '{$member['mb_id']}' ";
|
||||
@ -45,13 +45,13 @@ else if ($w == "u")
|
||||
alert("\'{$member['mb_id']}\' 님께서 수정 할 권한이 없는 상품입니다.");
|
||||
}
|
||||
|
||||
$sql = " select * from {$g5['shop_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
if (!$ca_id)
|
||||
$ca_id = $it['ca_id'];
|
||||
|
||||
$sql = " select * from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$ca = sql_fetch($sql);
|
||||
}
|
||||
else
|
||||
@ -74,7 +74,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
// 분류리스트
|
||||
$category_select = '';
|
||||
$script = '';
|
||||
$sql = " select * from {$g5['shop_category_table']} ";
|
||||
$sql = " select * from {$g5['g5_shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||
$sql .= " order by ca_id ";
|
||||
@ -1002,7 +1002,7 @@ $(function(){
|
||||
<select id="sch_relation">
|
||||
<option value=''>분류별 상품</option>
|
||||
<?php
|
||||
$sql = " select * from {$g5['shop_category_table']} ";
|
||||
$sql = " select * from {$g5['g5_shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||
$sql .= " order by ca_id ";
|
||||
@ -1092,8 +1092,8 @@ $(function(){
|
||||
<?php
|
||||
$str = array();
|
||||
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_price
|
||||
from {$g5['shop_item_relation_table']} a
|
||||
left join {$g5['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
from {$g5['g5_shop_item_relation_table']} a
|
||||
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
where a.it_id = '$it_id'
|
||||
order by ir_no asc ";
|
||||
$result = sql_query($sql);
|
||||
@ -1133,7 +1133,7 @@ $(function(){
|
||||
<h3>등록된 전체이벤트 목록</h3>
|
||||
<div id="event_list" class="srel_list srel_noneimg">
|
||||
<?php
|
||||
$sql = " select ev_id, ev_subject from {$g5['shop_event_table']} order by ev_id desc ";
|
||||
$sql = " select ev_id, ev_subject from {$g5['g5_shop_event_table']} order by ev_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($g=0; $row=sql_fetch_array($result); $g++) {
|
||||
if($g == 0)
|
||||
@ -1205,8 +1205,8 @@ $(function(){
|
||||
$str = "";
|
||||
$comma = "";
|
||||
$sql = " select b.ev_id, b.ev_subject
|
||||
from {$g5['shop_event_item_table']} a
|
||||
left join {$g5['shop_event_table']} b on (a.ev_id=b.ev_id)
|
||||
from {$g5['g5_shop_event_item_table']} a
|
||||
left join {$g5['g5_shop_event_table']} b on (a.ev_id=b.ev_id)
|
||||
where a.it_id = '$it_id'
|
||||
order by b.ev_id desc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
Reference in New Issue
Block a user