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

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

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

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    var $default_template;
13    var $default_template_mobile;
14    var $arrMagazineType;
15   
16    function LC_Page() {
17        $this->tpl_mainpage = "basis/mail_template.tpl";
18        $this->tpl_mainno = "basis";
19        $this->tpl_subnavi = "basis/subnavi.tpl";
20        $this->tpl_subno = "mail";
21        $this->tpl_subtitle = "¥á¡¼¥ëÀßÄê";
22    }
23}
24
25$conn = new SC_DBConn();
26$objPage = new LC_Page();
27$objView = new SC_AdminView();
28$objSess = new SC_Session();
29
30// ǧ¾Ú²ÄÈݤÎȽÄê
31sfIsSuccess($objSess);
32
33if ($_GET['mode'] == "delete" && sfCheckNumLength($_GET['id'])===true) {
34    // ÅÐÏ¿ºï½ü
35    $sql = "UPDATE dtb_mailtemplate SET del_flg = 1 WHERE template_id = ?";
36    $conn->query($sql, array($_GET['id']));
37    sfReload();
38}
39
40$sql = "SELECT * FROM dtb_mailtemplate WHERE del_flg = 0 ORDER BY template_id ASC";
41$list_data = $conn->getAll($sql);
42$linemax = count($list_data);
43
44for ($i = 0; $i < count($list_data); $i++) {
45   $split_data = explode(".",$list_data[$i]["create_date"]);
46   $list_data[$i]["create_date"] = $split_data[0];   
47}
48
49//print_r($list_data);
50$objPage->list_data = $list_data;
51$objPage->arrMagazineType = $arrMagazineTypeAll;
52
53$objView->assignobj($objPage);
54$objView->display(MAIN_FRAME);
55?>
Note: See TracBrowser for help on using the repository browser.