Changeset 21514 for branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
r21481 r21514 44 44 function init() { 45 45 parent::init(); 46 $this->tpl_title = "お届け先の追加・変更";46 $this->tpl_title = 'お届け先の追加・変更'; 47 47 $masterData = new SC_DB_MasterData_Ex(); 48 48 $this->arrPref = $masterData->getMasterData('mtb_pref'); … … 132 132 default : 133 133 134 if ($_GET['other_deliv_id'] != "") {134 if ($_GET['other_deliv_id'] != '') { 135 135 $arrOtherDeliv = $this->lfGetOtherDeliv($objCustomer->getValue('customer_id'), $_SESSION['other_deliv_id']); 136 136 … … 172 172 function lfGetOtherDeliv($customer_id, $other_deliv_id) { 173 173 $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)); 175 175 } 176 176 … … 187 187 if (strlen($arrRet['other_deliv_id'] == 0)) { 188 188 // 別のお届け先登録数の取得 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)); 190 190 // 別のお届け先最大登録数に達している場合、エラー 191 191 if ($deliv_count >= DELIV_ADDR_MAX) { 192 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '別のお届け先最大登録数に達しています。');192 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '別のお届け先最大登録数に達しています。'); 193 193 } 194 194 … … 199 199 // 変更 200 200 } 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'])); 202 202 if ($deliv_count != 1) { 203 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", false, '一致する別のお届け先がありません。');203 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '一致する別のお届け先がありません。'); 204 204 } 205 205 206 206 // 実行 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'])); 208 208 } 209 209 } … … 215 215 } 216 216 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, '別のお届け先最大登録数に達しています。'); 218 218 } else { 219 219 $_SESSION['shipping'][] = $arrRegist;
Note: See TracChangeset
for help on using the changeset viewer.