5.3 버전 내용 적용
@ -36,25 +36,25 @@ include_once('./_head.php');
|
||||
|
||||
<!-- 장바구니 시작 { -->
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.override.js"></script>
|
||||
|
||||
<div id="sod_bsk">
|
||||
<div id="sod_bsk" class="od_prd_list">
|
||||
|
||||
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<form name="frmcartlist" id="sod_bsk_list" class="2017_renewal_itemform" method="post" action="<?php echo $cart_action_url; ?>">
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">상품이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">총수량</th>
|
||||
<th scope="col">판매가</th>
|
||||
<th scope="col">소계</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">배송비</th>
|
||||
<th scope="col">
|
||||
<label for="ct_all" class="sound_only">상품 전체</label>
|
||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked">
|
||||
</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">총수량</th>
|
||||
<th scope="col">판매가</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">배송비</th>
|
||||
<th scope="col">소계</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -98,9 +98,9 @@ include_once('./_head.php');
|
||||
$continue_ca_id = $row['ca_id'];
|
||||
}
|
||||
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'"><b>';
|
||||
$a1 = '<a href="./item.php?it_id='.$row['it_id'].'" class="prd_name"><b>';
|
||||
$a2 = '</b></a>';
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$image = get_it_image($row['it_id'], 80, 80);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
@ -136,21 +136,25 @@ include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="sod_img"><?php echo $image; ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig"><span id="sell_price_<?php echo $i; ?>"><?php echo number_format($sell_price); ?></span></td>
|
||||
<td class="td_numbig"><?php echo number_format($point); ?></td>
|
||||
<td class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td class="td_chk">
|
||||
<label for="ct_chk_<?php echo $i; ?>" class="sound_only">상품</label>
|
||||
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked">
|
||||
</td>
|
||||
|
||||
<td class="td_prd">
|
||||
<div class="sod_img"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?></a></div>
|
||||
<div class="sod_name">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
|
||||
<?php echo $it_name.$mod_options; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<td class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td class="td_numbig text_right"><span id="sell_price_<?php echo $i; ?>" class="total_prc"><?php echo number_format($sell_price); ?></span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -167,27 +171,35 @@ include_once('./_head.php');
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn_cart_del">
|
||||
<button type="button" onclick="return form_check('seldelete');">선택삭제</button>
|
||||
<button type="button" onclick="return form_check('alldelete');">비우기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비
|
||||
if ($tot_price > 0 || $send_cost > 0) {
|
||||
?>
|
||||
<dl id="sod_bsk_tot">
|
||||
<?php if ($send_cost > 0) { // 배송비가 0 보다 크다면 (있다면) ?>
|
||||
<dt class="sod_bsk_dvr">배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
<div id="sod_bsk_tot">
|
||||
<ul>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($send_cost); ?></strong> 원
|
||||
</li>
|
||||
|
||||
<?php
|
||||
if ($tot_price > 0) {
|
||||
?>
|
||||
<li class="sod_bsk_pt">
|
||||
<span>포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?></strong> 점
|
||||
</li>
|
||||
|
||||
<dt class="sod_bsk_cnt">총계 가격/포인트</dt>
|
||||
<dd class="sod_bsk_cnt"><strong><?php echo number_format($tot_price); ?> 원 / <?php echo number_format($tot_point); ?> 점</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
</dl>
|
||||
<li class="sod_bsk_cnt">
|
||||
<span>총계 가격</span>
|
||||
<strong><?php echo number_format($tot_price); ?></strong> 원
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="sod_bsk_act">
|
||||
@ -198,9 +210,8 @@ include_once('./_head.php');
|
||||
<input type="hidden" name="records" value="<?php echo $i; ?>">
|
||||
<input type="hidden" name="act" value="">
|
||||
<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>
|
||||
<button type="button" onclick="return form_check('buy');" class="btn_submit"><i class="fa fa-credit-card" aria-hidden="true"></i> 주문하기</button>
|
||||
|
||||
<?php if ($naverpay_button_js) { ?>
|
||||
<div class="cart-naverpay"><?php echo $naverpay_request_js.$naverpay_button_js; ?></div>
|
||||
<?php } ?>
|
||||
|
||||
@ -24,6 +24,7 @@ if(!sql_num_rows($result))
|
||||
die('no-cart');
|
||||
?>
|
||||
|
||||
<h2>상품옵션수정</h2>
|
||||
<!-- 장바구니 옵션 시작 { -->
|
||||
<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
||||
<input type="hidden" name="act" value="optionmod">
|
||||
@ -32,44 +33,42 @@ if(!sql_num_rows($result))
|
||||
<input type="hidden" name="ct_send_cost" value="<?php echo $row2['ct_send_cost']; ?>">
|
||||
<input type="hidden" name="sw_direct">
|
||||
<?php
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
|
||||
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], '');
|
||||
} else {
|
||||
// 선택 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], 'div');
|
||||
}
|
||||
if($option_1) {
|
||||
?>
|
||||
<section class="tbl_wrap tbl_head02">
|
||||
<section class="option_wr">
|
||||
<h3>선택옵션</h3>
|
||||
<table class="sit_ov_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
|
||||
<?php // 선택옵션
|
||||
echo $option_1;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
|
||||
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], '');
|
||||
} else {
|
||||
// 추가 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], 'div');
|
||||
}
|
||||
if($option_2) {
|
||||
?>
|
||||
<section class="tbl_wrap tbl_head02">
|
||||
<section class="option_wr">
|
||||
<h3>추가옵션</h3>
|
||||
<table class="sit_ov_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
|
||||
<?php // 추가옵션
|
||||
echo $option_2;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@ -99,15 +98,18 @@ if($option_2) {
|
||||
<input type="hidden" name="io_value[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_option']; ?>">
|
||||
<input type="hidden" class="io_price" value="<?php echo $row['io_price']; ?>">
|
||||
<input type="hidden" class="io_stock" value="<?php echo $it_stock_qty; ?>">
|
||||
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
|
||||
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
|
||||
<div>
|
||||
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
|
||||
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="frm_input" size="5">
|
||||
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
|
||||
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
|
||||
<button type="button" class="btn_frmline">삭제</button>
|
||||
<div class="opt_name">
|
||||
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
|
||||
</div>
|
||||
<div class="opt_count">
|
||||
<button type="button" class="sit_qty_minus btn_frmline"><i class="fa fa-minus" aria-hidden="true"></i><span class="sound_only">감소</span></button>
|
||||
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
|
||||
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="num_input" size="5">
|
||||
<button type="button" class="sit_qty_plus btn_frmline"><i class="fa fa-plus" aria-hidden="true"></i><span class="sound_only">증가</span></button>
|
||||
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
|
||||
<button type="button" class="sit_opt_del"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">삭제</span></button>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
@ -119,7 +121,7 @@ if($option_2) {
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="선택사항적용" class="btn_submit">
|
||||
<button type="button" id="mod_option_close" class="btn_cancel">닫기</button>
|
||||
<button type="button" id="mod_option_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
75
shop/category.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?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;
|
||||
}
|
||||
?>
|
||||
<div id="category">
|
||||
<button type="button" class="close_btn"><i class="fa fa-times" aria-hidden="true"></i> 카테고리<span class="sound_only">닫기</span></button>
|
||||
|
||||
<div class="ct_wr">
|
||||
<?php
|
||||
$mshop_ca_href = G5_SHOP_URL.'/list.php?ca_id=';
|
||||
$mshop_ca_res1 = sql_query(get_mshop_category('', 2));
|
||||
for($i=0; $mshop_ca_row1=sql_fetch_array($mshop_ca_res1); $i++) {
|
||||
if($i == 0)
|
||||
echo '<ul class="cate">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_1">
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row1['ca_id']; ?>" class="cate_li_1_a"><?php echo get_text($mshop_ca_row1['ca_name']); ?></a>
|
||||
<?php
|
||||
$mshop_ca_res2 = sql_query(get_mshop_category($mshop_ca_row1['ca_id'], 4));
|
||||
|
||||
for($j=0; $mshop_ca_row2=sql_fetch_array($mshop_ca_res2); $j++) {
|
||||
if($j == 0)
|
||||
echo '<ul class="sub_cate sub_cate1">'.PHP_EOL;
|
||||
?>
|
||||
<li class="cate_li_2">
|
||||
<a href="<?php echo $mshop_ca_href.$mshop_ca_row2['ca_id']; ?>"><?php echo get_text($mshop_ca_row2['ca_name']); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($j > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($i > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
else
|
||||
echo '<p class="no-cate">등록된 분류가 없습니다.</p>'.PHP_EOL;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
var $category = $("#category");
|
||||
|
||||
$("#menu_open").on("click", function() {
|
||||
$category.css("display","block");
|
||||
});
|
||||
|
||||
$("#category .close_btn").on("click", function(){
|
||||
$category.css("display","none");
|
||||
});
|
||||
});
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#category");
|
||||
if( container.has(e.target).length === 0)
|
||||
container.hide();
|
||||
});
|
||||
</script>
|
||||
@ -33,19 +33,10 @@ $result = sql_query($sql);
|
||||
|
||||
<!-- 쿠폰 내역 시작 { -->
|
||||
<div id="coupon" class="new_win">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
<h1 id="win_title"><i class="fa fa-newspaper-o" aria-hidden="true"></i> <?php echo $g5['title'] ?></h1>
|
||||
|
||||
<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>
|
||||
<div class="new_win_con list_01">
|
||||
<ul>
|
||||
<?php
|
||||
$cp_count = 0;
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
@ -73,23 +64,26 @@ $result = sql_query($sql);
|
||||
|
||||
$cp_count++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $row['cp_subject']; ?></td>
|
||||
<td><?php echo $cp_target; ?></td>
|
||||
<td class="td_numbig"><?php echo $cp_price; ?></td>
|
||||
<td class="td_datetime"><?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></td>
|
||||
</tr>
|
||||
<li>
|
||||
<div>
|
||||
<span class="cou_tit"><?php echo $row['cp_subject']; ?></span>
|
||||
<span class="cou_pri"><?php echo $cp_price; ?></span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="cou_target"><?php echo $cp_target; ?></span>
|
||||
<span class="cou_date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></span>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(!$cp_count)
|
||||
echo '<tr><td colspan="4" class="empty_table">사용할 수 있는 쿠폰이 없습니다.</td></tr>';
|
||||
echo '<li class="empty_li">사용할 수 있는 쿠폰이 없습니다.</li>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="win_btn"><button type="button" onclick="window.close();">창닫기</button></div>
|
||||
<button type="button" onclick="window.close();" class="btn_close">창닫기</button>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@ -51,11 +51,15 @@ define('G5_SHOP_CSS_URL', G5_SHOP_SKIN_URL);
|
||||
$list_file = G5_SHOP_SKIN_PATH."/{$ev['ev_skin']}";
|
||||
if (file_exists($list_file))
|
||||
{
|
||||
|
||||
echo '<div id="sct_sortlst">';
|
||||
include G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||
|
||||
// 상품 보기 타입 변경 버튼
|
||||
include G5_SHOP_SKIN_PATH.'/list.sub.skin.php';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ev['ev_list_mod'] * $ev['ev_list_row'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
|
||||
BIN
shop/img/facebook.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
shop/img/gplus.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 896 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 1.8 KiB |
BIN
shop/img/twitter.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
@ -20,18 +20,19 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
|
||||
<!-- } 메인이미지 끝 -->
|
||||
|
||||
|
||||
|
||||
<?php if($default['de_type1_list_use']) { ?>
|
||||
<!-- 히트상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(1);
|
||||
$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', true);
|
||||
@ -49,7 +50,6 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -67,12 +67,13 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
<!-- } 추천상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxevent.skin.php'); // 이벤트 ?>
|
||||
|
||||
<?php if($default['de_type3_list_use']) { ?>
|
||||
<!-- 최신상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -90,35 +91,11 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
<!-- } 최신상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type4_list_use']) { ?>
|
||||
<!-- 인기상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', true);
|
||||
$list->set_view('it_cust_price', true);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', true);
|
||||
$list->set_view('sns', true);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 인기상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if($default['de_type5_list_use']) { ?>
|
||||
<!-- 할인상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
@ -136,19 +113,6 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
<!-- } 할인상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<!-- 커뮤니티 최신글 시작 { -->
|
||||
<section id="sidx_lat">
|
||||
<h2>커뮤니티 최신글</h2>
|
||||
<?php echo latest('shop_basic', 'notice', 5, 30); ?>
|
||||
<?php echo latest('shop_basic', 'free', 5, 25); ?>
|
||||
<?php echo latest('shop_basic', 'qa', 5, 20); ?>
|
||||
</section>
|
||||
<!-- } 커뮤니티 최신글 끝 -->
|
||||
|
||||
<?php echo poll('shop_basic'); // 설문조사 ?>
|
||||
|
||||
<?php echo visit('shop_basic'); // 접속자 ?>
|
||||
|
||||
<?php
|
||||
include_once(G5_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
@ -118,9 +118,6 @@ function make_signature(frm)
|
||||
}
|
||||
|
||||
function paybtn(f) {
|
||||
|
||||
console.log( f.id );
|
||||
|
||||
INIStdPay.pay(f.id);
|
||||
}
|
||||
</script>
|
||||
@ -111,11 +111,13 @@ if(!is_file($nav_skin))
|
||||
$nav_skin = G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
include $nav_skin;
|
||||
|
||||
// 이 분류에 속한 하위분류 출력
|
||||
$cate_skin = $skin_dir.'/listcategory.skin.php';
|
||||
if(!is_file($cate_skin))
|
||||
$cate_skin = G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
||||
include $cate_skin;
|
||||
if(defined('G5_THEME_USE_ITEM_CATEGORY') && G5_THEME_USE_ITEM_CATEGORY){
|
||||
// 이 분류에 속한 하위분류 출력
|
||||
$cate_skin = $skin_dir.'/listcategory.skin.php';
|
||||
if(!is_file($cate_skin))
|
||||
$cate_skin = G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
||||
include $cate_skin;
|
||||
}
|
||||
|
||||
if ($is_admin) {
|
||||
echo '<div class="sit_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
||||
@ -182,9 +184,9 @@ if($default['de_rel_list_use']) {
|
||||
// 소셜 관련
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb_s.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt_s.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo_s.png');
|
||||
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/twitter.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/gplus.png');
|
||||
|
||||
// 상품품절체크
|
||||
if(G5_SOLDOUT_CHECK)
|
||||
@ -196,11 +198,16 @@ if(!$it['it_use'] || $it['it_tel_inq'] || $is_soldout)
|
||||
$is_orderable = false;
|
||||
|
||||
if($is_orderable) {
|
||||
// 선택 옵션
|
||||
$option_item = get_item_options($it['it_id'], $it['it_option_subject']);
|
||||
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
|
||||
$option_item = get_item_options($it['it_id'], $it['it_option_subject'], '');
|
||||
$supply_item = get_item_supply($it['it_id'], $it['it_supply_subject'], '');
|
||||
} else {
|
||||
// 선택 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$option_item = get_item_options($it['it_id'], $it['it_option_subject'], 'div');
|
||||
|
||||
// 추가 옵션
|
||||
$supply_item = get_item_supply($it['it_id'], $it['it_supply_subject']);
|
||||
// 추가 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
|
||||
$supply_item = get_item_supply($it['it_id'], $it['it_supply_subject'], 'div');
|
||||
}
|
||||
|
||||
// 상품 선택옵션 수
|
||||
$option_count = 0;
|
||||
@ -227,9 +234,6 @@ function pg_anchor($anc_id) {
|
||||
<li><a href="#sit_qa" <?php if ($anc_id == '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="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
|
||||
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
|
||||
<?php if($default['de_rel_list_use']) { ?>
|
||||
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"><?php echo $item_relation_count; ?></span></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -26,35 +26,29 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
|
||||
<form name="fstocksms" method="post" action="<?php echo G5_HTTPS_SHOP_URL; ?>/itemstocksmsupdate.php" onsubmit="return fstocksms_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_4">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">상품</th>
|
||||
<td><?php echo $it['it_name']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ss_hp">휴대폰번호<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="ss_hp" value="<?php echo $member['mb_hp']; ?>" id="ss_hp" required class="required frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><strong>개인정보처리방침안내</strong></th>
|
||||
<td><textarea readonly><?php echo get_text($config['cf_privacy']) ?></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="sms_agree" class="win_desc">
|
||||
<label for="agree">개인정보처리방침안내의 내용에 동의합니다.</label>
|
||||
<input type="checkbox" name="agree" value="1" id="agree">
|
||||
</div>
|
||||
<div class="win_btn">
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
<button type="button" onclick="window.close();">닫기</button>
|
||||
<div class="form_01 new_win_con">
|
||||
<ul>
|
||||
<li class="prd_name">
|
||||
<?php echo $it['it_name']; ?>
|
||||
</li>
|
||||
<li>
|
||||
<label for="ss_hp" class="sound_only">휴대폰번호<strong> 필수</strong></label>
|
||||
<input type="text" name="ss_hp" value="<?php echo $member['mb_hp']; ?>" id="ss_hp" required class="required frm_input full_input">
|
||||
</li>
|
||||
<li>
|
||||
<strong>개인정보처리방침안내</strong>
|
||||
<textarea readonly><?php echo get_text($config['cf_privacy']) ?></textarea>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="sms_agree" class="win_desc">
|
||||
<label for="agree">개인정보처리방침안내의 내용에 동의합니다.</label>
|
||||
<input type="checkbox" name="agree" value="1" id="agree">
|
||||
</div>
|
||||
<div class="win_btn">
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
<button type="button" onclick="window.close();" class="btn_close">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -19,7 +19,7 @@ if(defined('G5_THEME_SHOP_PATH')) {
|
||||
}
|
||||
}
|
||||
|
||||
$g5['title'] = $member['mb_name'].'님 마이페이지';
|
||||
$g5['title'] = '마이페이지';
|
||||
include_once('./_head.php');
|
||||
|
||||
// 쿠폰
|
||||
@ -43,21 +43,23 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<!-- 회원정보 개요 시작 { -->
|
||||
<section id="smb_my_ov">
|
||||
<h2>회원정보 개요</h2>
|
||||
|
||||
<strong class="my_ov_name"><img src="<?php echo G5_THEME_IMG_URL ;?>/no_profile.gif" alt="프로필이미지"> <?php echo $member['mb_name']; ?></strong>
|
||||
<dl class="cou_pt">
|
||||
<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>
|
||||
</dl>
|
||||
<div id="smb_my_act">
|
||||
<ul>
|
||||
<?php if ($is_admin == 'super') { ?><li><a href="<?php echo G5_ADMIN_URL; ?>/" class="btn_admin">관리자</a></li><?php } ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/memo.php" target="_blank" class="win_memo btn01">쪽지함</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php" class="btn01">회원정보수정</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();" class="btn02">회원탈퇴</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();" class="btn01">회원탈퇴</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<dl class="op_area">
|
||||
<dt>연락처</dt>
|
||||
<dd><?php echo ($member['mb_tel'] ? $member['mb_tel'] : '미등록'); ?></dd>
|
||||
<dt>E-Mail</dt>
|
||||
@ -69,7 +71,17 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<dt id="smb_my_ovaddt">주소</dt>
|
||||
<dd id="smb_my_ovaddd"><?php echo sprintf("(%s%s)", $member['mb_zip1'], $member['mb_zip2']).' '.print_address($member['mb_addr1'], $member['mb_addr2'], $member['mb_addr3'], $member['mb_addr_jibeon']); ?></dd>
|
||||
</dl>
|
||||
<div class="my_ov_btn"><button type="button" class="btn_op_area"><i class="fa fa-caret-up" aria-hidden="true"></i><span class="sound_only">상세정보 보기</span></button></div>
|
||||
|
||||
</section>
|
||||
<script>
|
||||
|
||||
$(".btn_op_area").on("click", function() {
|
||||
$(".op_area").toggle();
|
||||
$(".fa-caret-up").toggleClass("fa-caret-down")
|
||||
});
|
||||
|
||||
</script>
|
||||
<!-- } 회원정보 개요 끝 -->
|
||||
|
||||
<!-- 최근 주문내역 시작 { -->
|
||||
@ -84,7 +96,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
?>
|
||||
|
||||
<div class="smb_my_more">
|
||||
<a href="./orderinquiry.php" class="btn01">주문내역 더보기</a>
|
||||
<a href="./orderinquiry.php">더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 최근 주문내역 끝 -->
|
||||
@ -93,16 +105,9 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<section id="smb_my_wish">
|
||||
<h2>최근 위시리스트</h2>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<div class="list_02">
|
||||
<ul>
|
||||
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_wish_table']} a,
|
||||
@ -110,31 +115,30 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
limit 0, 3 ";
|
||||
limit 0, 8 ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 70, 70, true);
|
||||
$image = get_it_image($row['it_id'], 230, 230, true);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="smb_my_img"><?php echo $image; ?></td>
|
||||
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
|
||||
<td class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
</tr>
|
||||
<li>
|
||||
<div class="smb_my_img"><?php echo $image; ?></div>
|
||||
<div class="smb_my_tit"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></div>
|
||||
<div class="smb_my_date"><?php echo $row['wi_time']; ?></div>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="3" class="empty_table">보관 내역이 없습니다.</td></tr>';
|
||||
echo '<li class="empty_li">보관 내역이 없습니다.</li>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="smb_my_more">
|
||||
<a href="./wishlist.php" class="btn01">위시리스트 더보기</a>
|
||||
<a href="./wishlist.php">더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 최근 위시리스트 끝 -->
|
||||
|
||||
BIN
shop/no_image.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
@ -54,64 +54,64 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
<form name="forderaddress" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">
|
||||
<div id="sod_addr" class="new_win">
|
||||
|
||||
<h1 id="win_title">배송지 목록</h1>
|
||||
<h1 id="win_title"><i class="fa fa-address-book-o" aria-hidden="true"></i> 배송지 목록</h1>
|
||||
<div class="new_win_con">
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
배송지명
|
||||
</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">배송지정보</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr = get_text($addr);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_sbj">
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
<label for="ad_subject<?php echo $i;?>" class="sound_only">배송지명</label>
|
||||
<input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject<?php echo $i;?>" class="frm_input" size="12" maxlength="20" value="<?php echo get_text($row['ad_subject']); ?>">
|
||||
</td>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<label for="chk_all" class="sound_only">전체선택</label>
|
||||
<input type="checkbox" name="chk_all" id="chk_all">
|
||||
</th>
|
||||
<th scope="col">배송지명</th>
|
||||
<th scope="col">기본<br>배송지</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">전화번호</th>
|
||||
<th scope="col">주소</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sep = chr(30);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr = get_text($addr);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
|
||||
<label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
|
||||
</td>
|
||||
<td class="td_name">
|
||||
<label for="ad_subject<?php echo $i;?>" class="sound_only">배송지명</label>
|
||||
<input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject<?php echo $i;?>" class="frm_input" size="12" maxlength="20" value="<?php echo get_text($row['ad_subject']); ?>">
|
||||
</td>
|
||||
<td class="td_default">
|
||||
<label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label>
|
||||
<input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>>
|
||||
</td>
|
||||
<td class="td_namesmall"><?php echo get_text($row['ad_name']); ?></td>
|
||||
<td class="td_numbig"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
|
||||
<td><?php echo print_address($row['ad_addr1'], $row['ad_addr2'], $row['ad_addr3'], $row['ad_jibeon']); ?></td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>">
|
||||
<button type="button" class="sel_address">선택</button>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<td class="td_name"><?php echo get_text($row['ad_name']); ?></td>
|
||||
<td class="td_address">
|
||||
<?php echo print_address($row['ad_addr1'], $row['ad_addr2'], $row['ad_addr3'], $row['ad_jibeon']); ?><br>
|
||||
<span class="ad_tel"><?php echo $row['ad_tel']; ?> / <?php echo $row['ad_hp']; ?></span>
|
||||
|
||||
<div class="win_btn">
|
||||
<input type="submit" name="act_button" value="선택수정" class="btn_submit">
|
||||
<button type="button" onclick="self.close();">닫기</button>
|
||||
</td>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" value="<?php echo $addr; ?>" >
|
||||
<button type="button" class="sel_address mng_btn">선택</button>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?w=d&ad_id=<?php echo $row['ad_id']; ?>" class="del_address mng_btn">삭제</a>
|
||||
<input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>>
|
||||
<label for="ad_default<?php echo $i;?>" class="default_lb mng_btn">기본배송지</label>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="win_btn">
|
||||
<input type="submit" name="act_button" value="선택수정" class="btn_submit">
|
||||
<button type="button" onclick="self.close();" class="btn_close">닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@ -22,7 +22,8 @@ $count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
<div id="od_coupon_frm">
|
||||
<div id="od_coupon_frm" class="od_coupon">
|
||||
<h3>쿠폰 선택</h3>
|
||||
<?php if($count > 0) { ?>
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<table>
|
||||
@ -73,7 +74,7 @@ $count = sql_num_rows($result);
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="od_coupon_close" class="btn_submit">닫기</button>
|
||||
<button type="button" id="od_coupon_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- } 쿠폰 선택 끝 -->
|
||||
@ -17,7 +17,7 @@ if(defined('G5_THEME_SHOP_PATH')) {
|
||||
<!-- 주문 내역 목록 시작 { -->
|
||||
<?php if (!$limit) { ?>총 <?php echo $cnt; ?> 건<?php } ?>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -44,22 +44,22 @@ if(defined('G5_THEME_SHOP_PATH')) {
|
||||
|
||||
switch($row['od_status']) {
|
||||
case '주문':
|
||||
$od_status = '입금확인중';
|
||||
$od_status = '<span class="status_01">입금확인중</span>';
|
||||
break;
|
||||
case '입금':
|
||||
$od_status = '입금완료';
|
||||
$od_status = '<span class="status_02">입금완료</span>';
|
||||
break;
|
||||
case '준비':
|
||||
$od_status = '상품준비중';
|
||||
$od_status = '<span class="status_03">상품준비중</span>';
|
||||
break;
|
||||
case '배송':
|
||||
$od_status = '상품배송';
|
||||
$od_status = '<span class="status_04">상품배송</span>';
|
||||
break;
|
||||
case '완료':
|
||||
$od_status = '배송완료';
|
||||
$od_status = '<span class="status_05">배송완료</span>';
|
||||
break;
|
||||
default:
|
||||
$od_status = '주문취소';
|
||||
$od_status = '<span class="status_06">주문취소</span>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
@ -70,10 +70,10 @@ if(defined('G5_THEME_SHOP_PATH')) {
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td><?php echo substr($row['od_time'],2,14); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_num"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numbig"><?php echo display_price($row['od_misu']); ?></td>
|
||||
<td class="td_numbig"><?php echo $row['od_cart_count']; ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_receipt_price']); ?></td>
|
||||
<td class="td_numbig text_right"><?php echo display_price($row['od_misu']); ?></td>
|
||||
<td><?php echo $od_status; ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -74,20 +74,20 @@ if($od['od_pg'] == 'lg') {
|
||||
order by ct_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" rowspan="2">이미지</th>
|
||||
<th scope="col" colspan="7" id="th_itname">상품명</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="th_line">
|
||||
<th scope="col" id="th_itopt">옵션명</th>
|
||||
<th scope="col" id="th_itqty">수량</th>
|
||||
<th scope="col" id="th_itprice">판매가</th>
|
||||
<th scope="col" id="th_itsum">소계</th>
|
||||
<th scope="col" id="th_itpt">포인트</th>
|
||||
<th scope="col" id="th_itpt">배송비</th>
|
||||
<th scope="col" id="th_itpt">적립포인트</th>
|
||||
<th scope="col" id="th_itsd">배송비</th>
|
||||
<th scope="col" id="th_itst">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -147,16 +147,16 @@ if($od['od_pg'] == 'lg') {
|
||||
?>
|
||||
<tr>
|
||||
<td rowspan="<?php echo $rowspan; ?>" class="td_imgsmall"><?php echo $image; ?></td>
|
||||
<td headers="th_itname" colspan="7"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
|
||||
<td headers="th_itname" colspan="7" class="td_bdno"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td headers="th_itopt"><?php echo get_text($opt['ct_option']); ?></td>
|
||||
<td headers="th_itopt" class="td_bdno"><?php echo get_text($opt['ct_option']); ?></td>
|
||||
<td headers="th_itqty" class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td headers="th_itprice" class="td_numbig"><?php echo number_format($opt_price); ?></td>
|
||||
<td headers="th_itsum" class="td_numbig"><?php echo number_format($sell_price); ?></td>
|
||||
<td headers="th_itpt" class="td_num"><?php echo number_format($point); ?></td>
|
||||
<td headers="th_itpt" class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td headers="th_itprice" class="td_numbig text_right"><?php echo number_format($opt_price); ?></td>
|
||||
<td headers="th_itsum" class="td_numbig text_right"><?php echo number_format($sell_price); ?></td>
|
||||
<td headers="th_itpt" class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<td headers="th_itsd" class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
@ -175,79 +175,36 @@ if($od['od_pg'] == 'lg') {
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="sod_sts_wrap">
|
||||
<span class="sound_only">상품 상태 설명</span>
|
||||
<button type="button" id="sod_sts_explan_open" class="btn_frmline">상태설명보기</button>
|
||||
<div id="sod_sts_explan">
|
||||
<dl id="sod_fin_legend">
|
||||
<dt>주문</dt>
|
||||
<dd>주문이 접수되었습니다.</dd>
|
||||
<dd>주문이 접수되었습니다.
|
||||
<dt>입금</dt>
|
||||
<dd>입금(결제)이 완료 되었습니다.</dd>
|
||||
<dd>입금(결제)이 완료 되었습니다.
|
||||
<dt>준비</dt>
|
||||
<dd>상품 준비 중입니다.</dd>
|
||||
<dd>상품 준비 중입니다.
|
||||
<dt>배송</dt>
|
||||
<dd>상품 배송 중입니다.</dd>
|
||||
<dd>상품 배송 중입니다.
|
||||
<dt>완료</dt>
|
||||
<dd>상품 배송이 완료 되었습니다.</dd>
|
||||
<dd>상품 배송이 완료 되었습니다.
|
||||
</dl>
|
||||
<button type="button" id="sod_sts_explan_close" class="btn_frmline">상태설명닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
<div class="sod_left">
|
||||
<h2>결제/배송 정보</h2>
|
||||
<?php
|
||||
// 총계 = 주문상품금액합계 + 배송비 - 상품할인 - 결제할인 - 배송비할인
|
||||
$tot_price = $od['od_cart_price'] + $od['od_send_cost'] + $od['od_send_cost2']
|
||||
- $od['od_cart_coupon'] - $od['od_coupon'] - $od['od_send_coupon']
|
||||
- $od['od_cancel_price'];
|
||||
?>
|
||||
|
||||
<dl id="sod_bsk_tot">
|
||||
<dt class="sod_bsk_dvr">주문총액</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_cart_price']); ?> 원</strong></dd>
|
||||
|
||||
<?php if($od['od_cart_coupon'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">개별상품 쿠폰할인</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_cart_coupon']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($od['od_coupon'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">주문금액 쿠폰할인</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_coupon']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($od['od_send_cost'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_send_cost']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($od['od_send_coupon'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">배송비 쿠폰할인</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_send_coupon']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($od['od_send_cost2'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">추가배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_send_cost2']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($od['od_cancel_price'] > 0) { ?>
|
||||
<dt class="sod_bsk_dvr">취소금액</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($od['od_cancel_price']); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<dt class="sod_bsk_cnt">총계</dt>
|
||||
<dd class="sod_bsk_cnt"><strong><?php echo number_format($tot_price); ?> 원</strong></dd>
|
||||
|
||||
<dt class="sod_bsk_point">포인트</dt>
|
||||
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> 점</strong></dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<div id="sod_fin_view">
|
||||
<h2>결제/배송 정보</h2>
|
||||
<?php
|
||||
$receipt_price = $od['od_receipt_price']
|
||||
+ $od['od_receipt_point'];
|
||||
$cancel_price = $od['od_cancel_price'];
|
||||
@ -311,10 +268,6 @@ if($od['od_pg'] == 'lg') {
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
@ -501,16 +454,12 @@ if($od['od_pg'] == 'lg') {
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="sod_fin_orderer">
|
||||
<h3>주문하신 분</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">이 름</th>
|
||||
@ -542,10 +491,7 @@ if($od['od_pg'] == 'lg') {
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">이 름</th>
|
||||
@ -591,10 +537,7 @@ if($od['od_pg'] == 'lg') {
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col>
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
if ($od['od_invoice'] && $od['od_delivery_company'])
|
||||
@ -629,56 +572,123 @@ if($od['od_pg'] == 'lg') {
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section id="sod_fin_tot">
|
||||
<h2>결제합계</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
총 구매액
|
||||
<strong><?php echo display_price($tot_price); ?></strong>
|
||||
<div class="sod_right">
|
||||
<ul id="sod_bsk_tot">
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문총액</span>
|
||||
<strong><?php echo number_format($od['od_cart_price']); ?> 원</strong>
|
||||
</li>
|
||||
<?php
|
||||
if ($misu_price > 0) {
|
||||
echo '<li>';
|
||||
echo '미결제액'.PHP_EOL;
|
||||
echo '<strong>'.display_price($misu_price).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
<li id="alrdy">
|
||||
결제액
|
||||
<strong><?php echo $wanbul; ?></strong>
|
||||
<?php if($od['od_cart_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>개별상품 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_cart_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문금액 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($od['od_send_cost']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_send_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_send_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost2'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>추가배송비</span>
|
||||
<strong><?php echo number_format($od['od_send_cost2']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_cancel_price'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>취소금액</span>
|
||||
<strong><?php echo number_format($od['od_cancel_price']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li class="sod_bsk_cnt">
|
||||
<span>총계</span>
|
||||
<strong><?php echo number_format($tot_price); ?> 원</strong>
|
||||
</li>
|
||||
<li class="sod_bsk_point">
|
||||
<span>적립포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?> 점</strong>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="sod_fin_tot">
|
||||
<h2>결제합계</h2>
|
||||
|
||||
<section id="sod_fin_cancel">
|
||||
<h2>주문취소</h2>
|
||||
<?php
|
||||
// 취소한 내역이 없다면
|
||||
if ($cancel_price == 0) {
|
||||
if ($custom_cancel) {
|
||||
?>
|
||||
<button type="button" onclick="document.getElementById('sod_fin_cancelfrm').style.display='block';">주문 취소하기</button>
|
||||
<ul>
|
||||
<li>
|
||||
총 구매액
|
||||
<strong><?php echo display_price($tot_price); ?></strong>
|
||||
</li>
|
||||
<?php
|
||||
if ($misu_price > 0) {
|
||||
echo '<li>';
|
||||
echo '미결제액'.PHP_EOL;
|
||||
echo '<strong>'.display_price($misu_price).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
<li id="alrdy">
|
||||
결제액
|
||||
<strong><?php echo $wanbul; ?></strong>
|
||||
<?php if( $od['od_receipt_point'] ){ //포인트로 결제한 내용이 있으면 ?>
|
||||
<div class="right">
|
||||
<p><span class="title"><i class="fa fa-angle-right" aria-hidden="true"></i> 포인트 결제</span><?php echo number_format($od['od_receipt_point']); ?> 점</p>
|
||||
<p><span class="title"><i class="fa fa-angle-right" aria-hidden="true"></i> 실결제</span><?php echo number_format($od['od_receipt_price']); ?> 원</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div id="sod_fin_cancelfrm">
|
||||
<form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">
|
||||
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<section id="sod_fin_cancel">
|
||||
<h2>주문취소</h2>
|
||||
<?php
|
||||
// 취소한 내역이 없다면
|
||||
if ($cancel_price == 0) {
|
||||
if ($custom_cancel) {
|
||||
?>
|
||||
<button type="button" onclick="document.getElementById('sod_fin_cancelfrm').style.display='block';">주문 취소하기</button>
|
||||
|
||||
<label for="cancel_memo">취소사유</label>
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" size="40" maxlength="100">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
<div id="sod_fin_cancelfrm">
|
||||
<form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">
|
||||
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<p>주문 취소, 반품, 품절된 내역이 있습니다.</p>
|
||||
<?php } ?>
|
||||
</section>
|
||||
<label for="cancel_memo" class="sound_only">취소사유</label>
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" size="40" maxlength="100" placeholder="취소사유">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<p>주문 취소, 반품, 품절된 내역이 있습니다.</p>
|
||||
<?php } ?>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($od['od_settle_case'] == '가상계좌' && $od['od_misu'] > 0 && $default['de_card_test'] && $is_admin && $od['od_pg'] == 'kcp') {
|
||||
preg_match("/\s{1}([^\s]+)\s?/", $od['od_bank_account'], $matchs);
|
||||
|
||||
@ -41,7 +41,8 @@ $count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰 선택 시작 { -->
|
||||
<div id="cp_frm">
|
||||
<div id="cp_frm" class="od_coupon">
|
||||
<h3>쿠폰선택</h3>
|
||||
<?php if($count > 0) { ?>
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<table>
|
||||
@ -78,7 +79,7 @@ $count = sql_num_rows($result);
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_numbig"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_mngsmall"><button type="button" class="cp_apply btn_frmline">적용</button></td>
|
||||
<td class="td_mngsmall"><button type="button" class="cp_apply">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -92,7 +93,7 @@ $count = sql_num_rows($result);
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="cp_close" class="btn_submit">닫기</button>
|
||||
<button type="button" id="cp_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- } 쿠폰 선택 끝 -->
|
||||
@ -20,7 +20,8 @@ $count = sql_num_rows($result);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰선택 시작 { -->
|
||||
<div id="sc_coupon_frm">
|
||||
<div id="sc_coupon_frm" class="od_coupon">
|
||||
<h3>배송비쿠폰</h3>
|
||||
<?php if($count > 0) { ?>
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<table>
|
||||
@ -74,7 +75,7 @@ $count = sql_num_rows($result);
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="sc_coupon_close" class="btn_submit">닫기</button>
|
||||
<button type="button" id="sc_coupon_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- } 쿠폰선택 끝 -->
|
||||
@ -18,7 +18,7 @@ include_once('./_head.php');
|
||||
$list_file = G5_SHOP_SKIN_PATH.'/personalpay.skin.php';
|
||||
if (file_exists($list_file)) {
|
||||
|
||||
$list_mod = 3;
|
||||
$list_mod = 4;
|
||||
$list_row = 5;
|
||||
$img_width = 230;
|
||||
$img_height = 230;
|
||||
|
||||
@ -15,10 +15,10 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.2.php');
|
||||
?>
|
||||
|
||||
<section id="sod_frm_pay">
|
||||
<section id="sod_frm_pay" class="pesonal sod_left ">
|
||||
<h2>개인결제정보</h2>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<div class="tbl_frm01 tbl_wrap ">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if(trim($pp['pp_content'])) { ?>
|
||||
@ -37,7 +37,7 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_email">이메일<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input"></td>
|
||||
<td><input type="text" name="pp_email" value="<?php echo $member['mb_email']; ?>" id="pp_email" required class="required frm_input" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pp_hp">휴대폰</label></th>
|
||||
@ -47,13 +47,18 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
<div class="sod_right" id="personal_pay">
|
||||
<h2>결제수단</h2>
|
||||
<?php
|
||||
$multi_settle == 0;
|
||||
$checked = '';
|
||||
|
||||
$escrow_title = "";
|
||||
if ($default['de_escrow_use']) {
|
||||
$escrow_title = "에스크로 ";
|
||||
$escrow_title = "에스크로<br>";
|
||||
}
|
||||
|
||||
if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) {
|
||||
@ -64,28 +69,28 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
// 가상계좌 사용
|
||||
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 '<input type="radio" id="pp_settle_vbank" name="pp_settle_case" value="가상계좌" '.$checked.'><label for="pp_settle_vbank" class="lb_icon vbank_icon">'.$escrow_title.'가상계좌</label>'.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 '<input type="radio" id="pp_settle_iche" name="pp_settle_case" value="계좌이체" '.$checked.'><label for="pp_settle_iche" class="lb_icon vbank_icon">'.$escrow_title.'계좌이체</label>'.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 '<input type="radio" id="pp_settle_hp" name="pp_settle_case" value="휴대폰" '.$checked.'> <label for="pp_settle_hp" class="lb_icon hp_icon">휴대폰</label>'.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 '<input type="radio" id="pp_settle_card" name="pp_settle_case" value="신용카드" '.$checked.'> <label for="pp_settle_card" class="lb_icon card_icon">신용카드</label>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
@ -97,21 +102,21 @@ require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
if ($multi_settle == 0)
|
||||
echo '<p>결제할 방법이 없습니다.<br>운영자에게 알려주시면 감사하겠습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
// 결제대행사별 코드 include (주문버튼)
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.3.php');
|
||||
?>
|
||||
<?php
|
||||
// 결제대행사별 코드 include (주문버튼)
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.3.php');
|
||||
?>
|
||||
<?php
|
||||
if ($default['de_escrow_use']) {
|
||||
// 결제대행사별 코드 include (에스크로 안내)
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.4.php');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($default['de_escrow_use']) {
|
||||
// 결제대행사별 코드 include (에스크로 안내)
|
||||
require_once(G5_SHOP_PATH.'/'.$default['de_pg_service'].'/orderform.4.php');
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<script>
|
||||
function forderform_check(f)
|
||||
|
||||
@ -133,6 +133,7 @@ while($row = sql_fetch_array($result)){
|
||||
$categorys[] = $row;
|
||||
}
|
||||
|
||||
$q = get_text($q);
|
||||
$search_skin = G5_SHOP_SKIN_PATH.'/search.skin.php';
|
||||
|
||||
if(!file_exists($search_skin)) {
|
||||
|
||||
@ -15,6 +15,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
?>
|
||||
|
||||
|
||||
<!-- 상단 시작 { -->
|
||||
<div id="hd">
|
||||
<h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
|
||||
@ -24,16 +25,28 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
<?php if(defined('_INDEX_')) { // index에서만 실행
|
||||
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
|
||||
} ?>
|
||||
<div id="tnb">
|
||||
<h3>회원메뉴</h3>
|
||||
<ul>
|
||||
<?php if(G5_COMMUNITY_USE) { ?>
|
||||
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
||||
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
||||
<?php } ?>
|
||||
<li class="tnb_cart"><a href="<?php echo G5_SHOP_URL; ?>/cart.php"><i class="fa fa-shopping-cart" aria-hidden="true"></i> 장바구니</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
|
||||
<?php if ($is_member) { ?>
|
||||
|
||||
<aside id="hd_qnb">
|
||||
<h2>쇼핑몰 퀵메뉴</h2>
|
||||
<div>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/cart.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_cart.gif" alt="장바구니"></a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_wish.gif" alt="위시리스트"></a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_deli.gif" alt="주문/배송조회"></a>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php">정보수정</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php?url=shop">로그아웃</a></li>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li class="tnb_admin"><a href="<?php echo G5_ADMIN_URL; ?>/shop_admin/"><b>관리자</b></a></li>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/register.php">회원가입</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo $urlencode; ?>"><b>로그인</b></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="hd_wrapper">
|
||||
<div id="logo"><a href="<?php echo G5_SHOP_URL; ?>/"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="<?php echo $config['cf_title']; ?>"></a></div>
|
||||
|
||||
@ -43,7 +56,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
<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>
|
||||
<input type="submit" value="검색" id="sch_submit">
|
||||
<button type="submit" id="sch_submit"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
@ -54,59 +67,101 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
f.q.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div id="tnb">
|
||||
<h3>회원메뉴</h3>
|
||||
<ul>
|
||||
<?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=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">회원가입</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo $urlencode; ?>"><b>로그인</b></a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
||||
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<?php include(G5_SHOP_SKIN_PATH.'/boxtodayview.skin.php'); // 오늘 본 상품 ?>
|
||||
|
||||
<div id="aside">
|
||||
<?php echo outlogin('shop_basic'); // 아웃로그인 ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcategory.skin.php'); // 상품분류 ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcart.skin.php'); // 장바구니 ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxwish.skin.php'); // 위시리스트 ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxevent.skin.php'); // 이벤트 ?>
|
||||
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcommunity.skin.php'); // 커뮤니티 ?>
|
||||
|
||||
<!-- 쇼핑몰 배너 시작 { -->
|
||||
<?php echo display_banner('왼쪽'); ?>
|
||||
<!-- } 쇼핑몰 배너 끝 -->
|
||||
</div>
|
||||
<div id="hd_menu">
|
||||
<ul>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
|
||||
<li class="hd_menu_right"><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="side_menu">
|
||||
<button type="button" id="btn_sidemenu" class="btn_sidemenu_cl"><i class="fa fa-outdent" aria-hidden="true"></i><span class="sound_only">사이드메뉴버튼</span></button>
|
||||
<div class="side_menu_wr">
|
||||
<?php echo outlogin('shop_basic'); // 아웃로그인 ?>
|
||||
<div class="side_menu_shop">
|
||||
<button type="button" class="btn_side_shop">오늘본상품<span class="count"><?php echo get_view_today_items_count(); ?></span></button>
|
||||
<?php include(G5_SHOP_SKIN_PATH.'/boxtodayview.skin.php'); // 오늘 본 상품 ?>
|
||||
<button type="button" class="btn_side_shop">장바구니<span class="count"><?php echo get_boxcart_datas_count(); ?></span></button>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcart.skin.php'); // 장바구니 ?>
|
||||
<button type="button" class="btn_side_shop">위시리스트<span class="count"><?php echo get_wishlist_datas_count(); ?></span></button>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxwish.skin.php'); // 위시리스트 ?>
|
||||
</div>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcommunity.skin.php'); // 커뮤니티 ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(function (){
|
||||
|
||||
$(".btn_sidemenu_cl").on("click", function() {
|
||||
$(".side_menu_wr").toggle();
|
||||
$(".fa-outdent").toggleClass("fa-indent")
|
||||
});
|
||||
|
||||
$(".btn_side_shop").on("click", function() {
|
||||
$(this).next(".op_area").slideToggle(300).siblings(".op_area").slideUp();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="aside">
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/boxcategory.skin.php'); // 상품분류 ?>
|
||||
<?php include_once(G5_SHOP_PATH.'/category.php'); // 분류 ?>
|
||||
<?php if($default['de_type5_list_use']) { ?>
|
||||
<!-- 할인상품 시작 { -->
|
||||
<section class="sale_prd">
|
||||
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
$list->set_view('it_id', false);
|
||||
$list->set_view('it_name', true);
|
||||
$list->set_view('it_basic', false);
|
||||
$list->set_view('it_cust_price', false);
|
||||
$list->set_view('it_price', true);
|
||||
$list->set_view('it_icon', false);
|
||||
$list->set_view('sns', false);
|
||||
echo $list->run();
|
||||
?>
|
||||
</section>
|
||||
<!-- } 할인상품 끝 -->
|
||||
<?php } ?>
|
||||
|
||||
<!-- 커뮤니티 최신글 시작 { -->
|
||||
<section id="sidx_lat">
|
||||
<h2>커뮤니티 최신글</h2>
|
||||
<?php echo latest('shop_basic', 'notice', 5, 30); ?>
|
||||
</section>
|
||||
<!-- } 커뮤니티 최신글 끝 -->
|
||||
|
||||
<?php echo poll('shop_basic'); // 설문조사 ?>
|
||||
|
||||
<?php echo visit('shop_basic'); // 접속자 ?>
|
||||
</div>
|
||||
<!-- } 상단 끝 -->
|
||||
|
||||
<!-- 콘텐츠 시작 { -->
|
||||
|
||||
@ -19,14 +19,17 @@ $admin = get_admin("super");
|
||||
</div>
|
||||
|
||||
<div id="ft">
|
||||
<div>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" id="ft_logo"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img2" alt="처음으로"></a>
|
||||
<ul>
|
||||
<div class="ft_wr">
|
||||
<ul class="ft_ul">
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=company">회사소개</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=provision">서비스이용약관</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=privacy">개인정보처리방침</a></li>
|
||||
<li><a href="<?php echo get_device_change_url(); ?>">모바일버전</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" id="ft_logo"><img src="<?php echo G5_DATA_URL; ?>/common/logo_img2" alt="처음으로"></a>
|
||||
|
||||
<div class="ft_info">
|
||||
<span><b>회사명</b> <?php echo $default['de_admin_company_name']; ?></span>
|
||||
<span><b>주소</b> <?php echo $default['de_admin_company_addr']; ?></span><br>
|
||||
<span><b>사업자 등록번호</b> <?php echo $default['de_admin_company_saupja_no']; ?></span>
|
||||
@ -39,9 +42,26 @@ $admin = get_admin("super");
|
||||
|
||||
<?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_totop">상단으로</a>
|
||||
</div>
|
||||
|
||||
<div class="ft_cs">
|
||||
<h2>고객센터</h2>
|
||||
<strong>02-123-1234</strong>
|
||||
<p>월-금 am 9:00 - pm 05:00<br>점심시간 : am 12:00 - pm 01:00</p>
|
||||
</div>
|
||||
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
$("#top_btn").on("click", function() {
|
||||
$("html, body").animate({scrollTop:0}, '500');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@ -56,6 +76,7 @@ if ($config['cf_analytics']) {
|
||||
<script src="<?php echo G5_JS_URL; ?>/sns.js"></script>
|
||||
<!-- } 하단 끝 -->
|
||||
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
|
||||
@ -31,18 +31,9 @@ include_once('./_head.php');
|
||||
<input type="hidden" name="sw_direct" value="">
|
||||
<input type="hidden" name="prog" value="wish">
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">이미지</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">보관일시</th>
|
||||
<th scope="col">삭제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<div class="list_02">
|
||||
<ul>
|
||||
|
||||
<?php
|
||||
$sql = " select a.wi_id, a.wi_time, b.* from {$g5['g5_shop_wish_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) ";
|
||||
$sql .= " where a.mb_id = '{$member['mb_id']}' order by a.wi_id desc ";
|
||||
@ -59,46 +50,47 @@ include_once('./_head.php');
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
$image = get_it_image($row['it_id'],230, 230);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
if(is_soldout($row['it_id']))
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<label for="chk_it_id_<?php echo $i; ?>" class="sound_only"><?php echo $row['it_name']; ?></label>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" id="chk_it_id_<?php echo $i; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?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="sod_ws_img"><?php echo $image; ?></td>
|
||||
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
|
||||
<td class="td_datetime"><?php echo $row['wi_time']; ?></td>
|
||||
<td class="td_mngsmall"><a href="./wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>">삭제</a></td>
|
||||
</tr>
|
||||
<li>
|
||||
<div class="sod_ws_img"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?></a></div>
|
||||
<div class="wish_info">
|
||||
<div class="wish_chk">
|
||||
<?php
|
||||
// 품절검사
|
||||
if(is_soldout($row['it_id']))
|
||||
{
|
||||
?>
|
||||
품절
|
||||
<?php } else { //품절이 아니면 체크할수 있도록한다 ?>
|
||||
<label for="chk_it_id_<?php echo $i; ?>" class="sound_only"><?php echo $row['it_name']; ?></label>
|
||||
<input type="checkbox" name="chk_it_id[<?php echo $i; ?>]" value="1" id="chk_it_id_<?php echo $i; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="hidden" name="io_type[<?php echo $row['it_id']; ?>][0]" value="0">
|
||||
<input type="hidden" name="io_id[<?php echo $row['it_id']; ?>][0]" value="">
|
||||
<input type="hidden" name="io_value[<?php echo $row['it_id']; ?>][0]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $row['it_id']; ?>][0]" value="1">
|
||||
</div>
|
||||
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>" class="info_link"><?php echo stripslashes($row['it_name']); ?></a>
|
||||
<div class="info_date"><?php echo $row['wi_time']; ?></div>
|
||||
<a href="./wishupdate.php?w=d&wi_id=<?php echo $row['wi_id']; ?>" class="wish_del"><i class="fa fa-trash" aria-hidden="true"></i><span class="sound_only">삭제</span></a>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="5" class="empty_table">보관함이 비었습니다.</td></tr>';
|
||||
echo '<li class="empty_table">보관함이 비었습니다.</li>';
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="sod_ws_act">
|
||||
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');">장바구니 담기</button>
|
||||
<button type="submit" class="btn02" onclick="return fwishlist_check(document.fwishlist,'direct_buy');">주문하기</button>
|
||||
<button type="submit" class="btn01" onclick="return fwishlist_check(document.fwishlist,'');"><i class="fa fa-shopping-cart" aria-hidden="true"></i> 장바구니 담기</button>
|
||||
<button type="submit" class="btn02" onclick="return fwishlist_check(document.fwishlist,'direct_buy');"><i class="fa fa-credit-card" aria-hidden="true"></i> 주문하기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||