- Timestamp:
- 2007/06/14 11:15:24 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/html/admin/basis/mail.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/basis/mail.php
r14141 r14622 32 32 $objPage->arrSendType = array("¥Ñ¥½¥³¥ó","·ÈÂÓ"); 33 33 34 if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id'])===true ){ 35 34 if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id']) === true ){ 36 35 if ( sfCheckNumLength( $_GET['template_id']) ){ 37 36 $sql = "SELECT * FROM dtb_mailtemplate WHERE template_id = ?"; 38 37 $result = $conn->getAll($sql, array($_GET['template_id']) ); 39 //print_r($result);40 38 if ( $result ){ 41 39 $objPage->arrForm = $result[0]; … … 44 42 } 45 43 } 46 47 44 } elseif ( $_POST['mode'] == 'regist' && sfCheckNumLength( $_POST['template_id']) ){ 48 // elseif ( $_GET['mode'] == 'regist' ){49 45 // POST¥Ç¡¼¥¿¤Î°ú¤·Ñ¤® 50 46 $objPage->arrForm = lfConvertParam($_POST); … … 53 49 // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ 54 50 $objPage->tpl_msg = "¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿"; 55 56 51 } else { 57 52 // Àµ¾ï 58 53 lfRegist($conn, $objPage->arrForm); 59 54 55 sfPrintR($objPage->arrForm); 56 60 57 // ´°Î»¥á¥Ã¥»¡¼¥¸ 61 $objPage->tpl_onload = "window.alert('¥á¡¼¥ëÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£¥Æ¥ó¥×¥ì¡¼¥È¤òÁªÂò¤·¤ÆÆâÍÆ¤ò¤´³Îǧ¤¯¤À¤µ¤¤¡£');"; 62 //unset($objPage->arrForm); 58 $objPage->tpl_onload = "window.alert('¥á¡¼¥ëÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£');"; 63 59 } 64 60 } … … 83 79 84 80 } 85 86 81 87 82 function lfConvertParam($array) {
Note: See TracChangeset
for help on using the changeset viewer.
