< >
"; // Check for us being a physician $this_user = CreateObject('FreeMED.User'); if ($this_user->isPhysician() and ($physician < 1)) { $physician = $this_user->getPhysician(); } // check if there is a physician specified, and if so, display their // name, etc at the top... if ($physician<=0) { $display_buffer .= "
".__("No Physician Selected")."

"; } else { $phyinfo = freemed::get_link_rec ($physician, "physician"); $phylname = $phyinfo["phylname"]; $phyfname = $phyinfo["phyfname"]; $phymname = $phyinfo["phymname"]; $display_buffer .= "
".__("Physician").": $phylname, $phyfname $phymname

"; } //----- Actually display the calendar fc_display_week_calendar ($for_date, "calphysician='".addslashes($physician)."'" ); //----- End and display everything template_display(); ?>