Changeset 16824 for branches/feature-module-update/data/class
- Timestamp:
- 2007/11/28 14:11:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_ProductSelect.php
r16741 r16824 85 85 switch ($key) { 86 86 case 'search_name': 87 $where .= " AND name ILIKE ?";87 $where .= " AND name LIKE ?"; 88 88 $arrval[] = "%$val%"; 89 89 break; 90 90 case 'search_category_id': 91 // 子カテゴリIDの取得 92 $arrRet = $objDb->sfGetChildsID("dtb_category", "parent_category_id", "category_id", $val); 93 $tmp_where = ""; 94 foreach ($arrRet as $val) { 95 if($tmp_where == "") { 96 $tmp_where.= " AND ( category_id = ?"; 97 } else { 98 $tmp_where.= " OR category_id = ?"; 99 } 100 $arrval[] = $val; 91 list($tmp_where, $tmp_arrval) = $objDb->sfGetCatWhere($val); 92 if($tmp_where != "") { 93 $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 94 $arrval = array_merge((array)$arrval, (array)$tmp_arrval); 101 95 } 102 $where.= $tmp_where . " )";103 96 break; 104 97 case 'search_product_code': 105 $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)";98 $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code LIKE ? GROUP BY product_id)"; 106 99 $arrval[] = "$val%"; 107 100 break;
Note: See TracChangeset
for help on using the changeset viewer.
