Exemplo n.º 1
0
 public function BindCalendar(ICalendarSegment $calendar)
 {
     $this->Set('Calendar', $calendar);
     $prev = $calendar->GetPreviousDate();
     $next = $calendar->GetNextDate();
     $calendarType = $calendar->GetType();
     $this->Set('PrevLink', CalendarUrl::Create($prev, $calendarType));
     $this->Set('NextLink', CalendarUrl::Create($next, $calendarType));
     $this->template = sprintf('calendar.%s.tpl', strtolower($calendarType));
 }
    function content_5645a6f2160ec6_14557508($_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['MonthName']->value;
        ?>
 <?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 CalendarUrl::Create($_smarty_tpl->tpl_vars['Today']->value, CalendarTypes::Day);
        ?>
" alt="Today" title="Today"><?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Today'), $_smarty_tpl);
        ?>
 <?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "calendar-day.png"), $_smarty_tpl);
        ?>
</a>
		<a href="<?php 
        echo CalendarUrl::Create($_smarty_tpl->tpl_vars['Today']->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>
	</div>

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

</div>

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


<?php 
        echo $_smarty_tpl->getSubTemplate('globalfooter.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
    }