Logo Search packages:      
Sourcecode: nag2 version File versions  Download package

import.inc

<form method="post" name="import_form" enctype="multipart/form-data" action="data.php">
<?php Util::pformInput() ?>
<input type="hidden" name="actionID" value="<?php echo htmlspecialchars($next_step) ?>" />
<input type="hidden" name="import_step" value="<?php echo (int)$import_step ?>" />
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
  <td>
    <table cellpadding="3" cellspacing="0" border="0" width="100%">
    <tr><td class="header"><?php echo sprintf(_("Import Tasks, Step %d"), (int)$import_step) ?></td>
    </tr></table>
  </td>
</tr>
<tr>
  <td class="item">
  <table border="0"><tr><td>
    <?php echo _("Select the format of the source file:") ?>&nbsp;
    <br />
    <select name="import_format">
      <option value="csv">CSV</option>
      <option value="vtodo">iCalendar (vTodo)</option>
    </select><br />

<?php if (!$prefs->isLocked('default_tasklist') && count($tasklists = Nag::listTasklists(false, PERMS_EDIT)) > 1): ?>
    <?php echo _("Which tasklist should the tasks be added to?") ?>&nbsp;
    <br />
    <select id="tasklist_target" name="tasklist_target">
    <?php
    $default = Nag::getDefaultTasklist(PERMS_EDIT);
    foreach ($tasklists as $id => $tasklist) {
        $sel = ($id == $default) ? ' selected="selected"' : '';
        printf('<option value="%s"%s>%s</option>',
               htmlspecialchars($id), $sel, htmlspecialchars($tasklist->get('name'))) . "\n";
    } ?>
    </select><br/>
<?php else: ?>
    <input type="hidden" name="tasklist_target" value="<?php echo htmlspecialchars(Nag::getDefaultTasklist(PERMS_EDIT)) ?>" />
<?php endif; ?>
    <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 _("Next") ?>" class="button" />
  </td></tr></table>
  </td>
</tr>
</table>
</form>

Generated by  Doxygen 1.6.0   Back to index