Ignore:
Timestamp:
2007/05/30 16:24:19 (19 years ago)
Author:
matsumoto
Message:
 
File:
1 edited

Legend:

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

    r13795 r13797  
    122122    $objFormParam->addParam("¥Õ¥Ã¥¿¡¼", "footer", LTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK")); 
    123123} 
     124 
     125function lfGetOrderData($order_id) { 
     126    global $objFormParam; 
     127    global $objPage; 
     128    if(sfIsInt($order_id)) { 
     129        // DB¤«¤é¼õÃí¾ðÊó¤òÆÉ¤ß¹þ¤à 
     130        $objQuery = new SC_Query(); 
     131        $where = "order_id = ?"; 
     132        $arrRet = $objQuery->select("*", "dtb_order", $where, array($order_id)); 
     133        $objFormParam->setParam($arrRet[0]); 
     134        list($point, $total_point) = sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']); 
     135        $objFormParam->setValue('total_point', $total_point); 
     136        $objFormParam->setValue('point', $point); 
     137        $objPage->arrDisp = $arrRet[0]; 
     138        // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 
     139        $arrRet = lfGetOrderDetail($order_id); 
     140        $arrRet = sfSwapArray($arrRet); 
     141        $objPage->arrDisp = array_merge($objPage->arrDisp, $arrRet); 
     142        $objFormParam->setParam($arrRet); 
     143         
     144        // ¤½¤Î¾»Ùʧ¤¤¾ðÊó¤òɽ¼¨ 
     145        if($objPage->arrDisp["memo02"] != "") $objPage->arrDisp["payment_info"] = unserialize($objPage->arrDisp["memo02"]); 
     146        if($objPage->arrDisp["memo01"] == PAYMENT_CREDIT_ID){ 
     147            $objPage->arrDisp["payment_type"] = "¥¯¥ì¥¸¥Ã¥È·èºÑ"; 
     148        }elseif($objPage->arrDisp["memo01"] == PAYMENT_CONVENIENCE_ID){ 
     149            $objPage->arrDisp["payment_type"] = "¥³¥ó¥Ó¥Ë·èºÑ"; 
     150        }else{ 
     151            $objPage->arrDisp["payment_type"] = "¤ª»Ùʧ¤¤"; 
     152        } 
     153    } 
     154} 
Note: See TracChangeset for help on using the changeset viewer.