Check(); html_page_start($User->theme); /* Admin. Dossier */ include_once("import_inc.php"); include_once ("user_menu.php"); echo '
'; echo ShowMenuCompta("user_advanced.php?".dossier::get()); echo '
'; echo ShowMenuAdvanced(7); $User->AccessRequest($cn,IMP_BQE); echo JS_AJAX_FICHE; echo ''; if ( isset( $_REQUEST['PHPSESSID'])) { $sessid = $_REQUEST['PHPSESSID']; } // 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 ( isset ($_POST['trashit'])) { DropRecord($cn,$_POST['code']); echo '
'; VerifImport($cn); echo "
"; exit(); } if ($action == "verif" ) { if(isset($_POST['count'])) { UpdateCSV($cn); } echo '
'; VerifImport($cn); echo "
"; } if ($action == "transfer" ) { echo '
'; // TransferCSV($cn, ConfirmTransfert($cn,$User->GetPeriode()); echo "
"; } } /*----------------------------------------------- * transfert or remove the wrong record * *-----------------------------------------------*/ if ( isset ($_POST['action'])) { $action=$_POST['action']; if ($action == "transfer" ) { echo '
'; TransferCSV($cn, $User->GetPeriode()); echo "
"; } if ($action == "remove" ) { echo '
'; RemoveCSV($cn); ConfirmTransfert($cn,$User->GetPeriode()); echo "
"; } } html_page_stop(); ?>