Changeset 13822
- Timestamp:
- 2007/05/30 17:30:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/order/mail.php
r13821 r13822 24 24 $objView = new SC_AdminView(); 25 25 $objSess = new SC_Session(); 26 27 // ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹28 $objFormParam = new SC_FormParam();29 // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½30 lfInitParam();31 32 // ǧ¾Ú²ÄÈݤÎȽÄê33 26 sfIsSuccess($objSess); 34 27 … … 40 33 } 41 34 42 $objPage->tpl_order_id = order_id; 35 36 $objPage->tpl_order_id = $_POST['order_id']; 37 $objPage->tpl_order_name01 = $_POST['order_name01']; 38 $objPage->tpl_order_name02 = $_POST['order_name02']; 39 $objPage->tpl_order_email = $_POST['order_email']; 43 40 print_r($_POST); 44 // DB¤«¤é¼õÃí¾ðÊó¤òÆɤ߹þ¤à 45 lfGetOrderData($order_id); 41 // ¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹ 42 $objFormParam = new SC_FormParam(); 43 // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ 44 lfInitParam(); 46 45 47 46 switch($_POST['mode']) { … … 125 124 } 126 125 127 function lfGetOrderData($order_id) { 128 global $objFormParam; 129 global $objPage; 130 if(sfIsInt($order_id)) { 131 // DB¤«¤é¼õÃí¾ðÊó¤òÆɤ߹þ¤à 132 $objQuery = new SC_Query(); 133 $where = "order_id = ?"; 134 $arrRet = $objQuery->select("*", "dtb_order", $where, array($order_id)); 135 //$objFormParam->setParam($arrRet[0]); 136 print_r($arrRet); 137 list($point, $total_point) = sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']); 138 $objFormParam->setValue('total_point', $total_point); 139 $objFormParam->setValue('point', $point); 140 $objPage->arrDisp = $arrRet[0]; 141 } 142 } 126 //function lfGetOrderData($order_id) { 127 // global $objFormParam; 128 // global $objPage; 129 // if(sfIsInt($order_id)) { 130 // // DB¤«¤é¼õÃí¾ðÊó¤òÆɤ߹þ¤à 131 // $objQuery = new SC_Query(); 132 // $where = "order_id = ?"; 133 // $arrRet = $objQuery->select("*", "dtb_order", $where, array($order_id)); 134 // $objFormParam->setParam($arrRet[0]); 135 // list($point, $total_point) = sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']); 136 // $objFormParam->setValue('total_point', $total_point); 137 // $objFormParam->setValue('point', $point); 138 // $objPage->arrDisp = $arrRet[0]; 139 // // ¼õÃí¾ÜºÙ¥Ç¡¼¥¿¤Î¼èÆÀ 140 // $arrRet = lfGetOrderDetail($order_id); 141 // $arrRet = sfSwapArray($arrRet); 142 // $objPage->arrDisp = array_merge($objPage->arrDisp, $arrRet); 143 // $objFormParam->setParam($arrRet); 144 // 145 // // ¤½¤Î¾»Ùʧ¤¤¾ðÊó¤òɽ¼¨ 146 // if($objPage->arrDisp["memo02"] != "") $objPage->arrDisp["payment_info"] = unserialize($objPage->arrDisp["memo02"]); 147 // if($objPage->arrDisp["memo01"] == PAYMENT_CREDIT_ID){ 148 // $objPage->arrDisp["payment_type"] = "¥¯¥ì¥¸¥Ã¥È·èºÑ"; 149 // }elseif($objPage->arrDisp["memo01"] == PAYMENT_CONVENIENCE_ID){ 150 // $objPage->arrDisp["payment_type"] = "¥³¥ó¥Ó¥Ë·èºÑ"; 151 // }else{ 152 // $objPage->arrDisp["payment_type"] = "¤ª»Ùʧ¤¤"; 153 // } 154 // } 155 //}
Note: See TracChangeset
for help on using the changeset viewer.