case "selectfields": // show the form include ("./modules/mod_csv/class.csv.php"); $error = false; $templateinclude = "importcsv2"; // prepare the select $selectlist = new csv($_REQUEST["type"], $_REQUEST["number"]); $template->assign('type', $_REQUEST["type"]); $template->assign('selectnumber', $_REQUEST["number"]); // assign the select to the template $template->assign('select', $selectlist->selectArray()); break; default: $template->assign('type', $_REQUEST["type"]); $templateinclude = "importcsv1"; break; } break; default: $message = "Pas assez de paramètres ! / Mauvais paramètres !";