Changeset 14622 for branches


Ignore:
Timestamp:
2007/06/14 11:15:24 (19 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/basis/mail.php

    r14141 r14622  
    3232$objPage->arrSendType = array("¥Ñ¥½¥³¥ó","·ÈÂÓ"); 
    3333 
    34 if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id'])===true ){ 
    35      
     34if ( $_GET['mode'] == 'edit' && sfCheckNumLength($_GET['template_id']) === true ){ 
    3635    if ( sfCheckNumLength( $_GET['template_id']) ){ 
    3736        $sql = "SELECT * FROM dtb_mailtemplate WHERE template_id = ?"; 
    3837        $result = $conn->getAll($sql, array($_GET['template_id']) ); 
    39         //print_r($result); 
    4038        if ( $result ){ 
    4139            $objPage->arrForm = $result[0]; 
     
    4442        } 
    4543    } 
    46      
    4744} elseif ( $_POST['mode'] == 'regist' && sfCheckNumLength( $_POST['template_id']) ){ 
    48 //    elseif ( $_GET['mode'] == 'regist' ){ 
    4945    // POST¥Ç¡¼¥¿¤Î°ú¤­·Ñ¤® 
    5046    $objPage->arrForm = lfConvertParam($_POST); 
     
    5349        // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ 
    5450        $objPage->tpl_msg = "¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿"; 
    55          
    5651    } else { 
    5752        // Àµ¾ï 
    5853        lfRegist($conn, $objPage->arrForm); 
    59          
     54         
     55        sfPrintR($objPage->arrForm); 
     56         
    6057        // ´°Î»¥á¥Ã¥»¡¼¥¸ 
    61         $objPage->tpl_onload = "window.alert('¥á¡¼¥ëÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£¥Æ¥ó¥×¥ì¡¼¥È¤òÁªÂò¤·¤ÆÆâÍÆ¤ò¤´³Îǧ¤¯¤À¤µ¤¤¡£');"; 
    62         //unset($objPage->arrForm); 
     58        $objPage->tpl_onload = "window.alert('¥á¡¼¥ëÀßÄ꤬´°Î»¤·¤Þ¤·¤¿¡£');"; 
    6359    } 
    6460} 
     
    8379 
    8480} 
    85  
    8681 
    8782function lfConvertParam($array) { 
Note: See TracChangeset for help on using the changeset viewer.