From 1080acfa470a91376484b316918a71c923886fab Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 15 May 2015 13:33:49 +0200 Subject: [PATCH] =?UTF-8?q?Task=20#1117=20-=20Probl=C3=A8me=20dans=20le=20?= =?UTF-8?q?PCMN=20pour=20modification=20du=20poste=204891=20Correction=20p?= =?UTF-8?q?our=20Bug=20#1117,1106=20et=201094.=20Probl=C3=A8me=20avec=20le?= =?UTF-8?q?=20Plan=20Comptable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/ajax_misc.php | 3 + html/index.php | 12 +- html/js/accounting_item.js | 90 ++++++++------ include/ajax_pcmn_update.php | 95 +++++++++++++++ include/param_pcmn.inc.php | 195 +++++++++++++------------------ include/template/pcmn_update.php | 55 +++++++++ 6 files changed, 301 insertions(+), 149 deletions(-) create mode 100644 include/ajax_pcmn_update.php create mode 100644 include/template/pcmn_update.php diff --git a/html/ajax_misc.php b/html/ajax_misc.php index dd10f6172..b6eb0ea29 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -90,6 +90,9 @@ if ( LOGINPUT) } switch ($op) { + case 'pcmn_update': + require 'ajax_pcmn_update.php'; + return; case "remove_anc": if ($g_user->check_module('ANCODS') == 0) exit(); diff --git a/html/index.php b/html/index.php index e78a49ca8..89a9dcada 100644 --- a/html/index.php +++ b/html/index.php @@ -42,6 +42,10 @@ *
  • Dans le répertoire include: Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement
  • *
  • Dans le répertoire include: Les noms de fichier sont * class_*.php pour les fichiers contenant des classes.
  • + *
  • Dans le répertoire include: Les noms de fichier ajax* correspondent aux fichiers appelé par une fonction javascript en ajax, + * normalement le nom de fichier est basé sur le nom de la fonction javascript + * exemple pour la fonction javascript anc_key_choice le fichier correspondant est + * ajax_anc_key_choice.php *
  • Dans le répertoire include/template: les fichiers de * présentation HTML
  • *
  • Utiliser sql/upgrade.sql comme fichier temporaire pour modifier la base de données, en général @@ -90,6 +94,10 @@ *
  • In the folder include: filenames end by *.php if they contains only function
  • *
  • In the folder include: filenames starting with * class_*.php if it is related to a class.
  • + *
  • In the folder include, files starting with ajax are executed by ajax call, usually, the file name is + * based on the javascript function, example for the javascript function anc_key_choice the corresponding file is + * ajax_anc_key_choice.php + * *
  • In the folder include/template: files for the HTML presentation *
  • *
  • Use sql/upgrade.sql as temporary file to modify the database,this file will be the base for a SQL patch @@ -101,13 +109,13 @@ * \section advice Advices *

    * Use this document, it is generated automatically by doxygen, check the documentation your made, read it first this - * documentation before making change + * documentation before making changes *

    - * You need to know only this tags + * You need to know only these tags *