source: branches/comu-utf8/html/regist/complete.php @ 15099

Revision 15099, 1.2 KB checked in by Yammy, 17 years ago (diff)

UTF-8変換済みファイルインポート
1.3.4ベース

Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8require_once("../require.php");
9
10class LC_Page{
11    function LC_Page(){
12        $this->tpl_mainpage = 'regist/complete.tpl';
13        $this->tpl_css = URL_DIR.'css/layout/regist/complete.css';
14        $this->tpl_title = '会員登録(完了ページ)';
15    }
16}
17
18$objPage = new LC_Page();
19$objView = new SC_SiteView();
20$objQuery = new SC_Query();
21$objCampaignSess = new SC_CampaignSession();
22
23// キャンペーンからの登録の場合の処理
24if($_GET["cp"] != "") {
25    $arrCampaign= $objQuery->select("directory_name", "dtb_campaign", "campaign_id = ?", array($_GET["cp"]));
26    // キャンペーンディレクトリ名を保持
27    $dir_name = $arrCampaign[0]['directory_name'];
28} else {
29    $dir_name = "";
30}
31
32// レイアウトデザインを取得
33$objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT);
34
35$objView->assignobj($objPage);
36// フレームを選択(キャンペーンページから遷移なら変更)
37if($objPage->dir_name != "") {
38    $objView->display(CAMPAIGN_TEMPLATE_PATH . $dir_name  . "/active/site_frame.tpl");
39    $objCampaignSess->delCampaign();
40} else {
41    $objView->display(SITE_FRAME); 
42}
43?>
Note: See TracBrowser for help on using the repository browser.