source: branches/beta/html/admin/basis/mail_preview.php @ 16801

Revision 16801, 1.0 KB checked in by satou, 15 years ago (diff)

#132
複数のバグが混在していました。
修正完了です。

RevLine 
[13726]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() {
[16801]14        $this->tpl_mainpage = "basis/mail_preview.tpl";
[13726]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
[13769]28if ( $_GET['mode']=="preview" || $_GET['id']){
[13773]29        $sql = "SELECT * FROM dtb_mailtemplate WHERE template_id = ? AND del_flg = 0";
[13726]30        $id = $_GET['id'];
[14034]31        $result = $conn->getAll($sql, array($id));
[14035]32        print($result[0]["header"]);
[13754]33        if ( $result ){
[14640]34            if ( $result[0]["mail_method"] == 2 ){
35            // ¥Æ¥­¥¹¥È·Á¼°¤Î»þ¤Ï¥¿¥°Ê¸»ú¤ò¥¨¥¹¥±¡¼¥×
36                $objPage->escape_flag = 1;
37            }
[14027]38            $objPage->list_data = $result[0];   
[13754]39        }
40   
[13765]41    }
[14640]42
[13726]43$objView->assignobj($objPage);
44$objView->display($objPage->tpl_mainpage);
45
46?>
Note: See TracBrowser for help on using the repository browser.