I created a Calc Element to echo out into an HTML Table - however, the results appear on TOP of the Form and List. Is there a workaround to this?
PHP:
$ticket_nbr = '{uniti_simplex_alert___ticket_nbr}';
$id = '{rowid}';
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query
->select(array('company', 'Count_Outage_Sites','Count_Simplex_Sites'))
->from('remedy_xnetworks_count_sites')
->where('IncidentVisibleID_Trim = ' . $db->quote($ticket_nbr));
$db->setQuery($query);
$rows = $db->loadObjectList();
$list = array();
echo '<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">';
echo '<tbody>';
echo '<tr>';
echo '<td style="vertical-align: top;">Customer<br>';
echo '</td>';
echo '<td style="vertical-align: top;"># Sites Outage<br>';
echo '</td>';
echo '<td style="vertical-align: top;"># Sites Simplex<br>';
echo '</td>';
echo '</tr>';
foreach ($rows as $row){
echo'<tr>';
echo'<td>'. $row->company ."</td>";
echo'<td>'. $row->Count_Outage_Sites .'</td>';
echo'<td>'. $row->Count_Simplex_Sites .'</td>';
echo'<tr>';
}
echo '</tbody>';
echo '</table>';