source: branches/feature-module-update/html/admin/contents/campaign_preview.php @ 15080

Revision 15080, 1.1 KB checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/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 */
7require_once("../require.php");
8
9//---- ページ表示クラス
10class LC_Page {
11   
12    function LC_Page() {
13    }
14}
15
16$objPage = new LC_Page();
17$objView = new SC_SiteView(false);
18$objQuery = new SC_Query();
19
20// 正しく値が取得できない場合はキャンペーンTOPへ
21if($_GET['campaign_id'] == "" || $_GET['status'] == "") {
22    header("location: ".URL_CAMPAIGN_TOP);
23}
24
25// statusの判別
26switch($_GET['status']) {
27    case 'active':
28        $status = CAMPAIGN_TEMPLATE_ACTIVE;
29        break;
30    case 'end':
31        $status = CAMPAIGN_TEMPLATE_END;
32        break;
33    default:
34        $status = CAMPAIGN_TEMPLATE_ACTIVE;
35        break;
36}
37
38// ディレクトリ名を取得名     
39$directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($_GET['campaign_id']));
40
41$template_dir = CAMPAIGN_TEMPLATE_PATH . $directory_name  . "/" . $status . "preview.tpl";
42
43//---- ページ表示
44$objView->assignobj($objPage);
45$objView->display($template_dir);
Note: See TracBrowser for help on using the repository browser.