Ignore:
Timestamp:
2007/08/27 17:49:31 (13 years ago)
Author:
nanasess
Message:

クラス化対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/frontparts/bloc/search_products.php

    r15152 r15367  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 class LC_SearchProductsPage { 
    8     function LC_SearchProductsPage() { 
    9         /** 必ず変更する **/ 
    10         $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl';    // メイン 
    11     } 
    12 } 
     7// {{{ requires 
     8require_once(CLASS_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts_Ex.php"); 
    139 
    14 $objSubPage = new LC_SearchProductsPage(); 
    15 $arrSearch = array();   // 検索項目表示用 
     10// }}} 
     11// {{{ generate page 
    1612 
    17 // 選択中のカテゴリIDを判定する 
    18 $objSubPage->category_id = SC_Utils_Ex::sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 
    19 // カテゴリ検索用選択リスト 
    20 $arrRet = SC_Utils_Ex::sfGetCategoryList('', true, ' '); 
    21  
    22 if(is_array($arrRet)) { 
    23     // 文字サイズを制限する 
    24     foreach($arrRet as $key => $val) { 
    25         $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN); 
    26     } 
    27 } 
    28 $objSubPage->arrCatList = $arrRet; 
    29  
    30 $objSubView = new SC_SiteView(); 
    31 $objSubView->assignobj($objSubPage); 
    32 $objSubView->display($objSubPage->tpl_mainpage); 
    33 //----------------------------------------------------------------------------------------------------------------------------------- 
     13$objPage = new LC_Page_FrontParts_BLoc_SearchProducts_Ex(); 
     14$objPage->init(); 
     15$objPage->process(); 
     16register_shutdown_function(array($objPage, "destroy")); 
    3417?> 
Note: See TracChangeset for help on using the changeset viewer.