<form method="post" name="import_form" enctype="multipart/form-data" action="<?php echo Horde::applicationUrl('data.php') ?>">
<input type="hidden" name="actionID" value="<?php echo HORDE_IMPORT ?>" />
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
    <td>
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
        <tr><td class="header" align="center"><?php echo _("Import Address Book") ?></td>
        </tr></table>
    </td>
</tr>
<tr>
    <td class="item">
    <table border="0"><tr><td>
        <?php echo _("Select the format to import from:") ?><br />
        <select name="importID" onchange="if (this.value == '<?php echo IMPORT_OUTLOOK ?>') document.import_form.header.checked=true;">
            <option value="<?php echo IMPORT_CSV ?>"><?php echo _("Comma separated values") ?></option>
<?php if (defined('IMPORT_TSV')): ?>
            <option value="<?php echo IMPORT_TSV ?>"><?php echo _("Tab separated values") ?></option>
<?php endif; ?>
            <option value="<?php echo IMPORT_OUTLOOK ?>"><?php echo _("Outlook") ?></option>
            <option value="<?php echo IMPORT_VCARD ?>"><?php echo _("vCard") ?></option>
<?php if (defined('IMPORT_TSV')): ?>
            <option value="<?php echo IMPORT_MULBERRY ?>"><?php echo _("Mulberry Address Book") ?></option>
            <option value="<?php echo IMPORT_PINE ?>"><?php echo _("Pine Address Book") ?></option>
<?php endif; ?>
        </select><br />
        <input type="checkbox" name="header" value="1" />
        <?php echo _("If importing CSV data: does the first row contain the field names?") ?><br /><br />
        <?php echo _("Select the destination to import to:") ?><br />
        <select name="dest">
            <?php echo $dest_options ?>
        </select><br /><br />
        <?php echo _("Select the file to import:") ?><br />
        <input type="file" name="import_file" class="fixed" size="40" /><br /><br />
        <input type="submit" value="<?php echo _("Import") ?>" class="button" />
    </td></tr></table>
    </td>
</tr>
</table>
</form>

<br />
