<?php /* Smarty version 2.6.12, created on 2011-01-18 14:25:52
         compiled from calendar_mobile_init_weekly.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'calendar_mobile_init_weekly.html', 5, false),array('modifier', 'explode', 'calendar_mobile_init_weekly.html', 16, false),array('modifier', 'date', 'calendar_mobile_init_weekly.html', 19, false),array('modifier', 'sprintf', 'calendar_mobile_init_weekly.html', 24, false),array('modifier', 'truncate', 'calendar_mobile_init_weekly.html', 49, false),)), $this); ?>
<?php echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "calendar_mobile_init_header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['action']['date_string'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '&nbsp;<a href="?action=calendar_view_mobile_init&amp;date=';  echo ((is_array($_tmp=$this->_tpl_vars['action']['prev_week'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['session_param'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo $this->_tpl_vars['lang']['calendar_alt_prev_week'];  echo '</a>&nbsp;<a href="?action=calendar_view_mobile_init&amp;date=';  echo ((is_array($_tmp=$this->_tpl_vars['action']['next_week'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['session_param'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo $this->_tpl_vars['lang']['calendar_alt_next_week'];  echo '</a><br />';  $this->assign('wday_array', ((is_array($_tmp="|")) ? $this->_run_mod_handler('explode', true, $_tmp, ((is_array($_tmp=@CALENDAR_WEEK)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : explode($_tmp, ((is_array($_tmp=@CALENDAR_WEEK)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));  echo '';  unset($this->_sections['timestamp']);
$this->_sections['timestamp']['name'] = 'timestamp';
$this->_sections['timestamp']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['action']['end_timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['timestamp']['start'] = (int)((is_array($_tmp=$this->_tpl_vars['action']['start_timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));
$this->_sections['timestamp']['step'] = ((int)86400) == 0 ? 1 : (int)86400;
$this->_sections['timestamp']['show'] = true;
$this->_sections['timestamp']['max'] = $this->_sections['timestamp']['loop'];
if ($this->_sections['timestamp']['start'] < 0)
    $this->_sections['timestamp']['start'] = max($this->_sections['timestamp']['step'] > 0 ? 0 : -1, $this->_sections['timestamp']['loop'] + $this->_sections['timestamp']['start']);
else
    $this->_sections['timestamp']['start'] = min($this->_sections['timestamp']['start'], $this->_sections['timestamp']['step'] > 0 ? $this->_sections['timestamp']['loop'] : $this->_sections['timestamp']['loop']-1);
if ($this->_sections['timestamp']['show']) {
    $this->_sections['timestamp']['total'] = min(ceil(($this->_sections['timestamp']['step'] > 0 ? $this->_sections['timestamp']['loop'] - $this->_sections['timestamp']['start'] : $this->_sections['timestamp']['start']+1)/abs($this->_sections['timestamp']['step'])), $this->_sections['timestamp']['max']);
    if ($this->_sections['timestamp']['total'] == 0)
        $this->_sections['timestamp']['show'] = false;
} else
    $this->_sections['timestamp']['total'] = 0;
if ($this->_sections['timestamp']['show']):

            for ($this->_sections['timestamp']['index'] = $this->_sections['timestamp']['start'], $this->_sections['timestamp']['iteration'] = 1;
                 $this->_sections['timestamp']['iteration'] <= $this->_sections['timestamp']['total'];
                 $this->_sections['timestamp']['index'] += $this->_sections['timestamp']['step'], $this->_sections['timestamp']['iteration']++):
$this->_sections['timestamp']['rownum'] = $this->_sections['timestamp']['iteration'];
$this->_sections['timestamp']['index_prev'] = $this->_sections['timestamp']['index'] - $this->_sections['timestamp']['step'];
$this->_sections['timestamp']['index_next'] = $this->_sections['timestamp']['index'] + $this->_sections['timestamp']['step'];
$this->_sections['timestamp']['first']      = ($this->_sections['timestamp']['iteration'] == 1);
$this->_sections['timestamp']['last']       = ($this->_sections['timestamp']['iteration'] == $this->_sections['timestamp']['total']);
 echo '';  $this->assign('timestamp', ((is_array($_tmp=$this->_sections['timestamp']['index'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('date', ((is_array($_tmp='Ymd')) ? $this->_run_mod_handler('date', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : date($_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));  echo '';  $this->assign('index', ((is_array($_tmp='w')) ? $this->_run_mod_handler('date', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : date($_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))));  echo '<a href="?action=calendar_view_mobile_init&amp;dtype=';  echo ((is_array($_tmp=@CALENDAR_DAILY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '&amp;date=';  echo ((is_array($_tmp=$this->_tpl_vars['date'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['session_param'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['calendar_mobile_monthly_day'])) ? $this->_run_mod_handler('date', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : date($_tmp, ((is_array($_tmp=$this->_tpl_vars['timestamp'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['calendar_mobile_monthly_week'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['wday_array'][$this->_tpl_vars['index']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['wday_array'][$this->_tpl_vars['index']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '</a>';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['plan_data'][$this->_tpl_vars['date']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) )):  echo '';  $this->assign('plan_data', ((is_array($_tmp=$this->_tpl_vars['action']['plan_data'][$this->_tpl_vars['date']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '<ul>';  unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=((is_array($_tmp=$this->_tpl_vars['plan_data'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
 echo '<li>';  if (( ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['allday_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) != _ON || ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['timezone_offset'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) != ((is_array($_tmp=$_SESSION['_timezone_offset'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) )):  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['calendar_mobile_time_format'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['start_time_str'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['end_time_str'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['start_time_str'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['end_time_str'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '<br />';  endif;  echo '';  $this->assign('plan_color', "");  echo '';  if (( ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['plan_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == CALENDAR_PLAN_PUBLIC )):  echo '';  $this->assign('plan_color', ((is_array($_tmp=@CALENDAR_MOBILE_PLAN_PUBLIC)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  elseif (( ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['plan_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == CALENDAR_PLAN_MEMBERS )):  echo '';  $this->assign('plan_color', ((is_array($_tmp=@CALENDAR_MOBILE_PLAN_MEMBERS)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  elseif (( ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['plan_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == CALENDAR_PLAN_GROUP )):  echo '';  $this->assign('plan_color', ((is_array($_tmp=@CALENDAR_MOBILE_PLAN_GROUP)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  elseif (( ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['plan_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == CALENDAR_PLAN_PRIVATE )):  echo '';  $this->assign('plan_color', ((is_array($_tmp=@CALENDAR_MOBILE_PLAN_PRIVATE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  endif;  echo '<span style="color:';  echo ((is_array($_tmp=$this->_tpl_vars['plan_color'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo ';">';  echo $this->_tpl_vars['lang']['calendar_mobile_plan_mark'];  echo '</span><a href="?action=calendar_view_main_plan_details&amp;cal_id=';  echo ((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['calendar_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['session_param'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '">';  echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['plan_data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('truncate', true, $_tmp, ((is_array($_tmp=@CALENDAR_MOBILE_WEEKLY_STRLEN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=@_SEARCH_MORE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), true) : smarty_modifier_truncate($_tmp, ((is_array($_tmp=@CALENDAR_MOBILE_WEEKLY_STRLEN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), ((is_array($_tmp=@_SEARCH_MORE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')), true));  echo '</a></li>';  endfor; endif;  echo '</ul>';  else:  echo '<br />';  endif;  echo '';  endfor; endif;  echo '<br />';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "calendar_mobile_init_footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo ''; ?>