Revision 15080,
834 bytes
checked in by nanasess, 17 years ago
(diff) |
svn properties 設定
- svn:mime-type - application/x-httpd-php; charset=UTF-8
- svn:keywords - Id
|
-
Property svn:keywords set to
Id
-
Property svn:mime-type set to
application/x-httpd-php; charset=UTF-8
|
Rev | Line | |
---|
| 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
| 4 | * |
---|
| 5 | * http://www.lockon.co.jp/ |
---|
| 6 | */ |
---|
| 7 | class LC_NewsPage { |
---|
| 8 | function LC_NewsPage() { |
---|
| 9 | /** 必ず変更する **/ |
---|
| 10 | $this->tpl_mainpage = BLOC_PATH . 'news.tpl'; // メイン |
---|
| 11 | } |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | $objSubPage = new LC_NewsPage(); |
---|
| 15 | $objSubView = new SC_SiteView(); |
---|
| 16 | |
---|
| 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 | } |
---|
| 29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.