사용하지 않는 가격비교 사이트 페이지 삭제
This commit is contained in:
@ -1,27 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
** 가격비교사이트 다나와 엔진페이지
|
||||
*/
|
||||
include_once('./_common.php');
|
||||
?>
|
||||
<?php
|
||||
echo $_SERVER['HTTP_HOST'];
|
||||
|
||||
// \n상품코드#대분류#소분류#상품명#상품URL#가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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)."' ");
|
||||
|
||||
$str .= "\n";
|
||||
$str .= "{$row['it_id']}#{$row2['ca_name']}#{$row3['ca_name']}#{$row['it_name']}#".G4_SHOP_URL."/item.php?it_id={$row['it_id']}#{$row['it_price']}";
|
||||
}
|
||||
echo $str;
|
||||
?>
|
||||
@ -1,128 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
** 가격비교사이트 에누리 엔진페이지
|
||||
*/
|
||||
@extract($_GET);
|
||||
|
||||
function paging($write_pages, $cur_page, $total_page, $url )
|
||||
{
|
||||
global $cfg;
|
||||
|
||||
$str = "";
|
||||
|
||||
if ($cur_page > 1)
|
||||
{
|
||||
$str .= "<a href='" . $url . ($cur_page-1) . "'>◀</a>";
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1)
|
||||
$str .= "<a href='" . $url . ($start_page-1) . "'>...</a>";
|
||||
|
||||
if ($total_page > 1)
|
||||
for ($k=$start_page;$k<=$end_page;$k++)
|
||||
if ($cur_page != $k)
|
||||
$str .= "[<a href='$url$k'>$k</a>]";
|
||||
else
|
||||
$str .= " <b>$k</b> ";
|
||||
|
||||
if ($total_page > $end_page)
|
||||
$str .= "<a href='" . $url . ($end_page+1) . "'>...</a>";
|
||||
|
||||
if ($cur_page < $total_page)
|
||||
{
|
||||
$str .= "<a href='$url" . ($cur_page+1) . "'>▶</a>";
|
||||
}
|
||||
$str .= "";
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
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%'";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
<html>
|
||||
<title>에누리 엔진페이지</title>
|
||||
<head>
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<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}
|
||||
font {font-family:굴림; font-size:10pt}
|
||||
th,td {font-family:굴림; font-size:10pt ; height:15pt}
|
||||
|
||||
//-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p align=center>상품수 : <?php echo number_format($total_count); ?> 개
|
||||
|
||||
<table border="0" cellspacing="1" cellpadding="5" bgcolor="black" width="90%" align='center'>
|
||||
<tr bgcolor="#ededed">
|
||||
<th width='40'>번호</th>
|
||||
<th>제품명</th>
|
||||
<th>가격</th>
|
||||
<th>재고유무</th>
|
||||
</tr>
|
||||
<?php
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $page_rows);
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$caid = addslashes($ca_id);
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and ca_id LIKE '$caid%'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
|
||||
if ($stock)
|
||||
$stock = "재고있음";
|
||||
else
|
||||
$stock = "재고없음";
|
||||
|
||||
$num = (($page - 1) * $page_rows) + $i + 1;
|
||||
|
||||
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_price']).'</td>
|
||||
<td align="center">'.$stock.'</td>
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
<p align=center>
|
||||
<?php echo paging(1000, $page, $total_page, "./enuri.php?ca_id=$caid&page="); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
** 가격비교사이트 오미 엔진페이지
|
||||
*/
|
||||
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"/>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^가격
|
||||
$str = "";
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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)."' ");
|
||||
|
||||
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)."' ");
|
||||
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row['it_price'] = 0;
|
||||
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^{$row['it_price']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
echo "<p>" . $config['cf_title'] . " 입니다. 총 (".$i.") 건 입니다.\n";
|
||||
echo $str;
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,133 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
** 가격비교사이트 샵바인더 엔진페이지
|
||||
*/
|
||||
@extract($_GET);
|
||||
|
||||
function paging($write_pages, $cur_page, $total_page, $url)
|
||||
{
|
||||
global $cfg;
|
||||
|
||||
$str = "";
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1)
|
||||
$str .= "<a href='" . $url . ($start_page-1) . "'>...</a>";
|
||||
|
||||
if ($total_page > 1)
|
||||
for ($k=$start_page;$k<=$end_page;$k++)
|
||||
$str .= "<a href='$url$k'>$k</a>";
|
||||
|
||||
if ($total_page > $end_page)
|
||||
$str .= "<a href='" . $url . ($end_page+1) . "'>...</a>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
include_once('./_common.php');
|
||||
|
||||
// 페이지당 행수
|
||||
$page_rows = 500;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
?>
|
||||
<html>
|
||||
<title>샵바인더 엔진페이지</title>
|
||||
<head>
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body, td {font-family:굴림; font-size:9pt;}
|
||||
|
||||
//-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table border="1" width="90%" align="center" cellspacing="2" cellpadding="3">
|
||||
<tr>
|
||||
<td width="30">번호</td>
|
||||
<td width="65">분류1</td>
|
||||
<td width="65">분류2</td>
|
||||
<td width="45">분류3</td>
|
||||
<td width="70">분류4</td>
|
||||
<td width="70">제조회사</td>
|
||||
<td width="100">상품명</td>
|
||||
<td width="100">상품코드</td>
|
||||
<td width="80">가격</td>
|
||||
<td width="80">이벤트</td>
|
||||
<td width="80">이미지URL</td>
|
||||
<td width="80">배송료</td>
|
||||
<td width="80">할인쿠폰</td>
|
||||
<td width="80">제조년월</td>
|
||||
</tr>
|
||||
<?php
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $page_rows);
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_use = '1' order by ca_id limit $from_record, $page_rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$row2 = sql_fetch(" select ca_name from {$g4['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)."' ");
|
||||
else
|
||||
$row3['ca_name'] = " ";
|
||||
|
||||
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)."' ");
|
||||
else
|
||||
$row4['ca_name'] = " ";
|
||||
|
||||
if (strlen($row['ca_id']) >= 8)
|
||||
$row5 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
|
||||
else
|
||||
$row5['ca_name'] = " ";
|
||||
|
||||
$num = (($page - 1) * $page_rows) + $i + 1;
|
||||
$delivery = 0; // 배송료
|
||||
|
||||
$qty = (int)get_it_stock_qty($row['it_id']);
|
||||
if ($qty <= 0) $row['it_price'] = 0;
|
||||
|
||||
// 상품이미지
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
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_price'])." </td>
|
||||
<td width=\"80\"> </td>
|
||||
<td width=\"80\">".$img_url." </td>
|
||||
<td width=\"80\">$delivery</td>
|
||||
<td width=\"80\"> </td>
|
||||
<td width=\"80\"> </td>
|
||||
</tr>\n";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<DIV>
|
||||
<p align=center>
|
||||
<?php echo paging($page_rows, $page, $total_page, "./shopbinder.php?page="); ?>
|
||||
</DIV>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,134 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
** 가격비교사이트 마이엠 야비스 엔진페이지
|
||||
*/
|
||||
@extract($_GET);
|
||||
|
||||
function paging($write_pages, $cur_page, $total_page, $url)
|
||||
{
|
||||
global $cfg;
|
||||
|
||||
$str = "";
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1)
|
||||
$str .= "<a href='" . $url . ($start_page-1) . "'>...</a>";
|
||||
|
||||
if ($total_page > 1)
|
||||
for ($k=$start_page;$k<=$end_page;$k++)
|
||||
if ($cur_page != $k)
|
||||
$str .= "[<a href='$url$k'>$k</a>]";
|
||||
else
|
||||
$str .= " <b>$k</b> ";
|
||||
|
||||
if ($total_page > $end_page)
|
||||
$str .= "<a href='" . $url . ($end_page+1) . "'>...</a>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function it_image($img)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$tmp = G4_DATA_PATH.'/item/'.$img;
|
||||
if (file_exists($tmp) && $img) {
|
||||
$str = G4_DATA_URL.'/item/'.$img;
|
||||
} else {
|
||||
$str = G4_SHOP_URL.'/img/no_image.gif';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
include_once('./_common.php');
|
||||
|
||||
// 페이지당 행수
|
||||
$page_rows = 100;
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$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"/>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body, td {font-family:굴림; font-size:10pt;}
|
||||
|
||||
//-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td>상품명</td>
|
||||
<td>상품URL</td>
|
||||
<td>상품이미지URL</td>
|
||||
<td>가격</td>
|
||||
<td>분류</td>
|
||||
<td>제조사</td>
|
||||
<td>브랜드</td>
|
||||
<td>모델명</td>
|
||||
<td>상품코드</td>
|
||||
</tr>
|
||||
<?php
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $page_rows);
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $page_rows;
|
||||
|
||||
$sql = " select * from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
order by ca_id
|
||||
limit $from_record, $page_rows ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$category = $bar = "";
|
||||
$len = strlen($row['ca_id']) / 2;
|
||||
for ($i=1; $i<=$len; $i++)
|
||||
{
|
||||
$code = substr($row['ca_id'],0,$i*2);
|
||||
|
||||
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
|
||||
$row3 = sql_fetch($sql3);
|
||||
|
||||
$category .= $bar . $row3['ca_name'];
|
||||
$bar = " > ";
|
||||
}
|
||||
|
||||
// 상품이미지
|
||||
$image = get_it_imageurl($row['it_id']);
|
||||
|
||||
echo "
|
||||
<tr>
|
||||
<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_price']}</td>
|
||||
<td> </td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
<td>$category</td>
|
||||
<td> </td>
|
||||
<td>{$row['it_id']}</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<p>총 <?php echo $total_count; ?>개 <?php echo paging(1000, $page, $total_page, "./yavis.php?page="); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user