source: branches/feature-module-update/data/class/pages/LC_Page_Index.php @ 15828

Revision 15828, 1.6 KB checked in by nanasess, 17 years ago (diff)

$tpl_mainpage 修正

  • Property svn:keywords set to Id
  • 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 * Index のページクラス.
13 *
14 * @package Page
15 * @author LOCKON CO.,LTD.
16 * @version $Id:LC_Page_Index.php 15532 2007-08-31 14:39:46Z nanasess $
17 */
18class LC_Page_Index 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 =  TEMPLATE_DIR . "top.tpl";
31    }
32
33    /**
34     * モバイルページを初期化する.
35     *
36     * @return void
37     */
38    function mobileInit() {
39        $this->tpl_mainpage = 'top.tpl';
40    }
41
42    /**
43     * Page のプロセス.
44     *
45     * @return void
46     */
47    function process() {
48
49        $objView = new SC_SiteView();
50
51        // レイアウトデザインを取得
52        $layout = new SC_Helper_PageLayout_Ex();
53        $layout->sfGetPageLayout($this, false, "index.php");
54
55        $objView->assignobj($this);
56        $objView->display(SITE_FRAME);
57    }
58
59    /**
60     * Page のプロセス(モバイル).
61     *
62     * @return void
63     */
64    function mobileProcess() {
65        $conn = new SC_DBConn();
66        $objCustomer = new SC_Customer();
67
68        $objView = new SC_MobileView();
69        $objView->assign("isLogin", $objCustomer->isLoginSuccess());
70        $objView->assignobj($this);
71        $objView->display(SITE_FRAME);
72    }
73
74    /**
75     * デストラクタ.
76     *
77     * @return void
78     */
79    function destroy() {
80        parent::destroy();
81    }
82}
83?>
Note: See TracBrowser for help on using the repository browser.