shop 테이블명 g5_shop 으로 변경
This commit is contained in:
@ -9,7 +9,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
// 분류
|
||||
$ca_list = '<option value="">선택</option>'.PHP_EOL;
|
||||
$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 ";
|
||||
@ -42,8 +42,8 @@ if ($sca != "") {
|
||||
|
||||
if ($sfl == "") $sfl = "it_name";
|
||||
|
||||
$sql_common = " from {$g5['shop_item_table']} a ,
|
||||
{$g5['shop_category_table']} b
|
||||
$sql_common = " from {$g5['g5_shop_item_table']} a ,
|
||||
{$g5['g5_shop_category_table']} b
|
||||
where (a.ca_id = b.ca_id";
|
||||
if ($is_admin != 'super')
|
||||
$sql_common .= " and b.ca_mb_id = '{$member['mb_id']}'";
|
||||
@ -98,7 +98,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<select name="sca" id="sca">
|
||||
<option value="">전체분류</option>
|
||||
<?php
|
||||
$sql1 = " select ca_id, ca_name from {$g5['shop_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=sql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
Reference in New Issue
Block a user