Ignore:
Timestamp:
2011/08/03 05:10:38 (13 years ago)
Author:
468
Message:

#1413 スマートフォン版お届け先もっと見るボタンの処理修正(県コードが出力されていたので県名を出力するように変更)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/mypage/LC_Page_Mypage_Delivery.php

    r21072 r21103  
    9191                //別のお届け先情報 
    9292                $arrOtherDeliv = $this->getOtherDeliv($customer_id, (($arrData['pageno'] - 1) * SEARCH_PMAX)); 
     93                //県名をセット 
     94                $arrOtherDeliv = $this->setPref($arrOtherDeliv, $this->arrPref); 
    9395                $arrOtherDeliv['delivCount'] = count($arrOtherDeliv); 
    9496                $this->arrOtherDeliv = $arrOtherDeliv; 
     
    159161        $objQuery->delete("dtb_other_deliv", $where, array($customer_id, $deliv_id)); 
    160162    } 
     163     
     164    /** 
     165     * 県名をセット 
     166     * 
     167     * @param array $arrOtherDeliv 
     168     * @param array $arrPref 
     169     * return array 
     170     */ 
     171    function setPref($arrOtherDeliv, $arrPref) { 
     172        if (is_array($arrOtherDeliv)) { 
     173            foreach($arrOtherDeliv as $key => $arrDeliv) { 
     174                $arrOtherDeliv[$key]['prefname'] = $arrPref[$arrDeliv['pref']]; 
     175            } 
     176        } 
     177        return $arrOtherDeliv; 
     178    } 
    161179} 
Note: See TracChangeset for help on using the changeset viewer.