我在該函數中創建一個電子郵件功能,我設置電子郵件模板的代碼,並設置從數據庫中提取的值.i上傳一個圖像,其中狀態場是3,現在我想打印證實3而不是在我的順序排列,我得到的所有data.What電子郵件template.Here我做來打印確認的3 代替打印一些數據,而不是從數據庫中提取的數據
public function setworkerTemplate($RESPONSE,$name)
{
$temp=$RESPONSE['temp'];
$order=$RESPONSE['order'];
$cust=$RESPONSE['cust'];
$workers=$RESPONSE['workers'];
echo "<pre>";
print_r($order);
$logo=JURI::root()."images/logo-1.png";
$html ='<html>';
$html.='<body>';
$html.='<div style="width:100%; background-color:#f6f6f6; border-top:#337ab7 5px solid; border-bottom:#337ab7 5px solid;">';
$html.='<div style=" margin-left:15%; margin-right:15%; ">';
$html.='<div style=" margin-top:5%;">';
$html.='<center><img src="'.$logo.'" style="width:200px; height:100px;"></center>';
$html.='</div>';
$html.='<div style=" margin-top:1%; color: #666; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 16px;">';
$html.='<b>Dear ,'.$workers['firstname'].'</b><br>';
$html.='<br>';
$html.='<b>Please find details about your schedule today for <a href="#">steamatichv.com</a> below.</b><br>';
$html.='<br>';
$html.='<table style="width:100%;" border="1" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF" bordercolor="#cccccc ">';
$html.='<tr style=" box-shadow: 0px 0px 3px #888888;;">';
$html.='<td style="padding-left: 5px;"><b>Order Number</b></td>';
$html.='<td style="padding-left: 5px;"><b>Schedule Date</b></td>';
$html.='<td style="padding-left: 5px;"><b>Schedule Time</b></td>';
$html.='<td style="padding-left: 5px;"><b>Status</b></td>';
$html.='</tr>';
$html.='<tr>';
$html.='<td>'.$order['Order_number'].'</td>';
$html.='<td>'.$order['schedule_date'].'</td>';
$html.='<td>'.$order['schedule_timeslot'].'</td>';
**[$html.='<td>'.$order\['published'\].'</td>';][1]**
$html.='</tr>';
$html.='</table><br>';
$html.='<div style=" margin-top:1%; color: #666; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 16px;">';
$html.='<p>Regards,<br>Steamatic HV Team</p>';
$html.='</div>';
$html.='</div>';
$html.='</div>';
$html.='</body>';
$html.='</html>';
return $html;
}
它沒有意義'$ s1 = ''; if($ s1-> published == 3){echo「Confirmed」; }' – JYoThI
我只是試圖打印證實,而不是3任何想法呢? –
你的if($ s1-> published == 3)'永遠不會變成真的..你寫了'$ s1 ='''線上面 –