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 @@