source: branches/feature-module-update/data/class/pages/regist/LC_Page_Regist_Complete.php @ 15532

Revision 15532, 1.9 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_Regist_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_mainpage = 'regist/complete.tpl';
31        $this->tpl_css = URL_DIR . 'css/layout/regist/complete.css';
32        $this->tpl_title = '会員登録(完了ページ)';
33    }
34
35    /**
36     * Page のプロセス.
37     *
38     * @return void
39     */
40    function process() {
41        $objView = new SC_SiteView();
42        $objQuery = new SC_Query();
43        $objCampaignSess = new SC_CampaignSession();
44
45        // キャンペーンからの登録の場合の処理
46        if($_GET["cp"] != "") {
47            $arrCampaign= $objQuery->select("directory_name", "dtb_campaign", "campaign_id = ?", array($_GET["cp"]));
48            // キャンペーンディレクトリ名を保持
49            $dir_name = $arrCampaign[0]['directory_name'];
50        } else {
51            $dir_name = "";
52        }
53
54        // レイアウトデザインを取得
55        $helper = new SC_Helper_PageLayout_Ex();
56        $this = $helper->sfGetPageLayout($this, false, DEF_LAYOUT);
57
58        $objView->assignobj($objPage);
59        // フレームを選択(キャンペーンページから遷移なら変更)
60        if($objPage->dir_name != "") {
61            $objView->display(CAMPAIGN_TEMPLATE_PATH . $dir_name  . "/active/site_frame.tpl");
62            $objCampaignSess->delCampaign();
63        } else {
64            $objView->display(SITE_FRAME);
65        }
66    }
67
68    /**
69     * デストラクタ.
70     *
71     * @return void
72     */
73    function destroy() {
74        parent::destroy();
75    }
76}
77?>
Note: See TracBrowser for help on using the repository browser.