경로 수정 작업
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
<?
|
||||
$g4_path = "../.."; // 루트디렉토리로 부터의 상대경로
|
||||
include_once("$g4_path/common.php");
|
||||
include_once("../../common.php");
|
||||
?>
|
||||
|
||||
@ -7,20 +7,20 @@ $lt = "";
|
||||
$gt = "<!>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$delivery = 0;
|
||||
else
|
||||
{
|
||||
// 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하
|
||||
$tmp = explode(';', $default[de_send_cost_limit]);
|
||||
$tmp = explode(';', $default['de_send_cost_limit']);
|
||||
$delivery_limit = (int)$tmp[0];
|
||||
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$tmp = explode(';', $default[de_send_cost_list]);
|
||||
$tmp = explode(';', $default['de_send_cost_list']);
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from $g4[yc4_item_table] where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -34,36 +34,36 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name3 = "";
|
||||
$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' ");
|
||||
$ca_name1 = $row2[ca_name];
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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' ");
|
||||
$ca_name2 = $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' ");
|
||||
$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' ");
|
||||
$ca_name3 = $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' ");
|
||||
$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' ");
|
||||
$ca_name4 = $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' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
$PRDATE = substr($row[it_time], 0, 10);
|
||||
$PRDATE = substr($row['it_time'], 0, 10);
|
||||
|
||||
echo "{$lt}$row[it_id]{$gt}"; // 쇼핑몰 상품ID
|
||||
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_amount]{$gt}"; // 판매가격
|
||||
echo "{$lt}$g4[shop_url]/item.php?it_id=$row[it_id]{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}$g4[url]/data/item/{$row[it_id]}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_amount']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G4_DATA_URL."/item/{$row['it_id']}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
echo "{$lt}$ca_id3{$gt}"; // 소분류 카테고리 코드
|
||||
@ -74,14 +74,14 @@ echo "{$lt}$ca_name3{$gt}"; // 소 카테고리명
|
||||
echo "{$lt}$ca_name4{$gt}"; // 세 카테고리명
|
||||
echo "{$lt}{$gt}"; // 모델명
|
||||
echo "{$lt}{$gt}"; // 브랜드
|
||||
echo "{$lt}$row[it_maker]{$gt}"; // 메이커
|
||||
echo "{$lt}$row[it_origin]{$gt}"; // 원산지
|
||||
echo "{$lt}{$row['it_maker']}{$gt}"; // 메이커
|
||||
echo "{$lt}{$row['it_origin']}{$gt}"; // 원산지
|
||||
echo "{$lt}$PRDATE{$gt}"; // 상품등록일자
|
||||
echo "{$lt}$delivery{$gt}"; // 배송비
|
||||
echo "{$lt}{$gt}"; // 이벤트
|
||||
echo "{$lt}{$gt}"; // 쿠폰금액
|
||||
echo "{$lt}{$gt}"; // 무이자
|
||||
echo "{$lt}$row[it_point]{$gt}"; // 적립금
|
||||
echo "{$lt}{$row['it_point']}{$gt}"; // 적립금
|
||||
echo "{$lt}Y{$gt}"; // 이미지변경여부
|
||||
echo "{$lt}{$gt}"; // 물품특성정보
|
||||
echo "{$lt}{$gt}"; // 상점내 매출비율
|
||||
@ -93,9 +93,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -7,21 +7,21 @@ $lt = "";
|
||||
$gt = "<!>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$delivery = 0;
|
||||
else
|
||||
{
|
||||
// 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하
|
||||
$tmp = explode(';', $default[de_send_cost_limit]);
|
||||
$tmp = explode(';', $default['de_send_cost_limit']);
|
||||
$delivery_limit = (int)$tmp[0];
|
||||
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$tmp = explode(';', $default[de_send_cost_list]);
|
||||
$tmp = explode(';', $default['de_send_cost_list']);
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$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";
|
||||
$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";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -35,36 +35,36 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$ca_name3 = "";
|
||||
$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' ");
|
||||
$ca_name1 = $row2[ca_name];
|
||||
$ca_id1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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' ");
|
||||
$ca_name2 = $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' ");
|
||||
$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' ");
|
||||
$ca_name3 = $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' ");
|
||||
$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' ");
|
||||
$ca_name4 = $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' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
$PRDATE = substr($row[it_time], 0, 10);
|
||||
$PRDATE = substr($row['it_time'], 0, 10);
|
||||
|
||||
echo "{$lt}$row[it_id]{$gt}"; // 쇼핑몰 상품ID
|
||||
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_amount]{$gt}"; // 판매가격
|
||||
echo "{$lt}$g4[shop_url]/item.php?it_id=$row[it_id]{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}$g4[url]/data/item/{$row[it_id]}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_amount']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G4_DATA_URL."/item/{$row['it_id']}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드
|
||||
echo "{$lt}$ca_id3{$gt}"; // 소분류 카테고리 코드
|
||||
@ -75,14 +75,14 @@ echo "{$lt}$ca_name3{$gt}"; // 소 카테고리명
|
||||
echo "{$lt}$ca_name4{$gt}"; // 세 카테고리명
|
||||
echo "{$lt}{$gt}"; // 모델명
|
||||
echo "{$lt}{$gt}"; // 브랜드
|
||||
echo "{$lt}$row[it_maker]{$gt}"; // 메이커
|
||||
echo "{$lt}$row[it_origin]{$gt}"; // 원산지
|
||||
echo "{$lt}{$row['it_maker']}{$gt}"; // 메이커
|
||||
echo "{$lt}{$row['it_origin']}{$gt}"; // 원산지
|
||||
echo "{$lt}$PRDATE{$gt}"; // 상품등록일자
|
||||
echo "{$lt}$delivery{$gt}"; // 배송비
|
||||
echo "{$lt}{$gt}"; // 이벤트
|
||||
echo "{$lt}{$gt}"; // 쿠폰금액
|
||||
echo "{$lt}{$gt}"; // 무이자
|
||||
echo "{$lt}$row[it_point]{$gt}"; // 적립금
|
||||
echo "{$lt}{$row['it_point']}{$gt}"; // 적립금
|
||||
echo "{$lt}Y{$gt}"; // 이미지변경여부
|
||||
echo "{$lt}{$gt}"; // 물품특성정보
|
||||
echo "{$lt}{$gt}"; // 상점내 매출비율
|
||||
@ -94,9 +94,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -47,43 +47,43 @@ $lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$delivery = 0;
|
||||
else
|
||||
{
|
||||
// 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하
|
||||
$tmp = explode(';', $default[de_send_cost_limit]);
|
||||
$tmp = explode(';', $default['de_send_cost_limit']);
|
||||
$delivery_limit = (int)$tmp[0];
|
||||
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$tmp = explode(';', $default[de_send_cost_list]);
|
||||
$tmp = explode(';', $default['de_send_cost_list']);
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$sql =" select * from $g4[yc4_item_table] where it_use = '1' order by ca_id";
|
||||
$sql =" select * from {$g4['yc4_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)."' ");
|
||||
$ca_name1 = $row2[ca_name];
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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)."' ");
|
||||
$ca_name2 = $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)."' ");
|
||||
$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)."' ");
|
||||
$ca_name3 = $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)."' ");
|
||||
$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)."' ");
|
||||
$ca_name4 = $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)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
$PRDATE = substr($row[it_time], 0, 10);
|
||||
$PRDATE = substr($row['it_time'], 0, 10);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}_BEGIN{$gt}
|
||||
@ -117,9 +117,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -49,44 +49,44 @@ $lt = "[[";
|
||||
$gt = "]]";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$delivery = 0;
|
||||
else
|
||||
{
|
||||
// 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하
|
||||
$tmp = explode(';', $default[de_send_cost_limit]);
|
||||
$tmp = explode(';', $default['de_send_cost_limit']);
|
||||
$delivery_limit = (int)$tmp[0];
|
||||
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$tmp = explode(';', $default[de_send_cost_list]);
|
||||
$tmp = explode(';', $default['de_send_cost_list']);
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
|
||||
$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";
|
||||
$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";
|
||||
$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)."' ");
|
||||
$ca_name1 = $row2[ca_name];
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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)."' ");
|
||||
$ca_name2 = $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)."' ");
|
||||
$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)."' ");
|
||||
$ca_name3 = $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)."' ");
|
||||
$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)."' ");
|
||||
$ca_name4 = $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)."' ");
|
||||
$ca_name4 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
$PRDATE = substr($row[it_time], 0, 10);
|
||||
$PRDATE = substr($row['it_time'], 0, 10);
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}_BEGIN{$gt}
|
||||
@ -113,9 +113,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -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['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -40,9 +40,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -6,11 +6,11 @@ function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$tmp = "$g4[path]/data/item/$img";
|
||||
$tmp = G4_DATA_PATH."/item/$img";
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = "$g4[url]/data/item/$img";
|
||||
$str = G4_DATA_URL."/item/$img";
|
||||
} else {
|
||||
$str = "$g4[shop_url]/img/no_image.gif";
|
||||
$str = G4_SHOP_URL."/img/no_image.gif";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -20,40 +20,40 @@ include_once("./_common.php");
|
||||
<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"/>
|
||||
</head>
|
||||
<body>
|
||||
<?
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from {$g4['yc4_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++)
|
||||
{
|
||||
$image = it_image("$row[it_id]_m");
|
||||
$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['yc4_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['yc4_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)."' ");
|
||||
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)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row[it_id]);
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row[it_amount] = 0;
|
||||
$row['it_amount'] = 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_amount]";
|
||||
$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_amount']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
echo "<p>" . $config[cf_title] . " 입니다. 총 (".$i.") 건 입니다.\n";
|
||||
echo "<p>" . $config['cf_title'] . " 입니다. 총 (".$i.") 건 입니다.\n";
|
||||
echo $str;
|
||||
?>
|
||||
</body>
|
||||
|
||||
@ -7,44 +7,44 @@ include_once("./_common.php");
|
||||
$nl = ""; // new line \n
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$delivery = 0;
|
||||
else
|
||||
{
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$tmp = explode(';', $default[de_send_cost_list]);
|
||||
$tmp = explode(';', $default['de_send_cost_list']);
|
||||
$delivery = (int)$tmp[0];
|
||||
}
|
||||
?>
|
||||
<?
|
||||
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
|
||||
$str = "";
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from {$g4['yc4_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)."' ");
|
||||
$ca_name = $row2[ca_name];
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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)."' ");
|
||||
$ca_name .= "|" . $row3[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)."' ");
|
||||
$ca_name .= "|" . $row3['ca_name'];
|
||||
}
|
||||
|
||||
$str .= $nl;
|
||||
$str .= "$row[it_id]"; // 상품ID
|
||||
$str .= $row['it_id']; // 상품ID
|
||||
$str .= "^$ca_name"; // 카테고리
|
||||
$str .= "^$row[it_name]"; // 상품명
|
||||
$str .= "^$row[it_maker]"; // 제조사
|
||||
$str .= "^$g4[url]/data/item/{$row[it_id]}_m"; // 이미지URL
|
||||
$str .= "^$g4[shop_url]/item.php?it_id=$row[it_id]"; // 상품URL
|
||||
$str .= "^$row[it_amount]"; // 가격
|
||||
$str .= "^$row[it_point]"; // 적립금
|
||||
$str .= "^{$row['it_name']}"; // 상품명
|
||||
$str .= "^{$row['it_maker']}"; // 제조사
|
||||
$str .= "^".G4_DATA_URL."/item/{$row['it_id']}_m"; // 이미지URL
|
||||
$str .= "^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^{$row['it_amount']}"; // 가격
|
||||
$str .= "^{$row['it_point']}"; // 적립금
|
||||
$str .= "^"; // 할인쿠폰
|
||||
$str .= "^"; // 무이자할부
|
||||
$str .= "^"; // 사은품
|
||||
$str .= "^$row[it_model]"; // 모델명
|
||||
$str .= "^{$row['it_model']}"; // 모델명
|
||||
$str .= "^"; // 추가정보
|
||||
$str .= "^"; // 출시일
|
||||
$str .= "^$delivery"; // 배송료
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
|
||||
header("Content-Type: text/html; charset=$g4[charset]");
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
|
||||
/*
|
||||
구분 태그명 내용 설명 크기
|
||||
@ -10,7 +10,7 @@ header("Content-Type: text/html; charset=$g4[charset]");
|
||||
3 <<<price>>> 가격 상품 가격 필수,number
|
||||
4 <<<pname>>> 상품명 상품명 필수,varchar(500)
|
||||
5 <<<pgurl>>> 상품링크 해당 상품으로 갈 상품URL 필수,varchar(255)
|
||||
6 <<<igurl>>> 이미지링크 상품이미지 링크
|
||||
6 <<<igurl>>> 이미지링크 상품이미지 링크
|
||||
(상품이미지 중 제일 큰이미지링크) 필수,varchar(255)
|
||||
7 <<<cate1>>> 대분류ID 대분류 코드 필수,varchar(20)
|
||||
8 <<<cate2>>> 중분류ID 중분류 코드 varchar(20)
|
||||
@ -41,11 +41,11 @@ header("Content-Type: text/html; charset=$g4[charset]");
|
||||
0개월 일 때에는 값을 제거 varchar(255)
|
||||
23 <<<point>>> 적립금/포인트 텍스트정보
|
||||
0일 때에는 값을 제거 varchar(255)
|
||||
24 <<<deliv>>> 배송비 무료일 때는 0
|
||||
24 <<<deliv>>> 배송비 무료일 때는 0
|
||||
유료일 때는 1
|
||||
조건부무료일 때는 2 로 표기 number
|
||||
25 <<<deliv2>>> 배송비 조건 유료(deliv필드 코드1번) or
|
||||
조건부무료(deliv필드 코드2번)
|
||||
조건부무료(deliv필드 코드2번)
|
||||
인 경우에 상세 조건 표기
|
||||
ex)3만원미만무료 or 2500원 varchar(20)
|
||||
26 <<<review>>> 상품평수 상품의 상품평개수가 몇 개인지 숫자만 표기 number
|
||||
@ -66,59 +66,59 @@ $lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음') {
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
$deliv = 0;
|
||||
$deliv2 = "";
|
||||
}
|
||||
else {
|
||||
$deliv = 1;
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$send_cost_limit = explode(";", $default[de_send_cost_limit]);
|
||||
$send_cost_list = explode(";", $default[de_send_cost_list]);
|
||||
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
||||
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
||||
$cost_limit = (int)$send_cost_limit[0];
|
||||
$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['yc4_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)."' ");
|
||||
$cate1 = $row2[ca_id];
|
||||
$catename1 = $row2[ca_name];
|
||||
$row2 = sql_fetch(" select ca_id, ca_name from {$g4['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
|
||||
$cate1 = $row2['ca_id'];
|
||||
$catename1 = $row2['ca_name'];
|
||||
|
||||
$cate2 = $cate3 = $cate4 = "";
|
||||
$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)."' ");
|
||||
$cate4 = $row2[ca_id];
|
||||
$catename4 = $row2[ca_name];
|
||||
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)."' ");
|
||||
$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)."' ");
|
||||
$cate3 = $row2[ca_id];
|
||||
$catename3 = $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)."' ");
|
||||
$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)."' ");
|
||||
$cate2 = $row2[ca_id];
|
||||
$catename2 = $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)."' ");
|
||||
$cate2 = $row2['ca_id'];
|
||||
$catename2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row[it_amount] < $cost_limit) {
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
$pdate = date("Ymd", strtotime($row[it_time]));
|
||||
$point = ($row[it_point] <= 0) ? "" : (int)$row[it_point];
|
||||
$pdate = date("Ymd", strtotime($row['it_time']));
|
||||
$point = ($row['it_point'] <= 0) ? "" : (int)$row['it_point'];
|
||||
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
|
||||
@ -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['yc4_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$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}
|
||||
|
||||
@ -95,17 +95,17 @@ 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['yc4_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]);
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
|
||||
if ($stock)
|
||||
$stock = "재고있음";
|
||||
@ -114,7 +114,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
|
||||
$num = (($page - 1) * $page_rows) + $i + 1;
|
||||
|
||||
if ($default[de_send_cost_case] == '없음')
|
||||
if ($default['de_send_cost_case'] == '없음')
|
||||
$send_cost = '무료';
|
||||
else
|
||||
$send_cost = '유료';
|
||||
@ -122,15 +122,15 @@ 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 align='center'>".number_format($row[it_amount])."</td>
|
||||
<td><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td align='center'>".number_format($row['it_amount'])."</td>
|
||||
<td align='center'>$stock</td>
|
||||
<td align='center'>$send_cost</td>
|
||||
<td align='center'>$g4[url]/data/item/{$row[it_id]}_m</td>
|
||||
<td align='center'>".G4_DATA_URL."/item/{$row['it_id']}_m</td>
|
||||
<td align='center'>1</td>
|
||||
<td align='center'>N</td>
|
||||
<td align='center'>".get_text($row[it_maker])."</td>
|
||||
<td align='center'>$row[it_id]</td>
|
||||
<td align='center'>".get_text($row['it_maker'])."</td>
|
||||
<td align='center'>{$row['it_id']}</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
||||
@ -7,14 +7,14 @@ include_once("./_common.php");
|
||||
<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}
|
||||
|
||||
@ -34,38 +34,38 @@ 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['yc4_category_table']}
|
||||
HAVING cnt";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
$tr = "";
|
||||
|
||||
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 = '".$row[ca_id]."'");
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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";
|
||||
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";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$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";
|
||||
$result3 = @mysql_query($sql3);
|
||||
|
||||
$bar = "";
|
||||
|
||||
for ($j=0;$row3=mysql_fetch_array($result3);$j++)
|
||||
{
|
||||
for ($j=0;$row3=mysql_fetch_array($result3);$j++)
|
||||
{
|
||||
$str .= $bar;
|
||||
$str .= "<a href='./enuri.php?ca_id=$row3[ca_id]'>$row3[ca_name]</a>";
|
||||
$str .= "<a href='./enuri.php?ca_id={$row3['ca_id']}'>{$row3['ca_name']}</a>";
|
||||
$bar = " | \n";
|
||||
}
|
||||
|
||||
$str .= " </td>\n";
|
||||
|
||||
echo $str;
|
||||
|
||||
|
||||
$tr = " </tr>\n <tr bgcolor='white'>\n";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
@ -35,11 +35,11 @@ function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$tmp = "$g4[path]/data/item/$img";
|
||||
$tmp = G4_DATA_PATH."/item/$img";
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = "$g4[url]/data/item/$img";
|
||||
$str = G4_DATA_URL."/item/$img";
|
||||
} else {
|
||||
$str = "$g4[shop_url]/img/no_image.gif";
|
||||
$str = G4_SHOP_URL."/img/no_image.gif";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,16 +49,16 @@ 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['yc4_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$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">
|
||||
<!--
|
||||
body, td {font-family:굴림; font-size:10pt;}
|
||||
@ -86,38 +86,38 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
where it_use = '1'
|
||||
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++)
|
||||
{
|
||||
$image = it_image("$row[it_id]_m");
|
||||
$image = it_image($row['it_id'].'_m');
|
||||
|
||||
$num = (($page - 1) * $page_rows) + $i;
|
||||
|
||||
$category = $bar = "";
|
||||
$len = strlen($row[ca_id]) / 2;
|
||||
for ($k=1; $k<=$len; $k++)
|
||||
$len = strlen($row['ca_id']) / 2;
|
||||
for ($k=1; $k<=$len; $k++)
|
||||
{
|
||||
$code = substr($row[ca_id],0,$k*2);
|
||||
$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['yc4_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3[ca_name];
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
$bar = "/";
|
||||
}
|
||||
|
||||
echo "
|
||||
<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>$row[it_amount]</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>{$row['it_amount']}</td>
|
||||
<td>$category</td>
|
||||
<td>$row[it_maker]</td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
<td>$image</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
@ -41,18 +41,18 @@ $lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음') {
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
$send_cost = 0;
|
||||
}
|
||||
else {
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$send_cost_limit = explode(";", $default[de_send_cost_limit]);
|
||||
$send_cost_list = explode(";", $default[de_send_cost_list]);
|
||||
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
||||
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
||||
$cost_limit = (int)$send_cost_limit[0];
|
||||
$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['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -60,34 +60,34 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
$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' ");
|
||||
$cate1 = $row2[ca_name];
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_category_table']} where ca_id = '$caid1' ");
|
||||
$cate1 = $row2['ca_name'];
|
||||
|
||||
$caid2 = $caid3 = $caid4 = "";
|
||||
$cate2 = $cate3 = $cate4 = "";
|
||||
|
||||
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' ");
|
||||
$cate4 = $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' ");
|
||||
$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' ");
|
||||
$cate3 = $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' ");
|
||||
$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' ");
|
||||
$cate2 = $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' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row[it_amount] < $cost_limit) {
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -127,9 +127,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 091223 : 네이버에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -43,20 +43,20 @@ $lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
// 배송비
|
||||
if ($default[de_send_cost_case] == '없음') {
|
||||
if ($default['de_send_cost_case'] == '없음') {
|
||||
$send_cost = 0;
|
||||
}
|
||||
else {
|
||||
// 배송비 상한일 경우 제일 앞에 배송비
|
||||
$send_cost_limit = explode(";", $default[de_send_cost_limit]);
|
||||
$send_cost_list = explode(";", $default[de_send_cost_list]);
|
||||
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
||||
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
||||
$cost_limit = (int)$send_cost_limit[0];
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
// 하루전의 상품
|
||||
$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";
|
||||
$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";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -64,31 +64,31 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$cate1 = $cate2 = $cate3 = $cate4 = "";
|
||||
$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' ");
|
||||
$cate1 = $row2[ca_name];
|
||||
$caid1 = substr($row['ca_id'],0,2);
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['yc4_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' ");
|
||||
$cate4 = $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' ");
|
||||
$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' ");
|
||||
$cate3 = $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' ");
|
||||
$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' ");
|
||||
$cate2 = $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' ");
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row[it_amount] < $cost_limit) {
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -128,9 +128,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 091223 : 네이버에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -21,16 +21,16 @@ Field Status Notes
|
||||
$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";
|
||||
$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";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$stock_qty = get_it_stock_qty($row[it_id]);
|
||||
$stock_qty = get_it_stock_qty($row['it_id']);
|
||||
|
||||
echo "{$lt}begin{$gt}\n";
|
||||
echo "{$lt}mapid{$gt}$row[it_id]\n";
|
||||
echo "{$lt}mapid{$gt}{$row['it_id']}\n";
|
||||
if ($stock_qty <= 0)
|
||||
{
|
||||
// 품절 상품 양식
|
||||
@ -39,11 +39,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
else
|
||||
{
|
||||
// 업데이트 상품 양식 & 품절 복구 상품 양식
|
||||
echo "{$lt}pname{$gt}$row[it_name]\n";
|
||||
echo "{$lt}price{$gt}$row[it_amount]\n";
|
||||
echo "{$lt}pname{$gt}{$row['it_name']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_amount']}\n";
|
||||
echo "{$lt}class{$gt}U\n";
|
||||
}
|
||||
echo "{$lt}utime{$gt}$row[it_time]\n";
|
||||
echo "{$lt}utime{$gt}{$row['it_time']}\n";
|
||||
echo "{$lt}ftend{$gt}\n";
|
||||
}
|
||||
|
||||
@ -51,9 +51,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 091223 : 네이버에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -19,15 +19,15 @@ 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['yc4_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$stock_qty = get_it_stock_qty($row[it_id]);
|
||||
$stock_qty = get_it_stock_qty($row['it_id']);
|
||||
|
||||
echo "{$lt}begin{$gt}\n";
|
||||
echo "{$lt}mapid{$gt}$row[it_id]\n";
|
||||
echo "{$lt}mapid{$gt}{$row['it_id']}\n";
|
||||
if ($stock_qty <= 0)
|
||||
{
|
||||
// 품절 상품 양식
|
||||
@ -36,11 +36,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
else
|
||||
{
|
||||
// 업데이트 상품 양식 & 품절 복구 상품 양식
|
||||
echo "{$lt}pname{$gt}$row[it_name]\n";
|
||||
echo "{$lt}price{$gt}$row[it_amount]\n";
|
||||
echo "{$lt}pname{$gt}{$row['it_name']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_amount']}\n";
|
||||
echo "{$lt}class{$gt}U\n";
|
||||
}
|
||||
echo "{$lt}utime{$gt}$row[it_time]\n";
|
||||
echo "{$lt}utime{$gt}{$row['it_time']}\n";
|
||||
echo "{$lt}ftend{$gt}\n";
|
||||
}
|
||||
|
||||
@ -48,9 +48,7 @@ $content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// 091223 : 네이버에서는 아직 utf-8 을 지원하지 않고 있음
|
||||
if (strtolower($g4[charset]) == 'utf-8') {
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
}
|
||||
$content = iconv('utf-8', 'euc-kr', $content);
|
||||
|
||||
echo $content;
|
||||
?>
|
||||
@ -7,38 +7,38 @@ include_once("./_common.php");
|
||||
<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"/>
|
||||
</head>
|
||||
<body>
|
||||
<?
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from {$g4['yc4_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['yc4_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['yc4_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)."' ");
|
||||
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)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row[it_id]);
|
||||
if ($stock <= 0)
|
||||
$row[it_amount] = 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]^$row[it_amount]";
|
||||
$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']}^{$row['it_amount']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
echo "<p>" . $config[cf_title] . " 입니다. 총 (".$i.") 건 입니다.\n";
|
||||
echo "<p>" . $config['cf_title'] . " 입니다. 총 (".$i.") 건 입니다.\n";
|
||||
echo $str;
|
||||
?>
|
||||
</body>
|
||||
|
||||
@ -33,16 +33,16 @@ 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['yc4_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$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">
|
||||
<!--
|
||||
body, td {font-family:굴림; font-size:9pt;}
|
||||
@ -52,7 +52,7 @@ body, td {font-family:굴림; font-size:9pt;}
|
||||
</head>
|
||||
<body>
|
||||
<table border="1" width="90%" align="center" cellspacing="2" cellpadding="3">
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="30">번호</td>
|
||||
<td width="65">분류1</td>
|
||||
<td width="65">분류2</td>
|
||||
@ -76,45 +76,45 @@ 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['yc4_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++)
|
||||
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['yc4_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['yc4_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
else
|
||||
$row3[ca_name] = " ";
|
||||
$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)."' ");
|
||||
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)."' ");
|
||||
else
|
||||
$row4[ca_name] = " ";
|
||||
$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)."' ");
|
||||
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)."' ");
|
||||
else
|
||||
$row5[ca_name] = " ";
|
||||
$row5['ca_name'] = " ";
|
||||
|
||||
$num = (($page - 1) * $page_rows) + $i + 1;
|
||||
$delivery = 0; // 배송료
|
||||
|
||||
$qty = (int)get_it_stock_qty($row[it_id]);
|
||||
if ($qty <= 0) $row[it_amount] = 0;
|
||||
$qty = (int)get_it_stock_qty($row['it_id']);
|
||||
if ($qty <= 0) $row['it_amount'] = 0;
|
||||
|
||||
echo "<tr>
|
||||
<td width=\"30\">$num </td>
|
||||
<td width=\"65\">$row2[ca_name]</td>
|
||||
<td width=\"65\">$row3[ca_name]</td>
|
||||
<td width=\"45\">$row4[ca_name]</td>
|
||||
<td width=\"70\">$row5[ca_name]</td>
|
||||
<td width=\"70\">$row[it_maker] </td>
|
||||
<td width=\"100\"><a href='{$g4[shop_url]}/item.php?it_id=$row[it_id]'>$row[it_name] </a></td>
|
||||
<td width=\"100\">$row[it_id] </td>
|
||||
<td width=\"80\">".number_format($row[it_amount])." </td>
|
||||
<td width=\"65\">{$row2['ca_name']}</td>
|
||||
<td width=\"65\">{$row3['ca_name']}</td>
|
||||
<td width=\"45\">{$row4['ca_name']}</td>
|
||||
<td width=\"70\">{$row5['ca_name']}</td>
|
||||
<td width=\"70\">{$row['it_maker']} </td>
|
||||
<td width=\"100\"><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']} </a></td>
|
||||
<td width=\"100\">{$row['it_id']} </td>
|
||||
<td width=\"80\">".number_format($row['it_amount'])." </td>
|
||||
<td width=\"80\"> </td>
|
||||
<td width=\"80\">{$g4[url]}/data/item/{$row[it_id]}_l1 </td>
|
||||
<td width=\"80\">".G4_DATA_URL."/item/{$row['it_id']}_l1 </td>
|
||||
<td width=\"80\">$delivery</td>
|
||||
<td width=\"80\"> </td>
|
||||
<td width=\"80\"> </td>
|
||||
|
||||
@ -35,11 +35,11 @@ function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$tmp = "$g4[path]/data/item/$img";
|
||||
$tmp = G4_DATA_PATH."item/$img";
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = "$g4[url]/data/item/$img";
|
||||
$str = G4_DATA_URL."/item/$img";
|
||||
} else {
|
||||
$str = "$g4[shop_url]/img/no_image.gif";
|
||||
$str = G4_SHOP_URL."/img/no_image.gif";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
@ -49,16 +49,16 @@ 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['yc4_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
<html>
|
||||
<title>MYM 야비스 엔진페이지</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">
|
||||
<!--
|
||||
body, td {font-family:굴림; font-size:10pt;}
|
||||
@ -88,39 +88,39 @@ if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from $g4[yc4_item_table]
|
||||
$sql = " select * from {$g4['yc4_item_table']}
|
||||
where it_use = '1'
|
||||
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++)
|
||||
{
|
||||
$image = it_image("$row[it_id]_m");
|
||||
$image = it_image($row['it_id'].'_m');
|
||||
|
||||
$category = $bar = "";
|
||||
$len = strlen($row[ca_id]) / 2;
|
||||
for ($i=1; $i<=$len; $i++)
|
||||
$len = strlen($row['ca_id']) / 2;
|
||||
for ($i=1; $i<=$len; $i++)
|
||||
{
|
||||
$code = substr($row[ca_id],0,$i*2);
|
||||
$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['yc4_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3[ca_name];
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
$bar = " > ";
|
||||
}
|
||||
|
||||
echo "
|
||||
<tr>
|
||||
<td align='center'>$row[it_name]</td>
|
||||
<td>{$g4[shop_url]}/item.php?it_id=$row[it_id]</td>
|
||||
<td align='center'>{$row['it_name']}</td>
|
||||
<td>".G4_SHOP_URL."/item.php?it_id={$row['it_id']}</td>
|
||||
<td>$image</td>
|
||||
<td>$row[it_amount]</td>
|
||||
<td>{$row['it_amount']}</td>
|
||||
<td> </td>
|
||||
<td>$row[it_maker]</td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
<td>$category</td>
|
||||
<td> </td>
|
||||
<td>$row[it_id]</td>
|
||||
<td>{$row['it_id']}</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user