Changeset 225
- Timestamp:
- 2007/02/09 19:46:11 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/order/index.php
r17 r225 90 90 switch ($key) { 91 91 case 'search_order_name': 92 $where .= " AND order_name01||order_name02 ILIKE ?"; 92 if(DB_TYPE == "pgsql"){ 93 $where .= " AND order_name01||order_name02 ILIKE ?"; 94 }elseif(DB_TYPE == "mysql"){ 95 $where .= " AND concat(order_name01,order_name02) ILIKE ?"; 96 } 93 97 $nonsp_val = ereg_replace("[ ¡¡]+","",$val); 94 98 $arrval[] = "%$nonsp_val%"; 95 99 break; 96 100 case 'search_order_kana': 97 $where .= " AND order_kana01||order_kana02 ILIKE ?"; 101 if(DB_TYPE == "pgsql"){ 102 $where .= " AND order_kana01||order_kana02 ILIKE ?"; 103 }elseif(DB_TYPE == "mysql"){ 104 $where .= " AND concat(order_kana01,order_kana02) ILIKE ?"; 105 } 98 106 $nonsp_val = ereg_replace("[ ¡¡]+","",$val); 99 107 $arrval[] = "%$nonsp_val%"; … … 126 134 break; 127 135 case 'search_order_tel': 128 $where .= " AND (order_tel01||order_tel02||order_tel03) ILIKE ?"; 136 if(DB_TYPE == "pgsql"){ 137 $where .= " AND (order_tel01||order_tel02||order_tel03) ILIKE ?"; 138 }elseif(DB_TYPE == "mysql"){ 139 $where .= " AND concat(order_tel01,order_tel02,order_tel03) ILIKE ?"; 140 } 129 141 $nonmark_val = ereg_replace("[()-]+","",$val); 130 142 $arrval[] = "$nonmark_val%";
Note: See TracChangeset
for help on using the changeset viewer.