width = '100%'; $table->class = 'info_table'; $table->cellpadding = '0'; $table->cellspacing = '0'; $table->head = []; $table->align = []; $table->head[0] = "".__('Source').''; $table->head[1] = "".__('Review').''; $table->head[2] = "".__('Last contact').''; $table->style = []; $table->style['source'] = 'width: 80%;'; $table->data = []; $sources = get_sources_by_agent($agent_id); $row = []; if (empty($sources) === false) { foreach ($sources as $key => $source) { $row['source'] = $source; $row['review'] = ''.html_print_image('images/zoom.png', true, ['title' => __('Review in log viewer'), 'alt' => '', 'onclick' => "send_form('".$source."')"]).''; $row['last_contact'] = html_print_image( 'images/spinner.gif', true, [ 'id' => 'img-'.$source, 'border' => '0', 'width' => '20px', 'heigth' => '20px', 'onload' => "get_last_contact('".$source."', '".$agent_id."')", ] ); $table->data[$source] = $row; } } ob_start(); if (!empty($table->data)) { echo '