{if $ERRORS.0 eq 'PERIOD_ADDED'}

[[Period added]]

[[Back to edit listing]]

[[Back to manage calendar]]

{elseif $ERRORS.0 eq 'PERIOD_DELETED'}

[[Period deleted]]

[[Back to edit listing]]

[[Back to manage calendar]]

{elseif $ERRORS.0 eq 'AUTHORIZATION_FAILED'} {include file='error.tpl'} {assign var="url_login" value=$GLOBALS.site_url|cat:"/login/?return_back=true"} [[Please log in to manage a calendar.]] {elseif $ERRORS.0 eq 'LISTING_SID_IS_EMPTY' or $ERRORS.0 eq 'FIELD_SID_IS_EMPTY'} {include file='error.tpl'} {else}

{include file="calendar.tpl" }

[[Add New Period]] {include file='error.tpl'}

[[Fields marked with an asterisk (*) are mandatory]]

[[Period from]]: * [[Note date format Year-Month-Day.
Example: 2008-08-01 is the 1st of August 2008.]]
[[Period to]]: *
[[Comment]]:

[[Reserved Periods]] {foreach from=$calendar item=day name=periods_block} {/foreach}
[[Period from]] [[Period to]] [[Comment]] [[Actions]]
{$day.from} {$day.to} {$day.comment} [[Delete]]

[[Check all]] / [[Uncheck all]] [[Actions with Selected]]:

{/if}