Changeset 12498
- Timestamp:
- 2007/05/10 19:40:24 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_CustomerList.php
r12497 r12498 209 209 4 => "vodafone.ne.jp" 210 210 ); 211 foreach($arrDomainType as $val) { 212 $domain = ($this->arrSql['domain']); 213 //¥â¥Ð¥¤¥ë¥É¥á¥¤¥ó»ØÄê 214 if($domain==3){ 215 if($this->arrSql['mail_type']==1){ 216 if($sql_where == "") { 217 $sql_where = "dtb_customer.email ILIKE ? "; 218 } else { 211 $domain = ($this->arrSql['domain']); 212 //¥É¥á¥¤¥ó»ØÄê»þ 213 if($domain == 2 || $domain == 3) { 214 //PC¥É¥á¥¤¥ó 215 if($domain == 2) { 216 foreach($arrDomainType as $val) { 217 if($this->arrSql['mail_type']==1 ){ 218 if($sql_where == "") { 219 $sql_where .= "dtb_customer.email NOT ILIKE ? "; 220 } else { 221 $sql_where .= "AND dtb_customer.email NOT LIKE ? " ; 222 } 223 }elseif($this->arrSql['mail_type']==2){ 224 if($sql_where == "") { 225 $sql_where .= "dtb_customer.email_mobile NOT ILIKE ? "; 226 } else { 227 $sql_where .= "AND dtb_customer.email _mobile NOT LIKE ? " ; 228 } 229 } 230 $searchDomain = $this->addSearchStr($val); 231 $this->arrVal[] = $searchDomain; 232 } 233 } 234 //¥â¥Ð¥¤¥ë¥É¥á¥¤¥ó 235 if($domain == 3) { 236 foreach($arrDomainType as $val) { 237 if($this->arrSql['mail_type']==1 ){ 238 if($sql_where == "") { 239 $sql_where .= "dtb_customer.email ILIKE ? "; 240 } else { 219 241 $sql_where .= "OR dtb_customer.email LIKE ? " ; 220 } 221 }elseif($this->arrSql['mail_type']==2){ 222 $sql_where .= "OR dtb_customer.email_mobile LIKE ? " ; 223 } 224 } 225 //£Ð£Ã¥É¥á¥¤¥ó»ØÄê 226 if($domain==2){ 227 if($this->arrSql['mail_type']==1){ 228 $sql_where .= "AND email NOT LIKE ? " ; 229 }elseif($this->arrSql['mail_type']==2){ 230 $sql_where .= "AND email_mobile NOT LIKE ? " ; 231 } 232 } 233 $searchDomain = $this->addSearchStr($val); 234 $this->arrVal[] = $searchDomain; 235 } 236 print_r($searchDomain); 237 $this->setWhere($sql_where); 238 } 239 240 242 } 243 }elseif($this->arrSql['mail_type']==2){ 244 if($sql_where == "") { 245 $sql_where .= "dtb_customer.email_mobile NOT ILIKE ? "; 246 } else { 247 $sql_where .= "OR dtb_customer.email _mobile NOT LIKE ? " ; 248 } 249 } 250 $searchDomain = $this->addSearchStr($val); 251 $this->arrVal[] = $searchDomain; 252 } 253 } 254 print_r($searchDomain); 255 } 241 256 print_r($this->arrSql); 242 257 print_r($this->arrVal);
Note: See TracChangeset
for help on using the changeset viewer.