Ignore:
Timestamp:
2006/12/18 21:06:32 (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

    r10939 r10940  
    1313        $this->tpl_mainpage = 'contents/campaign_create_tag.tpl'; 
    1414        $this->tpl_mainno = 'create'; 
    15         $this->tpl_subnavi = ''; 
    16         $this->tpl_subno = ""; 
    17         $this->tpl_subtitle = '¾¦ÉÊÁªÂò'; 
     15        $this->tpl_subtitle = '¾¦ÉÊ¥³¡¼¥É'; 
    1816    } 
    1917} 
    … …  
    2725sfIsSuccess($objSess); 
    2826 
    29 if ($_POST['mode'] == "search") { 
     27switch($_POST['mode']) { 
    3028     
     29case  'search': 
    3130    // POSTÃͤΰú¤­·Ñ¤® 
    3231    $objPage->arrForm = $_POST; 
    … …  
    6160                $where.= $tmp_where . " )"; 
    6261                break; 
    63             case 'search_product_id': 
    64                 if($val != "") { 
    65                     $where .= " AND product_id = ?"; 
    66                     if(!sfIsInt($val)) $val = 0; 
    67                     $arrval[] = $val; 
    68                 } 
     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; 
     68            default: 
    6969                break; 
    7070            default: 
    … …  
    106106    // ¸¡º÷·ë²Ì¤Î¼èÆÀ 
    107107    $objPage->arrProducts = $objQuery->select($col, $from, $where, $arrval); 
    108          
     108    break; 
     109case 'view': 
     110    "<a href=\"#\" onclick="fmFormModeSubmit()">"; 
     111    $create_tag =  
     112    $objPage->tpl_create_tag = $create_tag; 
     113    break; 
    109114} 
    110115 
Note: See TracChangeset for help on using the changeset viewer.