source: branches/dev/html/admin/basis/mail_template.php @ 15011

Revision 15011, 1.4 KB checked in by nakanishi, 17 years ago (diff)

テンプレートをtemplateへ変更

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/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    // ÅÐÏ¿ºï½ü
36    $sql = "UPDATE dtb_mailtemplate SET del_flg = 1 WHERE template_id = ?";
37    $conn->query($sql, array($_GET['id']));
38    sfReload();
39}
40
41$sql = "SELECT * FROM dtb_mailtemplate WHERE del_flg = 0 ORDER BY template_id ASC";
42$list_data = $conn->getAll($sql);
43$linemax = count($list_data);
44
45for($i = 0;$i < count($list_data);$i++){
46   $split_data = explode(".",$list_data[$i]["create_date"]);
47   $list_data[$i]["create_date"] = $split_data[0];   
48}
49
50//print_r($list_data);
51$objPage->list_data = $list_data;
52$objPage->arrMagazineType = $arrMagazineTypeAll;
53
54$objView->assignobj($objPage);
55$objView->display(MAIN_FRAME);
56?>
Note: See TracBrowser for help on using the repository browser.