Changeset 17227


Ignore:
Timestamp:
2008/04/07 13:47:40 (12 years ago)
Author:
satou
Message:

【管理画面>商品管理>商品マスタ】商品一覧のカテゴリ表示を階層構造に対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products.php

    r17226 r17227  
    325325 
    326326        // カテゴリの読込 
    327         $this->arrCatList = $objDb->sfGetCategoryList(); 
    328         $this->arrCatIDName = $this->lfGetIDName($this->arrCatList); 
     327        list($this->arrCatKey, $this->arrCatVal) = $objDb->sfGetLevelCatList(false); 
     328        $this->arrCatList = $this->lfGetIDName($this->arrCatKey, $this->arrCatVal); 
    329329 
    330330        // 画面の表示 
     
    394394 
    395395    // カテゴリIDをキー、カテゴリ名を値にする配列を返す。 
    396     function lfGetIDName($arrCatList) { 
    397         $max = count($arrCatList); 
     396    function lfGetIDName($arrCatKey, $arrCatVal) { 
     397        $max = count($arrCatKey); 
    398398        for ($cnt = 0; $cnt < $max; $cnt++ ) { 
    399             $key = isset($arrCatList[$cnt]['category_id']) ? $arrCatList[$cnt]['category_id'] : ""; 
    400             $val = isset($arrCatList[$cnt]['category_name']) ? $arrCatList[$cnt]['category_name'] : ""; 
     399            $key = isset($arrCatKey[$cnt]) ? $arrCatKey[$cnt] : ""; 
     400            $val = isset($arrCatVal[$cnt]) ? $arrCatVal[$cnt] : ""; 
    401401            $arrRet[$key] = $val; 
    402402        } 
Note: See TracChangeset for help on using the changeset viewer.