Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php

    r21481 r21514  
    147147                $strnavi            = $this->objNavi->strnavi; 
    148148                // 表示文字列 
    149                 $this->tpl_strnavi  = empty($strnavi) ? " " : $strnavi; 
     149                $this->tpl_strnavi  = empty($strnavi) ? ' ' : $strnavi; 
    150150 
    151151                // 規格1クラス名 
     
    271271            default: 
    272272                if (strlen($searchCondition['where_category']) >= 1) { 
    273                     $dtb_product_categories = "(SELECT * FROM dtb_product_categories WHERE ".$searchCondition['where_category'].")"; 
     273                    $dtb_product_categories = '(SELECT * FROM dtb_product_categories WHERE '.$searchCondition['where_category'].")"; 
    274274                    $arrval_order           = $searchCondition['arrvalCategory']; 
    275275                } else { 
     
    317317        // 複数項目チェック 
    318318        if ($tpl_classcat_find1[$product_id]) { 
    319             $objErr->doFunc(array("規格1", 'classcategory_id1', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     319            $objErr->doFunc(array('規格1', 'classcategory_id1', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    320320        } 
    321321        if ($tpl_classcat_find2[$product_id]) { 
    322             $objErr->doFunc(array("規格2", 'classcategory_id2', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    323         } 
    324  
    325         $objErr->doFunc(array("商品規格ID", 'product_class_id', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    326         $objErr->doFunc(array("数量", 'quantity', INT_LEN), array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     322            $objErr->doFunc(array('規格2', 'classcategory_id2', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     323        } 
     324 
     325        $objErr->doFunc(array('商品規格ID', 'product_class_id', INT_LEN), array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     326        $objErr->doFunc(array('数量', 'quantity', INT_LEN), array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    327327 
    328328        return $objErr->arrErr; 
     
    348348    function lfGetPageTitle($mode, $category_id = 0) { 
    349349        if ($mode == 'search') { 
    350             return "検索結果"; 
     350            return '検索結果'; 
    351351        } elseif ($category_id == 0) { 
    352             return "全商品"; 
     352            return '全商品'; 
    353353        } else { 
    354354            $arrCat = SC_Helper_DB_Ex::sfGetCat($category_id); 
     
    402402    function lfGetSearchCondition($arrSearchData) { 
    403403        $searchCondition = array( 
    404             'where'             => "", 
     404            'where'             => '', 
    405405            'arrval'            => array(), 
    406             'where_category'    => "", 
     406            'where_category'    => '', 
    407407            'arrvalCategory'    => array() 
    408408        ); 
     
    414414        // ▼対象商品IDの抽出 
    415415        // 商品検索条件の作成(未削除、表示) 
    416         $searchCondition['where'] = "alldtl.del_flg = 0 AND alldtl.status = 1 "; 
     416        $searchCondition['where'] = 'alldtl.del_flg = 0 AND alldtl.status = 1 '; 
    417417 
    418418        if (strlen($searchCondition['where_category']) >= 1) { 
     
    423423        // 商品名をwhere文に 
    424424        $name = $arrSearchData['name']; 
    425         $name = str_replace(",", "", $name); 
     425        $name = str_replace(',', '', $name); 
    426426        // 全角スペースを半角スペースに変換 
    427427        $name = str_replace(' ', ' ', $name); 
    428428        // スペースでキーワードを分割 
    429         $names = preg_split("/ +/", $name); 
     429        $names = preg_split('/ +/', $name); 
    430430        // 分割したキーワードを一つずつwhere文に追加 
    431431        foreach ($names as $val) { 
    432432            if (strlen($val) > 0) { 
    433                 $searchCondition['where']    .= " AND ( alldtl.name ILIKE ? OR alldtl.comment3 ILIKE ?) "; 
     433                $searchCondition['where']    .= ' AND ( alldtl.name ILIKE ? OR alldtl.comment3 ILIKE ?) '; 
    434434                $searchCondition['arrval'][]  = "%$val%"; 
    435435                $searchCondition['arrval'][]  = "%$val%"; 
     
    439439        // メーカーらのWHERE文字列取得 
    440440        if ($arrSearchData['maker_id']) { 
    441             $searchCondition['where']   .= " AND alldtl.maker_id = ? "; 
     441            $searchCondition['where']   .= ' AND alldtl.maker_id = ? '; 
    442442            $searchCondition['arrval'][] = $arrSearchData['maker_id']; 
    443443        } 
     
    460460     */ 
    461461    function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) { 
    462         $js_fnOnLoad = ""; 
     462        $js_fnOnLoad = ''; 
    463463        foreach (array_keys($arrProducts) as $key) { 
    464464            if ($arrProducts[$key]['product_id'] == $product_id) { 
Note: See TracChangeset for help on using the changeset viewer.