Changeset 14055


Ignore:
Timestamp:
2007/06/01 11:34:08 (17 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/lib/slib.php

    r14006 r14055  
    16601660 
    16611661/* ¼õÃí´°Î»¥á¡¼¥ëÁ÷¿® */ 
    1662 function sfSendOrderMail($order_id, $template_id, $subject = "", $header = "", $footer = "", $send = true) { 
     1662function sfSendOrderMail($order_id, $template_id, $subject = "", $body, $send = true) { 
    16631663    global $arrMAILTPLPATH; 
    16641664     
     
    16701670    $objQuery = new SC_Query(); 
    16711671         
    1672     if($subject == "" && $header == "" && $footer == "") { 
     1672    if($subject == "" && $body == "" ) { 
    16731673        // ¥á¡¼¥ë¥Æ¥ó¥×¥ì¡¼¥È¾ðÊó¤Î¼èÆÀ 
    16741674        $where = "template_id = ?"; 
    1675         $arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($template_id)); 
    1676         $objPage->tpl_header = $arrRet[0]['header']; 
    1677         $objPage->tpl_footer = $arrRet[0]['footer']; 
     1675        $arrRet = $objQuery->select("subject, body", "dtb_mailtemplate", $where, array($template_id)); 
     1676        $objPage->tpl_header = $arrRet[0]['body']; 
     1677//      $objPage->tpl_footer = $arrRet[0]['footer']; 
    16781678        $tmp_subject = $arrRet[0]['subject']; 
    16791679    } else { 
    1680         $objPage->tpl_header = $header; 
    1681         $objPage->tpl_footer = $footer; 
     1680        $objPage->tpl_header = $body; 
     1681//      $objPage->tpl_footer = $footer; 
    16821682        $tmp_subject = $subject; 
    16831683    } 
Note: See TracChangeset for help on using the changeset viewer.