Changeset 1902 for temp/trunk/html


Ignore:
Timestamp:
2006/08/25 11:40:44 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/customer/index.php

    r1897 r1902  
    209209     
    210210            // ¥Ú¡¼¥¸Á÷¤ê¤Î½èÍý 
    211             if(is_numeric($_POST['search_page_max'])) {  
    212                 $page_max = $_POST['search_page_max']; 
     211            if(is_numeric($_POST['page_max'])) {     
     212                $page_max = $_POST['page_max']; 
    213213            } else { 
    214214                $page_max = SEARCH_PMAX; 
     
    331331         
    332332        switch ($key) { 
    333             case 'search_product_id': 
     333            case 'product_id': 
    334334                $where .= " AND product_id = ?"; 
    335335                $arrval[] = $val; 
    336336                break; 
    337             case 'search_product_class_id': 
     337            case 'product_class_id': 
    338338                $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_class_id = ?)"; 
    339339                $arrval[] = $val; 
    340340                break; 
    341             case 'search_name': 
     341            case 'name': 
    342342                $where .= " AND name ILIKE ?"; 
    343343                $arrval[] = "%$val%"; 
    344344                break; 
    345             case 'search_category_id': 
     345            case 'category_id': 
    346346                list($tmp_where, $tmp_arrval) = sfGetCatWhere($val); 
    347347                if($tmp_where != "") { 
     
    350350                } 
    351351                break; 
    352             case 'search_product_code': 
     352            case 'product_code': 
    353353                $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)"; 
    354354                $arrval[] = "%$val%"; 
    355355                break; 
    356             case 'search_startyear': 
    357                 $date = sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 
     356            case 'startyear': 
     357                $date = sfGetTimestamp($_POST['startyear'], $_POST['startmonth'], $_POST['startday']); 
    358358                $where.= " AND update_date >= ?"; 
    359359                $arrval[] = $date; 
    360360                break; 
    361             case 'search_endyear': 
    362                 $date = sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 
     361            case 'endyear': 
     362                $date = sfGetTimestamp($_POST['endyear'], $_POST['endmonth'], $_POST['endday']); 
    363363                $where.= " AND update_date <= ?"; 
    364364                $arrval[] = $date; 
    365365                break; 
    366             case 'search_product_flag': 
     366            case 'product_flag': 
    367367                global $arrSTATUS; 
    368                 $search_product_flag = sfSearchCheckBoxes($val); 
    369                 if($search_product_flag != "") { 
     368                $product_flag = sfSearchCheckBoxes($val); 
     369                if($product_flag != "") { 
    370370                    $where.= " AND product_flag LIKE ?"; 
    371                     $arrval[] = $search_product_flag;                    
     371                    $arrval[] = $product_flag;                   
    372372                } 
    373373                break; 
    374             case 'search_status': 
     374            case 'status': 
    375375                $tmp_where = ""; 
    376376                foreach ($val as $element){ 
Note: See TracChangeset for help on using the changeset viewer.