g4를 g5로 변경
This commit is contained in:
@ -20,7 +20,7 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -35,24 +35,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G5_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".$img_url."{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
|
||||
@ -20,8 +20,8 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -36,24 +36,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G5_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".$img_url."{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
|
||||
@ -45,8 +45,8 @@ ob_start();
|
||||
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
@ -62,26 +62,26 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -47,8 +47,8 @@ ob_start();
|
||||
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
@ -64,27 +64,27 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ ob_start();
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
*/
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -28,7 +28,7 @@ include_once('./_common.php');
|
||||
<?php
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -36,20 +36,20 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 4)
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 6)
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row['it_price'] = 0;
|
||||
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}";
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
|
||||
@ -19,16 +19,16 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
<?php
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$str .= "^{$row['it_name']}"; // 상품명
|
||||
$str .= "^{$row['it_maker']}"; // 제조사
|
||||
$str .= "^".$img_url; // 이미지URL
|
||||
$str .= "^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^{$row['it_price']}"; // 가격
|
||||
$str .= "^{$row['it_point']}"; // 적립금
|
||||
$str .= "^"; // 할인쿠폰
|
||||
|
||||
@ -64,8 +64,8 @@ header("Content-Type: text/html; charset=utf-8");
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -81,14 +81,14 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$deliv2 = (int)$send_cost_list[0]."원";
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$cate1 = $row2['ca_id'];
|
||||
$catename1 = $row2['ca_name'];
|
||||
|
||||
@ -96,19 +96,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$catename2 = $catename3 = $catename4 = "";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$cate4 = $row2['ca_id'];
|
||||
$catename4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$cate3 = $row2['ca_id'];
|
||||
$catename3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -95,7 +95,7 @@ if ($page == "") $page = 1;
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
@ -135,7 +135,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
echo '
|
||||
<tr bgcolor="white">
|
||||
<td align="center">'.$num.'</td>
|
||||
<td><a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td><a href="'.G5_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td align="center">'.number_format($row['it_price']).'</td>
|
||||
<td align="center">'.$stock.'</td>
|
||||
<td align="center">'.$send_cost.'</td>
|
||||
|
||||
@ -34,7 +34,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
$sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id
|
||||
FROM {$g4['shop_category_table']}
|
||||
FROM {$g5['shop_category_table']}
|
||||
HAVING cnt";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
@ -42,11 +42,11 @@ $tr = "";
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
echo $tr;
|
||||
echo " <td align=center><a href='./enuri.php?ca_id={$row['ca_id']}'>{$row2['ca_name']}</a></td>\n";
|
||||
$str = " <td>";
|
||||
$sql3 = "select ca_name,ca_id from {$g4['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$sql3 = "select ca_name,ca_id from {$g5['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$bar = "";
|
||||
|
||||
@ -33,13 +33,13 @@ function paging($write_pages, $cur_page, $total_page, $url)
|
||||
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,7 +49,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
@ -120,7 +120,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<tr>
|
||||
<td>$num</td>
|
||||
<td>{$row['it_id']}</td>
|
||||
<td><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td><a href='".G5_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td>{$row['it_price']}</td>
|
||||
<td>$category</td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
|
||||
@ -39,8 +39,8 @@ Field Status Notes
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -54,7 +54,7 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -63,7 +63,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
@ -71,19 +71,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -41,8 +41,8 @@ Field Status Notes
|
||||
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
$shop_url = G4_SHOP_URL;
|
||||
$data_url = G4_DATA_URL;
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
@ -57,8 +57,8 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
}
|
||||
|
||||
// 하루전의 상품
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -67,24 +67,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -19,7 +19,7 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
Reference in New Issue
Block a user