Changeset 248 for branches/comu/data/class/SC_CustomerList.php
- Timestamp:
- 2007/02/14 12:50:06 (19 years ago)
- File:
-
- 1 edited
-
branches/comu/data/class/SC_CustomerList.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/data/class/SC_CustomerList.php
r15 r248 78 78 // ̾Á° 79 79 if ( strlen($this->arrSql['name']) > 0 ) { 80 $this->setWhere("(name01 || name02 LIKE ?)" ); 80 if(DB_TYPE == "pgsql"){ 81 $this->setWhere("(name01 || name02 LIKE ?)" ); 82 }elseif(DB_TYPE == "mysql"){ 83 $this->setWhere("concat(name01,name02) LIKE ?" ); 84 } 85 81 86 $searchName = $this->addSearchStr($this->arrSql['name']); 82 87 $this->arrVal[] = mb_ereg_replace("[ ¡¡]+","",$searchName); … … 85 90 //¡¡Ì¾Á°¡Ê¥«¥Ê¡Ë 86 91 if ( strlen($this->arrSql['kana']) > 0 ) { 87 $this->setWhere("(kana01 || kana02 LIKE ?)"); 92 if(DB_TYPE == "pgsql"){ 93 $this->setWhere("(kana01 || kana02 LIKE ?)"); 94 }elseif(DB_TYPE == "mysql"){ 95 $this->setWhere("concat(kana01,kana02) LIKE ?" ); 96 } 88 97 $searchKana = $this->addSearchStr($this->arrSql['kana']); 89 98 $this->arrVal[] = mb_ereg_replace("[ ¡¡]+","",$searchKana); … … 98 107 //¡¡ÅÅÏÃÈÖ¹æ 99 108 if ( is_numeric( $this->arrSql['tel'] ) ) { 100 $this->setWhere( "(tel01 || tel02 || tel03 LIKE ?)" ); 109 if(DB_TYPE == "pgsql"){ 110 $this->setWhere( "(tel01 || tel02 || tel03 LIKE ?)" ); 111 }elseif(DB_TYPE == "mysql"){ 112 $this->setWhere("concat(tel01,tel02,tel03) LIKE ?" ); 113 } 101 114 $searchTel = $this->addSearchStr($this->arrSql['tel']); 102 115 $this->arrVal[] = ereg_replace("-", "", $searchTel);
Note: See TracChangeset
for help on using the changeset viewer.
