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

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