Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

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

    r21481 r21514  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_title    = "お届け先の追加・変更"; 
     46        $this->tpl_title    = 'お届け先の追加・変更'; 
    4747        $masterData         = new SC_DB_MasterData_Ex(); 
    4848        $this->arrPref      = $masterData->getMasterData('mtb_pref'); 
     
    132132            default : 
    133133 
    134                 if ($_GET['other_deliv_id'] != "") { 
     134                if ($_GET['other_deliv_id'] != '') { 
    135135                    $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue('customer_id'), $_SESSION['other_deliv_id']); 
    136136 
     
    172172    function lfGetOtherDeliv($customer_id, $other_deliv_id) { 
    173173        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    174         return $objQuery->select("*", 'dtb_other_deliv', "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 
     174        return $objQuery->select('*', 'dtb_other_deliv', "customer_id = ? AND other_deliv_id = ?", array($customer_id, $other_deliv_id)); 
    175175    } 
    176176 
     
    187187        if (strlen($arrRet['other_deliv_id'] == 0)) { 
    188188            // 別のお届け先登録数の取得 
    189             $deliv_count = $objQuery->count('dtb_other_deliv', "customer_id = ?", array($customer_id)); 
     189            $deliv_count = $objQuery->count('dtb_other_deliv', 'customer_id = ?', array($customer_id)); 
    190190            // 別のお届け先最大登録数に達している場合、エラー 
    191191            if ($deliv_count >= DELIV_ADDR_MAX) { 
    192                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '別のお届け先最大登録数に達しています。'); 
     192                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '別のお届け先最大登録数に達しています。'); 
    193193            } 
    194194 
     
    199199        // 変更 
    200200        } else { 
    201             $deliv_count = $objQuery->count('dtb_other_deliv',"customer_id = ? AND other_deliv_id = ?" ,array($customer_id, $arrRet['other_deliv_id'])); 
     201            $deliv_count = $objQuery->count('dtb_other_deliv','customer_id = ? AND other_deliv_id = ?' ,array($customer_id, $arrRet['other_deliv_id'])); 
    202202            if ($deliv_count != 1) { 
    203                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。'); 
     203                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '一致する別のお届け先がありません。'); 
    204204            } 
    205205 
    206206            // 実行 
    207             $objQuery->update('dtb_other_deliv', $sqlval, "other_deliv_id = ?", array($arrRet['other_deliv_id'])); 
     207            $objQuery->update('dtb_other_deliv', $sqlval, 'other_deliv_id = ?', array($arrRet['other_deliv_id'])); 
    208208        } 
    209209    } 
     
    215215        } 
    216216        if (count($_SESSION['shipping']) >= DELIV_ADDR_MAX) { 
    217             SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '別のお届け先最大登録数に達しています。'); 
     217            SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '別のお届け先最大登録数に達しています。'); 
    218218        } else { 
    219219            $_SESSION['shipping'][] = $arrRegist; 
Note: See TracChangeset for help on using the changeset viewer.