[-php-] include_once("{$GLOBALS['srcdir']}/dynarch_calendar_en.inc.php"); [-/php-]
[-php-]
// A_CATEGORY is an ordered array of associative-array categories.
// Keys of interest are: id, name, color, desc, event_duration.
//
// echo "\n"; // debugging
// echo "\n"; // debugging
$A_CATEGORY =& $this->_tpl_vars['A_CATEGORY'];
$A_EVENTS =& $this->_tpl_vars['A_EVENTS'];
// $S_EVENTS =& $this->_tpl_vars['S_EVENTS']; // Deleted by Rod
$providers =& $this->_tpl_vars['providers'];
$times =& $this->_tpl_vars['times'];
$interval = $this->_tpl_vars['interval'];
$viewtype = $this->_tpl_vars['VIEW_TYPE'];
$PREV_WEEK_URL = $this->_tpl_vars['PREV_WEEK_URL'];
$NEXT_WEEK_URL = $this->_tpl_vars['NEXT_WEEK_URL'];
$PREV_DAY_URL = $this->_tpl_vars['PREV_DAY_URL'];
$NEXT_DAY_URL = $this->_tpl_vars['NEXT_DAY_URL'];
$Date = postcalendar_getDate();
if (!isset($y)) $y = substr($Date, 0, 4);
if (!isset($m)) $m = substr($Date, 4, 2);
if (!isset($d)) $d = substr($Date, 6, 2);
// echo "\n";
// $MULTIDAY = count($A_EVENTS) > 1; // (CHEMED) not needed after week_view template changes
$provinfo = getProviderInfo('%', true, $_SESSION['pc_facility']); //(CHEMED)
[-/php-]
[-php-]
// Show the date/range and its previous- and next-day/week selectors.
$atmp = array_keys($A_EVENTS);
if ($MULTIDAY) {
echo "<< \n";
echo dateformat(strtotime($atmp[0]));
echo " - ";
echo dateformat(strtotime($atmp[count($atmp)-1]));
echo " >>\n";
} else {
echo "<< \n";
echo dateformat(strtotime($atmp[0]), true);
echo " >>\n";
}
[-/php-]