Changeset 21103


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

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

Location:
branches/version-2_11-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/Smarty/templates/sphone/mypage/delivery.tpl

    r21073 r21103  
    6565                          <ul class="edit"> 
    6666                              <li><a href="#" onClick="win02('./delivery_addr.php?other_deliv_id=<!--{$arrOtherDeliv[cnt].other_deliv_id}-->','deliv_disp','600','640'); return false;" class="b_edit deliv_edit" rel="external">編集</a></li> 
    67                               <li><a href="#" onClick="fnModeSubmit('delete','other_deliv_id','<!--{$arrOtherDeliv[cnt].other_deliv_id}-->'); return false;" class="deliv_delete" rel="external">削除</a></li> 
     67                              <li><a href="#" onClick="fnModeSubmit('delete','other_deliv_id','<!--{$arrOtherDeliv[cnt].other_deliv_id}-->'); return false;" class="deliv_delete" rel="external"><img src="<!--{$TPL_URLPATH}-->img/button/btn_delete.png" class="pointer" width="21" height="20" alt="削除" /></a></li> 
    6868                          </ul> 
    6969                       </div> 
     
    129129                    $($(".delivBox span.zip02").get(maxCnt)).text(delivery.zip02); 
    130130                    //住所をセット 
    131                     $($(".delivBox span.address").get(maxCnt)).text(delivery.pref + delivery.addr01 + delivery.addr02); 
     131                    $($(".delivBox span.address").get(maxCnt)).text(delivery.prefname + delivery.addr01 + delivery.addr02); 
    132132                    //姓をセット 
    133133                    $($(".delivBox span.name01").get(maxCnt)).text(delivery.name01); 
  • 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.