Changeset 16824 for branches/feature-module-update/data
- Timestamp:
- 2007/11/28 14:11:55 (16 years ago)
- Location:
- branches/feature-module-update/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/admin/products/product_select.tpl
r16821 r16824 30 30 <meta http-equiv="content-script-type" content="text/javascript" /> 31 31 <meta http-equiv="content-style-type" content="text/css" /> 32 <link rel="stylesheet" href="<!--{$smarty.const.URL_ADMIN_CSS}-->common.css" type="text/css" media="all" /> 32 33 <script type="text/javascript" src="<!--{$TPL_DIR}-->js/css.js"></script> 33 34 <script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script> … … 132 133 <!--{/section}--> 133 134 </table> 135 <br /> 136 <br /> 134 137 <!--{/if}--> 135 138 <!--▲検索結果表示--> -
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.