displayDescription($description);
/**
*
*/
//
set_time_limit(3600);
//
if (isset($_POST['choice-import']) and $_POST['choice-import'] != "---") {
$obj = $_POST['choice-import'];
} elseif(isset($_GET['obj'])) {
$obj = $_GET['obj'];
} else {
$obj = "";
}
if(isset($_GET['validation'])) {
$validation = $_GET['validation'];
} else {
$validation = 0;
}
/**
* On liste les fichiers .inc dans /inc
*/
$dir = getcwd();
$dir = "inc/";
$dossier = opendir($dir);
$tab = array();
while ($entree = readdir($dossier)) {
if (substr($entree, strlen($entree) - 8, 8)=='etat.inc'
or substr($entree, strlen($entree) - 14, 14)=='lettretype.inc') {
array_push($tab, array('file' => $entree));
}
}
closedir($dossier);
asort($tab);
/**
* Formulaire de choix de la table dans laquelle realiser l'import
*/
//
echo "\n
\n";
/**
* Formulaire d'import du fichier CSV
*/
if ($obj != "" and $validation==0) {
//
echo "\n
\n";
}
/**
* transfert dans la base
*/
if ($obj != "" and $validation==1) {
echo "\n
 ";
echo "";
}
?>