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/best5.php

    r15080 r15367  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 class LC_Best5Page { 
    8     function LC_Best5Page() { 
    9         /** 必ず変更する **/ 
    10         $this->tpl_mainpage = BLOC_PATH . 'best5.tpl';  // メイン 
    11     } 
    12 } 
    137 
    14 $objSubPage = new LC_Best5Page(); 
    15 $objSubView = new SC_SiteView(); 
    16 $objSiteInfo = $objView->objSiteInfo; 
     8// {{{ requires 
     9require_once(CLASS_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5_Ex.php"); 
    1710 
    18 // 基本情報を渡す 
    19 $objSiteInfo = new SC_SiteInfo(); 
    20 $objSubPage->arrInfo = $objSiteInfo->data; 
     11// }}} 
     12// {{{ generate page 
    2113 
    22 //おすすめ商品表示 
    23 $objSubPage->arrBestProducts = lfGetRanking(); 
    24  
    25 $objSubView->assignobj($objSubPage); 
    26 $objSubView->display($objSubPage->tpl_mainpage); 
    27 //----------------------------------------------------------------------------------------------------------------------------------- 
    28 //おすすめ商品検索 
    29 function lfGetRanking(){ 
    30     $objQuery = new SC_Query(); 
    31      
    32     $col = "A.*, name, price02_min, price01_min, main_list_image "; 
    33     $from = "dtb_best_products AS A INNER JOIN vw_products_allclass AS allcls using(product_id)"; 
    34     $where = "status = 1"; 
    35     $order = "rank"; 
    36     $objQuery->setorder($order); 
    37      
    38     $arrBestProducts = $objQuery->select($col, $from, $where); 
    39          
    40     return $arrBestProducts; 
    41 } 
    42  
     14$objPage = new LC_Page_FrontParts_BLoc_Best5_Ex(); 
     15$objPage->init(); 
     16$objPage->process(); 
     17register_shutdown_function(array($objPage, "destroy")); 
    4318?> 
Note: See TracChangeset for help on using the changeset viewer.