From d4bfd221ace0abd2b6d32b0e5992b688213c2a6b Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 15 Sep 2011 10:17:44 +0000 Subject: [PATCH] remove obsole file of import bank --- html/ajax_import.php | 78 ------------------------ html/js/bq_import.js | 105 -------------------------------- include/function_javascript.php | 1 - 3 files changed, 184 deletions(-) delete mode 100644 html/ajax_import.php delete mode 100644 html/js/bq_import.js diff --git a/html/ajax_import.php b/html/ajax_import.php deleted file mode 100644 index 572612082..000000000 --- a/html/ajax_import.php +++ /dev/null @@ -1,78 +0,0 @@ -check_dossier(dossier::id()); -$User->can_request('GEBQ'); -$User->Check(); -if ( isset ($_GET['action']) && - $_GET['action']=='update' - ) - -{ - $code=FormatString($_GET['code']); - $count=FormatString($_GET['count']); - $poste=FormatString($_GET['poste']); - $concern=FormatString($_GET['concerned']); - $sql = "update import_tmp set poste_comptable='$poste' ,status='w',". - "jr_rapt='$concern' where code='$code'"; - - $Res=$cn->exec_sql($sql); - exit(); -} - -if ( isset ($_GET['action']) && - $_GET['action']=='delete' - ) - -{ - $code=FormatString($_GET['code']); - $sql="update import_tmp set status='d' where code='".$code."'"; - $cn->exec_sql($sql); - exit(); -} -if ( isset ($_GET['action']) && - $_GET['action']=='not_confirmed' - ) - -{ - $code=FormatString($_GET['code']); - $sql="update import_tmp set status='n' where code='".$code."'"; - $cn->exec_sql($sql); - exit(); -} diff --git a/html/js/bq_import.js b/html/js/bq_import.js deleted file mode 100644 index 63fab8575..000000000 --- a/html/js/bq_import.js +++ /dev/null @@ -1,105 +0,0 @@ -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -/* $Revision: 2546 $ */ - -// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr -/** - *@brief regroup the function for the import of bank csv - */ - -/*! \brief import : update a record (in ajax) - * \param $p_dossier : the dossier id - * \param $p_count : the item number - */ -function import_update(p_dossier,p_count) -{ - var query_string="count="+p_count+"&gDossier="+p_dossier; - var code=$("code"+p_count); - var poste=$("poste"+p_count); - var concerned=$("e_concerned"+p_count); - var url="ajax_import.php"; - query_string+="&code="+code.value; - query_string+="&poste="+poste.value; - query_string+="&concerned="+concerned.value; - query_string+="&action=update"; - - - /* call the script which handle the query */ - var update= new Ajax.Request ( - url, - { - method:'get', - parameters:query_string - } - ); - var form=$("form_"+p_count); - form.hide(); -} -/*! \brief remove : remove a record (in ajax) - * \param $p_dossier : the dossier id - * \param $p_count : the item number - */ - -function import_remove(p_dossier,p_count) -{ - var query_string="count="+p_count+"&gDossier="+p_dossier; - var code=$("code"+p_count); - var url="ajax_import.php"; - query_string+="&code="+code.value; - query_string+="&action=delete"; - var a = confirm("Etes-vous certain d'effacer cette operation ?"); - if ( a == false ) - { - return; - } - - /* call the script which handle the query */ - var update= new Ajax.Request ( - url, - { - method:'get', - parameters:query_string - } - ); - var form=$("form_"+p_count); - form.hide(); -} -/*! \brief remove : remove a record (in ajax) - * \param $p_dossier : the dossier id - * \param $p_count : the item number - */ - -function import_not_confirmed(p_dossier,p_count) -{ - var query_string="count="+p_count+"&gDossier="+p_dossier; - var code=$("code"+p_count); - var url="ajax_import.php"; - query_string+="&code="+code.value; - query_string+="&action=not_confirmed"; - - /* call the script which handle the query */ - var update= new Ajax.Request ( - url, - { - method:'get', - parameters:query_string - } - ); - var form=$("form_"+p_count); - form.hide(); -} diff --git a/include/function_javascript.php b/include/function_javascript.php index c2d34078b..b17fba213 100644 --- a/include/function_javascript.php +++ b/include/function_javascript.php @@ -2741,7 +2741,6 @@ function load_all_script() echo js_include('acc_report.js'); echo js_include('ajax_fiche.js'); echo js_include('anc_script.js'); - echo js_include('bq_import.js'); echo js_include('builder.js'); echo js_include('calc.js'); echo js_include('card.js');