리빌더 부분 추가
This commit is contained in:
20
theme/rb.basic/shop/_common.php
Normal file
20
theme/rb.basic/shop/_common.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once('../../../common.php');
|
||||
|
||||
if (isset($_REQUEST['sort']) && !preg_match("/(--|#|\/\*|\*\/)/", $_REQUEST['sort'])) {
|
||||
$sort = trim($_REQUEST['sort']);
|
||||
$sort = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $sort);
|
||||
} else {
|
||||
$sort = '';
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['sortodr'])) {
|
||||
$sortodr = preg_match("/^(asc|desc)$/i", $sortodr) ? $sortodr : '';
|
||||
} else {
|
||||
$sortodr = '';
|
||||
}
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
|
||||
define('_SHOP_', true);
|
||||
353
theme/rb.basic/shop/ajax.action.php
Normal file
353
theme/rb.basic/shop/ajax.action.php
Normal file
@ -0,0 +1,353 @@
|
||||
<?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');
|
||||
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_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 = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
|
||||
|
||||
if ($count < 1)
|
||||
die(json_encode(array('error' => '장바구니에 담을 상품을 선택하여 주십시오.')));
|
||||
|
||||
$ct_count = 0;
|
||||
for($i=0; $i<$count; $i++) {
|
||||
$it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
|
||||
$opt_count = (isset($_POST['io_id'][$it_id]) && is_array($_POST['io_id'][$it_id])) ? count($_POST['io_id'][$it_id]) : 0;
|
||||
|
||||
// 상품정보
|
||||
$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++) {
|
||||
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
if ($post_ct_qty < 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(isset($_POST['io_type'][$it_id][$k]) && $_POST['io_type'][$it_id][$k] == 0){
|
||||
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
$sum_qty += $post_ct_qty;
|
||||
}
|
||||
}
|
||||
|
||||
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 = isset($_POST['io_id'][$it_id][$k]) ? preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]) : '';
|
||||
$io_type = isset($_POST['io_type'][$it_id][$k]) ? preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]) : '';
|
||||
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
|
||||
|
||||
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
|
||||
if($lst_count && $io_id == '')
|
||||
continue;
|
||||
|
||||
$opt_list_type_id_use = isset($opt_list[$io_type][$io_id]['use']) ? $opt_list[$io_type][$io_id]['use'] : '';
|
||||
// 구매할 수 없는 옵션은 건너뜀
|
||||
if($io_id && ! $opt_list_type_id_use)
|
||||
continue;
|
||||
|
||||
$io_price = isset($opt_list[$io_type][$io_id]['price']) ? $opt_list[$io_type][$io_id]['price'] : 0;
|
||||
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
|
||||
// 구매가격이 음수인지 체크
|
||||
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(isset($row2['ct_id']) && $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;
|
||||
}
|
||||
|
||||
$ct_send_cost = 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' :
|
||||
|
||||
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
|
||||
|
||||
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 (! (isset($row['wi_id']) && $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 :
|
||||
}
|
||||
687
theme/rb.basic/shop/apexcharts/apexcharts.css
Normal file
687
theme/rb.basic/shop/apexcharts/apexcharts.css
Normal file
@ -0,0 +1,687 @@
|
||||
.apexcharts-canvas {
|
||||
position: relative;
|
||||
user-select: none;
|
||||
/* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */
|
||||
}
|
||||
|
||||
|
||||
/* scrollbar is not visible by default for legend, hence forcing the visibility */
|
||||
.apexcharts-canvas ::-webkit-scrollbar {
|
||||
-webkit-appearance: none;
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.apexcharts-canvas ::-webkit-scrollbar-thumb {
|
||||
border-radius: 4px;
|
||||
background-color: rgba(0, 0, 0, .5);
|
||||
box-shadow: 0 0 1px rgba(255, 255, 255, .5);
|
||||
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
|
||||
}
|
||||
|
||||
|
||||
.apexcharts-inner {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.apexcharts-text tspan {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.legend-mouseover-inactive {
|
||||
transition: 0.15s ease all;
|
||||
opacity: 0.20;
|
||||
}
|
||||
|
||||
.apexcharts-series-collapsed {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip {
|
||||
border-radius: 5px;
|
||||
box-shadow: 2px 2px 6px -4px #999;
|
||||
cursor: default;
|
||||
font-size: 14px;
|
||||
left: 62px;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
z-index: 12;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip.apexcharts-active {
|
||||
opacity: 1;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip.apexcharts-theme-light {
|
||||
border: 1px solid #e3e3e3;
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
}
|
||||
|
||||
.apexcharts-tooltip.apexcharts-theme-dark {
|
||||
color: #fff;
|
||||
background: rgba(30, 30, 30, 0.8);
|
||||
}
|
||||
|
||||
.apexcharts-tooltip * {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
|
||||
.apexcharts-tooltip-title {
|
||||
padding: 6px;
|
||||
font-size: 15px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
|
||||
background: #ECEFF1;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-text-y-value,
|
||||
.apexcharts-tooltip-text-goals-value,
|
||||
.apexcharts-tooltip-text-z-value {
|
||||
display: inline-block;
|
||||
font-weight: 600;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-text-y-label:empty,
|
||||
.apexcharts-tooltip-text-y-value:empty,
|
||||
.apexcharts-tooltip-text-goals-label:empty,
|
||||
.apexcharts-tooltip-text-goals-value:empty,
|
||||
.apexcharts-tooltip-text-z-value:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-text-y-value,
|
||||
.apexcharts-tooltip-text-goals-value,
|
||||
.apexcharts-tooltip-text-z-value {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-text-goals-label,
|
||||
.apexcharts-tooltip-text-goals-value {
|
||||
padding: 6px 0 5px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-goals-group,
|
||||
.apexcharts-tooltip-text-goals-label,
|
||||
.apexcharts-tooltip-text-goals-value {
|
||||
display: flex;
|
||||
}
|
||||
.apexcharts-tooltip-text-goals-label:not(:empty),
|
||||
.apexcharts-tooltip-text-goals-value:not(:empty) {
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-marker {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
position: relative;
|
||||
top: 0px;
|
||||
margin-right: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-series-group {
|
||||
padding: 0 10px;
|
||||
display: none;
|
||||
text-align: left;
|
||||
justify-content: left;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-series-group.apexcharts-active,
|
||||
.apexcharts-tooltip-series-group:last-child {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-series-group-hidden {
|
||||
opacity: 0;
|
||||
height: 0;
|
||||
line-height: 0;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-y-group {
|
||||
padding: 6px 0 5px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-box, .apexcharts-custom-tooltip {
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-boxPlot {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-box>div {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-box span.value {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-rangebar {
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-rangebar .category {
|
||||
font-weight: 600;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.apexcharts-tooltip-rangebar .series-name {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip {
|
||||
opacity: 0;
|
||||
padding: 9px 10px;
|
||||
pointer-events: none;
|
||||
color: #373d3f;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
background: #ECEFF1;
|
||||
border: 1px solid #90A4AE;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip.apexcharts-theme-dark {
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
border: 1px solid rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip:after,
|
||||
.apexcharts-xaxistooltip:before {
|
||||
left: 50%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip:after {
|
||||
border-color: rgba(236, 239, 241, 0);
|
||||
border-width: 6px;
|
||||
margin-left: -6px;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip:before {
|
||||
border-color: rgba(144, 164, 174, 0);
|
||||
border-width: 7px;
|
||||
margin-left: -7px;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-bottom:after,
|
||||
.apexcharts-xaxistooltip-bottom:before {
|
||||
bottom: 100%;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-top:after,
|
||||
.apexcharts-xaxistooltip-top:before {
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-bottom:after {
|
||||
border-bottom-color: #ECEFF1;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-bottom:before {
|
||||
border-bottom-color: #90A4AE;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {
|
||||
border-bottom-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
|
||||
border-bottom-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-top:after {
|
||||
border-top-color: #ECEFF1
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-top:before {
|
||||
border-top-color: #90A4AE;
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {
|
||||
border-top-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
|
||||
border-top-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-xaxistooltip.apexcharts-active {
|
||||
opacity: 1;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip {
|
||||
opacity: 0;
|
||||
padding: 4px 10px;
|
||||
pointer-events: none;
|
||||
color: #373d3f;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
background: #ECEFF1;
|
||||
border: 1px solid #90A4AE;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip.apexcharts-theme-dark {
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
border: 1px solid rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip:after,
|
||||
.apexcharts-yaxistooltip:before {
|
||||
top: 50%;
|
||||
border: solid transparent;
|
||||
content: " ";
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip:after {
|
||||
border-color: rgba(236, 239, 241, 0);
|
||||
border-width: 6px;
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip:before {
|
||||
border-color: rgba(144, 164, 174, 0);
|
||||
border-width: 7px;
|
||||
margin-top: -7px;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-left:after,
|
||||
.apexcharts-yaxistooltip-left:before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-right:after,
|
||||
.apexcharts-yaxistooltip-right:before {
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-left:after {
|
||||
border-left-color: #ECEFF1;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-left:before {
|
||||
border-left-color: #90A4AE;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {
|
||||
border-left-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
|
||||
border-left-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-right:after {
|
||||
border-right-color: #ECEFF1;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-right:before {
|
||||
border-right-color: #90A4AE;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {
|
||||
border-right-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
|
||||
border-right-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip.apexcharts-active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.apexcharts-yaxistooltip-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.apexcharts-xcrosshairs,
|
||||
.apexcharts-ycrosshairs {
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-xcrosshairs.apexcharts-active,
|
||||
.apexcharts-ycrosshairs.apexcharts-active {
|
||||
opacity: 1;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-ycrosshairs-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.apexcharts-selection-rect {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.svg_select_boundingRect, .svg_select_points_rot {
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.apexcharts-selection-rect + g .svg_select_boundingRect,
|
||||
.apexcharts-selection-rect + g .svg_select_points_rot {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.apexcharts-selection-rect + g .svg_select_points_l,
|
||||
.apexcharts-selection-rect + g .svg_select_points_r {
|
||||
cursor: ew-resize;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.svg_select_points {
|
||||
fill: #efefef;
|
||||
stroke: #333;
|
||||
rx: 2;
|
||||
}
|
||||
|
||||
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
|
||||
cursor: crosshair
|
||||
}
|
||||
|
||||
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
|
||||
cursor: move
|
||||
}
|
||||
|
||||
.apexcharts-zoom-icon,
|
||||
.apexcharts-zoomin-icon,
|
||||
.apexcharts-zoomout-icon,
|
||||
.apexcharts-reset-icon,
|
||||
.apexcharts-pan-icon,
|
||||
.apexcharts-selection-icon,
|
||||
.apexcharts-menu-icon,
|
||||
.apexcharts-toolbar-custom-icon {
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
line-height: 24px;
|
||||
color: #6E8192;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.apexcharts-zoom-icon svg,
|
||||
.apexcharts-zoomin-icon svg,
|
||||
.apexcharts-zoomout-icon svg,
|
||||
.apexcharts-reset-icon svg,
|
||||
.apexcharts-menu-icon svg {
|
||||
fill: #6E8192;
|
||||
}
|
||||
|
||||
.apexcharts-selection-icon svg {
|
||||
fill: #444;
|
||||
transform: scale(0.76)
|
||||
}
|
||||
|
||||
.apexcharts-theme-dark .apexcharts-zoom-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-zoomin-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-zoomout-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-reset-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-pan-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-selection-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-menu-icon svg,
|
||||
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {
|
||||
fill: #f3f4f5;
|
||||
}
|
||||
|
||||
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,
|
||||
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
|
||||
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {
|
||||
fill: #008FFB;
|
||||
}
|
||||
|
||||
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
|
||||
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
|
||||
.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
|
||||
.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,
|
||||
.apexcharts-theme-light .apexcharts-reset-icon:hover svg,
|
||||
.apexcharts-theme-light .apexcharts-menu-icon:hover svg {
|
||||
fill: #333;
|
||||
}
|
||||
|
||||
.apexcharts-selection-icon,
|
||||
.apexcharts-menu-icon {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.apexcharts-reset-icon {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.apexcharts-zoom-icon,
|
||||
.apexcharts-reset-icon,
|
||||
.apexcharts-menu-icon {
|
||||
transform: scale(0.85);
|
||||
}
|
||||
|
||||
.apexcharts-zoomin-icon,
|
||||
.apexcharts-zoomout-icon {
|
||||
transform: scale(0.7)
|
||||
}
|
||||
|
||||
.apexcharts-zoomout-icon {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.apexcharts-pan-icon {
|
||||
transform: scale(0.62);
|
||||
position: relative;
|
||||
left: 1px;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.apexcharts-pan-icon svg {
|
||||
fill: #fff;
|
||||
stroke: #6E8192;
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.apexcharts-pan-icon.apexcharts-selected svg {
|
||||
stroke: #008FFB;
|
||||
}
|
||||
|
||||
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
|
||||
stroke: #333;
|
||||
}
|
||||
|
||||
.apexcharts-toolbar {
|
||||
position: absolute;
|
||||
z-index: 11;
|
||||
max-width: 176px;
|
||||
text-align: right;
|
||||
border-radius: 3px;
|
||||
padding: 0px 6px 2px 6px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.apexcharts-menu {
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 3px;
|
||||
padding: 3px;
|
||||
right: 10px;
|
||||
opacity: 0;
|
||||
min-width: 110px;
|
||||
transition: 0.15s ease all;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.apexcharts-menu.apexcharts-menu-open {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
.apexcharts-menu-item {
|
||||
padding: 6px 7px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.apexcharts-theme-light .apexcharts-menu-item:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.apexcharts-theme-dark .apexcharts-menu {
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.apexcharts-canvas:hover .apexcharts-toolbar {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.apexcharts-datalabel.apexcharts-element-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.apexcharts-pie-label,
|
||||
.apexcharts-datalabels,
|
||||
.apexcharts-datalabel,
|
||||
.apexcharts-datalabel-label,
|
||||
.apexcharts-datalabel-value {
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.apexcharts-pie-label-delay {
|
||||
opacity: 0;
|
||||
animation-name: opaque;
|
||||
animation-duration: 0.3s;
|
||||
animation-fill-mode: forwards;
|
||||
animation-timing-function: ease;
|
||||
}
|
||||
|
||||
.apexcharts-canvas .apexcharts-element-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.apexcharts-hide .apexcharts-series-points {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.apexcharts-gridline,
|
||||
.apexcharts-annotation-rect,
|
||||
.apexcharts-tooltip .apexcharts-marker,
|
||||
.apexcharts-area-series .apexcharts-area,
|
||||
.apexcharts-line,
|
||||
.apexcharts-zoom-rect,
|
||||
.apexcharts-toolbar svg,
|
||||
.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,
|
||||
.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,
|
||||
.apexcharts-radar-series path,
|
||||
.apexcharts-radar-series polygon {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
/* markers */
|
||||
|
||||
.apexcharts-marker {
|
||||
transition: 0.15s ease all;
|
||||
}
|
||||
|
||||
@keyframes opaque {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Resize generated styles */
|
||||
|
||||
@keyframes resizeanim {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.resize-triggers {
|
||||
animation: 1ms resizeanim;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.resize-triggers,
|
||||
.resize-triggers>div,
|
||||
.contract-trigger:before {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.resize-triggers>div {
|
||||
background: #eee;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.contract-trigger:before {
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
}
|
||||
31320
theme/rb.basic/shop/apexcharts/apexcharts.js
Normal file
31320
theme/rb.basic/shop/apexcharts/apexcharts.js
Normal file
File diff suppressed because one or more lines are too long
322
theme/rb.basic/shop/cart.php
Normal file
322
theme/rb.basic/shop/cart.php
Normal file
@ -0,0 +1,322 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$g5['title'] = '장바구니';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<!-- 장바구니 시작 { -->
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.override.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
|
||||
<div id="sod_bsk" class="od_prd_list">
|
||||
|
||||
<form name="frmcartlist" id="sod_bsk_list" class="2017_renewal_itemform" method="post" action="<?php echo $cart_action_url; ?>">
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="chk_box">
|
||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked" class="selec_chk">
|
||||
<label for="ct_all"><span></span><b class="sound_only">상품 전체</b></label>
|
||||
</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">총수량</th>
|
||||
<th scope="col">상품금액</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">배송비</th>
|
||||
<th scope="col">소계</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot_point = 0;
|
||||
$tot_sell_price = 0;
|
||||
$send_cost = 0;
|
||||
|
||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
a.ct_send_cost,
|
||||
a.it_sc_type,
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
$sql .= " group by a.it_id ";
|
||||
$sql .= " order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$it_send_cost = 0;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
|
||||
|
||||
// 예약 관련
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT * FROM {$g5['g5_shop_cart_table']} WHERE ct_id = '{$row['ct_id']}' ");
|
||||
}
|
||||
|
||||
// 합계금액 계산 (예약상품일 경우 합계방식 변경)
|
||||
$price_calc = "((ct_price + io_price) * ct_qty)";
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1 && isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$price_calc = "((ct_price + io_price) * ct_qty * ct_date_d +
|
||||
(COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0)) +
|
||||
(COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0)) +
|
||||
(COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0)))";
|
||||
}
|
||||
|
||||
$sql = "SELECT SUM(IF(io_type = 1, (io_price * ct_qty), $price_calc)) AS price,
|
||||
SUM(ct_point * ct_qty) AS point,
|
||||
SUM(ct_qty) AS qty
|
||||
FROM {$g5['g5_shop_cart_table']}
|
||||
WHERE it_id = '{$row['it_id']}'
|
||||
AND od_id = '$s_cart_id'";
|
||||
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
}
|
||||
|
||||
$a1 = '<a href="'.shop_item_url($row['it_id']).'" class="prd_name"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = rb_it_image($row['it_id'], 80, 80);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
if($it_options) {
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$mod_options = '';
|
||||
} else {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
}
|
||||
} else {
|
||||
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
|
||||
}
|
||||
|
||||
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
|
||||
|
||||
}
|
||||
|
||||
// 배송비
|
||||
switch($row['ct_send_cost'])
|
||||
{
|
||||
case 1:
|
||||
$ct_send_cost = '착불';
|
||||
break;
|
||||
case 2:
|
||||
$ct_send_cost = '무료';
|
||||
break;
|
||||
default:
|
||||
$ct_send_cost = '선불';
|
||||
break;
|
||||
}
|
||||
|
||||
// 조건부무료
|
||||
if($row['it_sc_type'] == 2) {
|
||||
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $s_cart_id);
|
||||
|
||||
if($sendcost == 0)
|
||||
$ct_send_cost = '무료';
|
||||
}
|
||||
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$ct_send_cost = '-';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$point = $sum['point'];
|
||||
$sell_price = $sum['price'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk chk_box">
|
||||
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked" class="selec_chk">
|
||||
<label for="ct_chk_<?php echo $i; ?>"><span></span><b class="sound_only">상품</b></label>
|
||||
</td>
|
||||
|
||||
<td class="td_prd">
|
||||
<div class="sod_img"><a href="<?php echo shop_item_url($row['it_id']); ?>"><?php echo $image; ?></a></div>
|
||||
<div class="sod_name">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
<?php
|
||||
//예약정보 로드
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
include (G5_PATH.'/rb/rb.mod/reservation/info.inc.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($point); ?></td>
|
||||
<td class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td class="td_numbig text_right"><span id="sell_price_<?php echo $i; ?>" class="total_prc"><?php echo number_format($sell_price); ?></span></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
$tot_sell_price += $sell_price;
|
||||
} // for 끝
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($s_cart_id, 0);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn_cart_del">
|
||||
<button type="button" onclick="return form_check('seldelete');">선택삭제</button>
|
||||
<button type="button" onclick="return form_check('alldelete');">비우기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비
|
||||
if ($tot_price > 0 || $send_cost > 0) {
|
||||
?>
|
||||
<div id="sod_bsk_tot">
|
||||
<ul>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($send_cost); ?></strong> 원
|
||||
</li>
|
||||
|
||||
<li class="sod_bsk_pt">
|
||||
<span>포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?></strong> 점
|
||||
</li>
|
||||
|
||||
<li class="sod_bsk_cnt">
|
||||
<span>총계 가격</span>
|
||||
<strong><?php echo number_format($tot_price); ?></strong> 원
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="sod_bsk_act">
|
||||
<?php if ($i == 0) { ?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" class="btn01">쇼핑 계속하기</a>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="url" value="./orderform.php">
|
||||
<input type="hidden" name="records" value="<?php echo $i; ?>">
|
||||
<input type="hidden" name="act" value="">
|
||||
<a href="<?php echo shop_category_url($continue_ca_id); ?>" class="btn01">쇼핑 계속하기</a>
|
||||
<button type="button" onclick="return form_check('buy');" class="btn_submit">주문하기</button>
|
||||
|
||||
<?php if ($naverpay_button_js) { ?>
|
||||
<div class="cart-naverpay"><?php echo $naverpay_request_js.$naverpay_button_js; ?></div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var close_btn_idx;
|
||||
|
||||
// 선택사항수정
|
||||
$(".mod_options").click(function() {
|
||||
var it_id = $(this).closest("tr").find("input[name^=it_id]").val();
|
||||
var $this = $(this);
|
||||
close_btn_idx = $(".mod_options").index($(this));
|
||||
|
||||
$.post(
|
||||
"<?php echo G5_THEME_SHOP_URL ?>/cartoption.php",
|
||||
{ it_id: it_id },
|
||||
function(data) {
|
||||
$("#mod_option_frm").remove();
|
||||
$this.after("<div id=\"mod_option_frm\"></div><div class=\"mod_option_bg\"></div>");
|
||||
$("#mod_option_frm").html(data);
|
||||
price_calculate();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
// 모두선택
|
||||
$("input[name=ct_all]").click(function() {
|
||||
if($(this).is(":checked"))
|
||||
$("input[name^=ct_chk]").attr("checked", true);
|
||||
else
|
||||
$("input[name^=ct_chk]").attr("checked", false);
|
||||
});
|
||||
|
||||
// 옵션수정 닫기
|
||||
$(document).on("click", "#mod_option_close", function() {
|
||||
$("#mod_option_frm, .mod_option_bg").remove();
|
||||
$(".mod_options").eq(close_btn_idx).focus();
|
||||
});
|
||||
$("#win_mask").click(function () {
|
||||
$("#mod_option_frm").remove();
|
||||
$(".mod_options").eq(close_btn_idx).focus();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function fsubmit_check(f) {
|
||||
if($("input[name^=ct_chk]:checked").length < 1) {
|
||||
alert("구매하실 상품을 하나이상 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function form_check(act) {
|
||||
var f = document.frmcartlist;
|
||||
var cnt = f.records.value;
|
||||
|
||||
if (act == "buy")
|
||||
{
|
||||
if($("input[name^=ct_chk]:checked").length < 1) {
|
||||
alert("주문하실 상품을 하나이상 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
f.act.value = act;
|
||||
f.submit();
|
||||
}
|
||||
else if (act == "alldelete")
|
||||
{
|
||||
f.act.value = act;
|
||||
f.submit();
|
||||
}
|
||||
else if (act == "seldelete")
|
||||
{
|
||||
if($("input[name^=ct_chk]:checked").length < 1) {
|
||||
alert("삭제하실 상품을 하나이상 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
f.act.value = act;
|
||||
f.submit();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 장바구니 끝 -->
|
||||
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
182
theme/rb.basic/shop/cartoption.php
Normal file
182
theme/rb.basic/shop/cartoption.php
Normal file
@ -0,0 +1,182 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$pattern = '#[/\'\"%=*\#\(\)\|\+\&\!\$~\{\}\[\]`;:\?\^\,]#';
|
||||
$it_id = isset($_POST['it_id']) ? preg_replace($pattern, '', $_POST['it_id']) : '';
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_item_table']} where it_id = '$it_id' and it_use = '1' ";
|
||||
$it = sql_fetch($sql);
|
||||
$it_point = get_item_point($it);
|
||||
|
||||
if(!$it['it_id'])
|
||||
die('no-item');
|
||||
|
||||
// 장바구니 자료
|
||||
$cart_id = get_session('ss_cart_id');
|
||||
$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by io_type asc, ct_id asc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
// 판매가격
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g5['g5_shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by ct_id asc limit 1 ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
if(!sql_num_rows($result))
|
||||
die('no-cart');
|
||||
?>
|
||||
|
||||
<h2>상품옵션수정</h2>
|
||||
<!-- 장바구니 옵션 시작 { -->
|
||||
<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
||||
<input type="hidden" name="act" value="optionmod">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||
<input type="hidden" id="it_price" value="<?php echo $row2['ct_price']; ?>">
|
||||
<input type="hidden" name="ct_send_cost" value="<?php echo $row2['ct_send_cost']; ?>">
|
||||
<input type="hidden" name="sw_direct">
|
||||
<?php
|
||||
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], '');
|
||||
} else {
|
||||
// 선택 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], 'div');
|
||||
}
|
||||
if($option_1) {
|
||||
?>
|
||||
<section class="option_wr">
|
||||
<h3>선택옵션</h3>
|
||||
|
||||
<?php // 선택옵션
|
||||
echo $option_1;
|
||||
?>
|
||||
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], '');
|
||||
} else {
|
||||
// 추가 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], 'div');
|
||||
}
|
||||
if($option_2) {
|
||||
?>
|
||||
<section class="option_wr">
|
||||
<h3>추가옵션</h3>
|
||||
|
||||
<?php // 추가옵션
|
||||
echo $option_2;
|
||||
?>
|
||||
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="sit_sel_option">
|
||||
|
||||
<ul id="sit_opt_added">
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(!$row['io_id'])
|
||||
$it_stock_qty = get_it_stock_qty($row['it_id']);
|
||||
else
|
||||
$it_stock_qty = get_option_stock_qty($row['it_id'], $row['io_id'], $row['io_type']);
|
||||
|
||||
if($row['io_price'] < 0)
|
||||
$io_price = '('.number_format($row['io_price']).'원)';
|
||||
else
|
||||
$io_price = '(+'.number_format($row['io_price']).'원)';
|
||||
|
||||
$cls = 'opt';
|
||||
if($row['io_type'])
|
||||
$cls = 'spl';
|
||||
?>
|
||||
<li class="sit_<?php echo $cls; ?>_list">
|
||||
<input type="hidden" name="io_type[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['io_type']; ?>">
|
||||
<input type="hidden" name="io_id[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['io_id']; ?>">
|
||||
<input type="hidden" name="io_value[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_option']; ?>">
|
||||
<input type="hidden" class="io_price" value="<?php echo $row['io_price']; ?>">
|
||||
<input type="hidden" class="io_stock" value="<?php echo $it_stock_qty; ?>">
|
||||
<div class="opt_name">
|
||||
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
|
||||
</div>
|
||||
<div class="opt_count">
|
||||
<button type="button" class="sit_qty_minus btn_frmline"><i class="fa fa-minus" aria-hidden="true"></i><span class="sound_only">감소</span></button>
|
||||
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
|
||||
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="num_input" size="5">
|
||||
<button type="button" class="sit_qty_plus btn_frmline"><i class="fa fa-plus" aria-hidden="true"></i><span class="sound_only">증가</span></button>
|
||||
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
|
||||
<button type="button" class="sit_opt_del"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">삭제</span></button>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="sit_tot_price"></div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<button type="submit" class="btn_submit">확인</button>
|
||||
<button type="button" id="mod_option_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function formcheck(f)
|
||||
{
|
||||
var val, io_type, result = true;
|
||||
var sum_qty = 0;
|
||||
var min_qty = parseInt(<?php echo $it['it_buy_min_qty']; ?>);
|
||||
var max_qty = parseInt(<?php echo $it['it_buy_max_qty']; ?>);
|
||||
var $el_type = $("input[name^=io_type]");
|
||||
|
||||
$("input[name^=ct_qty]").each(function(index) {
|
||||
val = $(this).val();
|
||||
|
||||
if(val.length < 1) {
|
||||
alert("수량을 입력해 주십시오.");
|
||||
result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(val.replace(/[0-9]/g, "").length > 0) {
|
||||
alert("수량은 숫자로 입력해 주십시오.");
|
||||
result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(parseInt(val.replace(/[^0-9]/g, "")) < 1) {
|
||||
alert("수량은 1이상 입력해 주십시오.");
|
||||
result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
io_type = $el_type.eq(index).val();
|
||||
if(io_type == "0")
|
||||
sum_qty += parseInt(val);
|
||||
});
|
||||
|
||||
if(!result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(min_qty > 0 && sum_qty < min_qty) {
|
||||
alert("선택옵션 개수 총합 "+number_format(String(min_qty))+"개 이상 주문해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(max_qty > 0 && sum_qty > max_qty) {
|
||||
alert("선택옵션 개수 총합 "+number_format(String(max_qty))+"개 이하로 주문해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 장바구니 옵션 끝 -->
|
||||
83
theme/rb.basic/shop/category.php
Normal file
83
theme/rb.basic/shop/category.php
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
function get_mshop_category($ca_id, $len)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']}
|
||||
where ca_use = '1' ";
|
||||
if($ca_id)
|
||||
$sql .= " and ca_id like '$ca_id%' ";
|
||||
$sql .= " and length(ca_id) = '$len' order by ca_order, ca_id ";
|
||||
|
||||
return $sql;
|
||||
}
|
||||
|
||||
$mshop_categories = get_shop_category_array(true);
|
||||
?>
|
||||
<div id="category">
|
||||
<h2>전체메뉴</h2>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($mshop_categories as $cate1){
|
||||
if( empty($cate1) ) continue;
|
||||
|
||||
$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++;
|
||||
}
|
||||
|
||||
if($j > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$i++;
|
||||
} // end for
|
||||
|
||||
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, #category_all_bg").on("click", function(){
|
||||
$category.css("display","none");
|
||||
$("#category_all_bg").css("display","none");
|
||||
});
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#category");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
</script>
|
||||
29
theme/rb.basic/shop/index.php
Normal file
29
theme/rb.basic/shop/index.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if(! defined('_INDEX_')) define('_INDEX_', TRUE);
|
||||
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($rb_core['layout_shop']) && $rb_core['layout_shop'] == "") {
|
||||
echo "<div class='no_data' style='border:0px;'><span class='no_data_section_ul1 font-B color-000'>선택된 레이아웃이 없습니다.</span><br>환경설정 패널에서 먼저 레이아웃을 설정해주세요.</div>";
|
||||
} else if (isset($rb_core['layout_shop'])) {
|
||||
// 레이아웃 인클루드
|
||||
include_once(G5_THEME_SHOP_PATH . '/rb.layout/' . $rb_core['layout_shop'] . '/index.php');
|
||||
//add_javascript('<script src="' . G5_THEME_URL . '/rb.js/rb.layout.js"></script>', 1);
|
||||
} else {
|
||||
echo "<div class='no_data' style='border:0px;'><span class='no_data_section_ul1 font-B color-000'>레이아웃 설정이 올바르지 않습니다.</span><br>환경설정 패널에서 먼저 레이아웃을 설정해주세요.</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
337
theme/rb.basic/shop/mypage.php
Normal file
337
theme/rb.basic/shop/mypage.php
Normal file
@ -0,0 +1,337 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$g5['title'] = '마이페이지';
|
||||
include_once('./_head.php');
|
||||
|
||||
// 쿠폰
|
||||
$cp_count = 0;
|
||||
$sql = " select cp_id
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
if(!is_used_coupon($member['mb_id'], $cp['cp_id']))
|
||||
$cp_count++;
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- 마이페이지 시작 { -->
|
||||
<div id="smb_my">
|
||||
|
||||
<!-- 회원정보 개요 시작 { -->
|
||||
<section id="smb_my_ov">
|
||||
<h2>회원정보 개요</h2>
|
||||
|
||||
<div class="smb_me">
|
||||
<strong class="my_ov_name"><?php echo get_member_profile_img($member['mb_id']); ?><br><?php echo $member['mb_name']; ?></strong><br>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php" class="smb_info">정보수정</a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/logout.php">로그아웃</a>
|
||||
</div>
|
||||
|
||||
<?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1 && isset($member['mb_partner']) && $member['mb_partner'] == 2 || isset($pa['pa_is']) && $pa['pa_is'] == 1 && $is_admin) { ?>
|
||||
<ul class="partner_wrap">
|
||||
<a href="<?php echo G5_URL ?>/rb/partner.php" class="main_rb_bg">입점사 전용 시스템</a>
|
||||
<?php if(isset($member['mb_partner']) && $member['mb_partner'] == 2) { ?>
|
||||
<a href="<?php echo G5_URL ?>/store/?p=<?php echo $member['mb_id'] ?>" class="main_rb_bg mt-5">내 스토어</a>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } else if(isset($pa['pa_is']) && $pa['pa_is'] == 1 && isset($member['mb_partner']) && $member['mb_partner'] == 0) { ?>
|
||||
<ul class="partner_wrap">
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=register_form.php?partner=re" class="main_rb_bg">입점 신청</a>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<ul id="smb_private">
|
||||
|
||||
<li>
|
||||
<a href="<?php echo G5_BBS_URL ?>/point.php" target="_blank" class="win_point">
|
||||
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_518_19)">
|
||||
<path d="M12.5 2C18.023 2 22.5 6.477 22.5 12C22.5 17.523 18.023 22 12.5 22C6.977 22 2.5 17.523 2.5 12C2.5 6.477 6.977 2 12.5 2ZM14 7H11.5C10.9696 7 10.4609 7.21071 10.0858 7.58579C9.71071 7.96086 9.5 8.46957 9.5 9V16C9.5 16.2652 9.60536 16.5196 9.79289 16.7071C9.98043 16.8946 10.2348 17 10.5 17C10.7652 17 11.0196 16.8946 11.2071 16.7071C11.3946 16.5196 11.5 16.2652 11.5 16V14H14C14.9283 14 15.8185 13.6313 16.4749 12.9749C17.1313 12.3185 17.5 11.4283 17.5 10.5C17.5 9.57174 17.1313 8.6815 16.4749 8.02513C15.8185 7.36875 14.9283 7 14 7ZM14 9C14.3978 9 14.7794 9.15804 15.0607 9.43934C15.342 9.72064 15.5 10.1022 15.5 10.5C15.5 10.8978 15.342 11.2794 15.0607 11.5607C14.7794 11.842 14.3978 12 14 12H11.5V9H14Z" fill="#09244B"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_518_19">
|
||||
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
포인트
|
||||
<strong><?php echo number_format($member['mb_point']); ?>P</strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo G5_SHOP_URL ?>/coupon.php" target="_blank" class="win_coupon">
|
||||
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_518_27)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.037 2.16395C11.4407 2.12722 11.8477 2.1727 12.2334 2.29765C12.6191 2.4226 12.9755 2.62443 13.281 2.89095L13.431 3.03095L21.253 10.854C21.7913 11.3924 22.1048 12.1153 22.1298 12.8763C22.1549 13.6372 21.8897 14.3793 21.388 14.952L21.253 15.096L15.596 20.753C15.0576 21.2913 14.3346 21.6047 13.5736 21.6298C12.8127 21.6549 12.0707 21.3897 11.498 20.888L11.354 20.753L3.52998 12.93C3.24346 12.6434 3.01795 12.3019 2.86705 11.9258C2.71615 11.5498 2.64299 11.147 2.65198 10.742L2.66299 10.537L3.13498 5.35195C3.19558 4.68374 3.47844 4.05512 3.93834 3.56658C4.39824 3.07803 5.00864 2.75776 5.67198 2.65695L5.85098 2.63595L11.037 2.16395ZM8.52399 8.02495C8.33823 8.21071 8.19088 8.43123 8.09035 8.67393C7.98982 8.91663 7.93808 9.17676 7.93808 9.43945C7.93808 9.70215 7.98982 9.96227 8.09035 10.205C8.19088 10.4477 8.33823 10.6682 8.52399 10.854C8.70974 11.0397 8.93026 11.1871 9.17296 11.2876C9.41566 11.3881 9.67579 11.4399 9.93849 11.4399C10.2012 11.4399 10.4613 11.3881 10.704 11.2876C10.9467 11.1871 11.1672 11.0397 11.353 10.854C11.7281 10.4788 11.9389 9.96999 11.9389 9.43945C11.9389 8.90891 11.7281 8.4001 11.353 8.02495C10.9778 7.6498 10.469 7.43905 9.93849 7.43905C9.40795 7.43905 8.89913 7.6498 8.52399 8.02495Z" fill="#09244B"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_518_27">
|
||||
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
쿠폰
|
||||
<strong><?php echo number_format($cp_count); ?></strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo G5_BBS_URL ?>/memo.php" target="_blank" class="win_memo">
|
||||
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M20.735 5.68597C21.167 4.49097 20.009 3.33297 18.814 3.76597L4.20904 9.04797C3.01004 9.48197 2.86504 11.118 3.96804 11.757L8.63004 14.456L12.793 10.293C12.9816 10.1108 13.2342 10.01 13.4964 10.0123C13.7586 10.0146 14.0095 10.1197 14.1949 10.3051C14.3803 10.4906 14.4854 10.7414 14.4877 11.0036C14.49 11.2658 14.3892 11.5184 14.207 11.707L10.044 15.87L12.744 20.532C13.382 21.635 15.018 21.489 15.452 20.291L20.735 5.68597Z" fill="#09244B"/>
|
||||
</svg>
|
||||
메세지
|
||||
<strong><?php echo $memo_not_read ?></strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo G5_BBS_URL ?>/scrap.php" target="_blank" class="win_scrap">
|
||||
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_518_35)">
|
||||
<path d="M17.235 2.83503C16.8945 2.49437 16.4426 2.28799 15.9622 2.25382C15.4818 2.21965 15.0052 2.35998 14.62 2.64903L11.707 4.83403C10.4969 5.74181 9.0775 6.32992 7.57999 6.54403L5.40299 6.85403C4.67299 6.95903 4.13799 7.74503 4.48999 8.51603C4.82099 9.23903 5.87499 11.145 8.84999 14.236L4.67199 18.414C4.57648 18.5063 4.5003 18.6166 4.44789 18.7386C4.39548 18.8606 4.36789 18.9918 4.36674 19.1246C4.36558 19.2574 4.39088 19.3891 4.44117 19.512C4.49145 19.6349 4.5657 19.7465 4.65959 19.8404C4.75349 19.9343 4.86514 20.0086 4.98803 20.0588C5.11093 20.1091 5.24261 20.1344 5.37539 20.1333C5.50817 20.1321 5.63939 20.1045 5.76139 20.0521C5.8834 19.9997 5.99374 19.9235 6.08599 19.828L10.264 15.65C13.355 18.625 15.261 19.679 15.984 20.01C16.754 20.362 17.541 19.827 17.645 19.097L17.956 16.92C18.1701 15.4225 18.7582 14.0031 19.666 12.793L21.85 9.88003C22.139 9.4948 22.2794 9.0182 22.2452 8.5378C22.211 8.0574 22.0046 7.60547 21.664 7.26503L17.234 2.83503H17.235Z" fill="#09244B"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_518_35">
|
||||
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
스크랩
|
||||
<strong class="scrap"><?php echo number_format($member['mb_scrap_cnt']); ?></strong>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>내정보</h3>
|
||||
<dl class="op_area">
|
||||
<dt>연락처</dt>
|
||||
<dd><?php echo ($member['mb_tel'] ? $member['mb_tel'] : '미등록'); ?></dd>
|
||||
<dt>E-Mail</dt>
|
||||
<dd><?php echo ($member['mb_email'] ? $member['mb_email'] : '미등록'); ?></dd>
|
||||
<dt>최종접속일시</dt>
|
||||
<dd><?php echo $member['mb_today_login']; ?></dd>
|
||||
<dt>회원가입일시</dt>
|
||||
<dd><?php echo $member['mb_datetime']; ?></dd>
|
||||
<dt id="smb_my_ovaddt">주소</dt>
|
||||
<dd id="smb_my_ovaddd"><?php echo sprintf("(%s%s)", $member['mb_zip1'], $member['mb_zip2']).' '.print_address($member['mb_addr1'], $member['mb_addr2'], $member['mb_addr3'], $member['mb_addr_jibeon']); ?></dd>
|
||||
</dl>
|
||||
|
||||
<a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();" class="withdrawal withdrawal_none_ov">회원탈퇴</a>
|
||||
</section>
|
||||
<!-- } 회원정보 개요 끝 -->
|
||||
|
||||
<div id="smb_my_list">
|
||||
|
||||
<!-- 최근 주문내역 시작 { -->
|
||||
<section id="smb_my_od">
|
||||
|
||||
<!-- { -->
|
||||
<ul class="bbs_main_wrap_tit mb-10">
|
||||
|
||||
<li class="bbs_main_wrap_tit_l">
|
||||
<!-- 타이틀 { -->
|
||||
<h2 class="font-B font-18">주문내역 조회</h2>
|
||||
<!-- } -->
|
||||
</li>
|
||||
|
||||
|
||||
<li class="bbs_main_wrap_tit_r">
|
||||
<button type="button" class="more_btn" onclick="location.href='./orderinquiry.php';">더보기</button>
|
||||
</li>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
<?php
|
||||
// 최근 주문내역
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$limit = " limit 0, 5 ";
|
||||
include G5_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
?>
|
||||
|
||||
</section>
|
||||
<!-- } 최근 주문내역 끝 -->
|
||||
|
||||
<!-- 최근 위시리스트 시작 { -->
|
||||
<!-- { -->
|
||||
<ul class="bbs_main_wrap_tit mb-20">
|
||||
|
||||
<li class="bbs_main_wrap_tit_l">
|
||||
<!-- 타이틀 { -->
|
||||
<h2 class="font-B font-18">이용권 현황</h2>
|
||||
<!-- } -->
|
||||
</li>
|
||||
|
||||
|
||||
<li class="bbs_main_wrap_tit_r">
|
||||
<button type="button" class="more_btn" onclick="location.href='./tkinquiry.php';">전체보기</button>
|
||||
</li>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
<section id="smb_my_wish">
|
||||
|
||||
<?php
|
||||
$st_count1 = $st_count2 = 0;
|
||||
$custom_cancel = false;
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
group by it_id
|
||||
order by ct_id limit 3 ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr class="th_line">
|
||||
<th scope="col" id="th_itname">이용권</th>
|
||||
<th scope="col" id="th_itname">이용권</th>
|
||||
|
||||
<th scope="col" id="th_itst">상태</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$image = rb_it_image($row['it_id'], 55, 55);
|
||||
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and it_id = '{$row['it_id']}'
|
||||
and ct_status IN ('입금', '완료')
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
|
||||
$rowspan = sql_num_rows($res);
|
||||
|
||||
|
||||
|
||||
for($k=0; $opt=sql_fetch_array($res); $k++) {
|
||||
|
||||
if($opt['io_type']) {
|
||||
$opt_price = $opt['io_price'];
|
||||
} else {
|
||||
$opt_price = $opt['ct_price'] + $opt['io_price'];
|
||||
}
|
||||
|
||||
|
||||
if($k == 0) {
|
||||
?>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<?php if($k == 0) { ?>
|
||||
<td rowspan="<?php echo $rowspan ?>" style="border-right:1px solid #eee;">
|
||||
|
||||
<a href="<?php echo shop_item_url($row['it_id']); ?>" class="font-B"><?php echo $row['it_name']; ?></a><br>
|
||||
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td headers="th_itopt" class="td_prd">
|
||||
<div class="sod_name" <?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1) { ?>style="width:200px"<?php } ?>>
|
||||
|
||||
<div class="sod_opt"><?php echo get_text($opt['ct_option']); ?></div>
|
||||
</div>
|
||||
<?php
|
||||
//예약정보 로드
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($opt['ct_types']) && $opt['ct_types'] == 1) {
|
||||
$resv = sql_fetch ( " select * from {$g5['g5_shop_cart_table']} where ct_id = '{$opt['ct_id']}' and io_type = '0' " );
|
||||
include (G5_PATH.'/rb/rb.mod/reservation/info2.inc.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 최근 위시리스트 끝 -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function member_leave()
|
||||
{
|
||||
return confirm('정말 회원에서 탈퇴 하시겠습니까?')
|
||||
}
|
||||
|
||||
function out_cd_check(fld, out_cd)
|
||||
{
|
||||
if (out_cd == 'no'){
|
||||
alert("옵션이 있는 상품입니다.\n\n상품을 클릭하여 상품페이지에서 옵션을 선택한 후 주문하십시오.");
|
||||
fld.checked = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (out_cd == 'tel_inq'){
|
||||
alert("이 상품은 전화로 문의해 주십시오.\n\n장바구니에 담아 구입하실 수 없습니다.");
|
||||
fld.checked = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function fwishlist_check(f, act)
|
||||
{
|
||||
var k = 0;
|
||||
var length = f.elements.length;
|
||||
|
||||
for(i=0; i<length; i++) {
|
||||
if (f.elements[i].checked) {
|
||||
k++;
|
||||
}
|
||||
}
|
||||
|
||||
if(k == 0)
|
||||
{
|
||||
alert("상품을 하나 이상 체크 하십시오");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (act == "direct_buy")
|
||||
{
|
||||
f.sw_direct.value = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
f.sw_direct.value = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 마이페이지 끝 -->
|
||||
|
||||
<?php
|
||||
include_once("./_tail.php");
|
||||
76
theme/rb.basic/shop/orderinquiry.sub.php
Normal file
76
theme/rb.basic/shop/orderinquiry.sub.php
Normal file
@ -0,0 +1,76 @@
|
||||
<!-- 주문 내역 목록 시작 { -->
|
||||
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
|
||||
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문일시</th>
|
||||
<th scope="col">상품수</th>
|
||||
<th scope="col">주문금액</th>
|
||||
<!--
|
||||
<th scope="col">입금액</th>
|
||||
<th scope="col">미입금액</th>
|
||||
-->
|
||||
<th scope="col">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by od_id desc
|
||||
$limit ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
|
||||
switch($row['od_status']) {
|
||||
case '주문':
|
||||
$od_status = '<span class="status_01">입금확인중</span>';
|
||||
break;
|
||||
case '입금':
|
||||
$od_status = '<span class="status_02">입금완료</span>';
|
||||
break;
|
||||
case '준비':
|
||||
$od_status = '<span class="status_03">상품준비중</span>';
|
||||
break;
|
||||
case '배송':
|
||||
$od_status = '<span class="status_04">상품배송</span>';
|
||||
break;
|
||||
case '완료':
|
||||
$od_status = '<span class="status_05">사용완료</span>';
|
||||
break;
|
||||
default:
|
||||
$od_status = '<span class="status_06">주문취소</span>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>" class="font-B"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="text-center"><?php echo substr($row['od_time'],2,14); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_numbig"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<!--
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_misu']); ?></td>
|
||||
-->
|
||||
<td class="text-center"><?php echo $od_status; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- } 주문 내역 목록 끝 -->
|
||||
888
theme/rb.basic/shop/orderinquiryview.php
Normal file
888
theme/rb.basic/shop/orderinquiryview.php
Normal file
@ -0,0 +1,888 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$g5['title'] = '주문상세내역';
|
||||
include_once('./_head.php');
|
||||
|
||||
// LG 현금영수증 JS
|
||||
if($od['od_pg'] == 'lg') {
|
||||
if($default['de_card_test']) {
|
||||
echo '<script language="JavaScript" src="'.SHOP_TOSSPAYMENTS_CASHRECEIPT_TEST_JS.'"></script>'.PHP_EOL;
|
||||
} else {
|
||||
echo '<script language="JavaScript" src="'.SHOP_TOSSPAYMENTS_CASHRECEIPT_REAL_JS.'"></script>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- 주문상세내역 시작 { -->
|
||||
<div id="sod_fin">
|
||||
<div id="sod_fin_no">주문번호 <strong><?php echo $od_id; ?></strong></div>
|
||||
<section id="sod_fin_list">
|
||||
<h2>주문하신 상품</h2>
|
||||
|
||||
<?php
|
||||
$st_count1 = $st_count2 = 0;
|
||||
$custom_cancel = false;
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
group by it_id
|
||||
order by ct_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr class="th_line">
|
||||
<th scope="col" id="th_itname">상품명</th>
|
||||
<th scope="col" id="th_itqty">총수량</th>
|
||||
<th scope="col" id="th_itprice">상품금액</th>
|
||||
<th scope="col" id="th_itpt">포인트</th>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<th scope="col" id="th_itsd">배송비</th>
|
||||
<?php } ?>
|
||||
<th scope="col" id="th_itsum">소계</th>
|
||||
<th scope="col" id="th_itst">상태</th>
|
||||
<?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1) { ?>
|
||||
<th scope="col" id="th_aprtner">판매자</th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$image = rb_it_image($row['it_id'], 55, 55);
|
||||
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
|
||||
$rowspan = sql_num_rows($res) + 1;
|
||||
|
||||
// 예약상품 여부에 따른 합계금액 계산 방식 변경
|
||||
$price_calc = "((ct_price + io_price) * ct_qty)";
|
||||
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1 && isset($row['ct_types']) && $row['ct_types'] == 1) {
|
||||
$price_calc = "((ct_price + io_price) * ct_qty * COALESCE(ct_date_d, 1) +
|
||||
(COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0)) +
|
||||
(COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0)) +
|
||||
(COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0)))";
|
||||
}
|
||||
|
||||
$sql = "SELECT SUM(IF(io_type = 1, (io_price * ct_qty), $price_calc)) AS price,
|
||||
SUM(ct_qty) AS qty
|
||||
FROM {$g5['g5_shop_cart_table']}
|
||||
WHERE it_id = '{$row['it_id']}'
|
||||
AND od_id = '$od_id'";
|
||||
|
||||
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
// 배송비
|
||||
switch($row['ct_send_cost'])
|
||||
{
|
||||
case 1:
|
||||
$ct_send_cost = '착불';
|
||||
break;
|
||||
case 2:
|
||||
$ct_send_cost = '무료';
|
||||
break;
|
||||
default:
|
||||
$ct_send_cost = '선불';
|
||||
break;
|
||||
}
|
||||
|
||||
// 조건부무료
|
||||
if($row['it_sc_type'] == 2) {
|
||||
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $od_id);
|
||||
|
||||
if($sendcost == 0)
|
||||
$ct_send_cost = '무료';
|
||||
}
|
||||
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($row['ct_types']) && $row['ct_types'] == 1) {
|
||||
$ct_send_cost = '-';
|
||||
}
|
||||
}
|
||||
|
||||
for($k=0; $opt=sql_fetch_array($res); $k++) {
|
||||
if($opt['io_type']) {
|
||||
$opt_price = $opt['io_price'];
|
||||
} else {
|
||||
$opt_price = $opt['ct_price'] + $opt['io_price'];
|
||||
}
|
||||
|
||||
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($opt['ct_types']) && $opt['ct_types'] == 1) {
|
||||
|
||||
$sell_price_re = $opt_price * $opt['ct_qty'];
|
||||
$sell_price_re2 = $sell_price_re * $opt['ct_date_d'];
|
||||
|
||||
$ct_user_pri1_p = $opt['ct_user_pri1'] * $opt['ct_user_qty1'];
|
||||
$ct_user_pri2_p = $opt['ct_user_pri2'] * $opt['ct_user_qty2'];
|
||||
$ct_user_pri3_p = $opt['ct_user_pri3'] * $opt['ct_user_qty3'];
|
||||
|
||||
$ct_user_pri_p = $ct_user_pri1_p + $ct_user_pri2_p + $ct_user_pri3_p;
|
||||
|
||||
if($opt['io_type']) {
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
} else {
|
||||
$sell_price = $sell_price_re2 + $ct_user_pri_p;
|
||||
}
|
||||
|
||||
} else {
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
}
|
||||
} else {
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
}
|
||||
|
||||
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
|
||||
|
||||
|
||||
if(isset($pa['pa_is']) && $pa['pa_is'] == 1) {
|
||||
if(isset($opt['ct_partner']) && $opt['ct_partner']) {
|
||||
$pm = get_member($opt['ct_partner']);
|
||||
}
|
||||
}
|
||||
|
||||
if($k == 0) {
|
||||
?>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td headers="th_itopt" class="td_prd">
|
||||
<div class="sod_img"><?php echo $image; ?></div>
|
||||
<div class="sod_name" <?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1) { ?>style="width:200px"<?php } ?>>
|
||||
<a href="<?php echo shop_item_url($row['it_id']); ?>"><?php echo $row['it_name']; ?></a><br>
|
||||
<div class="sod_opt"><?php echo get_text($opt['ct_option']); ?></div>
|
||||
</div>
|
||||
<?php
|
||||
//예약정보 로드
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($opt['ct_types']) && $opt['ct_types'] == 1) {
|
||||
$resv = sql_fetch ( " select * from {$g5['g5_shop_cart_table']} where ct_id = '{$opt['ct_id']}' and io_type = '0' " );
|
||||
include (G5_PATH.'/rb/rb.mod/reservation/info.inc.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td headers="th_itqty" class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td headers="th_itprice" class="td_numbig text_right"><?php echo number_format($opt_price); ?></td>
|
||||
<td headers="th_itpt" class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<td headers="th_itsd" class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<?php } ?>
|
||||
<td headers="th_itsum" class="td_numbig text_right"><?php echo number_format($sell_price); ?></td>
|
||||
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
<?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1) { ?>
|
||||
<td headers="th_partner" class="td_mngsmall"><?php echo isset($pm['mb_nick']) ? $pm['mb_nick'] : '-'; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
}
|
||||
|
||||
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능
|
||||
if($st_count1 > 0 && $st_count1 == $st_count2)
|
||||
$custom_cancel = true;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="sod_sts_wrap">
|
||||
<span class="sound_only">상품 상태 설명</span>
|
||||
<button type="button" id="sod_sts_explan_open" class="btn_frmline">상태설명보기</button>
|
||||
<div id="sod_sts_explan">
|
||||
<dl id="sod_fin_legend">
|
||||
<dt>주문</dt>
|
||||
<dd>주문이 접수되었습니다.
|
||||
<dt>입금</dt>
|
||||
<dd>입금(결제)이 완료 되었습니다.
|
||||
<!--
|
||||
<dt>준비</dt>
|
||||
<dd>상품 준비 중입니다.
|
||||
<dt>배송</dt>
|
||||
<dd>상품 배송 중입니다.
|
||||
-->
|
||||
<dt>완료</dt>
|
||||
<dd>사용이 완료 되었습니다.
|
||||
</dl>
|
||||
<button type="button" id="sod_sts_explan_close" class="btn_frmline">상태설명닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="sod_left">
|
||||
<h2>결제/배송 정보</h2>
|
||||
<?php
|
||||
// 총계 = 주문상품금액합계 + 배송비 - 상품할인 - 결제할인 - 배송비할인
|
||||
$tot_price = $od['od_cart_price'] + $od['od_send_cost'] + $od['od_send_cost2']
|
||||
- $od['od_cart_coupon'] - $od['od_coupon'] - $od['od_send_coupon']
|
||||
- $od['od_cancel_price'];
|
||||
|
||||
$receipt_price = $od['od_receipt_price']
|
||||
+ $od['od_receipt_point'];
|
||||
$cancel_price = $od['od_cancel_price'];
|
||||
|
||||
$misu = true;
|
||||
$misu_price = $tot_price - $receipt_price;
|
||||
|
||||
if ($misu_price == 0 && ($od['od_cart_price'] > $od['od_cancel_price'])) {
|
||||
$wanbul = " (완불)";
|
||||
$misu = false; // 미수금 없음
|
||||
}
|
||||
else
|
||||
{
|
||||
$wanbul = display_price($receipt_price);
|
||||
}
|
||||
|
||||
// 결제정보처리
|
||||
if($od['od_receipt_price'] > 0)
|
||||
$od_receipt_price = display_price($od['od_receipt_price']);
|
||||
else
|
||||
$od_receipt_price = '아직 입금되지 않았거나 입금정보를 입력하지 못하였습니다.';
|
||||
|
||||
$app_no_subj = '';
|
||||
$disp_bank = true;
|
||||
$disp_receipt = false;
|
||||
if($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == 'KAKAOPAY' || is_inicis_order_pay($od['od_settle_case']) ) {
|
||||
$app_no_subj = '승인번호';
|
||||
$app_no = $od['od_app_no'];
|
||||
$disp_bank = false;
|
||||
$disp_receipt = true;
|
||||
} else if($od['od_settle_case'] == '간편결제') {
|
||||
$app_no_subj = '승인번호';
|
||||
$app_no = $od['od_app_no'];
|
||||
$disp_bank = false;
|
||||
$disp_receipt = true;
|
||||
} else if($od['od_settle_case'] == '휴대폰') {
|
||||
$app_no_subj = '휴대폰번호';
|
||||
$app_no = $od['od_bank_account'];
|
||||
$disp_bank = false;
|
||||
$disp_receipt = true;
|
||||
} else if($od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') {
|
||||
$app_no_subj = '거래번호';
|
||||
$app_no = $od['od_tno'];
|
||||
|
||||
if( function_exists('shop_is_taxsave') && $misu_price == 0 && shop_is_taxsave($od, true) === 2 ){
|
||||
$disp_receipt = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<section id="sod_fin_orderer">
|
||||
<h3>주문자 정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">이 름</th>
|
||||
<td><?php echo get_text($od['od_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">일반전화</th>
|
||||
<td><?php echo get_text($od['od_tel']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">휴대전화</th>
|
||||
<td><?php echo get_text($od['od_hp']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주 소</th>
|
||||
<td><?php echo get_text(sprintf("(%s%s)", $od['od_zip1'], $od['od_zip2']).' '.print_address($od['od_addr1'], $od['od_addr2'], $od['od_addr3'], $od['od_addr_jibeon'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">E-mail</th>
|
||||
<td><?php echo get_text($od['od_email']); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="sod_fin_receiver">
|
||||
<h3>사용자(수령자) 정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">이 름</th>
|
||||
<td><?php echo get_text($od['od_b_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">일반전화</th>
|
||||
<td><?php echo get_text($od['od_b_tel']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">휴대전화</th>
|
||||
<td><?php echo get_text($od['od_b_hp']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주 소</th>
|
||||
<td><?php echo get_text(sprintf("(%s%s)", $od['od_b_zip1'], $od['od_b_zip2']).' '.print_address($od['od_b_addr1'], $od['od_b_addr2'], $od['od_b_addr3'], $od['od_b_addr_jibeon'])); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
// 희망배송일을 사용한다면
|
||||
if ($default['de_hope_date_use'])
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">희망배송일</th>
|
||||
<td><?php echo substr($od['od_hope_date'],0,10).' ('.get_yoil($od['od_hope_date']).')' ;?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($od['od_memo'])
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">전하실 말씀</th>
|
||||
<td><?php echo conv_content($od['od_memo'], 0); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT ct_user_qty1 FROM {$g5['g5_shop_cart_table']} WHERE od_id = '$od_id' AND ct_select = '1' LIMIT 1");
|
||||
$ct_user_qty1 = (int)$resv['ct_user_qty1'];
|
||||
if(isset($ct_user_qty1) && $ct_user_qty1 > 0) {
|
||||
|
||||
$names = explode('|', $od['od_names']);
|
||||
$hps = explode('|', $od['od_hps']);
|
||||
|
||||
if($names[0]) {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<section id="sod_fin_receiver">
|
||||
<h3>추가사용자 정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
|
||||
<tbody>
|
||||
<?php for($i = 0; $i < $ct_user_qty1; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row">사용자 <?php echo $i+1 ?></th>
|
||||
<td><?php echo get_text($names[$i] ?? ''); ?> / <?php echo get_text($hps[$i] ?? ''); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
|
||||
<?php if(isset($pa['pa_is']) && $pa['pa_is'] == 1) { ?>
|
||||
|
||||
<?php
|
||||
$sql_b = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' group by ct_partner order by ct_id ";
|
||||
$res_b = sql_query($sql_b);
|
||||
?>
|
||||
|
||||
<?php
|
||||
for($j=0; $rows=sql_fetch_array($res_b); $j++) {
|
||||
|
||||
$pm_nick = "";
|
||||
|
||||
if(isset($pa['pa_is']) && $pa['pa_is'] == 1) {
|
||||
if(isset($rows['ct_partner']) && $rows['ct_partner']) {
|
||||
$pm = get_member($rows['ct_partner']);
|
||||
$pm_nick = "[".$pm['mb_nick']."] ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$cat = isset($res_ca['bo_category_list']) ? $res_ca['bo_category_list'] : '';
|
||||
?>
|
||||
<section id="sod_fin_dvr">
|
||||
<h3><?php echo $pm_nick ?>배송정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($rows['ct_invoice'] && $rows['ct_delivery_company']) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $rows['ct_delivery_company']; ?> <?php echo get_delivery_inquiry($rows['ct_delivery_company'], $rows['ct_invoice'], 'dvr_link'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $rows['ct_invoice']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송일시</th>
|
||||
<td><?php echo $rows['ct_invoice_time']; ?></td>
|
||||
</tr>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<section id="sod_fin_dvr">
|
||||
<h3>배송정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if ($od['od_invoice'] && $od['od_delivery_company']) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice'], 'dvr_link'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $od['od_invoice']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송일시</th>
|
||||
<td><?php echo $od['od_invoice_time']; ?></td>
|
||||
</tr>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="sod_right">
|
||||
<ul id="sod_bsk_tot2">
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문총액</span>
|
||||
<strong><?php echo number_format($od['od_cart_price']); ?> 원</strong>
|
||||
</li>
|
||||
<?php if($od['od_cart_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>개별상품 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_cart_coupon']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문금액 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_coupon']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($od['od_send_cost']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_send_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_send_coupon']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost2'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>추가배송비</span>
|
||||
<strong><?php echo number_format($od['od_send_cost2']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_cancel_price'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>취소금액</span>
|
||||
<strong><?php echo number_format($od['od_cancel_price']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li class="sod_bsk_cnt">
|
||||
<span>총계</span>
|
||||
<strong><?php echo number_format($tot_price); ?> 원</strong>
|
||||
</li>
|
||||
<li class="sod_bsk_point">
|
||||
<span>적립포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?> P</strong>
|
||||
</li>
|
||||
|
||||
<li class="sod_fin_tot"><span>총 구매액</span><strong><?php echo display_price($tot_price); ?></strong></li>
|
||||
<?php
|
||||
if ($misu_price > 0) {
|
||||
echo '<li class="sod_fin_tot">';
|
||||
echo '<span>미결제액</span>'.PHP_EOL;
|
||||
echo '<strong>'.display_price($misu_price).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
<li id="alrdy" class="sod_fin_tot">
|
||||
<span>결제액</span>
|
||||
<strong><?php echo $wanbul; ?></strong>
|
||||
<?php if( $od['od_receipt_point'] ){ //포인트로 결제한 내용이 있으면 ?>
|
||||
<div>
|
||||
<p><span class="title">포인트 결제</span><?php echo number_format($od['od_receipt_point']); ?>점</p>
|
||||
<p><span class="title">실결제</span><?php echo number_format($od['od_receipt_price']); ?>원</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>주문번호</strong>
|
||||
<span><?php echo $od_id; ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>주문일시</strong>
|
||||
<span><?php echo $od['od_time']; ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>결제방식</strong>
|
||||
<span><?php echo check_pay_name_replace($od['od_settle_case'], $od, 1); ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>결제금액</strong>
|
||||
<span><?php echo $od_receipt_price; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
if($od['od_receipt_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>결제일시</strong>
|
||||
<span><?php echo $od['od_receipt_time']; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, 거래번호
|
||||
if($app_no_subj && $app_no)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong><?php echo $app_no_subj; ?></strong>
|
||||
<span><?php echo $app_no; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>입금자명</strong>
|
||||
<span><?php echo get_text($od['od_deposit_name']); ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>입금계좌</strong>
|
||||
<span><?php echo get_text($od['od_bank_account']); ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<li>
|
||||
<strong>영수증</strong>
|
||||
<span>
|
||||
<?php
|
||||
if($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$hp_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$hp_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else if($od['od_pg'] == 'nicepay') {
|
||||
$hp_receipt_script = 'window.open(\'https://npg.nicepay.co.kr/issue/IssueLoader.do?type=0&TID='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$hp_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'mcash_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=500,height=690,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $hp_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '간편결제' || is_inicis_order_pay($od['od_settle_case']) || (shop_is_taxsave($od, true) && $misu_price == 0) )
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$card_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$card_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else if($od['od_pg'] == 'nicepay') {
|
||||
$card_receipt_script = 'window.open(\'https://npg.nicepay.co.kr/issue/IssueLoader.do?type=0&TID='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$card_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'card_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=470,height=815,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == 'KAKAOPAY')
|
||||
{
|
||||
//$card_receipt_script = 'window.open(\'https://mms.cnspay.co.kr/trans/retrieveIssueLoader.do?TID='.$od['od_tno'].'&type=0\', \'popupIssue\', \'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=420,height=540\');';
|
||||
$card_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>포인트사용</strong>
|
||||
<span><?php echo display_point($od['od_receipt_point']); ?></span>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_refund_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>환불 금액</strong>
|
||||
<span><?php echo display_price($od['od_refund_price']); ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 현금영수증 발급을 사용하는 경우 또는 현금영수증 발급을 한 주문건이면
|
||||
if ((function_exists('shop_is_taxsave') && shop_is_taxsave($od)) || (function_exists('is_order_cashreceipt') && is_order_cashreceipt($od))) {
|
||||
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
|
||||
if ($misu_price == 0 && is_order_cashreceipt($od)) {
|
||||
?>
|
||||
<li>
|
||||
<strong class="letter-2px">현금영수증</strong>
|
||||
<span>
|
||||
<?php
|
||||
if ($od['od_cash'])
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
|
||||
switch($od['od_settle_case']) {
|
||||
case '계좌이체':
|
||||
$trade_type = 'BANK';
|
||||
break;
|
||||
case '가상계좌':
|
||||
$trade_type = 'CAS';
|
||||
break;
|
||||
default:
|
||||
$trade_type = 'CR';
|
||||
break;
|
||||
}
|
||||
$cash_receipt_script = 'javascript:showCashReceipts(\''.$LGD_MID.'\',\''.$od['od_id'].'\',\''.$od['od_casseqno'].'\',\''.$trade_type.'\',\''.$CST_PLATFORM.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/Cash_mCmReceipt.jsp?noTid='.$cash['TID'].'&clpaymethod=22\',\'showreceipt\',\'width=380,height=540,scrollbars=no,resizable=no\');';
|
||||
} else if($od['od_pg'] == 'nicepay') {
|
||||
$cash_receipt_script = 'window.open(\'https://npg.nicepay.co.kr/issue/IssueLoader.do?type=1&TID='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
require_once G5_SHOP_PATH.'/settle_kcp.inc.php';
|
||||
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\''.G5_CASH_RECEIPT_URL.$default['de_kcp_mid'].'&orderid='.$od_id.'&bill_yn=Y&authno='.$cash['receipt_no'].'\', \'taxsave_receipt\', \'width=360,height=647,scrollbars=0,menus=0\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $cash_receipt_script; ?>" class="btn_frmline">현금영수증 확인하기</a>
|
||||
<?php
|
||||
}
|
||||
else if (shop_is_taxsave($od))
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');" class="btn_frmline is-long-text">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="sod_fin_cancel">
|
||||
<?php
|
||||
// 취소한 내역이 없다면
|
||||
if ($cancel_price == 0) {
|
||||
if ($custom_cancel) {
|
||||
?>
|
||||
<button type="button" class="sod_fin_c_btn">주문 취소하기</button>
|
||||
<div id="sod_cancel_pop">
|
||||
<div id="sod_fin_cancelfrm">
|
||||
<h2>주문취소</h2>
|
||||
<form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">
|
||||
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
|
||||
<label for="cancel_memo" class="sound_only">취소사유</label>
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" size="40" maxlength="100" placeholder="취소사유">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
</form>
|
||||
<button class="sod_cls_btn"><span class="sound_only">닫기</span><i class="fa fa-times" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
<div class="sod_fin_bg"></div>
|
||||
</div>
|
||||
<script>
|
||||
$(function (){
|
||||
$(".sod_fin_c_btn").on("click", function() {
|
||||
$("#sod_cancel_pop").show();
|
||||
});
|
||||
$(".sod_cls_btn").on("click", function() {
|
||||
$("#sod_cancel_pop").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<p>주문 취소, 반품, 품절된 내역이 있습니다.</p>
|
||||
<?php } ?>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="cb"></div>
|
||||
|
||||
<?php if ($od['od_settle_case'] == '가상계좌' && $od['od_misu'] > 0 && $default['de_card_test'] && $is_admin && $od['od_pg'] == 'kcp') {
|
||||
preg_match("/\s{1}([^\s]+)\s?/", $od['od_bank_account'], $matchs);
|
||||
$deposit_no = trim($matchs[1]);
|
||||
?>
|
||||
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">
|
||||
<table>
|
||||
<caption>모의입금처리</caption>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col"><label for="e_trade_no">KCP 거래번호</label></th>
|
||||
<td><input type="text" name="e_trade_no" value="<?php echo $od['od_tno']; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="deposit_no">입금계좌</label></th>
|
||||
<td><input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="req_name">입금자명</label></th>
|
||||
<td><input type="text" name="req_name" value="<?php echo $od['od_deposit_name']; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="noti_url">입금통보 URL</label></th>
|
||||
<td><input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="sod_fin_test" class="btn_confirm">
|
||||
<input type="submit" value="입금통보 테스트" class="btn_submit">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<!-- } 주문상세내역 끝 -->
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#sod_sts_explan_open").on("click", function() {
|
||||
var $explan = $("#sod_sts_explan");
|
||||
if($explan.is(":animated"))
|
||||
return false;
|
||||
|
||||
if($explan.is(":visible")) {
|
||||
$explan.slideUp(200);
|
||||
$("#sod_sts_explan_open").text("상태설명보기");
|
||||
} else {
|
||||
$explan.slideDown(200);
|
||||
$("#sod_sts_explan_open").text("상태설명닫기");
|
||||
}
|
||||
});
|
||||
|
||||
$("#sod_sts_explan_close").on("click", function() {
|
||||
var $explan = $("#sod_sts_explan");
|
||||
if($explan.is(":animated"))
|
||||
return false;
|
||||
|
||||
$explan.slideUp(200);
|
||||
$("#sod_sts_explan_open").text("상태설명보기");
|
||||
});
|
||||
});
|
||||
|
||||
function fcancel_check(f)
|
||||
{
|
||||
if(!confirm("주문을 정말 취소하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
var memo = f.cancel_memo.value;
|
||||
if(memo == "") {
|
||||
alert("취소사유를 입력해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
1
theme/rb.basic/shop/rangeSlider/ion.rangeSlider.min.css
vendored
Normal file
1
theme/rb.basic/shop/rangeSlider/ion.rangeSlider.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2
theme/rb.basic/shop/rangeSlider/ion.rangeSlider.min.js
vendored
Normal file
2
theme/rb.basic/shop/rangeSlider/ion.rangeSlider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
23
theme/rb.basic/shop/rb.layout/basic/index.php
Normal file
23
theme/rb.basic/shop/rb.layout/basic/index.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 레이아웃 폴더내 style.css 파일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_SHOP_URL.'/rb.layout/'.$rb_core['layout_shop'].'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!--
|
||||
* 환경설정에서 모듈 추가를 사용하려면 반드시 class="flex_box" 를 포함해야 합니다.
|
||||
|
||||
* 참고사항
|
||||
- 섹션을 좌/우 에 배치하는 경우
|
||||
- <div class="flex_box left"></div>
|
||||
- <div class="flex_box right"></div>
|
||||
- 와 같이 class="flex_box" 를 두개로 배치한 후 css를 추가해주세요.
|
||||
|
||||
- 생성되는 모듈은 각 섹션의 좌측부터 순서대로 배치되며
|
||||
- 지정된 width 를 벗어나면 줄바꿈 되어 생성 됩니다.
|
||||
|
||||
- class="flex_box" 를 사용하지 않고 직접 메인페이지를 구성할 수 있습니다.
|
||||
-->
|
||||
|
||||
<div class="flex_box"></div>
|
||||
1
theme/rb.basic/shop/rb.layout/basic/style.css
Normal file
1
theme/rb.basic/shop/rb.layout/basic/style.css
Normal file
@ -0,0 +1 @@
|
||||
/* 레이아웃 CSS */
|
||||
225
theme/rb.basic/shop/rb.layout_ft/basic/footer.php
Normal file
225
theme/rb.basic/shop/rb.layout_ft/basic/footer.php
Normal file
@ -0,0 +1,225 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 레이아웃 폴더내 style.css 파일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_SHOP_URL.'/rb.layout_ft/'.$rb_core['layout_ft_shop'].'/style.css">', 0);
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!--
|
||||
<footer>내용</footer>
|
||||
<footer>는 반드시 포함해주세요.
|
||||
-->
|
||||
<div class="pc db_tops">
|
||||
<div class="btm_bar" style="width:<?php echo $tb_width_inner ?>;">
|
||||
<ul class="btm_bar_ul1">
|
||||
<img src="<?php echo G5_THEME_URL ?>/rb.img/btm_ci.svg">
|
||||
</ul>
|
||||
<ul class="btm_bar_ul1">
|
||||
<li class="font-B color-999"><?php echo $config['cf_3_subj']; ?></li>
|
||||
<li class="font-B main_color"><?php echo $config['cf_3']; ?></li>
|
||||
</ul>
|
||||
<ul class="btm_bar_ul1">
|
||||
<li class="font-B color-999"><?php echo $config['cf_4_subj']; ?></li>
|
||||
<li class="font-B main_color"><?php echo $config['cf_4']; ?></li>
|
||||
</ul>
|
||||
<ul class="btm_bar_ul1">
|
||||
<li class="font-B color-999"><?php echo $config['cf_5_subj']; ?></li>
|
||||
<li class="font-B main_color"><?php echo $config['cf_5']; ?></li>
|
||||
</ul>
|
||||
|
||||
<ul class="footer_copy_ul4">
|
||||
|
||||
<?php if (!empty($rb_builder['bu_sns1'])) { ?><a href="<?php echo $rb_builder['bu_sns1'] ?>" target="_blank" class="footer_sns_ico" title="카카오 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_kakaoch.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns2'])) { ?><a href="<?php echo $rb_builder['bu_sns2'] ?>" target="_blank" class="footer_sns_ico" title="카카오 채팅상담"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_kakaoch_chat.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns3'])) { ?><a href="<?php echo $rb_builder['bu_sns3'] ?>" target="_blank" class="footer_sns_ico" title="유튜브 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_youtube.png"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns4'])) { ?><a href="<?php echo $rb_builder['bu_sns4'] ?>" target="_blank" class="footer_sns_ico" title="인스타그램 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_instagram.png"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns5'])) { ?><a href="<?php echo $rb_builder['bu_sns5'] ?>" target="_blank" class="footer_sns_ico" title="페이스북 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_facebook.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns6'])) { ?><a href="<?php echo $rb_builder['bu_sns6'] ?>" target="_blank" class="footer_sns_ico" title="트위터 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_twitter.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns7'])) { ?><a href="<?php echo $rb_builder['bu_sns7'] ?>" target="_blank" class="footer_sns_ico" title="네이버블로그 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_naverblog.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns8'])) { ?><a href="<?php echo $rb_builder['bu_sns8'] ?>" target="_blank" class="footer_sns_ico" title="텔레그램 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_telegram.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns9'])) { ?><a href="<?php echo $rb_builder['bu_sns9'] ?>" target="_blank" class="footer_sns_ico" title="SIR 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_sir.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns10'])) { ?><a href="<?php echo $rb_builder['bu_sns10'] ?>" target="_blank" class="footer_sns_ico" title="공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_links.svg"></a><?php } ?>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<div class="footer_copy">
|
||||
<div class="inner" style="width:<?php echo $tb_width_inner ?>; <?php echo $tb_width_padding ?>">
|
||||
<ul class="footer_copy_ul1">
|
||||
|
||||
<li class="footer_copy_ul1_li2">
|
||||
<span class="font-B btm_txts">
|
||||
퍼스트가든에서 가족, 연인, 친구와 함께<br>
|
||||
특별한 이야기를 만들어보세요.<br><br>
|
||||
</span>
|
||||
<a class="btm_a_links" href="<?php echo get_pretty_url('content', 'privacy'); ?>">개인정보처리방침</a> |
|
||||
<a class="btm_a_links" href="<?php echo get_pretty_url('content', 'contact'); ?>">찾아오시는 길</a> |
|
||||
<a class="btm_a_links" href="<?php echo G5_BBS_URL ?>/qalist.php">1:1 문의</a> |
|
||||
<a class="btm_a_links" href="<?php echo G5_BBS_URL ?>/faq.php">FAQ</a><br><br>
|
||||
<?php if (!empty($rb_builder['bu_1'])) { ?><dd><?php echo $rb_builder['bu_1'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_2'])) { ?><dd>대표자 : <?php echo $rb_builder['bu_2'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_3'])) { ?><dd>대표전화 : <?php echo $rb_builder['bu_3'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_4'])) { ?><dd>팩스 : <?php echo $rb_builder['bu_4'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_5'])) { ?><dd>사업자등록번호 : <?php echo $rb_builder['bu_5'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_6'])) { ?><dd>통신판매업신고번호 : <?php echo $rb_builder['bu_6'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_7'])) { ?><dd>부가통신사업자번호 : <?php echo $rb_builder['bu_7'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_10'])) { ?><dd>주소 : <?php if (!empty($rb_builder['bu_9'])) { ?>(<?php echo $rb_builder['bu_9'] ?>) <?php } ?> <?php echo $rb_builder['bu_10'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_8'])) { ?><dd>주차장 : <?php echo $rb_builder['bu_8'] ?><?php } ?></dd>
|
||||
<?php if (!empty($rb_builder['bu_11'])) { ?><dd>개인정보책임자(이메일) : <?php echo $rb_builder['bu_11'] ?></dd><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_12'])) { ?>
|
||||
<?php } ?>
|
||||
<div class="cb"></div>
|
||||
<div class="d-blocks"><?php echo $rb_builder['bu_12'] ?> <?php if($is_admin) { ?><a href="<?php echo G5_SHOP_URL ?>/tkinquiry.php" style="color:#fff;">이용권 관리</a><?php } ?><div>
|
||||
|
||||
<div class="mobile btm_sns_sub">
|
||||
|
||||
<?php if (!empty($rb_builder['bu_sns1'])) { ?><a href="<?php echo $rb_builder['bu_sns1'] ?>" target="_blank" class="footer_sns_ico" title="카카오 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_kakaoch.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns2'])) { ?><a href="<?php echo $rb_builder['bu_sns2'] ?>" target="_blank" class="footer_sns_ico" title="카카오 채팅상담"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_kakaoch_chat.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns3'])) { ?><a href="<?php echo $rb_builder['bu_sns3'] ?>" target="_blank" class="footer_sns_ico" title="유튜브 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_youtube.png"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns4'])) { ?><a href="<?php echo $rb_builder['bu_sns4'] ?>" target="_blank" class="footer_sns_ico" title="인스타그램 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_instagram.png"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns5'])) { ?><a href="<?php echo $rb_builder['bu_sns5'] ?>" target="_blank" class="footer_sns_ico" title="페이스북 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_facebook.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns6'])) { ?><a href="<?php echo $rb_builder['bu_sns6'] ?>" target="_blank" class="footer_sns_ico" title="트위터 공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_twitter.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns7'])) { ?><a href="<?php echo $rb_builder['bu_sns7'] ?>" target="_blank" class="footer_sns_ico" title="네이버블로그 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_naverblog.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns8'])) { ?><a href="<?php echo $rb_builder['bu_sns8'] ?>" target="_blank" class="footer_sns_ico" title="텔레그램 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_telegram.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns9'])) { ?><a href="<?php echo $rb_builder['bu_sns9'] ?>" target="_blank" class="footer_sns_ico" title="SIR 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_sir.svg"></a><?php } ?>
|
||||
<?php if (!empty($rb_builder['bu_sns10'])) { ?><a href="<?php echo $rb_builder['bu_sns10'] ?>" target="_blank" class="footer_sns_ico" title="공식채널 바로가기"><img src="<?php echo G5_THEME_URL ?>/rb.img/icon/sns_g/g_links.svg"></a><?php } ?>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="footer_copy_ul2">
|
||||
<div class="ft_gnbs">
|
||||
|
||||
<?php
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
?>
|
||||
<ul class="ft_gnbs_ul">
|
||||
<li class="ft_gnbs_tit"><a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="font-B"><?php echo $row['me_name'] ?></a></li>
|
||||
<?php
|
||||
$k = 0;
|
||||
foreach( (array) $row['sub'] as $row2 ){
|
||||
|
||||
if( empty($row2) ) continue;
|
||||
|
||||
if($k == 0)
|
||||
echo '<li class="ft_gnbs_sub">'.PHP_EOL;
|
||||
|
||||
?>
|
||||
<a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a>
|
||||
<?php
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</li>'.PHP_EOL;
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
$i++;
|
||||
} //end foreach $row
|
||||
?>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div class="ft_pi">
|
||||
<div class="ft_pi_inner" style="width:<?php echo $tb_width_inner ?>;">
|
||||
<ul class="ft_pi_ul1">당사 홍보를 위한 사진 및 영상 컨텐츠를 촬영할 수 있습니다. 초상권 침해 여지가 있는 경우 촬영물의 사용 허가를 사전에 구하며, 사용 동의 시 소정의 선물을 드립니다.</ul>
|
||||
<ul class="ft_pi_ul2 pc">
|
||||
<button type="button" onclick="window.scrollTo({ top: 0, behavior: 'smooth' });"><img src="<?php echo G5_THEME_URL ?>/rb.img/up.svg"></button>
|
||||
</ul>
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="tail_fixed_gnb mobile main_rb_bg">
|
||||
<button type="button" onclick="location.href='<?php echo G5_SHOP_URL ?>/cart.php';" title="장바구니">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_526_6)">
|
||||
<path d="M7.5 19C7.89782 19 8.27936 19.158 8.56066 19.4393C8.84196 19.7206 9 20.1022 9 20.5C9 20.8978 8.84196 21.2794 8.56066 21.5607C8.27936 21.842 7.89782 22 7.5 22C7.10218 22 6.72064 21.842 6.43934 21.5607C6.15804 21.2794 6 20.8978 6 20.5C6 20.1022 6.15804 19.7206 6.43934 19.4393C6.72064 19.158 7.10218 19 7.5 19ZM17.5 19C17.8978 19 18.2794 19.158 18.5607 19.4393C18.842 19.7206 19 20.1022 19 20.5C19 20.8978 18.842 21.2794 18.5607 21.5607C18.2794 21.842 17.8978 22 17.5 22C17.1022 22 16.7206 21.842 16.4393 21.5607C16.158 21.2794 16 20.8978 16 20.5C16 20.1022 16.158 19.7206 16.4393 19.4393C16.7206 19.158 17.1022 19 17.5 19ZM3 2C4.726 2 6.023 3.283 6.145 5H19.802C20.095 4.99996 20.3844 5.06429 20.6498 5.18844C20.9152 5.31259 21.15 5.49354 21.3378 5.71848C21.5255 5.94342 21.6615 6.20686 21.7362 6.49017C21.8109 6.77348 21.8224 7.06974 21.77 7.358L20.133 16.358C20.0492 16.8188 19.8062 17.2356 19.4466 17.5357C19.0869 17.8357 18.6334 18.0001 18.165 18H6.931C6.42514 18 5.93807 17.8083 5.56789 17.4636C5.1977 17.1188 4.97192 16.6466 4.936 16.142L4.136 4.929C4.09 4.31 3.564 4 3 4C2.73478 4 2.48043 3.89464 2.29289 3.70711C2.10536 3.51957 2 3.26522 2 3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_526_6">
|
||||
<rect width="24" height="24" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<button type="button" onclick="location.href='<?php echo G5_SHOP_URL ?>/orderinquiry.php';" title="주문조회">
|
||||
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_655_31)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 3.586C6.37499 3.2109 6.88361 3.00011 7.414 3H16.586C17.1164 3.00011 17.625 3.2109 18 3.586L20.414 6C20.7891 6.37499 20.9999 6.88361 21 7.414V19C21 19.7956 20.6839 20.5587 20.1213 21.1213C19.5587 21.6839 18.7956 22 18 22H6C5.20435 22 4.44129 21.6839 3.87868 21.1213C3.31607 20.5587 3 19.7956 3 19V7.414C3.00011 6.88361 3.2109 6.37499 3.586 6L6 3.586ZM16.586 5H7.414L5.414 7H18.586L16.586 5ZM10 12C10 11.7348 9.89464 11.4804 9.70711 11.2929C9.51957 11.1054 9.26522 11 9 11C8.73478 11 8.48043 11.1054 8.29289 11.2929C8.10536 11.4804 8 11.7348 8 12C8 13.0609 8.42143 14.0783 9.17157 14.8284C9.92172 15.5786 10.9391 16 12 16C13.0609 16 14.0783 15.5786 14.8284 14.8284C15.5786 14.0783 16 13.0609 16 12C16 11.7348 15.8946 11.4804 15.7071 11.2929C15.5196 11.1054 15.2652 11 15 11C14.7348 11 14.4804 11.1054 14.2929 11.2929C14.1054 11.4804 14 11.7348 14 12C14 12.5304 13.7893 13.0391 13.4142 13.4142C13.0391 13.7893 12.5304 14 12 14C11.4696 14 10.9609 13.7893 10.5858 13.4142C10.2107 13.0391 10 12.5304 10 12Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_655_31">
|
||||
<rect width="24" height="24" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
</button>
|
||||
<button type="button" onclick="location.href='<?php echo G5_SHOP_URL ?>';">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" title="홈">
|
||||
<g clip-path="url(#clip0_526_18)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.772 2.68799C11.1231 2.41488 11.5552 2.2666 12 2.2666C12.4448 2.2666 12.8769 2.41488 13.228 2.68799L21.612 9.20799C22.365 9.79499 21.949 11 20.997 11H20V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H5.99998C5.46955 21 4.96084 20.7893 4.58577 20.4142C4.2107 20.0391 3.99998 19.5304 3.99998 19V11H3.00298C2.04998 11 1.63598 9.79399 2.38798 9.20899L10.772 2.68799Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_526_18">
|
||||
<rect width="24" height="24" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
<button type="button" onclick="location.href='<?php echo G5_SHOP_URL ?>/wishlist.php';" title="위시리스트">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.0004 2C13.0612 2 14.0787 2.42143 14.8288 3.17157C15.5789 3.92172 16.0004 4.93913 16.0004 6H18.0354C18.5536 5.99993 19.0515 6.20099 19.4244 6.56081C19.7973 6.92064 20.016 7.41114 20.0344 7.929L20.4624 19.929C20.4719 20.1974 20.4273 20.4649 20.3312 20.7157C20.2351 20.9665 20.0894 21.1953 19.903 21.3886C19.7165 21.5819 19.493 21.7356 19.2459 21.8407C18.9987 21.9457 18.7329 21.9999 18.4644 22H5.53637C5.26781 21.9999 5.00202 21.9457 4.75486 21.8407C4.5077 21.7356 4.28422 21.5819 4.09776 21.3886C3.91129 21.1953 3.76567 20.9665 3.66956 20.7157C3.57345 20.4649 3.52884 20.1974 3.53837 19.929L3.96637 7.929C3.98477 7.41114 4.20344 6.92064 4.57632 6.56081C4.9492 6.20099 5.44719 5.99993 5.96537 6H8.00037C8.00037 4.93913 8.4218 3.92172 9.17194 3.17157C9.92209 2.42143 10.9395 2 12.0004 2ZM10.0004 8H8.00037V9C8.00065 9.25488 8.09825 9.50003 8.27322 9.68537C8.44819 9.8707 8.68732 9.98224 8.94176 9.99717C9.19621 10.0121 9.44675 9.92933 9.6422 9.76574C9.83766 9.60215 9.96327 9.3701 9.99337 9.117L10.0004 9V8ZM16.0004 8H14.0004V9C14.0004 9.26522 14.1057 9.51957 14.2933 9.70711C14.4808 9.89464 14.7352 10 15.0004 10C15.2656 10 15.5199 9.89464 15.7075 9.70711C15.895 9.51957 16.0004 9.26522 16.0004 9V8ZM12.0004 4C11.4958 3.99984 11.0098 4.19041 10.6398 4.5335C10.2698 4.87659 10.0432 5.34684 10.0054 5.85L10.0004 6H14.0004C14.0004 5.46957 13.7897 4.96086 13.4146 4.58579C13.0395 4.21071 12.5308 4 12.0004 4Z" fill="white"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
<button type="button" onclick="location.href='<?php echo G5_SHOP_URL ?>/couponzone.php';" title="쿠폰존">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.537 2.16395C10.9407 2.12722 11.3477 2.1727 11.7334 2.29765C12.1191 2.4226 12.4755 2.62443 12.781 2.89095L12.931 3.03095L20.753 10.854C21.2913 11.3924 21.6048 12.1153 21.6298 12.8763C21.6549 13.6372 21.3897 14.3793 20.888 14.952L20.753 15.096L15.096 20.753C14.5576 21.2913 13.8346 21.6047 13.0736 21.6298C12.3127 21.6549 11.5707 21.3897 10.998 20.888L10.854 20.753L3.02998 12.93C2.74346 12.6434 2.51795 12.3019 2.36705 11.9258C2.21615 11.5498 2.14299 11.147 2.15198 10.742L2.16299 10.537L2.63498 5.35195C2.69558 4.68374 2.97844 4.05512 3.43834 3.56658C3.89824 3.07803 4.50864 2.75776 5.17198 2.65695L5.35098 2.63595L10.537 2.16395ZM8.02399 8.02495C7.83823 8.21071 7.69088 8.43123 7.59035 8.67393C7.48982 8.91663 7.43808 9.17676 7.43808 9.43945C7.43808 9.70215 7.48982 9.96227 7.59035 10.205C7.69088 10.4477 7.83823 10.6682 8.02399 10.854C8.20974 11.0397 8.43026 11.1871 8.67296 11.2876C8.91566 11.3881 9.17579 11.4399 9.43849 11.4399C9.70118 11.4399 9.96131 11.3881 10.204 11.2876C10.4467 11.1871 10.6672 11.0397 10.853 10.854C11.2281 10.4788 11.4389 9.96999 11.4389 9.43945C11.4389 8.90891 11.2281 8.4001 10.853 8.02495C10.4778 7.6498 9.96903 7.43905 9.43849 7.43905C8.90795 7.43905 8.39913 7.6498 8.02399 8.02495Z" fill="white"/>
|
||||
</svg>
|
||||
</button>
|
||||
<!--
|
||||
<button type="button" onclick="javascript:history.back();">
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_526_22)">
|
||||
<path d="M4.13605 11.2931C3.94858 11.4806 3.84326 11.7349 3.84326 12.0001C3.84326 12.2652 3.94858 12.5195 4.13605 12.7071L9.79305 18.3641C9.98165 18.5462 10.2343 18.647 10.4964 18.6447C10.7586 18.6425 11.0095 18.5373 11.1949 18.3519C11.3803 18.1665 11.4854 17.9157 11.4877 17.6535C11.49 17.3913 11.3892 17.1387 11.207 16.9501L7.25705 13.0001H20.5C20.7653 13.0001 21.0196 12.8947 21.2072 12.7072C21.3947 12.5196 21.5 12.2653 21.5 12.0001C21.5 11.7348 21.3947 11.4805 21.2072 11.293C21.0196 11.1054 20.7653 11.0001 20.5 11.0001H7.25705L11.207 7.05006C11.3892 6.86146 11.49 6.60885 11.4877 6.34666C11.4854 6.08446 11.3803 5.83365 11.1949 5.64824C11.0095 5.46283 10.7586 5.35766 10.4964 5.35538C10.2343 5.35311 9.98165 5.4539 9.79305 5.63606L4.13605 11.2931Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_526_22">
|
||||
<rect width="24" height="24" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</button>
|
||||
-->
|
||||
</div>
|
||||
5
theme/rb.basic/shop/rb.layout_ft/basic/style.css
Normal file
5
theme/rb.basic/shop/rb.layout_ft/basic/style.css
Normal file
@ -0,0 +1,5 @@
|
||||
/* 레이아웃 CSS */
|
||||
@media all and (max-width:1024px) {
|
||||
.footer_gnb .inner {padding-left: 0px !important; padding-right: 0px !important;}
|
||||
.footer_copy .inner {padding-left: 0px !important; padding-right: 0px !important;}
|
||||
}
|
||||
178
theme/rb.basic/shop/rb.layout_hd/basic/header.php
Normal file
178
theme/rb.basic/shop/rb.layout_hd/basic/header.php
Normal file
@ -0,0 +1,178 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 레이아웃 폴더내 style.css 파일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/rb.layout_hd/'.$rb_core['layout_hd'].'/style.css?ver='.G5_TIME_YMDHIS.'">', 0);
|
||||
|
||||
?>
|
||||
|
||||
<!--
|
||||
<header id="header">내용</header>
|
||||
<header>는 반드시 포함해주세요.
|
||||
-->
|
||||
|
||||
<!-- 헤더 { -->
|
||||
<header id="header" <?php if (!defined("_INDEX_")) { ?>class="gnb_up" <?php } ?>>
|
||||
|
||||
<!-- GNB { -->
|
||||
<div class="gnb_wrap">
|
||||
|
||||
<div class="inner" style="width:<?php echo $tb_width_inner ?>; <?php echo $tb_width_padding ?>">
|
||||
|
||||
|
||||
<!-- 로고 { -->
|
||||
<ul class="logo_wrap">
|
||||
<li>
|
||||
<a href="<?php echo G5_URL ?>" alt="<?php echo $config['cf_title']; ?>">
|
||||
|
||||
<picture id="logo_img">
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_mo']) && !empty($rb_builder['bu_logo_mo_w'])) { ?>
|
||||
<source id="sourceSmall" srcset="<?php echo G5_URL ?>/data/logos/mo?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } else { ?>
|
||||
<source id="sourceSmall" srcset="<?php echo G5_THEME_URL ?>/rb.img/logos/mo.png?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_pc']) && !empty($rb_builder['bu_logo_pc_w'])) { ?>
|
||||
<source id="sourceLarge" srcset="<?php echo G5_URL ?>/data/logos/pc_w?ver=<?php echo G5_SERVER_TIME ?>" media="(min-width: 1025px)">
|
||||
<?php } else { ?>
|
||||
<source id="sourceLarge" srcset="<?php echo G5_THEME_URL ?>/rb.img/logos/pc_w.png?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_pc']) && !empty($rb_builder['bu_logo_pc_w'])) { ?>
|
||||
<img id="fallbackImage" src="<?php echo G5_URL ?>/data/logos/pc_w?ver=<?php echo G5_SERVER_TIME ?>" alt="<?php echo $config['cf_title']; ?>" class="responsive-image">
|
||||
<?php } else { ?>
|
||||
<img id="fallbackImage" src="<?php echo G5_THEME_URL ?>/rb.img/logos/pc_w.png?ver=<?php echo G5_SERVER_TIME ?>" alt="<?php echo $config['cf_title']; ?>" class="responsive-image">
|
||||
<?php } ?>
|
||||
|
||||
</picture>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<!-- 퀵메뉴 { -->
|
||||
|
||||
<ul class="snb_wrap">
|
||||
|
||||
|
||||
<!-- 토글메뉴 { -->
|
||||
<li>
|
||||
<button type="button" alt="메뉴열기" id="tog_gnb_mobile">
|
||||
<?php if($is_member) { ?>
|
||||
<span>My</span>
|
||||
<?php } ?>
|
||||
<svg width="35" height="21" viewBox="0 0 35 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<line y1="0.5" x2="35" y2="0.5" stroke="white"/>
|
||||
<line x1="5" y1="10.5" x2="35" y2="10.5" stroke="white"/>
|
||||
<line y1="20.5" x2="35" y2="20.5" stroke="white"/>
|
||||
</svg>
|
||||
|
||||
</button>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tog_gnb_mobile').click(function() {
|
||||
$('#cbp-hrmenu-btm').addClass('active');
|
||||
$('#m_gnb_close_btn').addClass('active');
|
||||
$('main').addClass('moves');
|
||||
$('header').addClass('moves');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</li>
|
||||
|
||||
<!-- } -->
|
||||
|
||||
<div class="cb"></li>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
<nav id="cbp-hrmenu" class="cbp-hrmenu pc">
|
||||
<ul>
|
||||
<?php
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="font-B"><?php echo $row['me_name'] ?></a>
|
||||
<?php
|
||||
$k = 0;
|
||||
foreach( (array) $row['sub'] as $row2 ){
|
||||
|
||||
if( empty($row2) ) continue;
|
||||
|
||||
if($k == 0)
|
||||
echo '<div class="cbp-hrsub"><div class="cbp-hrsub-inner"><div><!--<h4 class="font-B">그룹</h4>--><ul>'.PHP_EOL;
|
||||
?>
|
||||
<li><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a></li>
|
||||
<?php
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul></div></div></div>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$i++;
|
||||
} //end foreach $row
|
||||
?>
|
||||
|
||||
<?php if ($i == 0) { ?>
|
||||
<li><a href="javascript:void(0);">메뉴 준비 중입니다.</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- } -->
|
||||
</header>
|
||||
<!-- } -->
|
||||
|
||||
<?php if (defined("_INDEX_")) { ?>
|
||||
<script>
|
||||
var didScroll;
|
||||
var lastScrollTop = 0;
|
||||
var delta = 5;
|
||||
var navbarHeight = $('#header').outerHeight();
|
||||
|
||||
$(window).scroll(function(event){
|
||||
didScroll = true;
|
||||
});
|
||||
|
||||
setInterval(function() {
|
||||
if (didScroll) {
|
||||
hasScrolled(); didScroll = false;
|
||||
}
|
||||
}, 10);
|
||||
|
||||
function hasScrolled() {
|
||||
var st = $(this).scrollTop();
|
||||
if(Math.abs(lastScrollTop - st) <= delta)
|
||||
return;
|
||||
if (st > lastScrollTop && st > navbarHeight){
|
||||
$('#header').addClass('gnb_up');
|
||||
|
||||
} else {
|
||||
if(st < 10) {
|
||||
$('#header').removeClass('gnb_up');
|
||||
}
|
||||
}
|
||||
|
||||
lastScrollTop = st;
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php } ?>
|
||||
4
theme/rb.basic/shop/rb.layout_hd/basic/style.css
Normal file
4
theme/rb.basic/shop/rb.layout_hd/basic/style.css
Normal file
@ -0,0 +1,4 @@
|
||||
/* 레이아웃 CSS */
|
||||
@media all and (max-width:1024px) {
|
||||
.gnb_wrap .inner {padding-left: 0px !important; padding-right: 0px !important;}
|
||||
}
|
||||
328
theme/rb.basic/shop/rb.layout_hd/basic_row/header.php
Normal file
328
theme/rb.basic/shop/rb.layout_hd/basic_row/header.php
Normal file
@ -0,0 +1,328 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 레이아웃 폴더내 style.css 파일
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_SHOP_URL.'/rb.layout_hd/'.$rb_core['layout_hd_shop'].'/style.css?ver='.G5_TIME_YMDHIS.'">', 0);
|
||||
|
||||
?>
|
||||
<!--
|
||||
<header id="header">내용</header>
|
||||
<header>는 반드시 포함해주세요.
|
||||
-->
|
||||
|
||||
<!-- 헤더 { -->
|
||||
<header id="header">
|
||||
|
||||
<!-- GNB { -->
|
||||
<div class="gnb_wrap">
|
||||
|
||||
<div class="inner" style="width:<?php echo $tb_width_inner ?>; <?php echo $tb_width_padding ?>">
|
||||
|
||||
<!-- 토글메뉴 { -->
|
||||
<ul class="tog_wrap mobile">
|
||||
<li>
|
||||
<button type="button" alt="메뉴열기" id="tog_gnb_mobile">
|
||||
<svg width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17 14C17.2549 14.0003 17.5 14.0979 17.6854 14.2728C17.8707 14.4478 17.9822 14.687 17.9972 14.9414C18.0121 15.1958 17.9293 15.4464 17.7657 15.6418C17.6021 15.8373 17.3701 15.9629 17.117 15.993L17 16H1C0.74512 15.9997 0.499968 15.9021 0.314632 15.7272C0.129296 15.5522 0.017765 15.313 0.00282788 15.0586C-0.0121092 14.8042 0.0706746 14.5536 0.234265 14.3582C0.397855 14.1627 0.629904 14.0371 0.883 14.007L1 14H17ZM17 7C17.2652 7 17.5196 7.10536 17.7071 7.29289C17.8946 7.48043 18 7.73478 18 8C18 8.26522 17.8946 8.51957 17.7071 8.70711C17.5196 8.89464 17.2652 9 17 9H1C0.734784 9 0.48043 8.89464 0.292893 8.70711C0.105357 8.51957 0 8.26522 0 8C0 7.73478 0.105357 7.48043 0.292893 7.29289C0.48043 7.10536 0.734784 7 1 7H17ZM17 0C17.2652 0 17.5196 0.105357 17.7071 0.292893C17.8946 0.48043 18 0.734784 18 1C18 1.26522 17.8946 1.51957 17.7071 1.70711C17.5196 1.89464 17.2652 2 17 2H1C0.734784 2 0.48043 1.89464 0.292893 1.70711C0.105357 1.51957 0 1.26522 0 1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0H17Z" fill="#09244B"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tog_gnb_mobile').click(function() {
|
||||
$('#cbp-hrmenu-btm').addClass('active');
|
||||
$('#m_gnb_close_btn').addClass('active');
|
||||
$('main').addClass('moves');
|
||||
$('header').addClass('moves');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
<!-- 로고 { -->
|
||||
<ul class="logo_wrap">
|
||||
<li>
|
||||
<a href="<?php echo G5_SHOP_URL ?>" alt="<?php echo $config['cf_title']; ?>">
|
||||
|
||||
<picture id="logo_img">
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_mo']) && !empty($rb_builder['bu_logo_mo_w'])) { ?>
|
||||
<source id="sourceSmall" srcset="<?php echo G5_URL ?>/data/logos/mo?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } else { ?>
|
||||
<source id="sourceSmall" srcset="<?php echo G5_THEME_URL ?>/rb.img/logos/mo.png?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_pc']) && !empty($rb_builder['bu_logo_pc_w'])) { ?>
|
||||
<source id="sourceLarge" srcset="<?php echo G5_URL ?>/data/logos/pc?ver=<?php echo G5_SERVER_TIME ?>" media="(min-width: 1025px)">
|
||||
<?php } else { ?>
|
||||
<source id="sourceLarge" srcset="<?php echo G5_THEME_URL ?>/rb.img/logos/pc.png?ver=<?php echo G5_SERVER_TIME ?>" media="(max-width: 1024px)">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty($rb_builder['bu_logo_pc']) && !empty($rb_builder['bu_logo_pc_w'])) { ?>
|
||||
<img id="fallbackImage" src="<?php echo G5_URL ?>/data/logos/pc?ver=<?php echo G5_SERVER_TIME ?>" alt="<?php echo $config['cf_title']; ?>" class="responsive-image">
|
||||
<?php } else { ?>
|
||||
<img id="fallbackImage" src="<?php echo G5_THEME_URL ?>/rb.img/logos/pc.png?ver=<?php echo G5_SERVER_TIME ?>" alt="<?php echo $config['cf_title']; ?>" class="responsive-image">
|
||||
<?php } ?>
|
||||
|
||||
</picture>
|
||||
<!--
|
||||
<span class="font-B font-16">마켓</span>
|
||||
-->
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
|
||||
<!-- 퀵메뉴 { -->
|
||||
<ul class="snb_wrap">
|
||||
<li class="qm_wrap">
|
||||
|
||||
<button type="button" alt="검색" class="mobile" onclick="location.href='<?php echo G5_SHOP_URL ?>/search.php';" style="padding-left:0px;" title="검색">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.49928 1.91687e-08C7.14387 0.000115492 5.80814 0.324364 4.60353 0.945694C3.39893 1.56702 2.36037 2.46742 1.57451 3.57175C0.788656 4.67609 0.278287 5.95235 0.0859852 7.29404C-0.106316 8.63574 0.0250263 10.004 0.469055 11.2846C0.913084 12.5652 1.65692 13.7211 2.63851 14.6557C3.6201 15.5904 4.81098 16.2768 6.11179 16.6576C7.4126 17.0384 8.78562 17.1026 10.1163 16.8449C11.447 16.5872 12.6967 16.015 13.7613 15.176L17.4133 18.828C17.6019 19.0102 17.8545 19.111 18.1167 19.1087C18.3789 19.1064 18.6297 19.0012 18.8151 18.8158C19.0005 18.6304 19.1057 18.3796 19.108 18.1174C19.1102 17.8552 19.0094 17.6026 18.8273 17.414L15.1753 13.762C16.1633 12.5086 16.7784 11.0024 16.9504 9.41573C17.1223 7.82905 16.8441 6.22602 16.1475 4.79009C15.4509 3.35417 14.3642 2.14336 13.0116 1.29623C11.659 0.449106 10.0952 -0.000107143 8.49928 1.91687e-08ZM1.99928 8.5C1.99928 6.77609 2.6841 5.12279 3.90308 3.90381C5.12207 2.68482 6.77537 2 8.49928 2C10.2232 2 11.8765 2.68482 13.0955 3.90381C14.3145 5.12279 14.9993 6.77609 14.9993 8.5C14.9993 10.2239 14.3145 11.8772 13.0955 13.0962C11.8765 14.3152 10.2232 15 8.49928 15C6.77537 15 5.12207 14.3152 3.90308 13.0962C2.6841 11.8772 1.99928 10.2239 1.99928 8.5Z" fill="#09244B"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL ?>/cart.php" alt="장바구니" class="top_cart_svg pc" title="장바구니">
|
||||
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 17C5.89782 17 6.27936 17.158 6.56066 17.4393C6.84196 17.7206 7 18.1022 7 18.5C7 18.8978 6.84196 19.2794 6.56066 19.5607C6.27936 19.842 5.89782 20 5.5 20C5.10218 20 4.72064 19.842 4.43934 19.5607C4.15804 19.2794 4 18.8978 4 18.5C4 18.1022 4.15804 17.7206 4.43934 17.4393C4.72064 17.158 5.10218 17 5.5 17ZM15.5 17C15.8978 17 16.2794 17.158 16.5607 17.4393C16.842 17.7206 17 18.1022 17 18.5C17 18.8978 16.842 19.2794 16.5607 19.5607C16.2794 19.842 15.8978 20 15.5 20C15.1022 20 14.7206 19.842 14.4393 19.5607C14.158 19.2794 14 18.8978 14 18.5C14 18.1022 14.158 17.7206 14.4393 17.4393C14.7206 17.158 15.1022 17 15.5 17ZM1.138 0C1.89654 9.04185e-05 2.62689 0.287525 3.18203 0.804444C3.73717 1.32136 4.07589 2.02939 4.13 2.786L4.145 3H17.802C18.095 2.99996 18.3844 3.06429 18.6498 3.18844C18.9152 3.31259 19.15 3.49354 19.3378 3.71848C19.5255 3.94342 19.6615 4.20686 19.7362 4.49017C19.8109 4.77348 19.8224 5.06974 19.77 5.358L18.133 14.358C18.0492 14.8188 17.8062 15.2356 17.4466 15.5357C17.0869 15.8357 16.6334 16.0001 16.165 16H4.931C4.42514 16 3.93807 15.8083 3.56789 15.4636C3.1977 15.1188 2.97192 14.6466 2.936 14.142L2.136 2.929C2.11802 2.67645 2.00492 2.44012 1.81951 2.2677C1.6341 2.09528 1.39019 1.99961 1.137 2H1C0.734784 2 0.48043 1.89464 0.292893 1.70711C0.105357 1.51957 0 1.26522 0 1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0H1.138ZM17.802 5H4.288L4.931 14H16.165L17.802 5Z" fill="#09244B"/>
|
||||
</svg>
|
||||
|
||||
</a>
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL ?>/orderinquiry.php" alt="주문조회" class="pc" title="주문조회">
|
||||
|
||||
|
||||
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M13.586 0C14.1164 0.000113275 14.625 0.210901 15 0.586L17.414 3C17.7891 3.37499 17.9999 3.88361 18 4.414V16C18 16.7956 17.6839 17.5587 17.1213 18.1213C16.5587 18.6839 15.7956 19 15 19H3C2.20435 19 1.44129 18.6839 0.87868 18.1213C0.316071 17.5587 0 16.7956 0 16V4.414C0.000113275 3.88361 0.210901 3.37499 0.586 3L3 0.586C3.37499 0.210901 3.88361 0.000113275 4.414 0H13.586ZM16 6H2V16C2 16.2652 2.10536 16.5196 2.29289 16.7071C2.48043 16.8946 2.73478 17 3 17H15C15.2652 17 15.5196 16.8946 15.7071 16.7071C15.8946 16.5196 16 16.2652 16 16V6ZM12 8C12.2652 8 12.5196 8.10536 12.7071 8.29289C12.8946 8.48043 13 8.73478 13 9C13 10.0609 12.5786 11.0783 11.8284 11.8284C11.0783 12.5786 10.0609 13 9 13C7.93913 13 6.92172 12.5786 6.17157 11.8284C5.42143 11.0783 5 10.0609 5 9C5 8.73478 5.10536 8.48043 5.29289 8.29289C5.48043 8.10536 5.73478 8 6 8C6.26522 8 6.51957 8.10536 6.70711 8.29289C6.89464 8.48043 7 8.73478 7 9C6.99768 9.51898 7.19719 10.0185 7.55638 10.3932C7.91557 10.7678 8.40632 10.9881 8.92494 11.0075C9.44356 11.027 9.94945 10.8441 10.3357 10.4975C10.722 10.1509 10.9584 9.6677 10.995 9.15L11 9C11 8.73478 11.1054 8.48043 11.2929 8.29289C11.4804 8.10536 11.7348 8 12 8ZM13.586 2H4.414L2.414 4H15.586L13.586 2Z" fill="#09244B"/>
|
||||
</svg>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL ?>/wishlist.php" alt="위시리스트" class="top_cart_svg pc" title="위시리스트">
|
||||
<svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.00037 0C10.0612 0 11.0787 0.421427 11.8288 1.17157C12.5789 1.92172 13.0004 2.93913 13.0004 4H15.0354C15.5536 3.99993 16.0515 4.20099 16.4244 4.56081C16.7973 4.92064 17.016 5.41114 17.0344 5.929L17.4624 17.929C17.4719 18.1974 17.4273 18.4649 17.3312 18.7157C17.2351 18.9665 17.0894 19.1953 16.903 19.3886C16.7165 19.5819 16.493 19.7356 16.2459 19.8407C15.9987 19.9457 15.7329 19.9999 15.4644 20H2.53637C2.26781 19.9999 2.00202 19.9457 1.75486 19.8407C1.5077 19.7356 1.28422 19.5819 1.09776 19.3886C0.911293 19.1953 0.765666 18.9665 0.669559 18.7157C0.573453 18.4649 0.528836 18.1974 0.53837 17.929L0.96637 5.929C0.984766 5.41114 1.20344 4.92064 1.57632 4.56081C1.9492 4.20099 2.44719 3.99993 2.96537 4H5.00037C5.00037 2.93913 5.4218 1.92172 6.17194 1.17157C6.92209 0.421427 7.9395 0 9.00037 0ZM5.00037 6H2.96537L2.53637 18H15.4644L15.0354 6H13.0004V7C13.0001 7.25488 12.9025 7.50003 12.7275 7.68537C12.5526 7.8707 12.3134 7.98224 12.059 7.99717C11.8045 8.01211 11.554 7.92933 11.3585 7.76574C11.1631 7.60215 11.0375 7.3701 11.0074 7.117L11.0004 7V6H7.00037V7C7.00009 7.25488 6.90249 7.50003 6.72752 7.68537C6.55255 7.8707 6.31342 7.98224 6.05898 7.99717C5.80453 8.01211 5.55399 7.92933 5.35854 7.76574C5.16308 7.60215 5.03747 7.3701 5.00737 7.117L5.00037 7V6ZM9.00037 2C8.49579 1.99984 8.0098 2.19041 7.63982 2.5335C7.26984 2.87659 7.04321 3.34684 7.00537 3.85L7.00037 4H11.0004C11.0004 3.46957 10.7897 2.96086 10.4146 2.58579C10.0395 2.21071 9.5308 2 9.00037 2Z" fill="#09244B"/>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL ?>/couponzone.php" alt="쿠폰존" class="top_cart_svg pc" title="쿠폰존">
|
||||
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.85022 0.356702C9.25397 0.319966 9.66098 0.365447 10.0467 0.4904C10.4324 0.615352 10.7887 0.817183 11.0942 1.0837L11.2442 1.2237L19.0662 9.0467C19.6045 9.58512 19.918 10.3081 19.9431 11.069C19.9681 11.83 19.7029 12.572 19.2012 13.1447L19.0662 13.2887L13.4092 18.9457C12.8708 19.484 12.1478 19.7975 11.3869 19.8225C10.6259 19.8476 9.8839 19.5824 9.31122 19.0807L9.16722 18.9457L1.34322 11.1227C1.05669 10.8362 0.831178 10.4946 0.680278 10.1186C0.529377 9.74252 0.456219 9.3398 0.465217 8.9347L0.476218 8.7297L0.948217 3.5447C1.00882 2.87649 1.29167 2.24787 1.75157 1.75933C2.21147 1.27078 2.82187 0.950511 3.48522 0.849702L3.66422 0.828702L8.85022 0.356702ZM9.15822 2.3457L9.03122 2.3487L3.84622 2.8207C3.63358 2.8399 3.43266 2.92665 3.27288 3.06827C3.1131 3.20988 3.00283 3.39891 2.95822 3.6077L2.94122 3.7257L2.46922 8.9107C2.44649 9.16266 2.5201 9.41386 2.67522 9.6137L2.75822 9.7087L10.5812 17.5317C10.7534 17.7039 10.9825 17.8073 11.2255 17.8226C11.4686 17.8379 11.7088 17.764 11.9012 17.6147L11.9952 17.5317L17.6522 11.8747C17.8244 11.7025 17.9278 11.4734 17.9431 11.2304C17.9584 10.9874 17.8845 10.7471 17.7352 10.5547L17.6522 10.4607L9.82922 2.6377C9.65048 2.45909 9.41074 2.35476 9.15822 2.3457ZM5.63022 5.5107C5.90882 5.2321 6.23956 5.01111 6.60357 4.86033C6.96758 4.70955 7.35772 4.63195 7.75172 4.63195C8.14572 4.63195 8.53586 4.70955 8.89987 4.86033C9.26387 5.01111 9.59462 5.2321 9.87322 5.5107C10.1518 5.7893 10.3728 6.12005 10.5236 6.48405C10.6744 6.84806 10.752 7.2382 10.752 7.6322C10.752 8.0262 10.6744 8.41634 10.5236 8.78035C10.3728 9.14436 10.1518 9.4751 9.87322 9.7537C9.31056 10.3164 8.54743 10.6325 7.75172 10.6325C6.956 10.6325 6.19287 10.3164 5.63022 9.7537C5.06756 9.19105 4.75146 8.42792 4.75146 7.6322C4.75146 6.83648 5.06756 6.07336 5.63022 5.5107ZM8.45922 6.9247C8.36637 6.83179 8.25614 6.75808 8.13481 6.70777C8.01347 6.65746 7.88342 6.63155 7.75207 6.6315C7.62072 6.63145 7.49065 6.65728 7.36928 6.7075C7.24792 6.75772 7.13763 6.83136 7.04472 6.9242C6.95181 7.01705 6.87809 7.12728 6.82779 7.24861C6.77748 7.36995 6.75156 7.5 6.75151 7.63135C6.75147 7.7627 6.77729 7.89277 6.82752 8.01414C6.87774 8.1355 6.95137 8.24579 7.04422 8.3387C7.23173 8.52634 7.48609 8.63181 7.75136 8.6319C8.01663 8.632 8.27108 8.52671 8.45872 8.3392C8.64636 8.15169 8.75183 7.89733 8.75192 7.63206C8.75201 7.36679 8.64673 7.11234 8.45922 6.9247Z" fill="#09244B"/>
|
||||
</svg>
|
||||
|
||||
</a>
|
||||
|
||||
<?php if($is_member) { ?>
|
||||
<a href="<?php echo G5_BBS_URL ?>/memo.php" alt="쪽지" onclick="win_memo(this.href); return false;" title="쪽지">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.2715 2.33675L2.67946 6.88975L6.87446 9.31775L10.5735 5.61775C10.7611 5.43024 11.0155 5.32495 11.2808 5.32505C11.5461 5.32514 11.8005 5.43061 11.988 5.61825C12.1755 5.80589 12.2808 6.06033 12.2807 6.3256C12.2806 6.59087 12.1751 6.84524 11.9875 7.03275L8.28746 10.7328L10.7175 14.9268L15.2715 2.33675ZM15.5945 0.0927503C16.7895 -0.34025 17.9475 0.81775 17.5145 2.01275L12.2325 16.6178C11.7985 17.8158 10.1625 17.9618 9.52346 16.8587L6.30646 11.3008L0.748462 8.08375C-0.354538 7.44475 -0.208537 5.80875 0.989463 5.37475L15.5945 0.0927503Z" fill="#09244B"/>
|
||||
</svg>
|
||||
<?php if($memo_not_read > 0) { ?>
|
||||
<span class="font-H"><?php echo $memo_not_read ?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
<div class="cb"></div>
|
||||
</li>
|
||||
|
||||
<li class="member_info_wrap">
|
||||
<?php if($is_member) { ?>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php" class="font-B notranslate"><?php echo $member['mb_nick'] ?></a> <a href="<?php echo G5_BBS_URL; ?>/point.php" target="_blank" class="win_point"><span class="font-H"><?php echo number_format($member['mb_point']); ?> P</span></a>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<li class="my_btn_wrap">
|
||||
<?php if($is_member) { ?>
|
||||
<button type="button" alt="로그아웃" class="btn_round" onclick="location.href='<?php echo G5_BBS_URL ?>/logout.php';">로그아웃</button>
|
||||
<button type="button" alt="마이페이지" class="btn_round arr_bg font-B" onclick="location.href='<?php echo G5_SHOP_URL; ?>/mypage.php';">My</button>
|
||||
<?php } else { ?>
|
||||
<button type="button" alt="로그인" class="btn_round" onclick="location.href='<?php echo G5_BBS_URL ?>/login.php';">로그인</button>
|
||||
<button type="button" alt="회원가입" class="btn_round arr_bg font-B" onclick="location.href='<?php echo G5_BBS_URL ?>/register.php';">회원가입</button>
|
||||
<?php } ?>
|
||||
</li>
|
||||
|
||||
<div class="cb"></li>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
<div class="mobile_cb"></div>
|
||||
|
||||
<!-- 검색 { -->
|
||||
<ul class="search_top_wrap">
|
||||
|
||||
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);">
|
||||
<div class="search_top_wrap_inner">
|
||||
|
||||
<input type="text" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" name="q" class="font-B" placeholder="상품검색" required>
|
||||
<button type="submit">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.49928 1.91687e-08C7.14387 0.000115492 5.80814 0.324364 4.60353 0.945694C3.39893 1.56702 2.36037 2.46742 1.57451 3.57175C0.788656 4.67609 0.278287 5.95235 0.0859852 7.29404C-0.106316 8.63574 0.0250263 10.004 0.469055 11.2846C0.913084 12.5652 1.65692 13.7211 2.63851 14.6557C3.6201 15.5904 4.81098 16.2768 6.11179 16.6576C7.4126 17.0384 8.78562 17.1026 10.1163 16.8449C11.447 16.5872 12.6967 16.015 13.7613 15.176L17.4133 18.828C17.6019 19.0102 17.8545 19.111 18.1167 19.1087C18.3789 19.1064 18.6297 19.0012 18.8151 18.8158C19.0005 18.6304 19.1057 18.3796 19.108 18.1174C19.1102 17.8552 19.0094 17.6026 18.8273 17.414L15.1753 13.762C16.1633 12.5086 16.7784 11.0024 16.9504 9.41573C17.1223 7.82905 16.8441 6.22602 16.1475 4.79009C15.4509 3.35417 14.3642 2.14336 13.0116 1.29623C11.659 0.449106 10.0952 -0.000107143 8.49928 1.91687e-08ZM1.99928 8.5C1.99928 6.77609 2.6841 5.12279 3.90308 3.90381C5.12207 2.68482 6.77537 2 8.49928 2C10.2232 2 11.8765 2.68482 13.0955 3.90381C14.3145 5.12279 14.9993 6.77609 14.9993 8.5C14.9993 10.2239 14.3145 11.8772 13.0955 13.0962C11.8765 14.3152 10.2232 15 8.49928 15C6.77537 15 5.12207 14.3152 3.90308 13.0962C2.6841 11.8772 1.99928 10.2239 1.99928 8.5Z" fill="#09244B"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function search_submit(f) {
|
||||
if (f.q.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.q.select();
|
||||
f.q.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</ul>
|
||||
<!-- } -->
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
function get_mshop_category($ca_id, $len)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']}
|
||||
where ca_use = '1' ";
|
||||
if($ca_id)
|
||||
$sql .= " and ca_id like '$ca_id%' ";
|
||||
$sql .= " and length(ca_id) = '$len' order by ca_order, ca_id ";
|
||||
|
||||
return $sql;
|
||||
}
|
||||
|
||||
$mshop_categories = get_shop_category_array(true);
|
||||
|
||||
?>
|
||||
|
||||
<div class="rows_gnb_wrap">
|
||||
<div class="inner row_gnbs" style="width:<?php echo $tb_width_inner ?>; <?php echo $tb_width_padding ?>">
|
||||
<nav id="cbp-hrmenu" class="cbp-hrmenu pc">
|
||||
<ul>
|
||||
<?php
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="font-B"><?php echo $row['me_name'] ?></a>
|
||||
<?php
|
||||
$k = 0;
|
||||
foreach( (array) $row['sub'] as $row2 ){
|
||||
|
||||
if( empty($row2) ) continue;
|
||||
|
||||
if($k == 0)
|
||||
echo '<div class="cbp-hrsub"><div class="cbp-hrsub-inner"><div><!--<h4 class="font-B">그룹</h4>--><ul>'.PHP_EOL;
|
||||
?>
|
||||
<li><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a></li>
|
||||
<?php
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul></div></div></div>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$i++;
|
||||
} //end foreach $row
|
||||
?>
|
||||
|
||||
<?php if ($i == 0) { ?>
|
||||
<li><a href="javascript:void(0);">메뉴 준비 중입니다.</a></li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($i > 0) { ?>
|
||||
<li class="gnb_all_menu">
|
||||
<a href="#" class="font-R">전체분류 보기</a>
|
||||
<div class="cbp-hrsub">
|
||||
<div class="cbp-hrsub-inner">
|
||||
<?php
|
||||
$k = 0;
|
||||
foreach($mshop_categories as $cate1){
|
||||
if( empty($cate1) ) continue;
|
||||
|
||||
$mshop_ca_row1 = $cate1['text'];
|
||||
//if($i == 0)
|
||||
//echo '<ul class="cate">'.PHP_EOL;
|
||||
?>
|
||||
<div>
|
||||
<h4 class="font-B" onclick="location.href='<?php echo $mshop_ca_row1['url']; ?>';"><?php echo get_text($mshop_ca_row1['ca_name']); ?></h4>
|
||||
<?php
|
||||
$h=0;
|
||||
foreach($cate1 as $key=>$cate2){
|
||||
if( empty($cate2) || $key === 'text' ) continue;
|
||||
|
||||
$mshop_ca_row2 = $cate2['text'];
|
||||
if($h == 0)
|
||||
echo '<ul>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_row2['url']; ?>" class="<?php if($ca_id == $mshop_ca_row2['ca_id']) { ?>dp2_active<?php } ?>"><?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
<?php
|
||||
$s=0;
|
||||
foreach($cate2 as $key=>$cate3){
|
||||
if( empty($cate3) || $key === 'text' ) continue;
|
||||
|
||||
$mshop_ca_row3 = $cate3['text'];
|
||||
if($s == 0)
|
||||
echo '<dl>'.PHP_EOL;
|
||||
?>
|
||||
<dd><a href="<?php echo $mshop_ca_row3['url']; ?>" class="font-R <?php if($ca_id == $mshop_ca_row3['ca_id']) { ?>dp3_active<?php } ?>"><?php echo get_text($mshop_ca_row3['ca_name']); ?></a></dd>
|
||||
<?php
|
||||
$s++;
|
||||
}
|
||||
|
||||
if($s > 0)
|
||||
echo '<dd class="dp3_none"><a href="javascript:void(0);" class="font-R"></a></dd></dl>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$h++;
|
||||
}
|
||||
|
||||
if($h > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
$k++;
|
||||
} // end for
|
||||
|
||||
if($k > 0)
|
||||
echo ''.PHP_EOL;
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- } -->
|
||||
</header>
|
||||
<!-- } -->
|
||||
43
theme/rb.basic/shop/rb.layout_hd/basic_row/style.css
Normal file
43
theme/rb.basic/shop/rb.layout_hd/basic_row/style.css
Normal file
@ -0,0 +1,43 @@
|
||||
/* 레이아웃 CSS */
|
||||
.rows_gnb_wrap {border-top:1px solid rgba(255,255,255,0.2); padding-top: 10px; margin-top: 20px;}
|
||||
.row_gnbs {position: relative;}
|
||||
.row_gnbs .cbp-hrmenu > ul, .cbp-hrmenu .cbp-hrsub-inner {padding-left: 0px; padding-right: 0px;}
|
||||
.row_gnbs .cbp-hrmenu > ul > li {padding-left: 0px; padding-right: 30px;}
|
||||
.row_gnbs .cbp-hrmenu > ul {float:none !important; line-height: 100%;}
|
||||
.gnb_wrap .row_gnbs nav {float:none;}
|
||||
.row_gnbs .cbp-hrmenu .cbp-hrsub {top:40px;}
|
||||
|
||||
.search_top_wrap {float:left; position: relative; width: 280px;}
|
||||
.search_top_wrap input {border:0px; background-color: #fff; border-radius: 60px; height:40px; width: 100%; color:#000;}
|
||||
.search_top_wrap input::placeholder{font-family:'font-R',sans-serif; color:#999;}
|
||||
.search_top_wrap button {position: absolute; top:11px; right:15px;}
|
||||
.search_top_wrap input:focus {border:0px !important;}
|
||||
.search_top_wrap_inner {position: relative;}
|
||||
|
||||
/* 게시판 fixed 버튼 위치조정 */
|
||||
.rb_bbs_wrap .btns_gr_wrap {top:185px !important;}
|
||||
|
||||
.co_header0 .rows_gnb_wrap {border-top:1px solid rgba(0,0,0,0.05);}
|
||||
.co_header0 .search_top_wrap input {background-color: rgba(0,0,0,0.05);}
|
||||
.ser_display_none .search_top_wrap_inner {display: none;}
|
||||
|
||||
@media all and (max-width:1024px) {
|
||||
.rows_gnb_wrap {display: none;}
|
||||
.search_top_wrap {width: 30%;}
|
||||
.gnb_wrap .snb_wrap .qm_wrap a {width: auto; padding-left: 0px; margin-left: 20px;}
|
||||
.gnb_wrap .tog_wrap {margin-right: 20px;}
|
||||
|
||||
/* 1.0.1 { */
|
||||
.mobile_cb {clear: both;}
|
||||
.search_top_wrap {display: block; float:none !important; width: 100%; margin-top: 10px;}
|
||||
.gnb_wrap .snb_wrap .my_btn_wrap {display: block;margin-left: 20px;}
|
||||
.gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {display: none;}
|
||||
.gnb_wrap .snb_wrap .my_btn_wrap .btn_round {padding-left: 15px; padding-right: 15px; height:35px;}
|
||||
.gnb_wrap .snb_wrap .qm_wrap a span {left: 10px;}
|
||||
/* } */
|
||||
|
||||
/* 1.1.1 { */
|
||||
.gnb_wrap .inner {padding-left: 0px !important; padding-right: 0px !important;}
|
||||
/* } */
|
||||
|
||||
}
|
||||
90
theme/rb.basic/shop/shop.head.php
Normal file
90
theme/rb.basic/shop/shop.head.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';
|
||||
|
||||
|
||||
/********************/
|
||||
|
||||
if(G5_IS_MOBILE) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_THEME_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
include_once(G5_LIB_PATH.'/poll.lib.php');
|
||||
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);
|
||||
|
||||
|
||||
/* 팝업 추가 2.1.5 { */
|
||||
if(defined('_INDEX_')) { // index에서만 실행
|
||||
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
|
||||
}
|
||||
/* } */
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($rb_core['layout_hd_shop']) && $rb_core['layout_hd_shop'] == "") {
|
||||
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'><span class='no_data_section_ul1 font-B color-000'>선택된 헤더 레이아웃이 없습니다.</span><br>환경설정 패널에서 먼저 헤더 레이아웃을 설정해주세요.</div>";
|
||||
} else if (isset($rb_core['layout_hd_shop'])) {
|
||||
// 레이아웃 인클루드
|
||||
include_once(G5_THEME_SHOP_PATH . '/rb.layout_hd/' . $rb_core['layout_hd_shop'] . '/header.php');
|
||||
} else {
|
||||
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'>헤더 레이아웃 설정이 올바르지 않습니다.</span><br>환경설정 패널에서 먼저 헤더 레이아웃을 설정해주세요.</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<script>
|
||||
function adjustContentPadding() {
|
||||
// header의 높이 구하기
|
||||
var height_header = $('#header').outerHeight();
|
||||
// contents_wrap 에 구해진 높이값 적용
|
||||
$('#contents_wrap').css('padding-top', height_header + 'px');
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// 처음 페이지 로드 시 호출
|
||||
adjustContentPadding();
|
||||
|
||||
// 브라우저 리사이즈 시 호출
|
||||
$(window).resize(function() {
|
||||
adjustContentPadding();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php if (defined("_INDEX_")) { ?>
|
||||
<style>
|
||||
#contents_wrap {padding-top: 0px !important;}
|
||||
</style>
|
||||
<?php } ?>
|
||||
|
||||
<div class="contents_wrap" id="contents_wrap">
|
||||
|
||||
<!-- $rb_core['sub_width'] 는 반드시 포함해주세요 (환경설정 > 서브가로폭) -->
|
||||
<section class="<?php if (defined("_INDEX_")) { ?>index co_inner_padding_pc_<?php echo $rb_core['inner_padding_pc'] ?> co_gap_pc_<?php echo $rb_core['gap_pc'] ?><?php } else { ?>sub<?php } ?>" <?php if (!defined("_INDEX_")) { ?>style="width:<?php echo $rb_core['sub_width'] ?>px;"<?php } else { ?>style="width:<?php echo $rb_core['main_width'] ?>px;"<?php } ?>>
|
||||
|
||||
<?php if (isset($rb_core['padding_top_shop']) && $rb_core['padding_top_shop'] == 1) { ?>
|
||||
<?php if (defined("_INDEX_")) { ?><span style="margin-top:-70px;" class="pc"></span><?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!defined("_INDEX_")) { ?>
|
||||
<h2 id="container_title">
|
||||
<?php echo get_head_title($g5['title']); ?>
|
||||
<?php if(isset($bo_table) && $bo_table) { ?>
|
||||
<span class="font-R"><?php echo $board['bo_mobile_subject']; ?></span>
|
||||
<?php } ?>
|
||||
</h2>
|
||||
<?php } ?>
|
||||
|
||||
244
theme/rb.basic/shop/shop.tail.php
Normal file
244
theme/rb.basic/shop/shop.tail.php
Normal file
@ -0,0 +1,244 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$admin = get_admin("super");
|
||||
|
||||
?>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($rb_core['layout_ft_shop']) && $rb_core['layout_ft_shop'] == "") {
|
||||
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'><span class='no_data_section_ul1 font-B color-000'>선택된 푸터 레이아웃이 없습니다.</span><br>환경설정 패널에서 먼저 푸터 레이아웃을 설정해주세요.</div>";
|
||||
} else if (isset($rb_core['layout_ft_shop'])) {
|
||||
// 레이아웃 인클루드
|
||||
include_once(G5_THEME_SHOP_PATH . '/rb.layout_ft/' . $rb_core['layout_ft_shop'] . '/footer.php');
|
||||
} else {
|
||||
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'><span class='no_data_section_ul1 font-B color-000'>푸터 레이아웃 설정이 올바르지 않습니다.</span><br>환경설정 패널에서 먼저 푸터 레이아웃을 설정해주세요.</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 전체메뉴 { -->
|
||||
<nav id="cbp-hrmenu-btm" class="cbp-hrmenu cbp-hrmenu-btm">
|
||||
|
||||
<?php if($is_member) { ?>
|
||||
<div class="user_prof_bg">
|
||||
<?php if($is_member) { ?>
|
||||
<li class="user_prof_bg_info font-B"><?php echo $member['mb_nick'] ?></li>
|
||||
<li class="user_prof_bg_info font-B"><span><?php echo $member['mb_level'] ?> Lv</span> <a href="<?php echo G5_BBS_URL; ?>/point.php" target="_blank" class="win_point font-B"><span><?php echo number_format($member['mb_point']); ?> P</span></a></li>
|
||||
<?php } else { ?>
|
||||
<li class="user_prof_bg_info font-B">Guest</li>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="user_prof">
|
||||
<?php if($is_member) { ?>
|
||||
<a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php" class="font-B"><?php echo get_member_profile_img($member['mb_id']); ?></a>
|
||||
<?php } else { ?>
|
||||
<?php echo get_member_profile_img($member['mb_id']); ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="user_prof_btns">
|
||||
<li class="">
|
||||
<?php if($is_member) { ?>
|
||||
<button type="button" alt="로그아웃" class="btn_round" onclick="location.href='<?php echo G5_BBS_URL ?>/logout.php';">로그아웃</button>
|
||||
<button type="button" alt="마이페이지" class="btn_round arr_bg font-B" onclick="location.href='<?php echo G5_SHOP_URL; ?>/mypage.php';">My</button>
|
||||
<?php } else { ?>
|
||||
<button type="button" alt="로그인" class="btn_round" onclick="location.href='<?php echo G5_BBS_URL ?>/login.php';">로그인</button>
|
||||
<button type="button" alt="회원가입" class="btn_round arr_bg font-B" onclick="location.href='<?php echo G5_BBS_URL ?>/register.php';">회원가입</button>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</div>
|
||||
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
$add_arr = (isset($row['sub']) && $row['sub']) ? 'add_arr_svg' : '';
|
||||
$add_arr_btn = (isset($row['sub']) && $row['sub']) ? '<button type="button" class="add_arr_btn"></button>' : '';
|
||||
?>
|
||||
<li class="<?php echo $add_arr ?>">
|
||||
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="font-B"><?php echo $row['me_name'] ?></a>
|
||||
<?php echo $add_arr_btn ?>
|
||||
<?php
|
||||
$k = 0;
|
||||
foreach( (array) $row['sub'] as $row2 ){
|
||||
|
||||
if( empty($row2) ) continue;
|
||||
|
||||
if($k == 0)
|
||||
echo '<div class="cbp-hrsub"><div class="cbp-hrsub-inner"><div><!--<h4 class="font-B">그룹</h4>--><ul>'.PHP_EOL;
|
||||
|
||||
?>
|
||||
<li><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a></li>
|
||||
<?php
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul></div></div></div>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
$i++;
|
||||
} //end foreach $row
|
||||
?>
|
||||
|
||||
|
||||
<?php /* 쇼핑몰 분류 사용시
|
||||
$i = 0;
|
||||
foreach($mshop_categories as $cate1){
|
||||
if( empty($cate1) ) continue;
|
||||
|
||||
$mshop_ca_row1 = $cate1['text'];
|
||||
|
||||
// 2차 분류가 있는지 확인
|
||||
$has_subcategory = false;
|
||||
foreach($cate1 as $key=>$cate2){
|
||||
if( empty($cate2) || $key === 'text' ) continue;
|
||||
$has_subcategory = true;
|
||||
break;
|
||||
}
|
||||
|
||||
$add_arr = $has_subcategory ? 'add_arr_svg' : '';
|
||||
$add_arr_btn = $has_subcategory ? '<button type="button" class="add_arr_btn"></button>' : '';
|
||||
?>
|
||||
<li class="<?php echo $add_arr ?>">
|
||||
<a href="<?php echo $mshop_ca_row1['url']; ?>" class="font-B"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php echo $add_arr_btn ?>
|
||||
|
||||
<?php
|
||||
$j=0;
|
||||
foreach($cate1 as $key=>$cate2){
|
||||
if( empty($cate2) || $key === 'text' ) continue;
|
||||
|
||||
$mshop_ca_row2 = $cate2['text'];
|
||||
if($j == 0)
|
||||
echo '<div class="cbp-hrsub"><div class="cbp-hrsub-inner"><div><!--<h4 class="font-B">그룹</h4>--><ul>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
<li><a href="<?php echo $mshop_ca_row2['url']; ?>"><?php echo get_text($mshop_ca_row2['ca_name']); ?></a></li>
|
||||
|
||||
<?php
|
||||
$j++;
|
||||
}
|
||||
|
||||
if($j > 0)
|
||||
echo '</ul></div></div></div>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php
|
||||
$i++;
|
||||
} // end for
|
||||
?>
|
||||
|
||||
*/ ?>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- } -->
|
||||
|
||||
|
||||
|
||||
<button type="button" id="m_gnb_close_btn" class="">
|
||||
<img src="<?php echo G5_URL ?>/rb/rb.config/image/icon_close.svg">
|
||||
</button>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#m_gnb_close_btn').click(function() {
|
||||
$('#cbp-hrmenu-btm').removeClass('active');
|
||||
$('#m_gnb_close_btn').removeClass('active');
|
||||
$('main').removeClass('moves');
|
||||
$('header').removeClass('moves');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script src="<?php echo G5_THEME_URL ?>/rb.js/cbpHorizontalMenu.min.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
cbpHorizontalMenu.init();
|
||||
cbpHorizontalMenu_btm.init();
|
||||
});
|
||||
</script>
|
||||
<!-- } -->
|
||||
|
||||
<!-- 캘린더 옵션 { -->
|
||||
<script>
|
||||
$.datepicker.setDefaults({
|
||||
closeText: "닫기",
|
||||
prevText: "이전달",
|
||||
nextText: "다음달",
|
||||
currentText: "오늘",
|
||||
monthNames: ["1월", "2월", "3월", "4월", "5월", "6월",
|
||||
"7월", "8월", "9월", "10월", "11월", "12월"
|
||||
],
|
||||
monthNamesShort: ["1월", "2월", "3월", "4월", "5월", "6월",
|
||||
"7월", "8월", "9월", "10월", "11월", "12월"
|
||||
],
|
||||
dayNames: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
|
||||
dayNamesShort: ["일", "월", "화", "수", "목", "금", "토"],
|
||||
dayNamesMin: ["일", "월", "화", "수", "목", "금", "토"],
|
||||
weekHeader: "주",
|
||||
dateFormat: "yy-mm-dd",
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: "년"
|
||||
})
|
||||
|
||||
$(".datepicker_inp").datepicker({
|
||||
//minDate: 0
|
||||
})
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_THEME_URL ?>/rb.css/datepicker.css" />
|
||||
<!-- } -->
|
||||
|
||||
<?php
|
||||
//리빌드세팅
|
||||
if($is_admin) {
|
||||
include_once(G5_PATH.'/rb/rb.config/right.php'); //환경설정
|
||||
}
|
||||
|
||||
// HOOK 추가, (tail.php 가 로드되는 페이지에서만 / 쪽지, 로그인 등의 모듈 페이지에서는 실행 되지않게 하기위함.)
|
||||
// 관련 HOOK : add_event('tail_sub', 'aaa');
|
||||
$rb_hook_tail = "true";
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$sec = get_microtime() - $begin_time;
|
||||
$file = $_SERVER['SCRIPT_NAME'];
|
||||
|
||||
if ($config['cf_analytics']) {
|
||||
echo $config['cf_analytics'];
|
||||
}
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/sns.js"></script>
|
||||
<!-- } 하단 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
191
theme/rb.basic/shop/wishlist.php
Normal file
191
theme/rb.basic/shop/wishlist.php
Normal file
@ -0,0 +1,191 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$g5['title'] = "위시리스트";
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="fwishlist" method="post" action="./cartupdate.php">
|
||||
<input type="hidden" name="act" value="multi">
|
||||
<input type="hidden" name="sw_direct" value="">
|
||||
<input type="hidden" name="prog" value="wish">
|
||||
|
||||
<!-- 위시리스트 시작 { -->
|
||||
<div id="sod_ws" class="rb_shop_list">
|
||||
|
||||
|
||||
|
||||
<div class="swiper-container swiper-container-list-wish">
|
||||
<div class="swiper-wrapper swiper-wrapper-list-wish">
|
||||
|
||||
|
||||
<?php
|
||||
$sql = " select a.wi_id, a.wi_time, b.* from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) ";
|
||||
$sql .= " where a.mb_id = '{$member['mb_id']}' and b.it_id != '' order by a.wi_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++) {
|
||||
|
||||
$out_cd = '';
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if(isset($tmp['cnt']) && $tmp['cnt'])
|
||||
$out_cd = 'no';
|
||||
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
$image = rb_it_image($row['it_id'],300, 300);
|
||||
$ca = get_shop_item_with_category($row['it_id']);
|
||||
|
||||
?>
|
||||
|
||||
<ul class="swiper-slide swiper-slide-list-wish">
|
||||
|
||||
<li class="rb_shop_list_item">
|
||||
<div class="v_ch_list">
|
||||
<div class="rb_shop_list_item_img">
|
||||
<a href="<?php echo shop_item_url($row['it_id']); ?>">
|
||||
<?php echo $image; ?>
|
||||
</a>
|
||||
|
||||
<div class="wish_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
if(is_soldout($row['it_id']))
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<div class="">
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" id="chk_it_id_<?php echo $i; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');" class="selec_chk">
|
||||
<label for="chk_it_id_<?php echo $i; ?>"><span></span><b class="sound_only"><?php echo $row['it_name']; ?></b></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||
</div>
|
||||
|
||||
<a href="./wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>" class="wish_del"><svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><title>delete_2_line</title><g id="delete_2_line" fill='none' fill-rule='nonzero'><path d='M24 0v24H0V0h24ZM12.593 23.258l-.011.002-.071.035-.02.004-.014-.004-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093c.012.004.023 0 .029-.008l.004-.014-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014-.034.614c0 .012.007.02.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01-.184-.092Z'/><path fill='#09244BFF' d='M14.28 2a2 2 0 0 1 1.897 1.368L16.72 5H20a1 1 0 1 1 0 2l-.003.071-.867 12.143A3 3 0 0 1 16.138 22H7.862a3 3 0 0 1-2.992-2.786L4.003 7.07A1.01 1.01 0 0 1 4 7a1 1 0 0 1 0-2h3.28l.543-1.632A2 2 0 0 1 9.721 2h4.558Zm3.717 5H6.003l.862 12.071a1 1 0 0 0 .997.929h8.276a1 1 0 0 0 .997-.929L17.997 7ZM10 10a1 1 0 0 1 .993.883L11 11v5a1 1 0 0 1-1.993.117L9 16v-5a1 1 0 0 1 1-1Zm4 0a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0v-5a1 1 0 0 1 1-1Zm.28-6H9.72l-.333 1h5.226l-.334-1Z'/></g></svg></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="v_ch_list_r">
|
||||
|
||||
<div class="rb_shop_list_item_ca"><?php echo $ca['ca_name'];?></div>
|
||||
|
||||
<div class="rb_shop_list_item_name">
|
||||
<a href="<?php echo shop_item_url($row['it_id']); ?>" class="font-B cut2">
|
||||
<?php echo stripslashes($row['it_name']); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="rb_shop_list_item_basic">
|
||||
<?php echo $row['wi_time']; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php if($i == 0) echo "<div class=\"da_data\">보관함이 비었습니다.</div>"; ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sod_ws_act">
|
||||
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">장바구니 담기</button>
|
||||
<button type="submit" class="btn02" onclick="return fwishlist_check(document.fwishlist,'direct_buy');">주문하기</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
var swiper = new Swiper('.swiper-container-list-wish', {
|
||||
slidesPerColumnFill: 'row',
|
||||
slidesPerView: 6, //가로갯수
|
||||
slidesPerColumn: 9999, // 세로갯수
|
||||
spaceBetween: 25, // 간격
|
||||
touchRatio: 0, // 드래그 가능여부(1, 0)
|
||||
|
||||
breakpoints: { // 반응형 처리
|
||||
|
||||
1024: {
|
||||
slidesPerView: 5,
|
||||
slidesPerColumn: 9999,
|
||||
spaceBetween: 25,
|
||||
},
|
||||
768: {
|
||||
slidesPerView: 3,
|
||||
slidesPerColumn: 9999,
|
||||
spaceBetween: 20,
|
||||
},
|
||||
10: {
|
||||
slidesPerView: 2,
|
||||
slidesPerColumn: 9999,
|
||||
spaceBetween: 20,
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
function out_cd_check(fld, out_cd)
|
||||
{
|
||||
if (out_cd == 'no'){
|
||||
alert("옵션이 있는 상품입니다.\n\n상품을 클릭하여 상품페이지에서 옵션을 선택한 후 주문하십시오.");
|
||||
fld.checked = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (out_cd == 'tel_inq'){
|
||||
alert("이 상품은 전화로 문의해 주십시오.\n\n장바구니에 담아 구입하실 수 없습니다.");
|
||||
fld.checked = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function fwishlist_check(f, act)
|
||||
{
|
||||
var k = 0;
|
||||
var length = f.elements.length;
|
||||
|
||||
for(i=0; i<length; i++) {
|
||||
if (f.elements[i].checked) {
|
||||
k++;
|
||||
}
|
||||
}
|
||||
|
||||
if(k == 0)
|
||||
{
|
||||
alert("상품을 하나 이상 체크 하십시오");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (act == "direct_buy")
|
||||
{
|
||||
f.sw_direct.value = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
f.sw_direct.value = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
<!-- } 위시리스트 끝 -->
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
Reference in New Issue
Block a user