// die; $link = '<a target="_blank" href="' . $url . '">View Listing</a>'; $aBody = array('{FULL_NAME}' => $cmsFormater->formatFullNameRegisteredUsers($mUser), '{EMAIL}' => $mUser->email_not_login, '{NRIC}' => $mUser->nric_passportno_roc, '{LINK_VIEW_LISTING}' => $link); $aSubject = array('{FULL_NAME}' => $cmsFormater->formatFullNameRegisteredUsers($mUser)); CmsEmail::sendmail(MAIL_LANDLORD_TENANT_ADDTO_TRANSACTION, $aSubject, $aBody, $mUser->email_not_login); } /* * --------------------------------------------- * Author : dtoan * Email : ghostkissboy12@gmail.com * Send email for admin
public static function ShowCallsLogList($transaction_id) { $re = ''; $callslog = ProCallLog::getCallsLogByTransaction($transaction_id); $re .= '<table style="width:100%;">'; $re .= '<thead>'; $re .= '<th class="th-small">S/N</th>'; $re .= '<th class="th-normal">Date Time</th>'; $re .= '<th class="th-normal">Received By</th>'; $re .= '<th class="th-big">Description</th>'; $re .= '<th class="th-normal">Person Call Type</th>'; $re .= '<th class="th-normal">Name</th>'; $re .= '<th class="th-normal">Mobile</th>'; $re .= '</thead>'; if ($callslog) { foreach ($callslog as $key => $item) { $re .= '<tr>'; $re .= '<td>' . ($key + 1) . '</td>'; $re .= '<td>' . $item->date . '</td>'; $re .= '<td>' . $item->received_by . '</td>'; $re .= '<td>' . MyFormat::replaceNewLineTextArea($item->description) . '</td>'; $re .= '<td>'; $re .= isset(ProCallLog::$ARR_PERSON_CALL_TYPE[$item->person_call_type]) ? ProCallLog::$ARR_PERSON_CALL_TYPE[$item->person_call_type] : ""; $re .= '</td>'; $re .= '<td>' . $item->person_called . '</td>'; $re .= '<td>' . $item->phone . '</td>'; $re .= '</tr>'; } } else { $re .= '<tr><td colspan="7"><span class="empty">No results found.</span></td></tr>'; } $re .= '</table>'; return $re; }