Changeset 18020


Ignore:
Timestamp:
2009/05/20 13:26:36 (15 years ago)
Author:
Seasoft
Message:

merge 17768, 17791
・取得元: version-2_4
【取得元のログメッセージ】
EC-CUBE2.4改修 #309
#309 仮登録完了メール再送機能の対応

Location:
branches/comu-ver2/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_CustomerList.php

    r17568 r18020  
    2828 
    2929    var $arrColumnCSV; 
    30              
     30 
    3131    function SC_CustomerList($array, $mode = '') { 
    3232        parent::SC_SelectSql($array); 
     
    197197            // PCサイトメールが指定されている場合 
    198198            if ( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 1) { 
    199                 // 携帯ドメインを外す。 
    200                 foreach($arrMobileDomain as $mobile_domain) { 
    201                     $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' ");                     
    202                 } 
     199                // 携帯ドメインを外す。 
     200                foreach($arrMobileDomain as $mobile_domain) { 
     201                    $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' "); 
     202                } 
    203203            // 携帯サイトメールが指定されている場合 
    204204            } else if( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 2) { 
    205                 $this->setWhere( " dtb_customer.email_mobile <> ''  "); 
     205                $this->setWhere( " dtb_customer.email_mobile <> ''  "); 
    206206            } 
    207207        } 
  • branches/comu-ver2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r17590 r18020  
    214214        // 登録メール再送 
    215215        if ($_POST['mode'] == "resend_mail") { 
    216             $CONF = $objDb->sf_getBasisData(); 
    217             $this->CONF = $CONF; 
    218             $objMailText = new SC_SiteView(); 
    219             $objMailText->assignobj($this); 
    220             $mailHelper = new SC_Helper_Mail_Ex(); 
    221  
    222216            $arrRet = $objQuery->select("name01, name02, secret_key, email", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"])); 
    223  
    224             $this->name01 = $arrRet[0]['name01']; 
    225             $this->name02 = $arrRet[0]['name02']; 
    226             $this->uniqid = $arrRet[0]['secret_key']; 
    227  
    228  
    229             $subject = $mailHelper->sfMakesubject('会員登録のご確認'); 
    230             $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 
    231  
    232             $objMail = new SC_SendMail(); 
    233             $objMail->setItem( 
    234                                 ''                  // 宛先 
    235                                 , $subject              // サブジェクト 
    236                                 , $toCustomerMail         // 本文 
    237                                 , $CONF["email03"]          // 配送元アドレス 
    238                                 , $CONF["shop_name"]        // 配送元 名前 
    239                                 , $CONF["email03"]          // reply_to 
    240                                 , $CONF["email04"]          // return_path 
    241                                 , $CONF["email04"]          //  Errors_to 
    242                             ); 
    243             // 宛先の設定 
    244             $name = $this->name01 . $this->name02 ." 様"; 
    245             $objMail->setTo($arrRet[0]["email"], $name); 
    246             $objMail->sendMail(); 
     217            if( is_array($arrRet) === true && count($arrRet) > 0 ){ 
     218 
     219                $this->name01 = $arrRet[0]['name01']; 
     220                $this->name02 = $arrRet[0]['name02']; 
     221                $this->uniqid = $arrRet[0]['secret_key']; 
     222 
     223                $CONF = $objDb->sf_getBasisData(); 
     224                $this->CONF = $CONF; 
     225                $objMailText = new SC_SiteView(); 
     226                $objMailText->assignobj($this); 
     227                $mailHelper = new SC_Helper_Mail_Ex(); 
     228 
     229                $subject = $mailHelper->sfMakesubject('会員登録のご確認'); 
     230                $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 
     231 
     232                $objMail = new SC_SendMail(); 
     233                $objMail->setItem( 
     234                                    ''                  // 宛先 
     235                                    , $subject          // サブジェクト 
     236                                    , $toCustomerMail   // 本文 
     237                                    , $CONF["email03"]  // 配送元アドレス 
     238                                    , $CONF["shop_name"]// 配送元 名前 
     239                                    , $CONF["email03"]  // reply_to 
     240                                    , $CONF["email04"]  // return_path 
     241                                    , $CONF["email04"]  //  Errors_to 
     242                                 ); 
     243                // 宛先の設定 
     244                $name = $this->name01 . $this->name02 ." 様"; 
     245                $objMail->setTo($arrRet[0]["email"], $name); 
     246                $objMail->sendMail(); 
     247            } 
    247248 
    248249        } 
    249250 
    250251        if ($_POST['mode'] == "search" || $_POST['mode'] == "csv"  || $_POST['mode'] == "delete" || $_POST['mode'] == "delete_all" || $_POST['mode'] == "resend_mail") { 
     252 
    251253            // 入力文字の強制変換 
    252254            $this->lfConvertParam(); 
Note: See TracChangeset for help on using the changeset viewer.