Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
4 | * |
---|
5 | * http://www.lockon.co.jp/ |
---|
6 | */ |
---|
7 | require_once("../require.php"); |
---|
8 | |
---|
9 | class 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 | // ǧ¾Ú²ÄÈݤÎȽÄê |
---|
26 | sfIsSuccess($objSess); |
---|
27 | |
---|
28 | if ( $_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 | $objPage->list_data = $result[0]; |
---|
39 | } |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | $objView->assignobj($objPage); |
---|
44 | $objView->display($objPage->tpl_mainpage); |
---|
45 | |
---|
46 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.