From fa99c611c25e4d7935f25596db2c7927e3324021 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 24 Feb 2014 21:02:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=20=EA=B2=80?= =?UTF-8?q?=EC=83=89=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/search.php | 20 ++++++++++---------- shop/search.php | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/mobile/shop/search.php b/mobile/shop/search.php index 20d9bd483..4bb5676b2 100644 --- a/mobile/shop/search.php +++ b/mobile/shop/search.php @@ -4,15 +4,6 @@ include_once('./_common.php'); $g5['title'] = "상품 검색 결과"; include_once(G5_MSHOP_PATH.'/_head.php'); -$q = utf8_strcut(trim($_GET['q']), 30, ""); -$qname = trim($_GET['qname']); -$qexplan = trim($_GET['qexplan']); -$qid = trim($_GET['qid']); -$qcaid = trim($_GET['qcaid']); -$qfrom = trim($_GET['qfrom']); -$qto = trim($_GET['qto']); -$qsort = trim($_GET['qsort']); - // QUERY 문에 공통적으로 들어가는 내용 // 상품명에 검색어가 포한된것과 상품판매가능인것만 $sql_common = " from {$g5['g5_shop_item_table']} a, {$g5['g5_shop_category_table']} b "; @@ -22,9 +13,18 @@ $where[] = " (a.ca_id = b.ca_id and a.it_use = 1 and b.ca_use = 1) "; $search_all = true; // 상세검색 이라면 -if (isset($qname) || isset($qexplan) || isset($qid)) +if (isset($_GET['qname']) || isset($_GET['qexplan']) || isset($_GET['qid'])) $search_all = false; +$q = utf8_strcut(trim($_GET['q']), 30, ""); +$qname = trim($_GET['qname']); +$qexplan = trim($_GET['qexplan']); +$qid = trim($_GET['qid']); +$qcaid = trim($_GET['qcaid']); +$qfrom = trim($_GET['qfrom']); +$qto = trim($_GET['qto']); +$qsort = trim($_GET['qsort']); + if ($q) { $arr = explode(" ", $q); $detail_where = array(); diff --git a/shop/search.php b/shop/search.php index c3c779581..452864982 100644 --- a/shop/search.php +++ b/shop/search.php @@ -9,15 +9,6 @@ if (G5_IS_MOBILE) { $g5['title'] = "상품 검색 결과"; include_once('./_head.php'); -$q = utf8_strcut(trim($_GET['q']), 30, ""); -$qname = trim($_GET['qname']); -$qexplan = trim($_GET['qexplan']); -$qid = trim($_GET['qid']); -$qcaid = trim($_GET['qcaid']); -$qfrom = trim($_GET['qfrom']); -$qto = trim($_GET['qto']); -$qsort = trim($_GET['qsort']); - // QUERY 문에 공통적으로 들어가는 내용 // 상품명에 검색어가 포한된것과 상품판매가능인것만 $sql_common = " from {$g5['g5_shop_item_table']} a, {$g5['g5_shop_category_table']} b "; @@ -27,9 +18,18 @@ $where[] = " (a.ca_id = b.ca_id and a.it_use = 1 and b.ca_use = 1) "; $search_all = true; // 상세검색 이라면 -if (isset($qname) || isset($qexplan) || isset($qid)) +if (isset($_GET['qname']) || isset($_GET['qexplan']) || isset($_GET['qid'])) $search_all = false; +$q = utf8_strcut(trim($_GET['q']), 30, ""); +$qname = trim($_GET['qname']); +$qexplan = trim($_GET['qexplan']); +$qid = trim($_GET['qid']); +$qcaid = trim($_GET['qcaid']); +$qfrom = trim($_GET['qfrom']); +$qto = trim($_GET['qto']); +$qsort = trim($_GET['qsort']); + if ($q) { $arr = explode(" ", $q); $detail_where = array();