source: branches/dev/html/admin/basis/preview.php @ 13752

Revision 13752, 961 bytes checked in by nakanishi, 19 years ago (diff)
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
9class LC_Page {
10    var $arrSession;
11    var $body;
12    var $list_data;
13
14    function LC_Page() {
15        $this->tpl_mainpage = 'basis/preview.tpl';
16    }
17}
18
19//---- ¥Ú¡¼¥¸½é´üÀßÄê
20$conn = new SC_DBConn();
21$objPage = new LC_Page();
22$objView = new SC_AdminView();
23$objSess = new SC_Session();
24$objDate = new SC_Date();
25
26// ǧ¾Ú²ÄÈݤÎȽÄê
27sfIsSuccess($objSess);
28
29
30if ( $_POST['preview'] ){
31    $objPage->body = $_POST['body'];
32        $sql = "SELECT header, footer,send_type FROM dtb_mailtemplate WHERE template_id = ?";
33        $id = $_GET['id'];
34    }
35    $result = $conn->getAll($sql, array($id));
36   
37   
38    if ( $result ){
39        if ( $result[0]["mail_method"] == 2 ){
40            // ¥Æ¥­¥¹¥È·Á¼°¤Î»þ¤Ï¥¿¥°Ê¸»ú¤ò¥¨¥¹¥±¡¼¥×
41            $objPage->escape_flag = 1;
42        }
43        $objPage->body = $result[0]["body"];
44    }
45
46}
47   
48$objView->assignobj($objPage);
49$objView->display($objPage->tpl_mainpage);
50
51?>
Note: See TracBrowser for help on using the repository browser.