Changeset 21017


Ignore:
Timestamp:
2011/07/06 16:35:48 (10 years ago)
Author:
eccuore
Message:

fixes 1300 「配信メールアドレス種別」に携帯メールアドレスが指定されている場合は、携帯メールアドレスに配信

Location:
branches/version-2_11-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_CustomerList.php

    r20977 r21017  
    342342    // 検索用SQL 
    343343    function getList() { 
    344         $this->select = "SELECT customer_id,name01,name02,kana01,kana02,sex,email,tel01,tel02,tel03,pref,status,update_date,mailmaga_flg FROM dtb_customer "; 
     344        $this->select = "SELECT customer_id,name01,name02,kana01,kana02,sex,email,email_mobile,tel01,tel02,tel03,pref,status,update_date,mailmaga_flg FROM dtb_customer "; 
    345345        return $this->getSql(0); 
    346346    } 
  • branches/version-2_11-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php

    r20999 r21017  
    6262        // 日付プルダウン設定 
    6363        $objDate = new SC_Date_Ex(BIRTH_YEAR); 
    64         $this->arrBirthYear = $objDate->getYear();    
    65         $this->arrRegistYear = $objDate->getYear();    
     64        $this->arrBirthYear = $objDate->getYear(); 
     65        $this->arrRegistYear = $objDate->getYear(); 
    6666        $this->arrMonth = $objDate->getMonth(); 
    6767        $this->arrDay = $objDate->getDay(); 
     
    208208     * 
    209209     * @param array $arrTemplate SC_Helper_Mail_Ex::sfGetMailmagaTemplate()の戻り値 
    210      * @return array key:template_id value:サブジェクト【配信形式】  
     210     * @return array key:template_id value:サブジェクト【配信形式】 
    211211     */ 
    212212    function lfGetMailTemplateList($arrTemplate){ 
     
    258258        $dtb_send_history['send_id'] = $send_id; 
    259259        $objQuery->insert("dtb_send_history", $dtb_send_history ); 
    260  
     260        // 「配信メールアドレス種別」に携帯メールアドレスが指定されている場合は、携帯メールアドレスに配信 
     261        $emailtype="email"; 
     262        $searchmailtype = $objFormParam->getValue('search_mail_type'); 
     263        if($searchmailtype==2||$searchmailtype==4)$emailtype="email_mobile"; 
    261264        if ( is_array( $arrSendCustomer ) ){ 
    262265            foreach( $arrSendCustomer as $line ){ 
     
    264267                $dtb_send_customer["customer_id"] = $line["customer_id"]; 
    265268                $dtb_send_customer["send_id"] = $send_id; 
    266                 $dtb_send_customer['email'] = $line['email']; 
     269                $dtb_send_customer['email'] = $line[$emailtype]; 
    267270                $dtb_send_customer['name'] = $line["name01"] . " " . $line["name02"]; 
    268271                $objQuery->insert("dtb_send_customer", $dtb_send_customer ); 
     
    276279     * 
    277280     * @param integer $send_id 配信履歴番号 
    278      * @return array  
     281     * @return array 
    279282     */ 
    280283    function lfGetMailQuery($send_id){ 
Note: See TracChangeset for help on using the changeset viewer.