diff --git a/admin/import.php b/admin/import.php index e2989d00..63e7ebd6 100644 --- a/admin/import.php +++ b/admin/import.php @@ -1,158 +1,187 @@ - " . T_("Go back") . ""; - - - //verify each GET field is unique (except import_form) - $sfields = array(); - foreach($_POST as $getv => $val) - //clean up? - $sfields[$getv] = $val; - - $error = verify_fields($sfields); - - $description = $_POST['description']; - - if ($error == "") - { //verified so upload - if (import_file($_POST['filename'],$description,$sfields)) - { - print "
" . T_("Successfully imported sample") . "
" . T_("Error importing file. Please try again") . "
" . T_("Error:") . " $error
" . T_("Please go back in your browser and fix the problem") . "
" . T_("Successfully imported sample") . "
" . T_("Error importing file. Please try again") . "
" . T_("Error:") . " $error
" . T_("Please go back in your browser and fix the problem") . "
| " . T_("Import?") . " | " . T_("Name") . " | " . T_("Type") . " | " . T_("Allow operator to see?") . " |
|---|
| " . T_("Selected file column name") . " | " . T_("Import ?") . " | " . T_("New Sample Variable Name") . " | " . T_("Variable Type") . " | " . T_("Show to operator?") . " |
|---|---|---|---|---|
| $value | "; - print " | "; - print ""; + print " | ||
| $value | ++ | + | "; + print " | "; + print ""; print " |