Changeset 225


Ignore:
Timestamp:
2007/02/09 19:46:11 (17 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/order/index.php

    r17 r225  
    9090            switch ($key) { 
    9191                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                    } 
    9397                    $nonsp_val = ereg_replace("[ ¡¡]+","",$val); 
    9498                    $arrval[] = "%$nonsp_val%"; 
    9599                    break; 
    96100                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                    } 
    98106                    $nonsp_val = ereg_replace("[ ¡¡]+","",$val); 
    99107                    $arrval[] = "%$nonsp_val%"; 
     
    126134                    break; 
    127135                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                    } 
    129141                    $nonmark_val = ereg_replace("[()-]+","",$val); 
    130142                    $arrval[] = "$nonmark_val%"; 
Note: See TracChangeset for help on using the changeset viewer.