모바일 사용자 화면 UI 및 기능 개선

This commit is contained in:
chicpro
2015-07-09 09:48:15 +09:00
parent 7846117b62
commit c7e85d5794
87 changed files with 1854 additions and 1316 deletions

View File

@ -34,6 +34,7 @@ $cart_count = mysql_num_rows($result);
<div id="sod_chk">
<label for="ct_all" class="sound_only">상품 전체</label>
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked>
전체상품 선택
</div>
<?php } ?>
@ -60,14 +61,14 @@ $cart_count = mysql_num_rows($result);
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><strong>';
$a2 = '</strong></a>';
$image_width = 50;
$image_height = 50;
$image_width = 80;
$image_height = 80;
$image = get_it_image($row['it_id'], $image_width, $image_height);
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
$it_options = print_item_options($row['it_id'], $s_cart_id);
if($it_options) {
$mod_options = '<div class="li_mod"><button type="button" id="mod_opt_'.$row['it_id'].'" class="mod_btn mod_options">선택사항수정</button></div>';
$mod_options = '<button type="button" id="mod_opt_'.$row['it_id'].'" class="mod_btn mod_options">선택사항수정</button>';
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
}
@ -106,18 +107,19 @@ $cart_count = mysql_num_rows($result);
</div>
<div class="li_name">
<?php echo $it_name; ?>
<span class="total_img"><?php echo $image; ?></span>
<div class="li_mod" style="padding-left:<?php echo $image_width + 20; ?>px;"><?php echo $mod_options; ?></div>
</div>
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_sc"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
</div>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<span class="total_img"><?php echo $image; ?></span>
<div class="li_total">
<span class="total_price total_span"><span>소계 </span><strong><?php echo number_format($sell_price); ?></strong></span>
<span class="total_point total_span"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
</div>
<div class="li_mod"><?php echo $mod_options; ?></div>
</li>
<?php
@ -162,8 +164,8 @@ $cart_count = mysql_num_rows($result);
<input type="hidden" name="records" value="<?php echo $i; ?>">
<a href="<?php echo G5_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<button type="button" onclick="return form_check('buy');" class="btn_submit">주문하기</button>
<button type="button" onclick="return form_check('seldelete');" class="btn01">선택삭제</button>
<button type="button" onclick="return form_check('alldelete');" class="btn01">비우기</button>
<div><button type="button" onclick="return form_check('seldelete');" class="btn01">선택삭제</button>
<button type="button" onclick="return form_check('alldelete');" class="btn01">비우기</button></div>
<?php } ?>
</div>

View File

