Changeset 21441 for branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.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/order/LC_Page_Admin_Order_ProductSelect.php
r21424 r21441 205 205 $bind = array(); 206 206 foreach ($arrForm as $key => $val) { 207 if ($val == "") {207 if ($val == "") { 208 208 continue; 209 209 } … … 216 216 case 'search_category_id': 217 217 list($tmp_where, $tmp_bind) = $objDb->sfGetCatWhere($val); 218 if ($tmp_where != "") {218 if ($tmp_where != "") { 219 219 $where.= " AND alldtl.product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 220 220 $bind = array_merge((array)$bind, (array)$tmp_bind); … … 241 241 */ 242 242 function getNo($globalParams){ 243 foreach ($globalParams as $params) {244 if (isset($params['no']) && $params['no']!= ''){243 foreach ($globalParams as $params) { 244 if (isset($params['no']) && $params['no']!= '') { 245 245 return intval($params['no']); 246 246 } … … 256 256 function sortProducts($arrProduct_id,$productList){ 257 257 $products = array(); 258 foreach ($productList as $item) {258 foreach ($productList as $item) { 259 259 $products[ $item['product_id'] ] = $item; 260 260 } 261 261 $arrProducts = array(); 262 foreach ($arrProduct_id as $product_id) {262 foreach ($arrProduct_id as $product_id) { 263 263 $arrProducts[] = $products[$product_id]; 264 264 }
Note: See TracChangeset
for help on using the changeset viewer.