Ignore:
Timestamp:
2007/08/24 21:46:51 (17 years ago)
Author:
nanasess
Message:

slib.php のクラス化に伴う修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products.php

    r15342 r15350  
    5151    function process() { 
    5252        $objView = new SC_AdminView(); 
    53  
     53        $objDb = new SC_Helper_DB_Ex(); 
    5454        $objDate = new SC_Date(); 
    5555 
     
    9393                    case 'search_product_flag': 
    9494                    case 'search_status': 
    95                         $this->arrHidden[$key] = sfMergeParamCheckBoxes($val); 
     95                        $this->arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 
    9696                        if(!is_array($val)) { 
    9797                            $this->arrForm[$key] = split("-", $val); 
     
    114114                // ランク付きレコードの削除 
    115115                $where = "category_id = " . addslashes($_POST['category_id']); 
    116                 sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id'], $where); 
     116                $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id'], $where); 
    117117            } else { 
    118                 sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id']); 
     118                $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id']); 
    119119            } 
    120120            // 子テーブル(商品規格)の削除 
     
    123123 
    124124            // 件数カウントバッチ実行 
    125             SC_Utils_Ex::sfCategory_Count($objQuery); 
     125            $objDb->sfCategory_Count($objQuery); 
    126126        } 
    127127 
     
    182182                            break; 
    183183                        case 'search_startyear':    // 登録更新日(FROM) 
    184                             $date = sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 
     184                            $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 
    185185                            $where.= " AND update_date >= '" . $_POST['search_startyear'] . "/" . $_POST['search_startmonth']. "/" .$_POST['search_startday'] . "'"; 
    186186                            $view_where.= " AND update_date >= '" . $_POST['search_startyear'] . "/" . $_POST['search_startmonth']. "/" .$_POST['search_startday'] . "'"; 
    187187                            break; 
    188188                        case 'search_endyear':      // 登録更新日(TO) 
    189                             $date = sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 
     189                            $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 
    190190                            $date = date('Y/m/d', strtotime($date) + 86400); 
    191191                            $where.= " AND update_date < date('" . $date . "')"; 
     
    194194                        case 'search_product_flag': //種別 
    195195                            global $arrSTATUS; 
    196                             $search_product_flag = sfSearchCheckBoxes($val); 
     196                            $search_product_flag = SC_Utils_Ex::sfSearchCheckBoxes($val); 
    197197                            if($search_product_flag != "") { 
    198198                                $where.= " AND product_flag LIKE ?"; 
     
    232232                    $option = "ORDER BY $order"; 
    233233                    // CSV出力タイトル行の作成 
    234                     $arrOutput = sfSwapArray(sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1")); 
     234                    $arrOutput = SC_Utils_Ex::sfSwapArray(sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1")); 
    235235 
    236236                    if (count($arrOutput) <= 0) break; 
     
    239239                    $arrOutputTitle = $arrOutput['disp_name']; 
    240240 
    241                     $head = sfGetCSVList($arrOutputTitle); 
    242  
    243                     $data = lfGetProductsCSV($where, $option, $arrval, $arrOutputCols); 
     241                    $head = SC_Utils_Ex::sfGetCSVList($arrOutputTitle); 
     242 
     243                    $data = $this->lfGetProductsCSV($where, $option, $arrval, $arrOutputCols); 
    244244 
    245245                    // CSVを送信する。 
    246                     sfCSVDownload($head.$data); 
     246                    SC_Utils_Ex::sfCSVDownload($head.$data); 
    247247                    exit; 
    248248                    break; 
Note: See TracChangeset for help on using the changeset viewer.