@ -1,69 +1,155 @@
<?php
include_once('./_common.php');
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$g5['title'] = '카테고리';
include_once(G5_PATH.'/head.sub.php');
function get_mshop_category($ca_id, $len)
{
global $g5;
$ca = $_GET['ca'];
$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 ";
if($ca) {
$ca_len = strlen($ca) + 2;
$sql_where = " where ca_id like '$ca%' and length(ca_id) = $ca_len ";
} else {
$sql_where = " where length(ca_id) = '2' ";
return $sql;
}
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']}
$sql_where
and ca_use = '1'
order by ca_order, ca_id ";
$result = sql_query($sql);
?>
<div id="sct_win">
<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;
<h1><?php echo $config['cf_title']; ?> 카테고리</h1>
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;
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
if($i == 0)
echo '<nav id="sct_win_nav"><h2>카테고리 목록</h2><ul>';
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;
$ca_href = G5_SHOP_URL.'/category.php?ca='.$row['ca_id'];
$list_href = G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id'];
?>
<li>
<a href="<?php echo $ca_href; ?>" class="sct_ct_view"><?php echo $row['ca_name']; ?></a>
<a href="<?php echo $list_href; ?>" class="sct_list_view">상품보기</a>
</li>
<?php
}
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;
if($i > 0)
echo '</ul></nav>';
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($i ==0) {
echo '<p id="sct_win_empty">하위 분류가 없습니다.</p>';
}
?>
if($n > 0)
echo '</ul>'.PHP_EOL;
?>
</li>
<?php
}
<div class="win_btn">
<?php if ($i == 0 || $ca) { ?><button onclick="javascript:history.back(-1);" class="btn02">돌아가기</button><?php } ?>
<button onclick="javascript:window.close();">창닫기</button>
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() {
$(".sct_list_view").click(function() {
window.opener.location = $(this).attr("href");
window.close();
return false;
$(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>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>

BIN
mobile/shop/img/add.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

BIN
mobile/shop/img/cart.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

BIN
mobile/shop/img/cate.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

BIN
mobile/shop/img/cate_op.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

BIN
mobile/shop/img/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

BIN
mobile/shop/img/del_btn.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

BIN
mobile/shop/img/paging.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

BIN
mobile/shop/img/sch.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

BIN
mobile/shop/img/sch2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

BIN
mobile/shop/img/select.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

View File

@ -9,13 +9,14 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<script src="<?php echo G5_JS_URL; ?>/swipe.js"></script>
<script src="<?php echo G5_JS_URL; ?>/shop.mobile.main.js"></script>
<div id="sidx" class="swipe">
<?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>히트상품</h2>
<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
@ -24,20 +25,19 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$list->set_type(1);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_cust_price', true);
$list->set_view('it_cust_price', false);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
$list->set_view('it_icon', false);
$list->set_view('sns', false);
echo $list->run();
?>
<div class="sct_more"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">더 보기</a></div>
</div>
<?php } ?>
<?php if($default['de_mobile_type2_list_use']) { ?>
<div class="sct_wrap">
<header>
<h2>추천상품</h2>
<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
@ -46,20 +46,19 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$list->set_type(2);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_cust_price', true);
$list->set_view('it_cust_price', false);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
$list->set_view('it_icon', false);
$list->set_view('sns', false);
echo $list->run();
?>
<div class="sct_more"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">더 보기</a></div>
</div>
<?php } ?>
<?php if($default['de_mobile_type3_list_use']) { ?>
<div class="sct_wrap">
<header>
<h2>최신상품</h2>
<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
@ -68,42 +67,40 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$list->set_type(3);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_cust_price', true);
$list->set_view('it_cust_price', false);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
$list->set_view('it_icon', false);
$list->set_view('sns', false);
echo $list->run();
?>
<div class="sct_more"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">더 보기</a></div>
</div>
<?php } ?>
<?php if($default['de_mobile_type4_list_use']) { ?>
<div class="sct_wrap">
<header>
<h2>인기상품</h2>
<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>
</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', true);
$list->set_view('it_cust_price', false);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
$list->set_view('it_icon', false);
$list->set_view('sns', false);
echo $list->run();
?>
<div class="sct_more"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">더 보기</a></div>
</div>
<?php } ?>
<?php if($default['de_mobile_type5_list_use']) { ?>
<div class="sct_wrap">
<header>
<h2>할인상품</h2>
<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
@ -112,45 +109,26 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$list->set_type(5);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_cust_price', true);
$list->set_view('it_cust_price', false);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
$list->set_view('it_icon', false);
$list->set_view('sns', false);
echo $list->run();
?>
<div class="sct_more"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">더 보기</a></div>
</div>
<?php } ?>
<?php
$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)) {
?>
<div class="sct_wrap">
<header>
<h2>이벤트</h2>
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 이벤트 모음</p>
</header>
<?php include_once(G5_MSHOP_SKIN_PATH.'/main.event.skin.php'); ?>
</div>
<?php
}
?>
</div>
</div>
<?php include_once(G5_MSHOP_SKIN_PATH.'/main.event.skin.php'); // 이벤트 ?>
<script>
$(function() {
$("#sidx").swipeSlide({
slides: ".swipe-wrap > div",
header: "header h2",
tabWrap: "slide_tab",
tabActive: "tab_active",
tabOffset: 10,
buttons: ".mli_btn > button",
startSlide: 0,
auto: 0
});

View File

@ -24,7 +24,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php } ?>
<div id="display_pay_button" class="btn_confirm">
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록"class="btn_submit"></span>
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록" class="btn_submit"></span>
<span id="show_pay_btn" style="display:none;"><input type="button" onClick="forderform_check();" value="주문하기" class="btn_submit"></span>
<a href="<?php echo G5_SHOP_URL; ?>" class="btn_cancel">취소</a>
</div>

View File

@ -182,13 +182,6 @@ $g5['title'] = $it['it_name'].' &gt; '.$it['ca_name'];
include_once(G5_MSHOP_PATH.'/_head.php');
// 분류 위치
// HOME > 1단계 > 2단계 ... > 5단계 분류
$ca_id = $it['ca_id'];
$nav_skin = $skin_dir.'/navigation.skin.php';
if(!is_file($nav_skin))
$nav_skin = G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
include $nav_skin;
// 상단 HTML
echo '<div id="sit_hhtml">'.conv_content($it['it_mobile_head_html'], 1).'</div>';

View File

@ -40,16 +40,6 @@ $sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_i
$row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
if ($default['de_mobile_rel_list_use']) {
// 관련상품의 개수를 얻음
$sql = " select count(*) as cnt
from {$g5['g5_shop_item_relation_table']} a
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
where a.it_id = '{$it['it_id']}' ";
$row = sql_fetch($sql);
$item_relation_count = $row['cnt'];
}
function pg_anchor($info) {
global $default;
global $it_id, $item_use_count, $item_qa_count, $item_relation_count;
@ -57,21 +47,17 @@ function pg_anchor($info) {
$href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
?>
<ul class="sanchor">
<li><a href="<?php echo $href; ?>" <?php if ($info == '') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="<?php echo $href; ?>&amp;info=use" <?php if ($info == 'use') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></a></li>
<li><a href="<?php echo $href; ?>&amp;info=qa" <?php if ($info == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="<?php echo $href; ?>&amp;info=dvr" <?php if ($info == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="<?php echo $href; ?>&amp;info=ex" <?php if ($info == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<?php if ($default['de_mobile_rel_list_use']) { ?>
<li><a href="<?php echo $href; ?>&amp;info=rel" <?php if ($info == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"><?php echo $item_relation_count; ?></span></a></li>
<?php } ?>
<li><button type="button" id="iteminfo_close" onclick="self.close();">창닫기</button></li>
<li><a href="<?php echo $href; ?>" <?php if ($info == '') echo 'class="sanchor_on"'; ?>>DETAIL</a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="<?php echo $href; ?>&amp;info=dvr" <?php if ($info == 'dvr') echo 'class="sanchor_on"'; ?>>INFO</a></li><?php } ?>
<li><a href="<?php echo $href; ?>&amp;info=use" <?php if ($info == 'use') echo 'class="sanchor_on"'; ?>>REVIEW<span class="item_use_count"><?php echo $item_use_count; ?></span></a></li>
<li><a href="<?php echo $href; ?>&amp;info=qa" <?php if ($info == 'qa') echo 'class="sanchor_on"'; ?>>Q&amp;A<span class="item_qa_count"><?php echo $item_qa_count; ?></span></a></li>
</ul>
<?php
}
?>
<script src="<?php echo G5_JS_URL; ?>/jquery.nicescroll.min.js"></script>
<div id="menu_list">
<?php echo pg_anchor($info); ?>
</div>
<div id="info_content" class="new_win">
<?php
@ -88,87 +74,13 @@ switch($info) {
case 'ex':
include_once(G5_MSHOP_SKIN_PATH.'/iteminfo.change.skin.php');
break;
case 'rel':
include_once(G5_MSHOP_SKIN_PATH.'/iteminfo.relation.skin.php');
break;
default:
include_once(G5_MSHOP_SKIN_PATH.'/iteminfo.info.skin.php');
break;
}
?>
</div>
<div id="menu_button" class="menu_hidden">
<button type="button">메뉴열기</button>
</div>
<div id="menu_list">
<?php echo pg_anchor($info); ?>
</div>
<script>
$(function() {
$("#menu_button button").on("click", function(e) {
if($("#menu_button").is(":animated") || $("#menu_list").is(":animated"))
return false;
var $this = $(this);
var mlh = $("#menu_list").outerHeight(true);
var duration = 200;
var ani_direction;
var button_text;
if($this.hasClass("menu_opened")) {
ani_direction = "-="+mlh;
button_text = "메뉴열기";
} else {
ani_direction = "+="+mlh;
button_text = "메뉴닫기";
}
$("#menu_button").animate(
{ bottom: ani_direction }, duration
);
$("#menu_list").animate(
{ bottom: ani_direction }, duration,
function() {
$this.toggleClass("menu_opened").html("<span></span>"+button_text);
}
);
});
});
$(window).on("load resize", function() {
content_scroll();
});
function content_scroll()
{
var sw = $(window).width();
var sh = $(window).height();
if (/iP(hone|od|ad)/.test(navigator.platform)) {
if(window.innerHeight - $(window).outerHeight(true) > 0)
sh += (window.innerHeight - $(window).outerHeight(true));
}
var mbh = $("#menu_button").outerHeight();
var mlh = $("#menu_list").outerHeight(true);
var pad = parseInt($("#info_content").css("padding-bottom"));
var ch = sh - pad;
$("#menu_button")
.css("bottom", 0)
.removeClass("menu_hidden")
.children().removeClass("menu_opened").html("<span></span>메뉴열기");
$("#menu_list")
.css("bottom", "-"+mlh+"px")
.removeClass("menu_hidden");
$("#info_content")
.height(ch)
.niceScroll();
}
</script>
<div class="close_btn"><button type="button" id="iteminfo_close" onclick="self.close();">창닫기</button></div>
<?php
include_once(G5_PATH.'/tail.sub.php');

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
$sfl = trim($_REQUEST['sfl']);
$stx = trim($_REQUEST['stx']);
$g5['title'] = '상품문의';
$g5['title'] = 'Q&amp;A';
include_once(G5_MSHOP_PATH.'/_head.php');
$sql_common = " from `{$g5['g5_shop_item_qa_table']}` a join `{$g5['g5_shop_item_table']}` b on (a.it_id=b.it_id) ";

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
$sfl = trim($_REQUEST['sfl']);
$stx = trim($_REQUEST['stx']);
$g5['title'] = '사용후기';
$g5['title'] = 'REVIEW';
include_once(G5_MSHOP_PATH.'/_head.php');
$sql_common = " from `{$g5['g5_shop_item_use_table']}` a join `{$g5['g5_shop_item_table']}` b on (a.it_id=b.it_id) ";

View File

@ -34,7 +34,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php } ?>
<div id="display_pay_button" class="btn_confirm">
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록요청"class="btn_submit"></span>
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록요청" class="btn_submit"></span>
<span id="show_pay_btn" style="display:none;"><input type="button" onClick="forderform_check();" value="주문하기" class="btn_submit"></span>
<a href="<?php echo G5_SHOP_URL; ?>" class="btn_cancel">취소</a>
</div>

View File

@ -14,7 +14,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php } ?>
<div id="display_pay_button" class="btn_confirm">
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록요청"class="btn_submit"></span>
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="pay_approval();" value="결제등록요청" class="btn_submit"></span>
<span id="show_pay_btn" style="display:none;"><input type="button" onClick="forderform_check();" value="주문하기" class="btn_submit"></span>
<a href="<?php echo G5_SHOP_URL; ?>" class="btn_cancel">취소</a>
</div>

View File

@ -16,7 +16,7 @@ if(!$is_admin) {
alert($msg, G5_SHOP_URL);
}
$g5['title'] = $ca['ca_name'].' 상품리스트';
$g5['title'] = $ca['ca_name'];
include_once(G5_MSHOP_PATH.'/_head.php');
@ -39,17 +39,45 @@ if($ca['ca_mobile_skin_dir']) {
define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
?>
<script>
var g5_shop_url = "<?php echo G5_SHOP_URL; ?>";
</script>
<script src="<?php echo G5_JS_URL; ?>/shop.mobile.list.js"></script>
<div id="sct">
<?php
$nav_skin = $skin_dir.'/navigation.skin.php';
if(!is_file($nav_skin))
$nav_skin = G5_MSHOP_SKIN_PATH.'/navigation.skin.php';
include $nav_skin;
// 상단 HTML
echo '<div id="sct_hhtml">'.conv_content($ca['ca_mobile_head_html'], 1).'</div>';
$cate_skin = $skin_dir.'/listcategory.skin.php';
if(!is_file($cate_skin))
$cate_skin = G5_MSHOP_SKIN_PATH.'/listcategory.skin.php';
include $cate_skin;
// 분류 Best Item
$list_mod = 3;
$list_row = 3;
$limit = $list_mod * $list_row;
$best_skin = G5_MSHOP_SKIN_PATH.'/list.best.10.skin.php';
$sql = " select *
from {$g5['g5_shop_item_table']}
where ( ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%' )
and it_use = '1'
and it_type4 = '1'
order by it_order, it_id desc
limit 0, $limit ";
$list = new item_list($best_skin, $list_mod, $list_row, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
$list->set_query($sql);
$list->set_mobile(true);
$list->set_view('it_img', true);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_price', true);
echo $list->run();
// 상품 출력순서가 있다면
if ($sort != "")
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
@ -68,13 +96,13 @@ define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
include $sort_skin;
// 총몇개
$items = $ca['ca_mobile_list_mod'];
$items = $ca['ca_mobile_list_mod'] * $ca['ca_mobile_list_row'];
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;
$list = new item_list($skin_file, $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
$list = new item_list($skin_file, $ca['ca_mobile_list_mod'], $ca['ca_mobile_list_row'], $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
$list->set_category($ca['ca_id'], 1);
$list->set_category($ca['ca_id'], 2);
$list->set_category($ca['ca_id'], 3);
@ -85,16 +113,11 @@ define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
$list->set_view('it_img', true);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_cust_price', true);
$list->set_view('it_price', true);
$list->set_view('it_icon', true);
$list->set_view('sns', true);
echo $list->run();
// where 된 전체 상품수
$total_count = $list->total_count;
// 전체 페이지 계산
$total_page = ceil($total_count / $items);
}
else
{
@ -103,15 +126,23 @@ define('G5_SHOP_CSS_URL', str_replace(G5_PATH, G5_URL, $skin_dir));
?>
<?php
$qstr1 .= 'ca_id='.$ca_id;
$qstr1 .='&amp;sort='.$sort.'&amp;sortodr='.$sortodr;
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr1.'&amp;page=');
if($i > 0 && $total_count > $items) {
$qstr1 .= 'ca_id='.$ca_id;
$qstr1 .='&sort='.$sort.'&sortodr='.$sortodr;
$ajax_url = G5_SHOP_URL.'/ajax.list.php?'.$qstr1;
?>
<div class="li_more">
<p id="item_load_msg"><img src="<?php echo G5_SHOP_CSS_URL; ?>/img/loading.gif" alt="로딩이미지" ><br>잠시만 기다려주세요.</p>
<div class="li_more_btn">
<button type="button" id="btn_more_item" data-url="<?php echo $ajax_url; ?>" data-page="<?php echo $page; ?>">MORE ITEM +</button>
</div>
</div>
<?php } ?>
<?php
// 하단 HTML
echo '<div id="sct_thtml">'.conv_content($ca['ca_mobile_tail_html'], 1).'</div>';
?>
?>
</div>
<?php

View File

@ -6,7 +6,7 @@ if ($type == 1) $g5['title'] = '히트상품';
else if ($type == 2) $g5['title'] = '추천상품';
else if ($type == 3) $g5['title'] = '최신상품';
else if ($type == 4) $g5['title'] = '인기상품';
else if ($type == 5) $g5['title'] = '할인상품';
else if ($type == 5) $g5['title'] = '세일상품';
else
alert('상품유형이 아닙니다.');
@ -14,8 +14,8 @@ include_once(G5_MSHOP_PATH.'/_head.php');
// 한페이지에 출력하는 이미지수 = $list_mod * $list_row
// 모바일에서는 계산된 이미지수가 중요함
$list_mod = 1; // 한줄에 이미지 몇개씩 출력? 단, 모바일환경에서는 사용되지 않음.
$list_row = 10; // 한 페이지에 몇라인씩 출력?
$list_mod = 3; // 한줄에 이미지 몇개씩 출력? 단, 모바일환경에서는 사용되지 않음.
$list_row = 5; // 한 페이지에 몇라인씩 출력?
$img_width = 230; // 출력이미지 폭
$img_height = 230; // 출력이미지 높이

View File

@ -26,12 +26,13 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
<section id="smb_my_ov">
<h2>회원정보 개요</h2>
<ul>
<li class="my_cou">보유쿠폰<a href="<?php echo G5_SHOP_URL; ?>/coupon.php" target="_blank" class="win_coupon"><?php echo number_format($cp_count); ?></a></li>
<li class="my_point">보유포인트
<a href="<?php echo G5_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></li>
</ul>
<dl>
<dt>보유포인트</dt>
<dd><a href="<?php echo G5_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></dd>
<dt>보유쿠폰</dt>
<dd><a href="<?php echo G5_SHOP_URL; ?>/coupon.php" target="_blank" class="win_coupon"><?php echo number_format($cp_count); ?></a></dd>
<dt>연락처</dt>
<dd><?php echo ($member['mb_tel'] ? $member['mb_tel'] : '미등록'); ?></dd>
<dt>E-Mail</dt>
@ -77,7 +78,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
$list_left_pad = $image_w + 10;
?>
<li style="padding-left:<?php echo $list_left_pad; ?>px">
<li style="padding-left:<?php echo $list_left_pad + 10; ?>px">
<div class="wish_img"><?php echo $image; ?></div>
<div class="wish_info">
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>" class="info_link"><?php echo stripslashes($row['it_name']); ?></a>

View File

@ -115,8 +115,8 @@ ob_start();
$a1 = '<strong>';
$a2 = '</strong>';
$image_width = 50;
$image_height = 50;
$image_width = 80;
$image_height = 80;
$image = get_it_image($row['it_id'], $image_width, $image_height);
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
@ -200,18 +200,22 @@ ob_start();
<?php } ?>
<input type="hidden" name="cp_id[<?php echo $i; ?>]" value="">
<input type="hidden" name="cp_price[<?php echo $i; ?>]" value="0">
<div class="li_name"><?php echo $it_name; ?></div>
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_sc"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
</div>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<div class="li_name">
<?php echo $it_name; ?>
<div class="li_mod" style="padding-left:<?php echo $image_width + 20; ?>px;"><?php echo $cp_button; ?></div>
<span class="total_img"><?php echo $image; ?></span>
</div>
<div class="li_prqty">
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
</div>
<div class="li_total">
<span class="total_price total_span"><span>주문금액 </span><strong><?php echo number_format($sell_price); ?></strong></span>
<span class="total_point total_span"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
</div>
<?php echo $cp_button; ?>
</li>
<?php
@ -276,10 +280,10 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
<?php echo $content; ?>
<section id="sod_frm_orderer">
<section id="sod_frm_orderer" >
<h2>주문하시는 분</h2>
<div class="tbl_frm01 tbl_wrap">
<div class="odf_tbl">
<table>
<tbody>
<tr>
@ -353,7 +357,7 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
<section id="sod_frm_taker">
<h2>받으시는 분</h2>
<div class="tbl_frm01 tbl_wrap">
<div class="odf_tbl">
<table>
<tbody>
<?php
@ -503,7 +507,7 @@ require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
<section id="sod_frm_pay">
<h2>결제정보 입력</h2>
<div class="tbl_frm01 tbl_wrap">
<div class="odf_tbl">
<table>
<tbody>
<?php if($oc_cnt > 0) { ?>

View File

@ -96,7 +96,7 @@ if($od['od_pg'] == 'lg') {
}
?>
<li class="sod_li">
<div class="li_name">
<div class="li_name_od">
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><strong><?php echo $row['it_name']; ?></strong></a>
</div>
<?php
@ -111,10 +111,10 @@ if($od['od_pg'] == 'lg') {
?>
<div class="li_opt"><?php echo $opt['ct_option']; ?></div>
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($opt_price); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($opt['ct_qty']); ?></span>
<span class="prqty_sc"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<span class="prqty_stat"><span>상태 </span><?php echo $opt['ct_status']; ?></span>
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($opt_price); ?></span>
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($opt['ct_qty']); ?></span>
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<span class="prqty_stat li_prqty_sp"><span>상태 </span><?php echo $opt['ct_status']; ?></span>
</div>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>" class="total_img"><?php echo $image; ?></a>
@ -256,10 +256,10 @@ if($od['od_pg'] == 'lg') {
<section id="sod_fin_pay">
<h3>결제정보</h3>
<div class="tbl_head01 tbl_wrap">
<div class="odf_tbl">
<table>
<colgroup>
<col class="grid_3">
<col class="grid_2">
<col>
</colgroup>
<tbody>
@ -446,10 +446,10 @@ if($od['od_pg'] == 'lg') {
<section id="sod_fin_orderer">
<h3>주문하신 분</h3>
<div class="tbl_head01 tbl_wrap">
<div class="odf_tbl">
<table>
<colgroup>
<col class="grid_3">
<col class="grid_2">
<col>
</colgroup>
<tbody>
@ -482,10 +482,10 @@ if($od['od_pg'] == 'lg') {
<section id="sod_fin_receiver">
<h3>받으시는 분</h3>
<div class="tbl_head01 tbl_wrap">
<div class="odf_tbl">
<table>
<colgroup>
<col class="grid_3">
<col class="grid_2">
<col>
</colgroup>
<tbody>
@ -531,10 +531,10 @@ if($od['od_pg'] == 'lg') {
<section id="sod_fin_dvr">
<h3>배송정보</h3>
<div class="tbl_head01 tbl_wrap">
<div class="odf_tbl">
<table>
<colgroup>
<col class="grid_3">
<col class="grid_2">
<col>
</colgroup>
<tbody>
@ -560,7 +560,7 @@ if($od['od_pg'] == 'lg') {
{
?>
<tr>
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
<td class="empty_table" colspan="2">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
</tr>
<?php
}
@ -609,7 +609,7 @@ if($od['od_pg'] == 'lg') {
<input type="hidden" name="token" value="<?php echo $token; ?>">
<label for="cancel_memo">취소사유</label>
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required"maxlength="100">
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" maxlength="100">
<input type="submit" value="확인" class="btn_frmline">
</form>
@ -627,12 +627,12 @@ if($od['od_pg'] == 'lg') {
$deposit_no = trim($matchs[1]);
?>
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>
<div class="tbl_frm01 tbl_wrap">
<div id="kcp_acc_test" class="odf_tbl">
<form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">
<table>
<caption>모의입금처리</caption>
<colgroup>
<col class="grid_3">
<col class="grid_2">
<col>
</colgroup>
<tbody>

View File

@ -13,7 +13,8 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$list_file = G5_MSHOP_SKIN_PATH.'/personalpay.skin.php';
if (file_exists($list_file)) {
$list_mod = 10;
$list_mod = 3;
$list_row = 5;
$img_width = 230;
$img_height = 230;
@ -22,7 +23,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
and pp_tno = '' ";
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $list_mod;
$items = $list_mod * $list_row;
$sql = "select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
@ -45,17 +46,9 @@ include_once(G5_MSHOP_PATH.'/_head.php');
}
else
{
$i = 0;
$error = '<p class="sct_nofile">personalpay.skin.php 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
echo '<p class="sct_nofile">personalpay.skin.php 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
}
if ($i==0)
{
echo '<p class="sct_noitem">등록된 개인결제가 없습니다.</p>';
}
?>
<?php
echo get_paging($config['cf_mobile_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&amp;page=');
?>
</div>

View File

@ -54,7 +54,7 @@ $goods = $pp['pp_name'].'님 개인결제';
<section id="sod_frm_orderer">
<h2>개인결제정보</h2>
<div class="tbl_frm01 tbl_wrap">
<div class="odf_tbl">
<table>
<tbody>
<?php if(trim($pp['pp_content'])) { ?>
@ -95,37 +95,39 @@ $goods = $pp['pp_name'].'님 개인결제';
if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) {
echo '<fieldset id="sod_frm_paysel">';
echo '<legend>결제방법 선택</legend>';
echo '<ul>';
}
// 가상계좌 사용
if ($default['de_vbank_use']) {
$multi_settle++;
echo '<input type="radio" id="pp_settle_vbank" name="pp_settle_case" value="가상계좌" '.$checked.'> <label for="pp_settle_vbank">'.$escrow_title.'가상계좌</label>'.PHP_EOL;
echo '<li><input type="radio" id="pp_settle_vbank" name="pp_settle_case" value="가상계좌" '.$checked.'> <label for="pp_settle_vbank">'.$escrow_title.'가상계좌</label></li>'.PHP_EOL;
$checked = '';
}
// 계좌이체 사용
if ($default['de_iche_use']) {
$multi_settle++;
echo '<input type="radio" id="pp_settle_iche" name="pp_settle_case" value="계좌이체" '.$checked.'> <label for="pp_settle_iche">'.$escrow_title.'계좌이체</label>'.PHP_EOL;
echo '<li><input type="radio" id="pp_settle_iche" name="pp_settle_case" value="계좌이체" '.$checked.'> <label for="pp_settle_iche">'.$escrow_title.'계좌이체</label></li>'.PHP_EOL;
$checked = '';
}
// 휴대폰 사용
if ($default['de_hp_use']) {
$multi_settle++;
echo '<input type="radio" id="pp_settle_hp" name="pp_settle_case" value="휴대폰" '.$checked.'> <label for="pp_settle_hp">휴대폰</label>'.PHP_EOL;
echo '<li><input type="radio" id="pp_settle_hp" name="pp_settle_case" value="휴대폰" '.$checked.'> <label for="pp_settle_hp">휴대폰</label></li>'.PHP_EOL;
$checked = '';
}
// 신용카드 사용
if ($default['de_card_use']) {
$multi_settle++;
echo '<input type="radio" id="pp_settle_card" name="pp_settle_case" value="신용카드" '.$checked.'> <label for="pp_settle_card">신용카드</label>'.PHP_EOL;
echo '<li><input type="radio" id="pp_settle_card" name="pp_settle_case" value="신용카드" '.$checked.'> <label for="pp_settle_card">신용카드</label></li>'.PHP_EOL;
$checked = '';
}
if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) {
echo '</ul>';
echo '</fieldset>';
}

View File

@ -71,7 +71,7 @@ if($pp['pp_pg'] == 'lg') {
<section id="sod_fin_pay">
<h3>결제정보</h3>
<div class="tbl_wrap tbl_head01">
<div class="odf_tbl">
<table>
<colgroup>
<col class="grid_3">

View File

@ -100,7 +100,7 @@ if (($qsort == "it_sum_qty" || $qsort == "it_price" || $qsort == "it_use_avg" ||
}
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $default['de_mobile_search_list_mod'];
$items = $default['de_mobile_search_list_mod'] * $default['de_mobile_search_list_row'];
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) $page = 1;
// 시작 레코드 구함
@ -133,7 +133,7 @@ $total_page = ceil($total_count / $items); // 전체 페이지 계산
<strong>상품가격 (원)</strong>
<label for="ssch_qfrom" class="sound_only">최소 가격</label>
<input type="text" name="qfrom" value="<?php echo $qfrom; ?>" id="ssch_qfrom" class="frm_input"> ~
<label for="ssch_ qto" class="sound_only">최대 가격</label>
<label for="ssch_qto" class="sound_only">최대 가격</label>
<input type="text" name="qto" value="<?php echo $qto; ?>" id="ssch_qto" class="frm_input"> 까지<br>
</div>
<div>
@ -186,12 +186,12 @@ $total_page = ceil($total_count / $items); // 전체 페이지 계산
define('G5_SHOP_CSS_URL', G5_MSHOP_SKIN_URL);
$list_file = G5_MSHOP_SKIN_PATH.'/'.$default['de_mobile_search_list_skin'];
if (file_exists($list_file)) {
$list = new item_list($list_file, $default['de_mobile_search_list_mod'], 1, $default['de_mobile_search_img_width'], $default['de_mobile_search_img_height']);
$list = new item_list($list_file, $default['de_mobile_search_list_mod'], $default['de_mobile_search_list_row'], $default['de_mobile_search_img_width'], $default['de_mobile_search_img_height']);
$list->set_query(" select * $sql_common $sql_where {$order_by} limit $from_record, $items ");
$list->set_is_page(true);
$list->set_mobile(true);
$list->set_view('it_img', true);
$list->set_view('it_id', true);
$list->set_view('it_id', false);
$list->set_view('it_name', true);
$list->set_view('it_basic', true);
$list->set_view('it_cust_price', false);

View File

@ -17,10 +17,28 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
<?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 $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img" alt="<?php echo $config['cf_title']; ?> 메인"></a></div>
<a href="<?php echo G5_SHOP_URL; ?>/category.php" target="_blank" id="hd_ct">분류</a>
<?php include_once(G5_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);">
@ -55,22 +73,10 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
return true;
}
</script>
<ul id="hd_mb">
<?php if ($is_member) { ?>
<?php if ($is_admin) { ?>
<li><a href="<?php echo G5_ADMIN_URL ?>/shop_admin/"><b>관리자</b></a></li>
<?php } ?>
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php">정보수정</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php?url=shop">로그아웃</a></li>
<?php } else { ?>
<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?url=<?php echo $urlencode; ?>">로그인</a></li>
<?php } ?>
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">장바구니</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
<?php
@ -91,8 +97,11 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
unset($com_name);
}
?>
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
<?php if($default['de_root_index_use']) { ?>
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">세일상품</a></li>
<?php } ?>
</ul>
</header>
<div id="container">

View File

@ -11,16 +11,15 @@ $admin = get_admin("super");
<div id="ft">
<h2><?php echo $config['cf_title']; ?> 정보</h2>
<a href="<?php echo $default['de_root_index_use'] ? G5_URL : G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img2" alt="처음으로"></a>
<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>
<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>
<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>

View File

@ -14,19 +14,8 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<input type="hidden" name="act" value="multi">
<input type="hidden" name="sw_direct" value="">
<input type="hidden" name="prog" value="wish">
<div class="tbl_wrap tbl_head01">
<table>
<thead>
<tr>
<th scope="col">이미지</th>
<th scope="col">상품명</th>
<th scope="col">선택</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<?php
<ul id="wish_li">
<?php
$sql = " select a.wi_id, a.wi_time, b.*
from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.mb_id = '{$member['mb_id']}'
@ -45,45 +34,45 @@ include_once(G5_MSHOP_PATH.'/_head.php');
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
$image = get_it_image($row['it_id'], 50, 50);
?>
<tr>
<td class="sod_ws_img"><?php echo $image; ?></td>
<td>
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a>
<br><small>보관일 <?php echo substr($row['wi_time'], 2, 8); ?></small>
</td>
<td class="td_chk">
<?php
// 품절검사
if(is_soldout($row['it_id']))
{
?>
품절
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
<?php } ?>
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
</td>
<td class="td_mngsmall"><a href="<?php echo G5_SHOP_URL; ?>/wishupdate.php?w=d&amp;wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
</tr>
?>
<li>
<div class="wish_img"><?php echo $image; ?></div>
<div class="wish_info">
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a>
<span class="info_date">보관일 <?php echo substr($row['wi_time'], 2, 8); ?></span>
</div>
<div class="wish_chk">
<?php
// 품절검사
if(is_soldout($row['it_id']))
{
?>
<span class="sold_out">품절</span>
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
<?php } ?>
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
</div>
<span class="wish_del"><a href="<?php echo G5_SHOP_URL; ?>/wishupdate.php?w=d&amp;wi_id=<?php echo $row['wi_id']; ?>">삭제</a></span>
</li>
<?php
}
if ($i == 0)
echo '<tr><td colspan="5" class="empty_table">위시리스트가 비었습니다.</td></tr>';
echo '<li class="empty_table">위시리스트가 비었습니다.</li>';
?>
</tr>
</table>
</div>
</ul>
<div id="sod_ws_act">
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">장바구니 담기</button>
<button type="submit" class="btn02" onclick="return fwishlist_check(document.fwishlist,'direct_buy');">주문하기</button>
<button type="submit" class="btn02" onclick="return fwishlist_check(document.fwishlist,'direct_buy');">BUY NOW</button>
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">CART</button>
</div>
</form>
</div>