경로 수정 작업
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user