g4를 g5로 변경
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once('../common.php');
|
||||
|
||||
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP)
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_SHOP_PATH.'/shop.tail.php');
|
||||
include_once(G5_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
@ -3,7 +3,7 @@ include_once("./_common.php");
|
||||
|
||||
if ($_COOKIE['ck_bn_id'] != $bn_id)
|
||||
{
|
||||
$sql = " update {$g4['shop_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
|
||||
$sql = " update {$g5['shop_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
|
||||
sql_query($sql);
|
||||
// 하루 동안
|
||||
set_cookie("ck_bn_id", $bn_id, 60*60*24);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// 배너 출력
|
||||
$sql = " select * from {$g4['shop_banner_table']} where '".G4_TIME_YMDHIS."' between bn_begin_time and bn_end_time and bn_position = '$position' order by bn_order, bn_id desc ";
|
||||
$sql = " select * from {$g5['shop_banner_table']} where '".G5_TIME_YMDHIS."' between bn_begin_time and bn_end_time and bn_position = '$position' order by bn_order, bn_id desc ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
@ -14,7 +14,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
// 새창 띄우기인지
|
||||
$bn_new_win = ($row['bn_new_win']) ? ' target="'.$row['bn_new_win'].'"' : '';
|
||||
|
||||
$bimg = G4_DATA_PATH.'/banner/'.$row['bn_id'];
|
||||
$bimg = G5_DATA_PATH.'/banner/'.$row['bn_id'];
|
||||
if (file_exists($bimg))
|
||||
{
|
||||
$size = getimagesize($bimg);
|
||||
@ -22,9 +22,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
if ($row['bn_url'][0] == '#')
|
||||
echo '<a href="'.$row['bn_url'].'">';
|
||||
else if ($row['bn_url'] && $row['bn_url'] != 'http://') {
|
||||
echo '<a href="'.G4_SHOP_URL.'/bannerhit.php?bn_id='.$row['bn_id'].'&url='.urlencode($row['bn_url']).'"'.$bn_new_win.'>';
|
||||
echo '<a href="'.G5_SHOP_URL.'/bannerhit.php?bn_id='.$row['bn_id'].'&url='.urlencode($row['bn_url']).'"'.$bn_new_win.'>';
|
||||
}
|
||||
echo '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" alt="'.$row['bn_alt'].'" width="'.$size[0].'" height="'.$size[1].'"></a>'.PHP_EOL;
|
||||
echo '<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'" alt="'.$row['bn_alt'].'" width="'.$size[0].'" height="'.$size[1].'"></a>'.PHP_EOL;
|
||||
echo '</li>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
$hsql = " select it_id, it_name from {$g4['shop_cart_table']} ";
|
||||
$hsql = " select it_id, it_name from {$g5['shop_cart_table']} ";
|
||||
$hsql .= " where od_id = '".get_session('ss_cart_id')."' group by it_id ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
@ -17,7 +17,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row['it_id'], 50, 50, true);
|
||||
echo '<a href="'.G4_SHOP_URL.'/cart.php">'.$it_name.'</a>';
|
||||
echo '<a href="'.G5_SHOP_URL.'/cart.php">'.$it_name.'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<ul id="gnb_1dul">
|
||||
<?php
|
||||
// 1단계 분류 판매 가능한 것만
|
||||
$hsql = " select ca_id, ca_name from {$g4['shop_category_table']} where length(ca_id) = '2' and ca_use = '1' order by ca_id ";
|
||||
$hsql = " select ca_id, ca_name from {$g5['shop_category_table']} where length(ca_id) = '2' and ca_use = '1' order by ca_id ";
|
||||
$hresult = sql_query($hsql);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$count = count($hresult);
|
||||
@ -17,16 +17,16 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
$gnb_zindex -= 1; // html 구조에서 앞선 gnb_1dli 에 더 높은 z-index 값 부여
|
||||
?>
|
||||
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex; ?>">
|
||||
<a href="<?php echo G4_SHOP_URL.'/list.php?ca_id='.$row['ca_id']; ?>" class="gnb_1da"><?php echo $row['ca_name']; ?></a>
|
||||
<a href="<?php echo G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id']; ?>" class="gnb_1da"><?php echo $row['ca_name']; ?></a>
|
||||
<?php
|
||||
// 2단계 분류 판매 가능한 것만
|
||||
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']} where LENGTH(ca_id) = '4' and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}' and ca_use = '1' order by ca_id ";
|
||||
$sql2 = " select ca_id, ca_name from {$g5['shop_category_table']} where LENGTH(ca_id) = '4' and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}' and ca_use = '1' order by ca_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($j=0; $row2=sql_fetch_array($result2); $j++)
|
||||
{
|
||||
if ($j==0) echo '<ul class="gnb_2dul" style="z-index:'.$gnb_zindex.'">';
|
||||
?>
|
||||
<li class="gnb_2dli"><a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $row2['ca_id']; ?>" class="gnb_2da"><?php echo $row2['ca_name']; ?></a></li>
|
||||
<li class="gnb_2dli"><a href="<?php echo G5_SHOP_URL; ?>/list.php?ca_id=<?php echo $row2['ca_id']; ?>" class="gnb_2da"><?php echo $row2['ca_name']; ?></a></li>
|
||||
<?php }
|
||||
if ($j>0) echo '</ul>';
|
||||
?>
|
||||
|
||||
@ -9,11 +9,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<ul>
|
||||
|
||||
<?php
|
||||
$hsql = " select bo_table, bo_subject from {$g4['board_table']} order by gr_id, bo_table ";
|
||||
$hsql = " select bo_table, bo_subject from {$g5['board_table']} order by gr_id, bo_table ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo '<li><a href="'.G4_BBS_URL.'/board.php?bo_table='.$row['bo_table'].'">'.$row['bo_subject'].'</a></li>'.PHP_EOL;
|
||||
echo '<li><a href="'.G5_BBS_URL.'/board.php?bo_table='.$row['bo_table'].'">'.$row['bo_subject'].'</a></li>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
|
||||
@ -8,18 +8,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
$hsql = " select ev_id, ev_subject, ev_subject_strong from {$g4['shop_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hsql = " select ev_id, ev_subject, ev_subject_strong from {$g5['shop_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
|
||||
echo '<li>';
|
||||
$href = G4_SHOP_URL.'/event.php?ev_id='.$row['ev_id'];
|
||||
$href = G5_SHOP_URL.'/event.php?ev_id='.$row['ev_id'];
|
||||
|
||||
$event_img = G4_DATA_PATH.'/event/'.$row['ev_id'].'_m'; // 이벤트 이미지
|
||||
$event_img = G5_DATA_PATH.'/event/'.$row['ev_id'].'_m'; // 이벤트 이미지
|
||||
|
||||
if (file_exists($event_img)) { // 이벤트 이미지가 있다면 이미지 출력
|
||||
echo '<a href="'.$href.'" class="sev_img"><img src="'.G4_DATA_URL.'/event/'.$row['ev_id'].'_m" alt="'.$row['ev_subject'].'"></a>'.PHP_EOL;
|
||||
echo '<a href="'.$href.'" class="sev_img"><img src="'.G5_DATA_URL.'/event/'.$row['ev_id'].'_m" alt="'.$row['ev_subject'].'"></a>'.PHP_EOL;
|
||||
} else { // 없다면 텍스트 출력
|
||||
echo '<a href="'.$href.'" class="sev_text">';
|
||||
if ($row['ev_subject_strong']) echo '<strong>';
|
||||
|
||||
@ -22,7 +22,7 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
|
||||
for ($i=1;$i<=$tv_idx;$i++)
|
||||
{
|
||||
$tv_it_id = get_session("ss_tv[$i]");
|
||||
$rowx = sql_fetch(" select it_name from $g4[shop_item_table] where it_id = '$tv_it_id' ");
|
||||
$rowx = sql_fetch(" select it_name from $g5[shop_item_table] where it_id = '$tv_it_id' ");
|
||||
$j = $i - 1;
|
||||
if ($j%$tv_div['img_length']==0) $k++;
|
||||
$it_name = get_text(addslashes($rowx['it_name']));
|
||||
@ -86,9 +86,9 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
|
||||
<?php } ?>
|
||||
|
||||
<ul id="stv_nb">
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/cart.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G4_SHOP_URL; ?>/img/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G5_SHOP_URL; ?>/img/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -109,6 +109,6 @@ $(window).scroll(function() {
|
||||
</script>
|
||||
|
||||
<!--[if lte IE 6]>
|
||||
<script src="<?php echo G4_JS_URL ?>/scroll_oldie.js"></script>
|
||||
<script src="<?php echo G5_JS_URL ?>/scroll_oldie.js"></script>
|
||||
<![endif]-->
|
||||
<!-- } 오늘 본 상품 끝 -->
|
||||
@ -8,7 +8,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b ";
|
||||
$hsql = " select a.it_id, b.it_name from {$g5['shop_wish_table']} a, {$g5['shop_item_table']} b ";
|
||||
$hsql .= " where a.mb_id = '{$member['mb_id']}' and a.it_id = b.it_id order by a.wi_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
@ -17,7 +17,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id], 50, 50, true);
|
||||
echo '<a href="'.G4_SHOP_URL.'/wishlist.php">'.$it_name.'</a>';
|
||||
echo '<a href="'.G5_SHOP_URL.'/wishlist.php">'.$it_name.'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
|
||||
@ -6,22 +6,22 @@ set_cart_id($sw_direct);
|
||||
|
||||
$s_cart_id = get_session('ss_cart_id');
|
||||
// 선택필드 초기화
|
||||
$sql = " update {$g4['shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' ";
|
||||
$sql = " update {$g5['shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
$cart_action_url = G4_SHOP_URL.'/cartupdate.php';
|
||||
$cart_action_url = G5_SHOP_URL.'/cartupdate.php';
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/cart.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/cart.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$g4['title'] = '장바구니';
|
||||
$g5['title'] = '장바구니';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<!-- 장바구니 시작 { -->
|
||||
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.js"></script>
|
||||
|
||||
<div id="sod_bsk">
|
||||
|
||||
@ -58,10 +58,10 @@ include_once('./_head.php');
|
||||
b.ca_id,
|
||||
b.ca_id2,
|
||||
b.ca_id3
|
||||
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
@ -76,7 +76,7 @@ include_once('./_head.php');
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
@ -155,13 +155,13 @@ include_once('./_head.php');
|
||||
|
||||
<div id="sod_bsk_act">
|
||||
<?php if ($i == 0) { ?>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/" class="btn01">쇼핑 계속하기</a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/" class="btn01">쇼핑 계속하기</a>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="url" value="./orderform.php">
|
||||
<input type="hidden" name="records" value="<?php echo $i; ?>">
|
||||
<input type="hidden" name="act" value="">
|
||||
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
|
||||
<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="btn02">주문하기</button>
|
||||
<button type="button" onclick="return form_check('seldelete');" class="btn01">선택삭제</button>
|
||||
<button type="button" onclick="return form_check('alldelete');" class="btn01">비우기</button>
|
||||
|
||||
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
|
||||
$it_id = $_POST['it_id'];
|
||||
|
||||
$sql = " select it_id, it_option_subject, it_supply_subject, it_price, it_point, it_point_type from {$g4['shop_item_table']} where it_id = '$it_id' and it_use = '1' ";
|
||||
$sql = " select it_id, it_option_subject, it_supply_subject, it_price, it_point, it_point_type from {$g5['shop_item_table']} where it_id = '$it_id' and it_use = '1' ";
|
||||
$it = sql_fetch($sql);
|
||||
$it_point = get_item_point($it);
|
||||
|
||||
@ -12,11 +12,11 @@ if(!$it['it_id'])
|
||||
|
||||
// 장바구니 자료
|
||||
$cart_id = get_session('ss_cart_id');
|
||||
$sql = " select * from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by io_type asc, ct_id asc ";
|
||||
$sql = " select * from {$g5['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by io_type asc, ct_id asc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
// 판매가격
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by ct_id asc limit 1 ";
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g5['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by ct_id asc limit 1 ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
if(!mysql_num_rows($result))
|
||||
@ -24,7 +24,7 @@ if(!mysql_num_rows($result))
|
||||
?>
|
||||
|
||||
<!-- 장바구니 옵션 시작 { -->
|
||||
<form name="foption" method="post" action="<?php echo G4_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
||||
<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
|
||||
<input type="hidden" name="act" value="optionmod">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||
<input type="hidden" id="it_price" value="<?php echo $row2['ct_price']; ?>">
|
||||
|
||||
@ -34,7 +34,7 @@ if($act == "buy")
|
||||
$ct_chk = $_POST['ct_chk'][$i];
|
||||
if($ct_chk) {
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
$sql = " update {$g5['shop_cart_table']}
|
||||
set ct_select = '1'
|
||||
where it_id = '$it_id' and od_id = '$tmp_cart_id' ";
|
||||
sql_query($sql);
|
||||
@ -42,13 +42,13 @@ if($act == "buy")
|
||||
}
|
||||
|
||||
if ($is_member) // 회원인 경우
|
||||
goto_url(G4_SHOP_URL.'/orderform.php');
|
||||
goto_url(G5_SHOP_URL.'/orderform.php');
|
||||
else
|
||||
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderform.php'));
|
||||
goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderform.php'));
|
||||
}
|
||||
else if ($act == "alldelete") // 모두 삭제이면
|
||||
{
|
||||
$sql = " delete from {$g4['shop_cart_table']}
|
||||
$sql = " delete from {$g5['shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
@ -62,7 +62,7 @@ else if ($act == "seldelete") // 선택삭제
|
||||
$ct_chk = $_POST['ct_chk'][$i];
|
||||
if($ct_chk) {
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' and od_id = '$tmp_cart_id' ";
|
||||
$sql = " delete from {$g5['shop_cart_table']} where it_id = '$it_id' and od_id = '$tmp_cart_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
@ -91,14 +91,14 @@ else // 장바구니에 담기
|
||||
}
|
||||
|
||||
// 상품정보
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g5['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
if(!$it['it_id'])
|
||||
alert('상품정보가 존재하지 않습니다.');
|
||||
|
||||
// 옵션정보를 얻어서 배열에 저장
|
||||
$opt_list = array();
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '$it_id' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '$it_id' order by io_no asc ";
|
||||
$result = sql_query($sql);
|
||||
$lst_count = 0;
|
||||
for($k=0; $row=sql_fetch_array($result); $k++) {
|
||||
@ -123,7 +123,7 @@ else // 장바구니에 담기
|
||||
$io_type = $_POST['io_type'][$it_id][$k];
|
||||
$io_value = $_POST['io_value'][$it_id][$k];
|
||||
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g5['shop_cart_table']}
|
||||
where it_id = '$it_id'
|
||||
and od_id = '$tmp_cart_id'
|
||||
and io_id = '$io_id' ";
|
||||
@ -146,11 +146,11 @@ else // 장바구니에 담기
|
||||
|
||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||
if($i == 0)
|
||||
sql_query(" delete from {$g4['shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
|
||||
sql_query(" delete from {$g5['shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
|
||||
|
||||
// 옵션수정일 때 기존 장바구니 자료를 먼저 삭제
|
||||
if($act == 'optionmod')
|
||||
sql_query(" delete from {$g4['shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' ");
|
||||
sql_query(" delete from {$g5['shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' ");
|
||||
|
||||
// 장바구니에 Insert
|
||||
// 바로구매일 경우 장바구니가 체크된것으로 강제 설정
|
||||
@ -161,7 +161,7 @@ else // 장바구니에 담기
|
||||
|
||||
// 장바구니에 Insert
|
||||
$comma = '';
|
||||
$sql = " INSERT INTO {$g4['shop_cart_table']}
|
||||
$sql = " INSERT INTO {$g5['shop_cart_table']}
|
||||
( od_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select )
|
||||
VALUES ";
|
||||
|
||||
@ -183,21 +183,21 @@ else // 장바구니에 담기
|
||||
|
||||
// 동일옵션의 상품이 있으면 수량 더함
|
||||
$sql2 = " select ct_id
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and it_id = '$it_id'
|
||||
and io_id = '$io_id'
|
||||
and ct_status = '쇼핑' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if($row2['ct_id']) {
|
||||
$sql3 = " update {$g4['shop_cart_table']}
|
||||
$sql3 = " update {$g5['shop_cart_table']}
|
||||
set ct_qty = ct_qty + '$ct_qty'
|
||||
where ct_id = '{$row2['ct_id']}' ";
|
||||
sql_query($sql3);
|
||||
continue;
|
||||
}
|
||||
|
||||
$sql .= $comma."( '$tmp_cart_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
|
||||
$sql .= $comma."( '$tmp_cart_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G5_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
|
||||
$comma = ' , ';
|
||||
$ct_count++;
|
||||
}
|
||||
@ -212,15 +212,15 @@ if ($sw_direct)
|
||||
{
|
||||
if ($is_member)
|
||||
{
|
||||
goto_url(G4_SHOP_URL."/orderform.php?sw_direct=$sw_direct");
|
||||
goto_url(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct");
|
||||
}
|
||||
else
|
||||
{
|
||||
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderform.php?sw_direct=$sw_direct"));
|
||||
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/orderform.php?sw_direct=$sw_direct"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
goto_url(G4_SHOP_URL.'/cart.php');
|
||||
goto_url(G5_SHOP_URL.'/cart.php');
|
||||
}
|
||||
?>
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 모바일 쇼핑몰 카테고리 선택시에만 사용함
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/category.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/category.php');
|
||||
return;
|
||||
}
|
||||
?>
|
||||
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
$list_mod = 2; // 한라인에 몇개씩 출력할것인지?
|
||||
$list_row = 3; // 한게시판당 몇행씩 출력할것인지?
|
||||
$subject_len = 70; // 제목의 길이는?
|
||||
|
||||
$g4['title'] = '커뮤니티';
|
||||
$g5['title'] = '커뮤니티';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 최신글 시작
|
||||
$sql = " select bo_table, bo_subject from {$g4['board_table']} order by gr_id, bo_table ";
|
||||
$sql = " select bo_table, bo_subject from {$g5['board_table']} order by gr_id, bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 내용
|
||||
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select * from {$g5['shop_content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert('등록된 내용이 없습니다.');
|
||||
|
||||
$g4['title'] = $co['co_subject'];
|
||||
$g5['title'] = $co['co_subject'];
|
||||
|
||||
if ($co['co_include_head'])
|
||||
@include_once($co['co_include_head']);
|
||||
@ -50,19 +50,19 @@ $dst[] = $default['de_admin_info_email'];
|
||||
$str = preg_replace($src, $dst, $str);
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
echo '<div class="socc_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
?>
|
||||
|
||||
<!-- 등록내용 시작 { -->
|
||||
<?php
|
||||
$himg = G4_DATA_PATH.'/content/'.$co_id.'_h';
|
||||
$himg = G5_DATA_PATH.'/content/'.$co_id.'_h';
|
||||
if (file_exists($himg)) // 상단 이미지
|
||||
echo '<div id="socc_himg" class="socc_img"><img src="'.G4_DATA_URL.'/content/'.$co_id.'_h" alt=""></div>';
|
||||
echo '<div id="socc_himg" class="socc_img"><img src="'.G5_DATA_URL.'/content/'.$co_id.'_h" alt=""></div>';
|
||||
?>
|
||||
|
||||
<article id="socc" class="socc_<?php echo $co_id; ?>">
|
||||
<header>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
</header>
|
||||
|
||||
<div id="socc_con">
|
||||
@ -72,12 +72,12 @@ if (file_exists($himg)) // 상단 이미지
|
||||
</article>
|
||||
|
||||
<?php
|
||||
$timg = G4_DATA_PATH.'/content/'.$co_id.'_t';
|
||||
$timg = G5_DATA_PATH.'/content/'.$co_id.'_t';
|
||||
if (file_exists($timg)) // 하단 이미지
|
||||
echo '<div id="socc_timg" class="socc_img"><img src="'.G4_DATA_URL.'/content/'.$co_id.'_t" alt=""></div>';
|
||||
echo '<div id="socc_timg" class="socc_img"><img src="'.G5_DATA_URL.'/content/'.$co_id.'_t" alt=""></div>';
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
echo '<div class="socc_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
?>
|
||||
<!-- } 등록내용 끝 -->
|
||||
|
||||
|
||||
@ -4,21 +4,21 @@ include_once('./_common.php');
|
||||
if ($is_guest)
|
||||
alert_close('회원만 조회하실 수 있습니다.');
|
||||
|
||||
$g4['title'] = $member['mb_nick'].' 님의 쿠폰 내역';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
$g5['title'] = $member['mb_nick'].' 님의 쿠폰 내역';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
|
||||
$sql = " select cp_id, cp_subject, cp_method, cp_target, cp_start, cp_end, cp_type, cp_price
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
order by cp_no ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<!-- 쿠폰 내역 시작 { -->
|
||||
<div id="coupon" class="new_win">
|
||||
<h1 id="new_win_title"><?php echo $g4['title'] ?></h1>
|
||||
<h1 id="new_win_title"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
@ -37,7 +37,7 @@ $result = sql_query($sql);
|
||||
continue;
|
||||
|
||||
if($row['cp_method'] == 1) {
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$row['cp_target']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
$cp_target = $ca['ca_name'].'의 상품할인';
|
||||
} else if($row['cp_method'] == 2) {
|
||||
@ -45,7 +45,7 @@ $result = sql_query($sql);
|
||||
} else if($row['cp_method'] == 3) {
|
||||
$cp_target = '배송비 할인';
|
||||
} else {
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id = '{$row['cp_target']}' ";
|
||||
$sql = " select it_name from {$g5['shop_item_table']} where it_id = '{$row['cp_target']}' ";
|
||||
$it = sql_fetch($sql);
|
||||
$cp_target = $it['it_name'].' 상품할인';
|
||||
}
|
||||
@ -76,5 +76,5 @@ $result = sql_query($sql);
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -1,25 +1,25 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select * from {$g4['shop_event_table']}
|
||||
$sql = " select * from {$g5['shop_event_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and ev_use = 1 ";
|
||||
$ev = sql_fetch($sql);
|
||||
if (!$ev['ev_id'])
|
||||
alert('등록된 이벤트가 없습니다.');
|
||||
|
||||
$g4['title'] = $ev['ev_subject'];
|
||||
$g5['title'] = $ev['ev_subject'];
|
||||
include_once('./_head.php');
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="sev_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/itemeventform.php?w=u&ev_id='.$ev['ev_id'].'" class="btn_admin">이벤트 관리</a></div>';
|
||||
echo '<div class="sev_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemeventform.php?w=u&ev_id='.$ev['ev_id'].'" class="btn_admin">이벤트 관리</a></div>';
|
||||
?>
|
||||
|
||||
<!-- 이벤트 시작 { -->
|
||||
<?php
|
||||
$himg = G4_DATA_PATH.'/event/'.$ev_id.'_h';
|
||||
$himg = G5_DATA_PATH.'/event/'.$ev_id.'_h';
|
||||
if (file_exists($himg))
|
||||
echo '<div id="sev_himg" class="sev_img"><img src="'.G4_DATA_URL.'/event/'.$ev_id.'_h" alt=""></div>';
|
||||
echo '<div id="sev_himg" class="sev_img"><img src="'.G5_DATA_URL.'/event/'.$ev_id.'_h" alt=""></div>';
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sev_hhtml">'.stripslashes($ev['ev_head_html']).'</div>';
|
||||
@ -28,19 +28,19 @@ echo '<div id="sev_hhtml">'.stripslashes($ev['ev_head_html']).'</div>';
|
||||
if ($sort != "")
|
||||
$order_by = $sort.' '.$sortodr.' , b.it_order, b.it_id desc';
|
||||
|
||||
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
|
||||
$error = "<img src='".G5_SHOP_URL."/img/no_item.gif' border=0>";
|
||||
|
||||
if ($skin)
|
||||
$ev['ev_skin'] = $skin;
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_SKIN_PATH."/{$ev['ev_skin']}";
|
||||
$list_file = G5_SHOP_SKIN_PATH."/{$ev['ev_skin']}";
|
||||
if (file_exists($list_file))
|
||||
{
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
include G5_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
// 상품 보기 타입 변경 버튼
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G5_SHOP_PATH.'/list.sub.php';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ev['ev_list_mod'] * $ev['ev_list_row'];
|
||||
@ -83,7 +83,7 @@ if ($i==0)
|
||||
|
||||
<?php
|
||||
// 상품 보기 타입 변경 처리 스크립트
|
||||
include G4_SHOP_PATH.'/list.sub2.php';
|
||||
include G5_SHOP_PATH.'/list.sub2.php';
|
||||
|
||||
$qstr .= 'skin='.$skin.'&ev_id='.$ev_id.'&sort='.$sort.'&sortodr='.$sortodr;
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
@ -93,9 +93,9 @@ echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_S
|
||||
// 하단 HTML
|
||||
echo '<div id="sev_thtml">'.stripslashes($ev['ev_tail_html']).'</div>';
|
||||
|
||||
$timg = G4_DATA_PATH.'/event/'.$ev_id.'_t';
|
||||
$timg = G5_DATA_PATH.'/event/'.$ev_id.'_t';
|
||||
if (file_exists($timg))
|
||||
echo '<div id="sev_timg" class="sev_img"><img src="'.G4_DATA_URL.'/event/'.$ev_id.'_t" alt=""></div>';
|
||||
echo '<div id="sev_timg" class="sev_img"><img src="'.G5_DATA_URL.'/event/'.$ev_id.'_t" alt=""></div>';
|
||||
?>
|
||||
<!-- } 이벤트 끝 -->
|
||||
|
||||
|
||||
24
shop/faq.php
24
shop/faq.php
@ -4,25 +4,25 @@ include_once('./_common.php');
|
||||
if (!$fm_id) $fm_id = 1;
|
||||
|
||||
// FAQ MASTER
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
if (!$fm['fm_id'])
|
||||
alert('등록된 내용이 없습니다.');
|
||||
|
||||
$g4['title'] = $fm['fm_subject'];
|
||||
$g5['title'] = $fm['fm_subject'];
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($is_admin)
|
||||
echo '<div class="sfaq_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/faqmasterform.php?w=u&fm_id='.$fm_id.'" class="btn_admin">FAQ 수정</a></div>';
|
||||
echo '<div class="sfaq_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/faqmasterform.php?w=u&fm_id='.$fm_id.'" class="btn_admin">FAQ 수정</a></div>';
|
||||
?>
|
||||
|
||||
<!-- FAQ 시작 { -->
|
||||
<?php
|
||||
$himg = G4_DATA_PATH.'/faq/'.$fm_id.'_h';
|
||||
$himg = G5_DATA_PATH.'/faq/'.$fm_id.'_h';
|
||||
if (file_exists($himg))
|
||||
echo '<div id="sfaq_himg" class="sfaq_img"><img src="'.G4_DATA_URL.'/faq/'.$fm_id.'_h" alt=""></div>';
|
||||
echo '<div id="sfaq_himg" class="sfaq_img"><img src="'.G5_DATA_URL.'/faq/'.$fm_id.'_h" alt=""></div>';
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
@ -30,7 +30,7 @@ echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
|
||||
<div id="sfaq_wrap" class="sfaq_<?php echo $fm_id; ?>">
|
||||
<?php // FAQ 목차
|
||||
$sql = " select * from {$g4['shop_faq_table']}
|
||||
$sql = " select * from {$g5['shop_faq_table']}
|
||||
where fm_id = '$fm_id'
|
||||
order by fa_order , fa_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -40,7 +40,7 @@ echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
{
|
||||
?>
|
||||
<section id="sfaq_list">
|
||||
<h2><?php echo $g4['title']; ?> 목차</h2>
|
||||
<h2><?php echo $g5['title']; ?> 목차</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li><a href="#sfaq_<?php echo $fm_id.'_'.$i; ?>"><?php echo stripslashes($row['fa_subject']); ?></a></li>
|
||||
@ -56,7 +56,7 @@ echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
{
|
||||
?>
|
||||
<section id="sfaq_con">
|
||||
<h2><?php echo $g4['title']; ?> 내용</h2>
|
||||
<h2><?php echo $g5['title']; ?> 내용</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li id="sfaq_<?php echo $fm_id.'_'.$i; ?>">
|
||||
@ -69,7 +69,7 @@ echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
<?php }
|
||||
if ($i > 1) echo '</ol></section>';
|
||||
|
||||
if ($i == 1) echo '<p>등록된 FAQ가 없습니다.<br><a href="'.G4_ADMIN_URL.'/shop_admin/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.</p>';
|
||||
if ($i == 1) echo '<p>등록된 FAQ가 없습니다.<br><a href="'.G5_ADMIN_URL.'/shop_admin/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
@ -77,15 +77,15 @@ echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
// 하단 HTML
|
||||
echo '<div id="sfaq_thtml">'.stripslashes($fm['fm_tail_html']).'</div>';
|
||||
|
||||
$timg = G4_DATA_PATH.'/faq/'.$fm_id.'_t';
|
||||
$timg = G5_DATA_PATH.'/faq/'.$fm_id.'_t';
|
||||
if (file_exists($timg))
|
||||
echo '<div id="sfaq_timg" class="sfaq_img"><img src="'.G4_DATA_URL.'/faq/'.$fm_id.'_t" alt=""></div>';
|
||||
echo '<div id="sfaq_timg" class="sfaq_img"><img src="'.G5_DATA_URL.'/faq/'.$fm_id.'_t" alt=""></div>';
|
||||
?>
|
||||
<!-- } FAQ 끝 -->
|
||||
|
||||
<?php
|
||||
if ($is_admin)
|
||||
echo '<div class="sfaq_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/faqmasterform.php?w=u&fm_id='.$fm_id.'" class="btn_admin">FAQ 수정</a></div>';
|
||||
echo '<div class="sfaq_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/faqmasterform.php?w=u&fm_id='.$fm_id.'" class="btn_admin">FAQ 수정</a></div>';
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
@ -1,29 +1,29 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/index.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
define("_INDEX_", TRUE);
|
||||
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G4_LIB_PATH.'/poll.lib.php');
|
||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G5_LIB_PATH.'/poll.lib.php');
|
||||
|
||||
include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
include_once(G5_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인이미지 시작 { -->
|
||||
<div id="sidx_img">
|
||||
<img src="<?php echo G4_DATA_URL; ?>/common/main_img" alt="">
|
||||
<img src="<?php echo G5_DATA_URL; ?>/common/main_img" alt="">
|
||||
</div>
|
||||
<!-- } 메인이미지 끝 -->
|
||||
|
||||
<!-- 히트상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<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
|
||||
@ -44,7 +44,7 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
<!-- 추천상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<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
|
||||
@ -64,7 +64,7 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
<!-- 최신상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<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
|
||||
@ -84,7 +84,7 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
<!-- 인기상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<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
|
||||
@ -104,7 +104,7 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
<!-- 할인상품 시작 { -->
|
||||
<section class="sct_wrap">
|
||||
<header>
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<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
|
||||
@ -142,5 +142,5 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
<!-- } 메인배너 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G4_SHOP_PATH.'/shop.tail.php');
|
||||
include_once(G5_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/item.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/item.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$it_id = escape_trim($_GET['it_id']);
|
||||
|
||||
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
|
||||
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
// 분류사용, 상품사용하는 상품의 정보를 얻음
|
||||
$sql = " select a.*, b.ca_name, b.ca_use from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b where a.it_id = '$it_id' and a.ca_id = b.ca_id ";
|
||||
$sql = " select a.*, b.ca_name, b.ca_use from {$g5['shop_item_table']} a, {$g5['shop_category_table']} b where a.it_id = '$it_id' and a.ca_id = b.ca_id ";
|
||||
$it = sql_fetch($sql);
|
||||
if (!$it['it_id'])
|
||||
alert('자료가 없습니다.');
|
||||
@ -21,7 +21,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
||||
}
|
||||
|
||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||
$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use from {$g4['shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
||||
$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use from {$g5['shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
if(!$is_admin) {
|
||||
@ -64,11 +64,11 @@ if (!$saved) {
|
||||
|
||||
// 조회수 증가
|
||||
if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
sql_query(" update {$g4['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
sql_query(" update {$g5['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
||||
}
|
||||
|
||||
$g4['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||
$g5['title'] = $it['it_name'].' > '.$it['ca_name'];
|
||||
|
||||
// 분류 상단 코드가 있으면 출력하고 없으면 기본 상단 코드 출력
|
||||
if ($ca['ca_include_head'])
|
||||
@ -79,13 +79,13 @@ else
|
||||
// 분류 위치
|
||||
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
||||
$ca_id = $it['ca_id'];
|
||||
include G4_SHOP_PATH.'/navigation.inc.php';
|
||||
include G5_SHOP_PATH.'/navigation.inc.php';
|
||||
|
||||
// 이 분류에 속한 하위분류 출력
|
||||
include G4_SHOP_PATH.'/listcategory.inc.php';
|
||||
include G5_SHOP_PATH.'/listcategory.inc.php';
|
||||
|
||||
if ($is_admin) {
|
||||
echo '<div class="sit_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
||||
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>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -95,7 +95,7 @@ if ($is_admin) {
|
||||
echo '<div id="sit_hhtml">'.stripslashes($it['it_head_html']).'</div>';
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['shop_item_table']} where it_id > '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 ";
|
||||
$sql = " select it_id, it_name from {$g5['shop_item_table']} where it_id > '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$prev_title = '이전상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
@ -108,7 +108,7 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['shop_item_table']} where it_id < '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 ";
|
||||
$sql = " select it_id, it_name from {$g5['shop_item_table']} where it_id < '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$next_title = '다음 상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
@ -121,27 +121,27 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 관리자가 확인한 사용후기의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$sql = " select count(*) as cnt from `{$g5['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_use_count = $row['cnt'];
|
||||
|
||||
// 상품문의의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g4['shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$sql = " select count(*) as cnt from `{$g5['shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_qa_count = $row['cnt'];
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_relation_table']} a left join {$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'];
|
||||
|
||||
// 상품 선택옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$opt_count = $row['cnt'];
|
||||
|
||||
// 상품 추가옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$spl_count = $row['cnt'];
|
||||
|
||||
@ -156,28 +156,28 @@ $option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
|
||||
|
||||
// 소셜 관련
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = G4_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo2.png');
|
||||
$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_URL.'/img/sns_fb2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo2.png');
|
||||
|
||||
// 보안서버경로
|
||||
if (G4_HTTPS_DOMAIN)
|
||||
$action_url = G4_HTTPS_DOMAIN.'/'.G4_SHOP_DIR.'/cartupdate.php';
|
||||
if (G5_HTTPS_DOMAIN)
|
||||
$action_url = G5_HTTPS_DOMAIN.'/'.G5_SHOP_DIR.'/cartupdate.php';
|
||||
else
|
||||
$action_url = './cartupdate.php';
|
||||
?>
|
||||
|
||||
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/shop.js"></script>
|
||||
|
||||
<div id="sit">
|
||||
|
||||
<!-- 상품 구입폼 시작 { -->
|
||||
<?php include_once(G4_SHOP_SKIN_PATH.'/item.form.skin.php'); ?>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/item.form.skin.php'); ?>
|
||||
<!-- } 상품 구입폼 끝 -->
|
||||
|
||||
<!-- 상품 상세정보 시작 { -->
|
||||
<?php include_once(G4_SHOP_SKIN_PATH.'/item.info.skin.php'); ?>
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/item.info.skin.php'); ?>
|
||||
<!-- } 상품 상세정보 끝 -->
|
||||
|
||||
</div>
|
||||
|
||||
@ -5,26 +5,26 @@ $it_id = $_GET['it_id'];
|
||||
$io_id = $_GET['opt'];
|
||||
|
||||
// 상품정보
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g5['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
// 상품옵션체크
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '$it_id' and io_type = '0' and io_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_option_table']} where it_id = '$it_id' and io_type = '0' and io_use = '1' ";
|
||||
$cnt = sql_fetch($sql);
|
||||
|
||||
if(($io_id && !$cnt['cnt']) || (!$io_id && $cnt['cnt']))
|
||||
alert('상품의 옵션정보가 변경됐습니다.\\n상품페이지에서 다시 주문해 주십시오.', G4_SHOP_URL.'/item.php?it_id='.$it_id);
|
||||
alert('상품의 옵션정보가 변경됐습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id);
|
||||
|
||||
// 옵션정보
|
||||
if($io_id && $it['it_option_subject']) {
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '$it_id' and io_id = '$io_id' ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '$it_id' and io_id = '$io_id' ";
|
||||
$opt = sql_fetch($sql);
|
||||
|
||||
$subj = explode(',', $it['it_option_subject']);
|
||||
$arr_opt = explode(chr(30), $io_id);
|
||||
|
||||
if(count($subj) != count($arr_opt))
|
||||
alert('상품의 옵션정보가 올바르지 않습니다.\\n상품페이지에서 다시 주문해 주십시오.', G4_SHOP_URL.'/item.php?it_id='.$it_id);
|
||||
alert('상품의 옵션정보가 올바르지 않습니다.\\n상품페이지에서 다시 주문해 주십시오.', G5_SHOP_URL.'/item.php?it_id='.$it_id);
|
||||
|
||||
$io_value = '';
|
||||
$sep = '';
|
||||
@ -55,5 +55,5 @@ $_POST['ct_qty'][0] = 1;
|
||||
$_POST['io_value'][0] = $io_value;
|
||||
$_POST['ct_send_cost'] = $ct_send_cost;
|
||||
|
||||
include_once(G4_SHOP_PATH.'/cartupdate.php');
|
||||
include_once(G5_SHOP_PATH.'/cartupdate.php');
|
||||
?>
|
||||
@ -6,7 +6,7 @@ $opt_id = $_POST['opt_id'];
|
||||
$idx = $_POST['idx'];
|
||||
$sel_count = $_POST['sel_count'];
|
||||
|
||||
$sql = " select * from {$g4['shop_item_option_table']}
|
||||
$sql = " select * from {$g5['shop_item_option_table']}
|
||||
where io_type = '0'
|
||||
and it_id = '$it_id'
|
||||
and io_use = '1'
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemqa.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemqa.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemqa_list = "./itemqalist.php";
|
||||
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
||||
@ -20,7 +20,7 @@ $thumbnail_width = 500;
|
||||
<h3>등록된 상품문의</h3>
|
||||
|
||||
<?php
|
||||
$sql_common = " from `{$g4['shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$sql_common = " from `{$g5['shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemqaform.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemqaform.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_EDITOR_LIB);
|
||||
include_once(G5_EDITOR_LIB);
|
||||
|
||||
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$iq_question_max_length = 10000;
|
||||
@ -21,7 +21,7 @@ if (!$is_member) {
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
$qa = sql_fetch(" select * from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ");
|
||||
$qa = sql_fetch(" select * from {$g5['shop_item_qa_table']} where iq_id = '$iq_id' ");
|
||||
if (!$qa) {
|
||||
alert_close("상품문의 정보가 없습니다.");
|
||||
}
|
||||
@ -33,7 +33,7 @@ if ($w == "u")
|
||||
}
|
||||
}
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<!-- 상품문의 쓰기 시작 { -->
|
||||
@ -85,5 +85,5 @@ function fitemqa_submit(f)
|
||||
<!-- } 상품문의 쓰기 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -23,14 +23,14 @@ $url = "./item.php?it_id=$it_id&_=".get_token()."#sit_qa";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
$sql = "insert {$g4['shop_item_qa_table']}
|
||||
$sql = "insert {$g5['shop_item_qa_table']}
|
||||
set it_id = '$it_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
iq_name = '$iq_name',
|
||||
iq_password = '$iq_password',
|
||||
iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question',
|
||||
iq_time = '".G4_TIME_YMDHIS."',
|
||||
iq_time = '".G5_TIME_YMDHIS."',
|
||||
iq_ip = '$REMOTE_ADDR' ";
|
||||
sql_query($sql);
|
||||
|
||||
@ -40,13 +40,13 @@ else if ($w == "u")
|
||||
{
|
||||
if (!$is_amdin)
|
||||
{
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
alert("자신의 상품문의만 수정하실 수 있습니다.");
|
||||
}
|
||||
|
||||
$sql = " update {$g4['shop_item_qa_table']}
|
||||
$sql = " update {$g5['shop_item_qa_table']}
|
||||
set iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question'
|
||||
where iq_id = '$iq_id' ";
|
||||
@ -58,7 +58,7 @@ else if ($w == "d")
|
||||
{
|
||||
if (!$is_admin)
|
||||
{
|
||||
$sql = " select iq_answer from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " select iq_answer from {$g5['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row)
|
||||
alert("자신의 상품문의만 삭제하실 수 있습니다.");
|
||||
@ -67,8 +67,8 @@ else if ($w == "d")
|
||||
alert("답변이 있는 상품문의는 삭제하실 수 없습니다.");
|
||||
}
|
||||
|
||||
//$sql = " delete from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " delete from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' ";
|
||||
//$sql = " delete from {$g5['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " delete from {$g5['shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' ";
|
||||
sql_query($sql);
|
||||
|
||||
alert("상품문의가 삭제 되었습니다.", $url);
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemqalist.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemqalist.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
include_once(G5_LIB_PATH.'/thumb.lib.php');
|
||||
|
||||
$sfl = escape_trim($_REQUEST['sfl']);
|
||||
$stx = escape_trim($_REQUEST['stx']);
|
||||
|
||||
$g4['title'] = '상품문의';
|
||||
$g5['title'] = '상품문의';
|
||||
include_once('./_head.php');
|
||||
|
||||
$sql_common = " from `{$g4['shop_item_qa_table']}` a join `{$g4['shop_item_table']}` b on (a.it_id=b.it_id) ";
|
||||
$sql_common = " from `{$g5['shop_item_qa_table']}` a join `{$g5['shop_item_table']}` b on (a.it_id=b.it_id) ";
|
||||
$sql_search = " where (1) ";
|
||||
|
||||
if(!$sfl)
|
||||
@ -96,7 +96,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$small_image = $row['it_id'];
|
||||
|
||||
$it_href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
$it_href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
$iq_question = get_view_thumbnail($row['iq_question'], 500);
|
||||
|
||||
|
||||
@ -8,18 +8,18 @@ if (!$is_member)
|
||||
$token = md5(uniqid(rand(), true));
|
||||
set_session("ss_token", $token);
|
||||
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
$sql = " select it_name from {$g5['shop_item_table']} where it_id='$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
if (!$it['it_name'])
|
||||
alert_close("등록된 상품이 아닙니다.");
|
||||
|
||||
$g4['title'] = $it['it_name'].' - 추천하기';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
$g5['title'] = $it['it_name'].' - 추천하기';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<!-- 상품 추천하기 시작 { -->
|
||||
<div id="sit_rec_new" class="new_win">
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
|
||||
<div class="cbox">
|
||||
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">
|
||||
@ -64,5 +64,5 @@ function fitemrecommend_check(f)
|
||||
<!-- } 상품 추천하기 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if (!$is_member)
|
||||
alert_close('회원만 메일을 발송할 수 있습니다.');
|
||||
@ -9,9 +9,9 @@ if (!$is_member)
|
||||
//if (substr_count($to_email, "@") > 3) alert("최대 3명까지만 메일을 발송할 수 있습니다.");
|
||||
if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.');
|
||||
|
||||
if ($_SESSION["ss_recommend_datetime"] >= (G4_SERVER_TIME - 120))
|
||||
if ($_SESSION["ss_recommend_datetime"] >= (G5_SERVER_TIME - 120))
|
||||
alert("너무 빠른 시간내에 메일을 연속해서 보낼 수 없습니다.");
|
||||
set_session("ss_recommend_datetime", G4_SERVER_TIME);
|
||||
set_session("ss_recommend_datetime", G5_SERVER_TIME);
|
||||
|
||||
$recommendmail_count = (int)get_session('ss_recommendmail_count') + 1;
|
||||
if ($recommendmail_count > 3)
|
||||
@ -28,7 +28,7 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
|
||||
}
|
||||
|
||||
// 상품
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g5['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
if (!$it['it_id'])
|
||||
alert("등록된 상품이 아닙니다.");
|
||||
@ -43,7 +43,7 @@ $it_name = $it['it_name'];
|
||||
$it_mimg = get_it_image($it_id, $default['de_mimg_width'], $default['de_mimg_height']);
|
||||
|
||||
ob_start();
|
||||
include G4_SHOP_PATH.'/mail/itemrecommend.mail.php';
|
||||
include G5_SHOP_PATH.'/mail/itemrecommend.mail.php';
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemuse.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemuse.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemuse_list = "./itemuselist.php";
|
||||
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
|
||||
@ -18,7 +18,7 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
||||
<h3>등록된 사용후기</h3>
|
||||
|
||||
<?php
|
||||
$sql_common = " from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
$sql_common = " from `{$g5['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
@ -58,7 +58,7 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $is_time; ?></dd>
|
||||
<dt>선호도<dt>
|
||||
<dd class="sit_use_star"><img src="<?php echo G4_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||
<dd class="sit_use_star"><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemuseform.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemuseform.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_EDITOR_LIB);
|
||||
include_once(G5_EDITOR_LIB);
|
||||
|
||||
// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$is_content_max_length = 10000;
|
||||
@ -22,7 +22,7 @@ if (!$is_member) {
|
||||
if ($w == "") {
|
||||
$is_score = 10;
|
||||
} else if ($w == "u") {
|
||||
$use = sql_fetch(" select * from {$g4['shop_item_use_table']} where is_id = '$is_id' ");
|
||||
$use = sql_fetch(" select * from {$g5['shop_item_use_table']} where is_id = '$is_id' ");
|
||||
if (!$use) {
|
||||
alert_close("사용후기 정보가 없습니다.");
|
||||
}
|
||||
@ -35,7 +35,7 @@ if ($w == "") {
|
||||
}
|
||||
}
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<!-- 사용후기 쓰기 시작 { -->
|
||||
@ -68,27 +68,27 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G4_URL; ?>/shop/img/s_star5.png">
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G4_URL; ?>/shop/img/s_star4.png">
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G4_URL; ?>/shop/img/s_star3.png">
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G4_URL; ?>/shop/img/s_star2.png">
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G4_URL; ?>/shop/img/s_star1.png">
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
@ -120,5 +120,5 @@ function fitemuse_submit(f)
|
||||
<!-- } 사용후기 쓰기 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -21,17 +21,17 @@ $url = "./item.php?it_id=$it_id&_=".get_token()."#sit_use";
|
||||
if ($w == "")
|
||||
{
|
||||
/*
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_use_table']} ";
|
||||
$sql = " select max(is_id) as max_is_id from {$g5['shop_item_use_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
$max_is_id = $row['max_is_id'];
|
||||
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_use_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
|
||||
$sql = " select max(is_id) as max_is_id from {$g5['shop_item_use_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['max_is_id'] && $row['max_is_id'] == $max_is_id)
|
||||
alert("같은 상품에 대하여 계속해서 평가하실 수 없습니다.");
|
||||
*/
|
||||
|
||||
$sql = "insert {$g4['shop_item_use_table']}
|
||||
$sql = "insert {$g5['shop_item_use_table']}
|
||||
set it_id = '$it_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
is_score = '$is_score',
|
||||
@ -39,7 +39,7 @@ if ($w == "")
|
||||
is_password = '$is_password',
|
||||
is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_time = '".G4_TIME_YMDHIS."',
|
||||
is_time = '".G5_TIME_YMDHIS."',
|
||||
is_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
if (!$default['de_item_use_use'])
|
||||
$sql .= ", is_confirm = '1' ";
|
||||
@ -53,12 +53,12 @@ if ($w == "")
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " select is_password from {$g4['shop_item_use_table']} where is_id = '$is_id' ";
|
||||
$sql = " select is_password from {$g5['shop_item_use_table']} where is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['is_password'] != $is_password)
|
||||
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
|
||||
|
||||
$sql = " update {$g4['shop_item_use_table']}
|
||||
$sql = " update {$g5['shop_item_use_table']}
|
||||
set is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_score = '$is_score'
|
||||
@ -71,13 +71,13 @@ else if ($w == "d")
|
||||
{
|
||||
if (!$is_admin)
|
||||
{
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_use_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_use_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
alert("자신의 사용후기만 삭제하실 수 있습니다.");
|
||||
}
|
||||
|
||||
$sql = " delete from {$g4['shop_item_use_table']} where is_id = '$is_id' and md5(concat(is_id,is_time,is_ip)) = '{$hash}' ";
|
||||
$sql = " delete from {$g5['shop_item_use_table']} where is_id = '$is_id' and md5(concat(is_id,is_time,is_ip)) = '{$hash}' ";
|
||||
sql_query($sql);
|
||||
|
||||
alert("사용후기를 삭제 하였습니다.", $url);
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/itemuselist.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/itemuselist.php');
|
||||
return;
|
||||
}
|
||||
|
||||
include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
include_once(G5_LIB_PATH.'/thumb.lib.php');
|
||||
|
||||
$sfl = escape_trim($_REQUEST['sfl']);
|
||||
$stx = escape_trim($_REQUEST['stx']);
|
||||
|
||||
$g4['title'] = '사용후기';
|
||||
$g5['title'] = '사용후기';
|
||||
include_once('./_head.php');
|
||||
|
||||
$sql_common = " from `{$g4['shop_item_use_table']}` a join `{$g4['shop_item_table']}` b on (a.it_id=b.it_id) ";
|
||||
$sql_common = " from `{$g5['shop_item_use_table']}` a join `{$g5['shop_item_table']}` b on (a.it_id=b.it_id) ";
|
||||
$sql_search = " where a.is_confirm = '1' ";
|
||||
|
||||
if(!$sfl)
|
||||
@ -95,8 +95,8 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
$is_content = get_view_thumbnail($row['is_content'], 500);
|
||||
$small_image = $row['it_id'];
|
||||
|
||||
$row2 = sql_fetch(" select it_name from {$g4['shop_item_table']} where it_id = '{$row['it_id']}' ");
|
||||
$it_href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
$row2 = sql_fetch(" select it_name from {$g5['shop_item_table']} where it_id = '{$row['it_id']}' ");
|
||||
$it_href = G5_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
|
||||
if ($i == 0) echo '<ol>';
|
||||
?>
|
||||
@ -118,7 +118,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo substr($row['is_time'],0,10); ?></dd>
|
||||
<dt>평가점수</dt>
|
||||
<dd><img src="<?php echo G4_URL; ?>/shop/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
||||
<dd><img src="<?php echo G5_URL; ?>/shop/img/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sps_con_<?php echo $i; ?>" style="display:none;">
|
||||
|
||||
@ -15,13 +15,13 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
/* = 환경 설정 = */
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
|
||||
$g_conf_home_dir = G4_SHOP_PATH.'/kcp';
|
||||
$g_conf_home_dir = G5_SHOP_PATH.'/kcp';
|
||||
$g_conf_key_dir = '';
|
||||
$g_conf_log_dir = '';
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||
{
|
||||
$g_conf_key_dir = G4_SHOP_PATH.'/kcp/bin/pub.key';
|
||||
$g_conf_log_dir = G4_SHOP_PATH.'/kcp/log';
|
||||
$g_conf_key_dir = G5_SHOP_PATH.'/kcp/bin/pub.key';
|
||||
$g_conf_log_dir = G5_SHOP_PATH.'/kcp/log';
|
||||
}
|
||||
|
||||
$g_conf_site_cd = $_POST['site_cd'];
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
include './_common.php';
|
||||
include G4_LIB_PATH.'/etc.lib.php';
|
||||
include G5_LIB_PATH.'/etc.lib.php';
|
||||
|
||||
// 현금영수증 필드생성
|
||||
$sql = " ALTER TABLE `{$g4['shop_order_table']}` ADD `od_cash_no` VARCHAR( 255 ) NOT NULL ,
|
||||
$sql = " ALTER TABLE `{$g5['shop_order_table']}` ADD `od_cash_no` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `od_cash_receipt_no` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `od_cash_app_time` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `od_cash_reg_stat` VARCHAR( 255 ) NOT NULL ,
|
||||
@ -13,16 +13,16 @@ $sql = " ALTER TABLE `{$g4['shop_order_table']}` ADD `od_cash_no` VARCHAR( 255 )
|
||||
sql_query($sql, false);
|
||||
|
||||
// 현금영수증 사용, 미사용 구분
|
||||
$sql = " ALTER TABLE `{$g4['shop_order_table']}` ADD `od_cash` TINYINT NOT NULL ";
|
||||
$sql = " ALTER TABLE `{$g5['shop_order_table']}` ADD `od_cash` TINYINT NOT NULL ";
|
||||
sql_query($sql, false);
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_order_table']} where od_id = '{$_POST['ordr_idxx']}' and od_cash = 1 ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_order_table']} where od_id = '{$_POST['ordr_idxx']}' and od_cash = 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt']) {
|
||||
alert('이미 등록된 현금영수증 입니다.');
|
||||
}
|
||||
|
||||
//write_log("$g4[path]/data/log/cash.log", $_POST);
|
||||
//write_log("$g5[path]/data/log/cash.log", $_POST);
|
||||
|
||||
/* ============================================================================== */
|
||||
/* = PAGE : 등록/변경 처리 PAGE = */
|
||||
@ -34,12 +34,12 @@ if ($row['cnt']) {
|
||||
/* ============================================================================== */
|
||||
/* = 라이브러리 및 사이트 정보 include = */
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
require G4_SHOP_PATH.'/kcp/pp_cli_hub_lib.php';
|
||||
require G5_SHOP_PATH.'/kcp/pp_cli_hub_lib.php';
|
||||
|
||||
/* ============================================================================== */
|
||||
/* = 01. KCP 지불 서버 정보 설정 = */
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
$g_conf_home_dir = G4_SHOP_PATH.'/kcp'; // ※ 쇼핑몰 모듈 설치 절대 경로 bin전까지
|
||||
$g_conf_home_dir = G5_SHOP_PATH.'/kcp'; // ※ 쇼핑몰 모듈 설치 절대 경로 bin전까지
|
||||
$g_conf_log_level = "3";
|
||||
|
||||
if ($default['de_card_test']) {
|
||||
@ -241,7 +241,7 @@ if ($row['cnt']) {
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
$bSucc = ""; // DB 작업 실패일 경우 "false" 로 세팅
|
||||
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
$sql = " update {$g5['shop_order_table']}
|
||||
set od_cash_no = '$cash_no',
|
||||
od_cash_receipt_no = '$receipt_no',
|
||||
od_cash_app_time = '$app_time',
|
||||
|
||||
@ -10,7 +10,7 @@ include './_common.php';
|
||||
/* ============================================================================== */
|
||||
/* = 01. KCP 지불 서버 정보 설정 = */
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
$g_conf_home_dir = G4_SHOP_PATH.'/kcp'; // ※ 쇼핑몰 모듈 설치 절대 경로 bin전까지
|
||||
$g_conf_home_dir = G5_SHOP_PATH.'/kcp'; // ※ 쇼핑몰 모듈 설치 절대 경로 bin전까지
|
||||
$g_conf_log_level = "3";
|
||||
|
||||
if ($default['de_card_test']) {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/largeimage.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/largeimage.php');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -10,18 +10,18 @@ $it_id = $_GET['it_id'];
|
||||
$no = $_GET['no'];
|
||||
|
||||
$sql = " select it_id, it_name, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
|
||||
from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
from {$g5['shop_item_table']} where it_id='$it_id' ";
|
||||
$row = sql_fetch_array(sql_query($sql));
|
||||
|
||||
if(!$row['it_id'])
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
$imagefile = G4_DATA_PATH.'/item/'.$row['it_img'.$no];
|
||||
$imagefileurl = G4_DATA_URL.'/item/'.$row['it_img'.$no];
|
||||
$imagefile = G5_DATA_PATH.'/item/'.$row['it_img'.$no];
|
||||
$imagefileurl = G5_DATA_URL.'/item/'.$row['it_img'.$no];
|
||||
$size = getimagesize($imagefile);
|
||||
|
||||
$g4['title'] = "{$row['it_name']} ($it_id)";
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
$g5['title'] = "{$row['it_name']} ($it_id)";
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<div id="sit_pvi_nw">
|
||||
@ -34,12 +34,12 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
if(!$row['it_img'.$i])
|
||||
continue;
|
||||
|
||||
$file = G4_DATA_PATH.'/item/'.$row['it_img'.$i];
|
||||
$file = G5_DATA_PATH.'/item/'.$row['it_img'.$i];
|
||||
if(is_file($file)) {
|
||||
// 썸네일
|
||||
$thumb = get_it_thumbnail($row['it_img'.$i], 60, 60);
|
||||
$thumbnails[$i] = $thumb;
|
||||
$imageurl = G4_DATA_URL.'/item/'.$row['it_img'.$i];
|
||||
$imageurl = G5_DATA_URL.'/item/'.$row['it_img'.$i];
|
||||
?>
|
||||
<span>
|
||||
<a href="javascript:window.close();">
|
||||
@ -58,7 +58,7 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
if($total_count > 0) {
|
||||
echo '<ul>';
|
||||
foreach($thumbnails as $key=>$val) {
|
||||
echo '<li><a href="'.G4_SHOP_URL.'/largeimage.php?it_id='.$it_id.'&no='.$key.'" class="img_thumb">'.$val.'</a></li>';
|
||||
echo '<li><a href="'.G5_SHOP_URL.'/largeimage.php?it_id='.$it_id.'&no='.$key.'" class="img_thumb">'.$val.'</a></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
@ -88,5 +88,5 @@ $(function(){
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/list.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/list.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$sql = " select *
|
||||
from {$g4['shop_category_table']}
|
||||
from {$g5['shop_category_table']}
|
||||
where ca_id = '$ca_id'
|
||||
and ca_use = '1' ";
|
||||
$ca = sql_fetch($sql);
|
||||
@ -32,7 +32,7 @@ if(!$is_admin) {
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = $ca['ca_name'].' 상품리스트';
|
||||
$g5['title'] = $ca['ca_name'].' 상품리스트';
|
||||
|
||||
if ($ca['ca_include_head'])
|
||||
@include_once($ca['ca_include_head']);
|
||||
@ -43,7 +43,7 @@ else
|
||||
//if ($skin) $ca[ca_skin] = $skin;
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="sct_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/categoryform.php?w=u&ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
|
||||
echo '<div class="sct_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/categoryform.php?w=u&ca_id='.$ca_id.'" class="btn_admin">분류 관리</a></div>';
|
||||
?>
|
||||
|
||||
<!-- 상품 목록 시작 { -->
|
||||
@ -51,12 +51,12 @@ if ($is_admin)
|
||||
|
||||
<?php
|
||||
$nav_ca_id = $ca_id;
|
||||
include G4_SHOP_PATH.'/navigation.inc.php';
|
||||
include G5_SHOP_PATH.'/navigation.inc.php';
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_head_html']).'</div>';
|
||||
|
||||
include G4_SHOP_PATH.'/listcategory3.inc.php';
|
||||
include G5_SHOP_PATH.'/listcategory3.inc.php';
|
||||
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "")
|
||||
@ -65,14 +65,14 @@ if ($is_admin)
|
||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/'.$ca['ca_skin'];
|
||||
$list_file = G5_SHOP_SKIN_PATH.'/'.$ca['ca_skin'];
|
||||
if (file_exists($list_file)) {
|
||||
|
||||
echo '<div id="sct_sortlst">';
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
include G5_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
// 상품 보기 타입 변경 버튼
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G5_SHOP_PATH.'/list.sub.php';
|
||||
echo '</div>';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
@ -117,7 +117,7 @@ if ($is_admin)
|
||||
|
||||
<?php
|
||||
// 상품 보기 타입 변경 처리 스크립트
|
||||
include G4_SHOP_PATH.'/list.sub2.php';
|
||||
include G5_SHOP_PATH.'/list.sub2.php';
|
||||
|
||||
$qstr1 .= 'ca_id='.$ca_id;
|
||||
if($skin)
|
||||
|
||||
@ -6,12 +6,12 @@ $ca_id_len = strlen($ca_id);
|
||||
$len2 = $ca_id_len + 2;
|
||||
$len4 = $ca_id_len + 4;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_id ";
|
||||
$sql = " select ca_id, ca_name from {$g5['shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
|
||||
//$row2 = sql_fetch(" select count(*) as cnt from $g4[shop_category_table] where ca_id like '$row[ca_id]%' ");
|
||||
$row2 = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
|
||||
//$row2 = sql_fetch(" select count(*) as cnt from $g5[shop_category_table] where ca_id like '$row[ca_id]%' ");
|
||||
$row2 = sql_fetch(" select count(*) as cnt from {$g5['shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
|
||||
|
||||
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';
|
||||
$exists = true;
|
||||
|
||||
@ -16,11 +16,11 @@ if (!$exists) {
|
||||
$len4 = $tmp_ca_id_len + 4;
|
||||
|
||||
// 차차기 분류의 건수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g4['shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len4 ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len4 ";
|
||||
$row = sql_fetch($sql);
|
||||
$cnt = $row['cnt'];
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len2 order by ca_id ";
|
||||
$sql = " select ca_id, ca_name from {$g5['shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len2 order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
$sct_ct_here = '';
|
||||
@ -30,7 +30,7 @@ if (!$exists) {
|
||||
$str .= '<li>';
|
||||
if ($cnt) {
|
||||
$str .= '<a href="./list.php?ca_id='.$row['ca_id'].'" class="sct_ct_parent '.$sct_ct_here.'">'.$row['ca_name'].'</a>';
|
||||
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '{$row['ca_id']}%' and ca_use = '1' and length(ca_id) = $len4 order by ca_id ";
|
||||
$sql2 = " select ca_id, ca_name from {$g5['shop_category_table']} where ca_id like '{$row['ca_id']}%' and ca_use = '1' and length(ca_id) = $len4 order by ca_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
$k=0;
|
||||
while ($row2=sql_fetch_array($result2)) {
|
||||
|
||||
@ -4,7 +4,7 @@ $exists = false;
|
||||
|
||||
$depth2_ca_id = substr($ca_id, 0, 2);
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '${depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_id ";
|
||||
$sql = " select ca_id, ca_name from {$g5['shop_category_table']} where ca_id like '${depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
if (preg_match("/^{$row['ca_id']}/", $ca_id))
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/listtype.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/listtype.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
if ($type == 1) $g4['title'] = '히트상품';
|
||||
else if ($type == 2) $g4['title'] = '추천상품';
|
||||
else if ($type == 3) $g4['title'] = '최신상품';
|
||||
else if ($type == 4) $g4['title'] = '인기상품';
|
||||
else if ($type == 5) $g4['title'] = '할인상품';
|
||||
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
|
||||
alert('상품유형이 아닙니다.');
|
||||
|
||||
@ -31,13 +31,13 @@ $order_by = ' it_order, it_id desc ';
|
||||
if ($sort != '')
|
||||
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
|
||||
|
||||
$error = '<img src="'.G4_SHOP_URL.'/img/no_item.gif">';
|
||||
$error = '<img src="'.G5_SHOP_URL.'/img/no_item.gif">';
|
||||
|
||||
if (!$skin)
|
||||
$skin = "list.10.skin.php";
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/'.$skin;
|
||||
$list_file = G5_SHOP_SKIN_PATH.'/'.$skin;
|
||||
if (file_exists($list_file)) {
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $list_mod * $list_row;
|
||||
|
||||
@ -25,13 +25,13 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>"><b><?php echo $from_name; ?></b> 님께서 추천하신 상품입니다.</p>
|
||||
|
||||
<div style="text-align:center"><a href="<?php echo G4_SHOP_URL.'/item.php?it_id='.$it_id; ?>" target="_blank"><?php echo $it_mimg; ?></a></div>
|
||||
<div style="text-align:center"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$it_id; ?>" target="_blank"><?php echo $it_mimg; ?></a></div>
|
||||
|
||||
<p style="<?php echo $cont_st; ?>"><strong><?php echo $subject; ?></strong></p>
|
||||
|
||||
<p style="<?php echo $cont_st; ?>"><?php echo $content; ?></p>
|
||||
|
||||
<a href="<?php echo G4_SHOP_URL.'/item.php?it_id='.$it_id; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">상품 자세히 보기</a>
|
||||
<a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$it_id; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">상품 자세히 보기</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -39,7 +39,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<tbody>
|
||||
<?php for ($i=0; $i<count($cart_list); $i++) { ?>
|
||||
<tr>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $cart_list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><?php echo $cart_list[$i]['it_name']; ?></a></td>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $cart_list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><?php echo $cart_list[$i]['it_name']; ?></a></td>
|
||||
<td style="<?php echo $td_st; ?>;text-align:center"><?php echo $cart_list[$i]['it_opt']; ?></td>
|
||||
<td style="<?php echo $td_st; ?>;text-align:center"><?php echo $cart_list[$i]['ct_status']; ?></td>
|
||||
</tr>
|
||||
@ -148,7 +148,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</p>
|
||||
<?php } ?>
|
||||
|
||||
<a href="<?php echo G4_SHOP_URL ?>" target="_blank" style="<?php echo $ft_a_st; ?>"><?php echo $config['cf_title'] ?></a>
|
||||
<a href="<?php echo G5_SHOP_URL ?>" target="_blank" style="<?php echo $ft_a_st; ?>"><?php echo $config['cf_title'] ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>">
|
||||
<strong>주문번호 <?php echo $od_id; ?></strong><br>
|
||||
본 메일은 <?php echo G4_TIME_YMDHIS; ?> (<?php echo get_yoil(G4_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
본 메일은 <?php echo G5_TIME_YMDHIS; ?> (<?php echo get_yoil(G5_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
</p>
|
||||
|
||||
<table style="<?php echo $cont_st; ?>">
|
||||
@ -38,7 +38,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G4_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
|
||||
@ -190,7 +190,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="<?php echo G4_ADMIN_URL.'/shop_admin/orderform.php?od_id='.$od_id; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">관리자 모드에서 주문 확인</a>
|
||||
<a href="<?php echo G5_ADMIN_URL.'/shop_admin/orderform.php?od_id='.$od_id; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">관리자 모드에서 주문 확인</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -25,7 +25,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>">
|
||||
<strong>주문번호 <?php echo $od_id; ?></strong><br>
|
||||
본 메일은 <?php echo G4_TIME_YMDHIS; ?> (<?php echo get_yoil(G4_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
본 메일은 <?php echo G5_TIME_YMDHIS; ?> (<?php echo get_yoil(G5_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
</p>
|
||||
|
||||
<table style="<?php echo $cont_st; ?>">
|
||||
@ -38,7 +38,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G4_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
|
||||
@ -192,7 +192,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>">배송지를 변경하실 고객님은 <b><?php echo $default['de_admin_company_tel']; ?></b>로 연락주시기 바랍니다.</p>
|
||||
|
||||
<a href="<?php echo G4_SHOP_URL.'/orderinquiry.php'; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">주문상세내역 확인</a>
|
||||
<a href="<?php echo G5_SHOP_URL.'/orderinquiry.php'; ?>" target="_blank" style="<?php echo $ft_a_st; ?>">주문상세내역 확인</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -25,7 +25,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>">
|
||||
<strong>주문번호 <?php echo $od_id; ?></strong><br>
|
||||
본 메일은 <?php echo G4_TIME_YMDHIS; ?> (<?php echo get_yoil(G4_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
본 메일은 <?php echo G5_TIME_YMDHIS; ?> (<?php echo get_yoil(G5_TIME_YMDHIS); ?>)을 기준으로 작성되었습니다.
|
||||
</p>
|
||||
|
||||
<table style="<?php echo $cont_st; ?>">
|
||||
@ -37,7 +37,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G4_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
|
||||
@ -116,7 +116,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
|
||||
<p style="<?php echo $cont_st; ?>">이 주문과 관련된 내용은 <b><?php echo $default['de_admin_company_tel']; ?></b>로 연락주시기 바랍니다.</p>
|
||||
|
||||
<a href="<?php echo G4_SHOP_URL.'/'; ?>" target="_blank" style="<?php echo $ft_a_st; ?>"><?php echo $config['cf_title']; ?></a>
|
||||
<a href="<?php echo G5_SHOP_URL.'/'; ?>" target="_blank" style="<?php echo $ft_a_st; ?>"><?php echo $config['cf_title']; ?></a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/mypage.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/mypage.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$is_member)
|
||||
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php"));
|
||||
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));
|
||||
|
||||
$g4['title'] = $member['mb_name'].'님 마이페이지';
|
||||
$g5['title'] = $member['mb_name'].'님 마이페이지';
|
||||
include_once('./_head.php');
|
||||
|
||||
// 쿠폰
|
||||
$cp_count = 0;
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
@ -36,18 +36,18 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
|
||||
<div id="smb_my_act">
|
||||
<ul>
|
||||
<?php if ($is_admin == 'super') { ?><li><a href="<?php echo G4_ADMIN_URL; ?>/" class="btn_admin">관리자</a></li><?php } ?>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/memo.php" target="_blank" class="win_memo btn01">쪽지함</a></li>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/member_confirm.php?url=register_form.php" class="btn01">회원정보수정</a></li>
|
||||
<li><a href="<?php echo G4_BBS_URL; ?>/member_confirm.php?url=member_leave.php" onclick="return member_leave();" class="btn02">회원탈퇴</a></li>
|
||||
<?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>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<dl>
|
||||
<dt>보유포인트</dt>
|
||||
<dd><a href="<?php echo G4_BBS_URL; ?>/point.php" target="_blank" class="win_point"><?php echo number_format($member['mb_point']); ?>점</a></dd>
|
||||
<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 G4_SHOP_URL; ?>/coupon.php" target="_blank" class="win_coupon"><?php echo number_format($cp_count); ?></a></dd>
|
||||
<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>
|
||||
@ -70,7 +70,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
define("_ORDERINQUIRY_", true);
|
||||
|
||||
$limit = " limit 0, 5 ";
|
||||
include G4_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
include G5_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
?>
|
||||
|
||||
<div id="smb_my_more">
|
||||
@ -94,8 +94,8 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g4['shop_wish_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
from {$g5['shop_wish_table']} a,
|
||||
{$g5['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc
|
||||
|
||||
@ -9,7 +9,7 @@ if ($ca_id)
|
||||
{
|
||||
$code = substr($ca_id,0,$i*2);
|
||||
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$sct_here = '';
|
||||
@ -24,12 +24,12 @@ if ($ca_id)
|
||||
}
|
||||
}
|
||||
else
|
||||
$navigation = $g4['title'];
|
||||
$navigation = $g5['title'];
|
||||
|
||||
//if ($it_id) $navigation .= " > $it[it_name]";
|
||||
?>
|
||||
|
||||
<div id="sct_location">
|
||||
<a href='<?php echo G4_SHOP_URL; ?>/' class="sct_bg">Home</a>
|
||||
<a href='<?php echo G5_SHOP_URL; ?>/' class="sct_bg">Home</a>
|
||||
<?php echo $navigation; ?>
|
||||
</div>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sql = " select * from {$g4['shop_new_win_table']}
|
||||
where '".G4_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
||||
$sql = " select * from {$g5['shop_new_win_table']}
|
||||
where '".G5_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
||||
order by nw_id asc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
||||
@ -11,7 +11,7 @@ for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
||||
if ($_COOKIE["hd_pops_{$row_nw['nw_id']}"])
|
||||
continue;
|
||||
|
||||
$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '{$row_nw['nw_id']}' ";
|
||||
$sql = " select * from {$g5['shop_new_win_table']} where nw_id = '{$row_nw['nw_id']}' ";
|
||||
$nw = sql_fetch($sql);
|
||||
?>
|
||||
|
||||
|
||||
@ -5,13 +5,13 @@ if(!$is_member)
|
||||
alert_close('회원이시라면 회원로그인 후 이용해 주십시오.');
|
||||
|
||||
if($w == 'd') {
|
||||
$sql = " delete from {$g4['shop_order_address_table']} where mb_id = '{$member['mb_id']}' and ad_id = '$ad_id' ";
|
||||
$sql = " delete from {$g5['shop_order_address_table']} where mb_id = '{$member['mb_id']}' and ad_id = '$ad_id' ";
|
||||
sql_query($sql);
|
||||
goto_url($_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
$sql = " select *
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by ad_default, ad_id desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -19,13 +19,13 @@ $result = sql_query($sql);
|
||||
if(!mysql_num_rows($result))
|
||||
alert_close('배송지 목록 자료가 없습니다.');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/orderaddress.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/orderaddress.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$g4['title'] = '배송지 목록';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
$g5['title'] = '배송지 목록';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<div id="sod_addr_list" class="new_win">
|
||||
@ -103,5 +103,5 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -8,11 +8,11 @@ $price = $_POST['price'];
|
||||
|
||||
// 쿠폰정보
|
||||
$sql = " select *
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '2'
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$price' ";
|
||||
$result = sql_query($sql);
|
||||
$count = mysql_num_rows($result);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$admin = get_admin('super');
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
if ($default['de_hope_date_use']) {
|
||||
include_once(G4_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
}
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/orderform.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/orderform.php');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -19,9 +19,9 @@ else {
|
||||
}
|
||||
|
||||
if (get_cart_count($tmp_cart_id) == 0)
|
||||
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
|
||||
$g4['title'] = '주문서 작성';
|
||||
$g5['title'] = '주문서 작성';
|
||||
|
||||
include_once('./_head.php');
|
||||
|
||||
@ -29,7 +29,7 @@ include_once('./_head.php');
|
||||
$od_id = get_uniqid();
|
||||
set_session('ss_order_id', $od_id);
|
||||
$s_cart_id = $tmp_cart_id;
|
||||
$order_action_url = G4_HTTPS_SHOP_URL.'/orderformupdate.php';
|
||||
$order_action_url = G5_HTTPS_SHOP_URL.'/orderformupdate.php';
|
||||
if (file_exists('./settle_'.$default['de_card_pg'].'.inc.php')) {
|
||||
include './settle_'.$default['de_card_pg'].'.inc.php';
|
||||
}
|
||||
@ -160,11 +160,11 @@ function get_intall_file()
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
@ -185,7 +185,7 @@ function get_intall_file()
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
@ -236,10 +236,10 @@ function get_intall_file()
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
@ -287,7 +287,7 @@ function get_intall_file()
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($tot_sell_price, $s_cart_id);
|
||||
@ -597,7 +597,7 @@ function get_intall_file()
|
||||
<th scope="row"><label for="od_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&frm_addr2=od_addr2'; ?>
|
||||
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&frm_addr2=od_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td>
|
||||
@ -664,7 +664,7 @@ function get_intall_file()
|
||||
$sep = chr(30);
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -676,7 +676,7 @@ function get_intall_file()
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
@ -694,7 +694,7 @@ function get_intall_file()
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -716,7 +716,7 @@ function get_intall_file()
|
||||
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
@ -763,11 +763,11 @@ function get_intall_file()
|
||||
if($is_member) {
|
||||
// 주문쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '2'
|
||||
and cp_start <= '".G4_TIM_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
@ -780,11 +780,11 @@ function get_intall_file()
|
||||
if($send_cost > 0) {
|
||||
// 배송비쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '3'
|
||||
and cp_start <= '".G4_TIM_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
@ -979,7 +979,7 @@ function get_intall_file()
|
||||
<input type="hidden" name="site_cd" value="SR<?php echo $default['de_kcp_mid']; ?>">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align='center'><img src="<?php echo G4_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
<td align='center'><img src="<?php echo G5_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>
|
||||
|
||||
@ -17,7 +17,7 @@ else
|
||||
$tmp_cart_id = get_session('ss_cart_id');
|
||||
|
||||
if (get_cart_count($tmp_cart_id) == 0)// 장바구니에 담기
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G5_SHOP_URL.'/cart.php');
|
||||
|
||||
$error = "";
|
||||
// 장바구니 상품 재고 검사
|
||||
@ -27,7 +27,7 @@ $sql = " select it_id,
|
||||
io_id,
|
||||
io_type,
|
||||
ct_option
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and ct_select = '1' ";
|
||||
$result = sql_query($sql);
|
||||
@ -45,7 +45,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
if($i == 0)
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G5_SHOP_URL.'/cart.php');
|
||||
|
||||
if ($error != "")
|
||||
{
|
||||
@ -63,7 +63,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
|
||||
// 주문금액이 상이함
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_price,
|
||||
COUNT(distinct it_id) as cart_count
|
||||
from {$g4['shop_cart_table']} where od_id = '$tmp_cart_id' and ct_select = '1' ";
|
||||
from {$g5['shop_cart_table']} where od_id = '$tmp_cart_id' and ct_select = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$tot_ct_price = $row['od_price'];
|
||||
$cart_count = $row['cart_count'];
|
||||
@ -79,11 +79,11 @@ if($is_member) {
|
||||
$cid = $_POST['cp_id'][$i];
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$sql = " select cp_id, cp_method, cp_target, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where cp_id = '$cid'
|
||||
and mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_method IN ( 0, 1 ) ";
|
||||
$cp = sql_fetch($sql);
|
||||
if(!$cp['cp_id'])
|
||||
@ -96,7 +96,7 @@ if($is_member) {
|
||||
// 분류할인인지
|
||||
if($cp['cp_method']) {
|
||||
$sql2 = " select it_id, ca_id, ca_id2, ca_id3
|
||||
from {$g4['shop_item_table']}
|
||||
from {$g5['shop_item_table']}
|
||||
where it_id = '$it_id' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
@ -112,7 +112,7 @@ if($is_member) {
|
||||
|
||||
// 상품금액
|
||||
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$tmp_cart_id'
|
||||
and it_id = '$it_id'
|
||||
and ct_select = '1' ";
|
||||
@ -144,11 +144,11 @@ if($is_member) {
|
||||
// 주문쿠폰
|
||||
if($_POST['od_cp_id']) {
|
||||
$sql = " select cp_id, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where cp_id = '{$_POST['od_cp_id']}'
|
||||
and mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_method = '2' ";
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
@ -189,11 +189,11 @@ if($is_member && $send_cost > 0) {
|
||||
// 배송쿠폰
|
||||
if($_POST['sc_cp_id']) {
|
||||
$sql = " select cp_id, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where cp_id = '{$_POST['sc_cp_id']}'
|
||||
and mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_method = '3' ";
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
@ -225,7 +225,7 @@ if ((int)($send_cost - $tot_sc_cp_price) !== (int)($i_send_cost - $i_send_coupon
|
||||
|
||||
// 추가배송비가 상이함
|
||||
$zipcode = $od_b_zip1 . $od_b_zip2;
|
||||
$sql = " select sc_id, sc_price from {$g4['shop_sendcost_table']} where sc_zip1 <= '$zipcode' and sc_zip2 >= '$zipcode' ";
|
||||
$sql = " select sc_id, sc_price from {$g5['shop_sendcost_table']} where sc_zip1 <= '$zipcode' and sc_zip2 >= '$zipcode' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
if(!$tmp['sc_id'])
|
||||
$send_cost2 = 0;
|
||||
@ -269,11 +269,11 @@ if ($od_settle_case == "무통장")
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_receipt_price = 0;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = G4_OD_STATUS_ORDER;
|
||||
$od_status = G5_OD_STATUS_ORDER;
|
||||
}
|
||||
else if ($od_settle_case == "계좌이체")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_receipt_price = $amount;
|
||||
@ -285,11 +285,11 @@ else if ($od_settle_case == "계좌이체")
|
||||
$od_bank_account = $bank_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
$od_status = G5_OD_STATUS_SETTLE;
|
||||
}
|
||||
else if ($od_settle_case == "가상계좌")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_receipt_point = $i_temp_point;
|
||||
$od_tno = $tno;
|
||||
@ -300,11 +300,11 @@ else if ($od_settle_case == "가상계좌")
|
||||
$od_deposit_name = $depositor;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = G4_OD_STATUS_ORDER;
|
||||
$od_status = G5_OD_STATUS_ORDER;
|
||||
}
|
||||
else if ($od_settle_case == "휴대폰")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_receipt_price = $amount;
|
||||
@ -313,11 +313,11 @@ else if ($od_settle_case == "휴대폰")
|
||||
$od_bank_account = $commid.' '.$mobile_no;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
$od_status = G5_OD_STATUS_SETTLE;
|
||||
}
|
||||
else if ($od_settle_case == "신용카드")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$od_tno = $tno;
|
||||
$od_app_no = $app_no;
|
||||
@ -328,7 +328,7 @@ else if ($od_settle_case == "신용카드")
|
||||
$od_bank_account = $card_name;
|
||||
$pg_price = $amount;
|
||||
$od_misu = $i_price - $od_receipt_price;
|
||||
$od_status = G4_OD_STATUS_SETTLE;
|
||||
$od_status = G5_OD_STATUS_SETTLE;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -339,7 +339,7 @@ else
|
||||
if($tno) {
|
||||
if((int)$i_price !== (int)$pg_price) {
|
||||
$cancel_msg = '결제금액 불일치';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
|
||||
die("Receipt Amount Error");
|
||||
}
|
||||
@ -368,7 +368,7 @@ if($default['de_tax_flag_use']) {
|
||||
}
|
||||
|
||||
// 주문서에 입력
|
||||
$sql = " insert {$g4['shop_order_table']}
|
||||
$sql = " insert {$g5['shop_order_table']}
|
||||
set od_id = '$od_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
od_pwd = '$od_pwd',
|
||||
@ -411,7 +411,7 @@ $sql = " insert {$g4['shop_order_table']}
|
||||
od_status = '$od_status',
|
||||
od_shop_memo = '',
|
||||
od_hope_date = '$od_hope_date',
|
||||
od_time = '".G4_TIME_YMDHIS."',
|
||||
od_time = '".G5_TIME_YMDHIS."',
|
||||
od_ip = '$REMOTE_ADDR',
|
||||
od_settle_case = '$od_settle_case'
|
||||
";
|
||||
@ -421,12 +421,12 @@ $result = sql_query($sql, false);
|
||||
if(!$result) {
|
||||
if($tno) {
|
||||
$cancel_msg = '주문정보 입력 오류';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'order';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
include G5_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
@ -437,7 +437,7 @@ $sql_card_point = "";
|
||||
if ($od_receipt_price > 0 && !$default['de_card_point']) {
|
||||
$sql_card_point = " , ct_point = '0' ";
|
||||
}
|
||||
$sql = "update {$g4['shop_cart_table']}
|
||||
$sql = "update {$g5['shop_cart_table']}
|
||||
set od_id = '$od_id',
|
||||
ct_status = '주문'
|
||||
$sql_card_point
|
||||
@ -449,15 +449,15 @@ $result = sql_query($sql, false);
|
||||
if(!$result) {
|
||||
if($tno) {
|
||||
$cancel_msg = '주문상태 변경 오류';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'status';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
include G5_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
// 주문삭제
|
||||
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' ");
|
||||
sql_query(" delete from {$g5['shop_order_table']} where od_id = '$od_id' ");
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
@ -478,18 +478,18 @@ if($is_member) {
|
||||
$cp_prc = (int)$arr_it_cp_prc[$cp_it_id];
|
||||
|
||||
if(trim($cid)) {
|
||||
$sql = " insert into {$g4['shop_coupon_log_table']}
|
||||
$sql = " insert into {$g5['shop_coupon_log_table']}
|
||||
set cp_id = '$cid',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
od_id = '$od_id',
|
||||
cp_price = '$cp_prc',
|
||||
cl_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
cl_datetime = '".G5_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
// 쿠폰사용금액 cart에 기록
|
||||
$cp_prc = (int)$arr_it_cp_prc[$cp_it_id];
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
$sql = " update {$g5['shop_cart_table']}
|
||||
set cp_price = '$cp_prc'
|
||||
where od_id = '$od_id'
|
||||
and it_id = '$cp_it_id'
|
||||
@ -500,29 +500,29 @@ if($is_member) {
|
||||
}
|
||||
|
||||
if($_POST['od_cp_id']) {
|
||||
$sql = " insert into {$g4['shop_coupon_log_table']}
|
||||
$sql = " insert into {$g5['shop_coupon_log_table']}
|
||||
set cp_id = '{$_POST['od_cp_id']}',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
od_id = '$od_id',
|
||||
cp_price = '$tot_od_cp_price',
|
||||
cl_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
cl_datetime = '".G5_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
if($_POST['sc_cp_id']) {
|
||||
$sql = " insert into {$g4['shop_coupon_log_table']}
|
||||
$sql = " insert into {$g5['shop_coupon_log_table']}
|
||||
set cp_id = '{$_POST['sc_cp_id']}',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
od_id = '$od_id',
|
||||
cp_price = '$tot_sc_cp_price',
|
||||
cl_datetime = '".G4_TIME_YMDHIS."' ";
|
||||
cl_datetime = '".G5_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
include_once(G4_SHOP_PATH.'/ordermail1.inc.php');
|
||||
include_once(G4_SHOP_PATH.'/ordermail2.inc.php');
|
||||
include_once(G5_SHOP_PATH.'/ordermail1.inc.php');
|
||||
include_once(G5_SHOP_PATH.'/ordermail2.inc.php');
|
||||
|
||||
// SMS BEGIN --------------------------------------------------------
|
||||
// 주문고객과 쇼핑몰관리자에게 SMS 전송
|
||||
@ -531,7 +531,7 @@ if($default['de_sms_use'] && ($default['de_sms_use2'] || $default['de_sms_use3']
|
||||
$recv_numbers = array($od_hp, $default['de_sms_hp']);
|
||||
$send_numbers = array($default['de_admin_company_tel'], $od_hp);
|
||||
|
||||
include_once(G4_LIB_PATH.'/icode.sms.lib.php');
|
||||
include_once(G5_LIB_PATH.'/icode.sms.lib.php');
|
||||
|
||||
$SMS = new SMS; // SMS 연결
|
||||
$SMS->SMS_con($default['de_icode_server_ip'], $default['de_icode_id'], $default['de_icode_pw'], $default['de_icode_server_port']);
|
||||
@ -565,7 +565,7 @@ if($default['de_sms_use'] && ($default['de_sms_use2'] || $default['de_sms_use3']
|
||||
|
||||
|
||||
// orderview 에서 사용하기 위해 session에 넣고
|
||||
$uid = md5($od_id.G4_TIME_YMDHIS.$REMOTE_ADDR);
|
||||
$uid = md5($od_id.G5_TIME_YMDHIS.$REMOTE_ADDR);
|
||||
set_session('ss_orderview_uid', $uid);
|
||||
|
||||
// 주문번호제거
|
||||
@ -583,7 +583,7 @@ if($is_member && ($add_address || $ad_default)) {
|
||||
$ad_addr2 = $od_b_addr2;
|
||||
|
||||
$sql = " select ad_id
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_zip1 = '$ad_zip1'
|
||||
and ad_zip2 = '$ad_zip2'
|
||||
@ -592,14 +592,14 @@ if($is_member && ($add_address || $ad_default)) {
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if($ad_default) {
|
||||
$sql = " update {$g4['shop_order_address_table']}
|
||||
$sql = " update {$g5['shop_order_address_table']}
|
||||
set ad_default = '0'
|
||||
where mb_id = '{$member['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
if($row['ad_id']) {
|
||||
$sql = " update {$g4['shop_order_address_table']}
|
||||
$sql = " update {$g5['shop_order_address_table']}
|
||||
set ad_zip1 = '$ad_zip1',
|
||||
ad_zip2 = '$ad_zip2',
|
||||
ad_addr1 = '$ad_addr1',
|
||||
@ -614,7 +614,7 @@ if($is_member && ($add_address || $ad_default)) {
|
||||
}
|
||||
|
||||
if(!$row['ad_id'] && $add_address) {
|
||||
$sql = " insert into {$g4['shop_order_address_table']}
|
||||
$sql = " insert into {$g5['shop_order_address_table']}
|
||||
set mb_id = '{$member['mb_id']}',
|
||||
ad_subject = '$ad_subject',
|
||||
ad_default = '$ad_default',
|
||||
@ -629,7 +629,7 @@ if($is_member && ($add_address || $ad_default)) {
|
||||
}
|
||||
}
|
||||
|
||||
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&uid='.$uid);
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&uid='.$uid);
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/orderinquiry.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/orderinquiry.php');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -13,15 +13,15 @@ $od_pwd = sql_password($od_pwd);
|
||||
// 회원인 경우
|
||||
if ($is_member)
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
}
|
||||
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
|
||||
{
|
||||
$sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql_common = " from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
}
|
||||
else // 그렇지 않다면 로그인으로 가기
|
||||
{
|
||||
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderinquiry.php'));
|
||||
goto_url(G5_BBS_URL.'/login.php?url='.urlencode(G5_SHOP_URL.'/orderinquiry.php'));
|
||||
}
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -34,7 +34,7 @@ $total_count = $row['cnt'];
|
||||
if ($total_count == 0)
|
||||
{
|
||||
if ($is_member) // 회원일 경우는 메인으로 이동
|
||||
alert('주문이 존재하지 않습니다.', G4_SHOP_URL);
|
||||
alert('주문이 존재하지 않습니다.', G5_SHOP_URL);
|
||||
else // 비회원일 경우는 이전 페이지로 이동
|
||||
alert('주문이 존재하지 않습니다.');
|
||||
}
|
||||
@ -48,16 +48,16 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
|
||||
if (!$is_member)
|
||||
{
|
||||
$sql = " select od_id, od_time, od_ip from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql = " select od_id, od_time, od_ip from {$g5['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_id']) {
|
||||
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
|
||||
set_session('ss_orderview_uid', $uid);
|
||||
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
goto_url(G5_SHOP_URL.'/orderinquiryview.php?od_id='.$row['od_id'].'&uid='.$uid);
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = '주문내역조회';
|
||||
$g5['title'] = '주문내역조회';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
|
||||
<?php
|
||||
$sql = " select *,
|
||||
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
|
||||
from {$g4['shop_order_table']}
|
||||
from {$g5['shop_order_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
group by od_id
|
||||
order by od_id desc
|
||||
@ -37,7 +37,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
|
||||
<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'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_num"><?php echo $row['od_cart_count']; ?></td>
|
||||
|
||||
@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
|
||||
alert_close("토큰 에러");
|
||||
}
|
||||
|
||||
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
|
||||
$od = sql_fetch(" select * from {$g5['shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
|
||||
|
||||
if (!$od['od_id']) {
|
||||
alert("존재하는 주문이 아닙니다.");
|
||||
@ -18,14 +18,14 @@ if (!$od['od_id']) {
|
||||
// 주문상품의 상태가 주문인지 체크
|
||||
$sql = " select SUM(IF(ct_status = '주문', 1, 0)) as od_count2,
|
||||
COUNT(*) as od_count1
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$od_id' ";
|
||||
$ct = sql_fetch($sql);
|
||||
|
||||
$uid = md5($od['od_id'].$od['od_time'].$od['od_ip']);
|
||||
|
||||
if($od['od_status'] != G4_OD_STATUS_ORDER && $od['od_status'] != G4_OD_STATUS_SETTLE) {
|
||||
alert("취소할 수 있는 주문이 아닙니다.", G4_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
|
||||
if($od['od_status'] != G5_OD_STATUS_ORDER && $od['od_status'] != G5_OD_STATUS_SETTLE) {
|
||||
alert("취소할 수 있는 주문이 아닙니다.", G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
|
||||
}
|
||||
|
||||
// PG 결제 취소
|
||||
@ -53,20 +53,20 @@ if($od['od_tno']) {
|
||||
$locale_change = true;
|
||||
}
|
||||
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
if($locale_change)
|
||||
setlocale(LC_CTYPE, $def_locale);
|
||||
}
|
||||
|
||||
// 장바구니 자료 취소
|
||||
sql_query(" update {$g4['shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
|
||||
sql_query(" update {$g5['shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
|
||||
|
||||
// 주문 취소
|
||||
$cancel_memo = addslashes($cancel_memo);
|
||||
$cancel_price = $od['od_misu'];
|
||||
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
$sql = " update {$g5['shop_order_table']}
|
||||
set od_send_cost = '0',
|
||||
od_send_cost2 = '0',
|
||||
od_receipt_price = '0',
|
||||
@ -76,7 +76,7 @@ $sql = " update {$g4['shop_order_table']}
|
||||
od_cart_coupon = '0',
|
||||
od_coupon = '0',
|
||||
od_send_coupon = '0',
|
||||
od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\")
|
||||
od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G5_TIME_YMDHIS." (취소이유 : {$cancel_memo})\")
|
||||
where od_id = '$od_id' "
|
||||
sql_query($sql);
|
||||
|
||||
@ -84,5 +84,5 @@ sql_query($sql);
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
insert_point($member['mb_id'], $od['od_receipt_point'], "주문번호 $od_id 본인 취소");
|
||||
|
||||
goto_url(G4_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
|
||||
goto_url(G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
|
||||
?>
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/orderinquiryview.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/orderinquiryview.php');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -12,19 +12,19 @@ set_session("ss_token", $token);
|
||||
|
||||
if (!$is_member) {
|
||||
if (get_session('ss_orderview_uid') != $_GET['uid'])
|
||||
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.", G4_SHOP_URL);
|
||||
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.", G5_SHOP_URL);
|
||||
}
|
||||
|
||||
$sql = "select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$sql = "select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
if (!$od['od_id'] || (!$is_member && md5($od['od_id'].$od['od_time'].$od['od_ip']) != get_session('ss_orderview_uid'))) {
|
||||
alert("조회하실 주문서가 없습니다.", G4_SHOP_URL);
|
||||
alert("조회하실 주문서가 없습니다.", G5_SHOP_URL);
|
||||
}
|
||||
|
||||
// 결제방법
|
||||
$settle_case = $od['od_settle_case'];
|
||||
|
||||
$g4['title'] = '주문상세내역';
|
||||
$g5['title'] = '주문상세내역';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
@ -55,7 +55,7 @@ if(openwin != null) {
|
||||
</dl>
|
||||
<?php
|
||||
$sql = " select it_id, it_name
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
group by it_id
|
||||
order by ct_id ";
|
||||
@ -85,7 +85,7 @@ if(openwin != null) {
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
@ -338,7 +338,7 @@ if(openwin != null) {
|
||||
else
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G4_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');" class="btn_frmline">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');" class="btn_frmline">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -438,7 +438,7 @@ if(openwin != null) {
|
||||
<tbody>
|
||||
<?php
|
||||
// 배송회사 정보
|
||||
$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
$dl = sql_fetch(" select * from {$g5['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
@ -508,7 +508,7 @@ if(openwin != null) {
|
||||
<?php
|
||||
// 취소한 내역이 없다면
|
||||
if ($cancel_price == 0) {
|
||||
if ($od['od_status'] == G4_OD_STATUS_ORDER || $od['od_status'] == G4_OD_STATUS_SETTLE) {
|
||||
if ($od['od_status'] == G5_OD_STATUS_ORDER || $od['od_status'] == G5_OD_STATUS_SETTLE) {
|
||||
?>
|
||||
<button type="button" onclick="document.getElementById('sod_fin_cancelfrm').style.display='block';">주문 취소하기</button>
|
||||
|
||||
@ -542,7 +542,7 @@ if(openwin != null) {
|
||||
<input type="text" name="e_trade_no" value="<?php echo $od['od_tno']; ?>" size="80"><br />
|
||||
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>" size="80"><br />
|
||||
<input type="text" name="req_name" value="<?php echo $od['od_name']; ?>" size="80"><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G4_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="submit" value="입금통보 테스트">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -7,7 +7,7 @@ if($is_guest)
|
||||
// 상품정보
|
||||
$it_id = $_POST['it_id'];
|
||||
$sw_direct = $_POST['sw_direct'];
|
||||
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g5['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
// 상품 총 금액
|
||||
@ -17,7 +17,7 @@ else
|
||||
$cart_id = get_session('ss_cart_id');
|
||||
|
||||
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where od_id = '$cart_id'
|
||||
and it_id = '$it_id' ";
|
||||
$ct = sql_fetch($sql);
|
||||
@ -25,10 +25,10 @@ $item_price = $ct['sum_price'];
|
||||
|
||||
// 쿠폰정보
|
||||
$sql = " select *
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$item_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$it['it_id']}' )
|
||||
|
||||
@ -17,7 +17,7 @@ $sql = " select a.it_id,
|
||||
a.ct_point,
|
||||
b.it_sell_email,
|
||||
b.it_origin
|
||||
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$od_id'
|
||||
and a.ct_select = '1'
|
||||
group by a.it_id
|
||||
@ -29,7 +29,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$od_id'
|
||||
and ct_select = '1' ";
|
||||
@ -37,7 +37,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
// 옵션정보
|
||||
$sql2 = " select ct_option, ct_qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}' and od_id = '$od_id' and ct_select = '1'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$result2 = sql_query($sql2);
|
||||
@ -54,7 +54,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
if($k > 0)
|
||||
$options .= '</ul>';
|
||||
|
||||
$list[$i]['g_dir'] = G4_URL;
|
||||
$list[$i]['g_dir'] = G5_URL;
|
||||
$list[$i]['it_id'] = $row['it_id'];
|
||||
$list[$i]['it_simg'] = get_it_image($row['it_id'], $default['de_simg_width'], $default['de_simg_height']);
|
||||
$list[$i]['it_name'] = $row['it_name'];
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$admin = get_admin('super');
|
||||
|
||||
@ -10,7 +10,7 @@ $admin = get_admin('super');
|
||||
//------------------------------------------------------------------------------
|
||||
$subject = $config['cf_title'].' - 주문 알림 메일 ('.$od_name.')';
|
||||
ob_start();
|
||||
include G4_SHOP_PATH.'/mail/orderupdate1.mail.php';
|
||||
include G5_SHOP_PATH.'/mail/orderupdate1.mail.php';
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
@ -22,7 +22,7 @@ mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
|
||||
//------------------------------------------------------------------------------
|
||||
$subject = $config['cf_title'].' - 주문 내역 안내 메일';
|
||||
ob_start();
|
||||
include G4_SHOP_PATH.'/mail/orderupdate2.mail.php';
|
||||
include G5_SHOP_PATH.'/mail/orderupdate2.mail.php';
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
@ -38,7 +38,7 @@ unset($list);
|
||||
$sql = " select b.it_sell_email,
|
||||
a.it_id,
|
||||
a.it_name
|
||||
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$od_id'
|
||||
and a.ct_select = '1'
|
||||
and b.it_sell_email <> ''
|
||||
@ -50,7 +50,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$od_id'
|
||||
and ct_select = '1' ";
|
||||
@ -58,7 +58,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
// 옵션정보
|
||||
$sql2 = " select ct_option, ct_qty
|
||||
from {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}' and od_id = '$od_id' and ct_select = '1'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$result2 = sql_query($sql2);
|
||||
@ -83,7 +83,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
$subject = $config['cf_title'].' - 주문 알림 메일 (주문자 '.$od_name.'님)';
|
||||
ob_start();
|
||||
include G4_SHOP_PATH.'/mail/orderupdate3.mail.php';
|
||||
include G5_SHOP_PATH.'/mail/orderupdate3.mail.php';
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ if(!$code)
|
||||
die('0');
|
||||
|
||||
$sql = " select sc_id, sc_price
|
||||
from {$g4['shop_sendcost_table']}
|
||||
from {$g5['shop_sendcost_table']}
|
||||
where sc_zip1 <= $code
|
||||
and sc_zip2 >= $code ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
@ -9,11 +9,11 @@ $send_cost = $_POST['send_cost'];
|
||||
|
||||
// 쿠폰정보
|
||||
$sql = " select *
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '3'
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$price' ";
|
||||
$result = sql_query($sql);
|
||||
$count = mysql_num_rows($result);
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/personalpay.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/personalpay.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$g4['title'] = '개인결제 리스트';
|
||||
$g5['title'] = '개인결제 리스트';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
@ -15,7 +15,7 @@ include_once('./_head.php');
|
||||
|
||||
<?php
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/personalpay.skin.php';
|
||||
$list_file = G5_SHOP_SKIN_PATH.'/personalpay.skin.php';
|
||||
if (file_exists($list_file)) {
|
||||
|
||||
$list_mod = 3;
|
||||
@ -23,7 +23,7 @@ include_once('./_head.php');
|
||||
$img_width = 230;
|
||||
$img_height = 230;
|
||||
|
||||
$sql_common = " from {$g4['shop_personalpay_table']}
|
||||
$sql_common = " from {$g5['shop_personalpay_table']}
|
||||
where pp_use = '1'
|
||||
and pp_tno = '' ";
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/personalpayform.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/personalpayform.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$sql = " select * from {$g4['shop_personalpay_table']} where pp_id = '$pp_id' and pp_use = '1' and pp_price > 0 ";
|
||||
$sql = " select * from {$g5['shop_personalpay_table']} where pp_id = '$pp_id' and pp_use = '1' and pp_price > 0 ";
|
||||
$pp = sql_fetch($sql);
|
||||
|
||||
if(!$pp['pp_id'])
|
||||
@ -15,10 +15,10 @@ if(!$pp['pp_id'])
|
||||
if($pp['pp_tno'])
|
||||
alert('이미 결제하신 개인결제 내역입니다.');
|
||||
|
||||
$g4['title'] = $pp['pp_name'].'님 개인결제';
|
||||
$g5['title'] = $pp['pp_name'].'님 개인결제';
|
||||
include_once('./_head.php');
|
||||
|
||||
$action_url = G4_HTTPS_SHOP_URL.'/personalpayformupdate.php';
|
||||
$action_url = G5_HTTPS_SHOP_URL.'/personalpayformupdate.php';
|
||||
if (file_exists('./settle_'.$default['de_card_pg'].'.inc.php')) {
|
||||
include './settle_'.$default['de_card_pg'].'.inc.php';
|
||||
}
|
||||
@ -449,7 +449,7 @@ function get_intall_file()
|
||||
<input type="hidden" name="site_cd" value="SR<?php echo $default['de_kcp_mid']; ?>">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align='center'><img src="<?php echo G4_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
<td align='center'><img src="<?php echo G5_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>
|
||||
|
||||
@ -11,7 +11,7 @@ $_POST = array_add_callback("mysql_real_escape_string", $_POST);
|
||||
|
||||
// 개인결제 정보
|
||||
$pp_check = false;
|
||||
$sql = " select * from {$g4['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' and pp_use = '1' ";
|
||||
$sql = " select * from {$g5['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' and pp_use = '1' ";
|
||||
$pp = sql_fetch($sql);
|
||||
if(!$pp['pp_id'])
|
||||
alert('개인결제 정보가 존재하지 않습니다.');
|
||||
@ -26,7 +26,7 @@ if($_POST['pp_id'] != get_session('ss_personalpay_id') || $hash_data != get_sess
|
||||
|
||||
if ($pp_settle_case == "계좌이체")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$pp_tno = $tno;
|
||||
$pp_receipt_price = $amount;
|
||||
@ -38,7 +38,7 @@ if ($pp_settle_case == "계좌이체")
|
||||
}
|
||||
else if ($pp_settle_case == "가상계좌")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$pp_tno = $tno;
|
||||
$pp_receipt_price = 0;
|
||||
@ -50,7 +50,7 @@ else if ($pp_settle_case == "가상계좌")
|
||||
}
|
||||
else if ($pp_settle_case == "휴대폰")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$pp_tno = $tno;
|
||||
$pp_receipt_price = $amount;
|
||||
@ -60,7 +60,7 @@ else if ($pp_settle_case == "휴대폰")
|
||||
}
|
||||
else if ($pp_settle_case == "신용카드")
|
||||
{
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub.php';
|
||||
|
||||
$pp_tno = $tno;
|
||||
$pp_receipt_price = $amount;
|
||||
@ -77,13 +77,13 @@ else
|
||||
// 주문금액과 결제금액이 일치하는지 체크
|
||||
if((int)$pp['pp_price'] !== (int)$pg_price) {
|
||||
$cancel_msg = '결제금액 불일치';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
|
||||
die("Receipt Amount Error");
|
||||
}
|
||||
|
||||
// 결제정보 입력
|
||||
$sql = " update {$g4['shop_personalpay_table']}
|
||||
$sql = " update {$g5['shop_personalpay_table']}
|
||||
set pp_tno = '$pp_tno',
|
||||
pp_app_no = '$app_no',
|
||||
pp_receipt_price = '$pp_receipt_price',
|
||||
@ -99,7 +99,7 @@ $result = sql_query($sql, false);
|
||||
if(!$result) {
|
||||
if($tno) {
|
||||
$cancel_msg = '결제정보 입력 오류';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}");
|
||||
@ -111,7 +111,7 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) {
|
||||
if($escw_yn == 'Y')
|
||||
$od_escrow = 1;
|
||||
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
$sql = " update {$g5['shop_order_table']}
|
||||
set od_receipt_price = od_receipt_price + '$pp_receipt_price',
|
||||
od_receipt_time = '$pp_receipt_time',
|
||||
od_tno = '$pp_tno',
|
||||
@ -128,7 +128,7 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) {
|
||||
if(!$result) {
|
||||
if($tno) {
|
||||
$cancel_msg = '결제정보 입력 오류';
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
include G5_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}");
|
||||
@ -142,7 +142,7 @@ set_session('ss_personalpay_hash', '');
|
||||
$uid = md5($pp['pp_id'].$pp['pp_time'].$_SERVER['REMOTE_ADDR']);
|
||||
set_session('ss_personalpay_uid', $uid);
|
||||
|
||||
goto_url(G4_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&uid='.$uid);
|
||||
goto_url(G5_SHOP_URL.'/personalpayresult.php?pp_id='.$pp['pp_id'].'&uid='.$uid);
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/personalpayresult.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/personalpayresult.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$sql = "select * from {$g4['shop_personalpay_table']} where pp_id = '$pp_id' ";
|
||||
$sql = "select * from {$g5['shop_personalpay_table']} where pp_id = '$pp_id' ";
|
||||
$pp = sql_fetch($sql);
|
||||
if (!$pp['pp_id'] || (md5($pp['pp_id'].$pp['pp_time'].$_SERVER['REMOTE_ADDR']) != get_session('ss_personalpay_uid'))) {
|
||||
alert("조회하실 개인결제 내역이 없습니다.", G4_SHOP_URL);
|
||||
alert("조회하실 개인결제 내역이 없습니다.", G5_SHOP_URL);
|
||||
}
|
||||
|
||||
// 결제방법
|
||||
$settle_case = $pp['pp_settle_case'];
|
||||
|
||||
$g4['title'] = '개인결제상세내역';
|
||||
$g5['title'] = '개인결제상세내역';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
@ -194,7 +194,7 @@ if(openwin != null) {
|
||||
<input type="text" name="e_trade_no" value="<?php echo $pp['pp_tno']; ?>" size="80"><br />
|
||||
<input type="text" name="deposit_no" value="<?php echo $deposit_no; ?>" size="80"><br />
|
||||
<input type="text" name="req_name" value="<?php echo $pp['pp_deposit_name']; ?>" size="80"><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G4_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="text" name="noti_url" value="<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php" size="80"><br /><br />
|
||||
<input type="submit" value="입금통보 테스트">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
@ -20,7 +20,7 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -35,24 +35,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G5_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".$img_url."{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
|
||||
@ -20,8 +20,8 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -36,24 +36,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G5_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".$img_url."{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
|
||||
@ -45,8 +45,8 @@ ob_start();
|
||||
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
@ -62,26 +62,26 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -47,8 +47,8 @@ ob_start();
|
||||
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
@ -64,27 +64,27 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ ob_start();
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
*/
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -28,7 +28,7 @@ include_once('./_common.php');
|
||||
<?php
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -36,20 +36,20 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 4)
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 6)
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row['it_price'] = 0;
|
||||
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}";
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
|
||||
@ -19,16 +19,16 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
<?php
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$str .= "^{$row['it_name']}"; // 상품명
|
||||
$str .= "^{$row['it_maker']}"; // 제조사
|
||||
$str .= "^".$img_url; // 이미지URL
|
||||
$str .= "^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^{$row['it_price']}"; // 가격
|
||||
$str .= "^{$row['it_point']}"; // 적립금
|
||||
$str .= "^"; // 할인쿠폰
|
||||
|
||||
@ -64,8 +64,8 @@ header("Content-Type: text/html; charset=utf-8");
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -81,14 +81,14 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$deliv2 = (int)$send_cost_list[0]."원";
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$cate1 = $row2['ca_id'];
|
||||
$catename1 = $row2['ca_name'];
|
||||
|
||||
@ -96,19 +96,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$catename2 = $catename3 = $catename4 = "";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$cate4 = $row2['ca_id'];
|
||||
$catename4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$cate3 = $row2['ca_id'];
|
||||
$catename3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -95,7 +95,7 @@ if ($page == "") $page = 1;
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
@ -135,7 +135,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
echo '
|
||||
<tr bgcolor="white">
|
||||
<td align="center">'.$num.'</td>
|
||||
<td><a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td><a href="'.G5_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td align="center">'.number_format($row['it_price']).'</td>
|
||||
<td align="center">'.$stock.'</td>
|
||||
<td align="center">'.$send_cost.'</td>
|
||||
|
||||
@ -34,7 +34,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
$sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id
|
||||
FROM {$g4['shop_category_table']}
|
||||
FROM {$g5['shop_category_table']}
|
||||
HAVING cnt";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
@ -42,11 +42,11 @@ $tr = "";
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
echo $tr;
|
||||
echo " <td align=center><a href='./enuri.php?ca_id={$row['ca_id']}'>{$row2['ca_name']}</a></td>\n";
|
||||
$str = " <td>";
|
||||
$sql3 = "select ca_name,ca_id from {$g4['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$sql3 = "select ca_name,ca_id from {$g5['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$bar = "";
|
||||
|
||||
@ -33,13 +33,13 @@ function paging($write_pages, $cur_page, $total_page, $url)
|
||||
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,7 +49,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
@ -120,7 +120,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<tr>
|
||||
<td>$num</td>
|
||||
<td>{$row['it_id']}</td>
|
||||
<td><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td><a href='".G5_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td>{$row['it_price']}</td>
|
||||
<td>$category</td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
|
||||
@ -39,8 +39,8 @@ Field Status Notes
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -54,7 +54,7 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -63,7 +63,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
@ -71,19 +71,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -41,8 +41,8 @@ Field Status Notes
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -57,8 +57,8 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
}
|
||||
|
||||
// 하루전의 상품
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -67,24 +67,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -19,7 +19,7 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -20,7 +20,7 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -35,24 +35,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -62,13 +62,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -113,7 +113,7 @@ echo "\r\n";
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -20,8 +20,8 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -36,24 +36,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -63,13 +63,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -114,7 +114,7 @@ echo "\r\n";
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -60,26 +60,26 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -89,13 +89,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -137,7 +137,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -62,27 +62,27 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -92,13 +92,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -133,7 +133,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -20,7 +20,7 @@ ob_start();
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
*/
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -29,7 +29,7 @@ include_once('./_common.php');
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$cnt = 0;
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -37,22 +37,22 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 4)
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 6)
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -75,7 +75,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -19,16 +19,16 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
<?php
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
@ -36,13 +36,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -76,7 +76,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -79,14 +79,14 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$deliv2 = (int)$send_cost_list[0]."원";
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$cate1 = $row2['ca_id'];
|
||||
$catename1 = $row2['ca_name'];
|
||||
|
||||
@ -94,19 +94,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$catename2 = $catename3 = $catename4 = "";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$cate4 = $row2['ca_id'];
|
||||
$catename4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$cate3 = $row2['ca_id'];
|
||||
$catename3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
@ -136,13 +136,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
|
||||
@ -190,7 +190,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -48,7 +48,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -95,7 +95,7 @@ if ($page == "") $page = 1;
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
@ -116,13 +116,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
if($delivery)
|
||||
@ -162,7 +162,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -34,7 +34,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
$sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id
|
||||
FROM {$g4['shop_category_table']}
|
||||
FROM {$g5['shop_category_table']}
|
||||
HAVING cnt";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
@ -42,11 +42,11 @@ $tr = "";
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
echo $tr;
|
||||
echo " <td align=center><a href='./enuri.php?ca_id={$row['ca_id']}'>{$row2['ca_name']}</a></td>\n";
|
||||
$str = " <td>";
|
||||
$sql3 = "select ca_name,ca_id from {$g4['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$sql3 = "select ca_name,ca_id from {$g5['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$bar = "";
|
||||
|
||||
@ -33,13 +33,13 @@ function paging($write_pages, $cur_page, $total_page, $url)
|
||||
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,7 +49,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
@ -112,13 +112,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -145,7 +145,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -52,7 +52,7 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -61,7 +61,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
@ -69,19 +69,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -95,13 +95,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -147,7 +147,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -55,8 +55,8 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
}
|
||||
|
||||
// 하루전의 상품
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -65,24 +65,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -96,13 +96,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -148,7 +148,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -21,14 +21,14 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
|
||||
@ -19,13 +19,13 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MSHOP_PATH.'/search.php');
|
||||
if (G5_IS_MOBILE) {
|
||||
include_once(G5_MSHOP_PATH.'/search.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$g4['title'] = "상품 검색 결과";
|
||||
$g5['title'] = "상품 검색 결과";
|
||||
include_once('./_head.php');
|
||||
|
||||
// QUERY 문에 공통적으로 들어가는 내용
|
||||
// 상품명에 검색어가 포한된것과 상품판매가능인것만
|
||||
$sql_common = " from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
$sql_common = " from {$g5['shop_item_table']} a,
|
||||
{$g5['shop_category_table']} b
|
||||
where a.ca_id=b.ca_id
|
||||
and a.it_use = 1
|
||||
and b.ca_use = 1
|
||||
@ -58,9 +58,9 @@ $total_count = $row['cnt'];
|
||||
if ($total_count > 0) {
|
||||
if (trim($search_str)) {
|
||||
// 인기검색어
|
||||
$sql = " insert into {$g4['popular_table']}
|
||||
$sql = " insert into {$g5['popular_table']}
|
||||
set pp_word = '$search_str',
|
||||
pp_date = '".G4_TIME_YMD."',
|
||||
pp_date = '".G5_TIME_YMD."',
|
||||
pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
@ -90,16 +90,16 @@ $total_count = $row['cnt'];
|
||||
|
||||
function write_search_save($save)
|
||||
{
|
||||
global $g4, $search_str , $default , $image_rate , $cart_dir;
|
||||
global $g5, $search_str , $default , $image_rate , $cart_dir;
|
||||
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
// 김선용 2006.12 : 중복 하위분류명이 많으므로 대분류 포함하여 출력
|
||||
$ca_temp = "";
|
||||
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
|
||||
{
|
||||
$sql2 = " select ca_name from $g4[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$sql2 = " select ca_name from $g5[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$ca_temp = '<a href="./list.php?ca_id='.substr($save['ca_id'],0,2).'">'.$row2['ca_name'].'</a> > ';
|
||||
}
|
||||
@ -128,7 +128,7 @@ $total_count = $row['cnt'];
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g4['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
from {$g5['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$image = get_it_image($row['it_id'], (int)($default['de_simg_width']), (int)($default['de_simg_height']), true);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user