Пример #1
0
 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;
 }