Ignore:
Timestamp:
2013/02/18 12:18:22 (11 years ago)
Author:
Qwert
Message:

#2143 「おすすめ商品の検索画面にて非公開の商品もリストアップされる」を修正

おすすめ商品管理・おすすめ商品検索画面で非公開の商品のセルは色付きに。またおすすめ商品検索画面で検索条件に商品ステータスを追加。

Location:
branches/version-2_12-dev/data/class/pages/admin/contents
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php

    r22206 r22559  
    175175    function getRecommendProducts() { 
    176176        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    177         $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*'; 
     177        $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*,dtb_products.status'; 
    178178        $table = 'dtb_best_products INNER JOIN dtb_products ON dtb_best_products.product_id = dtb_products.product_id'; 
    179179        $where = 'dtb_best_products.del_flg = 0'; 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r22206 r22559  
    125125        $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); 
    126126        $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
     127        $objFormParam->addParam('商品ステータス', 'search_status', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    127128        $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); 
    128129    } 
     
    169170                    $where .=    ' AND alldtl.product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code LIKE ? GROUP BY product_id)'; 
    170171                    $bind[] = '%'.$val.'%'; 
     172                    break; 
     173                case 'search_status': 
     174                    $where .= ' AND alldtl.status = ?'; 
     175                    $bind[] = $val; 
    171176                    break; 
    172177                default: 
Note: See TracChangeset for help on using the changeset viewer.