From 6b7aa507ab0a847a983cfa4753b71c8aadb4d522 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 8 May 2013 10:50:39 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=A0=91?= =?UTF-8?q?=EC=86=8D=EC=8B=9C=20include=20=ED=8C=8C=EC=9D=BC=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/search.php | 147 +++++++++++++++++++++++++++++++++++++++++ shop/search.php | 5 ++ shop/wishlist.php | 5 ++ 3 files changed, 157 insertions(+) create mode 100644 mobile/shop/search.php diff --git a/mobile/shop/search.php b/mobile/shop/search.php new file mode 100644 index 000000000..59d41531f --- /dev/null +++ b/mobile/shop/search.php @@ -0,0 +1,147 @@ + + +
+ +
검색어 | 검색 결과
+ + 0) { + if (trim($search_str)) { + // 인기검색어 + $sql = " insert into {$g4['popular_table']} + set pp_word = '$search_str', + pp_date = '".G4_TIME_YMD."', + pp_ip = '{$_SERVER['REMOTE_ADDR']}' "; + sql_query($sql, FALSE); + } + + unset($save); // 임시 저장 배열 + $sql = " select a.ca_id, + a.it_id + $sql_common + order by a.ca_id, a.it_id desc "; + $result = sql_query($sql); + for ($i=0; $row=mysql_fetch_array($result); $i++) { + if ($save['ca_id'] != $row['ca_id']) { + if ($save['ca_id']) { + write_search_save($save); + unset($save); + } + $save['ca_id'] = $row['ca_id']; + $save['cnt'] = 0; + } + $save['it_id'][$save['cnt']] = $row['it_id']; + $save[cnt]++; + } + } + + mysql_free_result($result); + write_search_save($save); + + function write_search_save($save) + { + global $g4, $search_str , $default , $image_rate , $cart_dir; + + $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$save['ca_id']}' "; + $row = sql_fetch($sql); + + // 김선용 2006.12 : 중복 하위분류명이 많으므로 대분류 포함하여 출력 + $ca_temp = ""; + if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우 + { + $sql2 = " select ca_name from $g4[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' "; + $row2 = sql_fetch($sql2); + $ca_temp = ''.$row2['ca_name'].' > '; + } + ?> + + + + + + + + + + + + + + + + + + +
상품
이미지 + 상품명판매가격 + 포인트 +
+ + +
+ + diff --git a/shop/search.php b/shop/search.php index 59d41531f..5c1f1290a 100644 --- a/shop/search.php +++ b/shop/search.php @@ -1,6 +1,11 @@