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