";
// date and time
$eDatetime = strtotime($eDate." ".$event['startTime']);
echo "";
echo date("Y-m-d h:i a", $eDatetime);
echo " | ";
// provider
echo "".$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 $event['catname'];
echo " | ";
// patient
echo "";
echo text($event['patient_name']);
echo " | ";
/*
echo "";
print_r($event);
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 "