Changeset 12460


Ignore:
Timestamp:
2007/05/10 15:33:30 (17 years ago)
Author:
matsumoto
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_CustomerList.php

    r12454 r12460  
    201201        //¥É¥á¥¤¥ó»ØÄê 
    202202        if ( $mode == 'magazine' ){ 
    203             $val = ($this->arrSql['domain']); 
    204             //¥â¥Ð¥¤¥ë¥É¥á¥¤¥ó»ØÄê 
    205             if($val==3){ 
    206                 if($this->arrSql['mail_type']==1){ 
    207                 $this->setWhere( "email LIKE '%@docomo.ne.jp%' " . 
    208                         "OR email LIKE '%@softbank.ne.jp%' " . 
    209                         "OR email LIKE '%@ezweb.ne.jp%' " . 
    210                         "OR email LIKE '%vodafone.ne.jp'" ); 
    211             }elseif($this->arrSql['mail_type']==2){ 
    212                 $this->setWhere( "email_mobile LIKE '%@docomo.ne.jp%' " . 
    213                         "OR email_mobile LIKE '%@softbank.ne.jp%' " . 
    214                         "OR email_mobile LIKE '%@ezweb.ne.jp%' " . 
    215                         "OR email_mobile LIKE '%vodafone.ne.jp'" ); 
     203            $sql_where = ""; 
     204            foreach($arrDomainType as $val) { 
     205                $domain = ($this->arrSql['domain']); 
     206                //¥â¥Ð¥¤¥ë¥É¥á¥¤¥ó»ØÄê 
     207                if($domain==3){ 
     208                    if($this->arrSql['mail_type']==1){ 
     209                        $sql_where .= "dtb_customer.email LIKE ? " ; 
     210                }elseif($this->arrSql['mail_type']==2){ 
     211                        $sql_where .= "dtb_customer.email_mobile LIKE ? " ; 
     212                    } 
    216213                } 
    217             } 
    218             //£Ð£Ã¥É¥á¥¤¥ó»ØÄê 
    219             if($val==2){ 
    220                 if($this->arrSql['mail_type']==1){ 
    221                 $this->setWhere( "email NOT LIKE '%@docomo.ne.jp%' " . 
    222                         "AND email NOT LIKE '%@softbank.ne.jp%' " . 
    223                         "AND email NOT LIKE '%@ezweb.ne.jp%' " . 
    224                         "AND email NOT LIKE '%vodafone.ne.jp'" ); 
    225             }elseif($this->arrSql['mail_type']==2){ 
    226                 $this->setWhere( "email_mobile NOT LIKE '%@docomo.ne.jp%' " . 
    227                         "AND email_mobile NOT LIKE '%@softbank.ne.jp%' " . 
    228                         "AND email_mobile NOT LIKE '%@ezweb.ne.jp%' " . 
    229                         "AND email_mobile NOT LIKE '%vodafone.ne.jp'" ); 
     214                //£Ð£Ã¥É¥á¥¤¥ó»ØÄê 
     215                if($domain==2){ 
     216                    if($this->arrSql['mail_type']==1){ 
     217                        $sql_where .= "email NOT LIKE ? " ; 
     218                }elseif($this->arrSql['mail_type']==2){ 
     219                        $sql_where .= "email_mobile NOT LIKE ? " ; 
     220                    } 
    230221                } 
    231             } 
     222                $searchDomain = $this->addSearchEnd($val); 
     223                $this->arrVal[] = $searchDomain; 
     224            } 
     225            $this->setWhere($sql_where); 
    232226        } 
    233227         
Note: See TracChangeset for help on using the changeset viewer.