Changeset 13786
- Timestamp:
- 2007/05/30 14:02:46 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/basis/template_input.php
r13716 r13786 21 21 $this->tpl_mainno = 'basis'; 22 22 $this->tpl_subnavi = 'basis/subnavi.tpl'; 23 $this->tpl_subno = " template";23 $this->tpl_subno = "mail"; 24 24 } 25 25 } … … 44 44 45 45 // ¥â¡¼¥É¤Ë¤è¤ë½èÍýʬ´ô 46 if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id'])===true ){ 47 48 // ÊÔ½¸ 49 $sql = "SELECT * FROM dtb_templates WHERE template_id = ? AND delete_flag = 0"; 50 $result = $conn->getAll($sql, array($_GET['template_id'])); 51 $objPage->arrForm = $result[0]; 52 53 //print_r($result[0]);exit; 54 55 56 } elseif ( $_POST['mode'] == 'regist' ) { 46 if ( $_GET['mode'] == 'regist' ) { 57 47 58 48 // ¿·µ¬ÅÐÏ¿ 59 $objPage->arrForm = lfConvData( $_ POST );49 $objPage->arrForm = lfConvData( $_GET ); 60 50 $objPage->arrErr = lfErrorCheck($objPage->arrForm); 61 51 62 52 if ( ! $objPage->arrErr ){ 63 53 // ¥¨¥é¡¼¤¬Ìµ¤¤¤È¤¤ÏÅÐÏ¿¡¦ÊÔ½¸ 64 lfRegistData( $objPage->arrForm, $_ POST['template_id']);65 sfReload("mode=complete"); // ¼«Ê¬¤òºÆÆɹþ¤·¤Æ¡¢´°Î»²èÌ̤ØÁ«°Ü54 lfRegistData( $objPage->arrForm, $_GET['template_id']); 55 //sfReload("mode=complete"); // ¼«Ê¬¤òºÆÆɹþ¤·¤Æ¡¢´°Î»²èÌ̤ØÁ«°Ü 66 56 } 67 68 } elseif ( $_GET['mode'] == 'complete' ) {69 70 // ´°Î»²èÌÌɽ¼¨71 $objPage->tpl_mainpage = 'basis/template_complete.tpl';72 73 57 } 74 58
Note: See TracChangeset
for help on using the changeset viewer.