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

Revision 13754, 1.0 KB 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        $sql = "SELECT header, footer,send_type FROM dtb_mailtemplate WHERE template_id = ?";
32        $id = $_GET['id'];
33        $result = $conn->getAll($sql, array($id));
34   
35        if ( $result ){
36                if ( $result[0]["mail_method"] == 2 ){
37                // ¥Æ¥­¥¹¥È·Á¼°¤Î»þ¤Ï¥¿¥°Ê¸»ú¤ò¥¨¥¹¥±¡¼¥×
38                    $objPage->escape_flag = 1;
39                }
40            $objPage->body = $result[0]["body"];
41        }
42   
43    }
44   
45   
46   
47
48   
49$objView->assignobj($objPage);
50$objView->display($objPage->tpl_mainpage);
51
52?>
Note: See TracBrowser for help on using the repository browser.