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

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

{if $updated}
  {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 {popup text=$smarty.capture.help|escape}>{icon _id='help'}</a>
      </td>
      <td>
        <input type="file" name="fileCSV" size="50" />
        <input type="submit" name="import" value="{tr}import{/tr}" />
      </td>
    </tr>
  </table>
</form>
