Changeset 10943
- Timestamp:
- 2006/12/18 21:18:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/admin/contents/campaign_create_tag.php
r10942 r10943 60 60 $where.= $tmp_where . " )"; 61 61 break; 62 case 'search_product_ code':63 $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code LIKE ? GROUP BY product_id)";64 $where .= " OR product_code LIKE?";65 $arrval[] = "%$val%";66 $arrval[] = "%$val%";67 break;62 case 'search_product_id': 63 if($val != "") { 64 $where .= " AND product_id = ?"; 65 if(!sfIsInt($val)) $val = 0; 66 $arrval[] = $val; 67 } 68 68 default: 69 69 break; … … 75 75 // ÆÉ¤ß¹þ¤àÎó¤È¥Æ¡¼¥Ö¥ë¤Î»ØÄê 76 76 $col = "product_id, name, category_id, main_list_image, status, product_code, price01, stock, stock_unlimited"; 77 $from = "vw_products_class AS cls";77 $from = "vw_products_class AS allcls"; 78 78 79 79 $objQuery = new SC_Query(); … … 100 100 101 101 // view¤â¹Ê¹þ¤ß¤ò¤«¤±¤ë(mysqlÍÑ) 102 sfViewWhere("&& cls_where&&", $where, $arrval, $objQuery->order . " " . $objQuery->setlimitoffset($page_max, $startno, true));102 sfViewWhere("&&allcls_where&&", $where, $arrval, $objQuery->order . " " . $objQuery->setlimitoffset($page_max, $startno, true)); 103 103 104 104 // ¸¡º÷·ë²Ì¤Î¼èÆÀ
Note: See TracChangeset
for help on using the changeset viewer.
