Index: branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php	(revision 18007)
+++ branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php	(revision 18613)
@@ -461,76 +461,4 @@
         return $objErr->arrErr;
     }
-
-    function lfSetWhere($arrForm){
-        foreach ($arrForm as $key => $val) {
-
-            $val = sfManualEscape($val);
-
-            if($val == "") continue;
-
-            switch ($key) {
-            case 'product_id':
-                $where .= " AND product_id = ?";
-                $arrval[] = $val;
-                break;
-            case 'product_class_id':
-                $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_class_id = ?)";
-                $arrval[] = $val;
-                break;
-            case 'name':
-                $where .= " AND name ILIKE ?";
-                $arrval[] = "%$val%";
-                break;
-            case 'category_id':
-                list($tmp_where, $tmp_arrval) = sfGetCatWhere($val);
-                if($tmp_where != "") {
-                    $where.= " AND $tmp_where";
-                    $arrval = array_merge($arrval, $tmp_arrval);
-                }
-                break;
-            case 'product_code':
-                $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)";
-                $arrval[] = "%$val%";
-                break;
-            case 'startyear':
-                $date = sfGetTimestamp($_POST['startyear'], $_POST['startmonth'], $_POST['startday']);
-                $where.= " AND update_date >= ?";
-                $arrval[] = $date;
-                break;
-            case 'endyear':
-                $date = sfGetTimestamp($_POST['endyear'], $_POST['endmonth'], $_POST['endday']);
-                $where.= " AND update_date <= ?";
-                $arrval[] = $date;
-                break;
-            case 'product_flag':
-                global $arrSTATUS;
-                $product_flag = sfSearchCheckBoxes($val);
-                if($product_flag != "") {
-                    $where.= " AND product_flag LIKE ?";
-                    $arrval[] = $product_flag;
-                }
-                break;
-            case 'status':
-                $tmp_where = "";
-                foreach ($val as $element){
-                    if ($element != ""){
-                        if ($tmp_where == ""){
-                            $tmp_where.="AND (status LIKE ? ";
-                        }else{
-                            $tmp_where.="OR status LIKE ? ";
-                        }
-                        $arrval[]=$element;
-                    }
-                }
-                if ($tmp_where != ""){
-                    $tmp_where.=")";
-                    $where.= "$tmp_where";
-                }
-                break;
-            default:
-                break;
-            }
-        }
-    }
 }
 ?>
