<td width="80%"><?php echo strtoupper($request_data['payment_method']); ?> </td> </tr> <tr class="datarow_even"> <td width="20%"><label>Payment Status</label></td> <td width="80%"><?php echo strtoupper($request_data['status_id']); ?> <?php if ($request_data['status_updated_on'] != '0000-00-00 00:00:00') { ?> - <small><?php echo CommonFunc::getFormatedDateTime($request_data['status_updated_on']); ?> </small> <?php } ?> </td> </tr> <?php if ($request_data['donation_transaction_data'] != '') { $txn_data = (array) json_decode($request_data['donation_transaction_data']); ?> <tr class="tbltoprow"> <td colspan="2"><?php echo strtoupper($request_data['payment_method']); ?>
?> ' class="check_radio" /></td> <td align="left"><?php echo $donation['first_name']; ?> </td> <td align="left"><?php echo $donation['last_name']; ?> </td> <td align="center"><?php echo $donation['email']; ?> </td> <td align="center"><?php echo CommonFunc::getFormatedDateTime($donation['donation_date']); ?> </td> <td align="center"><?php echo $donation['amount']; ?> </td> <td align="center"><?php echo ucWords($donation['status_id']); ?> </td> <td align="center"> <a title="View" onclick="return GB_showFullScreen('Request#<?php echo $donation['donation_id']; ?>
private function _payment_completed_mail($donation_data) { $Mail = new clsMail(); $fromName = Settings::Get('from_name'); $no_reply = Settings::Get('no_reply_email'); $contact_to_email = explode(',', Settings::Get('to_email')); $reply_to = Settings::Get('reply_to'); $Mail->IsHTML(true); $Mail->prep_headers($fromName, $no_reply); $Mail->setSubject("Online Payment Completed By " . $donation_data['first_name'] . " " . $donation_data['last_name'] . ""); $message = "<html><body><table cellpadding='0' cellspacing='0' width='100%'>"; $message .= "<tr><td width='30%'>First Name</td><td width='70%' colspan='2'>" . $donation_data['first_name'] . "</td></tr>"; $message .= "<tr><td width='30%'>Last Name</td><td width='70%' colspan='2'>" . $donation_data['last_name'] . "</td></tr>"; $message .= "<tr><td width='30%'>Email</td><td width='70%' colspan='2'>" . $donation_data['email'] . "</td></tr>"; $message .= "<tr><td width='30%'>Payment Status</td><td width='70%' colspan='2'>" . strtoupper($donation_data['status_id']) . "</td></tr>"; $message .= "<tr><td width='30%'>More Details:</td><td width='70%' colspan='2'><a href='" . DonationConfig::get('site_url') . "php/view.php?id=" . $donation_data['donation_id'] . "'>Click here</a></td></tr>"; $message .= "<tr><td>IP Address</td><td colspan='2'>" . $donation_data['ip_address'] . "</td></tr></table></body></html>"; $Mail->setMessage($message); // Email form to multiple email addresses - Added on: 14/April/2011 foreach ($contact_to_email as $k => $to_email) { @$Mail->send($to_email); } $subject = '[' . Settings::get('donation_statement_title') . '] Your Donation'; if (Settings::get('subject') != '') { $subject = Settings::get('subject'); } $message = Settings::Get('message'); $message = str_replace('[NAME]', $donation_data['first_name'] . ' ' . $donation_data['last_name'], $message); $message = str_replace('[DATE]', CommonFunc::getFormatedDateTime($donation_data['donation_date']), $message); $message = str_replace('[STATUS]', strtoupper($donation_data['status_id']), $message); $Mail->prep_headers($fromName, $reply_to); $Mail->setSubject($subject); $Mail->setMessage($message); @$Mail->send($donation_data['email']); }