<{strip}>

<{assign var="current_date" value=$smarty.session.calendar_mobile.current_date}>

<{include file="calendar_mobile_init_header.html"}>

<{$action.date_string|smarty:nodefaults}>
&nbsp;
<a href="?action=calendar_view_mobile_init&date=<{$action.prev_day}><{$session_param}>">
	<{$lang.calendar_alt_prev_day|smarty:nodefaults}>
</a>
&nbsp;
<a href="?action=calendar_view_mobile_init&amp;date=<{$action.next_day}><{$session_param}>">
	<{$lang.calendar_alt_next_day|smarty:nodefaults}>
</a>
<br />

<{if ($action.plan_data.$current_date) }>
	<{assign var="plan_data" value=$action.plan_data.$current_date}>
	<{section name=i loop=$plan_data}>
		<{if ($plan_data[i].allday_flag != _ON || $plan_data[i].timezone_offset != $smarty.session._timezone_offset) }>
			<{$lang.calendar_mobile_time_format|smarty:nodefaults|sprintf:$plan_data[i].start_time_str:$plan_data[i].end_time_str}>
			<br />
		<{/if}>
		<{assign var="plan_color" value=""}>
		<{if ($plan_data[i].plan_flag == CALENDAR_PLAN_PUBLIC) }>
			<{assign var="plan_color" value=$smarty.const.CALENDAR_MOBILE_PLAN_PUBLIC}>
		<{elseif ($plan_data[i].plan_flag == CALENDAR_PLAN_MEMBERS ) }>
			<{assign var="plan_color" value=$smarty.const.CALENDAR_MOBILE_PLAN_MEMBERS}>
		<{elseif ($plan_data[i].plan_flag == CALENDAR_PLAN_GROUP) }>
			<{assign var="plan_color" value=$smarty.const.CALENDAR_MOBILE_PLAN_GROUP}>
		<{elseif ($plan_data[i].plan_flag == CALENDAR_PLAN_PRIVATE) }>
			<{assign var="plan_color" value=$smarty.const.CALENDAR_MOBILE_PLAN_PRIVATE}>
		<{/if}>
		<span style="color:<{$plan_color}>;">
			<{$lang.calendar_mobile_plan_mark|smarty:nodefaults}>
		</span>
		<a href="?action=calendar_view_main_plan_details&amp;cal_id=<{$plan_data[i].calendar_id}><{$session_param}>">
			<{$plan_data[i].title|truncate:$smarty.const.CALENDAR_MOBILE_DAILY_STRLEN:$smarty.const._SEARCH_MORE:true}>
		</a>
		<br /><br />
	<{/section}>
<{else}>
	<br /><{$lang.calendar_noplan|smarty:nodefaults}><br /><br />
<{/if}>

<{include file="calendar_mobile_init_footer.html"}>

<{/strip}>