source: branches/feature-module-update/data/class/pages/mypage/LC_Page_Mypage_ChangeComplete.php @ 16237

Revision 16237, 2.8 KB checked in by nanasess, 17 years ago (diff)

typo fix

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php
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_Mypage_ChangeComplete 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 . 'mypage/change_complete.tpl';
31        $this->tpl_title = 'MYページ/会員登録内容変更(完了ページ)';
32        $this->tpl_navi = TEMPLATE_DIR . 'mypage/navi.tpl';
33        $this->tpl_mypageno = 'change';
34        $this->tpl_column_num = 1;
35    }
36
37    /**
38     * Page のプロセス.
39     *
40     * @return void
41     */
42    function process() {
43        $objView = new SC_SiteView();
44        $objCustomer = new SC_Customer();
45
46        // レイアウトデザインを取得
47        $objLayout = new SC_Helper_PageLayout_Ex();
48        $objLayout->sfGetPageLayout($this, false, "mypage/index.php");
49
50        //ログイン判定
51        if (!$objCustomer->isLoginSuccess()){
52            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
53        } else {
54            //マイページトップ顧客情報表示用
55            $this->CustomerName1 = $objCustomer->getvalue('name01');
56            $this->CustomerName2 = $objCustomer->getvalue('name02');
57            $this->CustomerPoint = $objCustomer->getvalue('point');
58        }
59
60        $objView->assignobj($this);
61        $objView->display(SITE_FRAME);
62    }
63
64    /**
65     * モバイルページを初期化する.
66     *
67     * @return void
68     */
69    function mobileInit() {
70        $this->tpl_mainpage = 'mypage/change_complete.tpl';
71        $this->tpl_title = 'MYページ/会員登録内容変更(完了ページ)';
72    }
73
74    /**
75     * Page のプロセス(モバイル).
76     *
77     * @return void
78     */
79    function mobileProcess() {
80        $objView = new SC_MobileView();
81        $objCustomer = new SC_Customer();
82
83
84        //セッション情報を最新の状態に更新する
85        $objCustomer->updateSession();
86
87        //ログイン判定
88        if (!$objCustomer->isLoginSuccess(true)){
89            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
90        }else {
91            //マイページトップ顧客情報表示用
92            $this->CustomerName1 = $objCustomer->getvalue('name01');
93            $this->CustomerName2 = $objCustomer->getvalue('name02');
94            $this->CustomerPoint = $objCustomer->getvalue('point');
95        }
96
97        $objView->assignobj($this);
98        $objView->display(SITE_FRAME);
99    }
100
101    /**
102     * デストラクタ.
103     *
104     * @return void
105     */
106    function destroy() {
107        parent::destroy();
108    }
109}
110?>
Note: See TracBrowser for help on using the repository browser.