Index: branches/feature-module-update/html/frontparts/bloc/best5.php
===================================================================
--- branches/feature-module-update/html/frontparts/bloc/best5.php (revision 15080)
+++ branches/feature-module-update/html/frontparts/bloc/best5.php (revision 15367)
@@ -5,39 +5,14 @@
* http://www.lockon.co.jp/
*/
-class LC_Best5Page {
- function LC_Best5Page() {
- /** 必ず変更する **/
- $this->tpl_mainpage = BLOC_PATH . 'best5.tpl'; // メイン
- }
-}
-$objSubPage = new LC_Best5Page();
-$objSubView = new SC_SiteView();
-$objSiteInfo = $objView->objSiteInfo;
+// {{{ requires
+require_once(CLASS_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5_Ex.php");
-// 基本情報を渡す
-$objSiteInfo = new SC_SiteInfo();
-$objSubPage->arrInfo = $objSiteInfo->data;
+// }}}
+// {{{ generate page
-//おすすめ商品表示
-$objSubPage->arrBestProducts = lfGetRanking();
-
-$objSubView->assignobj($objSubPage);
-$objSubView->display($objSubPage->tpl_mainpage);
-//-----------------------------------------------------------------------------------------------------------------------------------
-//おすすめ商品検索
-function lfGetRanking(){
- $objQuery = new SC_Query();
-
- $col = "A.*, name, price02_min, price01_min, main_list_image ";
- $from = "dtb_best_products AS A INNER JOIN vw_products_allclass AS allcls using(product_id)";
- $where = "status = 1";
- $order = "rank";
- $objQuery->setorder($order);
-
- $arrBestProducts = $objQuery->select($col, $from, $where);
-
- return $arrBestProducts;
-}
-
+$objPage = new LC_Page_FrontParts_BLoc_Best5_Ex();
+$objPage->init();
+$objPage->process();
+register_shutdown_function(array($objPage, "destroy"));
?>