가격비교 사이트 페이지 경로 수정

This commit is contained in:
chicpro
2013-04-10 11:08:09 +09:00
parent 25d9290ae8
commit e765d714fb
21 changed files with 117 additions and 107 deletions

View File

@ -43,14 +43,14 @@ function paging($write_pages, $cur_page, $total_page, $url )
}
include_once("./_common.php");
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 {$g4['shop_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>
@ -89,7 +89,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 {$g4['shop_item_table']}
where it_use = '1'
and ca_id LIKE '$caid%'
order by ca_id
@ -99,7 +99,7 @@ $result = sql_query($sql);
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 = "재고있음";
@ -108,14 +108,14 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$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_amount])."</td>
<td align='center'>$stock</td>
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 align="center">'.$stock.'</td>
</tr>
";
';
}
?>