Changeset 11636 for branches/dev/data
- Timestamp:
- 2007/03/09 00:26:48 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/data/class/SC_CustomerList.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_CustomerList.php
r11634 r11636 169 169 170 170 $sql_where = ""; 171 171 172 foreach($this->arrSql['email'] as $val) { 172 173 $val = trim($val); … … 174 175 if($this->arrSql['not_emailinc'] == '1') { 175 176 176 if($sql_where == "") { 177 $sql_where .= "(dtb_customer.email NOT ILIKE ? OR dtb_customer.email_mobile NOT ILIKE ?) "; 177 if($sql_where != "") { 178 $sql_where .= "AND "; 179 } 180 181 if($search_patern == $search_all) { 182 $sql_where .= "(dtb_customer.$search_pc NOT ILIKE ? OR dtb_customer.$search_mobile NOT ILIKE ?) "; 178 183 } else { 179 $sql_where .= " AND (dtb_customer.email NOT ILIKE ? OR dtb_customer.email_mobile NOT ILIKE ?) ";184 $sql_where .= "dtb_customer.$search_patern NOT ILIKE ? "; 180 185 } 181 186 182 187 } else { 183 if($sql_where == "") { 184 $sql_where .= "(dtb_customer.email ILIKE ? OR dtb_customer.email_mobile ILIKE ?) "; 188 if($sql_where != "") { 189 $sql_where .= "OR "; 190 } 191 192 if($search_patern == $search_all) { 193 $sql_where .= "(dtb_customer.$search_pc ILIKE ? OR dtb_customer.$search_mobile ILIKE ?) "; 185 194 } else { 186 $sql_where .= " OR (dtb_customer.email ILIKE ? OR dtb_customer.email_mobile ILIKE ?)";195 $sql_where .= "dtb_customer.$$search_patern ILIKE ? "; 187 196 } 188 197 } 189 198 $searchEmail = $this->addSearchStr($val); 190 $this->arrVal[] = $searchEmail; 191 $this->arrVal[] = $searchEmail; 199 200 if($search_patern == $search_all) { 201 $this->arrVal[] = $searchEmail; 202 $this->arrVal[] = $searchEmail; 203 } else { 204 $this->arrVal[] = $searchEmail; 205 } 192 206 } 193 207 $this->setWhere($sql_where);
Note: See TracChangeset
for help on using the changeset viewer.
