Changeset 20215


Ignore:
Timestamp:
2011/02/20 00:28:00 (13 years ago)
Author:
miningbrownie
Message:

これはいかがでしょ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php

    r20213 r20215  
    9999        } 
    100100 
     101        if(SC_Utils_Ex::sfIsInt($_POST['order_id'])) { 
     102            $this->arrMailHistory = $this->getMailHistory($_POST['order_id']); 
     103        } 
     104 
     105        $this->arrForm = $objFormParam->getFormParamList(); 
     106    } 
     107     
     108    /** 
     109     * 指定された注文番号のメール履歴を取得する。 
     110     * @var int order_id 
     111     */ 
     112    function getMailHistory($order_id){ 
    101113        $objQuery =& SC_Query::getSingletonInstance(); 
    102114        $col = "send_date, subject, template_id, send_id"; 
    103115        $where = "order_id = ?"; 
    104116        $objQuery->setOrder("send_date DESC"); 
    105  
    106         if(SC_Utils_Ex::sfIsInt($_POST['order_id'])) { 
    107             $this->arrMailHistory = $objQuery->select($col, "dtb_mail_history", $where, array($_POST['order_id'])); 
    108         } 
    109  
    110         $this->arrForm = $objFormParam->getFormParamList(); 
     117        return $objQuery->select($col, "dtb_mail_history", $where, array($order_id)); 
    111118    } 
    112119 
     120    /** 
     121     *  
     122     * メールを送る。 
     123     * @param SC_FormParam $objFormParam 
     124     */ 
    113125    function send(&$objFormParam){ 
    114126        // POST値の取得 
     
    170182 
    171183    /* パラメータ情報の初期化 */ 
     184    /** 
     185     * パラメータ情報の初期化 
     186     * @param SC_FormParam $objFormParam 
     187     */ 
    172188    function lfInitParam(&$objFormParam) { 
    173189        $objFormParam->addParam("テンプレート", "template_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
Note: See TracChangeset for help on using the changeset viewer.