Changeset 2145


Ignore:
Timestamp:
2006/08/26 19:09:50 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r2013 r2145  
    131131             
    132132            switch ($key) { 
    133                 case 'search_product_id': 
     133                case 'search_product_id':   // ¾¦ÉÊID 
    134134                    $where .= " AND product_id = ?"; 
    135135                    $arrval[] = $val; 
    136136                    break; 
    137                 case 'search_product_class_id': 
    138                     $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_class_id = ?)"; 
     137                case 'search_product_class_id': //µ¬³Ê̾¾Î 
     138                    //$where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_class_id = ?)"; 
     139                    $where .= " AND  product_id IN (SELECT product_id FROM dtb_products_class WHERE classcategory_id1 IN (SELECT classcategory_id FROM dtb_classcategory WHERE class_id IN (SELECT class_id FROM dtb_class WHERE name LIKE '%¥¤%'))) "; 
    139140                    $arrval[] = $val; 
    140141                    break; 
    141                 case 'search_name': 
     142                case 'search_name':         // ¾¦ÉÊ̾ 
    142143                    $where .= " AND name ILIKE ?"; 
    143144                    $arrval[] = "%$val%"; 
    144145                    break; 
    145                 case 'search_category_id': 
     146                case 'search_category_id':  // ¥«¥Æ¥´¥ê¡¼ 
    146147                    list($tmp_where, $tmp_arrval) = sfGetCatWhere($val); 
    147148                    if($tmp_where != "") { 
     
    150151                    } 
    151152                    break; 
    152                 case 'search_product_code': 
     153                case 'search_product_code': // ¾¦ÉÊ¥³¡¼¥É 
    153154                    $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)"; 
    154155                    $arrval[] = "%$val%"; 
    155156                    break; 
    156                 case 'search_startyear': 
     157                case 'search_startyear':    // ÅÐÏ¿¹¹¿·Æü¡ÊFROM¡Ë 
    157158                    $date = sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 
    158159                    $where.= " AND update_date >= ?"; 
    159160                    $arrval[] = $date; 
    160161                    break; 
    161                 case 'search_endyear': 
     162                case 'search_endyear':      // ÅÐÏ¿¹¹¿·Æü¡ÊTO¡Ë 
    162163                    $date = sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 
    163164                    $where.= " AND update_date <= ?"; 
    164165                    $arrval[] = $date; 
    165166                    break; 
    166                 case 'search_product_flag': 
     167                case 'search_product_flag': //¼ïÊÌ 
    167168                    global $arrSTATUS; 
    168169                    $search_product_flag = sfSearchCheckBoxes($val); 
     
    172173                    } 
    173174                    break; 
    174                 case 'search_status': 
     175                case 'search_status':       // ¥¹¥Æ¡¼¥¿¥¹ 
    175176                    $tmp_where = ""; 
    176177                    foreach ($val as $element){ 
Note: See TracChangeset for help on using the changeset viewer.