Changeset 13786


Ignore:
Timestamp:
2007/05/30 14:02:46 (17 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

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

    r13716 r13786  
    2121        $this->tpl_mainno = 'basis'; 
    2222        $this->tpl_subnavi = 'basis/subnavi.tpl'; 
    23         $this->tpl_subno = "template"; 
     23        $this->tpl_subno = "mail"; 
    2424    } 
    2525} 
     
    4444 
    4545// ¥â¡¼¥É¤Ë¤è¤ë½èÍýʬ´ô 
    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' ) { 
     46if ( $_GET['mode'] == 'regist' ) { 
    5747     
    5848    // ¿·µ¬ÅÐÏ¿ 
    59     $objPage->arrForm = lfConvData( $_POST ); 
     49    $objPage->arrForm = lfConvData( $_GET ); 
    6050    $objPage->arrErr = lfErrorCheck($objPage->arrForm); 
    6151     
    6252    if ( ! $objPage->arrErr ){ 
    6353        // ¥¨¥é¡¼¤¬Ìµ¤¤¤È¤­¤ÏÅÐÏ¿¡¦ÊÔ½¸ 
    64         lfRegistData( $objPage->arrForm, $_POST['template_id']);     
    65         sfReload("mode=complete");  // ¼«Ê¬¤òºÆÆɹþ¤·¤Æ¡¢´°Î»²èÌ̤ØÁ«°Ü 
     54        lfRegistData( $objPage->arrForm, $_GET['template_id']);  
     55        //sfReload("mode=complete");    // ¼«Ê¬¤òºÆÆɹþ¤·¤Æ¡¢´°Î»²èÌ̤ØÁ«°Ü 
    6656    } 
    67      
    68 } elseif ( $_GET['mode'] == 'complete' ) {       
    69      
    70     // ´°Î»²èÌÌɽ¼¨ 
    71     $objPage->tpl_mainpage = 'basis/template_complete.tpl'; 
    72      
    7357}  
    7458 
Note: See TracChangeset for help on using the changeset viewer.