{title}{tr}Calendar import{/tr}{/title}

<div class="t_navbar">
	{button class="btn btn-default" _text="{tr}View Calendars{/tr}" href="tiki-calendar.php"}
	{button class="btn btn-default" _text="{tr}Admin Calendars{/tr}" href="tiki-admin_calendars.php"}
</div>

{if isset($updated) and $updated eq 'y'}
	{tr}Calendar has been updated{/tr}
{/if}

<form method="post" action="tiki-calendar_import.php" enctype="multipart/form-data">
	<table class="formcolor">
		<tr>
			<td>{tr}Calendar{/tr}</td>
			<td>
				<select name="calendarId">
					{foreach item=lc from=$calendars}
						<option value="{$lc.calendarId}">{$lc.name|escape}</option>
					{/foreach}
				</select>
			</td>
		</tr>
		<tr>
			<td>
				{tr}CSV File{/tr}
				{capture name=help}{tr}Column names on the first line:{/tr}<br>name,description,start&nbsp;date,start&nbsp;time,end&nbsp;date,end&nbsp;time,status,lang,categoryId,locationId,priority,url,categoryId<br><i>{tr _0=subject _1=name}%0 column name can be used instead of %1{/tr}</i><br>{tr}Date format:{/tr} {tr}See:{/tr} http://php.net/strtotime{/capture}
				<a title="{tr}Help{/tr}" {popup text=$smarty.capture.help|escape}>{icon name='help'}</a>
			</td>
			<td>
				<input type="file" name="fileCSV" size="50">
				<input type="submit" class="btn btn-default btn-sm" name="import" value="{tr}import{/tr}">
			</td>
		</tr>
	</table>
</form>
