Changeset 18758 for trunk/data/class/pages/admin/customer
- Timestamp:
- 2010/07/20 13:25:33 (16 years ago)
- Location:
- trunk/data/class/pages/admin/customer
- Files:
-
- 3 edited
-
LC_Page_Admin_Customer.php (modified) (2 diffs)
-
LC_Page_Admin_Customer_Edit.php (modified) (4 diffs)
-
LC_Page_Admin_Customer_SearchCustomer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r18007 r18758 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-20 07LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 215 215 // 登録メール再送 216 216 if ($_POST['mode'] == "resend_mail") { 217 $arrRet = $objQuery->select("name01, name02, secret_key, email ", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"]));217 $arrRet = $objQuery->select("name01, name02, secret_key, email, email_mobile", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"])); 218 218 if( is_array($arrRet) === true && count($arrRet) > 0 ){ 219 219 220 220 $CONF = $objDb->sf_getBasisData(); 221 221 $this->CONF = $CONF; 222 $objMailText = new SC_SiteView(); 222 /** 223 * 携帯メールアドレスが登録されていれば携帯サイトから仮会員登録したものと判定する。 224 * TODO: とりあえずの簡易的な判定なので、将来的には判定ルーチンを修正した方が良い。 225 */ 226 if (!empty($arrRet[0]['email_mobile'])) { 227 $objMailText = new SC_MobileView(false); 228 $this->to_name01 = $arrRet[0]['name01']; 229 $this->to_name02 = $arrRet[0]['name02']; 230 } else { 231 $objMailText = new SC_SiteView(false); 232 } 223 233 $objMailText->assignobj($this); 224 234 $mailHelper = new SC_Helper_Mail_Ex(); -
trunk/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
r16741 r18758 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-20 07LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 290 290 if (strlen($array["email"]) > 0) { 291 291 $array['email'] = strtolower($array['email']); 292 $sql = "SELECT customer_id FROM dtb_customer WHERE email ILIKE ? escape '#'AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?";292 $sql = "SELECT customer_id FROM dtb_customer WHERE (email ILIKE ? escape '#' OR email_mobile ILIKE ? escape '#') AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 293 293 $checkMail = ereg_replace( "_", "#_", $array["email"]); 294 $result = $this->objConn->getAll($sql, array($checkMail, $ array["customer_id"]));294 $result = $this->objConn->getAll($sql, array($checkMail, $checkMail, $array["customer_id"])); 295 295 if (count($result) > 0) { 296 296 $objErr->arrErr["email"] .= "※ すでに登録されているメールアドレスです。"; … … 302 302 if (strlen($array["email_mobile"]) > 0) { 303 303 $array['email_mobile'] = strtolower($array['email_mobile']); 304 $sql = "SELECT customer_id FROM dtb_customer WHERE email_mobile ILIKE ? escape '#'AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?";304 $sql = "SELECT customer_id FROM dtb_customer WHERE (email ILIKE ? escape '#' OR email_mobile ILIKE ? escape '#') AND (status = 1 OR status = 2) AND del_flg = 0 AND customer_id <> ?"; 305 305 $checkMail = ereg_replace( "_", "#_", $array["email_mobile"]); 306 $result = $this->objConn->getAll($sql, array($checkMail, $ array["customer_id"]));306 $result = $this->objConn->getAll($sql, array($checkMail, $checkMail, $array["customer_id"])); 307 307 if (count($result) > 0) { 308 308 $objErr->arrErr["email_mobile"] .= "※ すでに登録されているメールアドレス(モバイル)です。"; … … 349 349 350 350 // 取得範囲の指定(開始行番号、行数のセット) 351 $this->objQuery->set limitoffset($page_max, $startno);351 $this->objQuery->setLimitOffset($page_max, $startno); 352 352 // 表示順序 353 353 $order = "order_id DESC"; 354 $this->objQuery->set order($order);354 $this->objQuery->setOrder($order); 355 355 //購入履歴情報の取得 356 356 $arrPurchaseHistory = $this->objQuery->select("*", "dtb_order", "customer_id=? AND del_flg = 0 ", array($customer_id)); -
trunk/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php
r18432 r18758 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-20 08LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 149 149 150 150 // 取得範囲の指定(開始行番号、行数のセット) 151 $objQuery->set limitoffset($page_max, $startno);151 $objQuery->setLimitOffset($page_max, $startno); 152 152 // 表示順序 153 $objQuery->set order($order);153 $objQuery->setOrder($order); 154 154 // 検索結果の取得 155 155 $this->arrCustomer = $objQuery->select($col, $from, $where, $sqlval);
Note: See TracChangeset
for help on using the changeset viewer.
