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'];
|
||||
}
|
||||
|
||||
@ -62,13 +62,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -113,7 +113,7 @@ echo "\r\n";
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -20,8 +20,8 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -36,24 +36,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name4 = "";
|
||||
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id1' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$ca_id2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id2' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$ca_id3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id3' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$ca_id4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id4' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -63,13 +63,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -114,7 +114,7 @@ echo "\r\n";
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -60,26 +60,26 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -89,13 +89,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -137,7 +137,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -62,27 +62,27 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$ca_name3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -92,13 +92,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -133,7 +133,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -20,7 +20,7 @@ ob_start();
|
||||
$lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
*/
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -29,7 +29,7 @@ include_once('./_common.php');
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$cnt = 0;
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -37,22 +37,22 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 4)
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
|
||||
if (strlen($row['ca_id']) >= 6)
|
||||
$row4 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row4 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -75,7 +75,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -19,16 +19,16 @@ else if($default['de_send_cost_case'] == '상한')
|
||||
<?php
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$ca_name = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row3 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
@ -36,13 +36,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -76,7 +76,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -79,14 +79,14 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$deliv2 = (int)$send_cost_list[0]."원";
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$cate1 = $row2['ca_id'];
|
||||
$catename1 = $row2['ca_name'];
|
||||
|
||||
@ -94,19 +94,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$catename2 = $catename3 = $catename4 = "";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
$cate4 = $row2['ca_id'];
|
||||
$catename4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
|
||||
$cate3 = $row2['ca_id'];
|
||||
$catename3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
@ -136,13 +136,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
|
||||
@ -190,7 +190,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -48,7 +48,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 1000;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -95,7 +95,7 @@ if ($page == "") $page = 1;
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
@ -116,13 +116,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
if($delivery)
|
||||
@ -162,7 +162,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -34,7 +34,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
$sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id
|
||||
FROM {$g4['shop_category_table']}
|
||||
FROM {$g5['shop_category_table']}
|
||||
HAVING cnt";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
@ -42,11 +42,11 @@ $tr = "";
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".$row['ca_id']."'");
|
||||
echo $tr;
|
||||
echo " <td align=center><a href='./enuri.php?ca_id={$row['ca_id']}'>{$row2['ca_name']}</a></td>\n";
|
||||
$str = " <td>";
|
||||
$sql3 = "select ca_name,ca_id from {$g4['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$sql3 = "select ca_name,ca_id from {$g5['shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$bar = "";
|
||||
|
||||
@ -33,13 +33,13 @@ function paging($write_pages, $cur_page, $total_page, $url)
|
||||
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
global $g5;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
$tmp = G5_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
$str = G5_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
$str = G5_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,7 +49,7 @@ include_once('./_common.php');
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
$sql = " select * from {$g5['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$k*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
@ -112,13 +112,13 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -145,7 +145,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -52,7 +52,7 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -61,7 +61,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
@ -69,19 +69,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -95,13 +95,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -147,7 +147,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -55,8 +55,8 @@ else if($default['de_send_cost_case'] == '상한') {
|
||||
}
|
||||
|
||||
// 하루전의 상품
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -65,24 +65,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$caid1 = $caid2 = $caid3 = $caid4 = "";
|
||||
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
if (strlen($row['ca_id']) >= 8) {
|
||||
$caid4 = substr($row['ca_id'],0,8);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid4' ");
|
||||
$cate4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 6) {
|
||||
$caid3 = substr($row['ca_id'],0,6);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid3' ");
|
||||
$cate3 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
if (strlen($row['ca_id']) >= 4) {
|
||||
$caid2 = substr($row['ca_id'],0,4);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '$caid2' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
@ -96,13 +96,13 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
if(!$opt_count) {
|
||||
$it_name = $row['it_name'];
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
$it_price = $row['it_price'];
|
||||
@ -148,7 +148,7 @@ HEREDOC;
|
||||
$it_name .= $sep.$subj[$j].':'.$opt[$j];
|
||||
$sep = ' ';
|
||||
}
|
||||
$buy_url = G4_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&opt='.$row2['io_id'];
|
||||
$it_price = $row['it_price'] + $row2['io_price'];
|
||||
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
|
||||
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
|
||||
|
||||
@ -21,14 +21,14 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
|
||||
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
|
||||
@ -19,13 +19,13 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g5['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 상품별옵션
|
||||
$sql = " select * from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$sql = " select * from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc ";
|
||||
$result2 = sql_query($sql);
|
||||
$opt_count = @mysql_num_rows($result2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user