diff --git a/css/default_shop.css b/css/default_shop.css
index 3026e5335..50b84510f 100644
--- a/css/default_shop.css
+++ b/css/default_shop.css
@@ -104,7 +104,7 @@ a:active {color:#000;text-decoration:underline}
.stv_item {display:none;text-align:center}
.stv_item img {margin:5px 0}
-#stv_nb {border-top:1px solid #e9e9e9;background:#f9faf5}
+#stv_nb {border-top:1px solid #e9e9e9;background:#f7f7f7}
#stv_nb h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#stv_nb ul {margin:0;padding:0;list-style:none}
#stv_nb li {text-align:center}
@@ -316,6 +316,19 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_here {font-weight:bold}
.sct_bg {padding-right:15px !important;background:url('../img/shop/sct_bg_toright.gif') right 11px no-repeat}
+/* 상품 목록 카테고리 목록 */
+.sct_ct {}
+.sct_ct ul {margin:0 0 10px;padding:10px;border-bottom:1px solid #e9e9e9;list-style:none;zoom:1}
+.sct_ct ul:after {display:block;visibility:hidden;clear:both;content:''}
+.sct_ct a {text-decoration:none}
+.sct_ct_parent {font-weight:bold}
+.sct_ct_here {color:#ff3600 !important}
+
+#sct_ct_1 li {float:left;margin:0 10px 10px 0;width:120px}
+#sct_ct_2 li {margin:0 0 10px}
+#sct_ct_2 a {display:inline-block;width:120px}
+#sct_ct_3 li {float:left;margin:0 10px 10px 0;width:120px}
+
/* 상품 정렬 */
#sct_sort {margin:0 0 10px;zoom:1}
#sct_sort:after {display:block;visibility:hidden;clear:both;content:''}
diff --git a/shop/list.php b/shop/list.php
index 6fa411667..da3573f97 100644
--- a/shop/list.php
+++ b/shop/list.php
@@ -38,7 +38,7 @@ if ($is_admin)
// 상단 HTML
echo '
'.stripslashes($ca['ca_head_html']).'
';
- include G4_SHOP_PATH.'/listcategory.inc.php';
+ include G4_SHOP_PATH.'/listcategory3.inc.php';
// 상품 출력순서가 있다면
if ($sort != "") {
diff --git a/shop/listcategory.inc.php b/shop/listcategory.inc.php
index cff8a4ea7..62f2c5583 100644
--- a/shop/listcategory.inc.php
+++ b/shop/listcategory.inc.php
@@ -1,57 +1,33 @@
| ";
-
$sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '$ca_id%'
and length(ca_id) = $len2
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
-$str .= " | | ";
-$str .= "| ";
while ($row=sql_fetch_array($result)) {
//$row2 = sql_fetch(" select count(*) as cnt from $g4[shop_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
- $str .= "{$row['ca_name']} ({$row2['cnt']}) ";
+ $str .= ''.$row['ca_name'].' ('.$row2['cnt'].')';
$exists = true;
}
-$str .= " |
| | ";
if ($exists) {
- echo "
-
-
-
-
-
-
-  |
- |
-  |
-
- $str
-
-  |
- |
-  |
-
-
";
-}
-?>
\ No newline at end of file
+?>
+
+
+
+
\ No newline at end of file
diff --git a/shop/listcategory2.inc.php b/shop/listcategory2.inc.php
index 69d3ae1e3..ca2950962 100644
--- a/shop/listcategory2.inc.php
+++ b/shop/listcategory2.inc.php
@@ -1,5 +1,5 @@
| ";
$sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '$tmp_ca_id%'
@@ -31,13 +29,13 @@ if (!$exists) {
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'])
- $style = " class='accent' ";
+ $sct_ct_here = '';
+ if ($ca_id == $row['ca_id']) // 활성 분류 표시
+ $sct_ct_here = 'sct_ct_here';
+ $str .= '';
if ($cnt) {
- $str .= " | ";
- $str .= "| · $row[ca_name] | ";
+ $str .= ''.$row['ca_name'].'';
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '{$row['ca_id']}%'
and ca_use = '1'
@@ -45,42 +43,25 @@ if (!$exists) {
$result2 = sql_query($sql2);
$k=0;
while ($row2=sql_fetch_array($result2)) {
- if (!$k)
- $str .= "| | ";
- $str .= "{$row2['ca_name']} ";
+ $str .= ''.$row2['ca_name'].'';
$k++;
}
- //if (!$k) $str .= " | | ";
- $str .= " |
| | ";
} else {
- $str .= "{$row['ca_name']} ";
+ $str .= ''.$row['ca_name'].'';
}
+ $str .= '';
$exists = true;
}
-
- if (!$cnt)
- $str .= " | ";
}
if ($exists) {
- echo "
-
-
-
-
-
-
-  |
- |
-  |
-
- $str
-
-  |
- |
-  |
-
- ";
-}
-?>
\ No newline at end of file
+?>
+
+
+
+
\ No newline at end of file
diff --git a/shop/listcategory3.inc.php b/shop/listcategory3.inc.php
index 9f73b2bd1..febcc2312 100644
--- a/shop/listcategory3.inc.php
+++ b/shop/listcategory3.inc.php
@@ -1,5 +1,5 @@
| ";
-$str .= "| ";
while ($row=sql_fetch_array($result)) {
if (preg_match("/^{$row['ca_id']}/", $ca_id))
- $span = "";
+ $sct_ct_here = 'sct_ct_here';
else
- $span = "";
- $str .= "{$span}{$row['ca_name']} ";
+ $sct_ct_here = '';
+ $str .= ''.$row['ca_name'].'';
$exists = true;
}
-$str .= " |
| | ";
if ($exists) {
- echo "
-
-
-
-
-
-
-  |
- |
-  |
-
- $str
-
-  |
- |
-  |
-
- ";
-}
-?>
\ No newline at end of file
+?>
+
+
+
+
\ No newline at end of file
|