Changeset 21441 for branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php
- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php
r21420 r21441 122 122 $where = "del_flg = 0"; 123 123 foreach ($arrParam as $key => $val) { 124 if ($val == "") {124 if ($val == "") { 125 125 continue; 126 126 } … … 133 133 * 処理を実行 134 134 * ----------------------------------------------- */ 135 switch ($this->getMode()) {135 switch ($this->getMode()) { 136 136 // CSVを送信する。 137 137 case 'csv': … … 301 301 case 'search_category_id': 302 302 list($tmp_where, $tmp_Values) = $objDb->sfGetCatWhere($objFormParam->getValue($key)); 303 if ($tmp_where != "") {303 if ($tmp_where != "") { 304 304 $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 305 305 $arrValues = array_merge((array)$arrValues, (array)$tmp_Values); … … 309 309 case 'search_status': 310 310 $tmp_where = ""; 311 foreach ($objFormParam->getValue($key) as $element) {312 if ($element != "") {313 if (SC_Utils_Ex::isBlank($tmp_where)) {311 foreach ($objFormParam->getValue($key) as $element) { 312 if ($element != "") { 313 if (SC_Utils_Ex::isBlank($tmp_where)) { 314 314 $tmp_where .= " AND (status = ?"; 315 315 } else { … … 320 320 } 321 321 322 if (!SC_Utils_Ex::isBlank($tmp_where)) {322 if (!SC_Utils_Ex::isBlank($tmp_where)) { 323 323 $tmp_where .= ")"; 324 324 $where .= " $tmp_where "; … … 343 343 // 商品ステータス 344 344 case 'search_product_statuses': 345 if (count($objFormParam->getValue($key)) > 0) {345 if (count($objFormParam->getValue($key)) > 0) { 346 346 $where .= " AND product_id IN (SELECT product_id FROM dtb_product_status WHERE product_status_id IN ("; 347 foreach ($objFormParam->getValue($key) as $param) {347 foreach ($objFormParam->getValue($key) as $param) { 348 348 $where .= "?,"; 349 349 $arrValues[] = $param;
Note: See TracChangeset
for help on using the changeset viewer.