diff --git a/mobile/shop/search.php b/mobile/shop/search.php index 561212159..faf765204 100644 --- a/mobile/shop/search.php +++ b/mobile/shop/search.php @@ -13,13 +13,14 @@ $where[] = " (a.ca_id = b.ca_id and a.it_use = 1 and b.ca_use = 1) "; $search_all = true; // 상세검색 이라면 -if (isset($_GET['qname']) || isset($_GET['qexplan']) || isset($_GET['qid'])) +if (isset($_GET['qname']) || isset($_GET['qexplan']) || isset($_GET['qid']) || isset($_GET['qbasic'])) $search_all = false; $q = utf8_strcut(get_search_string(trim($_GET['q'])), 30, ""); $qname = isset($_GET['qname']) ? trim($_GET['qname']) : ''; $qexplan = isset($_GET['qexplan']) ? trim($_GET['qexplan']) : ''; $qid = isset($_GET['qid']) ? trim($_GET['qid']) : ''; +$qbasic = isset($_GET['qbasic']) ? trim($_GET['qbasic']) : ''; $qcaid = isset($_GET['qcaid']) ? preg_replace('#[^a-z0-9]#i', '', trim($_GET['qcaid'])) : ''; $qfrom = isset($_GET['qfrom']) ? preg_replace('/[^0-9]/', '', trim($_GET['qfrom'])) : ''; $qto = isset($_GET['qto']) ? preg_replace('/[^0-9]/', '', trim($_GET['qto'])) : ''; @@ -35,18 +36,20 @@ if (isset($_GET['qorder'])) { $qorder = ''; } -if(!($qname || $qexplan || $qid)) +if(!($qname || $qexplan || $qid || $qbasic)) $search_all = true; // 검색범위 checkbox 처리 $qname_check = false; $qexplan_check = false; $qid_check = false; +$qbasic_check = false; if($search_all) { $qname_check = true; $qexplan_check = true; $qid_check = true; + $qbasic_check = true; } else { if($qname) $qname_check = true; @@ -54,6 +57,8 @@ if($search_all) { $qexplan_check = true; if($qid) $qid_check = true; + if($qbasic) + $qbasic_check = true; } if ($q) { @@ -70,6 +75,8 @@ if ($q) { $concat[] = "a.it_explan2"; if ($search_all || $qid) $concat[] = "a.it_id"; + if ($search_all || $qbasic) + $concat[] = "a.it_basic"; $concat_fields = "concat(".implode(",' ',",$concat).")"; $detail_where[] = $concat_fields." like '%$word%' "; @@ -111,135 +118,23 @@ $sql = " select COUNT(*) as cnt $sql_common $sql_where "; $row = sql_fetch($sql); $total_count = $row['cnt']; $total_page = ceil($total_count / $items); // 전체 페이지 계산 -?> +$sql = " select b.ca_id, b.ca_name, count(*) as cnt $sql_common $sql_where group by b.ca_id order by b.ca_id "; +$result = sql_query($sql); - -
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
'.$list_file.' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.