Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22608 r22796  
    3535 * @version $Id:LC_Page_Products_Detail.php 15532 2007-08-31 14:39:46Z nanasess $ 
    3636 */ 
    37 class LC_Page_Products_Detail extends LC_Page_Ex  
    38 { 
     37class LC_Page_Products_Detail extends LC_Page_Ex { 
    3938 
    4039    /** 商品ステータス */ 
     
    6766     * @return void 
    6867     */ 
    69     function init() 
    70     { 
     68    function init() { 
    7169        parent::init(); 
    7270        $masterData = new SC_DB_MasterData_Ex(); 
     
    8280     * @return void 
    8381     */ 
    84     function process() 
    85     { 
     82    function process() { 
    8683        parent::process(); 
    8784        $this->action(); 
     
    9491     * @return void 
    9592     */ 
    96     function action() 
    97     { 
     93    function action() { 
    9894        // 会員クラス 
    9995        $objCustomer = new SC_Customer_Ex(); 
     
    140136 
    141137        $this->tpl_javascript .= 'classCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories[$product_id]) . ';'; 
    142         $this->tpl_javascript .= 'function lnOnLoad() 
    143         {' . $this->js_lnOnload . '}'; 
     138        $this->tpl_javascript .= 'function lnOnLoad(){' . $this->js_lnOnload . '}'; 
    144139        $this->tpl_onload .= 'lnOnLoad();'; 
    145140 
     
    242237     * @return void 
    243238     */ 
    244     function destroy() 
    245     { 
     239    function destroy() { 
    246240        parent::destroy(); 
    247241    } 
    248242 
    249243    /* プロダクトIDの正当性チェック */ 
    250     function lfCheckProductId($admin_mode,$product_id) 
    251     { 
     244    function lfCheckProductId($admin_mode,$product_id) { 
    252245        // 管理機能からの確認の場合は、非公開の商品も表示する。 
    253246        if (isset($admin_mode) && $admin_mode == 'on') { 
     
    270263 
    271264    /* ファイル情報の初期化 */ 
    272     function lfInitFile($objUpFile) 
    273     { 
     265    function lfInitFile($objUpFile) { 
    274266        $objUpFile->addFile('詳細-メイン画像', 'main_image', array('jpg'), IMAGE_SIZE); 
    275267        for ($cnt = 1; $cnt <= PRODUCTSUB_MAX; $cnt++) { 
     
    280272 
    281273    /* 規格選択セレクトボックスの作成 */ 
    282     function lfMakeSelect() 
    283     { 
     274    function lfMakeSelect() { 
    284275        return 'fnSetClassCategories(' 
    285276            . 'document.form1, ' 
     
    289280 
    290281    /* 規格選択セレクトボックスの作成(モバイル) */ 
    291     function lfMakeSelectMobile(&$objPage, $product_id,$request_classcategory_id1) 
    292     { 
     282    function lfMakeSelectMobile(&$objPage, $product_id,$request_classcategory_id1) { 
    293283 
    294284        $classcat_find1 = false; 
     
    353343 
    354344    /* パラメーター情報の初期化 */ 
    355     function lfInitParam(&$objFormParam) 
    356     { 
     345    function lfInitParam(&$objFormParam) { 
    357346        $objFormParam->addParam('規格1', 'classcategory_id1', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    358347        $objFormParam->addParam('規格2', 'classcategory_id2', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    371360 
    372361    /* 商品規格情報の取得 */ 
    373     function lfGetProductsClass($product_id) 
    374     { 
     362    function lfGetProductsClass($product_id) { 
    375363        $objProduct = new SC_Product_Ex(); 
    376364        return $objProduct->getProductsClassFullByProductId($product_id); 
     
    378366 
    379367    /* 登録済み関連商品の読み込み */ 
    380     function lfPreGetRecommendProducts($product_id) 
    381     { 
     368    function lfPreGetRecommendProducts($product_id) { 
    382369        $objProduct = new SC_Product_Ex(); 
    383370        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    403390 
    404391    /* 入力内容のチェック */ 
    405     function lfCheckError($mode,&$objFormParam,$tpl_classcat_find1 = null ,$tpl_classcat_find2 = null) 
    406     { 
     392    function lfCheckError($mode,&$objFormParam,$tpl_classcat_find1 = null ,$tpl_classcat_find2 = null) { 
    407393 
    408394        switch ($mode) { 
     
    436422 
    437423    //商品ごとのレビュー情報を取得する 
    438     function lfGetReviewData($id) 
    439     { 
     424    function lfGetReviewData($id) { 
    440425        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    441426        //商品ごとのレビュー情報を取得する 
     
    454439     * @return $subImageFlag 
    455440     */ 
    456     function lfSetFile($objUpFile,$arrProduct,&$arrFile) 
    457     { 
     441    function lfSetFile($objUpFile,$arrProduct,&$arrFile) { 
    458442        // DBからのデータを引き継ぐ 
    459443        $objUpFile->setDBFileList($arrProduct); 
     
    475459     * @return void 
    476460     */ 
    477     function lfRegistFavoriteProduct($favorite_product_id,$customer_id) 
    478     { 
     461    function lfRegistFavoriteProduct($favorite_product_id,$customer_id) { 
    479462        // ログイン中のユーザが商品をお気に入りにいれる処理 
    480463        if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, 'del_flg = 0 AND status = 1')) { 
     
    506489     * @return void  
    507490     */ 
    508     function doCart() 
    509     { 
     491    function doCart() { 
    510492        $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam, 
    511493                                            $this->tpl_classcat_find1, 
     
    517499            $objCartSess->addProduct($product_class_id, $this->objFormParam->getValue('quantity')); 
    518500 
    519             // 開いているカテゴリーツリーを維持するためのパラメーター 
    520             $arrQueryString = array( 
    521                 'product_id' => $this->objFormParam->getValue('product_id'), 
    522             ); 
    523  
    524             SC_Response_Ex::sendRedirect(CART_URLPATH, $arrQueryString); 
     501 
     502            SC_Response_Ex::sendRedirect(CART_URLPATH); 
    525503            SC_Response_Ex::actionExit(); 
    526504        } 
     
    533511     * @return void 
    534512     */ 
    535     function doAddFavorite(&$objCustomer) 
    536     { 
     513    function doAddFavorite(&$objCustomer) { 
    537514        // ログイン中のユーザが商品をお気に入りにいれる処理 
    538515        if ($objCustomer->isLoginSuccess() === true && $this->objFormParam->getValue('favorite_product_id') > 0) { 
     
    556533     * @return void 
    557534     */ 
    558     function doAddFavoriteSphone($objCustomer) 
    559     { 
     535    function doAddFavoriteSphone($objCustomer) { 
    560536        // ログイン中のユーザが商品をお気に入りにいれる処理(スマートフォン用) 
    561537        if ($objCustomer->isLoginSuccess() === true && $this->objFormParam->getValue('favorite_product_id') > 0) { 
     
    581557     * @return void  
    582558     */ 
    583     function doDefault() 
    584     { 
     559    function doDefault() { 
    585560        // カート「戻るボタン」用に保持 
    586561        $netURL = new Net_URL(); 
     
    592567     * @return void 
    593568     */ 
    594     function doMobileSelect() 
    595     { 
     569    function doMobileSelect() { 
    596570        // 規格1が設定されている場合 
    597571        if ($this->tpl_classcat_find1) { 
     
    609583     * @return type  
    610584     */ 
    611     function doMobileSelect2() 
    612     { 
     585    function doMobileSelect2() { 
    613586        $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam,$this->tpl_classcat_find1,$this->tpl_classcat_find2); 
    614587 
     
    635608     * @return void 
    636609     */ 
    637     function doMobileSelectItem() 
    638     { 
     610    function doMobileSelectItem() { 
    639611        $objProduct = new SC_Product_Ex(); 
    640612 
     
    678650     * @return void  
    679651     */ 
    680     function doMobileCart() 
    681     { 
     652    function doMobileCart() { 
    682653        // この段階でエラーが出る場合は、数量の入力エラーのはず 
    683654        if (count($this->arrErr)) { 
     
    691662     * @return void  
    692663     */ 
    693     function doMobileDefault() 
    694     { 
     664    function doMobileDefault() { 
    695665        $this->tpl_mainpage = 'products/detail.tpl'; 
    696666    } 
Note: See TracChangeset for help on using the changeset viewer.