Ignore:
Timestamp:
2007/10/09 22:05:24 (19 years ago)
Author:
nanasess
Message:

クラス化対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/admin/order/mail_view.php

    r15532 r16357  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 require_once("../require.php"); 
    87 
    9 class LC_Page { 
    10     function LC_Page() { 
    11         $this->tpl_mainpage = 'order/mail_view.tpl'; 
    12     } 
    13 } 
     8// {{{ requires 
     9require_once("../../require.php"); 
     10require_once(CLASS_EX_PATH . "page_extends/admin/order/LC_Page_Admin_Order_MailView_Ex.php"); 
    1411 
    15 $objPage = new LC_Page(); 
    16 $objView = new SC_AdminView(); 
    17 $objSess = new SC_Session(); 
     12// }}} 
     13// {{{ generate page 
    1814 
    19 // 認証可否の判定 
    20 sfIsSuccess($objSess); 
    21  
    22 if(sfIsInt($_GET['send_id'])) { 
    23     $objQuery = new SC_Query(); 
    24     $col = "subject, mail_body"; 
    25     $where = "send_id = ?"; 
    26     $arrRet = $objQuery->select($col, "dtb_mail_history", $where, array($_GET['send_id'])); 
    27     $objPage->tpl_subject = $arrRet[0]['subject']; 
    28     $objPage->tpl_body = $arrRet[0]['mail_body']; 
    29 } 
    30  
    31 $objView->assignobj($objPage); 
    32 $objView->display($objPage->tpl_mainpage); 
    33 //----------------------------------------------------------------------------------------------------------------------------------- 
     15$objPage = new LC_Page_Admin_Order_MailView_Ex(); 
     16$objPage->init(); 
     17$objPage->process(); 
     18register_shutdown_function(array($objPage, "destroy")); 
     19?> 
Note: See TracChangeset for help on using the changeset viewer.