phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4201 - in phpcompta/trunk: html html/js include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4201 - in phpcompta/trunk: html html/js include
Date: Thu, 15 Sep 2011 12:17:45 +0200 (CEST)

Author: danydb
Date: 2011-09-15 12:17:44 +0200 (Thu, 15 Sep 2011)
New Revision: 4201

Removed:
   phpcompta/trunk/html/ajax_import.php
   phpcompta/trunk/html/js/bq_import.js
Modified:
   phpcompta/trunk/include/function_javascript.php
Log:
remove obsole file of import bank

Deleted: phpcompta/trunk/html/ajax_import.php
===================================================================
--- phpcompta/trunk/html/ajax_import.php        2011-09-15 09:04:20 UTC (rev 
4200)
+++ phpcompta/trunk/html/ajax_import.php        2011-09-15 10:17:44 UTC (rev 
4201)
@@ -1,78 +0,0 @@
-<?php
-/*
- *   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$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/*!\file
- * \brief ajax file called by the import screen
- */
-
-/*! \brief update , delete or remove a record from the confirmed list
- *
- */
-include_once ("constant.php");
-require_once('class_database.php');
-require_once ('class_user.php');
-require_once ('class_dossier.php');
-
-
-
-$cn=new Database(dossier::id());
-
-$User=new User($cn);
-$User->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();
-}

Deleted: phpcompta/trunk/html/js/bq_import.js
===================================================================
--- phpcompta/trunk/html/js/bq_import.js        2011-09-15 09:04:20 UTC (rev 
4200)
+++ phpcompta/trunk/html/js/bq_import.js        2011-09-15 10:17:44 UTC (rev 
4201)
@@ -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 address@hidden
-/**
- address@hidden 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();
-}

Modified: phpcompta/trunk/include/function_javascript.php
===================================================================
--- phpcompta/trunk/include/function_javascript.php     2011-09-15 09:04:20 UTC 
(rev 4200)
+++ phpcompta/trunk/include/function_javascript.php     2011-09-15 10:17:44 UTC 
(rev 4201)
@@ -2741,7 +2741,6 @@
     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');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]