[-*Smarty*-] [-include file="$TPL_NAME/views/header.html"-] [-php-]require_once($GLOBALS['srcdir']."/formdata.inc.php");[-/php-] [-* we want to include our stylesheet for this view*-] [-*Load the Language Definitions*-] [-config_load file="lang.$USER_LANG"-]

[-php-] xl('Searching for appointments','e'); [-/php-]

  [-php-] if ($GLOBALS['concurrent_layout']) echo ""; else echo ""; [-/php-] [-php-] xl('Return to calendar','e'); [-/php-]
[-php-] xl('Keywords','e'); [-/php-]: [-php-] xl('IN','e'); [-/php-]: [-if $USE_TOPICS-] [-/if-]
[-php-] xl('between','e'); [-/php-] [?] [-php-] xl('and','e'); [-/php-] [?]
[-php-] xl('for','e'); [-/php-] [-php-] xl('at','e'); [-/php-]
[-php-] xl('Searching...','e'); [-/php-]
[-if $SEARCH_PERFORMED-]
[-php-] echo xl('Date') . "-" . xl('Time'); [-/php-] [-php-] xl('Provider','e'); [-/php-] [-php-] xl('Category','e'); [-/php-] [-php-] xl('Patient','e'); [-/php-]
[-php-] /* I've given up on playing nice with the Smarty tag crap, it's pointlessly used * in the original search. I mean, there's no clean separation between the code * and HTML so we may as well just go full-bore PHP here -- JRM March 2008 */ $eventCount = 0; foreach ($A_EVENTS as $eDate => $date_events) { $eventdate = substr($eDate, 0, 4) . substr($eDate, 5, 2) . substr($eDate, 8, 2); foreach ($date_events as $event) { // pick up some demographic info about the provider $provquery = "SELECT * FROM users WHERE id='".$event['aid']."'"; $res = sqlStatement($provquery); $provinfo = sqlFetchArray($res); $eData = $event['eid']."~".$eventdate; $trTitle = xl('Click to edit this event'); echo ""; // date and time $eDatetime = strtotime($eDate." ".$event['startTime']); echo ""; // provider echo ""; // category echo ""; // patient echo ""; /* 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 ""; } [-/php-]
"; echo date("Y-m-d h:i a", $eDatetime); echo "".$event['provider_name']; $imgtitle = $provinfo['fname'] . " " . xl('contact info') . ":\n"; $imgtitle .= $provinfo['phonew1']."\n".$provinfo['street']."\n".$provinfo['city']." ".$provinfo['state']; echo " "; echo ""; echo $event['catname']; echo " "; echo $event['patient_name']; echo ""; print_r($event); echo "
" . xl('No Results') . "
[-/if-] [-*end of SEARCH_PERFORMED*-] [-php-] include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); [-/php-] [-*include file="$TPL_NAME/views/footer.html"*-]