영카트 5.4 버전 내용 적용
This commit is contained in:
344
theme/basic/shop/ajax.action.php
Normal file
344
theme/basic/shop/ajax.action.php
Normal file
@ -0,0 +1,344 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$action = isset($_REQUEST['action']) ? preg_replace('/[^a-z0-9_]/i', '', $_REQUEST['action']) : '';
|
||||
|
||||
switch ($action) {
|
||||
case 'refresh_cart' :
|
||||
|
||||
// 보관기간이 지난 상품 삭제
|
||||
cart_item_clean();
|
||||
|
||||
$s_cart_id = preg_replace('/[^a-z0-9_\-]/i', '', get_session('ss_cart_id'));
|
||||
|
||||
// 선택필드 초기화
|
||||
if( $s_cart_id ){
|
||||
$sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
include_once(G5_SHOP_SKIN_PATH.'/boxcart.skin.php'); // 장바구니
|
||||
break;
|
||||
|
||||
case 'refresh_wish' :
|
||||
|
||||
if( !$is_member ){
|
||||
die('');
|
||||
}
|
||||
|
||||
include_once(G5_SHOP_SKIN_PATH.'/boxwish.skin.php'); // 위시리스트
|
||||
break;
|
||||
|
||||
case 'cart_delete' :
|
||||
|
||||
// 보관기간이 지난 상품 삭제
|
||||
cart_item_clean();
|
||||
|
||||
$s_cart_id = get_session('ss_cart_id');
|
||||
|
||||
// 장바구니 상품삭제
|
||||
$sql = " delete from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '".$s_cart_id."'
|
||||
and it_id = '{$it_id}' ";
|
||||
sql_query($sql);
|
||||
|
||||
die(json_encode(array('error' => '')));
|
||||
|
||||
break;
|
||||
case 'cart_update' :
|
||||
|
||||
// 보관기간이 지난 상품 삭제
|
||||
cart_item_clean();
|
||||
|
||||
// cart id 설정
|
||||
set_cart_id($sw_direct);
|
||||
|
||||
if($sw_direct)
|
||||
$tmp_cart_id = get_session('ss_cart_direct');
|
||||
else
|
||||
$tmp_cart_id = get_session('ss_cart_id');
|
||||
|
||||
// 브라우저에서 쿠키를 허용하지 않은 경우라고 볼 수 있음.
|
||||
if (!$tmp_cart_id)
|
||||
{
|
||||
die(json_encode(array('error' => '더 이상 작업을 진행할 수 없습니다.\n\n브라우저의 쿠키 허용을 사용하지 않음으로 설정한것 같습니다.\n\n브라우저의 인터넷 옵션에서 쿠키 허용을 사용으로 설정해 주십시오.\n\n그래도 진행이 되지 않는다면 쇼핑몰 운영자에게 문의 바랍니다.')));
|
||||
}
|
||||
|
||||
$tmp_cart_id = preg_replace('/[^a-z0-9_\-]/i', '', $tmp_cart_id);
|
||||
|
||||
// 레벨(권한)이 상품구입 권한보다 작다면 상품을 구입할 수 없음.
|
||||
if ($member['mb_level'] < $default['de_level_sell'])
|
||||
{
|
||||
die(json_encode(array('error' => '상품을 구입할 수 있는 권한이 없습니다.')));
|
||||
}
|
||||
|
||||
$count = count($_POST['it_id']);
|
||||
if ($count < 1)
|
||||
die(json_encode(array('error' => '장바구니에 담을 상품을 선택하여 주십시오.')));
|
||||
|
||||
$ct_count = 0;
|
||||
for($i=0; $i<$count; $i++) {
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$opt_count = count($_POST['io_id'][$it_id]);
|
||||
|
||||
// 상품정보
|
||||
$it = get_shop_item($it_id, false);
|
||||
if(!$it['it_id'])
|
||||
die(json_encode(array('error' => '상품정보가 존재하지 않습니다.')));
|
||||
|
||||
// 옵션정보를 얻어서 배열에 저장
|
||||
$opt_list = array();
|
||||
$sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '$it_id' order by io_no asc ";
|
||||
$result = sql_query($sql);
|
||||
$lst_count = 0;
|
||||
for($k=0; $row=sql_fetch_array($result); $k++) {
|
||||
$opt_list[$row['io_type']][$row['io_id']]['id'] = $row['io_id'];
|
||||
$opt_list[$row['io_type']][$row['io_id']]['use'] = $row['io_use'];
|
||||
$opt_list[$row['io_type']][$row['io_id']]['price'] = $row['io_price'];
|
||||
$opt_list[$row['io_type']][$row['io_id']]['stock'] = $row['io_stock_qty'];
|
||||
|
||||
// 선택옵션 개수
|
||||
if(!$row['io_type'])
|
||||
$lst_count++;
|
||||
}
|
||||
|
||||
if($lst_count > 0 && !trim($_POST['io_id'][$it_id][$i]) && $_POST['io_type'][$it_id][$i] == 0)
|
||||
die(json_encode(array('error' => '상품의 선택옵션을 선택해 주십시오.')));
|
||||
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
if ($_POST['ct_qty'][$it_id][$k] < 1)
|
||||
die(json_encode(array('error' => '수량은 1 이상 입력해 주십시오.')));
|
||||
}
|
||||
|
||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||
if($i == 0 && $sw_direct)
|
||||
sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
|
||||
|
||||
// 최소, 최대 수량 체크
|
||||
if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) {
|
||||
$sum_qty = 0;
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
if($_POST['io_type'][$it_id][$k] == 0)
|
||||
$sum_qty += $_POST['ct_qty'][$it_id][$k];
|
||||
}
|
||||
|
||||
if($it['it_buy_min_qty'] > 0 && $sum_qty < $it['it_buy_min_qty'])
|
||||
die(json_encode(array('error' => $it['it_name'].'의 선택옵션 개수 총합 '.number_format($it['it_buy_min_qty']).'개 이상 주문해 주십시오.')));
|
||||
|
||||
if($it['it_buy_max_qty'] > 0 && $sum_qty > $it['it_buy_max_qty'])
|
||||
die(json_encode(array('error' => $it['it_name'].'의 선택옵션 개수 총합 '.number_format($it['it_buy_max_qty']).'개 이하로 주문해 주십시오.')));
|
||||
|
||||
// 기존에 장바구니에 담긴 상품이 있는 경우에 최대 구매수량 체크
|
||||
if($it['it_buy_max_qty'] > 0) {
|
||||
$sql4 = " select sum(ct_qty) as ct_sum
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and it_id = '$it_id'
|
||||
and io_type = '0'
|
||||
and ct_status = '쇼핑' ";
|
||||
$row4 = sql_fetch($sql4);
|
||||
|
||||
if(($sum_qty + $row4['ct_sum']) > $it['it_buy_max_qty'])
|
||||
die(json_encode(array('error' => $it['it_name'].'의 선택옵션 개수 총합 '.number_format($it['it_buy_max_qty']).'개 이하로 주문해 주십시오.', './cart.php')));
|
||||
}
|
||||
}
|
||||
|
||||
// 장바구니에 Insert
|
||||
// 바로구매일 경우 장바구니가 체크된것으로 강제 설정
|
||||
$ct_select = 0;
|
||||
$ct_select_time = '0000-00-00 00:00:00';
|
||||
|
||||
// 장바구니에 Insert
|
||||
$comma = '';
|
||||
$sql = " INSERT INTO {$g5['g5_shop_cart_table']}
|
||||
( od_id, mb_id, it_id, it_name, it_sc_type, it_sc_method, it_sc_price, it_sc_minimum, it_sc_qty, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select, ct_select_time )
|
||||
VALUES ";
|
||||
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]);
|
||||
$io_type = preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]);
|
||||
$io_value = $_POST['io_value'][$it_id][$k];
|
||||
|
||||
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
|
||||
if($lst_count && $io_id == '')
|
||||
continue;
|
||||
|
||||
// 구매할 수 없는 옵션은 건너뜀
|
||||
if($io_id && !$opt_list[$io_type][$io_id]['use'])
|
||||
continue;
|
||||
|
||||
$io_price = $opt_list[$io_type][$io_id]['price'];
|
||||
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
|
||||
|
||||
// 구매가격이 음수인지 체크
|
||||
if($io_type) {
|
||||
if((int)$io_price < 0)
|
||||
die(json_encode(array('error' => '구매금액이 음수인 상품은 구매할 수 없습니다.')));
|
||||
} else {
|
||||
if((int)$it['it_price'] + (int)$io_price < 0)
|
||||
die(json_encode(array('error' => '구매금액이 음수인 상품은 구매할 수 없습니다.')));
|
||||
}
|
||||
|
||||
// 동일옵션의 상품이 있으면 수량 더함
|
||||
$sql2 = " select ct_id, io_type, ct_qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and it_id = '$it_id'
|
||||
and io_id = '$io_id'
|
||||
and ct_status = '쇼핑' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if($row2['ct_id']) {
|
||||
// 재고체크
|
||||
$tmp_ct_qty = $row2['ct_qty'];
|
||||
if(!$io_id)
|
||||
$tmp_it_stock_qty = get_it_stock_qty($it_id);
|
||||
else
|
||||
$tmp_it_stock_qty = get_option_stock_qty($it_id, $io_id, $row2['io_type']);
|
||||
|
||||
if ($tmp_ct_qty + $ct_qty > $tmp_it_stock_qty)
|
||||
{
|
||||
die(json_encode(array('error' => $io_value." 의 재고수량이 부족합니다.\n\n현재 재고수량 : " . number_format($tmp_it_stock_qty) . " 개")));
|
||||
}
|
||||
|
||||
$sql3 = " update {$g5['g5_shop_cart_table']}
|
||||
set ct_qty = ct_qty + '$ct_qty'
|
||||
where ct_id = '{$row2['ct_id']}' ";
|
||||
sql_query($sql3);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 포인트
|
||||
$point = 0;
|
||||
if($config['cf_use_point']) {
|
||||
if($io_type == 0) {
|
||||
$point = get_item_point($it, $io_id);
|
||||
} else {
|
||||
$point = $it['it_supply_point'];
|
||||
}
|
||||
|
||||
if($point < 0)
|
||||
$point = 0;
|
||||
}
|
||||
|
||||
// 배송비결제
|
||||
if($it['it_sc_type'] == 1)
|
||||
$ct_send_cost = 2; // 무료
|
||||
else if($it['it_sc_type'] > 1 && $it['it_sc_method'] == 1)
|
||||
$ct_send_cost = 1; // 착불
|
||||
|
||||
$io_value = sql_real_escape_string(strip_tags($io_value));
|
||||
|
||||
$sql .= $comma."( '$tmp_cart_id', '{$member['mb_id']}', '{$it['it_id']}', '".addslashes($it['it_name'])."', '{$it['it_sc_type']}', '{$it['it_sc_method']}', '{$it['it_sc_price']}', '{$it['it_sc_minimum']}', '{$it['it_sc_qty']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G5_TIME_YMDHIS."', '".$_SERVER['REMOTE_ADDR']."', '$ct_send_cost', '$sw_direct', '$ct_select', '$ct_select_time' )";
|
||||
$comma = ' , ';
|
||||
$ct_count++;
|
||||
}
|
||||
|
||||
if($ct_count > 0)
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
die(json_encode(array('error' => '')));
|
||||
break;
|
||||
|
||||
case 'get_item_option' :
|
||||
|
||||
$it = get_shop_item($it_id, true);
|
||||
|
||||
if(!$it['it_id'])
|
||||
die(json_encode(array('error' => '상품정보가 존재하지 않습니다.')));
|
||||
|
||||
// 상품품절체크
|
||||
$is_soldout = is_soldout($it['it_id']);
|
||||
|
||||
// 주문가능체크
|
||||
$is_orderable = true;
|
||||
if(!$it['it_use'] || $it['it_tel_inq'] || $is_soldout)
|
||||
die(json_encode(array('error' => '상품을 구매할 수 없습니다.')));
|
||||
|
||||
$item_ct_qty = 1;
|
||||
if($it['it_buy_min_qty'] > 1)
|
||||
$item_ct_qty = $it['it_buy_min_qty'];
|
||||
|
||||
$action_url = G5_THEME_SHOP_URL.'/ajax.action.php';
|
||||
|
||||
$is_option = 0;
|
||||
$option_item = get_shop_item_options($it['it_id'], $it['it_option_subject'], 0);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<div class="sct_cartop_wr">
|
||||
<form name="fcart" method="post" action="<?php echo $action_url; ?>">
|
||||
<input type="hidden" name="action" value="cart_update">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[]" value="<?php echo stripslashes($it['it_name']); ?>">
|
||||
<input type="hidden" name="it_price[]" value="<?php echo get_price($it); ?>">
|
||||
<input type="hidden" name="it_stock[]" value="<?php echo get_it_stock_qty($it['it_id']); ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $it['it_id']; ?>][]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $it['it_id']; ?>][]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $it['it_id']; ?>][]" value="">
|
||||
<input type="hidden" name="io_price[<?php echo $it['it_id']; ?>][]" value="">
|
||||
<input type="hidden" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $item_ct_qty; ?>">
|
||||
<input type="hidden" name="sw_direct" value="0">
|
||||
<?php
|
||||
if($option_item) {
|
||||
$is_option = 1;
|
||||
?>
|
||||
|
||||
<?php // 선택옵션
|
||||
echo $option_item;
|
||||
?>
|
||||
|
||||
<button type="button" class="cartopt_cart_btn">장바구니 담기</button>
|
||||
<button type="button" class="cartopt_close_btn">닫기</button>
|
||||
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$result = array(
|
||||
'error' => '',
|
||||
'option' => $is_option,
|
||||
'html' => $content
|
||||
);
|
||||
|
||||
die(json_encode($result));
|
||||
|
||||
break;
|
||||
case 'wish_update' :
|
||||
|
||||
if (!$is_member)
|
||||
die('회원 전용 서비스 입니다.');
|
||||
|
||||
if(!$it_id)
|
||||
die('상품 코드가 올바르지 않습니다.');
|
||||
|
||||
// 상품정보 체크
|
||||
$row = get_shop_item($it_id, true);
|
||||
|
||||
if(!$row['it_id'])
|
||||
die('상품정보가 존재하지 않습니다.');
|
||||
|
||||
$sql = " select wi_id from {$g5['g5_shop_wish_table']}
|
||||
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if (!$row['wi_id']) {
|
||||
$sql = " insert {$g5['g5_shop_wish_table']}
|
||||
set mb_id = '{$member['mb_id']}',
|
||||
it_id = '$it_id',
|
||||
wi_time = '".G5_TIME_YMDHIS."',
|
||||
wi_ip = '".$_SERVER['REMOTE_ADDR']."' ";
|
||||
sql_query($sql);
|
||||
|
||||
die('OK');
|
||||
} else {
|
||||
die('위시리스트에 이미 등록된 상품입니다.');
|
||||
}
|
||||
|
||||
break;
|
||||
default :
|
||||
}
|
||||
?>
|
||||
@ -13,58 +13,66 @@ function get_mshop_category($ca_id, $len)
|
||||
|
||||
return $sql;
|
||||
}
|
||||
|
||||
$mshop_categories = get_shop_category_array(true);
|
||||
?>
|
||||
<div id="category">
|
||||
<button type="button" class="close_btn"><i class="fa fa-times" aria-hidden="true"></i> 카테고리<span class="sound_only">닫기</span></button>
|
||||
<h2>전체메뉴</h2>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($mshop_categories as $cate1){
|
||||
if( empty($cate1) ) continue;
|
||||
|
||||
<div class="ct_wr">
|
||||
<?php
|
||||
$mshop_ca_href = G5_SHOP_URL.'/list.php?ca_id=';
|
||||
$mshop_ca_res1 = sql_query(get_mshop_category('', 2));
|
||||
for($i=0; $mshop_ca_row1=sql_fetch_array($mshop_ca_res1); $i++) {
|
||||
if($i == 0)
|
||||
echo '<ul class="cate">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_1">
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row1['ca_id']; ?>" class="cate_li_1_a"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res2 = sql_query(get_mshop_category($mshop_ca_row1['ca_id'], 4));
|
||||
$mshop_ca_row1 = $cate1['text'];
|
||||
if($i == 0)
|
||||
echo '<ul class="cate">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_1">
|
||||
<a href="<?php echo $mshop_ca_row1['url']; ?>" class="cate_li_1_a"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php
|
||||
$j=0;
|
||||
foreach($cate1 as $key=>$cate2){
|
||||
if( empty($cate2) || $key === 'text' ) continue;
|
||||
|
||||
$mshop_ca_row2 = $cate2['text'];
|
||||
if($j == 0)
|
||||
echo '<ul class="sub_cate sub_cate1">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_2">
|
||||
<a href="<?php echo $mshop_ca_row2['url']; ?>"><?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
$j++;
|
||||
}
|
||||
|
||||
for($j=0; $mshop_ca_row2=sql_fetch_array($mshop_ca_res2); $j++) {
|
||||
if($j == 0)
|
||||
echo '<ul class="sub_cate sub_cate1">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_2">
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row2['ca_id']; ?>"><?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
if($j > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$i++;
|
||||
} // end for
|
||||
|
||||
if($j > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($i > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p class="no-cate">등록된 분류가 없습니다.</p>'.PHP_EOL;
|
||||
?>
|
||||
</div>
|
||||
if($i > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p class="no-cate">등록된 분류가 없습니다.</p>'.PHP_EOL;
|
||||
?>
|
||||
<button type="button" class="close_btn"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">카테고리 닫기</span></button>
|
||||
</div>
|
||||
|
||||
<div id="category_all_bg"></div>
|
||||
<script>
|
||||
$(function (){
|
||||
var $category = $("#category");
|
||||
|
||||
$("#menu_open").on("click", function() {
|
||||
$category.css("display","block");
|
||||
$("#category_all_bg").css("display","block");
|
||||
});
|
||||
|
||||
$("#category .close_btn").on("click", function(){
|
||||
$("#category .close_btn, #category_all_bg").on("click", function(){
|
||||
$category.css("display","none");
|
||||
$("#category_all_bg").css("display","none");
|
||||
});
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
|
||||
@ -15,13 +15,11 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
|
||||
<!-- } 메인이미지 끝 -->
|
||||
|
||||
|
||||
|
||||
<?php if($default['de_type1_list_use']) { ?>
|
||||
<!-- 히트상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<section id="idx_hit" class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<h2><a href="<?php echo shop_type_url('1'); ?>">히트상품</a></h2>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -34,41 +32,32 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
$list->set_view('star', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 히트상품 끝 -->
|
||||
<script>
|
||||
//히트상품
|
||||
$(function(){
|
||||
$('#idx_hit .smt_40').owlCarousel({
|
||||
loop:true,
|
||||
nav:true,
|
||||
autoplay:true,
|
||||
autoplayHoverPause:true,
|
||||
responsive:{
|
||||
1000:{items:5}
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type2_list_use']) { ?>
|
||||
<!-- 추천상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 추천상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxevent.skin.php'); // 이벤트 ?>
|
||||
|
||||
<?php if($default['de_type3_list_use']) { ?>
|
||||
<!-- 최신상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<h2><a href="<?php echo shop_type_url('3'); ?>">최신상품</a></h2>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -80,17 +69,43 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
$list->set_view('star', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 최신상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type2_list_use']) { ?>
|
||||
<!-- 추천상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo shop_type_url('2'); ?>">추천상품</a></h2>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
$list->set_view('star', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 추천상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxevent.skin.php'); // 이벤트 ?>
|
||||
|
||||
<?php if($default['de_type5_list_use']) { ?>
|
||||
<!-- 할인상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<h2><a href="<?php echo shop_type_url('5'); ?>">할인상품</a></h2>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -102,14 +117,13 @@ include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
$list->set_view('star', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 할인상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
@ -13,164 +13,251 @@ include_once(G5_LIB_PATH.'/visit.lib.php');
|
||||
include_once(G5_LIB_PATH.'/connect.lib.php');
|
||||
include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
add_javascript('<script src="'.G5_JS_URL.'/owlcarousel/owl.carousel.min.js"></script>', 10);
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/owlcarousel/owl.carousel.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 상단 시작 { -->
|
||||
<div id="hd">
|
||||
<h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<div id="skip_to_container"><a href="#container">본문 바로가기</a></div>
|
||||
|
||||
<?php if(defined('_INDEX_')) { // index에서만 실행
|
||||
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
|
||||
} ?>
|
||||
<div id="tnb">
|
||||
<h3>회원메뉴</h3>
|
||||
<ul>
|
||||
<?php if(G5_COMMUNITY_USE) { ?>
|
||||
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
||||
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
||||
<?php } ?>
|
||||
<li class="tnb_cart"><a href="<?php echo G5_SHOP_URL; ?>/cart.php"><i class="fa fa-shopping-cart" aria-hidden="true"></i> 장바구니</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
|
||||
<?php if ($is_member) { ?>
|
||||
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php">정보수정</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php?url=shop">로그아웃</a></li>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li class="tnb_admin"><a href="<?php echo G5_ADMIN_URL; ?>/shop_admin/"><b>관리자</b></a></li>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/register.php">회원가입</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo $urlencode; ?>"><b>로그인</b></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
} ?>
|
||||
|
||||
<div id="tnb">
|
||||
<div class="inner">
|
||||
<ul id="hd_define">
|
||||
<li><a href="<?php echo G5_URL ?>/">커뮤니티</a></li>
|
||||
<li class="active"><a href="<?php echo G5_SHOP_URL ?>/">쇼핑몰</a></li>
|
||||
</ul>
|
||||
<ul id="hd_qnb">
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php">1:1문의</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/personalpay.php">개인결제</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/itemuselist.php">사용후기</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/itemqalist.php">상품문의</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="hd_wrapper">
|
||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
||||
|
||||
<div id="hd_sch">
|
||||
<h3>쇼핑몰 검색</h3>
|
||||
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);">
|
||||
|
||||
<label for="sch_str" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" id="sch_str" required>
|
||||
<button type="submit" id="sch_submit"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
function search_submit(f) {
|
||||
if (f.q.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.q.select();
|
||||
f.q.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<div id="logo">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="hd_sch_wr">
|
||||
<fieldset id="hd_sch">
|
||||
<legend>쇼핑몰 전체검색</legend>
|
||||
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);">
|
||||
<label for="sch_str" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" id="sch_str" required placeholder="검색어를 입력해주세요">
|
||||
<button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||
</form>
|
||||
<script>
|
||||
function search_submit(f) {
|
||||
if (f.q.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.q.select();
|
||||
f.q.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</fieldset>
|
||||
</div>
|
||||
<!-- 쇼핑몰 배너 시작 { -->
|
||||
<?php echo display_banner('왼쪽'); ?>
|
||||
<?php // echo display_banner('왼쪽'); ?>
|
||||
<!-- } 쇼핑몰 배너 끝 -->
|
||||
</div>
|
||||
<div id="hd_menu">
|
||||
<ul>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
|
||||
|
||||
|
||||
<ul class="hd_login">
|
||||
<?php if ($is_member) { ?>
|
||||
<li class="shop_login">
|
||||
<?php echo outlogin('theme/shop_basic'); // 아웃로그인 ?>
|
||||
</li>
|
||||
<li class="shop_cart"><a href="<?php echo G5_SHOP_URL; ?>/cart.php"><i class="fa fa-shopping-cart" aria-hidden="true"></i><span class="sound_only">장바구니</span><span class="count"><?php echo get_boxcart_datas_count(); ?></span></a></li>
|
||||
<?php } else { ?>
|
||||
<li class="login"><a href="<?php echo G5_BBS_URL ?>/login.php?url=<?php echo $urlencode; ?>">로그인</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="hd_menu">
|
||||
<button type="button" id="menu_open"><i class="fa fa-bars" aria-hidden="true"></i> 카테고리</button>
|
||||
<?php include_once(G5_THEME_SHOP_PATH.'/category.php'); // 분류 ?>
|
||||
<ul class="hd_menu">
|
||||
<li><a href="<?php echo shop_type_url(1); ?>">히트상품</a></li>
|
||||
<li><a href="<?php echo shop_type_url(2); ?>">추천상품</a></li>
|
||||
<li><a href="<?php echo shop_type_url(3); ?>">최신상품</a></li>
|
||||
<li><a href="<?php echo shop_type_url(4); ?>">인기상품</a></li>
|
||||
<li><a href="<?php echo shop_type_url(5); ?>">할인상품</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- } 상단 끝 -->
|
||||
|
||||
<div id="side_menu">
|
||||
<button type="button" id="btn_sidemenu" class="btn_sidemenu_cl"><i class="fa fa-outdent" aria-hidden="true"></i><span class="sound_only">사이드메뉴버튼</span></button>
|
||||
<div class="side_menu_wr">
|
||||
<?php echo outlogin('theme/shop_basic'); // 아웃로그인 ?>
|
||||
<div class="side_menu_shop">
|
||||
<button type="button" class="btn_side_shop">오늘본상품<span class="count"><?php echo get_view_today_items_count(); ?></span></button>
|
||||
<?php include(G5_SHOP_SKIN_PATH.'/boxtodayview.skin.php'); // 오늘 본 상품 ?>
|
||||
<button type="button" class="btn_side_shop">장바구니<span class="count"><?php echo get_boxcart_datas_count(); ?></span></button>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcart.skin.php'); // 장바구니 ?>
|
||||
<button type="button" class="btn_side_shop">위시리스트<span class="count"><?php echo get_wishlist_datas_count(); ?></span></button>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxwish.skin.php'); // 위시리스트 ?>
|
||||
</div>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcommunity.skin.php'); // 커뮤니티 ?>
|
||||
|
||||
<ul id="quick">
|
||||
<li><button class="btn_sm_cl1 btn_sm"><i class="fa fa-user-o" aria-hidden="true"></i><span class="qk_tit">마이메뉴</span></button></li>
|
||||
<li><button class="btn_sm_cl2 btn_sm"><i class="fa fa-archive" aria-hidden="true"></i><span class="qk_tit">오늘 본 상품</span></button></li>
|
||||
<li><button class="btn_sm_cl3 btn_sm"><i class="fa fa-shopping-cart" aria-hidden="true"></i><span class="qk_tit">장바구니</span></button></li>
|
||||
<li><button class="btn_sm_cl4 btn_sm"><i class="fa fa-heart-o" aria-hidden="true"></i><span class="qk_tit">위시리스트</span></button></li>
|
||||
</ul>
|
||||
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
|
||||
<div id="tabs_con">
|
||||
<div class="side_mn_wr1 qk_con">
|
||||
<div class="qk_con_wr">
|
||||
<?php echo outlogin('theme/shop_side'); // 아웃로그인 ?>
|
||||
<ul class="side_tnb">
|
||||
<?php if ($is_member) { ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php">주문내역</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php">1:1문의</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/personalpay.php">개인결제</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/itemuselist.php">사용후기</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/itemqalist.php">상품문의</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
|
||||
</ul>
|
||||
<?php // include_once(G5_SHOP_SKIN_PATH.'/boxcommunity.skin.php'); // 커뮤니티 ?>
|
||||
<button type="button" class="con_close"><i class="fa fa-times-circle" aria-hidden="true"></i><span class="sound_only">나의정보 닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side_mn_wr2 qk_con">
|
||||
<div class="qk_con_wr">
|
||||
<?php include(G5_SHOP_SKIN_PATH.'/boxtodayview.skin.php'); // 오늘 본 상품 ?>
|
||||
<button type="button" class="con_close"><i class="fa fa-times-circle" aria-hidden="true"></i><span class="sound_only">오늘 본 상품 닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side_mn_wr3 qk_con">
|
||||
<div class="qk_con_wr">
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcart.skin.php'); // 장바구니 ?>
|
||||
<button type="button" class="con_close"><i class="fa fa-times-circle" aria-hidden="true"></i><span class="sound_only">장바구니 닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="side_mn_wr4 qk_con">
|
||||
<div class="qk_con_wr">
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxwish.skin.php'); // 위시리스트 ?>
|
||||
<button type="button" class="con_close"><i class="fa fa-times-circle" aria-hidden="true"></i><span class="sound_only">위시리스트 닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
jQuery(function ($){
|
||||
$(".btn_member_mn").on("click", function() {
|
||||
$(".member_mn").toggle();
|
||||
$(".btn_member_mn").toggleClass("btn_member_mn_on");
|
||||
});
|
||||
|
||||
var active_class = "btn_sm_on",
|
||||
side_btn_el = "#quick .btn_sm",
|
||||
quick_container = ".qk_con";
|
||||
|
||||
$(".btn_sidemenu_cl").on("click", function() {
|
||||
$(".side_menu_wr").toggle();
|
||||
$(".fa-outdent").toggleClass("fa-indent")
|
||||
$(document).on("click", side_btn_el, function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var $this = $(this);
|
||||
|
||||
if (!$this.hasClass(active_class)) {
|
||||
$(side_btn_el).removeClass(active_class);
|
||||
$this.addClass(active_class);
|
||||
}
|
||||
|
||||
if( $this.hasClass("btn_sm_cl1") ){
|
||||
$(".side_mn_wr1").show();
|
||||
} else if( $this.hasClass("btn_sm_cl2") ){
|
||||
$(".side_mn_wr2").show();
|
||||
} else if( $this.hasClass("btn_sm_cl3") ){
|
||||
$(".side_mn_wr3").show();
|
||||
} else if( $this.hasClass("btn_sm_cl4") ){
|
||||
$(".side_mn_wr4").show();
|
||||
}
|
||||
}).on("click", ".con_close", function(e){
|
||||
$(quick_container).hide();
|
||||
$(side_btn_el).removeClass(active_class);
|
||||
});
|
||||
|
||||
$(".btn_side_shop").on("click", function() {
|
||||
$(this).next(".op_area").slideToggle(300).siblings(".op_area").slideUp();
|
||||
$(document).mouseup(function (e){
|
||||
var container = $(quick_container),
|
||||
mn_container = $(".shop_login");
|
||||
if( container.has(e.target).length === 0){
|
||||
container.hide();
|
||||
$(side_btn_el).removeClass(active_class);
|
||||
}
|
||||
if( mn_container.has(e.target).length === 0){
|
||||
$(".member_mn").hide();
|
||||
$(".btn_member_mn").removeClass("btn_member_mn_on");
|
||||
}
|
||||
});
|
||||
|
||||
$("#top_btn").on("click", function() {
|
||||
$("html, body").animate({scrollTop:0}, '500');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="aside">
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcategory.skin.php'); // 상품분류 ?>
|
||||
<?php include_once(G5_THEME_SHOP_PATH.'/category.php'); // 분류 ?>
|
||||
<?php if($default['de_type4_list_use']) { ?>
|
||||
<!-- 인기상품 시작 { -->
|
||||
<section class="sale_prd">
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', false);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 인기상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<!-- 커뮤니티 최신글 시작 { -->
|
||||
<section id="sidx_lat">
|
||||
<h2>커뮤니티 최신글</h2>
|
||||
<?php echo latest('theme/shop_basic', 'notice', 5, 30); ?>
|
||||
</section>
|
||||
<!-- } 커뮤니티 최신글 끝 -->
|
||||
|
||||
<?php echo poll('theme/shop_basic'); // 설문조사 ?>
|
||||
|
||||
<?php echo visit('theme/shop_basic'); // 접속자 ?>
|
||||
</div>
|
||||
<!-- } 상단 끝 -->
|
||||
|
||||
<!-- 콘텐츠 시작 { -->
|
||||
<?php
|
||||
$wrapper_class = array();
|
||||
if( defined('G5_IS_COMMUNITY_PAGE') && G5_IS_COMMUNITY_PAGE ){
|
||||
$wrapper_class[] = 'is_community';
|
||||
}
|
||||
?>
|
||||
<!-- 전체 콘텐츠 시작 { -->
|
||||
<div id="wrapper" class="<?php echo implode(' ', $wrapper_class); ?>">
|
||||
<!-- #container 시작 { -->
|
||||
<div id="container">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><div id="wrapper_title"><?php echo $g5['title'] ?></div><?php } ?>
|
||||
<!-- 글자크기 조정 display:none 되어 있음 시작 { -->
|
||||
<div id="text_size">
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'decrease');">작게</button>
|
||||
<button class="no_text_resize" onclick="font_default('container');">기본</button>
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'increase');">크게</button>
|
||||
|
||||
<?php if(defined('_INDEX_')) { ?>
|
||||
<div id="aside">
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcategory.skin.php'); // 상품분류 ?>
|
||||
<?php if($default['de_type4_list_use']) { ?>
|
||||
<!-- 인기상품 시작 { -->
|
||||
<section id="side_pd">
|
||||
<h2><a href="<?php echo shop_type_url('4'); ?>">인기상품</a></h2>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', false);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
$list->set_view('star', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 인기상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php echo display_banner('왼쪽', 'boxbanner.skin.php'); ?>
|
||||
<?php echo poll('theme/shop_basic'); // 설문조사 ?>
|
||||
</div>
|
||||
<!-- } 글자크기 조정 display:none 되어 있음 끝 -->
|
||||
<?php } // end if ?>
|
||||
<?php
|
||||
$content_class = array('shop-content');
|
||||
if( isset($it_id) && isset($it) && isset($it['it_id']) && $it_id === $it['it_id']){
|
||||
$content_class[] = 'is_item';
|
||||
}
|
||||
if( defined('IS_SHOP_SEARCH') && IS_SHOP_SEARCH ){
|
||||
$content_class[] = 'is_search';
|
||||
}
|
||||
if( defined('_INDEX_') && _INDEX_ ){
|
||||
$content_class[] = 'is_index';
|
||||
}
|
||||
?>
|
||||
<!-- .shop-content 시작 { -->
|
||||
<div class="<?php echo implode(' ', $content_class); ?>">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><div id="wrapper_title"><?php echo $g5['title'] ?></div><?php } ?>
|
||||
<!-- 글자크기 조정 display:none 되어 있음 시작 { -->
|
||||
<div id="text_size">
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'decrease');">작게</button>
|
||||
<button class="no_text_resize" onclick="font_default('container');">기본</button>
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'increase');">크게</button>
|
||||
</div>
|
||||
<!-- } 글자크기 조정 display:none 되어 있음 끝 -->
|
||||
@ -11,57 +11,46 @@ $admin = get_admin("super");
|
||||
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
||||
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
|
||||
?>
|
||||
|
||||
</div>
|
||||
<!-- } 콘텐츠 끝 -->
|
||||
</div> <!-- } .shop-content 끝 -->
|
||||
</div> <!-- } #container 끝 -->
|
||||
</div>
|
||||
<!-- } 전체 콘텐츠 끝 -->
|
||||
|
||||
<!-- 하단 시작 { -->
|
||||
</div>
|
||||
|
||||
<div id="ft">
|
||||
<div class="ft_wr">
|
||||
<ul class="ft_ul">
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=company">회사소개</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=provision">서비스이용약관</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=privacy">개인정보처리방침</a></li>
|
||||
<div id="ft_wr">
|
||||
<ul id="ft_link" class="ft_cnt">
|
||||
<li><a href="<?php echo get_pretty_url('content', 'company'); ?>">회사소개</a></li>
|
||||
<li><a href="<?php echo get_pretty_url('content', 'provision'); ?>">서비스이용약관</a></li>
|
||||
<li><a href="<?php echo get_pretty_url('content', 'privacy'); ?>">개인정보처리방침</a></li>
|
||||
<li><a href="<?php echo get_device_change_url(); ?>">모바일버전</a></li>
|
||||
</ul>
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" id="ft_logo"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img2" alt="처음으로"></a>
|
||||
<div id="ft_company" class="ft_cnt">
|
||||
<h2>사이트 정보</h2>
|
||||
<p class="ft_info">
|
||||
<span><b>회사명</b> <?php echo $default['de_admin_company_name']; ?></span>
|
||||
<span><b>주소</b> <?php echo $default['de_admin_company_addr']; ?></span><br>
|
||||
<span><b>사업자 등록번호</b> <?php echo $default['de_admin_company_saupja_no']; ?></span>
|
||||
<span><b>대표</b> <?php echo $default['de_admin_company_owner']; ?></span>
|
||||
<span><b>전화</b> <?php echo $default['de_admin_company_tel']; ?></span>
|
||||
<span><b>팩스</b> <?php echo $default['de_admin_company_fax']; ?></span><br>
|
||||
<!-- <span><b>운영자</b> <?php echo $admin['mb_name']; ?></span><br> -->
|
||||
<span><b>통신판매업신고번호</b> <?php echo $default['de_admin_tongsin_no']; ?></span>
|
||||
<span><b>개인정보 보호책임자</b> <?php echo $default['de_admin_info_name']; ?></span><br>
|
||||
<?php if ($default['de_admin_buga_no']) echo '<span><b>부가통신사업신고번호</b> '.$default['de_admin_buga_no'].'</span>'; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- 커뮤니티 최신글 시작 { -->
|
||||
<section id="sidx_lat">
|
||||
<?php echo latest('theme/notice', 'notice', 5, 30); ?>
|
||||
</section>
|
||||
<!-- } 커뮤니티 최신글 끝 -->
|
||||
|
||||
<div class="ft_info">
|
||||
<span><b>회사명</b> <?php echo $default['de_admin_company_name']; ?></span>
|
||||
<span><b>주소</b> <?php echo $default['de_admin_company_addr']; ?></span><br>
|
||||
<span><b>사업자 등록번호</b> <?php echo $default['de_admin_company_saupja_no']; ?></span>
|
||||
<span><b>대표</b> <?php echo $default['de_admin_company_owner']; ?></span>
|
||||
<span><b>전화</b> <?php echo $default['de_admin_company_tel']; ?></span>
|
||||
<span><b>팩스</b> <?php echo $default['de_admin_company_fax']; ?></span><br>
|
||||
<!-- <span><b>운영자</b> <?php echo $admin['mb_name']; ?></span><br> -->
|
||||
<span><b>통신판매업신고번호</b> <?php echo $default['de_admin_tongsin_no']; ?></span>
|
||||
<span><b>개인정보 보호책임자</b> <?php echo $default['de_admin_info_name']; ?></span>
|
||||
|
||||
<?php if ($default['de_admin_buga_no']) echo '<span><b>부가통신사업신고번호</b> '.$default['de_admin_buga_no'].'</span>'; ?><br>
|
||||
Copyright © 2001-2013 <?php echo $default['de_admin_company_name']; ?>. All Rights Reserved.
|
||||
</div>
|
||||
|
||||
<div class="ft_cs">
|
||||
<h2>고객센터</h2>
|
||||
<strong>02-123-1234</strong>
|
||||
<p>월-금 am 9:00 - pm 05:00<br>점심시간 : am 12:00 - pm 01:00</p>
|
||||
</div>
|
||||
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
$("#top_btn").on("click", function() {
|
||||
$("html, body").animate({scrollTop:0}, '500');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php echo visit('theme/shop_basic'); // 접속자 ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ft_copy">Copyright © 2001-2013 <?php echo $default['de_admin_company_name']; ?>. All Rights Reserved.</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user