리빌더 부분 추가
43
theme/rb.basic/mobile/skin/shop/basic/boxbanner.skin.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
|
||||
if ($i==0) echo '<aside id="sbn_side"><h2>쇼핑몰 배너</h2><ul class="sb_bn">'.PHP_EOL;
|
||||
//print_r2($row);
|
||||
// 테두리 있는지
|
||||
$bn_border = ($row['bn_border']) ? ' class="sbn_border"' : '';;
|
||||
// 새창 띄우기인지
|
||||
$bn_new_win = ($row['bn_new_win']) ? ' target="_blank"' : '';
|
||||
|
||||
$bimg = G5_DATA_PATH.'/banner/'.$row['bn_id'];
|
||||
if (file_exists($bimg))
|
||||
{
|
||||
$banner = '';
|
||||
$size = getimagesize($bimg);
|
||||
echo '<li>'.PHP_EOL;
|
||||
if ($row['bn_url'][0] == '#')
|
||||
$banner .= '<a href="'.$row['bn_url'].'">';
|
||||
else if ($row['bn_url'] && $row['bn_url'] != 'http://') {
|
||||
$banner .= '<a href="'.G5_SHOP_URL.'/bannerhit.php?bn_id='.$row['bn_id'].'&url='.urlencode($row['bn_url']).'"'.$bn_new_win.'>';
|
||||
}
|
||||
echo $banner.'<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'" alt="'.get_text($row['bn_alt']).'" width="'.$size[0].'" height="'.$size[1].'"'.$bn_border.'>';
|
||||
if($banner)
|
||||
echo '</a>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
if ($i>0) echo '</ul></aside>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
<script>
|
||||
$('.sb_bn').bxSlider({
|
||||
controls: false,
|
||||
});
|
||||
</script>
|
||||
96
theme/rb.basic/mobile/skin/shop/basic/boxtodayview.skin.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
$tv_idx = get_session("ss_tv_idx");
|
||||
|
||||
$tv_div['img_width'] = 100;
|
||||
$tv_div['img_height'] = 100;
|
||||
$tv_div['img_length'] = 5; // 한번에 보여줄 이미지 수
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 오늘 본 상품 시작 { -->
|
||||
<div id="stv" class="op_area">
|
||||
<h2>오늘 본 상품<span id="stv_pg"></span></h2>
|
||||
<?php if ($tv_idx) { // 오늘 본 상품이 1개라도 있을 때 ?>
|
||||
|
||||
<?php
|
||||
$tv_tot_count = 0;
|
||||
$k = 0;
|
||||
for ($i=1;$i<=$tv_idx;$i++)
|
||||
{
|
||||
$tv_it_idx = $tv_idx - ($i - 1);
|
||||
$tv_it_id = get_session("ss_tv[$tv_it_idx]");
|
||||
|
||||
$rowx = get_shop_item($tv_it_id, true);
|
||||
if(!$rowx['it_id'])
|
||||
continue;
|
||||
|
||||
if ($tv_tot_count % $tv_div['img_length'] == 0) $k++;
|
||||
|
||||
$it_name = get_text($rowx['it_name']);
|
||||
$img = get_it_image($tv_it_id, $tv_div['img_width'], $tv_div['img_height'], $tv_it_id, '', $it_name);
|
||||
|
||||
if ($tv_tot_count == 0) echo '<ul id="stv_ul">'.PHP_EOL;
|
||||
echo '<li class="stv_item c'.$k.'">'.PHP_EOL;
|
||||
echo '<div class="prd_img">';
|
||||
echo $img;
|
||||
echo '</div>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
|
||||
$tv_tot_count++;
|
||||
}
|
||||
if ($tv_tot_count > 0) echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
<div id="stv_btn"></div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var itemQty = <?php echo $tv_tot_count; ?>; // 총 아이템 수량
|
||||
var itemShow = <?php echo $tv_div['img_length']; ?>; // 한번에 보여줄 아이템 수량
|
||||
if (itemQty > itemShow)
|
||||
{
|
||||
$('#stv_btn').append('<button type="button" id="up"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">이전</span></button><button type="button" id="down"><span class="sound_only">다음</span><i class="fa fa-chevron-right" aria-hidden="true"></i></button>');
|
||||
}
|
||||
var Flag = 1; // 페이지
|
||||
var EOFlag = parseInt(<?php echo $i-1; ?>/itemShow); // 전체 리스트를 3(한 번에 보여줄 값)으로 나눠 페이지 최댓값을 구하고
|
||||
var itemRest = parseInt(<?php echo $i-1; ?>%itemShow); // 나머지 값을 구한 후
|
||||
if (itemRest > 0) // 나머지 값이 있다면
|
||||
{
|
||||
EOFlag++; // 페이지 최댓값을 1 증가시킨다.
|
||||
}
|
||||
$('.c'+Flag).css('display','block');
|
||||
$('#stv_pg').text(Flag+'/'+EOFlag); // 페이지 초기 출력값
|
||||
$('#up').click(function() {
|
||||
if (Flag == 1)
|
||||
{
|
||||
alert('목록의 처음입니다.');
|
||||
} else {
|
||||
Flag--;
|
||||
$('.c'+Flag).css('display','block');
|
||||
$('.c'+(Flag+1)).css('display','none');
|
||||
}
|
||||
$('#stv_pg').text(Flag+'/'+EOFlag); // 페이지 값 재설정
|
||||
})
|
||||
$('#down').click(function() {
|
||||
if (Flag == EOFlag)
|
||||
{
|
||||
alert('더 이상 목록이 없습니다.');
|
||||
} else {
|
||||
Flag++;
|
||||
$('.c'+Flag).css('display','block');
|
||||
$('.c'+(Flag-1)).css('display','none');
|
||||
}
|
||||
$('#stv_pg').text(Flag+'/'+EOFlag); // 페이지 값 재설정
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php } else { // 오늘 본 상품이 없을 때 ?>
|
||||
|
||||
<p class="li_empty">없음</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/scroll_oldie.js"></script>
|
||||
<!-- } 오늘 본 상품 끝 -->
|
||||
202
theme/rb.basic/mobile/skin/shop/basic/couponzone.10.skin.php
Normal file
@ -0,0 +1,202 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<section class="couponzone_list">
|
||||
<h2>다운로드 쿠폰</h2>
|
||||
<p><?php echo $default['de_admin_company_name']; ?> 회원이시라면 쿠폰 다운로드 후 바로 사용하실 수 있습니다.</p>
|
||||
|
||||
<?php
|
||||
$sql = " select * $sql_common and cz_type = '0' $sql_order ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$coupon = '';
|
||||
$coupon_info_class = '';
|
||||
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(!$row['cz_file'])
|
||||
continue;
|
||||
|
||||
$img_file = G5_DATA_PATH.'/coupon/'.$row['cz_file'];
|
||||
if(!is_file($img_file))
|
||||
continue;
|
||||
|
||||
$subj = get_text($row['cz_subject']);
|
||||
|
||||
switch($row['cp_method']) {
|
||||
case '0':
|
||||
$row3 = get_shop_item($row['cp_target'], true);
|
||||
$cp_target = '개별상품할인';
|
||||
$cp_link ='<a href="'.shop_item_url($row3['it_id']).'" target="_blank">'.get_text($row3['it_name']).'</a>';
|
||||
$coupon_info_class = 'cp_2';
|
||||
break;
|
||||
case '1':
|
||||
$sql3 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
$cp_target = '카테고리할인';
|
||||
$cp_link = '<a href="'.shop_category_url($row3['ca_id']).'" target="_blank">'.get_text($row3['ca_name']).'</a>';
|
||||
$coupon_info_class = 'cp_1';
|
||||
break;
|
||||
case '2':
|
||||
$cp_link = $cp_target = '주문금액할인';
|
||||
$coupon_info_class = 'cp_3';
|
||||
break;
|
||||
case '3':
|
||||
$cp_link = $cp_target = '배송비할인';
|
||||
$coupon_info_class = 'cp_4';
|
||||
break;
|
||||
}
|
||||
|
||||
// 다운로드 쿠폰인지
|
||||
$disabled = '';
|
||||
if(is_coupon_downloaded($member['mb_id'], $row['cz_id']))
|
||||
$disabled = ' disabled';
|
||||
|
||||
// $row['cp_type'] 값이 있으면 % 이며 없으면 원 입니다.
|
||||
$print_cp_price = $row['cp_type'] ? '<b>'.$row['cp_price'].'</b> %' : '<b>'.number_format($row['cp_price']).'</b> 원';
|
||||
|
||||
$coupon .= '<li>'.PHP_EOL;
|
||||
$coupon .= '<div class="cp_inner">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_img"><img src="'.str_replace(G5_PATH, G5_URL, $img_file).'" alt="'.$subj.'">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_tit"><span>'.$subj.'</span><br><span class="cp_evt">'.$print_cp_price.'</span></div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="cp_cnt">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_target">'.PHP_EOL;
|
||||
$coupon .= '<span class="sound_only">적용</span><button class="coupon_info_btn '.$coupon_info_class.'">'.$cp_target.' <i class="fa fa-angle-right" aria-hidden="true"></i></button>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_info">
|
||||
<h4>'.$cp_target.'</h4>
|
||||
<ul>
|
||||
<li>적용 : '.$cp_link.'</li>';
|
||||
|
||||
if( $row['cp_minimum'] ){ // 쿠폰에 최소주문금액이 있다면
|
||||
$coupon .= '<li>최소주문금액 : <span class="cp_evt"><b>'.number_format($row['cp_minimum']).'</b>원</span></li>';
|
||||
}
|
||||
|
||||
$coupon .= '</ul>
|
||||
<button class="coupon_info_cls"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_date"><span class="sound_only">기한</span>다운로드 후 '.number_format($row['cz_period']).'일</div>'.PHP_EOL;
|
||||
//cp_1 카테고리할인
|
||||
//cp_2 개별상품할인
|
||||
//cp_3 주문금액할인
|
||||
//cp_4 배송비할인
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_btn"><button type="button" class="coupon_download btn02'.$disabled.'" data-cid="'.$row['cz_id'].'">쿠폰다운로드</button></div>'.PHP_EOL;
|
||||
$coupon .= '</li>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if($coupon)
|
||||
echo '<ul>'.PHP_EOL.$coupon.'</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p class="no_coupon">사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<section class="couponzone_list" id="point_coupon">
|
||||
<h2>포인트 쿠폰</h2>
|
||||
<p>보유하신 <?php echo $default['de_admin_company_name']; ?> 회원 포인트를 쿠폰으로 교환하실 수 있습니다.</p>
|
||||
|
||||
<?php
|
||||
$sql = " select * $sql_common and cz_type = '1' $sql_order ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$coupon = '';
|
||||
$coupon_info_class = '';
|
||||
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if(!$row['cz_file'])
|
||||
continue;
|
||||
|
||||
$img_file = G5_DATA_PATH.'/coupon/'.$row['cz_file'];
|
||||
if(!is_file($img_file))
|
||||
continue;
|
||||
|
||||
$subj = get_text($row['cz_subject']);
|
||||
|
||||
switch($row['cp_method']) {
|
||||
case '0':
|
||||
$row3 = get_shop_item($row['cp_target'], true);
|
||||
$cp_link = '<a href="'.shop_item_url($row3['it_id']).'" target="_blank">'.get_text($row3['it_name']).'</a>';
|
||||
$cp_target = '개별상품할인';
|
||||
$coupon_info_class = 'cp_2';
|
||||
break;
|
||||
case '1':
|
||||
$sql3 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
$cp_link = '<a href="'.shop_category_url($row3['ca_id']).'" target="_blank">'.get_text($row3['ca_name']).'</a>';
|
||||
$cp_target = '카테고리할인';
|
||||
$coupon_info_class = 'cp_1';
|
||||
break;
|
||||
case '2':
|
||||
$cp_link = $cp_target = '주문금액할인';
|
||||
$coupon_info_class = 'cp_3';
|
||||
break;
|
||||
case '3':
|
||||
$cp_link = $cp_target = '배송비할인';
|
||||
$coupon_info_class = 'cp_4';
|
||||
break;
|
||||
}
|
||||
|
||||
// 다운로드 쿠폰인지
|
||||
$disabled = '';
|
||||
if(is_coupon_downloaded($member['mb_id'], $row['cz_id']))
|
||||
$disabled = ' disabled';
|
||||
|
||||
// $row['cp_type'] 값이 있으면 % 이며 없으면 원 입니다.
|
||||
$print_cp_price = $row['cp_type'] ? '<b>'.$row['cp_price'].'</b> %' : '<b>'.number_format($row['cp_price']).'</b> 원';
|
||||
|
||||
$coupon .= '<li>'.PHP_EOL;
|
||||
$coupon .= '<div class="cp_inner">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_img"><img src="'.str_replace(G5_PATH, G5_URL, $img_file).'" alt="'.$subj.'">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_tit"><span>'.$subj.'</span><br><span class="cp_evt">'.$print_cp_price.'</span></div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="cp_cnt">'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_target">'.PHP_EOL;
|
||||
$coupon .= '<span class="sound_only">적용</span><button class="coupon_info_btn '.$coupon_info_class.'">'.$cp_target.' <i class="fa fa-angle-right" aria-hidden="true"></i></button>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_info">
|
||||
<h4>'.$cp_target.'</h4>
|
||||
<ul>
|
||||
<li>적용 : '.$cp_link.'</li>';
|
||||
|
||||
if( $row['cp_minimum'] ){ // 쿠폰에 최소주문금액이 있다면
|
||||
$coupon .= '<li>최소주문금액 : <span class="cp_evt"><b>'.number_format($row['cp_minimum']).'</b>원</span></li>';
|
||||
}
|
||||
|
||||
$coupon .= '</ul>
|
||||
<button class="coupon_info_cls"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_date"><span class="sound_only">기한</span>다운로드 후 '.number_format($row['cz_period']).'일</div>'.PHP_EOL;
|
||||
$coupon .= '<div class="coupon_btn"><button type="button" class="coupon_download btn02'.$disabled.'" data-cid="'.$row['cz_id'].'">포인트 '.number_format($row['cz_point']).'점 차감</button></div>'.PHP_EOL;
|
||||
$coupon .= '</div>'.PHP_EOL;
|
||||
$coupon .= '</li>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if($coupon)
|
||||
echo '<ul>'.PHP_EOL.$coupon.'</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p class="no_coupon">사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
$(".coupon_info_btn").on("click", function() {
|
||||
$(this).parent("div").children(".coupon_info").show();
|
||||
});
|
||||
$(".coupon_info_cls").on("click", function() {
|
||||
$(".coupon_info").hide();
|
||||
});
|
||||
// 쿠폰 정보창 닫기
|
||||
$(document).mouseup(function (e){
|
||||
var container = $(".coupon_info");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
BIN
theme/rb.basic/mobile/skin/shop/basic/img/arr_down01.gif
Normal file
|
After Width: | Height: | Size: 62 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/arr_up01.gif
Normal file
|
After Width: | Height: | Size: 64 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/best_btn.gif
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/btn_next.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/btn_next.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/btn_prev.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/btn_prev.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/del_btn.gif
Normal file
|
After Width: | Height: | Size: 348 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/facebook.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/gplus.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_best.gif
Normal file
|
After Width: | Height: | Size: 94 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_cp.gif
Normal file
|
After Width: | Height: | Size: 71 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_discount.gif
Normal file
|
After Width: | Height: | Size: 83 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_hit.gif
Normal file
|
After Width: | Height: | Size: 76 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_new.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_rec.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_secret.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/icon_soldout.gif
Normal file
|
After Width: | Height: | Size: 79 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/item_bg.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/item_btn.png
Normal file
|
After Width: | Height: | Size: 754 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/loading.gif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/mainlist_btn.gif
Normal file
|
After Width: | Height: | Size: 168 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/personal.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/prd_icon.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sbmn_bg.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sct_bg_toright.gif
Normal file
|
After Width: | Height: | Size: 53 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_fb.png
Normal file
|
After Width: | Height: | Size: 633 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_fb_s.png
Normal file
|
After Width: | Height: | Size: 521 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_goo.png
Normal file
|
After Width: | Height: | Size: 967 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_goo_s.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_kakao.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_kakao_s.png
Normal file
|
After Width: | Height: | Size: 972 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_twt.png
Normal file
|
After Width: | Height: | Size: 783 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/sns_twt_s.png
Normal file
|
After Width: | Height: | Size: 549 B |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/twitter.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
theme/rb.basic/mobile/skin/shop/basic/img/use_reply.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
691
theme/rb.basic/mobile/skin/shop/basic/item.form.skin.php
Normal file
@ -0,0 +1,691 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
add_javascript('<script src="'.G5_JS_URL.'/jquery.bxslider.js"></script>', 10);
|
||||
?>
|
||||
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<form name="fitem" action="<?php echo $action_url; ?>" method="post" onsubmit="return fitem_submit(this);">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||
<input type="hidden" name="sw_direct">
|
||||
<input type="hidden" name="url">
|
||||
|
||||
<div id="sit_ov_wrap">
|
||||
<?php
|
||||
// 이미지(중) 썸네일
|
||||
$thumb_img = '';
|
||||
$thumb_img_w = 600; // 넓이
|
||||
$thumb_img_h = 600; // 높이
|
||||
for ($i=1; $i<=10; $i++)
|
||||
{
|
||||
if(!$it['it_img'.$i])
|
||||
continue;
|
||||
|
||||
$thumb = get_it_thumbnail($it['it_img'.$i], $thumb_img_w, $thumb_img_h);
|
||||
|
||||
if(!$thumb)
|
||||
continue;
|
||||
|
||||
$thumb_img .= '<li>';
|
||||
$thumb_img .= '<a href="'.G5_SHOP_URL.'/largeimage.php?it_id='.$it['it_id'].'&no='.$i.'" class="popup_item_image slide_img" target="_blank">'.$thumb.'</a>';
|
||||
$thumb_img .= '</li>'.PHP_EOL;
|
||||
}
|
||||
if ($thumb_img)
|
||||
{
|
||||
echo '<div id="sit_pvi">'.PHP_EOL;
|
||||
echo '<ul id="sit_pvi_slide" >'.PHP_EOL;
|
||||
echo $thumb_img;
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '<div class="btn_wr"><a href="#" class="pager-prev"><i class="fa fa-angle-left"></i></a><div id="slide-counter"></div><a href="#" class="pager-next"><i class="fa fa-angle-right"></i></a> </div>'.PHP_EOL;
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<section id="sit_ov" class="2017_renewal_itemform">
|
||||
<h2>상품간략정보 및 구매기능</h2>
|
||||
<div class="sit_ov_wr">
|
||||
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong>
|
||||
<?php if($it['it_basic']) { ?><p id="sit_desc"><?php echo $it['it_basic']; ?></p><?php } ?>
|
||||
<?php if($is_orderable) { ?>
|
||||
<p id="sit_opt_info">상품 선택옵션 <?php echo $option_count; ?> 개, 추가옵션 <?php echo $supply_count; ?> 개</p>
|
||||
<?php } ?>
|
||||
|
||||
<div id="sit_star_sns">
|
||||
<?php
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = shop_item_url($it['it_id']);
|
||||
|
||||
if ($score = get_star_image($it['it_id'])) { ?>
|
||||
<span class="sound_only">고객평점 <?php echo $score?>개</span>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $score?>.png" alt="" class="sit_star" width="100">
|
||||
<span class="review_num">사용후기 <?php echo $it['it_use_cnt']; ?> 개</span>
|
||||
<?php } ?>
|
||||
|
||||
<div class="sit_btn_opt">
|
||||
<span id="btn_wish"><i class="fa fa-heart-o" aria-hidden="true"></i><span class="sound_only">위시리스트</span><span class="btn_wish_num"><?php echo get_wishlist_count_by_item($it['it_id']); ?></span></span>
|
||||
<button type="button" class="btn_sns_share"><i class="fa fa-share-alt" aria-hidden="true"></i><span class="sound_only">sns 공유</span></button>
|
||||
<div class="sns_area">
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png'); ?>
|
||||
<?php echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png'); ?>
|
||||
<?php
|
||||
$href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
||||
?>
|
||||
<a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec"><i class="fa fa-envelope-o" aria-hidden="true"></i><span class="sound_only">추천하기</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(".btn_sns_share").click(function(){
|
||||
$(".sns_area").show();
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
var container = $(".sns_area");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="sit_ov_tbl">
|
||||
<table >
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php if ($it['it_maker']) { ?>
|
||||
<tr>
|
||||
<th scope="row">제조사</th>
|
||||
<td><?php echo $it['it_maker']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($it['it_origin']) { ?>
|
||||
<tr>
|
||||
<th scope="row">원산지</th>
|
||||
<td><?php echo $it['it_origin']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($it['it_brand']) { ?>
|
||||
<tr>
|
||||
<th scope="row">브랜드</th>
|
||||
<td><?php echo $it['it_brand']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($it['it_model']) { ?>
|
||||
<tr>
|
||||
<th scope="row">모델</th>
|
||||
<td><?php echo $it['it_model']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (!$it['it_use']) { // 판매가능이 아닐 경우 ?>
|
||||
<tr>
|
||||
<th scope="row">판매가격</th>
|
||||
<td>판매중지</td>
|
||||
</tr>
|
||||
<?php } else if ($it['it_tel_inq']) { // 전화문의일 경우 ?>
|
||||
<tr>
|
||||
<th scope="row">판매가격</th>
|
||||
<td>전화문의</td>
|
||||
</tr>
|
||||
<?php } else { // 전화문의가 아닐 경우?>
|
||||
<?php if ($it['it_cust_price']) { // 1.00.03?>
|
||||
<tr>
|
||||
<th scope="row">시중가격</th>
|
||||
<td><?php echo display_price($it['it_cust_price']); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row">판매가격</th>
|
||||
<td>
|
||||
<?php echo display_price(get_price($it)); ?>
|
||||
<input type="hidden" id="it_price" value="<?php echo get_price($it); ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
/* 재고 표시하는 경우 주석 해제
|
||||
<tr>
|
||||
<th scope="row">재고수량</th>
|
||||
<td><?php echo number_format(get_it_stock_qty($it_id)); ?> 개</td>
|
||||
</tr>
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($config['cf_use_point']) { // 포인트 사용한다면 ?>
|
||||
<tr>
|
||||
<th scope="row">포인트</th>
|
||||
<td>
|
||||
<?php
|
||||
if($it['it_point_type'] == 2) {
|
||||
echo '구매금액(추가옵션 제외)의 '.$it['it_point'].'%';
|
||||
} else {
|
||||
$it_point = get_item_point($it);
|
||||
echo number_format($it_point).'점';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$ct_send_cost_label = '배송비결제';
|
||||
|
||||
if($it['it_sc_type'] == 1)
|
||||
$sc_method = '무료배송';
|
||||
else {
|
||||
if($it['it_sc_method'] == 1)
|
||||
$sc_method = '수령후 지불';
|
||||
else if($it['it_sc_method'] == 2) {
|
||||
$ct_send_cost_label = '<label for="ct_send_cost">배송비결제</label>';
|
||||
$sc_method = '<select name="ct_send_cost" id="ct_send_cost">
|
||||
<option value="0">주문시 결제</option>
|
||||
<option value="1">수령후 지불</option>
|
||||
</select>';
|
||||
}
|
||||
else
|
||||
$sc_method = '주문시 결제';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<th><?php echo $ct_send_cost_label; ?></th>
|
||||
<td><?php echo $sc_method; ?></td>
|
||||
</tr>
|
||||
<?php if($it['it_buy_min_qty']) { ?>
|
||||
<tr>
|
||||
<th>최소구매수량</th>
|
||||
<td><?php echo number_format($it['it_buy_min_qty']); ?> 개</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($it['it_buy_max_qty']) { ?>
|
||||
<tr>
|
||||
<th>최대구매수량</th>
|
||||
<td><?php echo number_format($it['it_buy_max_qty']); ?> 개</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 다른 상품 보기 시작 { -->
|
||||
<div id="sit_siblings">
|
||||
<?php
|
||||
if ($prev_href || $next_href) {
|
||||
$prev_title = '<i class="fa fa-caret-left" aria-hidden="true"></i> '.$prev_title;
|
||||
$next_title = $next_title.' <i class="fa fa-caret-right" aria-hidden="true"></i>';
|
||||
|
||||
echo $prev_href.$prev_title.$prev_href2;
|
||||
echo $next_href.$next_title.$next_href2;
|
||||
} else {
|
||||
echo '<span class="sound_only">이 분류에 등록된 다른 상품이 없습니다.</span>';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/largeimage.php?it_id=<?php echo $it['it_id']; ?>&no=1" target="_blank" class="popup_item_image "><i class="fa fa-search-plus" aria-hidden="true"></i><span class="sound_only">확대보기</span></a>
|
||||
</div>
|
||||
<!-- } 다른 상품 보기 끝 -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="btn_option_wr">
|
||||
<button type="button" class="btn_cart_op btn_submit btn">구매하기</button>
|
||||
</div>
|
||||
|
||||
<div id="btn_option">
|
||||
<div class="sl_option">
|
||||
<?php
|
||||
if($option_item) {
|
||||
?>
|
||||
<section class="sit_option">
|
||||
<h3>선택옵션</h3>
|
||||
<div class="sit_op_sl">
|
||||
<?php // 선택옵션
|
||||
echo $option_item;
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($supply_item) {
|
||||
?>
|
||||
<section class="sit_option">
|
||||
<h3>추가옵션</h3>
|
||||
<div class="sit_op_sl">
|
||||
|
||||
<?php // 추가옵션
|
||||
echo $supply_item;
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($it['it_use'] && !$it['it_tel_inq'] && !$is_soldout) { ?>
|
||||
<div id="sit_sel_option">
|
||||
<?php
|
||||
if(!$option_item) {
|
||||
if(!$it['it_buy_min_qty'])
|
||||
$it['it_buy_min_qty'] = 1;
|
||||
?>
|
||||
<ul id="sit_opt_added">
|
||||
<li class="sit_opt_list">
|
||||
<input type="hidden" name="io_type[<?php echo $it_id; ?>][]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $it_id; ?>][]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $it_id; ?>][]" value="<?php echo $it['it_name']; ?>">
|
||||
<input type="hidden" class="io_price" value="0">
|
||||
<input type="hidden" class="io_stock" value="<?php echo $it['it_stock_qty']; ?>">
|
||||
<div class="opt_name">
|
||||
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
||||
</div>
|
||||
<div class="opt_count">
|
||||
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
|
||||
<button type="button" class="sit_qty_minus"><i class="fa fa-minus" aria-hidden="true"></i><span class="sound_only">감소</span></button>
|
||||
<input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="<?php echo $it['it_buy_min_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="num_input" size="5">
|
||||
<button type="button" class="sit_qty_plus"><i class="fa fa-plus" aria-hidden="true"></i><span class="sound_only">증가</span></button>
|
||||
<span class="sit_opt_prc">+0원</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<script>
|
||||
$(function() {
|
||||
price_calculate();
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="sit_tot_price"></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($is_soldout) { ?>
|
||||
<p id="sit_ov_soldout">상품의 재고가 부족하여 구매할 수 없습니다.</p>
|
||||
<?php } ?>
|
||||
<div id="sit_ov_btn">
|
||||
<?php if ($is_orderable) { ?>
|
||||
<input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart">
|
||||
<input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy" class="btn_submit">
|
||||
<?php } ?>
|
||||
<?php if(!$is_orderable && $it['it_soldout'] && $it['it_stock_sms']) { ?>
|
||||
<a href="javascript:popup_stocksms('<?php echo $it['it_id']; ?>');" id="sit_btn_phone">재입고알림</a>
|
||||
<?php } ?>
|
||||
<a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish"><span class="sound_only">위시리스트</span><i class="fa fa-heart-o" aria-hidden="true"></i></a>
|
||||
<?php if ($naverpay_button_js) { ?>
|
||||
<div class="naverpay-item"><?php echo $naverpay_request_js.$naverpay_button_js; ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn_close"><span class="sound_only">닫기</span><i class="fa fa-chevron-down" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
$(".btn_cart_op").click(function(){
|
||||
$("#btn_option").show();
|
||||
});
|
||||
$("#btn_option .btn_close").click(function(){
|
||||
$("#btn_option").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="sit_tab">
|
||||
<ul class="tab_tit">
|
||||
<li><button type="button" id="btn_sit_inf" rel="#sit_inf" class="selected">상품정보</button></li>
|
||||
<li><button type="button" id="btn_sit_use" rel="#sit_use">사용후기</button></li>
|
||||
<li><button type="button" id="btn_sit_qa" rel="#sit_qa">상품문의</button></li>
|
||||
<li><button type="button" id="btn_sit_dvex" rel="#sit_dvex">배송/교환</button></li>
|
||||
</ul>
|
||||
<ul class="tab_con">
|
||||
|
||||
<!-- 상품 정보 시작 { -->
|
||||
<li id="sit_inf">
|
||||
<h2 class="contents_tit"><span>상품 정보</span></h2>
|
||||
|
||||
<?php if ($it['it_explan'] || $it['it_mobile_explan']) { // 상품 상세설명 ?>
|
||||
<h3>상품 상세설명</h3>
|
||||
<div id="sit_inf_explan">
|
||||
<?php echo ($it['it_mobile_explan'] ? conv_content($it['it_mobile_explan'], 1) : conv_content($it['it_explan'], 1)); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if ($it['it_info_value']) { // 상품 정보 고시
|
||||
$info_data = unserialize(stripslashes($it['it_info_value']));
|
||||
if(is_array($info_data)) {
|
||||
$gubun = $it['it_info_gubun'];
|
||||
$info_array = $item_info[$gubun]['article'];
|
||||
?>
|
||||
<h3>상품 정보 고시</h3>
|
||||
<table id="sit_inf_open">
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($info_data as $key=>$val) {
|
||||
$ii_title = $info_array[$key][0];
|
||||
$ii_value = $val;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $ii_title; ?></th>
|
||||
<td><?php echo $ii_value; ?></td>
|
||||
</tr>
|
||||
<?php } //foreach?>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- 상품정보고시 end -->
|
||||
<?php
|
||||
} else {
|
||||
if($is_admin) {
|
||||
echo '<p>상품 정보 고시 정보가 올바르게 저장되지 않았습니다.<br>config.php 파일의 G5_ESCAPE_FUNCTION 설정을 addslashes 로<br>변경하신 후 관리자 > 상품정보 수정에서 상품 정보를 다시 저장해주세요. </p>';
|
||||
}
|
||||
}
|
||||
} //if
|
||||
?>
|
||||
</li>
|
||||
|
||||
<!-- 사용후기 시작 { -->
|
||||
<li id="sit_use">
|
||||
<h2>사용후기</h2>
|
||||
<div id="itemuse"><?php include_once(G5_SHOP_PATH.'/itemuse.php'); ?></div>
|
||||
</li>
|
||||
<!-- } 사용후기 끝 -->
|
||||
|
||||
<!-- 상품문의 시작 { -->
|
||||
<li id="sit_qa">
|
||||
<h2>상품문의</h2>
|
||||
<div id="itemqa"><?php include_once(G5_SHOP_PATH.'/itemqa.php'); ?></div>
|
||||
</li>
|
||||
<!-- } 상품문의 끝 -->
|
||||
|
||||
<?php if ($default['de_baesong_content']) { // 배송정보 내용이 있다면 ?>
|
||||
<!-- 배송정보 시작 { -->
|
||||
<li id="sit_dvex">
|
||||
<h2>배송/교환정보</h2>
|
||||
|
||||
<div id="sit_dvr">
|
||||
<h3>배송정보</h3>
|
||||
<?php echo conv_content($default['de_baesong_content'], 1); ?>
|
||||
</div>
|
||||
<!-- } 배송정보 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($default['de_change_content']) { // 교환/반품 내용이 있다면 ?>
|
||||
<!-- 교환/반품 시작 { -->
|
||||
<div id="sit_ex" >
|
||||
<h3>교환/반품</h3>
|
||||
|
||||
<?php echo conv_content($default['de_change_content'], 1); ?>
|
||||
</div>
|
||||
<!-- } 교환/반품 끝 -->
|
||||
<?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
$(function (){
|
||||
$(".tab_con>li").hide();
|
||||
$(".tab_con>li:first").show();
|
||||
$(".tab_tit li button").click(function(){
|
||||
$(".tab_tit li button").removeClass("selected");
|
||||
$(this).addClass("selected");
|
||||
$(".tab_con>li").hide();
|
||||
$($(this).attr("rel")).show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</form>
|
||||
|
||||
<?php if($default['de_mobile_rel_list_use']) { ?>
|
||||
<!-- 관련상품 시작 { -->
|
||||
<section id="sit_rel">
|
||||
<h2>관련상품</h2>
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
$rel_skin_file = $skin_dir.'/'.$default['de_mobile_rel_list_skin'];
|
||||
if(!is_file($rel_skin_file))
|
||||
$rel_skin_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_rel_list_skin'];
|
||||
|
||||
$sql = " select b.* from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
$list = new item_list($rel_skin_file, $default['de_mobile_rel_list_mod'], 0, $default['de_mobile_rel_img_width'], $default['de_mobile_rel_img_height']);
|
||||
$list->set_query($sql);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 관련상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
$(window).bind("pageshow", function(event) {
|
||||
if (event.originalEvent.persisted) {
|
||||
document.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
$(function(){
|
||||
//이미지
|
||||
$('#slide-counter').prepend('<strong class="slide-index current-index"></strong> / ');
|
||||
|
||||
var slider = $('#sit_pvi_slide').bxSlider({
|
||||
auto: true,
|
||||
pager:false,
|
||||
controls: false,
|
||||
onSliderLoad: function (currentIndex){
|
||||
$('#slide-counter .current-index').text(currentIndex + 1);
|
||||
},
|
||||
onSlideBefore: function ($slideElement, oldIndex, newIndex){
|
||||
$('#slide-counter .current-index').text(newIndex + 1);
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
$('#slide-counter').append('<span class="total-slides">'+slider.getSlideCount()+'</span>');
|
||||
} catch (error) {
|
||||
}
|
||||
|
||||
$('a.pager-prev').click(function () {
|
||||
var current = slider.getCurrentSlide();
|
||||
slider.goToPrevSlide(current) - 1;
|
||||
});
|
||||
$('a.pager-next').click(function () {
|
||||
var current = slider.getCurrentSlide();
|
||||
slider.goToNextSlide(current) + 1;
|
||||
});
|
||||
|
||||
// 상품이미지 크게보기
|
||||
$(".popup_item_image").click(function() {
|
||||
var url = $(this).attr("href");
|
||||
var top = 10;
|
||||
var left = 10;
|
||||
var opt = 'scrollbars=yes,top='+top+',left='+left;
|
||||
popup_window(url, "largeimage", opt);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
if (window.location.href.split("#").length > 1) {
|
||||
let id = window.location.href.split("#")[1];
|
||||
$("#btn_" + id).trigger("click");
|
||||
};
|
||||
});
|
||||
|
||||
// 상품보관
|
||||
function item_wish(f, it_id)
|
||||
{
|
||||
f.url.value = "<?php echo G5_SHOP_URL; ?>/wishupdate.php?it_id="+it_id;
|
||||
f.action = "<?php echo G5_SHOP_URL; ?>/wishupdate.php";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
// 추천메일
|
||||
function popup_item_recommend(it_id)
|
||||
{
|
||||
if (!g5_is_member)
|
||||
{
|
||||
if (confirm("회원만 추천하실 수 있습니다."))
|
||||
document.location.href = "<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo urlencode(shop_item_url($it_id)); ?>";
|
||||
}
|
||||
else
|
||||
{
|
||||
url = "<?php echo G5_SHOP_URL; ?>/itemrecommend.php?it_id=" + it_id;
|
||||
opt = "scrollbars=yes,width=616,height=420,top=10,left=10";
|
||||
popup_window(url, "itemrecommend", opt);
|
||||
}
|
||||
}
|
||||
|
||||
// 재입고SMS 알림
|
||||
function popup_stocksms(it_id)
|
||||
{
|
||||
url = "<?php echo G5_SHOP_URL; ?>/itemstocksms.php?it_id=" + it_id;
|
||||
opt = "scrollbars=yes,width=616,height=420,top=10,left=10";
|
||||
popup_window(url, "itemstocksms", opt);
|
||||
}
|
||||
|
||||
function fsubmit_check(f)
|
||||
{
|
||||
// 판매가격이 0 보다 작다면
|
||||
if (document.getElementById("it_price").value < 0) {
|
||||
alert("전화로 문의해 주시면 감사하겠습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// 바로구매, 장바구니 폼 전송
|
||||
function fitem_submit(f)
|
||||
{
|
||||
f.action = "<?php echo $action_url; ?>";
|
||||
f.target = "";
|
||||
|
||||
if (document.pressed == "장바구니") {
|
||||
f.sw_direct.value = 0;
|
||||
} else { // 바로구매
|
||||
f.sw_direct.value = 1;
|
||||
}
|
||||
|
||||
// 판매가격이 0 보다 작다면
|
||||
if (document.getElementById("it_price").value < 0) {
|
||||
alert("전화로 문의해 주시면 감사하겠습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
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>
|
||||
<?php /* 2017 리뉴얼한 테마 적용 스크립트입니다. 기존 스크립트를 오버라이드 합니다. */ ?>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.override.js"></script>
|
||||
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<h1 id="win_title">교환/반품</h1>
|
||||
<div class="win_desc">
|
||||
<?php echo conv_content($default['de_change_content'], 1); ?>
|
||||
</div>
|
||||
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<h2 class="if_tit">배송정보</h2>
|
||||
|
||||
<div class="win_desc_if">
|
||||
<?php echo conv_content($default['de_baesong_content'], 1); ?>
|
||||
</div>
|
||||
|
||||
<h2 class="if_tit">교환/반품</h2>
|
||||
|
||||
<div class="win_desc_if">
|
||||
<?php echo conv_content($default['de_change_content'], 1); ?>
|
||||
</div>
|
||||
57
theme/rb.basic/mobile/skin/shop/basic/iteminfo.info.skin.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<h1>상품설명</h1>
|
||||
|
||||
<div id="sit_inf" class="win_desc">
|
||||
<?php if ($it['it_basic']) { // 상품 기본설명 ?>
|
||||
<div id="sit_inf_basic">
|
||||
<?php echo $it['it_basic']; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($it['it_explan'] || $it['it_mobile_explan']) { // 상품 상세설명 ?>
|
||||
<div id="sit_inf_explan">
|
||||
<?php echo ($it['it_mobile_explan'] ? conv_content($it['it_mobile_explan'], 1) : conv_content($it['it_explan'], 1)); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if ($it['it_info_value']) {
|
||||
$info_data = unserialize(stripslashes($it['it_info_value']));
|
||||
if(is_array($info_data)) {
|
||||
$gubun = $it['it_info_gubun'];
|
||||
$info_array = $item_info[$gubun]['article'];
|
||||
?>
|
||||
<h2>상품 정보 고시</h2>
|
||||
<!-- 상품정보고시 -->
|
||||
<ul id="sit_inf_open">
|
||||
<?php
|
||||
foreach($info_data as $key=>$val) {
|
||||
$ii_title = $info_array[$key][0];
|
||||
$ii_value = $val;
|
||||
?>
|
||||
<li>
|
||||
<strong><?php echo $ii_title; ?></strong>
|
||||
<span><?php echo $ii_value; ?></span>
|
||||
</li>
|
||||
<?php } //foreach?>
|
||||
</ul>
|
||||
<!-- 상품정보고시 end -->
|
||||
<?php
|
||||
} else {
|
||||
if($is_admin) {
|
||||
echo '<p>상품 정보 고시 정보가 올바르게 저장되지 않았습니다.<br>config.php 파일의 G5_ESCAPE_FUNCTION 설정을 addslashes 로<br>변경하신 후 관리자 > 상품정보 수정에서 상품 정보를 다시 저장해주세요. </p>';
|
||||
}
|
||||
}
|
||||
} //if
|
||||
?>
|
||||
|
||||
</div>
|
||||
<!-- 상품설명 end -->
|
||||
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_qa');
|
||||
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_use');
|
||||
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 스킨경로
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
$ca_dir_check = true;
|
||||
|
||||
if($it['it_mobile_skin']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$it['it_mobile_skin'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
|
||||
if(is_file($form_skin_file))
|
||||
$ca_dir_check = false;
|
||||
}
|
||||
}
|
||||
|
||||
if($ca_dir_check) {
|
||||
if($ca['ca_mobile_skin_dir']) {
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
|
||||
if(is_dir($skin_dir)) {
|
||||
$form_skin_file = $skin_dir.'/item.form.skin.php';
|
||||
|
||||
if(!is_file($skin_file))
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
} else {
|
||||
$skin_dir = G5_MSHOP_SKIN_PATH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<h1 id="win_title">관련상품</h1>
|
||||
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
$rel_skin_file = $skin_dir.'/'.$default['de_mobile_rel_list_skin'];
|
||||
if(!is_file($rel_skin_file))
|
||||
$rel_skin_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_rel_list_skin'];
|
||||
|
||||
$sql = " select b.* from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list($rel_skin_file, 1, 1, $default['de_mobile_rel_img_width'], $default['de_mobile_rel_img_height']);
|
||||
$list->set_mobile(true);
|
||||
$list->set_query($sql);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("a.sct_a").on("click", function() {
|
||||
window.opener.location.href = this.href;
|
||||
self.close();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
151
theme/rb.basic/mobile/skin/shop/basic/itemqa.skin.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
<div id="sit_qa_wbtn">
|
||||
<a href="<?php echo $itemqa_form; ?>" class="itemqa_form qa_wr">상품문의 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemqa_list; ?>" id="itemqa_list" class="btn01">더보기</a>
|
||||
</div>
|
||||
|
||||
<!-- 상품문의 목록 시작 { -->
|
||||
<div id="sit_qa_list">
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
$iq_num = $total_count - ($page - 1) * $rows;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_name = get_text($row['iq_name']);
|
||||
$iq_subject = conv_subject($row['iq_subject'],50,"…");
|
||||
|
||||
$is_secret = false;
|
||||
if($row['iq_secret']) {
|
||||
$iq_subject .= ' <img src="'.G5_MSHOP_SKIN_URL.'/img/icon_secret.gif" alt="비밀글">';
|
||||
|
||||
if($is_admin || $member['mb_id' ] == $row['mb_id']) {
|
||||
$iq_question = get_view_thumbnail(conv_content($row['iq_question'], 1), $thumbnail_width);
|
||||
} else {
|
||||
$iq_question = '비밀글로 보호된 문의입니다.';
|
||||
$is_secret = true;
|
||||
}
|
||||
} else {
|
||||
$iq_question = get_view_thumbnail(conv_content($row['iq_question'], 1), $thumbnail_width);
|
||||
}
|
||||
$iq_time = substr($row['iq_time'], 2, 8);
|
||||
|
||||
$hash = md5($row['iq_id'].$row['iq_time'].$row['iq_ip']);
|
||||
|
||||
$iq_stats = '';
|
||||
$iq_style = '';
|
||||
$iq_answer = '';
|
||||
|
||||
if ($row['iq_answer'])
|
||||
{
|
||||
$iq_answer = get_view_thumbnail(conv_content($row['iq_answer'], 1), $thumbnail_width);
|
||||
$iq_stats = '답변완료';
|
||||
$iq_style = 'sit_qaa_done';
|
||||
$is_answer = true;
|
||||
} else {
|
||||
$iq_stats = '답변대기';
|
||||
$iq_style = 'sit_qaa_yet';
|
||||
$iq_answer = '답변이 등록되지 않았습니다.';
|
||||
$is_answer = false;
|
||||
}
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_qa_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_qa_li">
|
||||
<button type="button" class="sit_qa_li_title"><?php echo $iq_subject; ?></button>
|
||||
<dl class="sit_qa_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $iq_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $iq_time; ?></dd>
|
||||
<dt>상태</dt>
|
||||
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_qa_con_<?php echo $i; ?>" class="sit_qa_con">
|
||||
<div class="sit_qa_p">
|
||||
<div class="sit_qa_qaq">
|
||||
<span class="sit_alp">Q</span>
|
||||
<strong>문의내용</strong>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<?php if(!$is_secret) { ?>
|
||||
<div class="sit_qa_qaa">
|
||||
<span class="sit_alp">A</span>
|
||||
<strong>답변</strong>
|
||||
<?php echo $iq_answer; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || ($row['mb_id'] == $member['mb_id'] && !$is_answer)) { ?>
|
||||
<div class="sit_qa_cmd">
|
||||
<a href="<?php echo $itemqa_form."&iq_id={$row['iq_id']}&w=u"; ?>" class="itemqa_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemqa_formupdate."&iq_id={$row['iq_id']}&w=d&hash={$hash}"; ?>" class="itemqa_delete btn01">삭제</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
$iq_num--;
|
||||
}
|
||||
|
||||
if ($i > 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">상품문의가 없습니다.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo itemqa_page($config['cf_mobile_pages'], $page, $total_page, G5_SHOP_URL."/itemqa.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemqa_form").click(function(){
|
||||
window.open(this.href, "itemqa_form", "width=810,height=680,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemqa_delete").click(function(){
|
||||
return confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.");
|
||||
});
|
||||
|
||||
$(".sit_qa_li_title").click(function(){
|
||||
var $con = $(this).siblings(".sit_qa_con");
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$(".sit_qa_con:visible").hide();
|
||||
$con.slideDown(
|
||||
function() {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
$(".qa_page").click(function(){
|
||||
$("#itemqa").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
|
||||
$("a#itemqa_list").on("click", function() {
|
||||
window.opener.location.href = this.href;
|
||||
self.close();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품문의 목록 끝 -->
|
||||
59
theme/rb.basic/mobile/skin/shop/basic/itemqaform.skin.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 상품문의 쓰기 시작 { -->
|
||||
<div id="sit_qa_write" class="new_win">
|
||||
<h1 id="win_title">상품문의 쓰기</h1>
|
||||
|
||||
<form name="fitemqa" method="post" action="<?php echo G5_SHOP_URL;?>/itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
<input type="hidden" name="is_mobile_shop" value="1">
|
||||
|
||||
<div class="form_01">
|
||||
<ul>
|
||||
<li>
|
||||
<span class="sound_only">옵션</span>
|
||||
<input type="checkbox" name="iq_secret" id="iq_secret" value="1" <?php echo $chk_secret; ?>>
|
||||
<label for="iq_secret">비밀글</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="iq_email" class="sound_only">이메일</label>
|
||||
<input type="email" name="iq_email" id="iq_email" value="<?php echo get_text($qa['iq_email']); ?>" class="frm_input full_input" size="30" placeholder="이메일"> <span class="frm_info ">이메일을 입력하시면 답변 등록 시 답변이 이메일로 전송됩니다.</span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="iq_hp" class="sound_only">휴대폰</label>
|
||||
<input type="text" name="iq_hp" id="iq_hp" value="<?php echo get_text($qa['iq_hp']); ?>" class="frm_input full_input" size="20" placeholder="휴대폰"> <span class="frm_info ">휴대폰번호를 입력하시면 답변 등록 시 답변등록 알림이 SMS로 전송됩니다.</span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="iq_subject" class="sound_only">제목</label>
|
||||
<input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input full_input" minlength="2" maxlength="250" placeholder="제목">
|
||||
</li>
|
||||
<li>
|
||||
<label for="iq_question" class="sound_only">질문</label>
|
||||
<?php echo $editor_html; ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">작성완료</button>
|
||||
<button type="button" onclick="self.close();" class="btn_close">닫기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemqa_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 상품문의 쓰기 끝 -->
|
||||
144
theme/rb.basic/mobile/skin/shop/basic/itemqalist.skin.php
Normal file
@ -0,0 +1,144 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<!-- 전체 상품 문의 목록 시작 { -->
|
||||
<form method="get" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
|
||||
<div id="sqa_sch">
|
||||
<div class="sch_wr">
|
||||
<label for="sfl" class="sound_only">검색항목</label>
|
||||
<select name="sfl" required id="sfl">
|
||||
<option value="">선택</option>
|
||||
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name", true); ?>>상품명</option>
|
||||
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
|
||||
<option value="a.iq_subject" <?php echo get_selected($sfl, "a.iq_subject"); ?>>문의제목</option>
|
||||
<option value="a.iq_question"<?php echo get_selected($sfl, "a.iq_question"); ?>>문의내용</option>
|
||||
<option value="a.iq_name" <?php echo get_selected($sfl, "a.it_id"); ?>>작성자명</option>
|
||||
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
|
||||
</select>
|
||||
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="sch_input">
|
||||
<button type="submit" value="검색" class="sch_btn"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||
</div>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">전체보기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="sqa">
|
||||
|
||||
<!-- <p><?php echo $config['cf_title']; ?> 전체 상품문의 목록입니다.</p> -->
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
$num = $total_count - ($page - 1) * $rows;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_subject = conv_subject($row['iq_subject'],50,"…");
|
||||
|
||||
$is_secret = false;
|
||||
if($row['iq_secret']) {
|
||||
$iq_subject .= ' <i class="fa fa-lock" aria-hidden="true"></i>';
|
||||
|
||||
if($is_admin || $member['mb_id' ] == $row['mb_id']) {
|
||||
$iq_question = get_view_thumbnail(conv_content($row['iq_question'], 1), $thumbnail_width);
|
||||
} else {
|
||||
$iq_question = '비밀글로 보호된 문의입니다.';
|
||||
$is_secret = true;
|
||||
}
|
||||
} else {
|
||||
$iq_question = get_view_thumbnail(conv_content($row['iq_question'], 1), $thumbnail_width);
|
||||
}
|
||||
|
||||
$it_href = shop_item_url($row['it_id']);
|
||||
|
||||
if ($row['iq_answer'])
|
||||
{
|
||||
$iq_answer = get_view_thumbnail(conv_content($row['iq_answer'], 1), $thumbnail_width);
|
||||
$iq_stats = '답변완료';
|
||||
$iq_style = 'sit_qaa_done';
|
||||
$is_answer = true;
|
||||
} else {
|
||||
$iq_stats = '답변대기';
|
||||
$iq_style = 'sit_qaa_yet';
|
||||
$iq_answer = '답변이 등록되지 않았습니다.';
|
||||
$is_answer = false;
|
||||
}
|
||||
|
||||
if ($i == 0) echo '<ol>';
|
||||
?>
|
||||
<li>
|
||||
<div class="sqa_img">
|
||||
<a href="<?php echo $it_href; ?>">
|
||||
<?php echo get_it_image($row['it_id'], 60, 60); ?>
|
||||
<span><?php echo $row['it_name']; ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<section class="sqa_section">
|
||||
<h2><span class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></span> <?php echo $iq_subject; ?></h2>
|
||||
<div class="sqa_info">
|
||||
<span class="sound_only">작성자</span>
|
||||
<span class="sqa_if_wt"><?php echo get_text($row['iq_name']); ?></span>
|
||||
<span class="sound_only">작성일</span>
|
||||
<span><?php echo substr($row['iq_time'],2,8); ?></span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="sqa_con_<?php echo $i; ?>" class="sqa_con" style="display:none;">
|
||||
<div class="sit_qa_qaq">
|
||||
<strong class="sound_only">문의내용</strong>
|
||||
<span class="qa_alp">Q</span>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<?php if(!$is_secret) { ?>
|
||||
<div class="sit_qa_qaa">
|
||||
<strong class="sound_only">답변</strong>
|
||||
<span class="qa_alp">A</span>
|
||||
<?php echo $iq_answer; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="sqa_con_btn"><button class="sqa_con_<?php echo $i; ?>"><span class="sound_only">내용보기</span><i class="fa fa-chevron-down" aria-hidden="true"></i></button></div>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
$num--;
|
||||
}
|
||||
|
||||
if ($i > 0) echo '</ol>';
|
||||
if ($i == 0) echo '<p id="sps_empty">자료가 없습니다.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php echo get_paging($config['cf_mobile_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// 상품문의 더보기
|
||||
$(".sqa_con_btn button").click(function(){
|
||||
var $con = $(this).parent().prev();
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
$(this).html("<span class=\"sound_only\">내용보기</span> <i class=\"fa fa-chevron-down\" aria-hidden=\"true\"></i>");
|
||||
} else {
|
||||
$("div[id^=sqa_con]:visible").hide();
|
||||
$con.slideDown(
|
||||
function() {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
);
|
||||
$(this).html("<span class=\"sound_only\">내용닫기</span><i class=\"fa fa-chevron-up\" aria-hidden=\"true\"></i>");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 전체 상품 사용후기 목록 끝 -->
|
||||
133
theme/rb.basic/mobile/skin/shop/basic/itemuse.skin.php
Normal file
@ -0,0 +1,133 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<div id="sit_use_wbtn">
|
||||
<a href="<?php echo $itemuse_form; ?>" class="qa_wr itemuse_form " onclick="return false;">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemuse_list; ?>" id="itemuse_list" class="btn01">더보기</a>
|
||||
</div>
|
||||
|
||||
<!-- 상품 사용후기 시작 { -->
|
||||
<div id="sit_use_list">
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$is_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$is_star = get_star($row['is_score']);
|
||||
$is_name = get_text($row['is_name']);
|
||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
||||
//$is_content = ($row['wr_content']);
|
||||
$is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width);
|
||||
$is_reply_name = !empty($row['is_reply_name']) ? get_text($row['is_reply_name']) : '';
|
||||
$is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : '';
|
||||
$is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : '';
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_use_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_use_li">
|
||||
<button type="button" class="sit_use_li_title"><?php echo $is_subject; ?></button>
|
||||
<dl class="sit_use_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $is_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $is_time; ?></dd>
|
||||
<dt>선호도<dt>
|
||||
<dd class="sit_use_star"><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||
<div class="sit_use_p">
|
||||
<?php echo $is_content; // 사용후기 내용 ?>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || $row['mb_id'] == $member['mb_id']) { ?>
|
||||
<div class="sit_use_cmd">
|
||||
<a href="<?php echo $itemuse_form."&is_id={$row['is_id']}&w=u"; ?>" class="itemuse_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemuse_formupdate."&is_id={$row['is_id']}&w=d&hash={$hash}"; ?>" class="itemuse_delete btn01">삭제</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( $is_reply_subject ){ // 사용후기 답변 내용이 있다면 ?>
|
||||
<div class="sit_use_reply">
|
||||
<div class="use_reply_icon">답변</div>
|
||||
<div class="use_reply_tit">
|
||||
<?php echo $is_reply_subject; // 답변 제목 ?>
|
||||
</div>
|
||||
<div class="use_reply_name">
|
||||
<?php echo $is_reply_name; // 답변자 이름 ?>
|
||||
</div>
|
||||
<div class="use_reply_p">
|
||||
<?php echo $is_reply_content; // 답변 내용 ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } //end if ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
if ($i > 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">사용후기가 없습니다.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo itemuse_page($config['cf_mobile_pages'], $page, $total_page, G5_SHOP_URL."/itemuse.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemuse_form").click(function(){
|
||||
window.open(this.href, "itemuse_form", "width=810,height=680,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemuse_delete").click(function(){
|
||||
if (confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.")) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(".sit_use_li_title").click(function(){
|
||||
var $con = $(this).siblings(".sit_use_con");
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$(".sit_use_con:visible").hide();
|
||||
$con.slideDown(
|
||||
function() {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
$(".pg_page").click(function(){
|
||||
$("#itemuse").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
|
||||
$("a#itemuse_list").on("click", function() {
|
||||
window.opener.location.href = this.href;
|
||||
self.close();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품 사용후기 끝 -->
|
||||
77
theme/rb.basic/mobile/skin/shop/basic/itemuseform.skin.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 사용후기 쓰기 시작 { -->
|
||||
<div id="sit_use_write" class="new_win">
|
||||
<h1 id="win_title">사용후기 쓰기</h1>
|
||||
|
||||
<form name="fitemuse" method="post" action="<?php echo G5_SHOP_URL;?>/itemuseformupdate.php" onsubmit="return fitemuse_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
<input type="hidden" name="is_mobile_shop" value="1">
|
||||
|
||||
<div class="form_01 chk_box">
|
||||
<ul>
|
||||
<li>
|
||||
<label for="is_subject" class="sound_only">제목</label>
|
||||
<input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="required frm_input" minlength="2" maxlength="250" placeholder="제목">
|
||||
</li>
|
||||
<li>
|
||||
<span class="sound_only">내용</span>
|
||||
<?php echo $editor_html; ?>
|
||||
</li>
|
||||
<li>
|
||||
<span class="sound_only">평가</span>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="5" id="is_score10" <?php echo ($is_score==5)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10"><span></span>매우만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star5.png" width="90">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score8" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8"><span></span>만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star4.png" width="90">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="3" id="is_score6" <?php echo ($is_score==3)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6"><span></span>보통</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star3.png" width="90">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score4" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4"><span></span>불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star2.png" width="90">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="1" id="is_score2" <?php echo ($is_score==1)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2"><span></span>매우불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star1.png" width="90">
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="win_btn">
|
||||
<button type="submit" class="btn_submit">작성완료</button>
|
||||
<button type="button" onclick="self.close();" class="btn_close">닫기</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 사용후기 쓰기 끝 -->
|
||||
158
theme/rb.basic/mobile/skin/shop/basic/itemuselist.skin.php
Normal file
@ -0,0 +1,158 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<!-- 전체 상품 사용후기 목록 시작 { -->
|
||||
<form method="get" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
|
||||
<div id="sps_sch">
|
||||
<div class="sch_wr">
|
||||
<label for="sfl" class="sound_only">검색항목</label>
|
||||
<select name="sfl" id="sfl" required>
|
||||
<option value="">선택</option>
|
||||
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name"); ?>>상품명</option>
|
||||
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
|
||||
<option value="a.is_subject"<?php echo get_selected($sfl, "a.is_subject"); ?>>후기제목</option>
|
||||
<option value="a.is_content"<?php echo get_selected($sfl, "a.is_content"); ?>>후기내용</option>
|
||||
<option value="a.is_name" <?php echo get_selected($sfl, "a.is_name"); ?>>작성자명</option>
|
||||
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="sch_input" size="10">
|
||||
<button type="submit" value="검색" class="sch_btn"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||
</div>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">전체보기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="sps">
|
||||
|
||||
<!-- <p><?php echo $config['cf_title']; ?> 전체 사용후기 목록입니다.</p> -->
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$num = $total_count - ($page - 1) * $rows - $i;
|
||||
$star = get_star($row['is_score']);
|
||||
|
||||
$is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width);
|
||||
|
||||
$row2 = get_shop_item($row['it_id'], true);
|
||||
$it_href = shop_item_url($row['it_id']);
|
||||
|
||||
if ($i == 0) echo '<ol>';
|
||||
?>
|
||||
<li>
|
||||
<div class="sps_img">
|
||||
<a href="<?php echo $it_href; ?>">
|
||||
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_content'], 70, 70); ?>
|
||||
<span><?php echo $row2['it_name']; ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<section class="sps_section">
|
||||
<div class="sps_star">
|
||||
<span class="sound_only">평가점수</span><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개" width="80">
|
||||
</div>
|
||||
|
||||
<div class="sps_con_btn">
|
||||
<button class="sps_con_<?php echo $i; ?> review_detail"><?php echo get_text($row['is_subject']); ?></button>
|
||||
<!-- 사용후기 자세히 시작 -->
|
||||
<div class="review_detail_cnt">
|
||||
<div class="review_detail_in">
|
||||
<div class="review_detail_inner">
|
||||
<h3>사용후기</h3>
|
||||
<div class="review_cnt">
|
||||
<div class="review_tp_cnt">
|
||||
<span><?php echo get_text($row['is_subject']); ?></span>
|
||||
<dl class="sps_dl">
|
||||
<dt class="sound_only">작성자</dt>
|
||||
<dd class="sps_dd_wt"><?php echo $row['is_name']; ?></dd>
|
||||
<dt class="sound_only">작성일</dt>
|
||||
<dd><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo substr($row['is_time'],0,10); ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div class="review_summ">
|
||||
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_content'], 50, 50); ?>
|
||||
<p>
|
||||
<span><?php echo get_text($row['is_subject']); ?></span>
|
||||
<span class="sound_only">평가점수</span><img src="<?php echo G5_URL; ?>/shop/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개" width="80">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="sps_con_<?php echo $i; ?>" class="review_bt_cnt">
|
||||
<?php echo $is_content; // 사용후기 내용 ?>
|
||||
<?php
|
||||
if( !empty($row['is_reply_subject']) ){ //사용후기 답변이 있다면
|
||||
$is_reply_content = get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width);
|
||||
?>
|
||||
<div class="sps_reply">
|
||||
<section>
|
||||
<h2 class="is_use_reply"><?php echo get_text($row['is_reply_subject']); ?></h2>
|
||||
<div class="sps_dl">
|
||||
<?php echo $row['is_reply_name']; ?>
|
||||
</div>
|
||||
<div id="sps_con_<?php echo $i; ?>_reply">
|
||||
<?php echo $is_reply_content; // 사용후기 답변 내용 ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php } //end if ?>
|
||||
</div>
|
||||
</div>
|
||||
<button class="rd_cls"><span class="sound_only">후기 상세보기 팝업 닫기</span><i class="fa fa-times" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 사용후기 자세히 끝 -->
|
||||
</div>
|
||||
|
||||
<div class="sps_info">
|
||||
<span class="sound_only">작성자</span>
|
||||
<span class="sps_if_wt"><?php echo get_text($row['is_name']); ?></span>
|
||||
<span class="sound_only">작성일</span>
|
||||
<span><?php echo substr($row['is_time'],2,8); ?></span>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
if ($i > 0) echo '</ol>';
|
||||
if ($i == 0) echo '<p id="sps_empty">자료가 없습니다.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php echo get_paging($config['cf_mobile_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// 사용후기 열기
|
||||
$(".review_detail").on("click", function(){
|
||||
$(this).parent("div").children(".review_detail_cnt").show();
|
||||
});
|
||||
|
||||
// 사용후기 닫기
|
||||
$(document).mouseup(function (e){
|
||||
var container = $(".review_detail_cnt");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
});
|
||||
|
||||
// 후기 상세 글쓰기 옵션
|
||||
$(".sps_opt_btn_more").on("click", function() {
|
||||
$(".sps_opt_li").toggle();
|
||||
})
|
||||
|
||||
// 후기 상세 글쓰기 닫기
|
||||
$('.rd_cls').click(function(){
|
||||
$('.review_detail_cnt').hide();
|
||||
});
|
||||
</script>
|
||||
<!-- } 전체 상품 사용후기 목록 끝 -->
|
||||
91
theme/rb.basic/mobile/skin/shop/basic/largeimage.skin.php
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<div id="sit_pvi_nw" class="new_win">
|
||||
<h1>상품 이미지 새창 보기</h1>
|
||||
|
||||
<div id="sit_pvi_nwbig">
|
||||
<?php
|
||||
$thumbnails = array();
|
||||
for($i=1; $i<=10; $i++) {
|
||||
if(!$row['it_img'.$i])
|
||||
continue;
|
||||
|
||||
$file = G5_DATA_PATH.'/item/'.$row['it_img'.$i];
|
||||
if(is_file($file)) {
|
||||
// 썸네일
|
||||
$thumb = get_it_thumbnail($row['it_img'.$i], 60, 60);
|
||||
$thumbnails[$i] = $thumb;
|
||||
$imageurl = G5_DATA_URL.'/item/'.$row['it_img'.$i];
|
||||
?>
|
||||
<span>
|
||||
<a href="javascript:window.close();">
|
||||
<img src="<?php echo $imageurl; ?>" width="<?php echo $size[0]; ?>" alt="<?php echo $row['it_name']; ?>" id="largeimage_<?php echo $i; ?>">
|
||||
</a>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$total_count = count($thumbnails);
|
||||
$thumb_count = 0;
|
||||
if($total_count > 0) {
|
||||
echo '<ul>';
|
||||
foreach($thumbnails as $key=>$val) {
|
||||
echo '<li><a href="'.G5_SHOP_URL.'/largeimage.php?it_id='.$it_id.'&no='.$key.'" class="img_thumb">'.$val.'</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="win_btn">
|
||||
<button type="button" onclick="javascript:window.close();" class="btn_close">창닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
fit_width();
|
||||
|
||||
$("#sit_pvi_nwbig span:eq("+<?php echo ($no - 1); ?>+")").addClass("visible");
|
||||
|
||||
// 이미지 미리보기
|
||||
$(".img_thumb").bind("mouseover focus", function(){
|
||||
var idx = $(".img_thumb").index($(this));
|
||||
$("#sit_pvi_nwbig span.visible").removeClass("visible");
|
||||
$("#sit_pvi_nwbig span:eq("+idx+")").addClass("visible");
|
||||
});
|
||||
|
||||
$(window).on("resize", function() {
|
||||
fit_width();
|
||||
});
|
||||
});
|
||||
|
||||
function fit_width()
|
||||
{
|
||||
var sw = $(window).width();
|
||||
var $img = $("#sit_pvi_nwbig span img");
|
||||
|
||||
if($img.length < 1)
|
||||
return;
|
||||
|
||||
$img.each(function() {
|
||||
var w = $(this).width();
|
||||
if($(this).data("width") == undefined)
|
||||
$(this).data("width", w);
|
||||
|
||||
if(parseInt($(this).data("width")) > sw) {
|
||||
$(this).removeAttr("width").css("width", "100%");
|
||||
} else {
|
||||
$(this).width($(this).data("width"));
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
187
theme/rb.basic/mobile/skin/shop/basic/list.10.skin.php
Normal file
@ -0,0 +1,187 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
// 장바구니 또는 위시리스트 ajax 스크립트
|
||||
add_javascript('<script src="'.G5_THEME_JS_URL.'/theme.shop.list.js"></script>', 10);
|
||||
?>
|
||||
|
||||
<?php if(!defined('G5_IS_SHOP_AJAX_LIST') && $config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 메인상품진열 10 시작 { -->
|
||||
<?php
|
||||
$is_gallery_list = ($this->ca_id && isset($_COOKIE['ck_itemlist'.$this->ca_id.'_type'])) ? $_COOKIE['ck_itemlist'.$this->ca_id.'_type'] : '';
|
||||
if(!$is_gallery_list){
|
||||
$is_gallery_list = 'gallery';
|
||||
}
|
||||
$li_width = ($is_gallery_list === 'gallery') ? intval(100 / $this->list_mod) : 100;
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
$ul_sct_class = ($is_gallery_list === 'gallery') ? 'sct_10' : 'sct_10_list';
|
||||
|
||||
$i = 0;
|
||||
foreach((array) $list as $row){
|
||||
if( empty($row) ) continue;
|
||||
|
||||
$item_link_href = shop_item_url($row['it_id']); // 상품링크
|
||||
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : ''; //사용자후기 평균별점
|
||||
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
|
||||
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"sct_wrap\" class=\"sct ".$ul_sct_class."\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($i % $this->list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
echo "<li class=\"sct_li{$li_clear}\"$li_width_style><div class=\"li_wr is_view_type_list\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>";
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
// 품절
|
||||
if ($is_soldout) {
|
||||
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
|
||||
}
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// 사용후기 평점표시
|
||||
if ($this->view_star && $star_score) {
|
||||
echo "<div class=\"sct_star\"><span class=\"sound_only\">고객평점</span><img src=\"".G5_SHOP_URL."/img/s_star".$star_score.".png\" alt=\"별점 ".$star_score."점\" class=\"sit_star\"></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_txt\"><a href=\"{$item_link_href}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name'])."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_basic && $row['it_basic']) {
|
||||
echo "<div class=\"sct_basic\">".stripslashes($row['it_basic'])."</div>\n";
|
||||
}
|
||||
if ($this->view_it_price) {
|
||||
echo "<div class=\"sct_cost\">\n";
|
||||
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// 위시리스트 + 공유 버튼 시작 {
|
||||
echo "<div class=\"sct_op_btn\">\n";
|
||||
echo "<button type=\"button\" class=\"btn_wish\" data-it_id=\"{$row['it_id']}\"><span class=\"sound_only\">위시리스트</span><i class=\"fa fa-heart-o\" aria-hidden=\"true\"></i></button>\n";
|
||||
if ($this->view_sns) {
|
||||
echo "<button type=\"button\" class=\"btn_share\"><span class=\"sound_only\">공유하기</span><i class=\"fa fa-share-alt\" aria-hidden=\"true\"></i></button>\n";
|
||||
}
|
||||
echo "<div class=\"sct_sns_wrap\">";
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = $item_link_href;
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo "<h3>SNS 공유</h3>";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
|
||||
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
|
||||
echo "<button type=\"button\" class=\"sct_sns_cls\"><span class=\"sound_only\">닫기</span><i class=\"fa fa-times\" aria-hidden=\"true\"></i></button>";
|
||||
echo "</div>\n";
|
||||
}
|
||||
echo "<div class=\"sct_sns_bg\"></div>";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
// } 위시리스트 + 공유 버튼 끝
|
||||
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
echo "</li>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
|
||||
<?php if( !defined('G5_IS_SHOP_AJAX_LIST') ) { ?>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
var li_width = "<?php echo intval(100 / $this->list_mod); ?>",
|
||||
img_width = "<?php echo $this->img_width; ?>",
|
||||
img_height = "<?php echo $this->img_height; ?>",
|
||||
list_ca_id = "<?php echo $this->ca_id; ?>";
|
||||
|
||||
function shop_list_type_fn(type){
|
||||
var $ul_sct = $("ul.sct");
|
||||
|
||||
if(type == "gallery") {
|
||||
$ul_sct.removeClass("sct_10_list").addClass("sct_10")
|
||||
.find(".sct_li").attr({"style":"width:"+li_width+"%"});
|
||||
} else {
|
||||
$ul_sct.removeClass("sct_10").addClass("sct_10_list")
|
||||
.find(".sct_li").removeAttr("style");
|
||||
}
|
||||
|
||||
if (typeof g5_cookie_domain != 'undefined') {
|
||||
set_cookie("ck_itemlist"+list_ca_id+"_type", type, 1, g5_cookie_domain);
|
||||
}
|
||||
}
|
||||
|
||||
$("button.sct_lst_view").on("click", function() {
|
||||
var $ul_sct = $("ul.sct");
|
||||
|
||||
if($(this).hasClass("sct_lst_gallery")) {
|
||||
shop_list_type_fn("gallery");
|
||||
} else {
|
||||
shop_list_type_fn("list");
|
||||
}
|
||||
});
|
||||
|
||||
//SNS 공유
|
||||
$(document).on("click", ".btn_share", function(e) {
|
||||
$(this).parent("div").children(".sct_sns_wrap").show();
|
||||
})
|
||||
.on("click", ".sct_sns_bg, .sct_sns_cls", function(e) {
|
||||
$('.sct_sns_wrap').hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php }
|
||||
182
theme/rb.basic/mobile/skin/shop/basic/list.best.10.skin.php
Normal file
@ -0,0 +1,182 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($this->total_count > 0) {
|
||||
$li_width = intval(100 / $this->list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
$k = 1;
|
||||
$slide_btn = '<button type="button" class="bst_sl">'.$k.'번째 리스트</button>';
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
|
||||
|
||||
if($i == 0) {
|
||||
echo '<script src="'.G5_JS_URL.'/swipe.js"></script>'.PHP_EOL;
|
||||
echo '<section id="best_item">'.PHP_EOL;
|
||||
echo '<h2>베스트상품</h2>'.PHP_EOL;
|
||||
echo '<div id="sbest_list" class="swipe">'.PHP_EOL;
|
||||
echo '<div id="sbest_slide" class="slide-wrap">'.PHP_EOL;
|
||||
echo '<ul class="sct_best">'.PHP_EOL;
|
||||
}
|
||||
|
||||
if($i > 0 && ($i % $this->list_mod == 0)) {
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '<ul class="sct_best">'.PHP_EOL;
|
||||
$k++;
|
||||
$slide_btn .= '<button type="button">'.$k.'번째 리스트</button>';
|
||||
}
|
||||
|
||||
echo '<li class="sct_li"'.$li_width_style.'>'.PHP_EOL;
|
||||
|
||||
if ($this->href) {
|
||||
echo '<div class="sct_img"><a href="'.$this->href.$row['it_id'].'" class="sct_a">'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name'])).PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo '</a>';
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
// 품절
|
||||
if ($is_soldout) {
|
||||
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
|
||||
}
|
||||
}
|
||||
echo '</div>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo '<div class="sct_id"><'.stripslashes($row['it_id']).'></div>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo '<div class="sct_txt"><a href="'.$this->href.$row['it_id'].'" class="sct_a">'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name']).PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo '</a></div>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo '<div class="sct_cost">'.display_price(get_price($row), $row['it_tel_inq']).'</div>'.PHP_EOL;
|
||||
}
|
||||
|
||||
echo '</li>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if($i > 0) {
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '</div>'.PHP_EOL;
|
||||
echo '<div class="bst_silde_btn">'.$slide_btn.'</div>'.PHP_EOL;
|
||||
echo '</div>'.PHP_EOL;
|
||||
echo '</section>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
(function($) {
|
||||
$.fn.BestSlide = function(option)
|
||||
{
|
||||
var cfg = {
|
||||
wrap: ".slide-wrap",
|
||||
slides: ".slide-wrap > ul",
|
||||
buttons: ".bst_silde_btn > button",
|
||||
btnActive: "bst_sl",
|
||||
startSlide: 0,
|
||||
auto: 0,
|
||||
continuous: true,
|
||||
disableScroll: false,
|
||||
stopPropagation: false,
|
||||
callback: function(index, element) {
|
||||
button_change(index);
|
||||
},
|
||||
transitionEnd: function(index, element) {
|
||||
idx = index;
|
||||
}
|
||||
};
|
||||
|
||||
if(typeof option == "object")
|
||||
cfg = $.extend( cfg, option );
|
||||
|
||||
var $wrap = this.find(""+cfg.wrap+"");
|
||||
var $slides = this.find(""+cfg.slides+"");
|
||||
var $btns = this.find(""+cfg.buttons+"");
|
||||
|
||||
var idx = cfg.startSlide;
|
||||
var count = $slides.length;
|
||||
var width, outerW;
|
||||
|
||||
if(count < 1)
|
||||
return;
|
||||
|
||||
function button_change(idx)
|
||||
{
|
||||
if(count < 2)
|
||||
return;
|
||||
|
||||
$btns.removeClass(cfg.btnActive)
|
||||
.eq(idx).addClass(cfg.btnActive);
|
||||
}
|
||||
|
||||
function init()
|
||||
{
|
||||
width = $slides.eq(0).width();
|
||||
outerW = $slides.eq(0).outerWidth(true);
|
||||
|
||||
$slides.width(width);
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
window.mySwipe = Swipe(this[0], {
|
||||
startSlide: cfg.startSlide,
|
||||
auto: cfg.auto,
|
||||
continuous: cfg.continuous,
|
||||
disableScroll: cfg.disableScroll,
|
||||
stopPropagation: cfg.stopPropagation,
|
||||
callback: cfg.callback,
|
||||
transitionEnd: cfg.transitionEnd
|
||||
});
|
||||
|
||||
$(window).on("resize", function() {
|
||||
init();
|
||||
});
|
||||
|
||||
if(count > 0 && mySwipe) {
|
||||
$btns.on("click", function() {
|
||||
if($(this).hasClass(""+cfg.btnActive+""))
|
||||
return false;
|
||||
|
||||
idx = $btns.index($(this));
|
||||
mySwipe.slide(idx);
|
||||
});
|
||||
}
|
||||
}
|
||||
}(jQuery));
|
||||
|
||||
$(function() {
|
||||
$("#sbest_list").BestSlide({
|
||||
wrap: ".slide-wrap",
|
||||
slides: ".slide-wrap > ul",
|
||||
buttons: ".bst_silde_btn > button",
|
||||
btnActive: "bst_sl",
|
||||
startSlide: 0,
|
||||
auto: 0
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
42
theme/rb.basic/mobile/skin/shop/basic/list.sort.skin.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sct_sort_href = $_SERVER['SCRIPT_NAME'].'?';
|
||||
|
||||
if($ca_id) {
|
||||
$shop_category_url = shop_category_url($ca_id);
|
||||
$sct_sort_href = (strpos($shop_category_url, '?') === false) ? $shop_category_url.'?1=1' : $shop_category_url;
|
||||
} else if($ev_id) {
|
||||
$sct_sort_href .= 'ev_id='.$ev_id;
|
||||
}
|
||||
|
||||
if($skin)
|
||||
$sct_sort_href .= '&skin='.$skin;
|
||||
$sct_sort_href .= '&sort=';
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 상품 정렬 선택 시작 { -->
|
||||
<section id="sct_sort">
|
||||
<h2>상품 정렬</h2>
|
||||
<button type="button" class="btn_sort">상품정렬 <i class="fa fa-caret-down" aria-hidden="true"></i></button>
|
||||
<ul>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc" >낮은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc">높은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_name&sortodr=asc">상품명순</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- } 상품 정렬 선택 끝 -->
|
||||
|
||||
<script>
|
||||
$(".btn_sort").click(function(){
|
||||
$("#sct_sort ul").show();
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#sct_sort ul");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
</script>
|
||||
12
theme/rb.basic/mobile/skin/shop/basic/list.sub.skin.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<ul id="sct_lst">
|
||||
<li><button type="button" class="sct_lst_view sct_lst_list"><i class="fa fa-th-list" aria-hidden="true"></i><span class="sound_only">리스트뷰</span></button></li>
|
||||
<li><button type="button" class="sct_lst_view sct_lst_gallery"><i class="fa fa-th-large" aria-hidden="true"></i><span class="sound_only">갤러리뷰</span></button></li>
|
||||
</ul>
|
||||
|
||||
36
theme/rb.basic/mobile/skin/shop/basic/listcategory.skin.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$str = '';
|
||||
$exists = false;
|
||||
|
||||
$ca_id_len = strlen($ca_id);
|
||||
$len2 = $ca_id_len + 2;
|
||||
$len4 = $ca_id_len + 4;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_order, ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
|
||||
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
|
||||
|
||||
$str .= '<li><a href="'.shop_category_url($row['ca_id']).'">'.$row['ca_name'].' <span class="prd_cnt">'.$row2['cnt'].'</span></a></li>';
|
||||
$exists = true;
|
||||
}
|
||||
|
||||
if ($exists) {
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 상품분류 1 시작 { -->
|
||||
<aside id="sct_ct_1" class="sct_ct">
|
||||
<h2>현재 상품 분류와 관련된 분류</h2>
|
||||
<ul>
|
||||
<?php echo $str; ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 상품분류 1 끝 -->
|
||||
|
||||
<?php }
|
||||
145
theme/rb.basic/mobile/skin/shop/basic/main.10.skin.php
Normal file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
// 장바구니 또는 위시리스트 ajax 스크립트
|
||||
add_javascript('<script src="'.G5_THEME_JS_URL.'/theme.shop.list.js"></script>', 10);
|
||||
?>
|
||||
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 메인상품진열 10 시작 { -->
|
||||
<?php
|
||||
$li_width = intval(100 / $this->list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
$i=0;
|
||||
|
||||
foreach((array) $list as $row){
|
||||
|
||||
if( empty($row) ) continue;
|
||||
|
||||
$item_link_href = shop_item_url($row['it_id']);
|
||||
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
|
||||
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
|
||||
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_10\">\n";
|
||||
}
|
||||
}
|
||||
if($i % $this->list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
echo "<li class=\"sct_li{$li_clear}\"$li_width_style><div class=\"li_wr is_view_type_list\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>";
|
||||
|
||||
// 품절
|
||||
if ($is_soldout) {
|
||||
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// 사용후기 평점표시
|
||||
if ($this->view_star && $star_score) {
|
||||
echo "<div class=\"sct_star\"><img src=\"".G5_SHOP_URL."/img/s_star".$star_score.".png\" alt=\"별점 ".$star_score."점\" class=\"sit_star\"></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name'])."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_basic && $row['it_basic']) {
|
||||
echo "<div class=\"sct_basic\">".stripslashes($row['it_basic'])."</div>\n";
|
||||
}
|
||||
if ($this->view_it_price) {
|
||||
echo "<div class=\"sct_cost\">\n";
|
||||
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// 위시리스트 + 공유 버튼 시작 {
|
||||
echo "<div class=\"sct_op_btn\">\n";
|
||||
echo "<button type=\"button\" class=\"btn_wish\" data-it_id=\"{$row['it_id']}\"><span class=\"sound_only\">위시리스트</span><i class=\"fa fa-heart-o\" aria-hidden=\"true\"></i></button>\n";
|
||||
if ($this->view_sns) {
|
||||
echo "<button type=\"button\" class=\"btn_share\"><span class=\"sound_only\">공유하기</span><i class=\"fa fa-share-alt\" aria-hidden=\"true\"></i></button>\n";
|
||||
}
|
||||
echo "<div class=\"sct_sns_wrap\">";
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = $item_link_href;
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo "<h3>SNS 공유</h3>";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
|
||||
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
|
||||
echo "<button type=\"button\" class=\"sct_sns_cls\"><span class=\"sound_only\">닫기</span><i class=\"fa fa-times\" aria-hidden=\"true\"></i></button>";
|
||||
echo "</div>\n";
|
||||
}
|
||||
echo "<div class=\"sct_sns_bg\"></div>";
|
||||
echo "</div>\n";
|
||||
echo "</div>\n";
|
||||
// } 위시리스트 + 공유 버튼 끝
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
echo "</li>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
|
||||
<script>
|
||||
//SNS 공유
|
||||
$(function (){
|
||||
$(".btn_share").on("click", function() {
|
||||
$(this).parent("div").children(".sct_sns_wrap").show();
|
||||
});
|
||||
$('.sct_sns_bg, .sct_sns_cls').click(function(){
|
||||
$('.sct_sns_wrap').hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
120
theme/rb.basic/mobile/skin/shop/basic/main.20.skin.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
// 장바구니 또는 위시리스트 ajax 스크립트
|
||||
add_javascript('<script src="'.G5_THEME_JS_URL.'/theme.shop.list.js"></script>', 10);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.fancylist.js"></script>
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 메인상품진열 20 시작 { -->
|
||||
<?php
|
||||
$li_width = intval(100 / $this->list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
$i=0;
|
||||
|
||||
foreach((array) $list as $row){
|
||||
|
||||
if( empty($row) ) continue;
|
||||
|
||||
$item_link_href = shop_item_url($row['it_id']);
|
||||
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
|
||||
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
|
||||
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_20\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
if($i % $this->list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
echo "<li class=\"sct_li{$li_clear}\">\n";
|
||||
echo "<div class=\"li_wr\" style=\"padding-left:{$this->img_width}px;height:{$this->img_height}px\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>";
|
||||
|
||||
// 품절
|
||||
if ($is_soldout) {
|
||||
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// 사용후기 평점표시
|
||||
if ($this->view_star && $star_score) {
|
||||
echo "<div class=\"sct_star\"><img src=\"".G5_SHOP_URL."/img/s_star".$star_score.".png\" alt=\"별점 ".$star_score."점\" class=\"sit_star\"></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name'])."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<div class=\"sct_cost\">\n";
|
||||
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = $item_link_href;
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
echo "<div class=\"sct_sns\" style=\"top:{$sns_top}px\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
|
||||
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo "</li>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 20 끝 -->
|
||||
|
||||
135
theme/rb.basic/mobile/skin/shop/basic/main.30.skin.php
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
add_javascript('<script src="'.G5_JS_URL.'/jquery.bxslider.js"></script>', 10);
|
||||
|
||||
// 장바구니 또는 위시리스트 ajax 스크립트
|
||||
add_javascript('<script src="'.G5_THEME_JS_URL.'/theme.shop.list.js"></script>', 10);
|
||||
?>
|
||||
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
<div class="st_30_wr">
|
||||
<!-- 메인상품진열 30 시작 { -->
|
||||
<?php
|
||||
$li_width = intval(100 / $this->list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
$i=0;
|
||||
|
||||
foreach((array) $list as $row){
|
||||
|
||||
if( empty($row) ) continue;
|
||||
|
||||
$item_link_href = shop_item_url($row['it_id']);
|
||||
$star_score = $row['it_use_avg'] ? (int) get_star($row['it_use_avg']) : '';
|
||||
$is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크
|
||||
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_30\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
if($i % $this->list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
echo "<li class=\"sct_li{$li_clear}\">\n";
|
||||
echo "<div class=\"li_wr\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>";
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
// 품절
|
||||
if ($is_soldout) {
|
||||
echo '<span class="shop_icon_soldout"><span class="soldout_txt">SOLD OUT</span></span>';
|
||||
}
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "<div class=\"sct_txt_wr\">\n";
|
||||
|
||||
// 사용후기 평점표시
|
||||
if ($this->view_star && $star_score) {
|
||||
echo "<div class=\"sct_star\"><img src=\"".G5_SHOP_URL."/img/s_star".$star_score.".png\" alt=\"별점 ".$star_score."점\" class=\"sit_star\"></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_txt\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name'])."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a></div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<div class=\"sct_cost\">\n";
|
||||
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
$sns_top = $this->img_height + 10;
|
||||
$sns_url = $item_link_href;
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
echo "<div class=\"sct_sns\" style=\"top:{$sns_top}px\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
|
||||
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
echo "</li>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 30 끝 -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('.sct_30').bxSlider({
|
||||
slideWidth: 200,
|
||||
minSlides: 2,
|
||||
maxSlides: 8,
|
||||
slideMargin: 5,
|
||||
controls: false
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
80
theme/rb.basic/mobile/skin/shop/basic/main.event.skin.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 이벤트 정보
|
||||
$hsql = " select ev_id, ev_subject, ev_subject_strong from {$g5['g5_shop_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
|
||||
if(sql_num_rows($hresult)) {
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
add_javascript('<script src="'.G5_JS_URL.'/jquery.bxslider.js"></script>', 10);
|
||||
?>
|
||||
<div id="sev">
|
||||
<h2>이벤트</h2>
|
||||
<ul class="sev_slide">
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo '<li class="ev_li"><div class="ev_li_wr">';
|
||||
$href = G5_SHOP_URL.'/event.php?ev_id='.$row['ev_id'];
|
||||
|
||||
$event_img = G5_DATA_PATH.'/event/'.$row['ev_id'].'_m'; // 이벤트 이미지
|
||||
|
||||
if (file_exists($event_img)) { // 이벤트 이미지가 있다면 이미지 출력
|
||||
echo '<a href="'.$href.'" class="sev_img"><img src="'.G5_DATA_URL.'/event/'.$row['ev_id'].'_m" alt="'.$row['ev_subject'].'"></a>'.PHP_EOL;
|
||||
} else { // 없다면 텍스트 출력
|
||||
echo '<a href="'.$href.'" class="sev_text">';
|
||||
if ($row['ev_subject_strong']) echo '<strong>';
|
||||
echo $row['ev_subject'];
|
||||
if ($row['ev_subject_strong']) echo '</strong>';
|
||||
echo '</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 이벤트 상품
|
||||
$sql2 = " select b.*
|
||||
from `{$g5['g5_shop_event_item_table']}` a left join `{$g5['g5_shop_item_table']}` b on (a.it_id = b.it_id)
|
||||
where a.ev_id = '{$row['ev_id']}'
|
||||
order by it_id desc
|
||||
limit 0, 3 ";
|
||||
$result2 = sql_query($sql2);
|
||||
for($k=1; $row2=sql_fetch_array($result2); $k++) {
|
||||
if($k == 1) {
|
||||
echo '<ul class="ev_prd">'.PHP_EOL;
|
||||
}
|
||||
|
||||
$item_href = shop_item_url($row2['it_id']);
|
||||
|
||||
echo '<li class="ev_prd_'.$k.'">'.PHP_EOL;
|
||||
echo '<span class="ev_prd_img">'.get_it_image($row2['it_id'], 300, 300, get_text($row2['it_name'])).'</span>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
}
|
||||
if($k > 1) {
|
||||
echo '</ul>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if($k == 1) {
|
||||
echo '<ul class="ev_prd">'.PHP_EOL;
|
||||
echo '<li class="no_prd">등록된 상품이 없습니다.</li>'.PHP_EOL;
|
||||
echo '</ul>'.PHP_EOL;
|
||||
}
|
||||
|
||||
echo '</div></li>'.PHP_EOL;
|
||||
|
||||
}
|
||||
if ($i==0)
|
||||
echo '<li id="sev_empty">이벤트 없음</li>'.PHP_EOL;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('.sev_slide').bxSlider({
|
||||
minSlides: 1,
|
||||
maxSlides: 1,
|
||||
slideMargin:10,
|
||||
controls: false
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
117
theme/rb.basic/mobile/skin/shop/basic/mainbanner.10.skin.php
Normal file
@ -0,0 +1,117 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
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.min.css">', 10);
|
||||
|
||||
$max_width = $max_height = 0;
|
||||
$bn_first_class = ' class="bn_first"';
|
||||
$bn_slide_btn = '';
|
||||
$bn_sl = ' class="bn_sl"';
|
||||
$main_banners = array();
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$main_banners[] = $row;
|
||||
|
||||
if ($i==0) echo '<div id="main_bn"><div class="main_banner_owl owl-carousel">'.PHP_EOL;
|
||||
//print_r2($row);
|
||||
// 테두리 있는지
|
||||
$bn_border = ($row['bn_border']) ? ' class="sbn_border"' : '';;
|
||||
// 새창 띄우기인지
|
||||
$bn_new_win = ($row['bn_new_win']) ? ' target="_blank"' : '';
|
||||
|
||||
$bimg = G5_DATA_PATH.'/banner/'.$row['bn_id'];
|
||||
if (file_exists($bimg))
|
||||
{
|
||||
$banner = '';
|
||||
$size = getimagesize($bimg);
|
||||
|
||||
if($size[2] < 1 || $size[2] > 16)
|
||||
continue;
|
||||
|
||||
if($max_width < $size[0])
|
||||
$max_width = $size[0];
|
||||
|
||||
if($max_height < $size[1])
|
||||
$max_height = $size[1];
|
||||
|
||||
echo '<div class="item">';
|
||||
if ($row['bn_url'][0] == '#')
|
||||
$banner .= '<a href="'.$row['bn_url'].'">';
|
||||
else if ($row['bn_url'] && $row['bn_url'] != 'http://') {
|
||||
$banner .= '<a href="'.G5_SHOP_URL.'/bannerhit.php?bn_id='.$row['bn_id'].'"'.$bn_new_win.'>';
|
||||
}
|
||||
echo $banner.'<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$size[0].'" alt="'.get_text($row['bn_alt']).'"'.$bn_border.'>';
|
||||
if($banner)
|
||||
echo '</a>'.PHP_EOL;
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if ($i > 0) {
|
||||
echo '</div>'.PHP_EOL;
|
||||
|
||||
echo '<div class="btn_wr"><a href="#" class="pager-prev"><i class="fa fa-angle-left"></i></a><div id="slide-counter"></div><a href="#" class="pager-next"><i class="fa fa-angle-right"></i></a> </div>'.PHP_EOL;
|
||||
echo '</div>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
|
||||
<script>
|
||||
jQuery(function($){
|
||||
function owl_show_page(event){
|
||||
|
||||
if (event.item) {
|
||||
var count = event.item.count,
|
||||
item_index = event.item.index,
|
||||
index = 1;
|
||||
|
||||
if( is_loop ){
|
||||
index = ( 1 + ( event.property.value - Math.ceil( event.item.count / 2 ) ) % event.item.count || 0 ) || 1;
|
||||
} else {
|
||||
index = event.item.index ? event.item.index + 1 : 1;
|
||||
}
|
||||
|
||||
$(event.target).next(".btn_wr").find(".slide-index").text(index);
|
||||
}
|
||||
}
|
||||
|
||||
var is_loop = true,
|
||||
item_totals = $('.main_banner_owl .item').length;
|
||||
|
||||
if( item_totals ){
|
||||
$('#slide-counter').prepend('<strong class="slide-index current-index"></strong> / ')
|
||||
.append('<span class="total-slides">'+item_totals+'</span>');
|
||||
}
|
||||
|
||||
var owl = $('.main_banner_owl').owlCarousel({
|
||||
items:1,
|
||||
loop:is_loop,
|
||||
margin:0,
|
||||
nav:false,
|
||||
autoHeight:true,
|
||||
autoplay:true,
|
||||
autoplayTimeout:5000, // 5000은 5초
|
||||
autoplayHoverPause:true,
|
||||
dots:false,
|
||||
onChanged:function(event){
|
||||
owl_show_page(event);
|
||||
},
|
||||
});
|
||||
|
||||
$(document).on("click", ".btn_wr .pager-next", function(e){
|
||||
e.preventDefault();
|
||||
owl.trigger('next.owl.carousel');
|
||||
});
|
||||
|
||||
$(document).on("click", ".btn_wr .pager-prev", function(e){
|
||||
e.preventDefault();
|
||||
owl.trigger('prev.owl.carousel');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
38
theme/rb.basic/mobile/skin/shop/basic/navigation.skin.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($ca_id)
|
||||
{
|
||||
$str = $bar = "";
|
||||
$len = strlen($ca_id) / 2;
|
||||
for ($i=1; $i<=$len; $i++)
|
||||
{
|
||||
$code = substr($ca_id,0,$i*2);
|
||||
|
||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$code' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$sct_here = '';
|
||||
if ($ca_id == $code) // 현재 분류와 일치하면
|
||||
$sct_here = 'sct_here';
|
||||
|
||||
if ($i != $len) // 현재 위치의 마지막 단계가 아니라면
|
||||
$sct_bg = 'sct_bg';
|
||||
else $sct_bg = '';
|
||||
|
||||
$str .= $bar.'<a href="'.shop_category_url($code).'" class="'.$sct_here.' '.$sct_bg.'">'.$row['ca_name'].'</a>';
|
||||
}
|
||||
}
|
||||
else
|
||||
$str = $g5['title'];
|
||||
|
||||
//if ($it_id) $str .= " > $it[it_name]";
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<div id="sct_location">
|
||||
<a href='<?php echo G5_SHOP_URL; ?>/' class="sct_bg">Home</a>
|
||||
<?php echo $str; ?>
|
||||
</div>
|
||||
37
theme/rb.basic/mobile/skin/shop/basic/personalpay.skin.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 개인결제진열 시작 { -->
|
||||
<?php
|
||||
$li_width = intval(100 / $list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
if ($i == 0) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"sct sct_pv\">\n";
|
||||
}
|
||||
|
||||
if($i % $list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
$href = G5_SHOP_URL.'/personalpayform.php?pp_id='.$row['pp_id'].'&page='.$page;
|
||||
?>
|
||||
<li class="sct_li<?php echo $li_clear; ?>"<?php echo $li_width_style; ?>>
|
||||
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_MSHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
|
||||
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
|
||||
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 개인결제진열 끝 -->
|
||||
95
theme/rb.basic/mobile/skin/shop/basic/relation.10.skin.php
Normal file
@ -0,0 +1,95 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL ?>/jquery.fancylist.js"></script>
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js" async></script>
|
||||
<script>
|
||||
var kakao_javascript_apikey = "<?php echo $config['cf_kakao_js_apikey']; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 상품진열 10 시작 { -->
|
||||
<?php
|
||||
$li_width = intval(100 / $this->list_mod);
|
||||
$li_width_style = ' style="width:'.$li_width.'%;"';
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$item_link_href = shop_item_url($row['it_id']);
|
||||
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"sct_wrap\" class=\"srl_10\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
if($i % $this->list_mod == 0)
|
||||
$li_clear = ' sct_clear';
|
||||
else
|
||||
$li_clear = '';
|
||||
|
||||
echo "<li class=\"sct_li{$li_clear}\"$li_width_style><div class=\"li_wr\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a></div>\n";
|
||||
}
|
||||
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<div class=\"sct_id\"><".stripslashes($row['it_id'])."></div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$item_link_href}\" class=\"sct_txt\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo stripslashes($row['it_name'])."\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<div class=\"sct_cost\">\n";
|
||||
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "</div></li>\n";
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 관련상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
|
||||
<script>
|
||||
$('.srl_10').bxSlider({
|
||||
slideWidth: 200,
|
||||
minSlides: 2,
|
||||
maxSlides: 8,
|
||||
slideMargin: 5,
|
||||
controls: false,
|
||||
infiniteLoop: false
|
||||
});
|
||||
</script>
|
||||
|
||||
134
theme/rb.basic/mobile/skin/shop/basic/search.skin.php
Normal file
@ -0,0 +1,134 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
<!-- 검색 시작 { -->
|
||||
<div id="ssch">
|
||||
|
||||
<div id="ssch_ov">
|
||||
검색 결과 <b><?php echo $total_count; ?></b>건
|
||||
</div>
|
||||
|
||||
<!-- 상세검색 항목 시작 { -->
|
||||
<div id="ssch_frm">
|
||||
<form name="frmdetailsearch">
|
||||
<input type="hidden" name="qsort" id="qsort" value="<?php echo $qsort ?>">
|
||||
<input type="hidden" name="qorder" id="qorder" value="<?php echo $qorder ?>">
|
||||
<input type="hidden" name="qcaid" id="qcaid" value="<?php echo $qcaid ?>">
|
||||
<div class="sch_wr">
|
||||
<label for="ssch_q" class="sound_only">검색어</label>
|
||||
<input type="text" name="q" value="<?php echo $q; ?>" id="ssch_q" class="frm_input" maxlength="30">
|
||||
<button type="submit" class="sch_submit"><span class="sound_only">검색</span><i class="fa fa-search"></i></button>
|
||||
<p>
|
||||
상세검색을 선택하지 않거나, 상품가격을 입력하지 않으면 전체에서 검색합니다.<br>
|
||||
검색어는 최대 30글자까지, 여러개의 검색어를 공백으로 구분하여 입력 할수 있습니다.
|
||||
</p>
|
||||
</div>
|
||||
<div class="chk_box">
|
||||
<strong class="sound_only">검색범위</strong>
|
||||
<input type="checkbox" name="qname" id="ssch_qname" <?php echo $qname_check?'checked="checked"':'';?> class="selec_chk"> <label for="ssch_qname"><span></span>상품명</label>
|
||||
<input type="checkbox" name="qexplan" id="ssch_qexplan" <?php echo $qexplan_check?'checked="checked"':'';?> class="selec_chk"> <label for="ssch_qexplan"><span></span> <span class="sound_only">상품</span>설명</label>
|
||||
<input type="checkbox" name="qbasic" id="ssch_qbasic" value="1" <?php echo $qbasic_check?'checked="checked"':'';?> class="selec_chk"> <label for="ssch_qbasic"><span></span> 기본설명</label>
|
||||
<input type="checkbox" name="qid" id="ssch_qid" <?php echo $qid_check?'checked="checked"':'';?> class="selec_chk"> <label for="ssch_qid"><span></span><span class="sound_only"> 상품</span>코드</label>
|
||||
<br>
|
||||
<strong class="sound_only">상품가격 (원)</strong>
|
||||
<label for="ssch_qfrom" class="sound_only">최소 가격</label>
|
||||
<input type="text" name="qfrom" value="<?php echo $qfrom; ?>" id="ssch_qfrom" class="frm_input" size="6"> 원 ~
|
||||
<label for="ssch_qto" class="sound_only">최대 가격</label>
|
||||
<input type="text" name="qto" value="<?php echo $qto; ?>" id="ssch_qto" class="frm_input" size="6"> 원<br>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- } 상세검색 항목 끝 -->
|
||||
|
||||
<!-- 검색된 분류 시작 { -->
|
||||
<div id="ssch_cate">
|
||||
<ul>
|
||||
<?php
|
||||
echo '<li><a href="#" onclick="set_ca_id(\'\'); return false;">전체분류 <span>'.$total_count.'</span></a></li>'.PHP_EOL;
|
||||
$total_cnt = 0;
|
||||
foreach( $categorys as $row ){
|
||||
echo "<li><a href=\"#\" onclick=\"set_ca_id('{$row['ca_id']}'); return false;\">{$row['ca_name']} <span>".$row['cnt']."</span></a></li>\n";
|
||||
$total_cnt += $row['cnt'];
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- } 검색된 분류 끝 -->
|
||||
<div id="ssch_sort">
|
||||
<button type="button" class="btn_sort">상품정렬 <i class="fa fa-caret-down" aria-hidden="true"></i> </button>
|
||||
<ul>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_sum_qty', 'desc'); return false;">판매많은순</a></li>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_price', 'asc'); return false;">낮은가격순</a></li>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_price', 'desc'); return false;">높은가격순</a></li>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_use_avg', 'desc'); return false;">평점높은순</a></li>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_use_cnt', 'desc'); return false;">후기많은순</a></li>
|
||||
<li><a href="#" class="btn01" onclick="set_sort('it_update_time', 'desc'); return false;">최근등록순</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 검색결과 시작 { -->
|
||||
<div>
|
||||
<?php
|
||||
// 리스트 유형별로 출력
|
||||
if (isset($list) && is_object($list) && method_exists($list, 'run')) {
|
||||
$list->set_is_page(true);
|
||||
$list->set_mobile(true);
|
||||
$list->set_view('it_img', true);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
}
|
||||
else
|
||||
{
|
||||
$i = 0;
|
||||
$error = '<p class="sct_nofile">'.$list_file.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
{
|
||||
echo '<div>'.$error.'</div>';
|
||||
}
|
||||
|
||||
$query_string = 'qname='.$qname.'&qexplan='.$qexplan.'&qid='.$qid.'&qbasic='.$qbasic;
|
||||
if($qfrom && $qto) $query_string .= '&qfrom='.$qfrom.'&qto='.$qto;
|
||||
$query_string .= '&qcaid='.$qcaid.'&q='.urlencode($q);
|
||||
$query_string .='&qsort='.$qsort.'&qorder='.$qorder;
|
||||
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$query_string.'&page=');
|
||||
?>
|
||||
</div>
|
||||
<!-- } 검색결과 끝 -->
|
||||
|
||||
</div>
|
||||
<!-- } 검색 끝 -->
|
||||
|
||||
<script>
|
||||
function set_sort(qsort, qorder)
|
||||
{
|
||||
var f = document.frmdetailsearch;
|
||||
f.qsort.value = qsort;
|
||||
f.qorder.value = qorder;
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function set_ca_id(qcaid)
|
||||
{
|
||||
var f = document.frmdetailsearch;
|
||||
f.qcaid.value = qcaid;
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
$(".btn_sort").click(function(){
|
||||
$("#ssch_sort ul").show();
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#ssch_sort ul");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
|
||||
</script>
|
||||
713
theme/rb.basic/mobile/skin/shop/basic/style.css
Normal file
@ -0,0 +1,713 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* 오늘 본 상품 */
|
||||
#stv {position:relative;margin:10px 0;background:#fff;border-bottom:1px solid #e1e1e1}
|
||||
#stv h2 {border-bottom:1px solid #efefef;padding:10px;line-height:30px;font-size:1.077em}
|
||||
#stv_ul {padding:10px}
|
||||
#stv_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#stv_ul li {float:left;width:20%;text-align:center}
|
||||
#stv_ul li img {max-width:100%;height:auto}
|
||||
#stv_pg {display:inline-block;text-align:center;margin:0 0 0 5px;line-height:20px;font-weight:normal;font-size:0.929em;color:#999}
|
||||
.stv_item {display:none;padding:3px;word-break:break-all}
|
||||
#up {position:absolute;top:0px;right:30px;height:50px;width:30px;border:0;background:none;color:#ccc}
|
||||
#down {position:absolute;top:0px;right:0px;height:50px;width:30px;border:0;background:none;color:#ccc}
|
||||
#stv .li_empty {text-align:center;padding:50px 0;color:#666}
|
||||
|
||||
/*메인배너*/
|
||||
#main_bn {position:relative;text-align:center}
|
||||
#main_bn .slide-wrap{display:none}
|
||||
#main_bn img {max-width:100%;height:auto}
|
||||
#main_bn .btn_wr {background:rgba(0,0,0,0.5);display:inline-block;position:absolute;z-index:1;right:15px;bottom:15px;border-radius:30px;padding:0;width:100px;line-height:30px}
|
||||
#main_bn .btn_wr .pager-prev {float:left;display:inline-block;padding:0;color:#fff;width:25px}
|
||||
#main_bn .btn_wr .pager-next {float:right;display:inline-block;padding:0;color:#fff;width:25px}
|
||||
#main_bn #slide-counter {margin:0;width:50px;float:left;display:inline-block;padding:0;color:#fff}
|
||||
|
||||
/*사이드배너*/
|
||||
#sbn_side {text-align:center;position:relative;margin:10px 0}
|
||||
#sbn_side h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sbn_side img {max-width:100%;height:auto}
|
||||
#sbn_side .bx-pager {position:absolute;bottom:5px;left:0;width:100%}
|
||||
#sbn_side .bx-pager .bx-pager-item {display:inline-block;margin:5px}
|
||||
#sbn_side .bx-pager .bx-pager-link {display:block;width:8px;height:8px;text-indent:-999px;overflow:hidden;background:#fff;opacity:0.5;border-radius:5px}
|
||||
#sbn_side .bx-pager .active {opacity:1}
|
||||
|
||||
/*쇼핑몰 이벤트 */
|
||||
#sev {position:relative;margin:20px 0;text-align:center}
|
||||
#sev h2 {font-size:1.25em;text-align:left;margin:40px 10px 10px;line-height:1em}
|
||||
#sev .bx-wrapper {margin:0 10px}
|
||||
#sev ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sev .ev_li {width:100%;height:100%}
|
||||
#sev .ev_li .sev_img {display:grid}
|
||||
#sev .ev_li .sev_img img {width:100%;height:auto}
|
||||
#sev .ev_prd {border:1px solid #eaebed;border-bottom:1px solid #d8d8d8;text-align:center;padding:15px 10px;background:#fff}
|
||||
#sev .ev_prd li {position:relative;display:inline-block;width:33.333%;float:left;padding:0 5px;text-align:center}
|
||||
#sev .ev_prd li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sev .ev_prd .ev_prd_tit {display:block;color:#000;font-size:1.1em;margin-bottom:5px}
|
||||
#sev .ev_prd .ev_prd_img img {width:100%;height:auto}
|
||||
#sev .ev_prd .ev_txt_wr {float:left;max-width:139px;margin-left:10px}
|
||||
#sev .ev_prd .ev_prd_price {font-weight:bold;display:block;margin:5px 0 10px;font-size:1.25em;font-weight:bold}
|
||||
#sev .ev_prd .sev_more {color:#3a8afd;background:#fff;display:block;text-align:center}
|
||||
|
||||
#sev .bx-pager {position:absolute;top:0;right:10px}
|
||||
#sev .bx-pager .bx-pager-item {display:inline-block;margin:5px}
|
||||
#sev .bx-pager .bx-pager-link {display:block;width:8px;height:8px;text-indent:-999px;overflow:hidden;background:#adadad;border-radius:5px}
|
||||
#sev .bx-pager .active {background:#000}
|
||||
|
||||
#sev_list #sct_sort {position:relative;background:#fff;border-bottom:1px solid #e5e5e5}
|
||||
|
||||
/* ##### maint.(nn).skin.php, list.(nn).skin.php 공통 적용 시작 ##### */
|
||||
/* 공통 */
|
||||
.sct_wrap {margin:10px 0 30px;zoom:1}
|
||||
.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_wrap h2 {font-size:1.25em;margin:20px 10px 10px}
|
||||
|
||||
.sct {margin:10px 0;padding:0;list-style:none;zoom:1;clear:both}
|
||||
.sct:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_li {position:relative}
|
||||
.sct_noitem {padding:50px 0;text-align:center}
|
||||
.sct_icon img {margin:0 1px 0 0}
|
||||
.sct_sns a {display:inline-block;margin:0 2px;width:28px;height:28px;line-height:28px;border-radius:3px;font-size:0;text-align:center}
|
||||
.share-facebook {background:#415b92}
|
||||
.share-twitter {background:#35b3dc}
|
||||
.share-kakaotalk {background:#ffeb00}
|
||||
.sct_sns img {width:20px;height:auto;vertical-align:middle}
|
||||
.sct_sns button {margin:0 4px 0 0;padding:0;border:0}
|
||||
|
||||
.shop_icon {display:inline-block;color:#fff;line-height:20px;padding:0 5px;font-size:0.92em;margin:1px;border-radius:2px}
|
||||
.shop_icon_1 {background:#3ec1d3}
|
||||
.shop_icon_2 {background:#ffb722}
|
||||
.shop_icon_3 {background:#2dd49f}
|
||||
.shop_icon_4 {background:#556ee6}
|
||||
.shop_icon_5 {background:#ff5081}
|
||||
.shop_icon_coupon {background:#b169e1}
|
||||
|
||||
.mli_btn button {background:url(img/mainlist_btn.gif) no-repeat;width:30px;height:30px;border:none;text-indent:-9999px}
|
||||
.mli_btn button.mli_pre {position:absolute;top:0;left:10px}
|
||||
.mli_btn button.mli_next {background-position:-33px 0;position:absolute;top:0;right:10px}
|
||||
|
||||
/* 상품 목록 스킨 10 */
|
||||
.sct_10 {margin:10px}
|
||||
.sct_10 .sct_li {float:left;text-align:left;padding:5px;margin-bottom:10px}
|
||||
.sct_10 .sct_li .li_wr {position:relative}
|
||||
.sct_10 .sct_img {position:relative;margin-bottom:10px;font-size:0}
|
||||
.sct_10 .sct_img img {width:100%;height:auto}
|
||||
.sct_10 .sct_clear {clear:both}
|
||||
.sct_10 .sct_id {margin:5px 0;font-size:0.92em;color:#666}
|
||||
.sct_10 .sct_txt {font-size:1.083em;margin:0 0 10px;padding:5px 0 10px;line-height:1.3em;border-bottom:1px solid #e3e6e9}
|
||||
.sct_10 .sct_basic {margin:10px 0;color:#6e7f88}
|
||||
.sct_10 .sct_cost {margin:10px 0;font-weight:bold}
|
||||
.sct_10 .sct_sns_wrap {display:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999}
|
||||
.sct_10 .sct_sns {position:absolute;top:50%;left:50%;background:#fff;text-align:center;width:250px;height:160px;margin-left:-125px;margin-top:-80px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:1px 1px 18px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 18px rgba(0,0,0,0.2);box-shadow:1px 1px 18px rgba(0,0,0,0.2);border:1px solid #dde7e9;background:#fff;border-radius:3px}
|
||||
.sct_10 .sct_sns h3 {padding:15px;border-bottom:1px solid #e8e8e8;text-align:left;line-height:20px;font-size:1.077em}
|
||||
.sct_10 .sct_sns a {display:inline-block;border-radius:50%;width:50px;height:50px;line-height:25px;text-align:center;padding:13px 0;margin:20px 5px}
|
||||
.sct_10 .sct_sns .share-facebook {background:#415b92}
|
||||
.sct_10 .sct_sns .share-twitter {background:#35b3dc}
|
||||
.sct_10 .sct_sns img {width:24px}
|
||||
.sct_10 .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%}
|
||||
.sct_10 .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff;margin:0;height:50px}
|
||||
|
||||
.li_wr .sct_img{position:relative}
|
||||
.shop_icon_soldout {position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);justify-content:center;display:flex;align-items:center;text-align:center;color:#fff;font-size:18px;font-weight:bold;letter-spacing:1px}
|
||||
|
||||
.sct_10 .sct_icon {margin:0 0 10px}
|
||||
.li_more {text-align:center}
|
||||
|
||||
.sct_10 .sct_op_btn {position:absolute;right:5px;bottom:0}
|
||||
.sct_10 .sct_op_btn>button {border:0;width:25px;height:20px;font-size:1.25em;text-align:center;color:#949494;background:transparent}
|
||||
|
||||
#item_load_msg {display:none}
|
||||
.li_more_btn {margin:10px}
|
||||
#btn_more_item {height:43px;width:100%;border:1px solid #ddd;font-size:1.167em;color:#282828;line-height:43px;background:none}
|
||||
|
||||
.sct_10_list li {border-bottom:1px solid #d9dde2;width:100%;padding:10px;text-align:left}
|
||||
.sct_10_list .li_wr {min-height:110px;padding-left:120px}
|
||||
.sct_10_list .sct_sns_wrap {display:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999}
|
||||
.sct_10_list .sct_sns {position:absolute;top:50%;left:50%;background:#fff;text-align:center;width:250px;height:160px;margin-left:-125px;margin-top:-80px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:1px 1px 18px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 18px rgba(0,0,0,0.2);box-shadow:1px 1px 18px rgba(0,0,0,0.2);border:1px solid #dde7e9;background:#fff;border-radius:3px}
|
||||
.sct_10_list .sct_sns h3 {padding:15px;border-bottom:1px solid #e8e8e8;text-align:left}
|
||||
.sct_10_list .sct_sns a {display:inline-block;border-radius:50%;width:50px;height:50px;line-height:25px;text-align:center;padding:13px 0;margin:20px 5px}
|
||||
.sct_10_list .sct_sns .share-facebook {background:#415b92}
|
||||
.sct_10_list .sct_sns .share-twitter {background:#35b3dc}
|
||||
.sct_10_list .sct_sns img {width:24px}
|
||||
.sct_10_list .sct_sns_bg {background:rgba(0,0,0,0.1);width:100%;height:100%}
|
||||
.sct_10_list .sct_sns_cls {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff}
|
||||
.sct_10_list .sct_img {position:absolute;top:0;left:0}
|
||||
.sct_10_list .sct_img img {width:110px;height:auto}
|
||||
.sct_10_list .li_wr {position:relative}
|
||||
.sct_10_list .sct_star {margin:5px 0}
|
||||
.sct_10_list .sct_id {margin:5px 10px;font-size:0.92em;color:#666}
|
||||
.sct_10_list .sct_txt {font-size:1.077em;margin:5px 0;line-height:1.5em}
|
||||
.sct_10_list .sct_cost {margin:5px 0;font-weight:bold}
|
||||
.sct_10_list .sct_op_btn {position:absolute;right:0px;bottom:0px}
|
||||
.sct_10_list .sct_op_btn>button {border:0;width:25px;height:20px;font-size:1.25em;text-align:center;color:#949494;background:transparent}
|
||||
.sct_10_list li .sct_basic {color:#6e7f88}
|
||||
|
||||
/* 상품 목록 스킨 20 */
|
||||
.sct_20 {background:#fff;border-bottom:1px solid #e5e5e5;padding:10px 0}
|
||||
.sct_20 .sct_li {width:100%;padding:10px;text-align:left}
|
||||
.sct_20 .sct_img {position:absolute;top:0;left:0}
|
||||
.sct_20 .li_wr {position:relative}
|
||||
.sct_20 .sct_star {margin:5px;padding-left:10px}
|
||||
.sct_20 .sct_id {margin:5px 10px;font-size:0.92em;color:#666}
|
||||
.sct_20 .sct_txt {font-size:1.077em;margin:5px 0;line-height:1.5em;padding-left:10px}
|
||||
.sct_20 .sct_cost {margin:5px 0;font-weight:bold;padding-left:10px}
|
||||
.sct_20 .sct_sns {margin:10px 0}
|
||||
.sct_20 .li_wr.is_view_type_list {padding-left:130px;height:130px}
|
||||
.sct_20 .li_wr.is_view_type_list .sct_img {width:130px}
|
||||
.sct_20 .li_wr.is_view_type_list .sct_img a {display:block}
|
||||
.sct_20 .li_wr.is_view_type_list img {width:100%;height:auto}
|
||||
|
||||
/* 상품 목록 스킨 30 */
|
||||
.st_30_wr {background:#fff;padding:10px;position:relative;border-bottom:1px solid #e5e5e5;webkit-text-size-adjust:100%}
|
||||
.sct_30 {margin:0}
|
||||
.sct_30 .sct_li {padding:10px}
|
||||
.sct_30 .sct_img img {max-width:100%;height:auto}
|
||||
.st_30_wr .bx-pager {position:absolute;top:-30px;right:10px}
|
||||
.st_30_wr .bx-pager .bx-pager-item {display:inline-block;margin:5px}
|
||||
.st_30_wr .bx-pager .bx-pager-link {display:block;width:8px;height:8px;text-indent:-999px;overflow:hidden;background:#adadad;border-radius:5px}
|
||||
.st_30_wr .bx-pager .active {background:#000}
|
||||
.sct_30 .sct_star {margin:10px 0 5px}
|
||||
.sct_30 .sct_txt {margin:5px 0;font-size:1.083em}
|
||||
.sct_30 .sct_cost {font-weight:bold}
|
||||
|
||||
/* 관련상품 목록 스킨 10 */
|
||||
#sit_rel {margin:20px 0;position:relative}
|
||||
#sit_rel h2 {margin:10px}
|
||||
#sit_rel .sct_wrap {background:#fff;border-bottom:1px solid #e5e5e5;padding-bottom:10px;margin:0}
|
||||
.srl_10 {}
|
||||
.srl_10:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.srl_10 li {}
|
||||
.srl_10 .li_wr {padding:10px}
|
||||
.srl_10 li img {width:100%;height:auto}
|
||||
.srl_10 .sct_txt {margin:10px 0}
|
||||
.srl_10 .sct_cost {font-weight:bold}
|
||||
|
||||
#sit_rel .bx-pager {position:absolute;top:0px;right:10px}
|
||||
#sit_rel .bx-pager-item {display:inline-block;margin:5px}
|
||||
#sit_rel .bx-pager-link {display:block;width:8px;height:8px;text-indent:-999px;overflow:hidden;background:#adadad;border-radius:5px}
|
||||
#sit_rel .bx-pager .active {background:#000}
|
||||
|
||||
/* 베스트상품 스킨 10 */
|
||||
#best_item {margin:10px 0;overflow:hidden;position:relative}
|
||||
#best_item h2 {font-size:1.25em;margin:10px}
|
||||
#best_item #sbest_list {width:100%;overflow:hidden}
|
||||
#best_item .slide-wrap {margin:0px;overflow:hidden;position:relative;top:0;left:0;float:left}
|
||||
#best_item .slide-wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#best_item .sct_best {width:100%;background:#fff;border-bottom:1px solid #e5e5e5;padding:10px 0;position:relative;padding:0;float:left}
|
||||
#best_item .best_on {}
|
||||
|
||||
.sct_best .sct_li {position:relative;float:left;padding:10px}
|
||||
.sct_best .sct_last {margin:0 0 15px !important}
|
||||
.sct_best .sct_clear {clear:both;margin-left:0}
|
||||
.sct_best .sct_a {display:block;position:relative;text-decoration:none;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|
||||
.sct_best .sct_txt .sct_a {margin:0 0 5px}
|
||||
.sct_best .sct_a img {width:100%;height:auto}
|
||||
.sct_best .sct_id {display:block;margin:0 0 5px}
|
||||
.sct_best .sct_basic {margin:0 0 10px}
|
||||
.sct_best .sct_cost {display:block;margin:0 0 10px;font-size:0.917em}
|
||||
.sct_best .sct_icon {margin:0 0 10px}
|
||||
.sct_best .sct_sns {margin:15px 0 0}
|
||||
.sct_best .sct_img {position:relative;margin:0 5px 5px}
|
||||
|
||||
.bst_silde_btn {position:absolute;top:10px;right:10px}
|
||||
.bst_silde_btn button {border:0;width:8px;height:8px;text-indent:-999px;overflow:hidden;background:#adadad;border-radius:5px;margin:3px}
|
||||
.bst_silde_btn button.bst_sl {background:#000}
|
||||
|
||||
/* 개인결제 목록 */
|
||||
#sct_pv {margin:10px 5px}
|
||||
.sct_pv {margin:10px 0}
|
||||
.sct_pv .sct_li {position:relative;float:left;position:relative;float:left;margin-bottom:10px}
|
||||
.sct_pv .sct_img {padding:0 5px}
|
||||
.sct_pv .sct_img a {}
|
||||
.sct_pv .sct_img img {width:100%}
|
||||
.sct_pv .sct_txt {padding:0 5px}
|
||||
.sct_pv .sct_last {margin:0 0 15px !important}
|
||||
.sct_pv .sct_clear {clear:both}
|
||||
.sct_pv .sct_a {display:block;position:relative;margin:0 0 5px;text-decoration:none;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:20px}
|
||||
.sct_pv .sct_id {display:block;margin:0 0 5px}
|
||||
.sct_pv .sct_basic {margin:0 0 10px}
|
||||
.sct_pv .sct_cost {display:block;margin:0 0 10px;padding:0 5px}
|
||||
.sct_pv .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_pv .sct_icon {margin:0 0 10px}
|
||||
/* ##### maint.(nn).skin.php, list.(nn).skin.php 공통 적용 끝 ##### */
|
||||
|
||||
/* 상품 목록 */
|
||||
#sct {margin:10px 0}
|
||||
.sct_admin {margin:0 0 10px;text-align:right}
|
||||
#sit_hhtml img {max-width:100%;height:auto}
|
||||
|
||||
/* 상품 목록 현재 위치 */
|
||||
#sct_location {border:1px solid #e9e9e9;background:#f2f5f9;letter-spacing:-4px}
|
||||
#sct_location a {display:inline-block;padding:5px 10px;text-decoration:none;letter-spacing:0 !important}
|
||||
.sct_here {font-weight:bold}
|
||||
.sct_bg {padding-right:13px !important;background:url('img/sct_bg_toright.gif') right 8px no-repeat}
|
||||
|
||||
/* 상품 목록 카테고리 목록 */
|
||||
.sct_ct {text-align:center;width:100%;margin:10px 0}
|
||||
.sct_ct h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sct_ct ul {list-style:none;border-bottom:1px solid #d9dce3}
|
||||
.sct_ct ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_ct ul li {border-left:1px solid #f2f2f2;border-top:1px solid #f2f2f2;background:#fff;float:left;width:50%;text-align:left}
|
||||
.sct_ct ul li:nth-child(2n+1) {clear:both;border-left:0}
|
||||
.sct_ct a {text-decoration:none;display:block;color:#656565;padding:10px;position:relative;padding-right:25px;position:relative;line-height:20px}
|
||||
.sct_ct .prd_cnt {position:absolute;top:10px;right:10px;display:inline-block;line-height:20px;padding:0 5px;border-radius:10px;color:#999}
|
||||
.sct_ct_parent {font-weight:bold}
|
||||
.sct_ct_here {color:#ff3600 !important}
|
||||
|
||||
/* 상품 정렬 */
|
||||
#sct_sortlst {position:relative;background:#fff;border-bottom:1px solid #e5e5e5}
|
||||
|
||||
#sct_sort {clear:both}
|
||||
#sct_sort:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sct_sort h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sct_sort button {height:40px;line-height:40px;border:0;padding:0 10px;background:#fff;border-right:1px solid #f8f8f8}
|
||||
#sct_sort ul:before {content:"";position:absolute;top:-8px;left:30px;width:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #bbb transparent}
|
||||
#sct_sort ul:after {content:"";position:absolute;top:-7px;left:30px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
#sct_sort ul {display:none;position:absolute;border:1px solid #bbb;z-index:99}
|
||||
#sct_sort li {border-top:1px solid #eee}
|
||||
#sct_sort li a {display:block;text-align:center;color:#666;background:#fff;border-color:#e9e9e9;padding:0 15px;line-height:40px}
|
||||
|
||||
/* 상품 리스트 스타일 선택 */
|
||||
#sct_lst {position:absolute;top:0;right:0;padding:0;list-style:none}
|
||||
#sct_lst:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sct_lst li {position:relative;float:left}
|
||||
#sct_lst button {position:relative;padding:0;width:40px;height:40px;border:0;background:#fff;font-size:15px;color:#999}
|
||||
|
||||
/* 상품 상세보기 */
|
||||
#sit {margin:0}
|
||||
.sit_admin {margin:10px 10px 0;text-align:right}
|
||||
.sit_empty {padding:30px 0;text-align:center}
|
||||
|
||||
/* 상품상세 */
|
||||
#info_content {padding:0 10px 30px;zoom:1}
|
||||
#info_content:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#info_content h3 {margin:0 0 10px}
|
||||
.if_tit {text-align:center;margin-top:10px;padding:10px;background:#f5f5f5;border:1px solid #e9e9e9}
|
||||
.win_desc_if {border:1px solid #e9e9e9;padding:10px;border-top:none}
|
||||
.win_desc {margin-top:10px}
|
||||
|
||||
/* 상품 상세보기 - 개요 */
|
||||
#sit_ov_wrap {margin:0 0 20px}
|
||||
#sit_ov_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
/* 상품 상세보기 - 이미지 미리보기 */
|
||||
#sit_pvi {position:relative;margin:0;border-bottom:1px solid #e6e6e6;background:#fff;text-align:center}
|
||||
#sit_pvi .btn_wr {background:rgba(0,0,0,0.5);display:inline-block;position:absolute;left:50%;bottom:15px;border-radius:30px;width:100px;line-height:30px;margin-left:-50px}
|
||||
#sit_pvi .btn_wr .pager-prev {float:left;display:inline-block;padding:0;color:#fff;width:25px}
|
||||
#sit_pvi .btn_wr .pager-next {float:right;display:inline-block;padding:0;color:#fff;width:25px}
|
||||
#sit_pvi #slide-counter {margin:0;width:50px;float:left;display:inline-block;padding:0;color:#fff}
|
||||
|
||||
#sit_pvi img{max-width:100%;height:auto;text-align:center}
|
||||
#sit_pvi_nw h1 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_pvi_nwbig {padding:10px 0;text-align:center}
|
||||
#sit_pvi_nwbig span {display:none}
|
||||
#sit_pvi_nwbig span.visible {display:inline}
|
||||
#sit_pvi_nw ul {text-align:center;margin:0 0 20px;padding:0 10px;list-style:none;zoom:1}
|
||||
#sit_pvi_nw ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_pvi_nw li {display:inline-block;margin:3px}
|
||||
#sit_pvi_nw li img {width:60px;height:60px}
|
||||
|
||||
/* 상품 상세보기 - 다른 상품 보기 */
|
||||
#sit_siblings {background:#fff;margin:0;text-align:center;position:relative}
|
||||
#sit_siblings:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_siblings h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_siblings a {display:inline-block;line-height:25px;padding-top:10px}
|
||||
#sit_siblings a#siblings_prev {position:absolute;top:0;left:0}
|
||||
#sit_siblings a#siblings_next {position:absolute;top:0;right:0}
|
||||
#sit_siblings a span {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
/* 상품 상세보기 - sns */
|
||||
#sit_star_sns {position:relative}
|
||||
#sit_star_sns span {display:inline-block;margin:0 5px 0 0;color:#666;letter-spacing:0;vertical-align:top}
|
||||
#sit_star_sns .sit_star {position:relative;margin:0 5px 0 0;vertical-align:top}
|
||||
|
||||
#sit_star_sns a {display:inline-block;vertical-align:middle}
|
||||
#sit_star_sns .btn_sns_share {float:left;background:transparent;width:35px;height:25px;border:0;color:#4b5259;font-size:1.6em;font-weight:bold}
|
||||
#sit_star_sns .btn_sns_share:hover {color:#3a8afd}
|
||||
#sit_star_sns .sns_area {display:none;position:absolute;top:45px;right:0;width:200px;text-align:center;background:#fff;border:1px solid #e2e2e2;padding:10px;z-index:10}
|
||||
#sit_star_sns .sns_area:before {content:"";position:absolute;top:-8px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #e2e2e2 transparent}
|
||||
#sit_star_sns .sns_area:after {content:"";position:absolute;top:-7px;right:13px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
#sit_star_sns .sns_area a {display:inline-block;width:35px;height:35px;line-height:35px;background:#eee;text-align:center;border-radius:50%;padding-top:5px}
|
||||
#sit_star_sns .sns_area a img {width:24px;height:auto}
|
||||
#sit_star_sns .sns_area #sit_btn_rec {font-size:15px;padding-top:0}
|
||||
#sit_star_sns .sns_area .share-facebook {background:#415b92}
|
||||
#sit_star_sns .sns_area .share-twitter {background:#35b3dc}
|
||||
|
||||
.sit_btn_opt {position:absolute;right:0;bottom:0}
|
||||
#btn_wish {float:left;position:relative;display:inline-block;padding-right:5px;color:#4b5259;width:35px;height:25px;text-align:center;font-size:1.25em;font-weight:bold}
|
||||
#btn_wish i {font-size:1.6em;font-weight:bold}
|
||||
#btn_wish .btn_wish_num {position:absolute;right:0;bottom:-2px;margin:0;padding:0 2px;min-width:18px;height:17px;line-height:15px;border-radius:30px;background:#fff;color:#4b5259;font-size:0.75em}
|
||||
|
||||
/* 상품 상세보기 - 간략정보 및 구매기능 */
|
||||
#sit_ov {position:relative;height:auto !important;padding:20px;border-bottom:1px solid #e9e9e9;background:#fff}
|
||||
#sit_ov h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_ov h3 {margin:0 0 10px;color:#5772d5}
|
||||
#sit_ov .sit_ov_wr {margin:0 0 10px;border-bottom:1px solid #f8f8f8}
|
||||
.sit_option {margin:10px 0}
|
||||
.sit_option label {display:block;margin:0 0 5px}
|
||||
.sit_option select {width:100%;height:40px;border:1px solid #d4d4d4;margin:0 0 5px;padding:0 10px}
|
||||
|
||||
#sit_title {display:block;margin:0 0 10px;font-size:1.5em;line-height:1.3em}
|
||||
#sit_desc {margin:0 0 10px;color:#666;line-height:1.25em}
|
||||
#sit_opt_info {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sit_icon {display:block;margin:0 0}
|
||||
.sit_icon img {margin:0 1px 0 0;vertical-align:top;margin:0 1px}
|
||||
|
||||
#sit_star {color:#b8afa2;font-size:0.95em;padding:0 10px;line-height:2.2em}
|
||||
#sit_star span {display:inline-block;margin:0 5px 0 0;color:#666;letter-spacing:0}
|
||||
#sit_star .sit_star {position:relative;top:-2px;margin:0 5px 0 0}
|
||||
#sit_star a {display:inline-block;vertical-align:middle}
|
||||
#sit_star button {margin:0;padding:0;border:0}
|
||||
|
||||
.sit_ov_tbl {border-top:1px solid #f8f8f8;padding:10px 0;margin-top:20px;color:#777}
|
||||
.sit_ov_tbl table {border-collapse:collapse;width:100%;border:0}
|
||||
.sit_ov_tbl th {font-weight:normal;text-align:left;padding:5px 0}
|
||||
.sit_ov_tbl td {padding:5px 15px}
|
||||
.sit_ov_tbl tr:first-child td,.sit_ov_tbl tr:first-child th {border:none}
|
||||
.sit_ov_ro {padding:2px 2px 3px;border:0;background:transparent;text-align:right;vertical-align:middle}
|
||||
.sit_ov_opt {padding:2px 2px 3px;border:0;background:transparent;vertical-align:middle}
|
||||
.sit_ov_input {height:1.8em;border:1px solid #b8c9c2;background:transparent;vertical-align:middle}
|
||||
.sit_ov_tbl button {margin:0}
|
||||
|
||||
#sit_tab {margin:20px 0}
|
||||
#sit_tab .tab_tit:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_tab .tab_tit li {float:left;width:25%;text-align:center;border-bottom:1px solid #d9dce3}
|
||||
#sit_tab .tab_tit li button {display:block;width:100%;position:relative;height:40px;background:#fff;border:0;color:#666;line-height:38px;text-align:center;z-index:1}
|
||||
#sit_tab .tab_tit li .selected {background:#fff;z-index:2;color:#3a8afd;font-weight:bold;position:relative}
|
||||
#sit_tab .tab_tit li .selected:before {content:'';position:absolute;bottom:-1px;left:0;width:100%;background:#3a8afd;height:3px}
|
||||
|
||||
#sit_tab .tab_con {background:#fff;border-bottom:1px solid #e5e5e5;padding:15px}
|
||||
|
||||
#btn_option {display:none;position:fixed;bottom:0;left:0;width:100%;background:#fff;z-index:90;border-top:1px solid #000;
|
||||
-webkit-box-shadow:0 0 9px rgba(0,0,0,0.2)
|
||||
-moz-box-shadow0 0 9px rgba(0,0,0,0.2);
|
||||
box-shadow:0 0 6px rgba(0,0,0,0.2)}
|
||||
#btn_option .sl_option {max-height:240px;overflow-y:auto;padding:10px}
|
||||
#btn_option h3 {margin-bottom:10px}
|
||||
#btn_option .btn_close {position:absolute;top:-25px;left:50%;width:60px;height:25px;margin-left:-30px;border:1px solid #000;border-bottom:0;background:#fff;border-radius:3px 3px 0 0}
|
||||
.btn_cart_op {width:100%;text-align:center;font-weight:bold}
|
||||
.btn_option_wr {position:fixed;bottom:0;left:0;width:100%;padding:10px;background:#fff;border-top:1px solid #000;z-index:88;
|
||||
-webkit-box-shadow:0 0 9px rgba(0,0,0,0.2);
|
||||
-moz-box-shadow:0 0 9px rgba(0,0,0,0.2);
|
||||
box-shadow:0 0 6px rgba(0,0,0,0.2)}
|
||||
|
||||
.sit_op_sl {width:100%;border-collapse:collapse}
|
||||
.sit_op_sl th {font-weight:normal;text-align:left;padding:0 0 0 10px}
|
||||
.sit_op_sl td {text-align:left;padding:9px 10px 9px 0}
|
||||
|
||||
.sit_sel_btn {position:relative;top:-15px;right:-2px} /* 선택옵션용 추가 버튼 */
|
||||
.sit_sel_btn button {width:100%}
|
||||
|
||||
#sit_ov_soldout {padding:20px;background:#fef5f7;color:#ff3061;font-weight:bold;text-align:center;margin-bottom:10px}
|
||||
#sit_ov_btn {margin:0;text-align:center;z-index:100}
|
||||
#sit_ov_btn:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_btn_cart {float:left;width:39%;margin-right:1%;line-height:50px;border:1px solid #98a3b3;color:#000;background:#fff;font-weight:bold;border-radius:3px}
|
||||
#sit_btn_buy {float:left;width:39%;margin-right:1%;line-height:50px;font-weight:bold}
|
||||
#sit_btn_phone {float:left;width:79%;margin-right:1%;line-height:50px;border:1px solid #3a8afd;color:#3a8afd;background:#fff;font-weight:bold;border-radius:3px}
|
||||
#sit_btn_wish {float:left;width:20%;display:inline-block;line-height:50px;text-align:center;font-size:1.25em;border:1px solid #b3b3b3;font-weight:bold;border-radius:3px;background:#fff}
|
||||
#sit_sel_option,#sit_tot_price {margin:10px 0;line-height:20px}
|
||||
#sit_tot_price {text-align:right}
|
||||
#sit_tot_price span {float:left}
|
||||
#sit_tot_price strong {font-size:1.25em;color:#000}
|
||||
|
||||
/* 상품 상세보기 - 상품정보 */
|
||||
#sit_inf_basic {margin:0 0 20px}
|
||||
#sit_inf_explan {margin:0 0 10px;line-height:1.5em}
|
||||
#sit_inf_explan img {max-width:100%;height:auto}
|
||||
#sit_inf_open {margin:0;padding:0;list-style:none}
|
||||
#sit_inf_open li {margin:0 0 1px;padding:8px 0;background:#fff;border:1px solid #f2f2f2;border-top:none;color:#727272}
|
||||
#sit_inf_open li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_inf_open strong {clear:both;float:left;padding:0 1%;width:28%;letter-spacing:-0.1em}
|
||||
#sit_inf_open span {float:left;margin:0;padding:0 1%;width:68%}
|
||||
#sit_inf h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_inf h3 {position:absolute;font-size:0;line-height:0;content:""}
|
||||
|
||||
#sit_inf_open {width:100%;border:0;border-top:1px solid #777;border-collapse:collapse;margin:10px 0 0}
|
||||
#sit_inf_open th {padding:10px;border-bottom:1px solid #e5e5e5;background:#f3f3f3;vertical-align:top;text-align:left;width:30%}
|
||||
#sit_inf_open td {padding:10px;border-bottom:1px solid #e5e5e5;background:#fff;vertical-align:top}
|
||||
|
||||
@media (max-width:640px) {
|
||||
#sit_inf_open th,#sit_inf_open td {display:block;width:100%}
|
||||
}
|
||||
|
||||
/* 상품 상세보기 - 사용후기 */
|
||||
.tit_no {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_use h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_use_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none}
|
||||
.sit_use_li {position:relative;padding:0 0 10px;border-bottom:1px solid #e9e9e9}
|
||||
.sit_use_li_title {display:block;margin:0;padding:10px 10px 5px;width:100%;border:0;background:transparent;text-align:left;font-weight:bold;font-size:1.167em;line-height:1.35em}
|
||||
.sit_use_dl {margin:0;padding:0 10px;position:relative;line-height:1.25em}
|
||||
.sit_use_dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sit_use_dl dt {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sit_use_dl dd {float:left;margin:0 10px 0 0;color:#888;font-size:0.917em}
|
||||
.sit_use_star {margin:0 !important;position:absolute;bottom:0;right:10px}
|
||||
.sit_use_star img {width:80px}
|
||||
.sit_use_con {display:none;padding:10px 0 0}
|
||||
.sit_use_p {padding:10px;background:#f2f2f2}
|
||||
.sit_use_cmd {text-align:right}
|
||||
.sit_use_cmd a.btn01 {padding:5px}
|
||||
#sit_use_wbtn {margin:0 0 10px}
|
||||
#sit_use_wbtn:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_use_wbtn .btn01 {line-height:40px;width:49%;float:right;text-align:center;border-radius:3px}
|
||||
#sit_use_wbtn .qa_wr {line-height:40px;width:49%;float:left;text-align:center;background:#3a8afd;color:#fff;border:1px solid #1c70e9;border-radius:3px}
|
||||
#sit_use_write {}
|
||||
#sit_use_write #is_subject {width:100%}
|
||||
#sit_use_write ul {margin:5px 0 0}
|
||||
#sit_use_write li {margin:0 0 5px}
|
||||
#sit_use_write li label {display:inline-block;width:80px}
|
||||
#sit_use_write #sit_use_write_star {margin:10px 0;padding:10px;background:#fff;list-style:none}
|
||||
#sit_use_write_star:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_use_write_star li {float:left;width:50%}
|
||||
#sit_use_write_star li img {vertical-align:middle}
|
||||
.sit_use_reply {position:relative;border-top:1px dotted #bbb;margin:10px 0 0;padding:10px 0 0 40px}
|
||||
.use_reply_icon {position:absolute;top:10px;left:5px;background:url('./img/use_reply.png') no-repeat 0 0;width:28px;height:17px;text-indent:-999px;overflow:hidden}
|
||||
.use_reply_tit {font-weight:bold;line-height:1.5em}
|
||||
.use_reply_name {font-size:0.92em;color:#777;margin:5px 0}
|
||||
.use_reply_p {padding:10px;background:#f2f2f2;line-height:1.5em}
|
||||
|
||||
/* 상품 상세보기 - 상품문의 */
|
||||
#sit_qa {}
|
||||
#sit_qa h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_qa_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none}
|
||||
.sit_qa_li {position:relative;padding:0 0 10px;border-bottom:1px solid #e9e9e9}
|
||||
.sit_qa_li_title {display:block;margin:0;padding:10px 10px 5px;width:100%;border:0;background:transparent;text-align:left;font-weight:bold;font-size:1.167em;line-height:1.35em}
|
||||
.sit_qa_dl {margin:0;padding:0 10px;position:relative}
|
||||
.sit_qa_dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sit_qa_dl dt {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sit_qa_dl dd {float:left;margin:0 10px 0 0;color:#888;font-size:0.917em}
|
||||
.sit_qa_dl dd.sit_qaa_yet,.sit_qa_dl dd.sit_qaa_done {position:absolute;bottom:0;right:0;background:#ccd1d9;padding:0 8px;line-height:30px;color:#fff;border-radius:4px}
|
||||
.sit_qa_dl dd.sit_qaa_done {background:#f6bb42;color:#fff}
|
||||
.sit_qa_con {display:none;padding:10px 0 0}
|
||||
.sit_qa_p {margin:0 0 10px;background:#fff;padding:0 10px;background:#fbfbff}
|
||||
.sit_qa_p strong {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sit_qa_p span.sit_alp{position:absolute;top:10px;left:0;color:#bbb;font-size:1.5em;font-weight:bold;width:25px;height:25px;line-height:25px;display:inline-block;border-radius:15px;text-align:center}
|
||||
.sit_qa_qaq,.sit_qa_qaa {padding:15px 0 15px 30px;position:relative;min-height:70px}
|
||||
|
||||
.sit_qa_qaa {border-top:1px dotted #eee}
|
||||
.sit_qa_qaa span.sit_alp {}
|
||||
.sit_qa_con textarea {display:none}
|
||||
.sit_qa_cmd {text-align:right}
|
||||
.sit_qa_cmd a.btn01 {padding:5px}
|
||||
.sit_qa_pw {display:none;position:absolute;top:30px;left:175px;padding:10px;width:348px;border:1px solid #000;background:#fff;text-align:center}
|
||||
.sit_qa_pw span {display:block;margin:0 0 5px}
|
||||
|
||||
#sit_qa_wbtn {margin:0 0 10px}
|
||||
#sit_qa_wbtn:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_qa_wbtn .btn01 {line-height:40px;width:49%;float:right;text-align:center;border-radius:3px}
|
||||
#sit_qa_wbtn .qa_wr {line-height:40px;width:49%;float:left;text-align:center;background:#3a8afd;color:#fff;border:1px solid #1c70e9;border-radius:3px}
|
||||
|
||||
/* 사용후기 모음 */
|
||||
#sps_sch {margin:15px}
|
||||
#sps_sch a {display:inline-block;color:#3a8afd;font-weight:bold;border-bottom:1px solid #3a8afd;margin-top:10px}
|
||||
#sps_sch .sch_wr {position:relative;background:#fff;border:1px solid #d0d3db}
|
||||
#sps_sch .sch_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sps_sch select {border:0;background:#fff;padding:9px 0;height:45px;border:1px solid #fff;border-right:1px solid #f8f8f8;float:left;width:40%}
|
||||
#sps_sch .sch_input {height:45px;border:0;padding:0;background-color:transparent;float:left;width:60%;padding:0 40px 0 10px}
|
||||
#sps_sch .sch_btn {position:absolute;top:0;right:0;width:45px;height:45px;border:0;background:none;font-size:15px}
|
||||
|
||||
#sps {zoom:1}
|
||||
#sps>ol {margin:10px 0;padding:0;border-top:1px solid #f8f8f8;list-style:none}
|
||||
#sps>ol>li {position:relative;padding:10px;border-bottom:1px solid #e8e8e8;background:#fff}
|
||||
#sps>ol>li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
.sps_img {position:absolute;top:10px;left:10px}
|
||||
.sps_img span {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
.review_detail {margin-top:3px;border:0;background:transparent;font-weight:bold;color:#000;line-height:24px;font-size:1.083em}
|
||||
|
||||
.review_detail_cnt {display:none;position:fixed;width:100%;height:100%;top:0;left:0;z-index:999;background:rgba(0,0,0,0.1)}
|
||||
.review_detail_in {position:absolute;top:5%;left:0;width:100%;height:90%;padding:10px}
|
||||
.review_detail_inner {position:relative;height:100%;background:#fff;text-align:left;overflow-y:auto;border-radius:3px;border:1px solid #dde7e9;border-radius:3px}
|
||||
.review_detail_inner h3 {position:absolute;top:0;left:0;width:100%;padding:15px;border-bottom:1px solid #e8e8e8;background:#fff;font-size:1.4em;z-index:900}
|
||||
.review_cnt {padding:60px 25px;max-height:100%;overflow-y:auto}
|
||||
.rd_cls {position:absolute;top:0;right:0;color:#b5b8bb;border:0;padding:0 15px;height:55px;font-size:16px;background:none;z-index:9000;vertical-align:top}
|
||||
|
||||
.review_tp_cnt {position:relative;padding:0 0 10px;margin-bottom:15px;border-bottom:1px solid #f1f1f1}
|
||||
.review_tp_cnt>span {font-size:1.2em;display:block;line-height:24px;font-weight:bold}
|
||||
.review_tp_cnt:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.review_tp_cnt .sps_opt_btn_more {position:absolute;top:0;right:0;border:0;padding:5px 5px 5px 10px;background:#fff;color:#c4c8cb;font-size:1.4em}
|
||||
.review_tp_cnt .sps_opt_li {display:none;position:absolute;top:40px;right:0;border:1px solid #b8bfc4;background:#fff}
|
||||
.review_tp_cnt .sps_opt_li:before {content:"";position:absolute;top:-8px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #b8bfc4 transparent}
|
||||
.review_tp_cnt .sps_opt_li:after {content:"";position:absolute;top:-6px;right:5px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
.review_tp_cnt .sps_opt_li li {border-bottom:1px solid #f1f1f1;padding:10px !important;color:#6b757c}
|
||||
|
||||
.review_summ {background:#fcfcfc;border:2px solid #efeff1;padding:10px}
|
||||
.review_summ:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.review_summ>img {float:left;margin-right:10px}
|
||||
.review_summ>p {display:inline-block;width:auto !important;float:left;line-height:24px}
|
||||
.review_summ>p span {display:block}
|
||||
.review_bt_cnt {margin:15px 0}
|
||||
.review_bt_cnt img {width:100%}
|
||||
|
||||
.sps_reply {margin-top:10px;padding-top:10px;border-top:1px dotted #bbb}
|
||||
.sps_reply .sps_img {text-align:right;width:70px}
|
||||
.sps_reply .sps_section h2 {background:url('./img/use_reply.png') no-repeat 0 0;text-indent:30px;line-height:1.5em}
|
||||
|
||||
.sps_info {margin-top:5px}
|
||||
.sps_info span {display:inline-block;float:left;line-height:12px;color:#818181}
|
||||
.sps_info .sps_if_wt {border-right:1px solid #eaeaea;padding-right:5px;margin-right:5px}
|
||||
|
||||
.sps_dl dd {display:inline-block;float:left}
|
||||
.sps_dl dd.sps_dd_wt {padding-right:5px;margin-right:5px;border-right:1px solid #eaeaea}
|
||||
|
||||
.sps_section {min-height:70px;margin-left:80px;display:block}
|
||||
.sps_section .is_use_reply {background:url('../mobile/shop/img/use_reply.png') no-repeat;text-indent:30px;line-height:1.5em}
|
||||
.sps_section p {padding:0;width:100%}
|
||||
.sps_con_full {padding:0;height:auto !important}
|
||||
|
||||
.sps_con_btn button {}
|
||||
|
||||
.sps_reply {margin-top:10px;padding-top:10px;border-top:1px dotted #bbb;position:relative}
|
||||
.sps_reply .sps_img {width:50px;text-align:center}
|
||||
.sps_reply .sps_section h2 {background:url('./img/use_reply.png') no-repeat 0 0;text-indent:30px;line-height:1.5em}
|
||||
.sps_reply .sps_section {margin-left:70px;min-height:50px}
|
||||
#sps_empty {text-align:center;color:#777;padding:50px 0}
|
||||
|
||||
/* 상품문의 모음 */
|
||||
#sqa_sch {margin:15px}
|
||||
#sqa_sch a {display:inline-block;color:#3a8afd;font-weight:bold;border-bottom:1px solid #3a8afd;margin-top:10px}
|
||||
#sqa_sch .sch_wr {position:relative;background:#fff;border:1px solid #d0d3db}
|
||||
#sqa_sch .sch_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sqa_sch select {border:0;background:#fff;padding:9px 0;height:45px;border-right:1px solid #f8f8f8;float:left;width:40%}
|
||||
#sqa_sch .sch_input {height:45px;border:0;padding:0;background-color:transparent;float:left;width:60%;padding:0 40px 0 10px}
|
||||
#sqa_sch .sch_btn {position:absolute;top:0;right:0;width:45px;height:45px;border:0;background:none;font-size:15px}
|
||||
|
||||
#sqa {zoom:1}
|
||||
#sqa>ol {margin:10px 0;padding:0;border-top:1px solid #f8f8f8;list-style:none}
|
||||
#sqa>ol>li {position:relative;min-height:80px;border-bottom:1px solid #e8e8e8;background:#fff}
|
||||
#sqa>ol>li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
.sqa_img {position:absolute;top:10px;left:10px}
|
||||
.sqa_img span {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
.sqa_info {margin-top:5px}
|
||||
.sqa_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sqa_info span {display:inline-block;float:left;line-height:12px;color:#818181}
|
||||
.sqa_info .sqa_if_wt {border-right:1px solid #eaeaea;padding-right:5px;margin-right:5px}
|
||||
|
||||
.sqa_section {margin-left:70px;margin-right:40px;padding:10px;display:block;line-height:20px}
|
||||
.sqa_section h2 {font-size:1.167em;font-weight:bold;margin:5px 0}
|
||||
.sqa_con {margin:10px 0 0;background:#fbfbff;line-height:1.7em}
|
||||
.sqa_section p {padding:0;width:100%}
|
||||
.sqa_con_full {padding:0;height:auto !important}
|
||||
.sqa_con_btn button {padding:5px 8px;color:#666;font-size:0.92em;margin:5px 0;background:#fff;position:absolute;top:10px;right:0;width:40px;height:50px;border:0}
|
||||
|
||||
#sqa .sit_qaa_yet, #sqa .sit_qaa_done {margin-right:3px;display:inline-block;font-size:0.917em;background:#ccd1d9;padding:0 8px;line-height:30px;color:#fff;border-radius:4px;font-weight:normal}
|
||||
#sqa .sit_qaa_done {background:#f6bb42;color:#fff}
|
||||
|
||||
#sqa .sit_qa_qaq, #sqa .sit_qa_qaa {padding:10px 5px 10px 40px;position:relative}
|
||||
#sqa .qa_alp {position:absolute;top:10px;left:0;font-weight:bold;display:block;width:40px;text-align:center;font-size:1.231em}
|
||||
#sqa_empty {text-align:center;color:#777;padding:50px 0}
|
||||
|
||||
/* 상품검색 */
|
||||
#ssch {margin:10px 0;position:relative}
|
||||
#ssch_frm {border-bottom:1px solid #ddd;background:#fff;margin:10px 0}
|
||||
#ssch_frm h2 {border-bottom:1px solid #ddd;padding:10px 15px;color:#666}
|
||||
#ssch_frm h2 span {font-size:1.25em;color:#000}
|
||||
#ssch_frm h2 strong {color:#d50c0c}
|
||||
#ssch_frm div {padding:10px;line-height:30px}
|
||||
#ssch_frm p {margin:10px 0 0;line-height:20px;color:#1f58fd;font-size:0.923em}
|
||||
#ssch_frm .sch_wr {border-bottom:1px solid #e3e5e8;position:relative}
|
||||
#ssch_frm #ssch_q {border-radius:0;width:100%;font-weight:bold;font-size:1.077em}
|
||||
#ssch_frm .sch_submit {height:40px;padding:0 10px;font-weight:bold;position:absolute;top:10px;right:10px;border:0;background:none}
|
||||
#ssch_frm .ssch_input {height:30px;border:1px solid #bbb;padding:0 10px;margin:3px 0}
|
||||
#ssch_frm .chk_box label {margin-right:10px}
|
||||
#ssch_frm .chk_box .frm_input {height:32px}
|
||||
|
||||
#ssch_q {margin:0}
|
||||
#ssch_ov {position:absolute;top:-50px;right:10px;line-height:20px;color:#6f6f6f;font-size:0.923em}
|
||||
|
||||
#ssch_cate {text-align:center;width:100%;margin:10px 0}
|
||||
#ssch_cate ul {list-style:none;border-bottom:1px solid #d9dce3}
|
||||
#ssch_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#ssch_cate ul li {border-left:1px solid #f2f2f2;border-top:1px solid #f2f2f2;background:#fff;float:left;width:50%;text-align:left}
|
||||
#ssch_cate ul li:nth-child(2n+1) {clear:both;border-left:0}
|
||||
#ssch_cate a {text-decoration:none;display:block;color:#656565;padding:10px;position:relative;padding-right:25px;position:relative;line-height:20px}
|
||||
#ssch_cate a span {position:absolute;top:10px;right:10px;display:inline-block;line-height:20px;padding:0 5px;border-radius:10px;color:#999}
|
||||
|
||||
#ssch_sort {background:#fff;border-bottom:1px solid #ddd}
|
||||
#ssch_sort button {height:40px;line-height:40px;border:0;padding:0 10px;background:#fff}
|
||||
#ssch_sort ul:before {content:"";position:absolute;top:-8px;left:30px;width:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #bbb transparent}
|
||||
#ssch_sort ul:after {content:"";position:absolute;top:-7px;left:30px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
|
||||
#ssch_sort ul {display:none;position:absolute;border:1px solid #bbb;z-index:99}
|
||||
#ssch_sort li {border-top:1px solid #eee}
|
||||
#ssch_sort li a {display:block;text-align:center;color:#333;background:#fff;border:0;font-size:0.917em;padding:5px 10px;line-height:20px}
|
||||
|
||||
/*배송교환정보*/
|
||||
#sit_dvex h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_dvex h3 {text-align:center;padding:10px 0;background:#f3f3f3;margin:0 0 10px}
|
||||
#sit_dvr {margin:0 0 10px}
|
||||
|
||||
/* 로딩안내 레이어 */
|
||||
#loading_message {z-index:10000;position:absolute;top:0;left:0;background:#fff;opacity:0.7}
|
||||
#loading_message img {position:relative;opacity:1.0}
|
||||
|
||||
/* 알림 box */
|
||||
#fancyalert {display:block;z-index:10000;position:absolute;top:0;left:0}
|
||||
#fancyalert_inner {display:table;z-index:2;position:relative}
|
||||
#fancyalert_inner div {display:table-cell;vertical-align:middle;text-align:center}
|
||||
#fancyalert_inner span {display:block;margin:0 auto;padding:30px;width:200px;background:#1f1f1f;color:#f0f1f2}
|
||||
#fancyalert_inner button {margin:15px 0 0;padding:10px 30px;border:0;background:#000;color:#fff}
|
||||
#fancyalert_bg {z-index:0;position:absolute;top:0;left:0;width:100%;height:100%;vertical-align:middle;background:#000;text-align:center;opacity:0.7}
|
||||
|
||||
#sit_sms_new .tbl_frm01 th {width:100px}
|
||||
|
||||
/*쿠폰존 리스트*/
|
||||
.couponzone_list {margin:10px 0;background:#fff;border-bottom:1px solid #ccc}
|
||||
.couponzone_list h2 {border-bottom:1px solid #efefef;padding:10px;line-height:30px;font-size:1.077em}
|
||||
.couponzone_list p {position:relative;text-align:left;color:#fff;line-height:18px;font-size:1.1em;background:#f2838f;margin:10px;padding:10px 20px;border-radius:5px;font-weight:bold}
|
||||
.couponzone_list p:before {content:"";position:absolute;top:0;left:0;width:5px;height:100%;border-radius:5px 0 0 5px;background:#da4453}
|
||||
|
||||
.couponzone_list ul {padding:0 10px 10px;margin:0;list-style:none;background:#fff}
|
||||
.couponzone_list ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.couponzone_list ul li {line-height:1.2em;margin:0 0 10px}
|
||||
.couponzone_list ul li img {width:100%;height:auto;border-radius:3px 3px 0 0}
|
||||
.couponzone_list ul li .cp_inner {border:1px solid #ddd;border-radius:5px;
|
||||
-webkit-box-shadow:0px 1px 6px 0 #dedede;
|
||||
-moz-box-shadow:0px 1px 6px 0 #dedede;
|
||||
box-shadow:0px 1px 6px 0 #dedede
|
||||
}
|
||||
|
||||
.couponzone_list ul li .coupon_img {position:relative;height:120px;overflow:hidden;border-bottom:1px dashed #ccc}
|
||||
.couponzone_list ul li .coupon_tit {position:absolute;top:0;left:0;width:100%;height:100%;padding-top:30px;text-align:center;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|
||||
.couponzone_list ul li .coupon_tit span {display:inline-block;margin-bottom:5px}
|
||||
.couponzone_list ul li .coupon_tit .cp_evt,
|
||||
.couponzone_list ul li .coupon_tit .cp_evt b {font-size:1.4em}
|
||||
.couponzone_list ul li .cp_cnt {padding:10px}
|
||||
.couponzone_list ul li .coupon_date {display:inline-block;float:right;padding:2px 3px;margin:5px 0px;font-size:0.92em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:#777}
|
||||
.couponzone_list ul li .coupon_target {display:inline-block;margin:5px 0px}
|
||||
.couponzone_list ul li .coupon_target>button {display:inline-block;max-width:125px;padding:2px 3px;font-size:0.92em;border:0;border-radius:3px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|
||||
.couponzone_list ul li .coupon_target .cp_1 {background:#edfbde;color:#8cc152}/*카테고리할인*/
|
||||
.couponzone_list ul li .coupon_target .cp_2 {background:#fbdef3;color:#c15293}/*개별상품할인*/
|
||||
.couponzone_list ul li .coupon_target .cp_3 {background:#fbf1de;color:#c18b52}/*주문금액할인*/
|
||||
.couponzone_list ul li .coupon_target .cp_4 {background:#f2defb;color:#7c52c1}/*배송비할인*/
|
||||
|
||||
.couponzone_list ul li .coupon_info {display:none;position:absolute;min-width:235px;background:#fff;border:1px solid #000;padding:15px;z-index:99999}
|
||||
.couponzone_list ul li .coupon_info:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.couponzone_list ul li .coupon_info h4 {font-size:1.2em;margin-bottom:10px}
|
||||
.couponzone_list ul li .coupon_info ul {padding:0;margin:0;position:relative;border:0}
|
||||
.couponzone_list ul li .coupon_info li {width:auto;margin:0;float:inherit;color:#5e5e5e;line-height:18px}
|
||||
.couponzone_list ul li .coupon_info li a {text-decoration:underline;color:#5e5e5e}
|
||||
.couponzone_list ul li .coupon_info .coupon_info_cls {position:absolute;right:0;top:0;color:#c7c9cc;border:0;background:#fff;padding:10px;font-size:1.2em}
|
||||
|
||||
.couponzone_list ul li .coupon_btn {text-align:center}
|
||||
.couponzone_list ul li .coupon_btn .btn02 {width:100%;height:42px;line-height:28px;margin-top:15px;border:0;color:#fff;background:#3a8afd;border-radius:5px;font-weight:bold}
|
||||
.couponzone_list ul li .coupon_btn .btn02:hover {background:#2176f1;color:#fff}
|
||||
.couponzone_list ul li .coupon_btn .disabled {background:#c6c6c6;border:1px;color:#fff;border-color:#c6c6c6}
|
||||
.couponzone_list ul li .coupon_btn .disabled:hover {background:#c6c6c6;border:1px;color:#fff;border-color:#c6c6c6}
|
||||
.couponzone_list .no_coupon {position:relative;padding:100px 0;text-align:center;color:#999;background:none;font-weight:normal}
|
||||
.couponzone_list .no_coupon:before {background:none}
|
||||
|
||||
@media (min-width:640px)and (max-width:969px) {
|
||||
.couponzone_list ul li {width:50%;float:left;padding:10px}
|
||||
.couponzone_list ul li:nth-child(2n+1) {clear:both}
|
||||
}
|
||||
|
||||
@media (min-width:970px) {
|
||||
.couponzone_list ul li {width:25%;float:left;padding:10px}
|
||||
.couponzone_list ul li:nth-child(4n+1) {clear:both}
|
||||
}
|
||||
|
||||
/*재입고알림*/
|
||||
#sit_sms_new .prd_name {background:#edf3fc;margin:0 0 10px;border:1px solid #d6e2f4;border-radius:5px}
|
||||
#sit_sms_new strong {display:block;margin:15px 0 10px}
|
||||
#sit_sms_new #sms_agree {text-align:left;padding:0 0 10px !important}
|
||||