function content_55b7c19e420fb8_99111558($_smarty_tpl)
    {
        echo $_smarty_tpl->getSubTemplate('globalheader.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('cssFiles' => 'css/calendar.css,css/jquery.qtip.min.css,scripts/css/fullcalendar.css,css/schedule.css,scripts/css/jqtree.css', 'printCssFiles' => 'scripts/css/fullcalendar.print.css'), 0);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate('Calendar/calendar.filter.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


<div class="calendarHeading">

	<div style="float:left;">
		<a href="<?php 
        echo $_smarty_tpl->tpl_vars['PrevLink']->value;
        ?>
"><img src="img/arrow_large_left.png" alt="Back" /></a>
		<?php 
        echo $_smarty_tpl->tpl_vars['DayName']->value;
        ?>
, <?php 
        echo $_smarty_tpl->tpl_vars['MonthName']->value;
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['DisplayDate']->value->Day();
        ?>
, <?php 
        echo $_smarty_tpl->tpl_vars['DisplayDate']->value->Year();
        ?>

		<a href="<?php 
        echo $_smarty_tpl->tpl_vars['NextLink']->value;
        ?>
"><img src="img/arrow_large_right.png" alt="Forward" /></a>
	</div>

	<div style="float:right;">
		<a href="<?php 
        echo PersonalCalendarUrl::Create($_smarty_tpl->tpl_vars['DisplayDate']->value, CalendarTypes::Week);
        ?>
" alt="Week" title="Week"><?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Week'), $_smarty_tpl);
        ?>
 <?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "calendar-select-week.png"), $_smarty_tpl);
        ?>
</a>
		<a href="<?php 
        echo PersonalCalendarUrl::Create($_smarty_tpl->tpl_vars['DisplayDate']->value, CalendarTypes::Month);
        ?>
" alt="View Month" title="View Month"><?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Month'), $_smarty_tpl);
        ?>
 <?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "calendar-select-month.png"), $_smarty_tpl);
        ?>
</a>
	</div>

	<div class="clear">&nbsp;</div>
</div>

<?php 
        echo $_smarty_tpl->getSubTemplate('Calendar/mycalendar.common.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('view' => 'agendaDay'), 0);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate('globalfooter.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
    }
示例#2
0
 public function BindCalendar(ICalendarSegment $calendar)
 {
     $this->Set('Calendar', $calendar);
     $prev = $calendar->GetPreviousDate();
     $next = $calendar->GetNextDate();
     $calendarType = $calendar->GetType();
     $this->Set('PrevLink', PersonalCalendarUrl::Create($prev, $calendarType));
     $this->Set('NextLink', PersonalCalendarUrl::Create($next, $calendarType));
     $this->template = sprintf('mycalendar.%s.tpl', strtolower($calendarType));
 }