Changeset 21514 for branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.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/admin/customer/LC_Page_Admin_Customer_Edit.php
r21481 r21514 207 207 SC_Helper_Customer_Ex::sfCustomerEntryParam($objFormParam, true); 208 208 // 検索結果一覧画面への戻り用パラメーター 209 $objFormParam->addParam( "検索用データ", 'search_data', "", "", array(), "", false);209 $objFormParam->addParam('検索用データ', 'search_data', "", "", array(), "", false); 210 210 // 会員購入履歴ページング用 211 $objFormParam->addParam( "", 'search_pageno', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false);211 $objFormParam->addParam('', 'search_pageno', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), "", false); 212 212 } 213 213 … … 221 221 SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 222 222 // 初回受け入れ時用 223 $objFormParam->addParam( "編集対象会員ID", 'edit_customer_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));223 $objFormParam->addParam('編集対象会員ID', 'edit_customer_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 224 224 } 225 225 … … 245 245 //メアド重複チェック(共通ルーチンは使えない) 246 246 $objQuery =& SC_Query_Ex::getSingletonInstance(); 247 $col = "email, email_mobile, customer_id";247 $col = 'email, email_mobile, customer_id'; 248 248 $table = 'dtb_customer'; 249 $where = "del_flg <> 1 AND (email Like ? OR email_mobile Like ?)";249 $where = 'del_flg <> 1 AND (email Like ? OR email_mobile Like ?)'; 250 250 $arrVal = array($objFormParam->getValue('email'), $objFormParam->getValue('email_mobile')); 251 251 if ($objFormParam->getValue('customer_id')) { 252 $where .= " AND customer_id <> ?";252 $where .= ' AND customer_id <> ?'; 253 253 $arrVal[] = $objFormParam->getValue('customer_id'); 254 254 } … … 265 265 $arrErr['email_mobile'] = '※ すでに他の会員(ID:' . $arrData['customer_id'] . ')が使用している携帯アドレスです。'; 266 266 }else if ($arrData['email_mobile'] == $objFormParam->getValue('email')) { 267 if ($arrErr['email'] == "") {267 if ($arrErr['email'] == '') { 268 268 $arrErr['email'] = '※ すでに他の会員(ID:' . $arrData['customer_id'] . ')が使用している携帯アドレスです。'; 269 269 } … … 315 315 $page_max = SEARCH_PMAX; 316 316 $table = 'dtb_order'; 317 $where = "customer_id = ? AND del_flg <> 1";317 $where = 'customer_id = ? AND del_flg <> 1'; 318 318 $arrVal = array($customer_id); 319 319 //購入履歴の件数取得 … … 324 324 $objQuery->setLimitOffset($page_max, $objNavi->start_row); 325 325 // 表示順序 326 $order = "order_id DESC";326 $order = 'order_id DESC'; 327 327 $objQuery->setOrder($order); 328 328 //購入履歴情報の取得 329 $arrPurchaseHistory = $objQuery->select( "*", $table, $where, $arrVal);329 $arrPurchaseHistory = $objQuery->select('*', $table, $where, $arrVal); 330 330 331 331 return array($linemax, $arrPurchaseHistory, $objNavi);
Note: See TracChangeset
for help on using the changeset viewer.