source: branches/feature-module-update/data/class/pages/entry/LC_Page_Entry_Complete.php @ 16155

Revision 16155, 2.5 KB checked in by nanasess, 17 years ago (diff)

モバイル対応

  • 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:LC_Page_Entry_Complete.php 15532 2007-08-31 14:39:46Z nanasess $
17 */
18class LC_Page_Entry_Complete 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_css = URL_DIR.'css/layout/entry/complete.css';
31
32        // メインテンプレートを設定
33        if(CUSTOMER_CONFIRM_MAIL == true) {
34            // 仮会員登録完了
35            $this->tpl_mainpage = 'entry/complete.tpl';
36        } else {
37            // 本会員登録完了
38            $this->tpl_mainpage = 'regist/complete.tpl';
39        }
40
41        $this->tpl_title .= '会員登録(完了ページ)';
42    }
43
44    /**
45     * Page のプロセス.
46     *
47     * @return void
48     */
49    function process() {
50        $objView = new SC_SiteView();
51        $objCampaignSess = new SC_CampaignSession();
52
53        // transaction check
54        if (!$this->isValidToken()) {
55            SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", true);
56        }
57
58        // レイアウトデザインを取得
59        $layout = new SC_Helper_PageLayout_Ex();
60        $layout->sfGetPageLayout($this, false, DEF_LAYOUT);
61
62        // キャンペーンからの遷移がチェック
63        $this->is_campaign = $objCampaignSess->getIsCampaign();
64        $this->campaign_dir = $objCampaignSess->getCampaignDir();
65
66        $objView->assignobj($this);
67        // フレームを選択(キャンペーンページから遷移なら変更)
68        $objCampaignSess->pageView($objView);
69    }
70
71    /**
72     * モバイルページを初期化する.
73     *
74     * @return void
75     */
76    function mobileInit() {
77        $this->init();
78    }
79
80    /**
81     * Page のプロセス(モバイル).
82     *
83     * @return void
84     */
85    function mobileProcess() {
86        $objView = new SC_MobileView();
87
88        // レイアウトデザインを取得
89        $objLayout = new SC_Helper_PageLayout_Ex();
90        $objLayout->sfGetPageLayout($this, false, DEF_LAYOUT);
91
92        //---- ページ表示
93        $objView->assignobj($this);
94        $objView->display(SITE_FRAME);
95    }
96
97    /**
98     * デストラクタ.
99     *
100     * @return void
101     */
102    function destroy() {
103        parent::destroy();
104    }
105}
106?>
Note: See TracBrowser for help on using the repository browser.