echo "<h3>No incidents were found for day: " . $date . "</h3>"; echo "<br>"; } else { echo "<br><br>"; echo "Total number of incidents today:<b>" . count($incidents) . "</b><br><br>"; echo '<div class="incidents">'; echo '<table style="border-collapse:collapse;">'; echo '<tr>'; echo '<td><b><font size="4">Time</font></b></th>'; echo '<td><b><font size="4">Event</font></b></th>'; echo '<td><b><font size="4">Address</font></b></th>'; echo '<td><b><font size="4">Responding Agency</font></b></th>'; echo '<td><b><font size="4">Event ID</font></b></th>'; echo '</tr>'; // generate dictionaries so we don't have to query the DB every time. $longNameDict = $agencyManager->GetAgencyLongNameDictionary(); $shortNameDict = $agencyManager->GetAgencyShortNameDictionary(); $start_loop = getmicrotime(); $pingpong = false; // print the events to the page foreach ($incidents as $incident) { // print out the row if ($pingpong) { echo '<tr>'; } else { echo '<tr style="background-color: rgba(0,0,255,0.05);">'; } //echo '<a name="' . $incident->itemid . '"></a>'; echo '<td style="padding: 4px;" width="100">' . $incident->pubtime . '</td>'; echo '<td style="padding: 4px;"width="400">' . $incident->event . '</td>'; if ($incident->lat == "" || $incident->lng == "") {