";
// date and time
$eDatetime = strtotime($eDate." ".$event['startTime']);
echo "";
echo text(date("Y-m-d h:i a", $eDatetime));
echo " | ";
// provider
echo "" . text($event['provider_name']);
$imgtitle = $provinfo['fname'] . " " . xl('contact info') . ":\n";
$imgtitle .= $provinfo['phonew1']."\n".$provinfo['street']."\n".$provinfo['city']." ".$provinfo['state'];
echo " ";
echo " | ";
// category
echo "";
echo text($event['catname']);
echo " | ";
// patient
echo "";
echo text($event['patient_name']);
echo " | ";
/*
echo "";
echo text(print_r($event, true));
echo " | ";
*/
echo "
\n";
$eventCount++;
}
}
/* the A_EVENTS array holds an array of dates, which in turn hold the array of events
* so it will always be non-zero, so we need to count the events as they are
* displayed and if the count is zero, then we have no search results
*/
if ($eventCount == 0) {
echo "