분류 상품 개별 스킨 기능 추가
This commit is contained in:
10
adm/shop_admin/ajax.skinfile.php
Normal file
10
adm/shop_admin/ajax.skinfile.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
if($type == 'mobile')
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||||
|
else
|
||||||
|
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||||
|
|
||||||
|
echo get_list_skin_options("^list.[0-9]+\.skin\.php", $skin_dir, $sval);
|
||||||
|
?>
|
||||||
@ -7,6 +7,19 @@ auth_check($auth[$sub_menu], "r");
|
|||||||
$g5['title'] = '분류관리';
|
$g5['title'] = '분류관리';
|
||||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
|
// 스킨 DIR
|
||||||
|
$skin_dir = '<option value="">선택</option>'.PHP_EOL;
|
||||||
|
$arr = get_skin_dir('shop');
|
||||||
|
for ($i=0; $i<count($arr); $i++) {
|
||||||
|
$skin_dir .= '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
$mskin_dir = '<option value="">선택</option>'.PHP_EOL;
|
||||||
|
$arr = get_skin_dir('shop', G5_MOBILE_PATH.'/'.G5_SKIN_DIR);
|
||||||
|
for ($i=0; $i<count($arr); $i++) {
|
||||||
|
$mskin_dir .= '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
$where = " where ";
|
$where = " where ";
|
||||||
$sql_search = "";
|
$sql_search = "";
|
||||||
if ($stx != "") {
|
if ($stx != "") {
|
||||||
@ -167,12 +180,12 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
<input type="text" name="ca_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_list_mod']; ?>" id="ca_lineimg_num<?php echo $i; ?>" required class="required frm_input"> <span class="sound_only">개</span>
|
<input type="text" name="ca_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_list_mod']; ?>" id="ca_lineimg_num<?php echo $i; ?>" required class="required frm_input"> <span class="sound_only">개</span>
|
||||||
</td>
|
</td>
|
||||||
<td headers="sct_pcskin">
|
<td headers="sct_pcskin">
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨폴더</label>
|
<label for="ca_skin_dir<?php echo $i; ?>" class="sound_only">PC스킨폴더</label>
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]">
|
<select id="ca_skin_dir<?php echo $i; ?>" name="ca_skin_dir[<?php echo $i; ?>]" class="skin_dir">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
<?php echo conv_selected_option($skin_dir, $row['ca_skin_dir']); ?>
|
||||||
</select>
|
</select>
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]">
|
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]" required class="required">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
@ -210,13 +223,13 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
<input type="text" name="ca_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_list_row']; ?>' id="ca_imgline_num<?php echo $i; ?>" required class="required frm_input" size="3"> <span class="sound_only">줄</span>
|
<input type="text" name="ca_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_list_row']; ?>' id="ca_imgline_num<?php echo $i; ?>" required class="required frm_input" size="3"> <span class="sound_only">줄</span>
|
||||||
</td>
|
</td>
|
||||||
<td headers="sct_mskin">
|
<td headers="sct_mskin">
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">모바일스킨폴더</label>
|
<label for="ca_mobile_skin_dir<?php echo $i; ?>" class="sound_only">모바일스킨폴더</label>
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]">
|
<select id="ca_mobile_skin_dir<?php echo $i; ?>" name="ca_mobile_skin_dir[<?php echo $i; ?>]" class="skin_dir">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
<?php echo conv_selected_option($mskin_dir, $row['ca_mobile_skin_dir']); ?>
|
||||||
</select>
|
</select>
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
<label for="ca_mobile_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]">
|
<select id="ca_mobile_skin<?php echo $i; ?>" name="ca_mobile_skin[<?php echo $i; ?>]" required class="required">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_MSHOP_SKIN_PATH, $row['ca_mobile_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -235,6 +248,29 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$("select.skin_dir").on("change", function() {
|
||||||
|
var type = "";
|
||||||
|
var dir = $(this).val();
|
||||||
|
if(!dir)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
var id = $(this).attr("id");
|
||||||
|
var $sel = $(this).siblings("select");
|
||||||
|
var sval = $sel.find("option:selected").val();
|
||||||
|
|
||||||
|
if(id.search("mobile") > -1)
|
||||||
|
type = "mobile";
|
||||||
|
|
||||||
|
$sel.load(
|
||||||
|
"./ajax.skinfile.php",
|
||||||
|
{ dir : dir, type : type, sval: sval }
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -17,17 +17,20 @@ for ($i=0; $i<count($_POST['ca_id']); $i++)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_category_table']}
|
$sql = " update {$g5['g5_shop_category_table']}
|
||||||
set ca_name = '{$_POST['ca_name'][$i]}',
|
set ca_name = '{$_POST['ca_name'][$i]}',
|
||||||
ca_mb_id = '{$_POST['ca_mb_id'][$i]}',
|
ca_mb_id = '{$_POST['ca_mb_id'][$i]}',
|
||||||
ca_img_width = '{$_POST['ca_img_width'][$i]}',
|
ca_img_width = '{$_POST['ca_img_width'][$i]}',
|
||||||
ca_list_mod = '{$_POST['ca_list_mod'][$i]}',
|
ca_list_mod = '{$_POST['ca_list_mod'][$i]}',
|
||||||
ca_cert_use = '{$_POST['ca_cert_use'][$i]}',
|
ca_cert_use = '{$_POST['ca_cert_use'][$i]}',
|
||||||
ca_use = '{$_POST['ca_use'][$i]}',
|
ca_use = '{$_POST['ca_use'][$i]}',
|
||||||
ca_skin = '{$_POST['ca_skin'][$i]}',
|
ca_skin = '{$_POST['ca_skin'][$i]}',
|
||||||
ca_img_height = '{$_POST['ca_img_height'][$i]}',
|
ca_mobile_skin = '{$_POST['ca_mobile_skin'][$i]}',
|
||||||
ca_list_row = '{$_POST['ca_list_row'][$i]}',
|
ca_skin_dir = '{$_POST['ca_skin_dir'][$i]}',
|
||||||
ca_adult_use = '{$_POST['ca_adult_use'][$i]}',
|
ca_mobile_skin_dir = '{$_POST['ca_mobile_skin_dir'][$i]}',
|
||||||
ca_stock_qty = '{$_POST['ca_stock_qty'][$i]}'
|
ca_img_height = '{$_POST['ca_img_height'][$i]}',
|
||||||
|
ca_list_row = '{$_POST['ca_list_row'][$i]}',
|
||||||
|
ca_adult_use = '{$_POST['ca_adult_use'][$i]}',
|
||||||
|
ca_stock_qty = '{$_POST['ca_stock_qty'][$i]}'
|
||||||
where ca_id = '{$_POST['ca_id'][$i]}' ";
|
where ca_id = '{$_POST['ca_id'][$i]}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,8 @@ DROP TABLE IF EXISTS `g5_shop_category`;
|
|||||||
CREATE TABLE IF NOT EXISTS `g5_shop_category` (
|
CREATE TABLE IF NOT EXISTS `g5_shop_category` (
|
||||||
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
||||||
`ca_name` varchar(255) NOT NULL DEFAULT '',
|
`ca_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`ca_skin_dir` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`ca_mobile_skin_dir` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_skin` varchar(255) NOT NULL DEFAULT '',
|
`ca_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_mobile_skin` varchar(255) NOT NULL DEFAULT '',
|
`ca_mobile_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_img_width` int(11) NOT NULL DEFAULT '0',
|
`ca_img_width` int(11) NOT NULL DEFAULT '0',
|
||||||
@ -363,6 +365,8 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item` (
|
|||||||
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
||||||
`ca_id2` varchar(255) NOT NULL DEFAULT '',
|
`ca_id2` varchar(255) NOT NULL DEFAULT '',
|
||||||
`ca_id3` varchar(255) NOT NULL DEFAULT '',
|
`ca_id3` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`it_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`it_mobile_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`it_name` varchar(255) NOT NULL DEFAULT '',
|
`it_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
`it_mobile_name` varchar(255) NOT NULL DEFAULT '',
|
`it_mobile_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
`it_maker` varchar(255) NOT NULL DEFAULT '',
|
`it_maker` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
|||||||
@ -151,9 +151,9 @@ class item_list
|
|||||||
function set_list_skin($list_skin) {
|
function set_list_skin($list_skin) {
|
||||||
global $default;
|
global $default;
|
||||||
if ($this->is_mobile) {
|
if ($this->is_mobile) {
|
||||||
$this->list_skin = $list_skin ? $list_skin : $default['de_mobile_type'.$this->type.'_list_skin'];
|
$this->list_skin = $list_skin ? $list_skin : G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_type'.$this->type.'_list_skin'];
|
||||||
} else {
|
} else {
|
||||||
$this->list_skin = $list_skin ? $list_skin : $default['de_type'.$this->type.'_list_skin'];
|
$this->list_skin = $list_skin ? $list_skin : G5_SHOP_SKIN_PATH.'/'.$default['de_type'.$this->type.'_list_skin'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,11 +311,7 @@ class item_list
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->is_mobile) {
|
$file = $this->list_skin;
|
||||||
$file = G5_MSHOP_SKIN_PATH."/{$this->list_skin}";
|
|
||||||
} else {
|
|
||||||
$file = G5_SHOP_SKIN_PATH."/{$this->list_skin}";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->list_skin == "") {
|
if ($this->list_skin == "") {
|
||||||
return $this->count."번 item_list() 의 스킨파일이 지정되지 않았습니다.";
|
return $this->count."번 item_list() 의 스킨파일이 지정되지 않았습니다.";
|
||||||
|
|||||||
@ -42,7 +42,7 @@ if (file_exists($list_file))
|
|||||||
// 시작 레코드 구함
|
// 시작 레코드 구함
|
||||||
$from_record = ($page - 1) * $items;
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
$list = new item_list($ev['ev_mobile_skin'], $ev['ev_mobile_list_mod'], 1, $ev['ev_mobile_img_width'], $ev['ev_mobile_img_height']);
|
$list = new item_list(G5_MSHOP_SKIN_PATH.'/'.$ev['ev_mobile_skin'], $ev['ev_mobile_list_mod'], 1, $ev['ev_mobile_img_width'], $ev['ev_mobile_img_height']);
|
||||||
$list->set_event($ev['ev_id']);
|
$list->set_event($ev['ev_id']);
|
||||||
$list->set_is_page(true);
|
$list->set_is_page(true);
|
||||||
$list->set_mobile(true);
|
$list->set_mobile(true);
|
||||||
|
|||||||
@ -21,7 +21,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||||
$sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use
|
$sql = " select ca_mobile_skin_dir, ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use
|
||||||
from {$g5['g5_shop_category_table']}
|
from {$g5['g5_shop_category_table']}
|
||||||
where ca_id = '{$it['ca_id']}' ";
|
where ca_id = '{$it['ca_id']}' ";
|
||||||
$ca = sql_fetch($sql);
|
$ca = sql_fetch($sql);
|
||||||
@ -145,6 +145,36 @@ if($is_orderable) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 스킨경로
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
$ca_dir_check = true;
|
||||||
|
|
||||||
|
if($it['it_mobile_skin']) {
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_mobile_skin'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(is_file($form_skin_file))
|
||||||
|
$ca_dir_check = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($ca_dir_check) {
|
||||||
|
if($ca['ca_mobile_skin_dir']) {
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(!is_file($skin_file))
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
} else {
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||||
|
|
||||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
@ -152,7 +182,10 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
// 분류 위치
|
// 분류 위치
|
||||||
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
||||||
$ca_id = $it['ca_id'];
|
$ca_id = $it['ca_id'];
|
||||||
include G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
|
$nav_skin = $skin_dir.'/navigation.skin.php';
|
||||||
|
if(!is_file($nav_skin))
|
||||||
|
$nav_skin = G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
|
||||||
|
include $nav_skin;
|
||||||
|
|
||||||
// 상단 HTML
|
// 상단 HTML
|
||||||
echo '<div id="sit_hhtml">'.stripslashes($it['it_mobile_head_html']).'</div>';
|
echo '<div id="sit_hhtml">'.stripslashes($it['it_mobile_head_html']).'</div>';
|
||||||
@ -173,7 +206,7 @@ else
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 상품 구입폼
|
// 상품 구입폼
|
||||||
include_once(G5_MSHOP_SKIN_PATH.'/item.form.skin.php');
|
include_once($skin_dir.'/item.form.skin.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -21,7 +21,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||||
$sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use
|
$sql = " select ca_mobile_skin_dir, ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use
|
||||||
from {$g5['g5_shop_category_table']}
|
from {$g5['g5_shop_category_table']}
|
||||||
where ca_id = '{$it['ca_id']}' ";
|
where ca_id = '{$it['ca_id']}' ";
|
||||||
$ca = sql_fetch($sql);
|
$ca = sql_fetch($sql);
|
||||||
|
|||||||
@ -20,15 +20,30 @@ $g5['title'] = $ca['ca_name'].' 상품리스트';
|
|||||||
|
|
||||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
|
|
||||||
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
|
// 스킨경로
|
||||||
//if ($skin) $ca[ca_skin] = $skin;
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
|
||||||
|
if($ca['ca_mobile_skin_dir']) {
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$skin_file = $skin_dir.'/'.$ca['ca_mobile_skin'];
|
||||||
|
|
||||||
|
if(!is_file($skin_file))
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
} else {
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="sct">
|
<div id="sct">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$nav_ca_id = $ca_id;
|
$nav_skin = $skin_dir.'/navigation.skin.php';
|
||||||
include G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
|
if(!is_file($nav_skin))
|
||||||
|
$nav_skin = G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||||
|
include $nav_skin;
|
||||||
|
|
||||||
// 상단 HTML
|
// 상단 HTML
|
||||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_mobile_head_html']).'</div>';
|
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_mobile_head_html']).'</div>';
|
||||||
@ -41,10 +56,14 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
|
|
||||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||||
|
|
||||||
// 리스트 유형별로 출력
|
// 리스트 스킨
|
||||||
$list_file = G5_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
|
$skin_file = $skin_dir.'/'.$ca['ca_mobile_skin'];
|
||||||
if (file_exists($list_file)) {
|
|
||||||
include G5_MSHOP_SKIN_PATH.'/list.sort.skin.php';
|
if (file_exists($skin_file)) {
|
||||||
|
$sort_skin = $skin_dir.'/list.sort.skin.php';
|
||||||
|
if(!is_file($sort_skin))
|
||||||
|
$sort_skin = G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||||
|
include $sort_skin;
|
||||||
|
|
||||||
// 총몇개
|
// 총몇개
|
||||||
$items = $ca['ca_mobile_list_mod'];
|
$items = $ca['ca_mobile_list_mod'];
|
||||||
@ -53,7 +72,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
// 시작 레코드 구함
|
// 시작 레코드 구함
|
||||||
$from_record = ($page - 1) * $items;
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
$list = new item_list($ca['ca_mobile_skin'], $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
$list = new item_list($skin_file, $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||||
$list->set_category($ca['ca_id'], 1);
|
$list->set_category($ca['ca_id'], 1);
|
||||||
$list->set_category($ca['ca_id'], 2);
|
$list->set_category($ca['ca_id'], 2);
|
||||||
$list->set_category($ca['ca_id'], 3);
|
$list->set_category($ca['ca_id'], 3);
|
||||||
@ -77,14 +96,12 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div class="sct_nofile">'.$ca['ca_mobile_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
echo '<div class="sct_nofile">'.str_replace(G5_PATH.'/', '', $skin_file).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$qstr1 .= 'ca_id='.$ca_id;
|
$qstr1 .= 'ca_id='.$ca_id;
|
||||||
if($skin)
|
|
||||||
$qstr1 .= '&skin='.$skin;
|
|
||||||
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
||||||
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
|
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -44,7 +44,7 @@ if (file_exists($list_file)) {
|
|||||||
|
|
||||||
$list = new item_list();
|
$list = new item_list();
|
||||||
$list->set_type($type);
|
$list->set_type($type);
|
||||||
$list->set_list_skin($skin);
|
$list->set_list_skin($list_file);
|
||||||
$list->set_list_mod($list_mod);
|
$list->set_list_mod($list_mod);
|
||||||
$list->set_list_row($list_row);
|
$list->set_list_row($list_row);
|
||||||
$list->set_img_size($img_width, $img_height);
|
$list->set_img_size($img_width, $img_height);
|
||||||
|
|||||||
@ -156,7 +156,7 @@ $total_page = ceil($total_count / $items); // 전체 페이지 계산
|
|||||||
$list_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_search_list_skin'];
|
$list_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_search_list_skin'];
|
||||||
if (file_exists($list_file)) {
|
if (file_exists($list_file)) {
|
||||||
|
|
||||||
$list = new item_list($default['de_mobile_search_list_skin'], $default['de_mobile_search_list_mod'], 1, $default['de_mobile_search_img_width'], $default['de_mobile_search_img_height']);
|
$list = new item_list($list_file, $default['de_mobile_search_list_mod'], 1, $default['de_mobile_search_img_width'], $default['de_mobile_search_img_height']);
|
||||||
$list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items ");
|
$list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items ");
|
||||||
$list->set_is_page(true);
|
$list->set_is_page(true);
|
||||||
$list->set_mobile(true);
|
$list->set_mobile(true);
|
||||||
|
|||||||
@ -3,15 +3,49 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||||
|
|
||||||
|
// 스킨경로
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
$ca_dir_check = true;
|
||||||
|
|
||||||
|
if($it['it_mobile_skin']) {
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_mobile_skin'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(is_file($form_skin_file))
|
||||||
|
$ca_dir_check = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($ca_dir_check) {
|
||||||
|
if($ca['ca_mobile_skin_dir']) {
|
||||||
|
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(!is_file($skin_file))
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
} else {
|
||||||
|
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1 id="win_title">관련상품</h1>
|
<h1 id="win_title">관련상품</h1>
|
||||||
|
|
||||||
<div class="sct_wrap">
|
<div class="sct_wrap">
|
||||||
<?php
|
<?php
|
||||||
|
$rel_skin_file = $skin_dir.'/'.$default['de_mobile_rel_list_skin'];
|
||||||
|
if(!is_file($rel_skin_file))
|
||||||
|
$rel_skin_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_rel_list_skin'];
|
||||||
|
|
||||||
$sql = " select b.* 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['it_id']}' and b.it_use='1' ";
|
$sql = " select b.* 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['it_id']}' and b.it_use='1' ";
|
||||||
|
|
||||||
$list = new item_list($default['de_mobile_rel_list_skin'], 1, 1, $default['de_mobile_rel_img_width'], $default['de_mobile_rel_img_height']);
|
$list = new item_list($rel_skin_file, 1, 1, $default['de_mobile_rel_img_width'], $default['de_mobile_rel_img_height']);
|
||||||
$list->set_mobile(true);
|
$list->set_mobile(true);
|
||||||
$list->set_query($sql);
|
$list->set_query($sql);
|
||||||
$list->set_view('sns', true);
|
$list->set_view('sns', true);
|
||||||
|
|||||||
@ -59,7 +59,7 @@ if (file_exists($list_file))
|
|||||||
// 시작 레코드 구함
|
// 시작 레코드 구함
|
||||||
$from_record = ($page - 1) * $items;
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
$list = new item_list($ev['ev_skin'], $ev['ev_list_mod'], $ev['ev_list_row'], $ev['ev_img_width'], $ev['ev_img_height']);
|
$list = new item_list(G5_SHOP_SKIN_PATH.'/'.$ev['ev_skin'], $ev['ev_list_mod'], $ev['ev_list_row'], $ev['ev_img_width'], $ev['ev_img_height']);
|
||||||
$list->set_event($ev['ev_id']);
|
$list->set_event($ev['ev_id']);
|
||||||
$list->set_is_page(true);
|
$list->set_is_page(true);
|
||||||
$list->set_order_by($order_by);
|
$list->set_order_by($order_by);
|
||||||
|
|||||||
@ -21,7 +21,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||||
$sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use from {$g5['g5_shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
$sql = " select ca_skin_dir, ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use from {$g5['g5_shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
||||||
$ca = sql_fetch($sql);
|
$ca = sql_fetch($sql);
|
||||||
|
|
||||||
// 본인인증, 성인인증체크
|
// 본인인증, 성인인증체크
|
||||||
@ -57,6 +57,36 @@ if ($_COOKIE['ck_it_id'] != $it_id) {
|
|||||||
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 스킨경로
|
||||||
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
$ca_dir_check = true;
|
||||||
|
|
||||||
|
if($it['it_skin']) {
|
||||||
|
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_skin'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(is_file($form_skin_file))
|
||||||
|
$ca_dir_check = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($ca_dir_check) {
|
||||||
|
if($ca['ca_skin_dir']) {
|
||||||
|
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||||
|
|
||||||
|
if(!is_file($skin_file))
|
||||||
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
} else {
|
||||||
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||||
|
|
||||||
// 분류 상단 코드가 있으면 출력하고 없으면 기본 상단 코드 출력
|
// 분류 상단 코드가 있으면 출력하고 없으면 기본 상단 코드 출력
|
||||||
@ -68,10 +98,16 @@ else
|
|||||||
// 분류 위치
|
// 분류 위치
|
||||||
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
||||||
$ca_id = $it['ca_id'];
|
$ca_id = $it['ca_id'];
|
||||||
include G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
$nav_skin = $skin_dir.'/navigation.skin.php';
|
||||||
|
if(!is_file($nav_skin))
|
||||||
|
$nav_skin = G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||||
|
include $nav_skin;
|
||||||
|
|
||||||
// 이 분류에 속한 하위분류 출력
|
// 이 분류에 속한 하위분류 출력
|
||||||
include G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
$cate_skin = $skin_dir.'/listcategory.skin.php';
|
||||||
|
if(!is_file($cate_skin))
|
||||||
|
$cate_skin = G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
||||||
|
include $cate_skin;
|
||||||
|
|
||||||
if ($is_admin) {
|
if ($is_admin) {
|
||||||
echo '<div class="sit_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
echo '<div class="sit_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
||||||
@ -194,12 +230,15 @@ function pg_anchor($anc_id) {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 상품 구입폼
|
// 상품 구입폼
|
||||||
include_once(G5_SHOP_SKIN_PATH.'/item.form.skin.php');
|
include_once($skin_dir.'/item.form.skin.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// 상품 상세정보
|
// 상품 상세정보
|
||||||
include_once(G5_SHOP_SKIN_PATH.'/item.info.skin.php');
|
$info_skin = $skin_dir.'/item.info.skin.php';
|
||||||
|
if(!is_file($info_skin))
|
||||||
|
$info_skin = G5_SHOP_SKIN_PATH.'/item.info.skin.php';
|
||||||
|
include $info_skin;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -25,8 +25,21 @@ if ($ca['ca_include_head'])
|
|||||||
else
|
else
|
||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
|
|
||||||
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
|
// 스킨경로
|
||||||
//if ($skin) $ca[ca_skin] = $skin;
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
|
||||||
|
if($ca['ca_skin_dir']) {
|
||||||
|
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||||
|
|
||||||
|
if(is_dir($skin_dir)) {
|
||||||
|
$skin_file = $skin_dir.'/'.$ca['ca_skin'];
|
||||||
|
|
||||||
|
if(!is_file($skin_file))
|
||||||
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
} else {
|
||||||
|
$skin_dir = G5_SHOP_SKIN_PATH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($is_admin)
|
if ($is_admin)
|
||||||
echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
|
echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
|
||||||
@ -41,13 +54,18 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
|||||||
<div id="sct">
|
<div id="sct">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$nav_ca_id = $ca_id;
|
$nav_skin = $skin_dir.'/navigation.skin.php';
|
||||||
include G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
if(!is_file($nav_skin))
|
||||||
|
$nav_skin = G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||||
|
include $nav_skin;
|
||||||
|
|
||||||
// 상단 HTML
|
// 상단 HTML
|
||||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_head_html']).'</div>';
|
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_head_html']).'</div>';
|
||||||
|
|
||||||
include G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
$cate_skin = $skin_dir.'/listcategory.skin.php';
|
||||||
|
if(!is_file($cate_skin))
|
||||||
|
$cate_skin = G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
||||||
|
include $cate_skin;
|
||||||
|
|
||||||
// 상품 출력순서가 있다면
|
// 상품 출력순서가 있다면
|
||||||
if ($sort != "")
|
if ($sort != "")
|
||||||
@ -57,16 +75,23 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
|||||||
|
|
||||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||||
|
|
||||||
// 리스트 유형별로 출력
|
// 리스트 스킨
|
||||||
$list_file = G5_SHOP_SKIN_PATH.'/'.$ca['ca_skin'];
|
$skin_file = $skin_dir.'/'.$ca['ca_skin'];
|
||||||
if (file_exists($list_file)) {
|
|
||||||
|
if (file_exists($skin_file)) {
|
||||||
|
|
||||||
echo '<div id="sct_sortlst">';
|
echo '<div id="sct_sortlst">';
|
||||||
include G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
$sort_skin = $skin_dir.'/list.sort.skin.php';
|
||||||
|
if(!is_file($sort_skin))
|
||||||
|
$sort_skin = G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||||
|
include $sort_skin;
|
||||||
|
|
||||||
// 상품 보기 타입 변경 버튼
|
// 상품 보기 타입 변경 버튼
|
||||||
include G5_SHOP_SKIN_PATH.'/list.sub.skin.php';
|
$sub_skin = $skin_dir.'/list.sub.skin.php';
|
||||||
echo '</div>';
|
if(!is_file($sub_skin))
|
||||||
|
$sub_skin = G5_SHOP_SKIN_PATH.'/list.sub.skin.php';
|
||||||
|
include $sub_skin;
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||||
$items = $ca['ca_list_mod'] * $ca['ca_list_row'];
|
$items = $ca['ca_list_mod'] * $ca['ca_list_row'];
|
||||||
@ -75,7 +100,7 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
|||||||
// 시작 레코드 구함
|
// 시작 레코드 구함
|
||||||
$from_record = ($page - 1) * $items;
|
$from_record = ($page - 1) * $items;
|
||||||
|
|
||||||
$list = new item_list($ca['ca_skin'], $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);
|
$list = new item_list($skin_file, $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);
|
||||||
$list->set_category($ca['ca_id'], 1);
|
$list->set_category($ca['ca_id'], 1);
|
||||||
$list->set_category($ca['ca_id'], 2);
|
$list->set_category($ca['ca_id'], 2);
|
||||||
$list->set_category($ca['ca_id'], 3);
|
$list->set_category($ca['ca_id'], 3);
|
||||||
@ -99,14 +124,12 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<div class="sct_nofile">'.$ca['ca_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
echo '<div class="sct_nofile">'.str_replace(G5_PATH.'/', '', $skin_file).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$qstr1 .= 'ca_id='.$ca_id;
|
$qstr1 .= 'ca_id='.$ca_id;
|
||||||
if($skin)
|
|
||||||
$qstr1 .= '&skin='.$skin;
|
|
||||||
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
|
||||||
echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
|
echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -48,7 +48,7 @@ if (file_exists($list_file)) {
|
|||||||
|
|
||||||
$list = new item_list();
|
$list = new item_list();
|
||||||
$list->set_type($type);
|
$list->set_type($type);
|
||||||
$list->set_list_skin($skin);
|
$list->set_list_skin($list_file);
|
||||||
$list->set_list_mod($list_mod);
|
$list->set_list_mod($list_mod);
|
||||||
$list->set_list_row($list_row);
|
$list->set_list_row($list_row);
|
||||||
$list->set_img_size($img_width, $img_height);
|
$list->set_img_size($img_width, $img_height);
|
||||||
|
|||||||
@ -164,7 +164,7 @@ if ($is_admin) {
|
|||||||
$list_file = G5_SHOP_SKIN_PATH.'/'.$default['de_search_list_skin'];
|
$list_file = G5_SHOP_SKIN_PATH.'/'.$default['de_search_list_skin'];
|
||||||
if (file_exists($list_file)) {
|
if (file_exists($list_file)) {
|
||||||
|
|
||||||
$list = new item_list($default['de_search_list_skin'], $default['de_search_list_mod'], $default['de_search_list_row'], $default['de_search_img_width'], $default['de_search_img_height']);
|
$list = new item_list($list_file, $default['de_search_list_mod'], $default['de_search_list_row'], $default['de_search_img_width'], $default['de_search_img_height']);
|
||||||
$list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items ");
|
$list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items ");
|
||||||
$list->set_is_page(true);
|
$list->set_is_page(true);
|
||||||
$list->set_view('it_img', true);
|
$list->set_view('it_img', true);
|
||||||
|
|||||||
@ -107,8 +107,12 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
|
|||||||
|
|
||||||
<div class="sct_wrap">
|
<div class="sct_wrap">
|
||||||
<?php
|
<?php
|
||||||
|
$rel_skin_file = $skin_dir.'/'.$default['de_rel_list_skin'];
|
||||||
|
if(!is_file($rel_skin_file))
|
||||||
|
$rel_skin_file = G5_SHOP_SKIN_PATH.'/'.$default['de_rel_list_skin'];
|
||||||
|
|
||||||
$sql = " select b.* 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['it_id']}' and b.it_use='1' ";
|
$sql = " select b.* 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['it_id']}' and b.it_use='1' ";
|
||||||
$list = new item_list($default['de_rel_list_skin'], $default['de_rel_list_mod'], 0, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
$list = new item_list($rel_skin_file, $default['de_rel_list_mod'], 0, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||||
$list->set_query($sql);
|
$list->set_query($sql);
|
||||||
echo $list->run();
|
echo $list->run();
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user