- Timestamp:
- 2011/03/07 15:23:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_Mail.php
r20507 r20538 125 125 $customer_id = $arrOrder['customer_id']; 126 126 $objQuery->setOrder('customer_id'); 127 $arrRet = $objQuery->select( "point", "dtb_customer", "customer_id = ?", array($customer_id));127 $arrRet = $objQuery->select('point', "dtb_customer", "customer_id = ?", array($customer_id)); 128 128 $arrCustomer = isset($arrRet[0]) ? $arrRet[0] : ""; 129 129 … … 136 136 137 137 foreach($arrOther as $other_key => $other_val){ 138 if(SC_Utils_Ex::sfTrim($other_val[ "value"]) == ""){139 $arrOther[$other_key][ "value"] = "";138 if(SC_Utils_Ex::sfTrim($other_val['value']) == ""){ 139 $arrOther[$other_key]['value'] = ""; 140 140 } 141 141 } … … 285 285 286 286 $objMailText = new SC_SiteView_Ex(); 287 $objMailText->assign( "CONF", $CONF);287 $objMailText->assign('CONF', $CONF); 288 288 $objMailText->assign("name01", $arrCustomerData['name01']); 289 289 $objMailText->assign("name02", $arrCustomerData['name02']); 290 $objMailText->assign( "uniqid", $arrCustomerData['secret_key']);290 $objMailText->assign('uniqid', $arrCustomerData['secret_key']); 291 291 $objMailText->assignobj($arrCustomerData); 292 292 $objMailText->assignobj($this); … … 319 319 $to_addr = $arrCustomerData["email_mobile"]; 320 320 }else{ 321 $to_addr = $arrCustomerData[ "email"];321 $to_addr = $arrCustomerData['email']; 322 322 } 323 323 $objMail->setTo($to_addr, $arrCustomerData["name01"] . $arrCustomerData["name02"] ." 様"); … … 414 414 415 415 // 顧客名の変換 416 $customerName = trim($arrDestination[ "name"]);417 $subjectBody = preg_replace("/{name}/", $customerName, $arrMail[ "subject"]);418 $mailBody = preg_replace("/{name}/", $customerName, $arrMail[ "body"]);416 $customerName = trim($arrDestination['name']); 417 $subjectBody = preg_replace("/{name}/", $customerName, $arrMail['subject']); 418 $mailBody = preg_replace("/{name}/", $customerName, $arrMail['body']); 419 419 420 420 $objMail->setItem( 421 $arrDestination[ "email"],421 $arrDestination['email'], 422 422 $subjectBody, 423 423 $mailBody,
Note: See TracChangeset
for help on using the changeset viewer.