테이블 변수명에서 yc4_를 shop_로 변경
This commit is contained in:
@ -3,7 +3,7 @@ include_once("./_common.php");
|
||||
|
||||
if ($_COOKIE['ck_bn_id'] != $bn_id)
|
||||
{
|
||||
$sql = " update {$g4['yc4_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
|
||||
$sql = " update {$g4['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 @@
|
||||
<?
|
||||
// 배너 출력
|
||||
$sql = " select * from {$g4['yc4_banner_table']}
|
||||
$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 ";
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?=$g4[shop_path]?>/cart.php'><img src='<?=G4_SHOP_URL?>/img/bar_cart.gif' border=0></a></td></tr>
|
||||
<?
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '".get_session('ss_uq_id')."'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
|
||||
@ -12,7 +12,7 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
|
||||
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_URL?>/img/bar_category.gif'></td></tr>
|
||||
<?
|
||||
// 1단계 분류 판매가능한것만
|
||||
$hsql = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$hsql = " select ca_id, ca_name from {$g4['shop_category_table']}
|
||||
where length(ca_id) = '2'
|
||||
and ca_use = '1'
|
||||
order by ca_id ";
|
||||
@ -24,7 +24,7 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
$menubody = "";
|
||||
$onmouseover = "";
|
||||
$onmouseout = "";
|
||||
$sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$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'
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0>
|
||||
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_URL?>/img/bar_event.gif'></td></tr>
|
||||
<?
|
||||
$hsql = " select ev_id, ev_subject from {$g4['yc4_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hsql = " select ev_id, ev_subject from {$g4['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++)
|
||||
{
|
||||
|
||||
@ -54,7 +54,7 @@ echo "\n";
|
||||
for ($i=1; $i<=$tv_idx; $i++)
|
||||
{
|
||||
$tv_it_id = get_session("ss_tv[$i]");
|
||||
$rowx = sql_fetch(" select it_name from $g4[yc4_item_table] where it_id = '$tv_it_id' ");
|
||||
$rowx = sql_fetch(" select it_name from $g4[shop_item_table] where it_id = '$tv_it_id' ");
|
||||
$it_name = get_text(addslashes($rowx['it_name']));
|
||||
$img = get_it_image($tv_it_id."_s", $tv_div['img_width'], $tv_div['img_height'], $tv_it_id);
|
||||
$img = str_replace('"', '\"', preg_replace("/\<a /", "<a title=\"$it_name\" ", $img));
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?=G4_SHOP_URL?>/wishlist.php'><img src='<?=G4_SHOP_URL?>/img/bar_wishlist.gif' border=0></a></td></tr>
|
||||
<?
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['yc4_wish_table']} a, {$g4['yc4_item_table']} b
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc ";
|
||||
|
||||
@ -61,8 +61,8 @@ $sql = " select a.ct_id,
|
||||
b.it_id,
|
||||
b.it_name,
|
||||
b.ca_id
|
||||
from {$g4['yc4_cart_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.uq_id = '$s_uq_id'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
@ -195,7 +195,7 @@ if ($i == 0) {
|
||||
}
|
||||
|
||||
// 이미 주문된 내역을 보여주는것이므로 배송비를 주문서에서 얻는다.
|
||||
$sql = "select od_send_cost from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = "select od_send_cost from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_send_cost'] > 0)
|
||||
$send_cost = $row['od_send_cost'];
|
||||
|
||||
@ -32,14 +32,14 @@ if ($member['mb_level'] < $default['de_level_sell'])
|
||||
|
||||
if ($act == "d") // 삭제이면
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_cart_table']}
|
||||
$sql = " delete from {$g4['shop_cart_table']}
|
||||
where ct_id = '$ct_id'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($act == "alldelete") // 모두 삭제이면
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_cart_table']}
|
||||
$sql = " delete from {$g4['shop_cart_table']}
|
||||
where uq_id = '$tmp_uq_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
@ -64,7 +64,7 @@ else if ($act == "allupdate") // 수량 변경이면 : 모두 수정이면
|
||||
|
||||
for ($i=0; $i<$fldcnt; $i++)
|
||||
{
|
||||
$sql = " update {$g4['yc4_cart_table']}
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
set ct_qty = '{$_POST['ct_qty'][$i]}'
|
||||
where ct_id = '{$_POST['ct_id'][$i]}'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
@ -85,7 +85,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
// 비회원가격과 회원가격이 다르다면
|
||||
if (!$is_member && $default['de_different_msg'])
|
||||
{
|
||||
$sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
|
||||
$error .= "\"{$_POST['it_name'][$i]}\" 의 비회원가격과 회원가격이 다릅니다. 로그인 후 구입하여 주십시오.\\n\\n";
|
||||
@ -95,7 +95,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
//--------------------------------------------------------
|
||||
// 변조 검사
|
||||
//--------------------------------------------------------
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
$amount = get_amount($it);
|
||||
@ -110,7 +110,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
//--------------------------------------------------------
|
||||
|
||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$sum_qty = $row['cnt'];
|
||||
|
||||
@ -132,7 +132,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
if (!$config['cf_use_point']) $_POST['it_point'][$i] = 0;
|
||||
|
||||
// 장바구니에 Insert
|
||||
$sql = " insert {$g4['yc4_cart_table']}
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id'][$i]}',
|
||||
ct_status = '쇼핑',
|
||||
@ -157,7 +157,7 @@ else // 장바구니에 담기
|
||||
// 비회원가격과 회원가격이 다르다면
|
||||
if (!$is_member && $default['de_different_msg'])
|
||||
{
|
||||
$sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
|
||||
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">";
|
||||
@ -170,7 +170,7 @@ else // 장바구니에 담기
|
||||
// 변조 검사
|
||||
//--------------------------------------------------------
|
||||
$opt_amount = 0;
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$it = sql_fetch($sql);
|
||||
for ($i=1; $i<=6; $i++) {
|
||||
//$dst_opt = $_POST["it_opt".$i];
|
||||
@ -211,7 +211,7 @@ else // 장바구니에 담기
|
||||
// 재고 검사
|
||||
//--------------------------------------------------------
|
||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']}
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
||||
where it_id = '{$_POST['it_id']}'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -226,17 +226,17 @@ else // 장바구니에 담기
|
||||
//--------------------------------------------------------
|
||||
|
||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||
$result = sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
||||
$result = sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
||||
if (!$result) {
|
||||
// 삭제중 에러가 발생했다면 필드가 없다는 것이므로 바로구매 필드를 생성한다.
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
|
||||
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
|
||||
}
|
||||
|
||||
// 포인트 사용하지 않는다면
|
||||
if (!$config['cf_use_point']) { $_POST['it_point'] = 0; }
|
||||
|
||||
// 장바구니에 Insert
|
||||
$sql = " insert {$g4['yc4_cart_table']}
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id']}',
|
||||
it_opt1 = '{$_POST['it_opt1']}',
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 내용
|
||||
$sql = " select * from {$g4['yc4_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert("등록된 내용이 없습니다.");
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select * from {$g4['yc4_event_table']}
|
||||
$sql = " select * from {$g4['shop_event_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and ev_use = 1 ";
|
||||
$ev = sql_fetch($sql);
|
||||
@ -62,8 +62,8 @@ $sql_list1 = " select a.ca_id,
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by a.it_order, a.it_id desc ";
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']} a
|
||||
left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id)
|
||||
$sql_common = " from {$g4['shop_item_table']} a
|
||||
left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id)
|
||||
where b.ev_id = '$ev_id'
|
||||
and a.it_use = '1' ";
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
if (!$fm_id) $fm_id = 1;
|
||||
|
||||
// FAQ MASTER
|
||||
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
if (!$fm['fm_id'])
|
||||
alert('등록된 내용이 없습니다.');
|
||||
@ -30,7 +30,7 @@ echo "<br>";
|
||||
echo "<table width=95% align=center cellpadding=1 cellspacing=0>\n";
|
||||
echo "<tr><td class=bg_faq><table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor=#FFFFFF>\n";
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_table']}
|
||||
$sql = " select * from {$g4['shop_faq_table']}
|
||||
where fm_id = '$fm_id'
|
||||
order by fa_order , fa_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -35,7 +35,7 @@ if (!$saved) {
|
||||
|
||||
// 조회수 증가
|
||||
if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
sql_query(" update {$g4['yc4_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
sql_query(" update {$g4['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시간동안 저장
|
||||
}
|
||||
|
||||
@ -43,8 +43,8 @@ if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
$sql = " select a.*,
|
||||
b.ca_name,
|
||||
b.ca_use
|
||||
from {$g4['yc4_item_table']} a,
|
||||
{$g4['yc4_category_table']} b
|
||||
from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id ";
|
||||
$it = sql_fetch($sql);
|
||||
@ -57,7 +57,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
||||
|
||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||
$sql = " select ca_include_head, ca_include_tail
|
||||
from {$g4['yc4_category_table']}
|
||||
from {$g4['shop_category_table']}
|
||||
where ca_id = '{$it['ca_id']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
@ -88,7 +88,7 @@ if ($is_admin)
|
||||
include G4_SHOP_PATH.'/listcategory.inc.php';
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
|
||||
$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'
|
||||
@ -104,7 +104,7 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
|
||||
$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'
|
||||
@ -121,8 +121,8 @@ if ($row['it_id']) {
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt
|
||||
from {$g4['yc4_item_relation_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
|
||||
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']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_relation_count = $row['cnt'];
|
||||
@ -407,7 +407,7 @@ function click_item(id)
|
||||
<tr><td rowspan=2 width=31 valign=top bgcolor=#CACDE2><img src='<?=G4_SHOP_URL?>/img/item_t01.gif'></td><td height=2 bgcolor=#CACDE2></td></tr>
|
||||
<tr><td style='padding:15px'>
|
||||
<?
|
||||
$sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$result = sql_query($sql, false);
|
||||
if (@mysql_num_rows($result)) {
|
||||
?>
|
||||
@ -496,8 +496,8 @@ include_once('./itemqa.inc.php');
|
||||
$td_width = (int)(100 / $list_mod);
|
||||
|
||||
$sql = " select b.*
|
||||
from {$g4['yc4_item_relation_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
|
||||
from {$g4['shop_item_relation_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
where a.it_id = '{$it['it_id']}'
|
||||
and b.it_use='1' ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -24,7 +24,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<td width=11><img src='<?=G4_SHOP_URL?>/img/corner02.gif'></td>
|
||||
</tr>
|
||||
<?
|
||||
$sql_common = " from {$g4['yc4_item_qa_table']} where it_id = '{$it['it_id']}' ";
|
||||
$sql_common = " from {$g4['shop_item_qa_table']} where it_id = '{$it['it_id']}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
|
||||
@ -46,18 +46,18 @@ $url = "./item.php?it_id=$it_id";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
$sql = " select max(iq_id) as max_iq_id from {$g4['yc4_item_qa_table']} ";
|
||||
$sql = " select max(iq_id) as max_iq_id from {$g4['shop_item_qa_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
$max_iq_id = $row['max_iq_id'];
|
||||
|
||||
$sql = " select max(iq_id) as max_iq_id from {$g4['yc4_item_qa_table']}
|
||||
$sql = " select max(iq_id) as max_iq_id from {$g4['shop_item_qa_table']}
|
||||
where it_id = '$it_id'
|
||||
and mb_id = '{$member['mb_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['max_iq_id'] && $row['max_iq_id'] == $max_iq_id)
|
||||
alert('같은 상품에 대하여 계속해서 질문 하실 수 없습니다.');
|
||||
|
||||
$sql = "insert {$g4['yc4_item_qa_table']}
|
||||
$sql = "insert {$g4['shop_item_qa_table']}
|
||||
set it_id = '$it_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
iq_name = '$iq_name',
|
||||
@ -72,12 +72,12 @@ if ($w == '')
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
$sql = " select iq_password from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
$sql = " select iq_password from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['iq_password'] != $iq_password)
|
||||
alert('패스워드가 틀리므로 수정하실 수 없습니다.');
|
||||
|
||||
$sql = " update {$g4['yc4_item_qa_table']}
|
||||
$sql = " update {$g4['shop_item_qa_table']}
|
||||
set iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question'
|
||||
where iq_id = '$iq_id' ";
|
||||
@ -89,7 +89,7 @@ else if ($w == 'd')
|
||||
{
|
||||
if ($is_member)
|
||||
{
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
alert('자신의 상품문의만 삭제하실 수 있습니다.');
|
||||
@ -98,13 +98,13 @@ else if ($w == 'd')
|
||||
{
|
||||
$iq_password = sql_password($iq_password);
|
||||
|
||||
$sql = " select iq_password from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
$sql = " select iq_password from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['iq_password'] != $iq_password)
|
||||
alert('패스워드가 틀리므로 삭제하실 수 없습니다.');
|
||||
}
|
||||
|
||||
$sql = " delete from {$g4['yc4_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
$sql = " delete from {$g4['shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url($url);
|
||||
|
||||
@ -8,7 +8,7 @@ if (!$is_member)
|
||||
$token = md5(uniqid(rand(), true));
|
||||
set_session("ss_token", $token);
|
||||
|
||||
$sql = " select it_name from {$g4['yc4_item_table']} where it_id='$it_id' ";
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
if (!$it['it_name'])
|
||||
alert_close("등록된 상품이 아닙니다.");
|
||||
|
||||
@ -28,7 +28,7 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
|
||||
}
|
||||
|
||||
// 상품
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
if (!$it['it_id'])
|
||||
alert("등록된 상품이 아닙니다.");
|
||||
|
||||
@ -25,7 +25,7 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
<td width=11><img src='<?=G4_SHOP_URL?>/img/corner02.gif'></td>
|
||||
</tr>
|
||||
<?
|
||||
$sql_common = " from {$g4['yc4_item_ps_table']} where it_id = '{$it['it_id']}' and is_confirm = '1' ";
|
||||
$sql_common = " from {$g4['shop_item_ps_table']} where it_id = '{$it['it_id']}' and is_confirm = '1' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
|
||||
@ -5,7 +5,7 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
$g4['title'] = '사용후기';
|
||||
include_once('./_head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_ps_table']} where is_confirm = '1' ";
|
||||
$sql_common = " from {$g4['shop_item_ps_table']} where is_confirm = '1' ";
|
||||
$sql_order = " order by is_time desc ";
|
||||
|
||||
$sql = " select count(*) as cnt
|
||||
@ -68,7 +68,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$is_time = substr($row['is_time'], 2, 14);
|
||||
$small_image = $row['it_id']."_s";
|
||||
|
||||
$row2 = sql_fetch(" select it_name from {$g4['yc4_item_table']} where it_id = '{$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']}";
|
||||
|
||||
echo "
|
||||
|
||||
@ -45,18 +45,18 @@ $url = "./item.php?it_id=$it_id";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
$max_is_id = $row['max_is_id'];
|
||||
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']}
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_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['yc4_item_ps_table']}
|
||||
$sql = "insert {$g4['shop_item_ps_table']}
|
||||
set it_id = '$it_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
is_score = '$is_score',
|
||||
@ -77,12 +77,12 @@ if ($w == '')
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
|
||||
$sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['is_password'] != $is_password)
|
||||
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
|
||||
|
||||
$sql = " update {$g4['yc4_item_ps_table']}
|
||||
$sql = " update {$g4['shop_item_ps_table']}
|
||||
set is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_score = '$is_score'
|
||||
@ -95,7 +95,7 @@ else if ($w == 'd')
|
||||
{
|
||||
if ($is_member)
|
||||
{
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
alert("자신의 사용후기만 삭제하실 수 있습니다.");
|
||||
@ -104,13 +104,13 @@ else if ($w == 'd')
|
||||
{
|
||||
$is_password = sql_password($is_password);
|
||||
|
||||
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
|
||||
$sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['is_password'] != $is_password)
|
||||
alert("패스워드가 틀리므로 삭제하실 수 없습니다.");
|
||||
}
|
||||
|
||||
$sql = " delete from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
$sql = " delete from {$g4['shop_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url($url);
|
||||
|
||||
@ -12,7 +12,7 @@ if (!$is_member) {
|
||||
if ($w == "") {
|
||||
$is_score = 10;
|
||||
} else if ($w == "u") {
|
||||
$ps = sql_fetch(" select * from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ");
|
||||
$ps = sql_fetch(" select * from {$g4['shop_item_ps_table']} where is_id = '$is_id' ");
|
||||
if (!$ps) {
|
||||
alert_close("사용후기 정보가 없습니다.");
|
||||
}
|
||||
|
||||
@ -25,16 +25,16 @@ $url = "./item.php?it_id=$it_id";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
$max_is_id = $row['max_is_id'];
|
||||
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
|
||||
$sql = " select max(is_id) as max_is_id from {$g4['shop_item_ps_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['yc4_item_ps_table']}
|
||||
$sql = "insert {$g4['shop_item_ps_table']}
|
||||
set it_id = '$it_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
is_score = '$is_score',
|
||||
@ -56,12 +56,12 @@ if ($w == '')
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
|
||||
$sql = " select is_password from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['is_password'] != $is_password)
|
||||
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
|
||||
|
||||
$sql = " update {$g4['yc4_item_ps_table']}
|
||||
$sql = " update {$g4['shop_item_ps_table']}
|
||||
set is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_score = '$is_score'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select it_name from {$g4['yc4_item_table']} where it_id='$it_id' ";
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id='$it_id' ";
|
||||
$row = sql_fetch_array(sql_query($sql));
|
||||
|
||||
$imagefile = G4_DATA_PATH."/item/$img";
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
include_once("./_common.php");
|
||||
|
||||
$sql = " select *
|
||||
from {$g4['yc4_category_table']}
|
||||
from {$g4['shop_category_table']}
|
||||
where ca_id = '$ca_id'
|
||||
and ca_use = '1' ";
|
||||
$ca = sql_fetch($sql);
|
||||
@ -52,7 +52,7 @@ $sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
// 하위분류 포함
|
||||
// 판매가능한 상품만
|
||||
$sql_common = " from {$g4['yc4_item_table']}
|
||||
$sql_common = " from {$g4['shop_item_table']}
|
||||
where (ca_id like '{$ca_id}%'
|
||||
or ca_id2 like '{$ca_id}%'
|
||||
or ca_id3 like '{$ca_id}%')
|
||||
|
||||
@ -7,7 +7,7 @@ $len2 = $ca_id_len + 2;
|
||||
$len4 = $ca_id_len + 4;
|
||||
|
||||
// 차차기 분류의 건수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
|
||||
$sql = " select count(*) as cnt from {$g4['shop_category_table']}
|
||||
where ca_id like '$ca_id%'
|
||||
and length(ca_id) = $len4
|
||||
and ca_use = '1' ";
|
||||
@ -16,7 +16,7 @@ $cnt = $row['cnt'];
|
||||
if (!$cnt)
|
||||
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td><td>";
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$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'
|
||||
@ -26,8 +26,8 @@ $str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td>";
|
||||
$str .= "<td><table width=100% border=0><tr><td>";
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
|
||||
//$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_category_table] where ca_id like '$row[ca_id]%' ");
|
||||
$row2 = sql_fetch(" select count(*) as cnt from {$g4['yc4_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 $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' ");
|
||||
|
||||
$str .= "<a href='./list.php?ca_id={$row['ca_id']}'>{$row['ca_name']} ({$row2['cnt']})</a> ";
|
||||
$exists = true;
|
||||
|
||||
@ -16,7 +16,7 @@ if (!$exists) {
|
||||
$len4 = $tmp_ca_id_len + 4;
|
||||
|
||||
// 차차기 분류의 건수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
|
||||
$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 ";
|
||||
@ -25,7 +25,7 @@ if (!$exists) {
|
||||
if (!$cnt)
|
||||
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td><td>";
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$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 ";
|
||||
@ -38,7 +38,7 @@ if (!$exists) {
|
||||
if ($cnt) {
|
||||
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td>";
|
||||
$str .= "<td><table width=100% border=0><tr><td width=120><b>· <a href='./list.php?ca_id={$row['ca_id']}'><span $style>$row[ca_name]</span></a></b></td>";
|
||||
$sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$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 ";
|
||||
|
||||
@ -4,7 +4,7 @@ $exists = false;
|
||||
|
||||
$depth2_ca_id = substr($ca_id, 0, 2);
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$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'
|
||||
|
||||
@ -34,7 +34,7 @@ if ($sort != "")
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']}
|
||||
$sql_common = " from {$g4['shop_item_table']}
|
||||
where it_type{$type} = '1'
|
||||
and it_use = '1' ";
|
||||
if ($ca_id) {
|
||||
@ -91,14 +91,14 @@ echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_S
|
||||
// 분류를 링크하는 코드
|
||||
/*
|
||||
$bar = "";
|
||||
$sql = " select ca_id from $g4[yc4_item_table]
|
||||
$sql = " select ca_id from $g4[shop_item_table]
|
||||
where it_type{$type} = '1'
|
||||
and it_use = '1'
|
||||
group by ca_id
|
||||
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[yc4_category_table] where ca_id = '$row[ca_id]' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ");
|
||||
echo $bar . "<a href='$g4[shop_path]/list.php?ca_id=$row[ca_id]'>$row2[ca_name]</a>";
|
||||
$bar = " | ";
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>추천 상품</title>
|
||||
</head>
|
||||
|
||||
@ -12,24 +12,24 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
|
||||
<body leftmargin="0" topmargin="20" marginwidth="0" marginheight="20">
|
||||
<table width=600 cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td rowspan=2 align=right valign=top><img src="<?=$g4['shop_url']?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td rowspan=2 align=right valign=top><img src="<?=G4_SHOP_URL?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td height=1 colspan=3 bgcolor=#E3E3E3></td>
|
||||
<td rowspan=2 valign=top><img src="<?=$g4['shop_url']?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
<td rowspan=2 valign=top><img src="<?=G4_SHOP_URL?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign=top align=center style='padding-top:15px'>
|
||||
<table width=95% cellpadding=1 cellspacing=0 bgcolor=#C5C5C5>
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% cellpadding=10 cellspacing=0>
|
||||
<table width=100% cellpadding=10 cellspacing=0>
|
||||
<tr><td bgcolor=#2396C5 height=50 align=right><font color="#FFFFFF"><B>추천상품메일</B></font></td></tr>
|
||||
<tr><td bgcolor=#FFFFFF style="padding-left:15px; padding-bottom:15px; text-align:left;" height=30><font color=#5AB0D4><B><?=$from_name?> </B></font>님께서 추천하신 상품입니다.
|
||||
<table width=98% cellpadding=1 cellspacing=0 bgcolor=#DFDFDF>
|
||||
<tr><td>
|
||||
<table width=100% cellpadding=20 cellspacing=0 bgcolor=#F8F8F8>
|
||||
<tr><td style="text-align:left;" height=30><b><a href='<?="$g4[shop_url]/item.php?it_id=$it_id"?>' target=_top><?=$it_name?></a></b></td></tr>
|
||||
<tr><td style="text-align:left;" height=30><b><a href="<?=G4_SHOP_URL.'/item.php?it_id='.$it_id?>" target=_top><?=$it_name?></a></b></td></tr>
|
||||
<tr>
|
||||
<td valign=top style="padding:10px;line-height:150%; text-align:left;"><a href='<?="$g4[shop_url]/item.php?it_id=$it_id"?>' target=_top><img src='<?="$g4[url]/data/item/$it_mimg"?>' border=0 align=left hspace="10"></a><?=$content?></td>
|
||||
<td valign=top style="padding:10px;line-height:150%; text-align:left;"><a href="<?=G4_SHOP_URL.'/item.php?it_id='.$it_id?>" target="_top"><img src="<?=G4_DATA_URL.'/item/'.$it_mimg?>" border="0" align="left" hspace="10"></a><?=$content?></td>
|
||||
</tr>
|
||||
<tr><td style="text-align:left;">※ 이 메일은 광고 메일이 아닙니다.</td></tr>
|
||||
</table>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>주문내역 처리 현황</title>
|
||||
</head>
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
<td width="25" height="25"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td class="line" >
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td class="line" >
|
||||
<table width="548" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif">
|
||||
<td height="59" background="<?=G4_SHOP_URL?>/mail/img/mail_bg2.gif">
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
|
||||
<tr>
|
||||
<td> </td>
|
||||
@ -37,18 +37,18 @@
|
||||
<? if (count($cart_list)) { ?>
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td width="250" height="25" background="<?=$g4['shop_url']?>/mail/img/mail_bg1.gif"> <div align="center">품 명</div></td>
|
||||
<td width="100" height="25" background="<?=$g4['shop_url']?>/mail/img/mail_bg1.gif"> <div align="center">선택옵션</div></td>
|
||||
<td width="100" height="25" background="<?=$g4['shop_url']?>/mail/img/mail_bg1.gif"> <div align="center">처리상태</div></td>
|
||||
<td width="50" height="25" background="<?=$g4['shop_url']?>/mail/img/mail_bg1.gif"> <div align="center">수 량</div></td>
|
||||
<td width="250" height="25" background="<?=G4_SHOP_URL?>/mail/img/mail_bg1.gif"> <div align="center">품 명</div></td>
|
||||
<td width="100" height="25" background="<?=G4_SHOP_URL?>/mail/img/mail_bg1.gif"> <div align="center">선택옵션</div></td>
|
||||
<td width="100" height="25" background="<?=G4_SHOP_URL?>/mail/img/mail_bg1.gif"> <div align="center">처리상태</div></td>
|
||||
<td width="50" height="25" background="<?=G4_SHOP_URL?>/mail/img/mail_bg1.gif"> <div align="center">수 량</div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<? for ($i=0; $i<count($cart_list); $i++) { ?>
|
||||
<tr>
|
||||
<td width="250" height="25"><a href="<?=$g4['shop_url']?>/item.php?it_id=<?=$cart_list[$i][it_id]?>" target=_blank><?=$cart_list[$i][it_name]?></a></td>
|
||||
<td width="100" height="25"><div align="center"><?=$cart_list[$i][it_opt]?></div></td>
|
||||
<td width="100" height="25"><div align="center"><?=$cart_list[$i][ct_status]?></div></td>
|
||||
<td width="50" height="25"><div align="center"><?=$cart_list[$i][ct_qty]?></div></td>
|
||||
<td width="250" height="25"><a href="<?=G4_SHOP_URL?>/item.php?it_id=<?=$cart_list[$i]['it_id']?>" target="_blank"><?=$cart_list[$i]['it_name']?></a></td>
|
||||
<td width="100" height="25"><div align="center"><?=$cart_list[$i]['it_opt']?></div></td>
|
||||
<td width="100" height="25"><div align="center"><?=$cart_list[$i]['ct_status']?></div></td>
|
||||
<td width="50" height="25"><div align="center"><?=$cart_list[$i]['ct_qty']?></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=4 height=1 bgcolor=#EEEEEE></td>
|
||||
@ -59,15 +59,15 @@
|
||||
<? } // end if ?>
|
||||
|
||||
<? if (count($card_list)) { ?>
|
||||
<p><img src="<?=$g4['shop_url']?>/mail/img/mail_icon1.gif" width="13" height="11"> 신용카드 입금을 확인하였습니다</p>
|
||||
<p><img src="<?=G4_SHOP_URL?>/mail/img/mail_icon1.gif" width="13" height="11"> 신용카드 입금을 확인하였습니다</p>
|
||||
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 승인일시</td>
|
||||
<td width="370"> <?=$card_list[od_card_time]?></td>
|
||||
<td width="370"> <?=$card_list['od_card_time']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 승인금액</td>
|
||||
<td width="370"> <?=$card_list[od_receipt_card]?></td>
|
||||
<td width="370"> <?=$card_list['od_receipt_card']?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } ?>
|
||||
@ -75,57 +75,57 @@
|
||||
|
||||
<? if (count($bank_list)) { ?>
|
||||
<br />
|
||||
<p><img src="<?=$g4['shop_url']?>/mail/img/mail_icon1.gif" width="13" height="11"> 무통장 입금을 확인하였습니다</p>
|
||||
<p><img src="<?=G4_SHOP_URL?>/mail/img/mail_icon1.gif" width="13" height="11"> 무통장 입금을 확인하였습니다</p>
|
||||
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 확인일시</td>
|
||||
<td width="370"> <?=$bank_list[od_bank_time]?></td>
|
||||
<td width="370"> <?=$bank_list['od_bank_time']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 입금액</td>
|
||||
<td width="370"> <?=$bank_list[od_receipt_bank]?></td>
|
||||
<td width="370"> <?=$bank_list['od_receipt_bank']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td height=25> 입금자명</td>
|
||||
<td> <?=$bank_list[od_deposit_name]?></td>
|
||||
<td> <?=$bank_list['od_deposit_name']?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } ?>
|
||||
|
||||
<? if (count($point_list)) { ?>
|
||||
<br />
|
||||
<p><img src="<?=$g4['shop_url']?>/mail/img/mail_icon1.gif" width="13" height="11"> 포인트 입금을 확인하였습니다</p>
|
||||
<p><img src="<?=G4_SHOP_URL?>/mail/img/mail_icon1.gif" width="13" height="11"> 포인트 입금을 확인하였습니다</p>
|
||||
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 확인일시</td>
|
||||
<td width="370"> <?=$point_list[od_time]?></td>
|
||||
<td width="370"> <?=$point_list['od_time']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 포인트</td>
|
||||
<td width="370"> <?=$point_list[od_receipt_point]?></td>
|
||||
<td width="370"> <?=$point_list['od_receipt_point']?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } ?>
|
||||
|
||||
<? if (count($delivery_list)) { ?>
|
||||
<br />
|
||||
<p><img src="<?=$g4['shop_url']?>/mail/img/mail_icon1.gif" width="13" height="11"> 다음과 같이 배송 하였습니다</p>
|
||||
<p><img src="<?=G4_SHOP_URL?>/mail/img/mail_icon1.gif" width="13" height="11"> 다음과 같이 배송 하였습니다</p>
|
||||
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 배송회사</td>
|
||||
<td width="370"> <a href='<?=$delivery_list[dl_url]?>' target=_blank><?=$delivery_list[dl_company]?></a></td>
|
||||
<td width="370"> <a href='<?=$delivery_list['dl_url']?>' target=_blank><?=$delivery_list['dl_company']?></a></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td width="130" height=25> 운송장번호</td>
|
||||
<td width="370"> <?=$delivery_list[od_invoice]?></td>
|
||||
<td width="370"> <?=$delivery_list['od_invoice']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td height=25> 배송일시</td>
|
||||
<td> <?=$delivery_list[od_invoice_time]?></td>
|
||||
<td> <?=$delivery_list['od_invoice_time']?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td height=25> 대표전화</td>
|
||||
<td> <?=$delivery_list[dl_tel]?></td>
|
||||
<td> <?=$delivery_list['dl_tel']?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } ?>
|
||||
@ -136,7 +136,7 @@
|
||||
<table width="500" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="25" bgcolor="#ECF1F6">
|
||||
<div align="center">[<a href="<?=$g4[url]?>" target=_blank><?=$config[cf_title]?></a>] 에서 드리는 메일입니다.</div></td>
|
||||
<div align="center">[<a href="<?=G4_URL?>" target="_blank"><?=$config['cf_title']?></a>] 에서 드리는 메일입니다.</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -144,9 +144,9 @@
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
</td>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@ -1,34 +1,34 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>관리자님께 주문서 메일 드리기</title>
|
||||
</head>
|
||||
|
||||
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border=0>
|
||||
<tr><td width="25" height="25" colspan=3> </td></tr>
|
||||
<tr><td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<tr><td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td class="line" align=center>
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<td height="59" background="<?=G4_SHOP_URL?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
<!-- 주문내역 -->
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<col width=110>
|
||||
<col width=150>
|
||||
<col width=1>
|
||||
<col width=''>
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td rowspan=12 align=center><a href='<?="$g4[shop_url]/item.php?it_id={$list[$i][it_id]}"?>' target=_blank><?=$list[$i][it_simg]?></a></td>
|
||||
<td rowspan=12 align=center><a href="<?=G4_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']?>" target="_blank"><?=$list[$i]['it_simg']?></a></td>
|
||||
<td height=22 style="text-align:left;"> ▒ 주문제품명</td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list[$i][it_name]?></B></td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list[$i]['it_name']?></B></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
@ -40,23 +40,23 @@
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 판매가격</td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i][ct_amount])?></td>
|
||||
<td rowspan=9 valign=top style="padding-left:10px; padding-top:5px; text-align:left;"><?=$list[$i][it_opt]?></td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i]['ct_amount'])?></td>
|
||||
<td rowspan=9 valign=top style="padding-left:10px; padding-top:5px; text-align:left;"><?=$list[$i]['it_opt']?></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 수량</td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list[$i][ct_qty])?></b>개</td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list[$i]['ct_qty'])?></b>개</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 소계</td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i][stotal_amount])?></td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i]['stotal_amount'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 포인트</td>
|
||||
<td style="text-align:left;">: <?=display_point($list[$i][stotal_point])?></td>
|
||||
<td style="text-align:left;">: <?=display_point($list[$i]['stotal_point'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr><td colspan=3 height=20></td></tr>
|
||||
@ -89,7 +89,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% cellpadding=4 cellspacing=0>
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#D4E1EB></td></tr>
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
<td style="text-align:left;">: <?=$od_deposit_name?></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
|
||||
<tr><td colspan=2 height=2 bgcolor=#D4E1EB></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -136,7 +136,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -166,7 +166,7 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<!-- 주문자 정보 END-->
|
||||
|
||||
<p>
|
||||
@ -176,7 +176,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -203,15 +203,15 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height=30 style="color:#A26217; text-align:right;">상세한 내용은 운영자 화면에서 확인하실 수 있습니다. [<a href='<?="$g4[shop_admin_url]/orderform.php?od_id=$od_id"?>'>바로가기</a>]</td></tr>
|
||||
</table>
|
||||
<tr><td height=30 style="color:#A26217; text-align:right;">상세한 내용은 운영자 화면에서 확인하실 수 있습니다. [<a href="<?=G4_ADMIN_URL.'shop_admin/orderform.php?od_id='.$od_id?>">바로가기</a>]</td></tr>
|
||||
</table>
|
||||
<!-- 배송지정보 END-->
|
||||
|
||||
|
||||
<table width=95%>
|
||||
<tr><td height=30 align=right></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
|
||||
@ -1,34 +1,34 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>고객님께 주문서 메일 드리기</title>
|
||||
</head>
|
||||
|
||||
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border=0>
|
||||
<tr><td width="25" height="25" colspan=3> </td></tr>
|
||||
<tr><td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<tr><td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td class="line" align=center>
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<td height="59" background="<?=G4_SHOP_URL?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
<!-- 주문내역 -->
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<col width=110>
|
||||
<col width=150>
|
||||
<col width=1>
|
||||
<col width=''>
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td rowspan=12 align=center><a href='<?="$g4[shop_url]/item.php?it_id={$list[$i][it_id]}"?>' target=_blank><?=$list[$i][it_simg]?></a></td>
|
||||
<td rowspan=12 align=center><a href="<?=G4_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']?>" target="_blank"><?=$list[$i]['it_simg']?></a></td>
|
||||
<td height=22 style="text-align:left;"> ▒ 주문제품명</td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list[$i][it_name]?></B></td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list[$i]['it_name']?></B></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
@ -40,23 +40,23 @@
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 판매가격</td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i][ct_amount])?></td>
|
||||
<td rowspan=9 valign=top style='padding-left:10px; padding-top:5px; text-align:left;'><?=$list[$i][it_opt]?></td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i]['ct_amount'])?></td>
|
||||
<td rowspan=9 valign=top style='padding-left:10px; padding-top:5px; text-align:left;'><?=$list[$i]['it_opt']?></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 수량</td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list[$i][ct_qty])?></b>개</td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list[$i]['ct_qty'])?></b>개</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 소계</td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i][stotal_amount])?></td>
|
||||
<td style="text-align:left;">: <?=display_amount($list[$i]['stotal_amount'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 포인트</td>
|
||||
<td style="text-align:left;">: <?=display_point($list[$i][stotal_point])?></td>
|
||||
<td style="text-align:left;">: <?=display_point($list[$i]['stotal_point'])?></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr><td colspan=3 height=20></td></tr>
|
||||
@ -89,7 +89,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% cellpadding=4 cellspacing=0>
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#D4E1EB></td></tr>
|
||||
<? if ($od_receipt_point > 0) { ?>
|
||||
@ -131,12 +131,12 @@
|
||||
<table width="95%" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height=30 style="text-align:left;"><B>주문하신 분 정보</B></td>
|
||||
<td style="color:#A26217; text-align:right;">상세한 내용은 주문서 조회 화면에서 확인하실 수 있습니다. [<a href='<?="$g4[shop_url]/orderinquiry.php"?>'>바로가기</a>]</td>
|
||||
<td style="color:#A26217; text-align:right;">상세한 내용은 주문서 조회 화면에서 확인하실 수 있습니다. [<a href="<?=G4_SHOP_URL.'/orderinquiry.php'?>">바로가기</a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -166,19 +166,19 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<!-- 주문자 정보 END-->
|
||||
|
||||
|
||||
<p>
|
||||
<!-- 배송지 정보 -->
|
||||
<table width="95%" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height=30 style="text-align:left;"><B>배송지 정보</B></td>
|
||||
<td style="color:#A26217; text-align:right;">배송지를 변경하실 고객님은 <B><?= $default[de_admin_company_tel] ?></B>로 연락주시기 바랍니다.</td></tr>
|
||||
<td style="color:#A26217; text-align:right;">배송지를 변경하실 고객님은 <B><?= $default['de_admin_company_tel'] ?></B>로 연락주시기 바랍니다.</td></tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -205,14 +205,14 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<!-- 배송지정보 END-->
|
||||
|
||||
|
||||
<table width=95%>
|
||||
<tr><td height=30 align=right></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>판매자님께 주문서 메일 드리기</title>
|
||||
</head>
|
||||
|
||||
@ -8,28 +8,28 @@
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border=0>
|
||||
<tr><td width="25" height="25" colspan=3> </td></tr>
|
||||
<tr>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_left.gif" width="25" height="281"></td>
|
||||
<td class="line" align=center>
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="59" background="<?=$g4['shop_url']?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=$g4[time_ymdhis]?> (<?=get_yoil($g4[time_ymdhis])?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
<td height="59" background="<?=G4_SHOP_URL?>/mail/img/mail_bg2.gif" style='padding-left:20px'>
|
||||
<strong><font color="#02253A">본 메일은 <?=G4_TIME_YMDHIS?> (<?=get_yoil(G4_TIME_YMDHIS)?>)을 기준으로 작성되었습니다.</font></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
|
||||
<!-- 주문내역 -->
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<col width=200>
|
||||
<col width=110>
|
||||
<col width=150>
|
||||
<col width=1>
|
||||
<col width=''>
|
||||
<tr>
|
||||
<td rowspan=6 align=center><a href='<?="$g4[shop_url]/item.php?it_id={$list[it_id]}"?>' target=_blank><?=$list[it_simg]?></a></td>
|
||||
<td rowspan=6 align=center><a href="<?=G4_SHOP_URL.'/item.php?it_id='.$list['it_id']?>" target="_blank"><?=$list['it_simg']?></a></td>
|
||||
<td height=22 style="text-align:left;"> ▒ 주문제품명</td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list[it_name]?></B></td>
|
||||
<td colspan=3 style="text-align:left;">: <B><?=$list['it_name']?></B></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
@ -41,8 +41,8 @@
|
||||
<tr><td colspan=2 bgcolor=#DDDDDD height=1></td></tr>
|
||||
<tr>
|
||||
<td height=22 style="text-align:left;"> ▒ 수량</td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list[ct_qty])?></b>개</td>
|
||||
<td style="padding-left:10px; padding-top:0px; text-align:left;"><?=$list[it_opt]?></td>
|
||||
<td style="text-align:left;">: <b><?=number_format($list['ct_qty'])?></b>개</td>
|
||||
<td style="padding-left:10px; padding-top:0px; text-align:left;"><?=$list['it_opt']?></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 bgcolor=#DDDDDD height=1></td></tr>
|
||||
</table><p>
|
||||
@ -56,7 +56,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -86,9 +86,9 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<!-- 주문자 정보 END-->
|
||||
|
||||
|
||||
<!-- 배송지 정보 -->
|
||||
<p>
|
||||
<table width="95%" align="center" cellpadding="0" cellspacing="0">
|
||||
@ -96,7 +96,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="4" cellspacing="0">
|
||||
<col width=110>
|
||||
<col width=110>
|
||||
<col width=''>
|
||||
<tr><td colspan=2 height=2 bgcolor=#DFDED9></td></tr>
|
||||
<tr bgcolor="#F8F7F2">
|
||||
@ -124,16 +124,16 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=30 align=right style='color:#A26217; font-size=11px; font-family:돋움'>이 주문과 관련된 내용은 <B><?= $default[de_admin_company_tel] ?></B>로 연락주시기 바랍니다.</td>
|
||||
<td height=30 align=right style='color:#A26217; font-size=11px; font-family:돋움'>이 주문과 관련된 내용은 <B><?= $default['de_admin_company_tel'] ?></B>로 연락주시기 바랍니다.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
<!-- 배송지정보 END-->
|
||||
|
||||
|
||||
<table width=95%>
|
||||
<tr><td height=30 align=right></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="25" valign="top"><img src="<?=$g4['shop_url']?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
<td width="25" valign="top"><img src="<?=G4_SHOP_URL?>/mail/img/mail_right.gif" width="25" height="281"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@ -89,8 +89,8 @@ include G4_SHOP_PATH.'/orderinquiry.sub.php';
|
||||
<tr><td height=1 colspan=3 class=c1></td></tr>
|
||||
<?
|
||||
$sql = " select *
|
||||
from {$g4['yc4_wish_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_wish_table']} a,
|
||||
{$g4['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['yc4_category_table']} where ca_id = '$code' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$style = "";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sql = " select * from {$g4['yc4_new_win_table']}
|
||||
$sql = " select * from {$g4['shop_new_win_table']}
|
||||
where '".G4_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
||||
order by nw_id asc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select * from {$g4['yc4_new_win_table']} where nw_id = '$nw_id' ";
|
||||
$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
|
||||
$nw = sql_fetch($sql);
|
||||
|
||||
$g4['title'] = $nw['nw_subject'];
|
||||
|
||||
@ -14,7 +14,7 @@ if (get_cart_count($tmp_uq_id) == 0)
|
||||
alert("장바구니가 비어 있습니다.", "./cart.php");
|
||||
|
||||
// 포인트 결제 대기 필드 추가
|
||||
//sql_query(" ALTER TABLE `$g4[yc4_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
|
||||
//sql_query(" ALTER TABLE `$g4[shop_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
|
||||
|
||||
$g4['title'] = '주문서 작성';
|
||||
|
||||
|
||||
@ -24,8 +24,8 @@ $error = "";
|
||||
$sql = " select a.it_id,
|
||||
a.ct_qty,
|
||||
b.it_name
|
||||
from {$g4['yc4_cart_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
and a.it_id = b.it_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -50,7 +50,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
|
||||
|
||||
|
||||
// 주문금액이 상이함
|
||||
$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['yc4_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ((int)$row['od_amount'] !== $i_amount) {
|
||||
die("Error.");
|
||||
@ -200,7 +200,7 @@ else
|
||||
$od_id = get_session('ss_order_uniqid');
|
||||
|
||||
// 주문서에 입력
|
||||
$sql = " insert {$g4['yc4_order_table']}
|
||||
$sql = " insert {$g4['shop_order_table']}
|
||||
set od_id = '$od_id',
|
||||
uq_id = '$tmp_uq_id',
|
||||
mb_id = '{$member['mb_id']}',
|
||||
@ -261,7 +261,7 @@ $sql_card_point = "";
|
||||
if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default['de_card_point'] == false) {
|
||||
$sql_card_point = " , ct_point = '0' ";
|
||||
}
|
||||
$sql = "update {$g4['yc4_cart_table']}
|
||||
$sql = "update {$g4['shop_cart_table']}
|
||||
set ct_status = '주문'
|
||||
$sql_card_point
|
||||
where uq_id = '$tmp_uq_id' ";
|
||||
@ -277,7 +277,7 @@ if(!$result) {
|
||||
echo "<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}";
|
||||
|
||||
// 주문삭제
|
||||
sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
|
||||
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@ -8,11 +8,11 @@ $od_pwd = sql_password($od_pwd);
|
||||
// 회원인 경우
|
||||
if ($is_member)
|
||||
{
|
||||
$sql_common = " from {$g4['yc4_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$sql_common = " from {$g4['shop_order_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
}
|
||||
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
|
||||
{
|
||||
$sql_common = " from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql_common = " from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
}
|
||||
else // 그렇지 않다면 로그인으로 가기
|
||||
{
|
||||
@ -43,7 +43,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
|
||||
if (!$is_member)
|
||||
{
|
||||
$sql = " select od_id, uq_id from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$sql = " select od_id, uq_id from {$g4['shop_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_id']) {
|
||||
set_session("ss_uq_id_inquiry", $row['uq_id']);
|
||||
|
||||
@ -25,8 +25,8 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
|
||||
<?
|
||||
$sql = " select a.od_id,
|
||||
a.*, "._MISU_QUERY_."
|
||||
from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
group by a.od_id
|
||||
order by a.od_id desc
|
||||
|
||||
@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
|
||||
alert_close("토큰 에러");
|
||||
}
|
||||
|
||||
$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' and mb_id = '{$member['mb_id']}' ");
|
||||
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' and mb_id = '{$member['mb_id']}' ");
|
||||
|
||||
if (!$od['od_id']) {
|
||||
alert("존재하는 주문이 아닙니다.");
|
||||
@ -22,12 +22,12 @@ if ($od['od_temp_bank'] > 0 && $od['od_receipt_bank'] == 0) {
|
||||
}
|
||||
|
||||
// 장바구니 자료 취소
|
||||
sql_query(" update {$g4['yc4_cart_table']} set ct_status = '취소' where uq_id = '$uq_id' ");
|
||||
sql_query(" update {$g4['shop_cart_table']} set ct_status = '취소' where uq_id = '$uq_id' ");
|
||||
|
||||
// 주문 취소
|
||||
$cancel_memo = addslashes($cancel_memo);
|
||||
//sql_query(" update $g4[yc4_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
|
||||
sql_query(" update {$g4['yc4_order_table']} set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
|
||||
//sql_query(" update $g4[shop_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
|
||||
sql_query(" update {$g4['shop_order_table']} set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where uq_id = '$uq_id' ");
|
||||
|
||||
// 주문취소 회원의 포인트를 되돌려 줌
|
||||
if ($od['od_receipt_point'] > 0) {
|
||||
|
||||
@ -10,7 +10,7 @@ if (!$is_member) {
|
||||
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.");
|
||||
}
|
||||
|
||||
$sql = "select * from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ";
|
||||
$sql = "select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
if (!$od['od_id']) {
|
||||
echo "$od_id $uq_id $MxIssueNO";
|
||||
@ -92,7 +92,7 @@ if(openwin != null) {
|
||||
|
||||
<?
|
||||
// 배송회사 정보
|
||||
$dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
if ($od['od_invoice'] || !$od['misu'])
|
||||
{
|
||||
@ -143,7 +143,7 @@ echo "<td style='padding:20px'>";
|
||||
|
||||
if ($od['od_settle_case'] == '신용카드')
|
||||
{
|
||||
$sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
|
||||
$sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
|
||||
$result = sql_query($sql);
|
||||
$cd = mysql_fetch_array($result);
|
||||
|
||||
@ -158,7 +158,7 @@ if ($od['od_settle_case'] == '신용카드')
|
||||
}
|
||||
else if ($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
$sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
|
||||
$sql = " select * from {$g4['shop_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
|
||||
$result = sql_query($sql);
|
||||
$cd = mysql_fetch_array($result);
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ $sql = " select b.it_sell_email,
|
||||
a.ct_qty,
|
||||
a.ct_amount,
|
||||
a.ct_point
|
||||
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
and a.it_id = b.it_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -44,7 +44,7 @@ $sql = " select b.it_sell_email,
|
||||
a.it_opt5,
|
||||
a.it_opt6,
|
||||
a.ct_qty
|
||||
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
and a.it_id = b.it_id
|
||||
and b.it_sell_email <> '' ";
|
||||
|
||||
@ -20,7 +20,7 @@ else
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ else
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -60,26 +60,26 @@ else
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -63,26 +63,26 @@ else
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -28,7 +28,7 @@ include_once("./_common.php");
|
||||
<?
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -36,13 +36,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = it_image($row['it_id'].'_m');
|
||||
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
|
||||
@ -9,16 +9,16 @@ echo $_SERVER["HTTP_HOST"];
|
||||
|
||||
// \n상품코드#대분류#소분류#상품명#상품URL#가격
|
||||
$str = "";
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from $g4[shop_item_table]
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from $g4[yc4_category_table] where ca_id = '".substr($row[ca_id],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from $g4[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[yc4_category_table] where ca_id = '".substr($row[ca_id],0,4)."' ");
|
||||
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)."' ");
|
||||
|
||||
$str .= "\n";
|
||||
$str .= "$row[it_id]#$row2[ca_name]#$row3[ca_name]#$row[it_name]#$g4[shop_url]/item.php?it_id=$row[it_id]#$row[it_amount]";
|
||||
|
||||
@ -19,16 +19,16 @@ else
|
||||
<?
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
$sql = " select * from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -79,14 +79,14 @@ else {
|
||||
$deliv2 = (int)$send_cost_list[0]."원";
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -48,21 +48,21 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from $g4[yc4_item_table] where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from $g4[shop_item_table] where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
?>
|
||||
<html>
|
||||
<title>에누리 엔진페이지</title>
|
||||
<head>
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
A:link {text-decoration: underline; color:steelblue}
|
||||
A:visited {text-decoration: none; color:steelblue}
|
||||
A:hover {text-decoration: underline; color:RoyalBlue}
|
||||
A:hover {text-decoration: underline; color:RoyalBlue}
|
||||
font {font-family:굴림; font-size:10pt}
|
||||
th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
|
||||
@ -89,15 +89,15 @@ if ($page == "") $page = 1;
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
where it_use = '1'
|
||||
$sql = " select * from $g4[shop_item_table]
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$stock = get_it_stock_qty($row[it_id]);
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from {$g4['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['yc4_item_table']}
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
|
||||
@ -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['yc4_category_table']}
|
||||
FROM {$g4['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['yc4_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_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 {$g4['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 = "";
|
||||
|
||||
@ -49,7 +49,7 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g4['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['yc4_item_table']}
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -103,7 +103,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
|
||||
@ -52,7 +52,7 @@ else {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ else {
|
||||
|
||||
// 하루전의 상품
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$sql =" select * from {$g4['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['yc4_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ $lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$sql =" select * from {$g4['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_amount, it_time from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_amount, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -15,19 +15,19 @@ include_once("./_common.php");
|
||||
<?
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
$sql = " select * from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row[it_id]);
|
||||
|
||||
@ -33,7 +33,7 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 500;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -76,24 +76,24 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id limit $from_record, $page_rows ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id limit $from_record, $page_rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
else
|
||||
$row3['ca_name'] = " ";
|
||||
|
||||
if (strlen($row['ca_id']) >= 6)
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
else
|
||||
$row4['ca_name'] = " ";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8)
|
||||
$row5 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row5 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
else
|
||||
$row5['ca_name'] = " ";
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ include_once("./_common.php");
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['yc4_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -88,7 +88,7 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -103,7 +103,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$i*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
|
||||
@ -19,8 +19,8 @@ include_once('./_head.php');
|
||||
<?
|
||||
// QUERY 문에 공통적으로 들어가는 내용
|
||||
// 상품명에 검색어가 포한된것과 상품판매가능인것만
|
||||
$sql_common = " from {$g4['yc4_item_table']} a,
|
||||
{$g4['yc4_category_table']} b
|
||||
$sql_common = " from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
where a.ca_id=b.ca_id
|
||||
and a.it_use = 1
|
||||
and b.ca_use = 1
|
||||
@ -98,7 +98,7 @@ function write_search_save($save)
|
||||
{
|
||||
global $g4, $search_str , $default , $image_rate , $cart_dir;
|
||||
|
||||
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
/*
|
||||
@ -122,7 +122,7 @@ function write_search_save($save)
|
||||
$ca_temp = "";
|
||||
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
|
||||
{
|
||||
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$sql2 = " select ca_name from $g4[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$ca_temp = "<b><a href='./list.php?ca_id=".substr($save['ca_id'],0,2)."'>{$row2['ca_name']}</a></b> > ";
|
||||
}
|
||||
@ -153,7 +153,7 @@ function write_search_save($save)
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
from {$g4['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$image = get_it_image("{$row['it_id']}_s", (int)($default['de_simg_width'] / $image_rate), (int)($default['de_simg_height'] / $image_rate), $row['it_id']);
|
||||
|
||||
@ -19,8 +19,8 @@ include_once('./_head.php');
|
||||
<?
|
||||
// QUERY 문에 공통적으로 들어가는 내용
|
||||
// 상품명에 검색어가 포한된것과 상품판매가능인것만
|
||||
$sql_common = " from {$g4['yc4_item_table']} a,
|
||||
{$g4['yc4_category_table']} b
|
||||
$sql_common = " from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
where a.ca_id = b.ca_id
|
||||
and ( a.it_name like '%$search_str%' or
|
||||
a.it_basic like '%$search_str%' or
|
||||
@ -79,7 +79,7 @@ function write_search_save($save)
|
||||
{
|
||||
global $g4, $search_str , $default , $image_rate , $cart_dir;
|
||||
|
||||
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
echo "
|
||||
@ -111,7 +111,7 @@ function write_search_save($save)
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
from {$g4['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$image = get_it_image("{$row['it_id']}_s", (int)($default['de_simg_width'] / $image_rate), (int)($default['de_simg_height'] / $image_rate), $row['it_id']);
|
||||
|
||||
@ -19,8 +19,8 @@ include_once('./_head.php');
|
||||
<?
|
||||
// QUERY 문에 공통적으로 들어가는 내용
|
||||
// 상품명에 검색어가 포한된것과 상품판매가능인것만
|
||||
$sql_common = " from {$g4['yc4_item_table']} a,
|
||||
{$g4['yc4_category_table']} b
|
||||
$sql_common = " from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
where a.ca_id=b.ca_id
|
||||
and a.it_use = 1
|
||||
and b.ca_use = 1
|
||||
@ -83,7 +83,7 @@ function write_search_save($save)
|
||||
{
|
||||
global $g4, $search_str , $default , $image_rate , $cart_dir;
|
||||
|
||||
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
/*
|
||||
@ -107,7 +107,7 @@ function write_search_save($save)
|
||||
$ca_temp = "";
|
||||
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
|
||||
{
|
||||
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$ca_temp = "<b><a href=\"./list.php?ca_id=".substr($save['ca_id'],0,2)."\">{$row2['ca_name']}</a></b> > ";
|
||||
}
|
||||
@ -139,7 +139,7 @@ function write_search_save($save)
|
||||
it_type3,
|
||||
it_type4,
|
||||
it_type5
|
||||
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
from {$g4['shop_item_table']} where it_id = '{$save['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
//$image = get_it_image("$row[it_id]_s", (int)($default[de_simg_width] / $image_rate), (int)($default[de_simg_height] / $image_rate), $row[it_id]);
|
||||
|
||||
@ -142,7 +142,7 @@ if(!$default['de_card_test']) {
|
||||
if ( $tx_cd == "TX00" )
|
||||
{
|
||||
// 주문서 UPDATE
|
||||
$sql = " update {$g4['yc4_order_table']}
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_receipt_bank = '$ipgm_mnyx',
|
||||
od_bank_time = '$tx_tm'
|
||||
where od_id = '$order_no'
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
$g4['title'] = "현금영수증 발행";
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
if (!$od)
|
||||
die("주문서가 존재하지 않습니다.");
|
||||
|
||||
|
||||
@ -25,8 +25,8 @@ include_once('./_head.php');
|
||||
<tr><td colspan=6 height=1 class=c1></td></tr>
|
||||
<?
|
||||
$sql = " select *
|
||||
from {$g4['yc4_wish_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_wish_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc ";
|
||||
|
||||
@ -7,14 +7,14 @@ if (!$is_member)
|
||||
if ($w == "d")
|
||||
{
|
||||
$wi_id = trim($_GET['wi_id']);
|
||||
$sql = " delete from {$g4['yc4_wish_table']}
|
||||
$sql = " delete from {$g4['shop_wish_table']}
|
||||
where wi_id = '$wi_id'
|
||||
and mb_id = '{$member['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "alldelete")
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_wish_table']}
|
||||
$sql = " delete from {$g4['shop_wish_table']}
|
||||
where mb_id = '{$member['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
@ -25,15 +25,15 @@ else
|
||||
wi_time = '".G4_TIME_YMDHIS."',
|
||||
wi_ip = '$REMOTE_ADDR' ";
|
||||
|
||||
$sql = " select wi_id from {$g4['yc4_wish_table']}
|
||||
$sql = " select wi_id from {$g4['shop_wish_table']}
|
||||
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['wi_id']) { // 이미 있다면 삭제함
|
||||
$sql = " delete from {$g4['yc4_wish_table']} where wi_id = '{$row['wi_id']}' ";
|
||||
$sql = " delete from {$g4['shop_wish_table']} where wi_id = '{$row['wi_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
$sql = " insert {$g4['yc4_wish_table']}
|
||||
$sql = " insert {$g4['shop_wish_table']}
|
||||
set mb_id = '{$member['mb_id']}',
|
||||
it_id = '$it_id',
|
||||
wi_time = '".G4_TIME_YMDHIS."',
|
||||
|
||||
Reference in New Issue
Block a user