function importGetTasks()
    {
        global $loggedin_user;
        if (!isLoggedIn()) {
            $this->error = "User not logged in.";
            return false;
        }
        if (!isset($_SESSION['SureInvoice']['TimeImport'])) {
            $this->error = "No import is currently in progress!";
            return false;
        }
        $importer = $_SESSION['SureInvoice']['TimeImport'];
        $tasks = $importer->getTasks();
        $html = "";
        foreach ($tasks as $normalized_name => $data) {
            $action_options = "\n\t<option value=" . SI_IMPORT_ACTION_SKIP . " " . selected(SI_IMPORT_ACTION_SKIP, intval($data['action'])) . ">Skip</option>\n\t<option value=" . SI_IMPORT_ACTION_MAP . " " . selected(SI_IMPORT_ACTION_MAP, intval($data['action'])) . ">Map</option>\n\t\t\t";
            $map_options = "<option value='0'>Unknown</option>" . SI_Task::getSelectTags($data['param']);
            $html .= <<<EOF
<tr>
\t<td>{$data['name']}</td>
\t<td><select name="actions[{$normalized_name}]">
\t\t{$action_options}
\t</select>
\t</td>
\t<td><select name="params[{$normalized_name}]">
\t\t{$map_options}
\t\t</select>
\t</td>
</tr>

EOF;
        }
        return $html;
    }