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

    r15080 r15367  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 class LC_NewsPage { 
    8     function LC_NewsPage() { 
    9         /** 必ず変更する **/ 
    10         $this->tpl_mainpage = BLOC_PATH . 'news.tpl';   // メイン 
    11     } 
    12 } 
     7// {{{ requires 
     8require_once(CLASS_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_News_Ex.php"); 
    139 
    14 $objSubPage = new LC_NewsPage(); 
    15 $objSubView = new SC_SiteView(); 
     10// }}} 
     11// {{{ generate page 
    1612 
    17 //新着情報取得 
    18 $objSubPage->arrNews = lfGetNews(); 
    19  
    20 $objSubView->assignobj($objSubPage); 
    21 $objSubView->display($objSubPage->tpl_mainpage); 
    22 //----------------------------------------------------------------------------------------------------------------------------------- 
    23 function lfGetNews(){ 
    24     $conn = new SC_DBConn(); 
    25     $sql = "SELECT *, cast(substring(news_date,1,10) as date) as news_date_disp FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC"; 
    26     $list_data = $conn->getAll($sql); 
    27     return $list_data;   
    28 } 
     13$objPage = new LC_Page_FrontParts_BLoc_News_Ex(); 
     14$objPage->init(); 
     15$objPage->process(); 
     16register_shutdown_function(array($objPage, "destroy")); 
    2917?> 
Note: See TracChangeset for help on using the changeset viewer.