Check(); html_page_start($User->theme); /* Admin. Dossier */ include_once("import_inc.php"); include_once ("user_menu.php"); ShowMenuCompta($_SESSION['g_dossier']); $cn=DbConnect($_SESSION['g_dossier']); if ( $User->CheckAction($cn,IMP_BQE)==0){ /* Cannot Access */ NoAccess(); } echo ShowMenuAdvanced("import.php"); ShowMenuImport(); if ( isset( $_REQUEST['PHPSESSID'])) { $sessid = $_REQUEST['PHPSESSID']; } echo JS_SEARCH_POSTE; // if action is set proceed to it if ( isset ($_GET["action"]) ) { $action=$_GET["action"]; // menu = import cvs if ($action == "import" ) { if(isset($_FILES['fupload'])) { // load the table with the cvs' content echo '
'; ImportCSV($cn,$_FILES['fupload']['tmp_name'],$_POST['import_bq'],$_POST['format_csv'],$_POST['import_jrn']); echo "
"; } else { echo '
'; ShowFormTransfert($cn); echo "
"; } } if ($action == "verif" ) { if(isset($_POST['poste'])) { UpdateCSV($cn, $_POST['code'], $_POST['poste']); } echo '
'; VerifImport($cn); echo "
"; } if ($action == "transfer" ) { echo '
'; TransferCSV($cn, $User->GetPeriode()); echo "
"; } } html_page_stop(); ?>