| Revision 4608,
1.2 KB
checked in by kakinaka, 20 years ago
(diff) |
|
blank
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | require_once("../require.php"); |
|---|
| 4 | |
|---|
| 5 | class LC_Page { |
|---|
| 6 | var $arrSession; |
|---|
| 7 | var $list_data; |
|---|
| 8 | var $arrMagazineType; |
|---|
| 9 | |
|---|
| 10 | function LC_Page() { |
|---|
| 11 | $this->tpl_mainpage = 'mail/template.tpl'; |
|---|
| 12 | $this->tpl_mainno = 'mail'; |
|---|
| 13 | $this->tpl_subnavi = 'mail/subnavi.tpl'; |
|---|
| 14 | $this->tpl_subno = "template"; |
|---|
| 15 | $this->tpl_subtitle = '¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê'; |
|---|
| 16 | } |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | $conn = new SC_DBConn(); |
|---|
| 20 | $objPage = new LC_Page(); |
|---|
| 21 | $objView = new SC_AdminView(); |
|---|
| 22 | $objSess = new SC_Session(); |
|---|
| 23 | |
|---|
| 24 | // ǧ¾Ú²ÄÈݤÎȽÄê |
|---|
| 25 | sfIsSuccess($objSess); |
|---|
| 26 | |
|---|
| 27 | if ( $_GET['mode'] == "delete" && sfCheckNumLength($_GET['id'])===true ){ |
|---|
| 28 | |
|---|
| 29 | // ¥á¡¼¥ëôÅö¤Î²èÁü¤¬¤¢¤ì¤Ðºï½ü¤·¤Æ¤ª¤¯ |
|---|
| 30 | $sql = "SELECT charge_image FROM dtb_mailmaga_template WHERE template_id = ?"; |
|---|
| 31 | $result = $conn->getOne($sql, array($_GET["id"])); |
|---|
| 32 | if (strlen($result) > 0) { |
|---|
| 33 | @unlink(IMAGE_SAVE_DIR. $result); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | // ÅÐÏ¿ºï½ü |
|---|
| 37 | $sql = "UPDATE dtb_mailmaga_template SET del_flg = 1 WHERE template_id = ?"; |
|---|
| 38 | $conn->query($sql, array($_GET['id'])); |
|---|
| 39 | sfReload(); |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | $sql = "SELECT *, to_char(create_date, 'YYYY/MM/DD HH24:MI') as disp_date FROM dtb_mailmaga_template WHERE del_flg = 0 ORDER BY create_date DESC"; |
|---|
| 44 | $objPage->list_data = $list_data = $conn->getAll($sql); |
|---|
| 45 | $objPage->arrMagazineType = $arrMagazineTypeAll; |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | $objView->assignobj($objPage); |
|---|
| 49 | $objView->display(MAIN_FRAME); |
|---|
| 50 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.