Changeset 18828


Ignore:
Timestamp:
2010/09/27 16:58:55 (14 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 規格対応(規格と並行作業なので細かくコミットしてます)

File:
1 edited

Legend:

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

    r18820 r18828  
    429429        $this->arrForm['select_class_id1'] = $this->arrForm["class_id1"]; 
    430430        $this->arrForm['select_class_id2'] = $this->arrForm["class_id2"]; 
    431  
    432431        $this->arrClassCat = $this->getAllClassCategory($this->arrForm["class_id1"], $this->arrForm["class_id2"]); 
    433  
    434432        $total = count($this->arrClassCat); 
    435         for ($i = 1; $i <= $total; $i++) { 
     433        for ($i = 0; $i < $total; $i++) { 
    436434            if ($existsValue) { 
    437435                foreach ($productsClass as $key => $val) { 
    438436                    if(!$usepostValue){ 
    439                         $this->arrForm[$key . ":" . $i] = $val; 
     437                        $this->arrForm[$key . ":" . ($i+1)] = $val; 
    440438                    } 
    441439                } 
     
    443441            foreach ($existsProductsClass[$i] as $key => $val) { 
    444442                if(!$usepostValue){ 
    445                     $this->arrForm[$key . ":" . $i] = $val; 
     443                    $this->arrForm[$key . ":" . ($i+1)] = $val; 
    446444                } 
    447             } 
    448             if (!SC_Utils_Ex::isBlank($this->arrForm['product_id:' . $i]) 
    449                 && $this->arrForm["del_flg:" . $i] == 0) { 
    450                 $line .= "'check:" . $i . "',"; 
    451             } 
    452         } 
    453         //直前のLoopが$existsProductsClassを1始まりで参照しているので最初の情報が抜ける? 
    454         for ($i = 0; $i < $total; $i++) { 
    455             foreach ($existsProductsClass[$i] as $key => $val) { 
    456                 //ダウンロードファイル初期設定 
    457445                if($key=="down"){ 
    458446                    $this->objDownFile->addFile("ダウンロード販売用ファイル". ":" . ($i+1), 'down_realfilename'. ":" . ($i+1), explode(",", DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); 
    459447                } 
     448            } 
     449            if (!SC_Utils_Ex::isBlank($this->arrForm['product_id:' . ($i+1)]) 
     450                && $this->arrForm["del_flg:" . ($i+1)] == 0) { 
     451                $line .= "'check:" . ($i+1) . "',"; 
    460452            } 
    461453        } 
Note: See TracChangeset for help on using the changeset viewer.