Changeset 10943


Ignore:
Timestamp:
2006/12/18 21:18:07 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/html/admin/contents/campaign_create_tag.php

    r10942 r10943  
    6060                $where.= $tmp_where . " )"; 
    6161                break; 
    62             case 'search_product_code': 
    63                 $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code LIKE ? GROUP BY product_id)"; 
    64                 $where .= " OR product_code LIKE ?"; 
    65                 $arrval[] = "%$val%"; 
    66                 $arrval[] = "%$val%"; 
    67                 break; 
     62            case 'search_product_id': 
     63                if($val != "") { 
     64                    $where .= " AND product_id = ?"; 
     65                    if(!sfIsInt($val)) $val = 0; 
     66                    $arrval[] = $val; 
     67                } 
    6868            default: 
    6969                break; 
     
    7575    // ÆÉ¤ß¹þ¤àÎó¤È¥Æ¡¼¥Ö¥ë¤Î»ØÄê 
    7676    $col = "product_id, name, category_id, main_list_image, status, product_code, price01, stock, stock_unlimited"; 
    77     $from = "vw_products_class AS cls"; 
     77    $from = "vw_products_class AS allcls"; 
    7878         
    7979    $objQuery = new SC_Query(); 
     
    100100     
    101101    // view¤â¹Ê¹þ¤ß¤ò¤«¤±¤ë(mysqlÍÑ) 
    102     sfViewWhere("&&cls_where&&", $where, $arrval, $objQuery->order . " " .  $objQuery->setlimitoffset($page_max, $startno, true)); 
     102    sfViewWhere("&&allcls_where&&", $where, $arrval, $objQuery->order . " " .  $objQuery->setlimitoffset($page_max, $startno, true)); 
    103103     
    104104    // ¸¡º÷·ë²Ì¤Î¼èÆÀ 
Note: See TracChangeset for help on using the changeset viewer.