경로 수정 작업 중

This commit is contained in:
chicpro
2013-03-14 17:56:20 +09:00
parent 8ba59fe9b0
commit 1a60978568
1212 changed files with 39023 additions and 33180 deletions

View File

@ -16,30 +16,30 @@ if (!$exists) {
$len4 = $tmp_ca_id_len + 4;
// 차차기 분류의 건수를 얻음
$sql = " select count(*) as cnt from $g4[yc4_category_table]
$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len4 ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>";
if (!$cnt)
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td><td>";
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len2 order by ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$style = "";
if ($ca_id == $row[ca_id])
if ($ca_id == $row['ca_id'])
$style = " class='accent' ";
if ($cnt) {
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td width=120><b>· <a href='./list.php?ca_id=$row[ca_id]'><span $style>$row[ca_name]</span></a></b></td>";
$sql2 = " select ca_id, ca_name from $g4[yc4_category_table]
where ca_id like '$row[ca_id]%'
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td width=120><b>· <a href='./list.php?ca_id={$row['ca_id']}'><span $style>$row[ca_name]</span></a></b></td>";
$sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '{$row['ca_id']}%'
and ca_use = '1'
and length(ca_id) = $len4 order by ca_id ";
$result2 = sql_query($sql2);
@ -47,19 +47,19 @@ if (!$exists) {
while ($row2=sql_fetch_array($result2)) {
if (!$k)
$str .= "<td width=20 align=center>|</td><td class=lh>";
$str .= "<a href='./list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row2['ca_id']}'>{$row2['ca_name']}</a> &nbsp; ";
$k++;
}
//if (!$k) $str .= "<td></td><td>";
$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
$str .= "</td></tr></table></td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td>";
} else {
$str .= "<a href='./list.php?ca_id=$row[ca_id]'><span $style>$row[ca_name]</span></a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row['ca_id']}'><span $style>{$row['ca_name']}</span></a> &nbsp; ";
}
$exists = true;
}
if (!$cnt)
$str .= "</td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td></tr>";
if (!$cnt)
$str .= "</td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td></tr>";
}
@ -71,15 +71,15 @@ if ($exists) {
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box01.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg01.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box03.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box04.gif'></td>
</tr>
</table><br>";
}