Merge branch 'patch'
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(G5_COMMUNITY_USE === false) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_THEME_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
@ -156,6 +161,9 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/register.php" id="snb_join">회원가입</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/login.php" id="snb_login">로그인</a></li>
|
||||
<?php } ?>
|
||||
<?php if (defined('G5_USE_SHOP') && G5_USE_SHOP) { ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/" id="snb_shop">쇼핑몰</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(G5_COMMUNITY_USE === false) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G5_THEME_MOBILE_PATH.'/head.php');
|
||||
?>
|
||||
|
||||
|
||||
7
theme/basic/mobile/shop/_common.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
include_once('../../../../common.php');
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
155
theme/basic/mobile/shop/category.php
Normal file
@ -0,0 +1,155 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
function get_mshop_category($ca_id, $len)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']}
|
||||
where ca_use = '1' ";
|
||||
if($ca_id)
|
||||
$sql .= " and ca_id like '$ca_id%' ";
|
||||
$sql .= " and length(ca_id) = '$len' order by ca_order, ca_id ";
|
||||
|
||||
return $sql;
|
||||
}
|
||||
?>
|
||||
|
||||
<button type="button" id="hd_ct">분류</button>
|
||||
<div id="category">
|
||||
<div class="ct_wr">
|
||||
<ul class="cate_tab">
|
||||
<li><a href="#" class="ct_tab_sl">CATEGORY</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">MY PAGE</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">CART</a></li>
|
||||
</ul>
|
||||
<?php
|
||||
$mshop_ca_href = G5_SHOP_URL.'/list.php?ca_id=';
|
||||
$mshop_ca_res1 = sql_query(get_mshop_category('', 2));
|
||||
for($i=0; $mshop_ca_row1=sql_fetch_array($mshop_ca_res1); $i++) {
|
||||
if($i == 0)
|
||||
echo '<ul class="cate">'.PHP_EOL;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row1['ca_id']; ?>"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res2 = sql_query(get_mshop_category($mshop_ca_row1['ca_id'], 4));
|
||||
if(mysql_num_rows($mshop_ca_res2))
|
||||
echo '<button class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row1['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($j=0; $mshop_ca_row2=sql_fetch_array($mshop_ca_res2); $j++) {
|
||||
if($j == 0)
|
||||
echo '<ul class="sub_cate sub_cate1">'.PHP_EOL;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row2['ca_id']; ?>">- <?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res3 = sql_query(get_mshop_category($mshop_ca_row2['ca_id'], 6));
|
||||
if(mysql_num_rows($mshop_ca_res3))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row2['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($k=0; $mshop_ca_row3=sql_fetch_array($mshop_ca_res3); $k++) {
|
||||
if($k == 0)
|
||||
echo '<ul class="sub_cate sub_cate2">'.PHP_EOL;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row3['ca_id']; ?>">- <?php echo get_text($mshop_ca_row3['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res4 = sql_query(get_mshop_category($mshop_ca_row3['ca_id'], 8));
|
||||
if(mysql_num_rows($mshop_ca_res4))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row3['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($m=0; $mshop_ca_row4=sql_fetch_array($mshop_ca_res4); $m++) {
|
||||
if($m == 0)
|
||||
echo '<ul class="sub_cate sub_cate3">'.PHP_EOL;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row4['ca_id']; ?>">- <?php echo get_text($mshop_ca_row4['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res5 = sql_query(get_mshop_category($mshop_ca_row4['ca_id'], 10));
|
||||
if(mysql_num_rows($mshop_ca_res5))
|
||||
echo '<button type="button" class="sub_ct_toggle ct_op">'.get_text($mshop_ca_row4['ca_name']).' 하위분류 열기</button>'.PHP_EOL;
|
||||
|
||||
for($n=0; $mshop_ca_row5=sql_fetch_array($mshop_ca_res5); $n++) {
|
||||
if($n == 0)
|
||||
echo '<ul class="sub_cate sub_cate4">'.PHP_EOL;
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row5['ca_id']; ?>">- <?php echo get_text($mshop_ca_row5['ca_name']); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($n > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($m > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($j > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($i > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p>등록된 분류가 없습니다.</p>'.PHP_EOL;
|
||||
?>
|
||||
<button type="button" class="pop_close"><span class="sound_only">카테고리 </span>닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
var $category = $("#category");
|
||||
|
||||
$("#hd_ct").on("click", function() {
|
||||
$category.css("display","block");
|
||||
});
|
||||
|
||||
$("#category .pop_close").on("click", function(){
|
||||
$category.css("display","none");
|
||||
});
|
||||
|
||||
$("button.sub_ct_toggle").on("click", function() {
|
||||
var $this = $(this);
|
||||
$sub_ul = $(this).closest("li").children("ul.sub_cate");
|
||||
|
||||
if($sub_ul.size() > 0) {
|
||||
var txt = $this.text();
|
||||
|
||||
if($sub_ul.is(":visible")) {
|
||||
txt = txt.replace(/닫기$/, "열기");
|
||||
$this
|
||||
.removeClass("ct_cl")
|
||||
.text(txt);
|
||||
} else {
|
||||
txt = txt.replace(/열기$/, "닫기");
|
||||
$this
|
||||
.addClass("ct_cl")
|
||||
.text(txt);
|
||||
}
|
||||
|
||||
$sub_ul.toggle();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
BIN
theme/basic/mobile/shop/img/add.gif
Normal file
|
After Width: | Height: | Size: 311 B |
BIN
theme/basic/mobile/shop/img/best_btn.gif
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
theme/basic/mobile/shop/img/cart.gif
Normal file
|
After Width: | Height: | Size: 60 B |
BIN
theme/basic/mobile/shop/img/cate.gif
Normal file
|
After Width: | Height: | Size: 65 B |
BIN
theme/basic/mobile/shop/img/cate_op.gif
Normal file
|
After Width: | Height: | Size: 195 B |
BIN
theme/basic/mobile/shop/img/close.png
Normal file
|
After Width: | Height: | Size: 327 B |
BIN
theme/basic/mobile/shop/img/close_op.jpg
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
theme/basic/mobile/shop/img/del_btn.gif
Normal file
|
After Width: | Height: | Size: 348 B |
BIN
theme/basic/mobile/shop/img/loading.gif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
theme/basic/mobile/shop/img/paging.gif
Normal file
|
After Width: | Height: | Size: 131 B |
BIN
theme/basic/mobile/shop/img/prd_icon.gif
Normal file
|
After Width: | Height: | Size: 294 B |
BIN
theme/basic/mobile/shop/img/prd_icon.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
theme/basic/mobile/shop/img/sch.gif
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
theme/basic/mobile/shop/img/sch2.gif
Normal file
|
After Width: | Height: | Size: 352 B |
BIN
theme/basic/mobile/shop/img/select.gif
Normal file
|
After Width: | Height: | Size: 168 B |
140
theme/basic/mobile/shop/index.php
Normal file
@ -0,0 +1,140 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
define("_INDEX_", TRUE);
|
||||
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/swipe.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.mobile.main.js"></script>
|
||||
|
||||
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
|
||||
|
||||
<div id="sidx" class="swipe">
|
||||
<div id="sidx_slide" class="swipe-wrap">
|
||||
<?php if($default['de_mobile_type1_list_use']) { ?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">HIT ITEM</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(1);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_mobile_type2_list_use']) { ?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">RECOMMEND ITEM</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(2);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_mobile_type3_list_use']) { ?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">NEW ITEM</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(3);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_mobile_type4_list_use']) { ?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">BEST ITEM</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_mobile_type5_list_use']) { ?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">SALE ITEM</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_mobile(true);
|
||||
$list->set_type(5);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include_once(G5_MSHOP_SKIN_PATH.'/main.event.skin.php'); // 이벤트 ?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#sidx").swipeSlide({
|
||||
slides: ".swipe-wrap > div",
|
||||
buttons: ".mli_btn > button",
|
||||
startSlide: 0,
|
||||
auto: 0
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
105
theme/basic/mobile/shop/shop.head.php
Normal file
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_THEME_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
||||
include_once(G5_LIB_PATH.'/connect.lib.php');
|
||||
include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
?>
|
||||
|
||||
<header id="hd">
|
||||
<?php if ((!$bo_table || $w == 's' ) && defined('_INDEX_')) { ?><h1><?php echo $config['cf_title'] ?></h1><?php } ?>
|
||||
|
||||
<div id="skip_to_container"><a href="#container">본문 바로가기</a></div>
|
||||
|
||||
<?php if(defined('_INDEX_')) { // index에서만 실행
|
||||
include G5_MOBILE_PATH.'/newwin.inc.php'; // 팝업레이어
|
||||
} ?>
|
||||
<ul id="hd_tnb">
|
||||
<?php if ($is_member) { ?>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li><a href="<?php echo G5_ADMIN_URL ?>/shop_admin/"><b>관리자</b></a></li>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php">정보수정</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php?url=shop">LOGOUT</a></li>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo $urlencode; ?>">LOGIN</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/register.php" id="snb_join">JOIN</a></li>
|
||||
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">MY PAGE</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php" class="tnb_cart"><span></span>CART</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img" alt="<?php echo $config['cf_title']; ?> 메인"></a></div>
|
||||
|
||||
<?php include_once(G5_THEME_MSHOP_PATH.'/category.php'); // 분류 ?>
|
||||
|
||||
<button type="button" id="hd_sch_open">검색<span class="sound_only"> 열기</span></button>
|
||||
|
||||
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);">
|
||||
<aside id="hd_sch">
|
||||
<div class="sch_inner">
|
||||
<h2>상품 검색</h2>
|
||||
<label for="sch_str" class="sound_only">상품명<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" id="sch_str" required class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
<button type="button" class="pop_close"><span class="sound_only">검색 </span>닫기</button>
|
||||
</div>
|
||||
</aside>
|
||||
</form>
|
||||
<script>
|
||||
$(function (){
|
||||
var $hd_sch = $("#hd_sch");
|
||||
$("#hd_sch_open").click(function(){
|
||||
$hd_sch.css("display","block");
|
||||
});
|
||||
$("#hd_sch .pop_close").click(function(){
|
||||
$hd_sch.css("display","none");
|
||||
});
|
||||
});
|
||||
|
||||
function search_submit(f) {
|
||||
if (f.q.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.q.select();
|
||||
f.q.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<ul id="hd_mb">
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<?php
|
||||
if(G5_COMMUNITY_USE) {
|
||||
$com_href = G5_URL;
|
||||
$com_name = '커뮤니티';
|
||||
} else {
|
||||
if(!preg_match('#'.G5_SHOP_DIR.'/#', $_SERVER['SCRIPT_NAME'])) {
|
||||
$com_href = G5_SHOP_URL;
|
||||
$com_name = '쇼핑몰';
|
||||
}
|
||||
}
|
||||
|
||||
if($com_href && $com_name) {
|
||||
?>
|
||||
<li><a href="<?php echo $com_href; ?>/"><?php echo $com_name; ?></a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<?php if(!$com_href || !$com_name) { ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">세일상품</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
<div id="container">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><h1 id="container_title"><?php echo $g5['title'] ?></h1><?php } ?>
|
||||
44
theme/basic/mobile/shop/shop.tail.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$admin = get_admin("super");
|
||||
|
||||
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
||||
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
|
||||
?>
|
||||
|
||||
</div><!-- container End -->
|
||||
|
||||
<div id="ft">
|
||||
<h2><?php echo $config['cf_title']; ?> 정보</h2>
|
||||
<p>
|
||||
<span><b>회사명</b> <?php echo $default['de_admin_company_name']; ?></span>
|
||||
<span><b>주소</b> <?php echo $default['de_admin_company_addr']; ?></span><br>
|
||||
<span><b>사업자 등록번호</b> <?php echo $default['de_admin_company_saupja_no']; ?></span><br>
|
||||
<span><b>대표</b> <?php echo $default['de_admin_company_owner']; ?></span>
|
||||
<span><b>전화</b> <?php echo $default['de_admin_company_tel']; ?></span>
|
||||
<span><b>팩스</b> <?php echo $default['de_admin_company_fax']; ?></span><br>
|
||||
<!-- <span><b>운영자</b> <?php echo $admin['mb_name']; ?></span><br> -->
|
||||
<span><b>통신판매업신고번호</b> <?php echo $default['de_admin_tongsin_no']; ?></span><br>
|
||||
<span><b>개인정보관리책임자</b> <?php echo $default['de_admin_info_name']; ?></span>
|
||||
|
||||
<?php if ($default['de_admin_buga_no']) echo '<span><b>부가통신사업신고번호</b> '.$default['de_admin_buga_no'].'</span>'; ?><br>
|
||||
Copyright © 2001-2013 <?php echo $default['de_admin_company_name']; ?>. All Rights Reserved.
|
||||
</p>
|
||||
<a href="#" id="ft_to_top">상단으로</a>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$sec = get_microtime() - $begin_time;
|
||||
$file = $_SERVER['SCRIPT_NAME'];
|
||||
|
||||
if ($config['cf_analytics']) {
|
||||
echo $config['cf_analytics'];
|
||||
}
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/sns.js"></script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
?>
|
||||
BIN
theme/basic/mobile/skin/shop/basic/img/arr_down01.gif
Normal file
|
After Width: | Height: | Size: 62 B |
BIN
theme/basic/mobile/skin/shop/basic/img/arr_up01.gif
Normal file
|
After Width: | Height: | Size: 64 B |
BIN
theme/basic/mobile/skin/shop/basic/img/best_btn.gif
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
theme/basic/mobile/skin/shop/basic/img/del_btn.gif
Normal file
|
After Width: | Height: | Size: 348 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_best.gif
Normal file
|
After Width: | Height: | Size: 94 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_cp.gif
Normal file
|
After Width: | Height: | Size: 71 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_discount.gif
Normal file
|
After Width: | Height: | Size: 83 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_hit.gif
Normal file
|
After Width: | Height: | Size: 76 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_new.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_rec.gif
Normal file
|
After Width: | Height: | Size: 78 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_secret.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
theme/basic/mobile/skin/shop/basic/img/icon_soldout.gif
Normal file
|
After Width: | Height: | Size: 79 B |
BIN
theme/basic/mobile/skin/shop/basic/img/item_bg.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
theme/basic/mobile/skin/shop/basic/img/item_btn.png
Normal file
|
After Width: | Height: | Size: 754 B |
BIN
theme/basic/mobile/skin/shop/basic/img/loading.gif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
theme/basic/mobile/skin/shop/basic/img/mainlist_btn.gif
Normal file
|
After Width: | Height: | Size: 168 B |
BIN
theme/basic/mobile/skin/shop/basic/img/personal.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
theme/basic/mobile/skin/shop/basic/img/prd_icon.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sbmn_bg.gif
Normal file
|
After Width: | Height: | Size: 49 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sct_bg_toright.gif
Normal file
|
After Width: | Height: | Size: 53 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_fb.png
Normal file
|
After Width: | Height: | Size: 633 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_fb_s.png
Normal file
|
After Width: | Height: | Size: 521 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_goo.png
Normal file
|
After Width: | Height: | Size: 967 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_goo_s.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_kakao.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_kakao_s.png
Normal file
|
After Width: | Height: | Size: 972 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_twt.png
Normal file
|
After Width: | Height: | Size: 783 B |
BIN
theme/basic/mobile/skin/shop/basic/img/sns_twt_s.png
Normal file
|
After Width: | Height: | Size: 549 B |
504
theme/basic/mobile/skin/shop/basic/item.form.skin.php
Normal file
@ -0,0 +1,504 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
|
||||
<script>
|
||||
// 사용할 앱의 Javascript 키를 설정해 주세요.
|
||||
Kakao.init("<?php echo $config['cf_kakao_js_apikey']; ?>");
|
||||
</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 = 280; // 넓이
|
||||
$thumb_img_h = 280; // 높이
|
||||
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 '<button type="button" id="sit_pvi_prev" class="sit_pvi_btn" >이전</button>'.PHP_EOL;
|
||||
echo '<button type="button" id="sit_pvi_next" class="sit_pvi_btn">다음</button>'.PHP_EOL;
|
||||
echo '<ul id="sit_pvi_slide" style="width:'.$thumb_img_w.'px;height:'.$thumb_img_h.'px">'.PHP_EOL;
|
||||
echo $thumb_img;
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<section id="sit_ov">
|
||||
<h2>상품간략정보 및 구매기능</h2>
|
||||
<strong id="sit_title"><?php echo stripslashes($it['it_name']); ?></strong>
|
||||
<?php if($is_orderable) { ?>
|
||||
<p id="sit_opt_info">
|
||||
상품 선택옵션 <?php echo $option_count; ?> 개, 추가옵션 <?php echo $supply_count; ?> 개
|
||||
</p>
|
||||
<?php } ?>
|
||||
<div id="sit_star">
|
||||
<?php
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
|
||||
if ($score = get_star_image($it['it_id'])) { ?>
|
||||
고객선호도 <span>별<?php echo $score?>개</span>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $score?>.png" alt="" class="sit_star">
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<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"><label for="disp_point">포인트</label></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>
|
||||
<?php
|
||||
if($option_item) {
|
||||
?>
|
||||
<section>
|
||||
<h3>선택옵션</h3>
|
||||
<table class="sit_op_sl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php // 선택옵션
|
||||
echo $option_item;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($supply_item) {
|
||||
?>
|
||||
<section>
|
||||
<h3>추가옵션</h3>
|
||||
<table class="sit_op_sl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<?php // 추가옵션
|
||||
echo $supply_item;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</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']; ?>">
|
||||
<span class="sit_opt_subj"><?php echo $it['it_name']; ?></span>
|
||||
<span class="sit_opt_prc">(+0원)</span>
|
||||
<div class="sit_opt_qty">
|
||||
<input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="<?php echo $it['it_buy_min_qty']; ?>" class="frm_input" size="5">
|
||||
<button type="button" class="sit_qty_plus">증가</button>
|
||||
<button type="button" class="sit_qty_minus">감소</button>
|
||||
</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="CART" id="sit_btn_cart">
|
||||
<input type="submit" onclick="document.pressed=this.value;" value="BUY NOW" id="sit_btn_buy">
|
||||
<?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_buy">재입고알림</a>
|
||||
<?php } ?>
|
||||
<a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">WISH</a>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div id="sit_sns">
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_goo.png'); ?>
|
||||
<?php echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png'); ?>
|
||||
<a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a>
|
||||
<?php
|
||||
$href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
||||
?>
|
||||
</div>
|
||||
<aside id="sit_siblings">
|
||||
<h2>다른 상품 보기</h2>
|
||||
<?php
|
||||
if ($prev_href || $next_href) {
|
||||
echo $prev_href.$prev_title.$prev_href2;
|
||||
echo $next_href.$next_title.$next_href2;
|
||||
} else {
|
||||
echo '<span class="sound_only">이 분류에 등록된 다른 상품이 없습니다.</span>';
|
||||
}
|
||||
?>
|
||||
</aside>
|
||||
|
||||
<ul id="sit_more">
|
||||
<li><a href="<?php echo $href; ?>" target="_blank">DETAIL</a></li>
|
||||
<?php if ($default['de_baesong_content']) { ?><li><a href="<?php echo $href; ?>&info=dvr" target="_blank">INFO</a></li><?php } ?>
|
||||
|
||||
<li><a href="<?php echo $href; ?>&info=use" target="_blank">REVIEW<span class="item_use_count"><?php echo $item_use_count; ?></span></a></li>
|
||||
<li><a href="<?php echo $href; ?>&info=qa" target="_blank">Q&A<span class="item_qa_count"><?php echo $item_qa_count; ?></span></a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</form>
|
||||
|
||||
<?php if($default['de_mobile_rel_list_use']) { ?>
|
||||
<!-- 관련상품 시작 { -->
|
||||
<section id="sit_rel">
|
||||
<h2>WITH ITEM</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(){
|
||||
// 상품이미지 슬라이드
|
||||
var time = 500;
|
||||
var idx = idx2 = 0;
|
||||
var slide_width = $("#sit_pvi_slide").width();
|
||||
var slide_count = $("#sit_pvi_slide li").size();
|
||||
$("#sit_pvi_slide li:first").css("display", "block");
|
||||
if(slide_count > 1)
|
||||
$(".sit_pvi_btn").css("display", "inline");
|
||||
|
||||
$("#sit_pvi_prev").click(function() {
|
||||
if(slide_count > 1) {
|
||||
idx2 = (idx - 1) % slide_count;
|
||||
if(idx2 < 0)
|
||||
idx2 = slide_count - 1;
|
||||
$("#sit_pvi_slide li:hidden").css("left", "-"+slide_width+"px");
|
||||
$("#sit_pvi_slide li:eq("+idx+")").filter(":not(:animated)").animate({ left: "+="+slide_width+"px" }, time, function() {
|
||||
$(this).css("display", "none").css("left", "-"+slide_width+"px");
|
||||
});
|
||||
$("#sit_pvi_slide li:eq("+idx2+")").css("display", "block").filter(":not(:animated)").animate({ left: "+="+slide_width+"px" }, time,
|
||||
function() {
|
||||
idx = idx2;
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
$("#sit_pvi_next").click(function() {
|
||||
if(slide_count > 1) {
|
||||
idx2 = (idx + 1) % slide_count;
|
||||
$("#sit_pvi_slide li:hidden").css("left", slide_width+"px");
|
||||
$("#sit_pvi_slide li:eq("+idx+")").filter(":not(:animated)").animate({ left: "-="+slide_width+"px" }, time, function() {
|
||||
$(this).css("display", "none").css("left", slide_width+"px");
|
||||
});
|
||||
$("#sit_pvi_slide li:eq("+idx2+")").css("display", "block").filter(":not(:animated)").animate({ left: "-="+slide_width+"px" }, time,
|
||||
function() {
|
||||
idx = idx2;
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// 상품이미지 크게보기
|
||||
$(".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;
|
||||
});
|
||||
});
|
||||
|
||||
// 상품보관
|
||||
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(G5_SHOP_URL."/item.php?it_id=$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 fitem_submit(f)
|
||||
{
|
||||
if (document.pressed == "CART") {
|
||||
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").size() < 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>
|
||||
12
theme/basic/mobile/skin/shop/basic/iteminfo.change.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);
|
||||
?>
|
||||
|
||||
<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/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 -->
|
||||
12
theme/basic/mobile/skin/shop/basic/iteminfo.itemqa.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);
|
||||
?>
|
||||
|
||||
<h1 class="tit_no">상품문의</h1>
|
||||
|
||||
<div id="itemqa" class="win_desc">
|
||||
<?php include_once('./itemqa.php'); ?>
|
||||
</div>
|
||||
12
theme/basic/mobile/skin/shop/basic/iteminfo.itemuse.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);
|
||||
?>
|
||||
|
||||
<h1 class="tit_no">사용후기</h1>
|
||||
|
||||
<div id="itemuse" class="win_desc">
|
||||
<?php include_once('./itemuse.php'); ?>
|
||||
</div>
|
||||
@ -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>
|
||||
152
theme/basic/mobile/skin/shop/basic/itemqa.skin.php
Normal file
@ -0,0 +1,152 @@
|
||||
<?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>
|
||||
<a href="<?php echo $itemqa_form; ?>" class="itemqa_form qa_wr">상품문의 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
|
||||
<!-- 상품문의 목록 시작 { -->
|
||||
<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"><b><?php echo $iq_num; ?>.</b> <?php echo $iq_subject; ?></button>
|
||||
<dl class="sit_qa_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $iq_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?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><br>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<?php if(!$is_secret) { ?>
|
||||
<div class="sit_qa_qaa">
|
||||
<span class="sit_alp">A</span>
|
||||
<strong>답변</strong><br>
|
||||
<?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, "./itemqa.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_qa_wbtn">
|
||||
<a href="<?php echo $itemqa_list; ?>" id="itemqa_list" class="btn01">더보기 +</a>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<!-- } 상품문의 목록 끝 -->
|
||||
67
theme/basic/mobile/skin/shop/basic/itemqaform.skin.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?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="./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="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">옵션</th>
|
||||
<td>
|
||||
<input type="checkbox" name="iq_secret" value="1" <?php echo $chk_secret; ?>>
|
||||
<label for="iq_secret">비밀글</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_email">이메일</label></th>
|
||||
<td><input type="email" name="iq_email" value="<?php echo $qa['iq_email']; ?>" class="frm_input" size="30"> 이메일을 입력하시면 답변 등록 시 답변이 이메일로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="iq_hp" value="<?php echo $qa['iq_hp']; ?>" class="frm_input" size="20"> 휴대폰번호를 입력하시면 답변 등록 시 답변등록 알림이 SMS로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo $editor_html; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="win_btn">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
<button type="button" onclick="self.close();">닫기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemqa_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 상품문의 쓰기 끝 -->
|
||||
145
theme/basic/mobile/skin/shop/basic/itemqalist.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);
|
||||
?>
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
|
||||
|
||||
<!-- 전체 상품 문의 목록 시작 { -->
|
||||
<form method="get" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
|
||||
<div id="sqa_sch">
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">전체보기</a>
|
||||
<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.is_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="required frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</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 .= ' <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);
|
||||
}
|
||||
|
||||
$it_href = G5_SHOP_URL.'/item.php?it_id='.$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'], 70, 70); ?>
|
||||
<span><?php echo $row['it_name']; ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<section class="sqa_section">
|
||||
<h2><?php echo $iq_subject; ?></h2>
|
||||
|
||||
<dl class="sqa_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo get_text($row['iq_name']); ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo substr($row['iq_time'],0,10); ?></dd>
|
||||
<dt>상태</dt>
|
||||
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sqa_con_<?php echo $i; ?>" class="sqa_con" style="display:none;">
|
||||
<div class="sit_qa_qaq">
|
||||
<strong>문의내용</strong><br>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<?php if(!$is_secret) { ?>
|
||||
<div class="sit_qa_qaa">
|
||||
<strong>답변</strong><br>
|
||||
<?php echo $iq_answer; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="sqa_con_btn"><button class="sqa_con_<?php echo $i; ?>">보기</button></div>
|
||||
</section>
|
||||
|
||||
</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).text("보기");
|
||||
} else {
|
||||
$(".sqa_con_btn button").text("보기");
|
||||
$("div[id^=sqa_con]:visible").hide();
|
||||
$con.slideDown(
|
||||
function() {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
);
|
||||
$(this).text("닫기");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 전체 상품 사용후기 목록 끝 -->
|
||||
116
theme/basic/mobile/skin/shop/basic/itemuse.skin.php
Normal file
@ -0,0 +1,116 @@
|
||||
<?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>
|
||||
<a href="<?php echo $itemuse_form; ?>" class="qa_wr itemuse_form " onclick="return false;">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
|
||||
<!-- 상품 사용후기 시작 { -->
|
||||
<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_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$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"><b><?php echo $is_num; ?>.</b> <?php echo $is_subject; ?></button>
|
||||
<dl class="sit_use_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $is_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?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 } ?>
|
||||
</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, "./itemuse.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_use_wbtn">
|
||||
<a href="<?php echo $itemuse_list; ?>" id="itemuse_list" class="btn01">더보기 +</a>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<!-- } 상품 사용후기 끝 -->
|
||||
85
theme/basic/mobile/skin/shop/basic/itemuseform.skin.php
Normal file
@ -0,0 +1,85 @@
|
||||
<?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="./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="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><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"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo $editor_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<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">매우만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score8" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="3" id="is_score6" <?php echo ($is_score==3)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score4" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="1" id="is_score2" <?php echo ($is_score==1)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="win_btn">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
<button type="button" onclick="self.close();">닫기</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 사용후기 쓰기 끝 -->
|
||||
108
theme/basic/mobile/skin/shop/basic/itemuselist.skin.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?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">
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">전체보기</a>
|
||||
<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="required frm_input" size="10">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</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 = sql_fetch(" select it_name from {$g5['g5_shop_item_table']} where it_id = '{$row['it_id']}' ");
|
||||
$it_href = G5_SHOP_URL."/item.php?it_id={$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">
|
||||
<h2><?php echo get_text($row['is_subject']); ?></h2>
|
||||
|
||||
<dl class="sps_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo get_text($row['is_name']); ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo substr($row['is_time'],0,10); ?></dd>
|
||||
<dt>평가점수</dt>
|
||||
<dd><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sps_con_<?php echo $i; ?>" style="display:none;">
|
||||
<?php echo $is_content; // 사용후기 내용 ?>
|
||||
</div>
|
||||
|
||||
<div class="sps_con_btn"><button class="sps_con_<?php echo $i; ?>">보기</button></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(){
|
||||
// 사용후기 더보기
|
||||
$(".sps_con_btn button").click(function(){
|
||||
var $con = $(this).parent().prev();
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
$(this).text("보기");
|
||||
} else {
|
||||
$(".sps_con_btn button").text("보기");
|
||||
$("div[id^=sps_con]:visible").hide();
|
||||
$con.slideDown(
|
||||
function() {
|
||||
// 이미지 리사이즈
|
||||
$con.viewimageresize2();
|
||||
}
|
||||
);
|
||||
$(this).text("닫기");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 전체 상품 사용후기 목록 끝 -->
|
||||
91
theme/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();">창닫기</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.size() < 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>
|
||||
80
theme/basic/mobile/skin/shop/basic/list.10.skin.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php if($config['cf_kakao_js_apikey']) { ?>
|
||||
<script src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
|
||||
<script>
|
||||
// 사용할 앱의 Javascript 키를 설정해 주세요.
|
||||
Kakao.init("<?php echo $config['cf_kakao_js_apikey']; ?>");
|
||||
</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++) {
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"sct_wrap\" 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>\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\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 "<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";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
173
theme/basic/mobile/skin/shop/basic/list.best.10.skin.php
Normal file
@ -0,0 +1,173 @@
|
||||
<?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++) {
|
||||
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><span class="best_icon">베스트상품</span></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.size();
|
||||
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
|
||||
}
|
||||
?>
|
||||
27
theme/basic/mobile/skin/shop/basic/list.sort.skin.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sct_sort_href = $_SERVER['SCRIPT_NAME'].'?';
|
||||
if($ca_id)
|
||||
$sct_sort_href .= 'ca_id='.$ca_id;
|
||||
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_SHOP_CSS_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 상품 정렬 선택 시작 { -->
|
||||
<section id="sct_sort">
|
||||
<h2>상품 정렬</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc" class="btn01">낮은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc" class="btn01">높은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_name&sortodr=asc" class="btn01">상품명순</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- } 상품 정렬 선택 끝 -->
|
||||
36
theme/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="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</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 } ?>
|
||||
81
theme/basic/mobile/skin/shop/basic/main.10.skin.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?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"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
|
||||
<script>
|
||||
// 사용할 앱의 Javascript 키를 설정해 주세요.
|
||||
Kakao.init("<?php echo $config['cf_kakao_js_apikey']; ?>");
|
||||
</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++) {
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"sct_wrap\" 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>\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\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 "<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";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
48
theme/basic/mobile/skin/shop/basic/main.event.skin.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?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(mysql_num_rows($hresult)) {
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
<div class="sct_wrap">
|
||||
<header>
|
||||
<h2>EVENT</h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 이벤트 모음</p>
|
||||
</header>
|
||||
|
||||
<ul id="sev">
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
|
||||
echo '<li>';
|
||||
$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;
|
||||
}
|
||||
echo '</li>'.PHP_EOL;
|
||||
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
echo '<li id="sev_empty">이벤트 없음</li>'.PHP_EOL;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
76
theme/basic/mobile/skin/shop/basic/mainbanner.10.skin.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$max_width = $max_height = 0;
|
||||
$bn_first_class = ' class="bn_first"';
|
||||
$bn_slide_btn = '';
|
||||
$bn_sl = ' class="bn_sl"';
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($i==0) echo '<div id="main_bn" class="swipe">'.PHP_EOL.'<ul class="slide-wrap bn_img">'.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 '<li'.$bn_first_class.'>'.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'].'" width="'.$size[0].'" alt="'.$row['bn_alt'].'"'.$bn_border.'>';
|
||||
if($banner)
|
||||
echo '</a>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
|
||||
$bn_first_class = '';
|
||||
$bn_slide_btn .= '<button type="button"'.$bn_sl.'>'.$row['bn_alt'].' 배너이미지</button>'.PHP_EOL;
|
||||
$bn_sl = '';
|
||||
}
|
||||
}
|
||||
|
||||
if ($i > 0) {
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '<div class="bn_silde_btn">'.$bn_slide_btn.'</div>'.PHP_EOL;
|
||||
echo '</div>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#main_bn").bannerSlide({
|
||||
wrap: ".slide-wrap",
|
||||
slides: ".slide-wrap > li",
|
||||
buttons: ".bn_silde_btn > button",
|
||||
btnActive: "bn_sl",
|
||||
startSlide: 0,
|
||||
auto: 0
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
38
theme/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="./list.php?ca_id='.$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/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";
|
||||
?>
|
||||
<!-- } 개인결제진열 끝 -->
|
||||
81
theme/basic/mobile/skin/shop/basic/relation.10.skin.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?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"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakaolink.js"></script>
|
||||
<script>
|
||||
// 사용할 앱의 Javascript 키를 설정해 주세요.
|
||||
Kakao.init("<?php echo $config['cf_kakao_js_apikey']; ?>");
|
||||
</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++) {
|
||||
if ($i == 0) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"sct_wrap\" 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>\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<div class=\"sct_img\"><a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\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 "<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";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 0) echo "</ul>\n";
|
||||
|
||||
if($i == 0) echo "<p class=\"sct_noitem\">등록된 관련상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
318
theme/basic/mobile/skin/shop/basic/style.css
Normal file
@ -0,0 +1,318 @@
|
||||
@charset "utf-8";
|
||||
/* SIR 지운아빠 */
|
||||
|
||||
/* ##### maint.(nn).skin.php, list.(nn).skin.php 공통 적용 시작 ##### */
|
||||
/* 공통 */
|
||||
.sct_wrap {margin:0 0 30px;zoom:1}
|
||||
.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_wrap header {margin:0 0 20px;zoom:1}
|
||||
.sct_wrap header:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_wrap h2 {padding:10px 0 0;line-height:1em;text-align:center;font-weight:bold; letter-spacing:0.3em}
|
||||
.sct_wrap h2 a {text-decoration:none}
|
||||
.sct_wrap h2 a:hover{color:#34b5a1}
|
||||
.sct_wrap_hdesc {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
.sct {margin:10px 5px 0 ;padding:0;list-style:none;zoom:1;clear:both;}
|
||||
.sct:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_li {position:relative;text-align:center}
|
||||
.sct_noitem {padding:50px 0;text-align:center}
|
||||
.sct_icon img {margin:0 1px 0 0}
|
||||
.sct_sns a {display:inline-block;margin:0 4px 0 0}
|
||||
.sct_sns button {margin:0 4px 0 0;padding:0;border:0}
|
||||
|
||||
.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 .sct_li {position:relative;float:left;margin-bottom:10px}
|
||||
.sct_10 .sct_last {margin:0 0 15px !important}
|
||||
.sct_10 .sct_clear {clear:both;}
|
||||
.sct_10 .sct_a {display:block;text-decoration:none;font-weight:bold; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;line-height:20px}
|
||||
.sct_10 .sct_a img{width:100%;height:auto}
|
||||
.sct_10 .sct_id {display:block;margin:0 0 5px}
|
||||
.sct_10 .sct_basic {margin:0 0 10px}
|
||||
.sct_10 .sct_cost {display:block;margin:0 0 5px;font-size:0.917em}
|
||||
.sct_10 .sct_cost strike {display:block;margin:0 0 5px;color:#999;font-weight:normal}
|
||||
.sct_10 .sct_icon {margin:0 0 10px}
|
||||
.sct_10 .sct_sns {margin:15px 0 0}
|
||||
.sct_10 .sct_img{margin:0 5px 5px ;}
|
||||
.li_more{text-align:center}
|
||||
.li_more img{width:30px;margin:5px 0}
|
||||
.li_more p{color:#aaa;margin-top:5px;display:none;}
|
||||
.li_more button{background:#fff;border:3px double #e9e9e9;width:205px;padding:8px 0 ;font-size:0.917em;color:#797979;margin-top:15px}
|
||||
|
||||
/* 관련상품 목록 스킨 10 */
|
||||
#sit_rel h2{text-align:center;margin:20px 0;letter-spacing:0.3em}
|
||||
|
||||
/* 베스트상품 스킨 10 */
|
||||
#best_item{border-bottom:1px solid #e9e9e9;padding:20px 0 10px 5px;overflow:hidden;position:relative}
|
||||
#best_item h2{position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#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 .sct_best{width:100%;position:relative;padding:0;float:left;}
|
||||
#best_item .best_on{}
|
||||
.sct_best .sct_li {position:relative;float:left;}
|
||||
.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 ;}
|
||||
.sct_best .best_icon{background:url(img/prd_icon.png) no-repeat;position:absolute;top:0;left:0;font-size:0;width:25px;height:25px; display:inline-block;z-index:999;overflow:hidden;text-indent:-99999px}
|
||||
.bst_silde_btn{text-align:center;margin:5px 0 10px}
|
||||
.bst_silde_btn button{background:url(img/best_btn.gif) no-repeat 5px 5px; width:20px;height:20px;text-indent:-999px;font-size:0;border:none;}
|
||||
.bst_silde_btn button.bst_sl{background-position:-11px 5px }
|
||||
|
||||
/* 개인결제 목록 */
|
||||
.sct_pv {margin-top:10px}
|
||||
.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{border:1px solid #e2edef}
|
||||
.sct_pv .sct_img img{width:100%;}
|
||||
.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;}
|
||||
.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 {}
|
||||
.sct_admin {margin:0 0 10px;text-align:right}
|
||||
|
||||
/* 상품 목록 현재 위치 */
|
||||
#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%;border-bottom:1px solid #e9e9e9; background:#f9f9f9;}
|
||||
.sct_ct h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
.sct_ct ul {list-style:none;display:inline-block;margin:0;padding:5px 0}
|
||||
.sct_ct ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sct_ct ul li {display:inline-block;background:url(img/sbmn_bg.gif) no-repeat left 50%;padding:0 15px 0 20px;letter-spacing:0.2em;font-size:0.917em;line-height:30px}
|
||||
.sct_ct ul li:first-child{background:none}
|
||||
.sct_ct a {text-decoration:none;color:#656565}
|
||||
.sct_ct_parent {font-weight:bold}
|
||||
.sct_ct_here {color:#ff3600 !important}
|
||||
|
||||
#sct_ct_2 li {margin:0 0 10px}
|
||||
#sct_ct_2 a {display:inline-block;width:120px}
|
||||
#sct_ct_3 li {float:left;margin:0 10px 10px 0;width:120px}
|
||||
|
||||
/* 상품 정렬 */
|
||||
#sct_sort {padding:10px 10px 0;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 ul {margin:0;padding:0 0 0 1px;list-style:none;}
|
||||
#sct_sort ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sct_sort li {float:left;position:relative;margin-left:-1px;width:33.33%}
|
||||
#sct_sort li a{display:block;text-align:center;color:#8d8d8d;background:#fff;border-color:#e9e9e9;font-size:0.917em}
|
||||
|
||||
/* 상품 리스트 스타일 선택 */
|
||||
#sct_lst {float:right;margin:10px 0;padding:0;list-style:none}
|
||||
#sct_lst:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sct_lst li {position:relative;float:left;margin:0 0 0 -1px}
|
||||
#sct_lst button {position:relative;margin:0 0 0 -1px;padding:0;width:25px;height:25px;border:1px solid #ccc}
|
||||
#sct_lst button span {position:absolute;top:0;left:0;width:100%;height:100%;background:url('../shop/img/is_button.gif')}
|
||||
#sct_lst button.sct_lst_list span {background-position:0 0}
|
||||
#sct_lst button.sct_lst_list span.sct_lst_on {background-position:0 -30px}
|
||||
#sct_lst button.sct_lst_gallery span {background-position:-30px 0}
|
||||
#sct_lst button.sct_lst_gallery span.sct_lst_on {background-position:-30px -30px}
|
||||
|
||||
/* 상품 상세보기 */
|
||||
#sit {margin: 0;border-top:1px solid #e9e9e9}
|
||||
.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;border-bottom:1px solid #e9e9e9;text-align:center}
|
||||
#sit_pvi_prev {position:absolute;top:50%;left:0;background:url(img/item_btn.png) no-repeat;width:27px;height:45px;text-indent:-9999px;margin-top:-20px;}
|
||||
#sit_pvi_next {position:absolute;top:50%;right:0;background:url(img/item_btn.png) no-repeat -40px 0;margin-top:-20px;width:27px;height:45px;text-indent:-9999px}
|
||||
.sit_pvi_btn {display:none;z-index:10;width:20px;border:0;background:#f2f5f9}
|
||||
#sit_pvi_slide {position:relative;margin:0 auto;padding:0;list-style:none;overflow-x:hidden}
|
||||
#sit_pvi_slide li {display:none;position:absolute;left:0;top:0}
|
||||
#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 {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 {float:left;margin:0 0 1px 1px}
|
||||
#sit_pvi_nw li img {width:60px;height:60px}
|
||||
|
||||
/* 상품 상세보기 - 간략정보 및 구매기능 */
|
||||
#sit_ov {position:relative;padding: 0;height:auto !important;}
|
||||
#sit_ov h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_ov h3 {margin:0 0 10px}
|
||||
#sit_ov section{margin: 10px;padding-bottom:10px}
|
||||
|
||||
#sit_title {display:block;margin:10px 10px 0;font-size:1.2em;}
|
||||
#sit_desc {display:inline-block;margin:0 0 10px;color:#999}
|
||||
#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 {margin:10px 10px;background:#f6f6f6;padding:0 10px;border-top:1px solid #e9e9e9;border:1px solid #e9e9e9;}
|
||||
.sit_ov_tbl table{border-collapse:collapse;width:100%;border:0;font-size:0.917em}
|
||||
.sit_ov_tbl th {border-top:1px solid #e9e9e9;font-weight:normal;text-align:left;padding:9px 0;}
|
||||
.sit_ov_tbl td {padding:5px 0;border-top:1px solid #e9e9e9}
|
||||
.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_op_sl{width:100%;border-collapse:collapse;border:1px solid #e9e9e9;}
|
||||
.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 {margin:0 0 20px;color:#ff3061;font-weight:bold;text-align:center}
|
||||
#sit_ov_btn {margin:0;padding:0 10px;text-align:center;}
|
||||
#sit_ov_btn:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_ov_btn a {display:inline-block;padding: 0;vertical-align:middle;text-decoration:none;letter-spacing:0.3em;line-height:40px;height:40px}
|
||||
#sit_ov_btn input {padding:0;border:none;letter-spacing:0.3em;height:42px;line-height:42px}
|
||||
#sit_btn_cart{background:#34b5a1;color:#fff;width:100%}
|
||||
#sit_btn_buy, #sit_btn_wish {border:1px solid #34b5a1 !important;color:#34b5a1;width:49%;background:#fff;margin-top:5px}
|
||||
#sit_btn_buy{float:left}
|
||||
#sit_btn_wish{float:right }
|
||||
#sit_btn_rec {background:#333;font-size:0.92em;color:#fff;padding:0 3px;height:25px;line-height:25px;display:inline-block;vertical-align:middle}
|
||||
#sit_sns{text-align:center; padding-bottom:20px;border-bottom:1px solid #e9e9e9;}
|
||||
#sit_sel_option,#sit_tot_price{padding:0 10px}
|
||||
|
||||
/* 상품 상세보기 - 다른 상품 보기 */
|
||||
#sit_siblings {text-align:center;position:relative}
|
||||
#sit_siblings h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_siblings a {display:inline-block;background:#383838;color:#fff}
|
||||
#sit_siblings a#siblings_prev {position:absolute;bottom:20px;left:10px;background: url(img/mainlist_btn.gif) no-repeat; width: 30px; height: 30px;text-indent:-999px;overflow:hidden}
|
||||
#sit_siblings a#siblings_next {position:absolute;bottom:20px;right:10px;background: url(img/mainlist_btn.gif) no-repeat -33px 0; width: 30px; height: 30px;text-indent:-999px;overflow:hidden}
|
||||
#sit_siblings a span {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
/* 상품 상세보기 하단 버튼 */
|
||||
#sit_more {-webkit-backface-visibility: hidden;padding:0;background-color: rgba(0, 0, 0, 0.8);position:fixed;bottom:0;left:0;width:100%;z-index:9999}
|
||||
#sit_more:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sit_more li {position:relative;width:25%;float:left;letter-spacing:0.2em;background:url(img/item_bg.gif) no-repeat left 17px;}
|
||||
#sit_more li:first-child{background:none}
|
||||
#sit_more a {display:block;padding:15px 0 15px 2px;text-align:center;color:#fff}
|
||||
.item_use_count,.item_qa_count{color:#999;padding-left:2px}
|
||||
|
||||
/* 상품 상세보기 - 상품정보 */
|
||||
.close_btn{margin:30px 10px 10px;}
|
||||
#iteminfo_close{width:100%;background:#000;border:none;color:#fff;padding:10px 0;}
|
||||
#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{background:#f5f5f5;color:#444;padding:10px; border:1px solid #e9e9e9;text-align:center;}
|
||||
|
||||
/* 상품 상세보기 - 사용후기 */
|
||||
.tit_no{position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
#sit_use {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
|
||||
#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;width:100%;border:0;background:transparent;text-align:left}
|
||||
.sit_use_li_title b{font-weight:normal;margin-right:2px}
|
||||
.sit_use_dl {margin:0;padding:0 10px;position:relative}
|
||||
.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_con {display:none;padding:10px 10px 0}
|
||||
.sit_use_p {margin:0 0 10px;padding:10px;background:#f2f2f2}
|
||||
.sit_use_cmd {text-align:right}
|
||||
.sit_use_cmd a.btn01{padding: 5px;}
|
||||
#sit_use_wbtn {margin:0 0 5px;text-align:center}
|
||||
#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_star {margin:0;padding:0;list-style:none}
|
||||
|
||||
/* 상품 상세보기 - 상품문의 */
|
||||
#sit_qa {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
|
||||
#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;width:100%;border:0;background:transparent;text-align:left}
|
||||
.sit_qa_li_title b{font-weight:normal;margin-right:2px}
|
||||
.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:#eee;padding:5px 8px;color:#888;border-radius:15px}
|
||||
.sit_qa_dl dd.sit_qaa_done{background:#ff3e5e;color:#fff}
|
||||
.sit_qa_con {display:none;padding:10px 10px 0}
|
||||
.sit_qa_p {margin:0 0 10px;border:1px solid #e9e9e9;background:#fff;padding:0 10px;background:#f2f2f2;}
|
||||
.sit_qa_p strong {display:inline-block;margin:0 0 10px;}
|
||||
.sit_qa_p span.sit_alp{position:absolute;top:10px;left:0;background:#000;color:#fff;color:#fff;font-size:1.2em;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:10px 0 10px 30px;position:relative}
|
||||
.sit_qa_qaa {border-top:1px dotted #ddd}
|
||||
.sit_qa_qaa span.sit_alp{background:#5b5b5b}
|
||||
.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 5px;text-align:center}
|
||||
#sit_qa_w {display:none}
|
||||
a.qa_wr{padding:10px 0;display:block;width:100%;text-align:center;background:#34b5a1;color:#fff;margin:10px 0}
|
||||
#itemqa_list,#itemuse_list{ background: #fff; border: 3px double #e9e9e9; width: 205px; padding: 8px 0; font-size: 0.917em; color: #797979; margin-top: 15px;}
|
||||
|
||||
/* 쇼핑몰 이벤트 */
|
||||
#sev {margin:0 10px;padding:0 15px;list-style:none;border:3px double #d6d6d6}
|
||||
#sev li {border-top:1px solid #f2f2f2;padding:10px 0 ;text-align:center}
|
||||
#sev li:first-child{border:none}
|
||||
#sev li a{display:block}
|
||||
#sev li a:hover{color:#34b5a1;}
|
||||
#sev li img{width:100%}
|
||||
.sev_admin{padding:10px 10px 0}
|
||||
|
||||
/* 로딩안내 레이어 */
|
||||
#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}
|
||||
@ -1,5 +1,10 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if(G5_COMMUNITY_USE === false) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
return;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||