public function drawSelectFileList($path, $filematch, $showtag, $preselectedvalue, $addblank, $translateoptions, $fieldtype = "set")
    {
        $keys = array();
        $keys[] = "";

        if ($showtag) {
            $showtag = "_" . $showtag;
        }

        if (is_dir($this->query->reports_path)) {
            $testpath = $this->query->reports_path;
        } else {
            $testpath = ReporticoUtility::findBestLocationInIncludePath($this->query->reports_path);
        }

        if (is_dir($testpath)) {
            if ($dh = opendir($testpath)) {
                while (($file = readdir($dh)) !== false) {
                    if (preg_match($filematch, $file)) {
                        $keys[] = $file;
                    }

                }
                closedir($dh);
            }
        } else {
            trigger_error(ReporticoLang::templateXlate("NOOPENDIR") . $this->query->reports_path, E_USER_NOTICE);
        }

        $text = $this->drawArrayDropdown($fieldtype . "_" . $this->id . $showtag, $keys, $preselectedvalue, true, false);
        return $text;
    }