source: branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php @ 15532

Revision 15532, 1.2 KB checked in by nanasess, 17 years ago (diff)

svn:mime-type 修正

  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8// {{{ requires
9require_once(CLASS_PATH . "pages/LC_Page.php");
10
11/**
12 * 新着情報 のページクラス.
13 *
14 * @package Page
15 * @author LOCKON CO.,LTD.
16 * @version $Id$
17 */
18class LC_Page_FrontParts_Bloc_News extends LC_Page {
19
20    // }}}
21    // {{{ functions
22
23    /**
24     * Page を初期化する.
25     *
26     * @return void
27     */
28    function init() {
29        parent::init();
30        $this->tpl_mainpage = BLOC_PATH . 'news.tpl';
31    }
32
33    /**
34     * Page のプロセス.
35     *
36     * @return void
37     */
38    function process() {
39        $objSubView = new SC_SiteView();
40
41        //新着情報取得
42        $this->arrNews = $this->lfGetNews();
43
44        $objSubView->assignobj($this);
45        $objSubView->display($this->tpl_mainpage);
46    }
47
48    /**
49     * デストラクタ.
50     *
51     * @return void
52     */
53    function destroy() {
54        parent::destroy();
55    }
56
57    function lfGetNews(){
58        $conn = new SC_DBConn();
59        $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";
60        $list_data = $conn->getAll($sql);
61        return $list_data;
62    }
63}
64?>
Note: See TracBrowser for help on using the repository browser.