Changeset 12338


Ignore:
Timestamp:
2007/05/09 11:42:22 (17 years ago)
Author:
matsumoto
Message:
 
File:
1 edited

Legend:

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

    r12337 r12338  
    200200 
    201201        //¥É¥á¥¤¥ó»ØÄê 
    202 /*        if ( $mode == 'magazine' ){ 
     202        if ( $mode == 'magazine' ){ 
    203203            if ( strlen($this->arrSql['domain']) > 0 && $this->arrSql['domain'] == 3) { 
    204 ¡¡¡¡¡¡¡¡¡¡¡¡    $this->setWhere("(email || email_mobile LIKE ?)" );¡¡¡¡ 
    205             } 
     204¡¡¡¡¡¡¡¡¡¡¡¡    if(DB_TYPE == "pgsql"){ 
     205                $this->setWhere( "(email || email_mobile LIKE ?)" ); 
     206            }elseif(DB_TYPE == "mysql"){ 
     207                $this->setWhere("concat(email,email_mobile) LIKE ?" ); 
     208            }¡¡¡¡ 
    206209            $searchDomainType = $this->addSearchStr($this->arrSql['domain_type']); 
    207210            $this->arrVal[] = $searchDomaintype; 
     211            } 
    208212            if ( strlen($this->arrSql['domain']) > 0 && $this->arrSql['domain'] == 2) { 
    209                 $this->setWhere("(email || email_mobile NOT LIKE ?)" ); 
     213            if(DB_TYPE == "pgsql"){ 
     214                $this->setWhere( "(email || email_mobile LIKE ?)" ); 
     215            }elseif(DB_TYPE == "mysql"){ 
     216                $this->setWhere("concat(email,email_mobile) LIKE ?" ); 
    210217            } 
    211218            $searchDomainType = $this->addSearchStr($this->arrSql['domain_type']); 
    212219            $this->arrVal[] = $searchDomaintype; 
     220            } 
    213221        } 
    214 */ 
     222 
    215223        //¡¡HTML-mail¡ÊÇÛ¿®Êý¼°) 
    216224        if ( $mode == 'magazine' ){ 
Note: See TracChangeset for help on using the changeset viewer.