From 5b78118c1e45472e2a12915930468e5244ea00a5 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 25 Jun 2006 21:07:20 +0000 Subject: [PATCH] Improve doc --- doc/developper/account_repository.html | 2 +- doc/developper/dossier1.dia | 331 ++-- doc/developper/dossier1.html | 236 +-- .../html/ac__common_8php-source.html | 346 ++-- doc/developper/html/ac__common_8php.html | 67 +- .../html/action_8inc_8php-source.html | 456 ++--- doc/developper/html/action_8inc_8php.html | 224 +-- .../html/admin__repo_8php-source.html | 2 +- doc/developper/html/admin__repo_8php.html | 4 +- doc/developper/html/annotated.html | 2 +- .../html/annulation_8php-source.html | 38 +- doc/developper/html/annulation_8php.html | 2 +- doc/developper/html/bal__csv_8php-source.html | 8 +- doc/developper/html/bal__csv_8php.html | 2 +- doc/developper/html/balance_8php-source.html | 206 +-- doc/developper/html/balance_8php.html | 111 +- doc/developper/html/bilan_8php-source.html | 8 +- doc/developper/html/bilan_8php.html | 4 +- .../html/cbc__be_8inc_8php-source.html | 2 +- doc/developper/html/cbc__be_8inc_8php.html | 4 +- doc/developper/html/central_8php-source.html | 4 +- doc/developper/html/central_8php.html | 2 +- .../html/central__inc_8php-source.html | 2 +- doc/developper/html/central__inc_8php.html | 6 +- .../html/check__priv_8php-source.html | 2 +- doc/developper/html/check__priv_8php.html | 4 +- doc/developper/html/classAttribut.html | 2 +- doc/developper/html/classBalance.html | 4 +- doc/developper/html/classCezpdf.html | 22 +- doc/developper/html/classCpdf.html | 56 +- doc/developper/html/classCreport.html | 2 +- doc/developper/html/classCustomer.html | 10 +- doc/developper/html/classDocument.html | 170 +- .../html/classDocument__modele.html | 20 +- doc/developper/html/classDocument__type.html | 6 +- doc/developper/html/classOwn.html | 6 +- .../html/class_8ezpdf_8php-source.html | 50 +- doc/developper/html/class_8ezpdf_8php.html | 2 +- .../html/class_8pdf_8php-source.html | 76 +- doc/developper/html/class_8pdf_8php.html | 2 +- .../html/class__action_8php-source.html | 619 ++++--- doc/developper/html/class__action_8php.html | 2 +- .../html/class__attribut_8php-source.html | 10 +- doc/developper/html/class__attribut_8php.html | 4 +- .../html/class__balance_8php-source.html | 40 +- doc/developper/html/class__balance_8php.html | 2 +- .../html/class__contact_8php-source.html | 68 +- doc/developper/html/class__contact_8php.html | 2 +- .../html/class__customer_8php-source.html | 34 +- doc/developper/html/class__customer_8php.html | 2 +- .../html/class__document_8php-source.html | 1086 ++++++----- doc/developper/html/class__document_8php.html | 2 +- .../class__document__modele_8php-source.html | 289 +-- .../html/class__document__modele_8php.html | 2 +- .../class__document__type_8php-source.html | 6 +- .../html/class__document__type_8php.html | 2 +- .../html/class__fiche_8php-source.html | 613 +++---- doc/developper/html/class__fiche_8php.html | 2 +- .../html/class__fiche__def_8php-source.html | 6 +- .../html/class__fiche__def_8php.html | 2 +- .../html/class__jrn_8php-source.html | 14 +- doc/developper/html/class__jrn_8php.html | 2 +- .../html/class__own_8php-source.html | 15 +- doc/developper/html/class__own_8php.html | 2 +- .../html/class__parm__code_8php-source.html | 2 +- .../html/class__parm__code_8php.html | 2 +- .../html/class__poste_8php-source.html | 192 +- doc/developper/html/class__poste_8php.html | 2 +- .../html/class__rapport_8php-source.html | 12 +- doc/developper/html/class__rapport_8php.html | 2 +- .../html/class__user_8php-source.html | 30 +- doc/developper/html/class__user_8php.html | 2 +- .../html/class__widget_8php-source.html | 710 ++++---- doc/developper/html/class__widget_8php.html | 2 +- doc/developper/html/classaction.html | 166 +- doc/developper/html/classcl__user.html | 50 +- doc/developper/html/classcontact.html | 4 +- doc/developper/html/classfiche.html | 48 +- doc/developper/html/classfiche__def.html | 10 +- doc/developper/html/classfiche__def__ref.html | 8 +- doc/developper/html/classjrn.html | 8 +- doc/developper/html/classparm__code.html | 4 +- doc/developper/html/classposte.html | 138 +- doc/developper/html/classrapport.html | 8 +- doc/developper/html/classwidget.html | 69 +- .../html/client_8inc_8php-source.html | 107 +- doc/developper/html/client_8inc_8php.html | 8 +- .../html/commercial_8php-source.html | 2 +- doc/developper/html/commercial_8php.html | 4 +- doc/developper/html/constant_8php-source.html | 561 +++--- doc/developper/html/constant_8php.html | 997 ++++++----- .../html/contact_8inc_8php-source.html | 178 +- doc/developper/html/contact_8inc_8php.html | 107 +- doc/developper/html/debug_8php-source.html | 2 +- doc/developper/html/debug_8php.html | 4 +- .../html/decla_8BE_8inc_8php-source.html | 62 +- doc/developper/html/decla_8BE_8inc_8php.html | 4 +- doc/developper/html/dir_000000.html | 2 +- doc/developper/html/dir_000001.html | 2 +- doc/developper/html/dir_000002.html | 2 +- doc/developper/html/dir_000003.html | 4 +- doc/developper/html/dir_000004.html | 2 +- doc/developper/html/dir_000005.html | 2 +- doc/developper/html/dir_000006.html | 12 +- doc/developper/html/dirs.html | 2 +- .../document__modele_8inc_8php-source.html | 86 +- .../html/document__modele_8inc_8php.html | 16 +- .../html/ecrit__ouv_8php-source.html | 287 +-- doc/developper/html/ecrit__ouv_8php.html | 28 +- doc/developper/html/error_8php-source.html | 2 +- doc/developper/html/error_8php.html | 2 +- .../html/eub__be_8inc_8php-source.html | 2 +- doc/developper/html/eub__be_8inc_8php.html | 4 +- .../html/export__ouv_8php-source.html | 48 +- doc/developper/html/export__ouv_8php.html | 70 +- .../html/facture_8inc_8php-source.html | 29 +- doc/developper/html/facture_8inc_8php.html | 10 +- doc/developper/html/fiche_8php-source.html | 6 +- doc/developper/html/fiche_8php.html | 2 +- .../html/fiche__csv_8php-source.html | 6 +- doc/developper/html/fiche__csv_8php.html | 2 +- .../html/fiche__def_8inc_8php-source.html | 4 +- doc/developper/html/fiche__def_8inc_8php.html | 8 +- .../html/fiche__inc_8php-source.html | 1588 +++++++++-------- doc/developper/html/fiche__inc_8php.html | 131 +- .../html/fiche__new_8php-source.html | 28 +- doc/developper/html/fiche__new_8php.html | 8 +- .../html/fiche__search_8php-source.html | 136 +- doc/developper/html/fiche__search_8php.html | 2 +- doc/developper/html/files.html | 12 +- doc/developper/html/form_8php-source.html | 2 +- doc/developper/html/form_8php.html | 2 +- .../html/form__csv_8php-source.html | 8 +- doc/developper/html/form__csv_8php.html | 2 +- .../html/form__inc_8php-source.html | 20 +- doc/developper/html/form__inc_8php.html | 10 +- .../html/form__pdf_8php-source.html | 6 +- doc/developper/html/form__pdf_8php.html | 2 +- .../html/fortis__be_8inc_8php-source.html | 2 +- doc/developper/html/fortis__be_8inc_8php.html | 6 +- doc/developper/html/functions.html | 31 +- doc/developper/html/functions_0x61.html | 2 +- doc/developper/html/functions_0x62.html | 2 +- doc/developper/html/functions_0x63.html | 4 +- doc/developper/html/functions_0x64.html | 2 +- doc/developper/html/functions_0x65.html | 2 +- doc/developper/html/functions_0x66.html | 2 +- doc/developper/html/functions_0x67.html | 21 +- doc/developper/html/functions_0x68.html | 2 +- doc/developper/html/functions_0x69.html | 2 +- doc/developper/html/functions_0x6a.html | 2 +- doc/developper/html/functions_0x6c.html | 2 +- doc/developper/html/functions_0x6d.html | 6 +- doc/developper/html/functions_0x6e.html | 2 +- doc/developper/html/functions_0x6f.html | 2 +- doc/developper/html/functions_0x70.html | 2 +- doc/developper/html/functions_0x72.html | 6 +- doc/developper/html/functions_0x73.html | 9 +- doc/developper/html/functions_0x74.html | 2 +- doc/developper/html/functions_0x75.html | 2 +- doc/developper/html/functions_0x76.html | 2 +- doc/developper/html/functions_0x77.html | 2 +- doc/developper/html/functions_func.html | 38 +- doc/developper/html/functions_vars.html | 31 +- doc/developper/html/globals.html | 65 +- doc/developper/html/globals_0x5f.html | 2 +- doc/developper/html/globals_0x61.html | 51 +- doc/developper/html/globals_0x62.html | 2 +- doc/developper/html/globals_0x63.html | 2 +- doc/developper/html/globals_0x64.html | 8 +- doc/developper/html/globals_0x65.html | 6 +- doc/developper/html/globals_0x66.html | 14 +- doc/developper/html/globals_0x67.html | 4 +- doc/developper/html/globals_0x68.html | 2 +- doc/developper/html/globals_0x69.html | 2 +- doc/developper/html/globals_0x6a.html | 22 +- doc/developper/html/globals_0x6c.html | 4 +- doc/developper/html/globals_0x6d.html | 19 +- doc/developper/html/globals_0x6e.html | 4 +- doc/developper/html/globals_0x6f.html | 2 +- doc/developper/html/globals_0x70.html | 2 +- doc/developper/html/globals_0x72.html | 2 +- doc/developper/html/globals_0x73.html | 12 +- doc/developper/html/globals_0x74.html | 4 +- doc/developper/html/globals_0x75.html | 2 +- doc/developper/html/globals_0x76.html | 8 +- doc/developper/html/globals_0x77.html | 2 +- doc/developper/html/globals_0x79.html | 2 +- doc/developper/html/globals_enum.html | 87 +- doc/developper/html/globals_func.html | 8 +- doc/developper/html/globals_vars.html | 65 +- doc/developper/html/globals_vars_0x5f.html | 2 +- doc/developper/html/globals_vars_0x61.html | 12 +- doc/developper/html/globals_vars_0x62.html | 2 +- doc/developper/html/globals_vars_0x63.html | 2 +- doc/developper/html/globals_vars_0x64.html | 8 +- doc/developper/html/globals_vars_0x65.html | 6 +- doc/developper/html/globals_vars_0x66.html | 2 +- doc/developper/html/globals_vars_0x68.html | 2 +- doc/developper/html/globals_vars_0x69.html | 2 +- doc/developper/html/globals_vars_0x6c.html | 4 +- doc/developper/html/globals_vars_0x6d.html | 13 +- doc/developper/html/globals_vars_0x6e.html | 4 +- doc/developper/html/globals_vars_0x70.html | 2 +- doc/developper/html/globals_vars_0x72.html | 2 +- doc/developper/html/globals_vars_0x73.html | 4 +- doc/developper/html/globals_vars_0x74.html | 4 +- doc/developper/html/globals_vars_0x76.html | 4 +- doc/developper/html/globals_vars_0x77.html | 2 +- doc/developper/html/hierarchy.html | 2 +- doc/developper/html/import_8php-source.html | 4 +- doc/developper/html/import_8php.html | 2 +- .../html/import__inc_8php-source.html | 14 +- doc/developper/html/import__inc_8php.html | 10 +- .../html/impress__bilan_8php-source.html | 61 +- doc/developper/html/impress__bilan_8php.html | 69 +- .../html/impress__fiche_8php-source.html | 165 +- doc/developper/html/impress__fiche_8php.html | 26 +- .../html/impress__inc_8php-source.html | 34 +- doc/developper/html/impress__inc_8php.html | 20 +- .../html/impress__jrn_8php-source.html | 18 +- doc/developper/html/impress__jrn_8php.html | 16 +- .../impress__listing__client_8php-source.html | 4 +- .../html/impress__listing__client_8php.html | 6 +- .../html/impress__poste_8php-source.html | 228 +-- doc/developper/html/impress__poste_8php.html | 91 +- .../html/impress__rapport_8php-source.html | 299 ++-- .../html/impress__rapport_8php.html | 93 +- doc/developper/html/index.html | 2 +- doc/developper/html/index_8php-source.html | 10 +- doc/developper/html/index_8php.html | 2 +- doc/developper/html/info_8php-source.html | 2 +- doc/developper/html/info_8php.html | 2 +- .../html/ing__be_8inc_8php-source.html | 2 +- doc/developper/html/ing__be_8inc_8php.html | 2 +- doc/developper/html/jrn_8php-source.html | 50 +- doc/developper/html/jrn_8php.html | 16 +- doc/developper/html/jrn__add_8php-source.html | 4 +- doc/developper/html/jrn__add_8php.html | 2 +- doc/developper/html/jrn__csv_8php-source.html | 2 +- doc/developper/html/jrn__csv_8php.html | 2 +- .../html/jrn__detail_8php-source.html | 4 +- doc/developper/html/jrn__detail_8php.html | 4 +- .../html/jrn__op__detail_8php-source.html | 6 +- doc/developper/html/jrn__op__detail_8php.html | 2 +- doc/developper/html/jrn__pdf_8php-source.html | 6 +- doc/developper/html/jrn__pdf_8php.html | 4 +- .../html/jrn__search_8php-source.html | 16 +- doc/developper/html/jrn__search_8php.html | 2 +- .../html/jrn__update_8php-source.html | 2 +- doc/developper/html/jrn__update_8php.html | 2 +- .../html/line__update_8php-source.html | 16 +- doc/developper/html/line__update_8php.html | 6 +- .../html/listing__client_8php-source.html | 4 +- doc/developper/html/listing__client_8php.html | 2 +- doc/developper/html/login_8php-source.html | 2 +- doc/developper/html/login_8php.html | 2 +- doc/developper/html/logout_8php-source.html | 2 +- doc/developper/html/logout_8php.html | 2 +- .../html/modify__op_8php-source.html | 14 +- doc/developper/html/modify__op_8php.html | 4 +- doc/developper/html/namespaceCpdf.html | 2 +- doc/developper/html/namespaces.html | 2 +- .../html/not__implemented_8php-source.html | 2 +- .../html/not__implemented_8php.html | 2 +- doc/developper/html/pages.html | 2 +- .../html/parametre_8php-source.html | 70 +- doc/developper/html/parametre_8php.html | 129 +- .../html/pcmn__update_8php-source.html | 4 +- doc/developper/html/pcmn__update_8php.html | 2 +- .../html/periode_8inc_8php-source.html | 2 +- doc/developper/html/periode_8inc_8php.html | 4 +- .../html/poste_8inc_8php-source.html | 6 +- doc/developper/html/poste_8inc_8php.html | 6 +- doc/developper/html/poste_8php-source.html | 2 +- doc/developper/html/poste_8php.html | 8 +- .../html/poste__csv_8php-source.html | 2 +- doc/developper/html/poste__csv_8php.html | 2 +- .../html/poste__pdf_8php-source.html | 2 +- doc/developper/html/poste__pdf_8php.html | 2 +- .../html/poste__search_8php-source.html | 12 +- doc/developper/html/poste__search_8php.html | 2 +- doc/developper/html/postgres_8php-source.html | 14 +- doc/developper/html/postgres_8php.html | 30 +- .../html/pref_8inc_8php-source.html | 246 +-- doc/developper/html/pref_8inc_8php.html | 88 +- .../html/preference_8php-source.html | 303 ++-- doc/developper/html/preference_8php.html | 24 +- .../html/print__balance_8php-source.html | 14 +- doc/developper/html/print__balance_8php.html | 2 +- .../html/priv__user_8php-source.html | 8 +- doc/developper/html/priv__user_8php.html | 2 +- doc/developper/html/readme_8php-source.html | 2 +- doc/developper/html/readme_8php.html | 4 +- .../html/recherche_8php-source.html | 4 +- doc/developper/html/recherche_8php.html | 4 +- doc/developper/html/sec__pdf_8php-source.html | 4 +- doc/developper/html/sec__pdf_8php.html | 2 +- .../html/send__jrn__pdf_8php-source.html | 6 +- doc/developper/html/send__jrn__pdf_8php.html | 2 +- .../html/send__poste__pdf_8php-source.html | 2 +- .../html/send__poste__pdf_8php.html | 4 +- doc/developper/html/setup_8php-source.html | 853 ++++----- doc/developper/html/setup_8php.html | 38 +- .../html/show__document_8php-source.html | 4 +- doc/developper/html/show__document_8php.html | 2 +- .../show__document__modele_8php-source.html | 4 +- .../html/show__document__modele_8php.html | 8 +- .../html/show__fiche_8php-source.html | 66 + doc/developper/html/show__fiche_8php.html | 78 + doc/developper/html/show__pj_8php-source.html | 6 +- doc/developper/html/show__pj_8php.html | 2 +- .../html/show__tva_8php-source.html | 2 +- doc/developper/html/show__tva_8php.html | 2 +- doc/developper/html/stock_8php-source.html | 20 +- doc/developper/html/stock_8php.html | 4 +- .../html/stock__inc_8php-source.html | 54 +- doc/developper/html/stock__inc_8php.html | 8 +- doc/developper/html/test_8php-source.html | 6 +- doc/developper/html/test_8php.html | 2 +- .../html/test__smarty_8php-source.html | 4 +- doc/developper/html/test__smarty_8php.html | 2 +- doc/developper/html/todo.html | 39 +- doc/developper/html/tva_8inc_8php-source.html | 28 +- doc/developper/html/tva_8inc_8php.html | 8 +- .../html/user__action__ach_8php-source.html | 34 +- .../html/user__action__ach_8php.html | 4 +- .../html/user__action__fin_8php-source.html | 10 +- .../html/user__action__fin_8php.html | 2 +- .../html/user__action__gl_8php-source.html | 6 +- .../html/user__action__gl_8php.html | 2 +- .../html/user__action__ods_8php-source.html | 12 +- .../html/user__action__ods_8php.html | 2 +- .../html/user__action__ven_8php-source.html | 30 +- .../html/user__action__ven_8php.html | 2 +- .../html/user__advanced_8php-source.html | 2 +- doc/developper/html/user__advanced_8php.html | 4 +- .../html/user__common_8php-source.html | 359 ++-- doc/developper/html/user__common_8php.html | 73 +- .../html/user__compta_8php-source.html | 2 +- doc/developper/html/user__compta_8php.html | 2 +- .../html/user__form__ach_8php-source.html | 110 +- doc/developper/html/user__form__ach_8php.html | 10 +- .../html/user__form__fin_8php-source.html | 68 +- doc/developper/html/user__form__fin_8php.html | 8 +- .../html/user__form__ods_8php-source.html | 22 +- doc/developper/html/user__form__ods_8php.html | 6 +- .../html/user__form__ven_8php-source.html | 100 +- doc/developper/html/user__form__ven_8php.html | 10 +- .../html/user__impress_8php-source.html | 6 +- doc/developper/html/user__impress_8php.html | 6 +- .../html/user__jrn_8php-source.html | 6 +- doc/developper/html/user__jrn_8php.html | 2 +- .../html/user__login_8php-source.html | 2 +- doc/developper/html/user__login_8php.html | 2 +- .../html/user__menu_8php-source.html | 502 +++--- doc/developper/html/user__menu_8php.html | 54 +- .../html/user__pref_8php-source.html | 2 +- doc/developper/html/user__pref_8php.html | 2 +- .../html/user__sec_8php-source.html | 4 +- doc/developper/html/user__sec_8php.html | 2 +- .../html/user__update_8php-source.html | 10 +- doc/developper/html/user__update_8php.html | 4 +- 363 files changed, 9105 insertions(+), 8108 deletions(-) create mode 100644 doc/developper/html/show__fiche_8php-source.html create mode 100644 doc/developper/html/show__fiche_8php.html diff --git a/doc/developper/account_repository.html b/doc/developper/account_repository.html index b2cb80a1a..fe59aa39c 100644 --- a/doc/developper/account_repository.html +++ b/doc/developper/account_repository.html @@ -111,7 +111,7 @@ -



Dumped on 2006-06-24

+



Dumped on 2006-06-25

Index of database - account_repository

-Definition at line 354 of file ac_common.php. +Definition at line 355 of file ac_common.php.

-References $a, and ExecSql(). +References $a, and ExecSql().

@@ -383,9 +384,9 @@ Return the period corresponding to the date.

Returns:
: parm_periode.p_id

-Definition at line 334 of file ac_common.php. +Definition at line 335 of file ac_common.php.

-References $a, and ExecSql(). +References $a, and ExecSql().

Referenced by ParseFormula(). @@ -442,9 +443,9 @@ Show the periode which found thanks its id.

Returns:
: string

-Definition at line 314 of file ac_common.php. +Definition at line 315 of file ac_common.php.

-References $a, $ret, and echo_error(). +References $a, $ret, and echo_error().

@@ -476,7 +477,7 @@ Button logout.

Returns:
nothing

-Definition at line 181 of file ac_common.php. +Definition at line 182 of file ac_common.php.

@@ -531,9 +532,9 @@ Default page header for each page.

Returns:
none

-Definition at line 132 of file ac_common.php. +Definition at line 133 of file ac_common.php.

-References $cn, $Res, $style, DbConnect(), and ExecSql(). +References $cn, $Res, $style, DbConnect(), and ExecSql().

@@ -564,7 +565,7 @@ end tag

-Definition at line 169 of file ac_common.php. +Definition at line 170 of file ac_common.php.

@@ -608,7 +609,9 @@ Verifie qu'une date est bien format

Definition at line 97 of file ac_common.php.

-Referenced by cmpDate(), action::Confirm(), form_verify_input(), formatDate(), ListJrn(), VerifData(), VerifyOperationDate(), and ViewJrn(). +References echo_debug(). +

+Referenced by cmpDate(), action::Confirm(), form_verify_input(), formatDate(), ListJrn(), VerifData(), VerifyOperationDate(), and ViewJrn().

@@ -636,11 +639,21 @@ Referenced by cmpDate()<

+check if the argument is a number +

+

Parameters:
+ + +
$p_int number to test
+
+
Returns:
    +
  • 1 it's a number
  • 0 it is not
+

Definition at line 76 of file ac_common.php.

-Referenced by AddFiche(), AddModele(), ComputeTotalVat(), ComputeVat(), DeleteRapt(), form_verify_input(), FormAchInput(), FormAchView(), FormODS(), FormVenInput(), FormVenteView(), fiche::insert(), InsertRapt(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Remove(), Document_modele::Save(), and fiche::update(). +Referenced by AddFiche(), AddModele(), ComputeTotalVat(), ComputeVat(), DeleteRapt(), form_verify_input(), FormAchInput(), FormAchView(), FormODS(), FormVenInput(), FormVenteView(), fiche::insert(), InsertRapt(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Remove(), Document_modele::Save(), and fiche::update().

@@ -694,11 +707,11 @@ make a array with the sql

Returns:
: a double array [value,label]

-Definition at line 281 of file ac_common.php. +Definition at line 282 of file ac_common.php.

-References $a, $i, $r, $row, label, and value. +References $a, $i, $r, $row, label, and value.

-Referenced by action::Confirm(), action::Display(), Document_modele::form(), FormAchInput(), FormVenInput(), FormVenteView(), and ShowFormTransfert(). +Referenced by action::Confirm(), action::Display(), Document_modele::form(), FormAchInput(), FormVenInput(), FormVenteView(), and ShowFormTransfert().

@@ -730,9 +743,9 @@ Echo no access and stop.

Returns:
nothing

-Definition at line 191 of file ac_common.php. +Definition at line 192 of file ac_common.php.

-References exit. +References exit.

@@ -797,14 +810,14 @@ store the string which print

/*

-Definition at line 227 of file ac_common.php. +Definition at line 228 of file ac_common.php.

-References $ret, and $title. +References $ret, and $title.

-Referenced by MenuAdmin(), ShowJrn(), ShowMenuAdvanced(), ShowMenuCompta(), ShowMenuDocument(), and ShowMenuParam(). +Referenced by MenuAdmin(), ShowJrn(), ShowMenuAdvanced(), ShowMenuCompta(), ShowMenuDocument(), and ShowMenuParam(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/action_8inc_8php-source.html b/doc/developper/html/action_8inc_8php-source.html index ed9065de7..4dfe8b326 100644 --- a/doc/developper/html/action_8inc_8php-source.html +++ b/doc/developper/html/action_8inc_8php-source.html @@ -39,229 +39,253 @@ 00042 <span> 00043 <form method="get" action="commercial.php"> 00044 <? -00045 $a=(isset($_GET['query']))?$_GET['query']:""; -00046 printf ('<span>Titre : <input type="text" name="query" value="%s"></span>', +00045 $a=(isset($_GET['query']))?$_GET['query']:""; +00046 printf ('<span>Titre ou référence: <input type="text" name="query" value="%s"></span>', 00047 $a); -00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; -00049 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', -00050 $qcode); -00051 -00052 ?> -00053 <input type="submit" name="submit_query" value="recherche"> -00054 <input type="hidden" name="sa" value="list"> -00055 <input type="hidden" name="p_action" value="suivi_courrier"> -00056 </form> -00057 </span> -00058 -00059 <? -00060 ?> -00061 <span> -00062 <form method="get" action="commercial.php"> -00063 <input type="submit" name="submit_query" value="Ajout Action"> -00064 <input type="hidden" name="p_action" value="suivi_courrier"> -00065 <input type="hidden" name="sa" value="add_action"> -00066 <input type="hidden" name="tiers" value=<? echo '"'.$qcode.'"';?>> -00067 <? // if called from another menu, url is set -00068 echo $h_url; -00069 echo $retour; ?> -00070 </form> -00071 -00072 -00073 </span> -00074 <? -00075 // show the action in -00076 $act=new action($cn); -00077 -00078 $query=(isset ($_REQUEST['query']))?"and ag_title ~* '".FormatString($_REQUEST['query'])."'":""; -00079 $str=""; -00080 if ( isset($_REQUEST['qcode'] )) -00081 { -00082 // verify that qcode is not empty -00083 if ( strlen(trim($_REQUEST['qcode'] )) != 0 ) -00084 { -00085 $fiche=new Fiche($cn); -00086 $fiche->GetByQCode($_REQUEST['qcode']); -00087 $str=" and f_id= ".$fiche->id; -00088 } -00089 } -00090 -00091 $r=$act->myList(ACTION,$query.$str); -00092 echo $r; -00093 } -00094 -00095 // We need a sub action (3rd level) -00096 // show a list of already taken action -00097 // propose to add one -00098 // permit also a search -00099 // show detail -00100 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; -00101 var_dump($_REQUEST);echo '<hr>'; -00102 if ( $sub_action == "" ) $sub_action="list"; +00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00049 echo JS_SEARCH_CARD; +00050 $w=new widget('js_search_only'); +00051 $w->name='qcode'; +00052 $w->value=$qcode; +00053 $w->label='Quick Code'; +00054 $w->extra='4,9,14,16,8'; +00055 $w->table=0; +00056 $sp= new widget("span"); +00057 echo $sp->IOValue("qcode_label","",$qcode); +00058 echo $w->IOValue(); +00059 +00060 // printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', +00061 // $qcode); +00062 +00063 ?> +00064 <input type="submit" name="submit_query" value="recherche"> +00065 <input type="hidden" name="sa" value="list"> +00066 <input type="hidden" name="p_action" value="suivi_courrier"> +00067 </form> +00068 </span> +00069 +00070 <? +00071 ?> +00072 <span> +00073 <form method="get" action="commercial.php"> +00074 <input type="submit" name="submit_query" value="Ajout Action"> +00075 <input type="hidden" name="p_action" value="suivi_courrier"> +00076 <input type="hidden" name="sa" value="add_action"> +00077 <input type="hidden" name="tiers" value=<? echo '"'.$qcode.'"';?>> +00078 <? // if called from another menu, url is set +00079 echo $h_url; +00080 echo $retour; ?> +00081 </form> +00082 +00083 +00084 </span> +00085 <? +00086 // show the action in +00087 $act=new action($cn); +00088 +00089 $query=(isset ($_REQUEST['query']))?"and (ag_title ~* '".FormatString($_REQUEST['query'])."' or ag_ref ='".trim(FormatString($_REQUEST['query']))."')":""; +00090 $str=""; +00091 if ( isset($_REQUEST['qcode'] )) +00092 { +00093 +00094 // verify that qcode is not empty +00095 if ( strlen(trim($_REQUEST['qcode'] )) != 0 ) +00096 { +00097 +00098 $fiche=new Fiche($cn); +00099 $fiche->GetByQCode($_REQUEST['qcode']); +00100 $str=" and f_id= ".$fiche->id; +00101 } +00102 } 00103 -00104 // if correction is asked go to directly to add_action -00105 if (isset($_POST['corr'] )) -00106 $sub_action="add_action"; +00104 $r=$act->myList(ACTION,$query.$str); +00105 echo $r; +00106 } 00107 -00108 // if this page is called from another menu (customer, supplier,...) -00109 // a button back is added -00110 // TODO add function for generating url, hidden tags... -00111 $retour=""; -00112 $h_url=""; -00113 -00114 if ( isset ($_REQUEST['url'])) -00115 { -00116 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); -00117 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); -00118 } -00119 -00121 // Show a list of the action -00122 if ( $sub_action == "list" ) -00123 ShowActionList($cn,$retour,$h_url); -00124 -00126 // Add an action -00127 if ( $sub_action == "add_action" ) +00108 // We need a sub action (3rd level) +00109 // show a list of already taken action +00110 // propose to add one +00111 // permit also a search +00112 // show detail +00113 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; +00114 +00115 if ( $sub_action == "" ) $sub_action="list"; +00116 +00117 // if correction is asked go to directly to add_action +00118 if (isset($_POST['corr'] )) +00119 $sub_action="add_action"; +00120 +00121 // if this page is called from another menu (customer, supplier,...) +00122 // a button back is added +00123 // TODO add function for generating url, hidden tags... +00124 $retour='<A HREF="commercial.php?p_action=suivi_courrier"><input type="button" value="Retour"></A>'; +00125 $h_url=""; +00126 +00127 if ( isset ($_REQUEST['url'])) 00128 { -00129 echo $retour; -00130 -00131 echo '<div class="u_redcontent">'; -00132 echo JS_SEARCH_CARD; -00133 // Add hidden tag -00134 echo '<form name="RTEDemo" action="commercial.php?p_action=suivi_courrier" method="post" onsubmit="return submitForm();">'; -00135 echo $h_url; -00136 $date=new widget("text"); -00137 $date->name="ag_date"; -00138 $date->value=(isset($_POST['ag_date']))?$_POST['ag_date']:""; -00139 echo "<p>Date : "; -00140 echo $date->IOValue()."</p>"; -00141 // Tiers -00142 $W1=new widget("js_search"); -00143 $W1->label="Tiers"; -00144 $W1->name="tiers"; -00145 $W1->value=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:""; -00146 $W1->extra="8,9,14"; // filter on frd_id -00147 $W1->extra2=0; // jrn = 0 -00148 echo "<div class=\"no\">".$W1->IOValue(); -00149 $client_label=new widget("span"); -00150 $tiers_label=""; -00151 // Retrieve name -00152 if ( $W1->value != "" ) -00153 { -00154 $tiers=new fiche($cn); -00155 $tiers->GetByQCode($W1->value); -00156 $tiers_label=$tiers->strAttribut(1); -00157 -00158 } -00159 echo $client_label->IOValue("tiers_label",$tiers_label)."</div>"; -00160 -00161 $doc_type=new widget("select"); -00162 $doc_type->name="dt_id"; -00163 $doc_type->value=make_array($cn,"select dt_id,dt_value from document_type where dt_id in (".ACTION.")"); -00164 echo 'Type d\' action'; -00165 $doc_type->selected=(isset($_POST['dt_id']))?$_POST['dt_id']:""; -00166 echo $doc_type->IOValue(); -00167 -00168 // state -00169 $doc_state=new widget("select"); -00170 $doc_state->name="d_state"; -00171 $doc_state->value=make_array($cn,"select s_id,s_value from document_state"); -00172 $doc_state->selected=(isset($_POST['d_state']))?$_POST['d_state']:""; -00173 echo "Etat : ".$doc_state->IOValue(); -00174 echo '<input type="hidden" name="p_action" value="suivi_courrier">'; -00175 echo '<input type="hidden" name="sa" value="save_action_st1">'; -00176 $title=new widget("text"); -00177 $title->name="ag_title"; -00178 $title->value=(isset($_POST['ag_title']))?$_POST['ag_title']:""; -00179 echo "<p>Titre : "; -00180 echo $title->IOValue()."</p>"; -00181 -00182 ?> +00129 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); +00130 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); +00131 } +00133 // Show the detail of an action +00134 if ( $sub_action=='detail' ) +00135 { +00136 $act=new action($cn); +00137 $act->ag_id=$_REQUEST['ag_id']; +00138 echo $act->get(); +00139 echo $act->display(); +00140 echo $retour; +00141 +00142 } +00144 // Show a list of the action +00145 if ( $sub_action == "list" ) +00146 ShowActionList($cn,$retour,$h_url); +00147 +00149 // Add an action +00150 if ( $sub_action == "add_action" ) +00151 { +00152 echo $retour; +00153 +00154 echo '<div class="u_redcontent">'; +00155 echo JS_SEARCH_CARD; +00156 // Add hidden tag +00157 echo '<form name="RTEDemo" action="commercial.php?p_action=suivi_courrier" method="post" onsubmit="return submitForm();">'; +00158 echo $h_url; +00159 $date=new widget("text"); +00160 $date->name="ag_timestamp"; +00161 $date->value=(isset($_POST['ag_timestamp']))?$_POST['ag_timestamp']:""; +00162 echo "<p>Date : "; +00163 echo $date->IOValue()."</p>"; +00164 // Tiers +00165 $W1=new widget("js_search"); +00166 $W1->label="Tiers"; +00167 $W1->name="tiers"; +00168 $W1->value=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:""; +00169 $W1->extra="8,9,14"; // filter on frd_id +00170 $W1->extra2=0; // jrn = 0 +00171 echo "<div class=\"no\">".$W1->IOValue(); +00172 $client_label=new widget("span"); +00173 $tiers_label=""; +00174 // Retrieve name +00175 if ( $W1->value != "" ) +00176 { +00177 $tiers=new fiche($cn); +00178 $tiers->GetByQCode($W1->value); +00179 $tiers_label=$tiers->strAttribut(1); +00180 +00181 } +00182 echo $client_label->IOValue("tiers_label",$tiers_label)."</div>"; 00183 -00184 <? -00186 // add here for who the action is taken (contact, client or supplier) -00187 -00188 ?> -00189 +00184 $doc_type=new widget("select"); +00185 $doc_type->name="dt_id"; +00186 $doc_type->value=make_array($cn,"select dt_id,dt_value from document_type where dt_id in (".ACTION.")"); +00187 echo 'Type d\' action'; +00188 $doc_type->selected=(isset($_POST['dt_id']))?$_POST['dt_id']:""; +00189 echo $doc_type->IOValue(); 00190 -00191 -00192 <script language="JavaScript" type="text/javascript"> -00193 <!-- -00194 function submitForm() { -00195 //make sure hidden and iframe values are in sync before submitting form -00196 //to sync only 1 rte, use updateRTE(rte) -00197 //to sync all rtes, use updateRTEs -00198 updateRTE('ag_desc'); -00199 //updateRTE(); -00200 //change the following line to true to submit form -00201 return true; -00202 } -00203 -00204 //Usage: initRTE(imagesPath, includesPath, cssFile) -00205 initRTE("images/", "", ""); -00206 //--> -00207 </script> -00208 <noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript> -00209 Note Interne : -00210 <script language="JavaScript" type="text/javascript"> -00211 <!-- -00212 //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly) -00213 <? $a=(isset($_POST['ag_desc']))?FormatString(urldecode($_POST['ag_desc'])):""; ?> -00214 writeRichText('ag_desc', <? printf ("'%s'",$a); ?>, 520, 200, true, false); -00215 <? echo_debug('action.inc',__LINE__, " A = ".$a); ?> -00216 //--> -00217 </script> -00218 -00219 <input type="submit" name="save_action_st1" value="Sauver"></p> -00220 </form> -00221 </div> -00222 <? -00223 } -00225 // Save Action -00226 // Stage 1 : show the result and confirm -00228 if ( $sub_action == "save_action_st1" ) -00229 { -00230 $act=new action($cn); -00231 $act->ag_desc=$_POST['ag_desc']; -00232 $act->ag_date=$_POST['ag_date']; -00233 $act->d_state=$_POST['d_state']; -00234 $act->dt_id=$_POST['dt_id']; -00235 $act->qcode=$_POST['tiers']; -00236 $act->ag_title=$_POST['ag_title']; -00237 echo $act->Confirm(); -00238 } -00240 // Save Action -00241 // Stage 2 : Save the action and propose to save a file -00243 if ( $sub_action == "save_action_st2" ) -00244 { -00245 $act=new action($cn); -00246 $act->ag_desc=$_POST['ag_desc']; -00247 $act->ag_date=$_POST['ag_date']; -00248 $act->d_state=$_POST['d_state']; -00249 $act->dt_id=$_POST['dt_id']; -00250 $act->qcode=$_POST['tiers']; -00251 $act->ag_title=$_POST['ag_title']; -00252 $act->md_id=(isset($_POST['gen_doc']))?$_POST['gen_doc']:0; -00253 -00254 $act->gen=isset($_POST['p_gen'])?'on':'off'; -00255 -00256 echo $act->SaveStage2(); -00257 echo '<A HREF="commercial.php?p_action=suivi_courrier"><INPUT TYPE="BUTTON" VALUE="Retour Liste"></A>'; -00258 } -00259 -00261 // Save Document -00262 // Stage 3 : Save the document -00264 if ( $sub_action == "save_action_st3" ) -00265 { -00266 echo_debug("action.inc.php",__LINE__,'Stage 3'); -00267 $act=new action($cn); -00268 $act->ag_id=$_POST['ag_id']; -00269 $d_id=(isset($_POST['d_id']))?$_POST['d_id']:0; -00270 echo $act->SaveStage3($d_id); -00271 -00272 ShowActionList($cn,$retour,$h_url); -00273 -00274 } +00191 // state +00192 $doc_state=new widget("select"); +00193 $doc_state->name="d_state"; +00194 $doc_state->value=make_array($cn,"select s_id,s_value from document_state"); +00195 $doc_state->selected=(isset($_POST['d_state']))?$_POST['d_state']:""; +00196 echo "Etat : ".$doc_state->IOValue(); +00197 echo '<input type="hidden" name="p_action" value="suivi_courrier">'; +00198 echo '<input type="hidden" name="sa" value="save_action_st1">'; +00199 $title=new widget("text"); +00200 $title->name="ag_title"; +00201 $title->value=(isset($_POST['ag_title']))?$_POST['ag_title']:""; +00202 echo "<p>Titre : "; +00203 echo $title->IOValue()."</p>"; +00204 +00205 ?> +00206 +00207 <? +00209 // add here for who the action is taken (contact, client or supplier) +00210 +00211 ?> +00212 +00213 +00214 +00215 <script language="JavaScript" type="text/javascript"> +00216 <!-- +00217 function submitForm() { +00218 //make sure hidden and iframe values are in sync before submitting form +00219 //to sync only 1 rte, use updateRTE(rte) +00220 //to sync all rtes, use updateRTEs +00221 updateRTE('ag_comment'); +00222 //updateRTE(); +00223 //change the following line to true to submit form +00224 return true; +00225 } +00226 +00227 //Usage: initRTE(imagesPath, includesPath, cssFile) +00228 initRTE("images/", "", ""); +00229 //--> +00230 </script> +00231 <noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript> +00232 Note Interne : +00233 <script language="JavaScript" type="text/javascript"> +00234 <!-- +00235 //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly) +00236 <? $a=(isset($_POST['ag_comment']))?FormatString(urldecode($_POST['ag_comment'])):""; ?> +00237 writeRichText('ag_comment', <? printf ("'%s'",$a); ?>, 520, 200, true, false); +00238 <? echo_debug('action.inc',__LINE__, " A = ".$a); ?> +00239 //--> +00240 </script> +00241 +00242 <input type="submit" name="save_action_st1" value="Sauver"></p> +00243 </form> +00244 </div> +00245 <? +00246 } +00248 // Save Action +00249 // Stage 1 : show the result and confirm +00251 if ( $sub_action == "save_action_st1" ) +00252 { +00253 $act=new action($cn); +00254 $act->ag_comment=$_POST['ag_comment']; +00255 $act->ag_timestamp=$_POST['ag_timestamp']; +00256 $act->d_state=$_POST['d_state']; +00257 $act->dt_id=$_POST['dt_id']; +00258 $act->qcode=$_POST['tiers']; +00259 $act->ag_title=$_POST['ag_title']; +00260 echo $act->Confirm(); +00261 } +00263 // Save Action +00264 // Stage 2 : Save the action and propose to save a file +00266 if ( $sub_action == "save_action_st2" ) +00267 { +00268 $act=new action($cn); +00269 $act->ag_comment=$_POST['ag_comment']; +00270 $act->ag_timestamp=$_POST['ag_timestamp']; +00271 $act->d_state=$_POST['d_state']; +00272 $act->dt_id=$_POST['dt_id']; +00273 $act->qcode=$_POST['tiers']; +00274 $act->ag_title=$_POST['ag_title']; 00275 -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00276 +00277 $act->md_id=(isset($_POST['gen_doc']))?$_POST['gen_doc']:0; +00278 +00279 $act->gen=isset($_POST['p_gen'])?'on':'off'; +00280 +00281 echo $act->SaveStage2(); +00282 echo '<A HREF="commercial.php?p_action=suivi_courrier"><INPUT TYPE="BUTTON" VALUE="Retour Liste"></A>'; +00283 } +00284 +00286 // Save Document +00287 // Stage 3 : Save the document +00289 if ( $sub_action == "save_action_st3" ) +00290 { +00291 echo_debug("action.inc.php",__LINE__,'Stage 3'); +00292 $act=new action($cn); +00293 $act->ag_id=$_POST['ag_id']; +00294 $d_id=(isset($_POST['d_id']))?$_POST['d_id']:0; +00295 echo $act->SaveStage3($d_id); +00296 +00297 ShowActionList($cn,$retour,$h_url); +00298 +00299 } +00300 +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/action_8inc_8php.html b/doc/developper/html/action_8inc_8php.html index e434a0736..4f1a5efb0 100644 --- a/doc/developper/html/action_8inc_8php.html +++ b/doc/developper/html/action_8inc_8php.html @@ -20,56 +20,56 @@

Variables

 $sub_action = (isset($_REQUEST['sa']))?$_REQUEST['sa']:"" - $retour = "" + $retour = '<A HREF="commercial.php?p_action=suivi_courrier"><input type="button" value="Retour"></A>'  $h_url = "" -$date name = "ag_date" +$act ag_id = $_REQUEST['ag_id'] -$date value = (isset($_POST['ag_date']))?$_POST['ag_date']:"" +$date name = "ag_timestamp" - $W1 = new widget("js_search") +$date value = (isset($_POST['ag_timestamp']))?$_POST['ag_timestamp']:"" -$W1 label = "Tiers" + $W1 = new widget("js_search") -$W1 extra = "8,9,14" +$W1 label = "Tiers" -$W1 extra2 = 0 +$W1 extra = "8,9,14" - $client_label = new widget("span") +$W1 extra2 = 0 - $tiers_label = "" + $client_label = new widget("span") - $doc_type = new widget("select") + $tiers_label = "" -$doc_type selected = (isset($_POST['dt_id']))?$_POST['dt_id']:"" + $doc_type = new widget("select") - $doc_state = new widget("select") +$doc_type selected = (isset($_POST['dt_id']))?$_POST['dt_id']:"" - $title = new widget("text") + $doc_state = new widget("select") - $a = (isset($_POST['ag_desc']))?FormatString(urldecode($_POST['ag_desc'])):"" + $title = new widget("text") -$act ag_desc = $_POST['ag_desc'] + $a = (isset($_POST['ag_comment']))?FormatString(urldecode($_POST['ag_comment'])):"" -$act ag_date = $_POST['ag_date'] +$act ag_comment = $_POST['ag_comment'] -$act d_state = $_POST['d_state'] +$act ag_timestamp = $_POST['ag_timestamp'] -$act dt_id = $_POST['dt_id'] +$act d_state = $_POST['d_state'] - class for the table document_type pk document_type
-$act qcode = $_POST['tiers'] +$act dt_id = $_POST['dt_id'] -$act ag_title = $_POST['ag_title'] + class for the table document_type pk document_type
+$act qcode = $_POST['tiers'] -$act md_id = (isset($_POST['gen_doc']))?$_POST['gen_doc']:0 +$act ag_title = $_POST['ag_title'] -$act gen = isset($_POST['p_gen'])?'on':'off' +$act md_id = (isset($_POST['gen_doc']))?$_POST['gen_doc']:0 - $act = new action($cn) +$act gen = isset($_POST['p_gen'])?'on':'off' -$act ag_id = $_POST['ag_id'] + $act = new action($cn)  $d_id = (isset($_POST['d_id']))?$_POST['d_id']:0 @@ -133,17 +133,17 @@ Show the list of action, this code should be common to several webpage. But for

Definition at line 37 of file action.inc.php.

-References $a, $act, $fiche, $h_url, $qcode, $r, $retour, name, qcode, and value. +References $a, $act, $fiche, $h_url, $qcode, $r, $retour, $sp, $w, FormatString(), name, qcode, and value.


Variable Documentation

-

+

@@ -159,12 +159,12 @@ References $a,

-Definition at line 213 of file action.inc.php. +Definition at line 236 of file action.inc.php.

-Referenced by Cezpdf::alink(), Cpdf::ARC4(), fiche::blank(), Cezpdf::Cezpdf(), ComputeTotalVat(), ComputeVat(), action::Confirm(), fiche::CountByDef(), DbConnect(), fiche::Display(), action::Display(), Cpdf::ellipse(), GetDataJrnPdf(), GetFicheJrn(), getFicheNameCode(), rapport::GetName(), GetParent(), getPeriodeFromDate(), getPeriodeFromMonth(), getPeriodeName(), GetRappel(), jrn::GetRow(), Balance::GetRow(), GetTvaPoste(), GetUserProperty(), GetVersion(), isValid(), ListJrn(), make_array(), MakeListingVat(), Document_modele::myList(), RecordJrn(), ShowActionList(), Supplier::Summary(), Customer::Summary(), Cezpdf::uline(), UpdateFiche(), UpdateJrn(), and withStock(). +Referenced by Cezpdf::alink(), Cpdf::ARC4(), fiche::blank(), Cezpdf::Cezpdf(), ComputeTotalVat(), ComputeVat(), action::Confirm(), fiche::CountByDef(), DbConnect(), fiche::Display(), action::Display(), Cpdf::ellipse(), action::get(), GetDataJrnPdf(), GetFicheJrn(), getFicheNameCode(), rapport::GetName(), GetParent(), getPeriodeFromDate(), getPeriodeFromMonth(), getPeriodeName(), GetRappel(), jrn::GetRow(), Balance::GetRow(), GetTvaPoste(), GetUserProperty(), GetVersion(), isValid(), ListJrn(), make_array(), MakeListingVat(), Document_modele::myList(), RecordJrn(), ShowActionList(), Supplier::Summary(), Customer::Summary(), Cezpdf::uline(), UpdateFiche(), UpdateJrn(), and withStock().

- +
$a = (isset($_POST['ag_desc']))?FormatString(urldecode($_POST['ag_desc'])):"" $a = (isset($_POST['ag_comment']))?FormatString(urldecode($_POST['ag_comment'])):""
-

+

+Referenced by Document::Replace(), and ShowActionList().
@@ -186,12 +186,12 @@ Referenced by Cezpdf::

-Definition at line 267 of file action.inc.php. +Definition at line 292 of file action.inc.php.

-Referenced by ShowActionList().

-

+

@@ -240,12 +240,12 @@ Referenced by FormA

-Definition at line 269 of file action.inc.php. +Definition at line 294 of file action.inc.php.

-Referenced by action::SaveStage3(). +Referenced by action::SaveStage3().

@@ -213,7 +213,7 @@ Referenced by ShowActio

-Definition at line 149 of file action.inc.php. +Definition at line 172 of file action.inc.php.

Referenced by FormAchInput(), and FormVenInput().

-

+

+Definition at line 192 of file action.inc.php.
@@ -267,10 +267,10 @@ Referenced by action:

-Definition at line 169 of file action.inc.php.

-

+

+Referenced by action::Confirm(), and action::Display().
@@ -292,9 +292,9 @@ Definition at line 169<

-Definition at line 161 of file action.inc.php. +Definition at line 184 of file action.inc.php.

-Referenced by action::Confirm(), and action::Display().

@@ -319,9 +319,9 @@ Referenced by action:

-Definition at line 112 of file action.inc.php. +Definition at line 125 of file action.inc.php.

-Referenced by action::Confirm(), and ShowActionList(). +Referenced by action::Confirm(), and ShowActionList().

@@ -330,7 +330,7 @@ Referenced by action: - +
$retour = "" $retour = '<A HREF="commercial.php?p_action=suivi_courrier"><input type="button" value="Retour"></A>'
@@ -346,9 +346,9 @@ Referenced by
action:

-Definition at line 111 of file action.inc.php. +Definition at line 124 of file action.inc.php.

-Referenced by action::Confirm(), and ShowActionList(). +Referenced by action::Confirm(), and ShowActionList().

@@ -373,10 +373,10 @@ Referenced by action:

-Definition at line 100 of file action.inc.php. +Definition at line 113 of file action.inc.php. -

+

@@ -398,12 +398,12 @@ Definition at line 100<

-Definition at line 150 of file action.inc.php. +Definition at line 173 of file action.inc.php.

Referenced by FormFin().

-

+

+Referenced by action::Confirm(), action::Display(), get_quick_key(), and ShowItem().
@@ -425,12 +425,12 @@ Referenced by FormF

-Definition at line 176 of file action.inc.php. +Definition at line 199 of file action.inc.php.

-Referenced by action::Confirm(), action::Display(), get_quick_key(), and ShowItem().

-

+

@@ -452,18 +452,18 @@ Referenced by action:

-Definition at line 142 of file action.inc.php. +Definition at line 165 of file action.inc.php.

Referenced by FormAchInput(), FormFin(), and FormVenInput().

-

+

@@ -479,18 +479,18 @@ Referenced by FormA

-Definition at line 232 of file action.inc.php. +Definition at line 254 of file action.inc.php.

-Referenced by action::Confirm(), action::Display(), and Document::Replace(). +Referenced by action::Confirm(), action::Display(), and action::get().

- +
act ag_date = $_POST['ag_date'] act ag_comment = $_POST['ag_comment']
-

+

@@ -506,18 +506,18 @@ Referenced by action:

-Definition at line 231 of file action.inc.php. +Definition at line 137 of file action.inc.php.

-Referenced by action::Confirm(), and action::Display(). +Referenced by Document::get(), Document::Replace(), and action::SaveStage2().

- +
act ag_desc = $_POST['ag_desc'] act ag_id = $_REQUEST['ag_id']
-

+

@@ -533,18 +533,18 @@ Referenced by action:

-Definition at line 268 of file action.inc.php. +Definition at line 255 of file action.inc.php.

-Referenced by action::SaveStage2(). +Referenced by action::Confirm(), action::Display(), and action::get().

- +
$act ag_id = $_POST['ag_id'] act ag_timestamp = $_POST['ag_timestamp']
-

+

@@ -560,18 +560,18 @@ Referenced by action:

-Definition at line 236 of file action.inc.php. +Definition at line 259 of file action.inc.php.

-Referenced by action::myList(), and action::SaveStage2(). +Referenced by action::get(), action::myList(), and action::SaveStage2().

- +
act ag_title = $_POST['ag_title'] act ag_title = $_POST['ag_title']
-

+

@@ -587,18 +587,18 @@ Referenced by action:

-Definition at line 233 of file action.inc.php. +Definition at line 256 of file action.inc.php.

-Referenced by action::Confirm(), and action::Display(). +Referenced by action::Confirm(), action::Display(), Document::get(), action::get(), and action::SaveStage2().

- +
act d_state = $_POST['d_state'] act d_state = $_POST['d_state']
-

+

@@ -616,18 +616,18 @@ class for the table document_type pk document_type

-Definition at line 234 of file action.inc.php. +Definition at line 257 of file action.inc.php.

-Referenced by action::Confirm(), action::Display(), Document_type::document_type(), Document_modele::form(), Document_type::get(), and action::SaveStage2(). +Referenced by action::Confirm(), action::Display(), Document_type::document_type(), Document_modele::form(), Document_type::get(), action::get(), and action::SaveStage2().

- +
act dt_id = $_POST['dt_id'] act dt_id = $_POST['dt_id']
-

+

@@ -643,18 +643,18 @@ Referenced by action:

-Definition at line 146 of file action.inc.php. +Definition at line 169 of file action.inc.php.

Referenced by Cpdf::selectFont().

- +
$W1 extra = "8,9,14" $W1 extra = "8,9,14"
-

+

@@ -670,16 +670,16 @@ Referenced by Cpdf::sele

-Definition at line 147 of file action.inc.php. +Definition at line 170 of file action.inc.php.

- +
$W1 extra2 = 0 $W1 extra2 = 0
-

+

@@ -695,16 +695,16 @@ Definition at line 147<

-Definition at line 254 of file action.inc.php. +Definition at line 279 of file action.inc.php.

- +
$act gen = isset($_POST['p_gen'])?'on':'off' $act gen = isset($_POST['p_gen'])?'on':'off'
-

+

@@ -720,12 +720,12 @@ Definition at line 254<

-Definition at line 143 of file action.inc.php. +Definition at line 166 of file action.inc.php.

-Referenced by Cpdf::addInternalLink(), DisplayDetailModele(), fiche_def::Get(), GetDataModele(), Balance::GetRow(), widget::IOValue(), make_array(), Cpdf::o_action(), Cpdf::o_annotation(), Cpdf::o_fontDescriptor(), Cpdf::o_fontEncoding(), Cpdf::o_image(), Cpdf::o_pages(), Cpdf::o_procset(), UpdateFiche(), and widget::widget(). +Referenced by Cpdf::addInternalLink(), DisplayDetailModele(), poste::get(), fiche_def::Get(), GetDataModele(), Balance::GetRow(), widget::IOValue(), make_array(), Cpdf::o_action(), Cpdf::o_annotation(), Cpdf::o_fontDescriptor(), Cpdf::o_fontEncoding(), Cpdf::o_image(), Cpdf::o_pages(), Cpdf::o_procset(), UpdateFiche(), and widget::widget().

- +
w label = "Tiers" w label = "Tiers"
-

+

+Referenced by Document_modele::Document_modele(), Document_modele::myList(), Document_modele::Save(), and action::SaveStage2().
@@ -747,18 +747,18 @@ Referenced by Cpdf::addI

-Definition at line 252 of file action.inc.php. +Definition at line 277 of file action.inc.php.

-Referenced by Document_modele::Document_modele(), Document_modele::myList(), Document_modele::Save(), and action::SaveStage2().

-

+

@@ -774,18 +774,18 @@ Referenced by 137 of file action.inc.php. +Definition at line 160 of file action.inc.php.

-Referenced by ChangeStock(), cl_user::Check(), cl_user::cl_user(), action::Confirm(), EncodeFiche(), EncodeForm(), EncodeModele(), form_verify_input(), FormAchView(), FormFin(), FormODS(), FormVenteView(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), rapport::GetName(), poste::GetName(), jrn::GetName(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), MakeListingVat(), new_fiche(), Cpdf::o_font(), Cpdf::openFont(), rapport::rapport(), RecordJrn(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), Cpdf::selectFont(), ShowActionList(), ShowFormTransfert(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), UpdateJrn(), Document::Upload(), Customer::VatListing(), VerifData(), VerifImport(), ViewFiche(), and ViewImp(). +Referenced by ChangeStock(), cl_user::Check(), cl_user::cl_user(), action::Confirm(), EncodeFiche(), EncodeForm(), EncodeModele(), form_verify_input(), FormAchView(), FormFin(), FormODS(), FormVenteView(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), rapport::GetName(), poste::GetName(), jrn::GetName(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), MakeListingVat(), new_fiche(), Cpdf::o_font(), Cpdf::openFont(), rapport::rapport(), RecordJrn(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), Cpdf::selectFont(), ShowActionList(), ShowFormTransfert(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), UpdateJrn(), Document::Upload(), Customer::VatListing(), VerifData(), VerifImport(), ViewFiche(), and ViewImp().

- +
w name = "ag_date" w name = "ag_timestamp"
-

+

@@ -801,18 +801,18 @@ Referenced by ChangeStoc

-Definition at line 235 of file action.inc.php. +Definition at line 258 of file action.inc.php.

-Referenced by Document::Replace(), and ShowActionList(). +Referenced by action::get(), Document::Replace(), ShowActionList(), and u_ShowMenuRecherche().

- +
act qcode = $_POST['tiers'] act qcode = $_POST['tiers']
-

+

@@ -828,18 +828,18 @@ Referenced by Docum

-Definition at line 165 of file action.inc.php. +Definition at line 188 of file action.inc.php.

-Referenced by widget::IOValue(), RecordJrn(), and widget::widget(). +Referenced by widget::IOValue(), RecordJrn(), and widget::widget().

- +
w selected = (isset($_POST['dt_id']))?$_POST['dt_id']:"" w selected = (isset($_POST['dt_id']))?$_POST['dt_id']:""
-

+

@@ -855,12 +855,12 @@ Referenced by widget:

-Definition at line 138 of file action.inc.php. +Definition at line 161 of file action.inc.php.

-Referenced by ChangeStock(), action::Confirm(), widget::debug(), fiche_def_ref::Display(), DisplayDetailModele(), EncodeFiche(), EncodeForm(), Cezpdf::ezTable(), FormFin(), FormODS(), FormVenteView(), jrn::GetDefLine(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), fiche_def_ref::LoadAll(), make_array(), new_fiche(), Cpdf::o_fontDescriptor(), Document::ParseDocument(), RecordJrn(), action::SaveStage2(), ShowActionList(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), cl_user::update_global_pref(), UpdateJrn(), VerifImport(), ViewFiche(), ViewImp(), and widget::widget(). +Referenced by ChangeStock(), action::Confirm(), widget::debug(), fiche_def_ref::Display(), DisplayDetailModele(), EncodeFiche(), EncodeForm(), Cezpdf::ezTable(), FormFin(), FormODS(), FormVenteView(), jrn::GetDefLine(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), fiche_def_ref::LoadAll(), make_array(), new_fiche(), Cpdf::o_fontDescriptor(), Document::ParseDocument(), RecordJrn(), action::SaveStage2(), ShowActionList(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), cl_user::update_global_pref(), UpdateJrn(), VerifImport(), ViewFiche(), ViewImp(), and widget::widget().

- +
x value = (isset($_POST['ag_date']))?$_POST['ag_date']:"" x value = (isset($_POST['ag_timestamp']))?$_POST['ag_timestamp']:""
-


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/admin__repo_8php-source.html b/doc/developper/html/admin__repo_8php-source.html index e23069704..eb1d0ce9b 100644 --- a/doc/developper/html/admin__repo_8php-source.html +++ b/doc/developper/html/admin__repo_8php-source.html @@ -318,7 +318,7 @@ 00314 00315 html_page_stop(); 00316 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/admin__repo_8php.html b/doc/developper/html/admin__repo_8php.html index f2aed5135..ec066ab9f 100644 --- a/doc/developper/html/admin__repo_8php.html +++ b/doc/developper/html/admin__repo_8php.html @@ -262,7 +262,7 @@ Referenced by GetNumberLi

Definition at line 119 of file admin_repo.php.

-Referenced by action::Confirm(), action::Display(), and u_ShowDossier(). +Referenced by action::Confirm(), action::Display(), and u_ShowDossier().

@@ -571,7 +571,7 @@ Definition at line 117< Definition at line 42 of file admin_repo.php. -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annotated.html b/doc/developper/html/annotated.html index 63cbbb558..f8f5e757e 100644 --- a/doc/developper/html/annotated.html +++ b/doc/developper/html/annotated.html @@ -32,7 +32,7 @@ SupplierClass Supplier are a specific kind of card widgetClass widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search -
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annulation_8php-source.html b/doc/developper/html/annulation_8php-source.html index 29f6c4695..4dcccf3dd 100644 --- a/doc/developper/html/annulation_8php-source.html +++ b/doc/developper/html/annulation_8php-source.html @@ -84,16 +84,16 @@ 00078 <span> 00079 <FORM METHOD="POST" ACTION="annulation.php?p_jrn=<?echo $_GET['p_jrn'];?>&jrn_op=<?echo $_GET['jrn_op'];?>"> 00080 <INPUT TYPE="HIDDEN" NAME="annul"> -00081 <INPUT TYPE="HIDDEN" NAME="p_id" value="<? echo $_POST['p_id']; ?>"> -00082 <INPUT TYPE="HIDDEN" NAME="op_date" value="<? echo $_POST['op_date']; ?>"> -00083 <INPUT TYPE="SUBMIT" NAME="confirm" value="Oui"> +00081 <INPUT TYPE="HIDDEN" NAME="p_id" value="<? echo $_POST['p_id']; ?>"> +00082 <INPUT TYPE="HIDDEN" NAME="op_date" value="<? echo $_POST['op_date']; ?>"> +00083 <INPUT TYPE="SUBMIT" NAME="confirm" value="Oui"> 00084 </FORM> 00085 00086 <FORM METHOD="GET" ACTION="annulation.php"> -00087 <INPUT TYPE="HIDDEN" NAME="p_jrn" value="<? echo $_REQUEST['p_jrn']; ?>"> -00088 <INPUT TYPE="HIDDEN" NAME="p_id" value="<? echo $_REQUEST['p_id']; ?>"> -00089 <INPUT TYPE="HIDDEN" NAME="jrn_op" value="<? echo $_REQUEST['jrn_op']; ?>"> -00090 <INPUT TYPE="SUBMIT" NAME="not_confirm" value="non"> +00087 <INPUT TYPE="HIDDEN" NAME="p_jrn" value="<? echo $_REQUEST['p_jrn']; ?>"> +00088 <INPUT TYPE="HIDDEN" NAME="p_id" value="<? echo $_REQUEST['p_id']; ?>"> +00089 <INPUT TYPE="HIDDEN" NAME="jrn_op" value="<? echo $_REQUEST['jrn_op']; ?>"> +00090 <INPUT TYPE="SUBMIT" NAME="not_confirm" value="non"> 00091 </form> 00092 </span> 00093 <? @@ -110,7 +110,7 @@ 00104 00105 // Test if date is valid 00106 if ( isDate ($e_op_date) == null ) { -00107 $msg='Invalid Date'; +00107 $msg='Invalid Date'; 00108 echo "<script> alert('$msg');</script>"; 00109 // set an incorrect pid to get out from here 00110 $p_id=-1; @@ -123,7 +123,7 @@ 00117 // Periode fermée 00118 if ( PeriodeClosed ($cn,$userPref)=='t' ) 00119 { -00120 $msg="Votre periode par defaut est fermee, changez vos preferences"; +00120 $msg="Votre periode par defaut est fermee, changez vos preferences"; 00121 echo_error($msg); 00122 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00123 // set an incorrect pid to get out from here @@ -246,16 +246,16 @@ 00240 <div> 00241 <form action="'.$_SERVER['REQUEST_URI'].'" method="post" >'; 00242 -00243 $a=new widget("text"); +00243 $a=new widget("text"); 00244 // $a=InputType("Date","text", "op_date",$e_op_date,false); 00245 //echo 'Date : '.$e_op_date; -00246 $a->SetReadOnly(false); -00247 echo $a->IOValue("op_date",$e_op_date,"Date"); +00246 $a->SetReadOnly(false); +00247 echo $a->IOValue("op_date",$e_op_date,"Date"); 00248 00249 echo '<div style="border-style:solid;border-width:1pt;">'; 00250 //$a=InputType("Description:","text_big","comment",$e_comment,false); -00251 $a->size=80; -00252 echo $a->IOValue("comment",$e_comment,"Description"); +00251 $a->size=80; +00252 echo $a->IOValue("comment",$e_comment,"Description"); 00253 echo '</DIV>'; 00254 00255 if ( isset ($e_ech) ) { @@ -275,7 +275,7 @@ 00269 } 00270 //echo "operation concernée $e_rapt<br><br> 00271 //"; -00272 $a=GetConcerned($cn,$e_jr_id); +00272 $a=GetConcerned($cn,$e_jr_id); 00273 00274 if ( $a != null ) { 00275 foreach ($a as $key => $element) { @@ -287,14 +287,14 @@ 00281 00282 echo ' 00283 -00284 <input type="hidden" name="p_id" value="'.$_GET['jrn_op'].'"> -00285 <input type="submit" name="annul" value="Mise à zéro"> -00286 <input type="button" name="cancel" value="Retour" onClick="window.close();"> +00284 <input type="hidden" name="p_id" value="'.$_GET['jrn_op'].'"> +00285 <input type="submit" name="annul" value="Mise à zéro"> +00286 <input type="button" name="cancel" value="Retour" onClick="window.close();"> 00287 </form>'; 00288 00289 html_page_stop(); 00290 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annulation_8php.html b/doc/developper/html/annulation_8php.html index 850aaee85..020dd8fe3 100644 --- a/doc/developper/html/annulation_8php.html +++ b/doc/developper/html/annulation_8php.html @@ -303,7 +303,7 @@ Definition at line 55251 of file annulation.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bal__csv_8php-source.html b/doc/developper/html/bal__csv_8php-source.html index 425a9912b..9250561d4 100644 --- a/doc/developper/html/bal__csv_8php-source.html +++ b/doc/developper/html/bal__csv_8php-source.html @@ -47,11 +47,11 @@ 00041 } 00042 $bal=new Balance($cn); 00043 -00044 $t_cent=""; +00044 $t_cent=""; 00045 //$per=join(',',$periode); 00046 if ( isset($_POST['central']) ) { 00047 $bal->central='Y'; -00048 $t_cent="centralisée"; +00048 $t_cent="centralisée"; 00049 } 00050 else 00051 $bal->central='N'; @@ -61,7 +61,7 @@ 00055 foreach ($row as $r) { 00056 00057 echo $r['poste'].';'. -00058 $r['label'].';'. +00058 $r['label'].';'. 00059 $r['sum_deb'].';'. 00060 $r['sum_cred'].';'. 00061 $r['solde_deb'].';'. @@ -71,7 +71,7 @@ 00065 00066 00067 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bal__csv_8php.html b/doc/developper/html/bal__csv_8php.html index 97bfc492a..19e81fbac 100644 --- a/doc/developper/html/bal__csv_8php.html +++ b/doc/developper/html/bal__csv_8php.html @@ -156,7 +156,7 @@ Definition at line 35 Definition at line 40 of file bal_csv.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/balance_8php-source.html b/doc/developper/html/balance_8php-source.html index 64c63b559..fd39a47d0 100644 --- a/doc/developper/html/balance_8php-source.html +++ b/doc/developper/html/balance_8php-source.html @@ -28,112 +28,114 @@ 00019 */ 00020 // Auteur Dany De Bontridder ddebontridder@yahoo.fr 00021 // /* $Revision$ */ -00026 include_once ("ac_common.php"); -00027 include_once("preference.php"); -00028 include_once ("class_widget.php"); -00029 include_once("class_balance.php"); -00030 if ( $User->CheckAction($cn,BALANCE) == 0) -00031 { -00032 NoAccess(); -00033 exit; -00034 } -00035 echo '<div class="u_content">'; -00036 -00038 // Form -00040 // Show the export button -00041 if ( isset ($_POST['view'] ) ) { -00042 $submit=new widget(); -00043 $hid=new widget("hidden"); -00044 -00045 echo "<table>"; -00046 echo '<TR>'; -00047 echo '<TD><form method="POST" ACTION="print_balance.php">'. -00048 $submit->Submit('bt_pdf',"Export PDF"). -00049 $hid->IOValue("from_periode",$_POST['from_periode']). -00050 $hid->IOValue("to_periode",$_POST['to_periode']); -00051 -00052 echo "</form></TD>"; -00053 echo '<TD><form method="POST" ACTION="bal_csv.php">'. -00054 $submit->Submit('bt_csv',"Export CSV"). -00055 $hid->IOValue("from_periode",$_POST['from_periode']). -00056 $hid->IOValue("to_periode",$_POST['to_periode']); -00057 -00058 echo "</form></TD>"; -00059 -00060 echo "</TR>"; -00061 -00062 echo "</table>"; -00063 } +00029 include_once ("ac_common.php"); +00030 include_once("preference.php"); +00031 include_once ("class_widget.php"); +00032 include_once("class_balance.php"); +00033 if ( $User->CheckAction($cn,BALANCE) == 0) +00034 { +00035 NoAccess(); +00036 exit; +00037 } +00038 echo '<div class="u_content">'; +00039 +00041 // Form +00043 // Show the export button +00044 if ( isset ($_POST['view'] ) ) { +00045 $submit=new widget(); +00046 $hid=new widget("hidden"); +00047 +00048 echo "<table>"; +00049 echo '<TR>'; +00050 echo '<TD><form method="POST" ACTION="print_balance.php">'. +00051 $submit->Submit('bt_pdf',"Export PDF"). +00052 $hid->IOValue("from_periode",$_POST['from_periode']). +00053 $hid->IOValue("to_periode",$_POST['to_periode']); +00054 +00055 echo "</form></TD>"; +00056 echo '<TD><form method="POST" ACTION="bal_csv.php">'. +00057 $submit->Submit('bt_csv',"Export CSV"). +00058 $hid->IOValue("from_periode",$_POST['from_periode']). +00059 $hid->IOValue("to_periode",$_POST['to_periode']); +00060 +00061 echo "</form></TD>"; +00062 +00063 echo "</TR>"; 00064 -00065 // Show the form for period -00066 echo '<FORM action="user_impress.php?type=bal" method="post">'; -00067 $w=new widget("select"); -00068 $w->table=1; -00069 -00070 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00071 $w->label="Depuis"; -00072 if ( isset ($_POST['from_periode']) ) -00073 $w->selected=$_POST['from_periode']; +00065 echo "</table>"; +00066 } +00067 +00068 // Show the form for period +00069 echo '<FORM action="user_impress.php?type=bal" method="post">'; +00070 $w=new widget("select"); +00071 $w->table=1; +00072 // filter on the current year +00073 $filter_year=" where p_exercice='".$User->getExercice()."'"; 00074 -00075 echo $w->IOValue('from_periode',$periode_start); -00076 $w->label=" jusqu'à "; -00077 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); -00078 if ( isset ($_POST['to_periode']) ) -00079 $w->selected=$_POST['to_periode']; -00080 -00081 echo $w->IOValue('to_periode',$periode_end); -00082 $c=new widget("checkbox"); -00083 $c->label="centralisé"; -00084 echo $c->IOValue('central'); +00075 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00076 $w->label="Depuis"; +00077 if ( isset ($_POST['from_periode']) ) +00078 $w->selected=$_POST['from_periode']; +00079 +00080 echo $w->IOValue('from_periode',$periode_start); +00081 $w->label=" jusqu'à "; +00082 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00083 if ( isset ($_POST['to_periode']) ) +00084 $w->selected=$_POST['to_periode']; 00085 -00086 //$a=FormPeriodeMult($cn); -00087 //echo $a; -00088 echo '<input type="submit" name="view" value="ok">'; -00089 +00086 echo $w->IOValue('to_periode',$periode_end); +00087 $c=new widget("checkbox"); +00088 $c->label="centralisé"; +00089 echo $c->IOValue('central'); 00090 -00092 // Display result -00094 if ( isset($_POST['view'] ) ) { -00095 $bal=new Balance($cn); -00096 -00097 $t_cent=""; -00098 //$per=join(',',$periode); -00099 if ( isset($_POST['central']) ) { -00100 $bal->central='Y'; -00101 $t_cent="centralisée"; -00102 } -00103 else -00104 $bal->central='N'; -00105 -00106 $row=$bal->GetRow($_POST['from_periode'], -00107 $_POST['to_periode']); -00108 $a=GetPeriode($cn,$_POST['from_periode']); -00109 $b=GetPeriode($cn,$_POST['to_periode']); -00110 echo "<h2 class=\"info\"> période du ".$a['p_start']." au ".$b['p_end']."</h2>"; -00111 -00112 echo '<table width="100%">'; -00113 $i=0; -00114 foreach ($row as $r) { -00115 $i++; -00116 if ( $i%2 == 0 ) -00117 $tr="even"; -00118 else -00119 $tr="odd"; -00120 -00121 echo '<TR class="'.$tr.'">'; -00122 echo '<TD>'.$r['poste'].'</TD>'; -00123 echo '<TD>'.$r['label'].'</TD>'; -00124 echo '<TD>'.$r['sum_deb'].'</TD>'; -00125 echo '<TD>'.$r['sum_cred'].'</TD>'; -00126 echo '<TD>'.$r['solde_deb'].'</TD>'; -00127 echo '<TD>'.$r['solde_cred'].'</TD>'; -00128 echo '</TR>'; -00129 } -00130 echo '</table>'; -00131 -00132 }// end submit -00133 echo "</div>"; -00134 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00091 //$a=FormPeriodeMult($cn); +00092 //echo $a; +00093 echo '<input type="submit" name="view" value="ok">'; +00094 +00095 +00097 // Display result +00099 if ( isset($_POST['view'] ) ) { +00100 $bal=new Balance($cn); +00101 +00102 $t_cent=""; +00103 //$per=join(',',$periode); +00104 if ( isset($_POST['central']) ) { +00105 $bal->central='Y'; +00106 $t_cent="centralisée"; +00107 } +00108 else +00109 $bal->central='N'; +00110 +00111 $row=$bal->GetRow($_POST['from_periode'], +00112 $_POST['to_periode']); +00113 $a=GetPeriode($cn,$_POST['from_periode']); +00114 $b=GetPeriode($cn,$_POST['to_periode']); +00115 echo "<h2 class=\"info\"> période du ".$a['p_start']." au ".$b['p_end']."</h2>"; +00116 +00117 echo '<table width="100%">'; +00118 $i=0; +00119 foreach ($row as $r) { +00120 $i++; +00121 if ( $i%2 == 0 ) +00122 $tr="even"; +00123 else +00124 $tr="odd"; +00125 +00126 echo '<TR class="'.$tr.'">'; +00127 echo '<TD>'.$r['poste'].'</TD>'; +00128 echo '<TD>'.$r['label'].'</TD>'; +00129 echo '<TD>'.$r['sum_deb'].'</TD>'; +00130 echo '<TD>'.$r['sum_cred'].'</TD>'; +00131 echo '<TD>'.$r['solde_deb'].'</TD>'; +00132 echo '<TD>'.$r['solde_cred'].'</TD>'; +00133 echo '</TR>'; +00134 } +00135 echo '</table>'; +00136 +00137 }// end submit +00138 echo "</div>"; +00139 ?> +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/balance_8php.html b/doc/developper/html/balance_8php.html index 2645b2f30..77a6a7c6a 100644 --- a/doc/developper/html/balance_8php.html +++ b/doc/developper/html/balance_8php.html @@ -7,7 +7,7 @@ -

balance.php File Reference

Show the balance and let you print it or export to PDF. More... +

balance.php File Reference

Show the balance and let you print it or export to PDF file included by user_impress. More...

@@ -22,32 +22,34 @@ $w table = 1 - $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") + $filter_year = " where p_exercice='".$User->getExercice()."'" -$w label = "Depuis" + $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id") - $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") +$w label = "Depuis" - $c = new widget("checkbox") + $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id") - $t_cent = "" + $c = new widget("checkbox") - $a = GetPeriode($cn,$_POST['from_periode']) + $t_cent = "" - $b = GetPeriode($cn,$_POST['to_periode']) + $a = GetPeriode($cn,$_POST['from_periode']) - $i = 0 + $b = GetPeriode($cn,$_POST['to_periode']) -else $tr = "odd" + $i = 0 + +else $tr = "odd"


Detailed Description

-Show the balance and let you print it or export to PDF. +Show the balance and let you print it or export to PDF file included by user_impress.

- +some variable are already defined ($cn, $User ...)

Definition in file balance.php.


Variable Documentation

-

+

+Definition at line 113 of file balance.php.
@@ -69,10 +71,10 @@ Definition in file balance.php

-Definition at line 108 of file balance.php.

-

+

@@ -94,12 +96,12 @@ Definition at line 108

-Definition at line 109 of file balance.php. +Definition at line 114 of file balance.php.

Referenced by Cpdf::ARC4(), and MakeListingVat().

-

+

+Definition at line 87 of file balance.php. + +
@@ -121,7 +123,32 @@ Referenced by Cpdf::ARC4

-Definition at line 82 of file balance.php.

+

+ + + + +
+ + + + +
$filter_year = " where p_exercice='".$User->getExercice()."'"
+
+ + + +
+   + + +

+ +

+Definition at line 73 of file balance.php.

@@ -146,10 +173,10 @@ Definition at line 82 o

-Definition at line 43 of file balance.php. +Definition at line 46 of file balance.php. -

+

+Referenced by Cezpdf::alink(), Cpdf::ARC4_init(), DisplayDetailModele(), Cpdf::ellipse(), Cezpdf::ezPRVTpageNumberSearch(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezStopPageNumbers(), FormODS(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetConcerned(), GetDataJrnJrId(), GetDataPoste(), GetFicheJrn(), getFicheNameCode(), GetPriv(), poste::GetRow(), Balance::GetRow(), ImpHtml(), widget::IOValue(), make_array(), Cpdf::o_pages(), Cpdf::openFont(), ParseFormula(), RecordInvoice(), RecordSell(), Cpdf::selectFont(), ShowReportResult(), SortAttributeById(), u_ShowDossier(), Cezpdf::uline(), UpdateForm(), UpdateJrn(), and VerifImport().
@@ -171,18 +198,18 @@ Definition at line 43 o

-Definition at line 113 of file balance.php. +Definition at line 118 of file balance.php.

-Referenced by Cezpdf::alink(), Cpdf::ARC4_init(), DisplayDetailModele(), Cpdf::ellipse(), Cezpdf::ezPRVTpageNumberSearch(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezStopPageNumbers(), FormODS(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetConcerned(), GetDataJrnJrId(), GetDataPoste(), GetFicheJrn(), getFicheNameCode(), GetPriv(), poste::GetRow(), Balance::GetRow(), ImpHtml(), widget::IOValue(), make_array(), Cpdf::o_pages(), Cpdf::openFont(), ParseFormula(), RecordInvoice(), RecordSell(), Cpdf::selectFont(), ShowReportResult(), SortAttributeById(), u_ShowDossier(), Cezpdf::uline(), UpdateForm(), UpdateJrn(), and VerifImport().

-

+

@@ -198,16 +225,16 @@ Referenced by Cezpdf::

-Definition at line 77 of file balance.php. +Definition at line 82 of file balance.php.

- +
$periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
-

+

@@ -223,10 +250,10 @@ Definition at line 77 o

-Definition at line 70 of file balance.php. +Definition at line 75 of file balance.php.

- +
$periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
-

+

+Definition at line 102 of file balance.php.
@@ -248,10 +275,10 @@ Definition at line 70 o

-Definition at line 97 of file balance.php.

-

+

@@ -300,7 +327,7 @@ Referenced by ListJrn(

-Definition at line 67 of file balance.php. +Definition at line 70 of file balance.php.

@@ -273,7 +300,7 @@ Definition at line 97 o

-Definition at line 119 of file balance.php. +Definition at line 124 of file balance.php.

Referenced by ListJrn(), and u_ShowDossier().

@@ -325,18 +352,18 @@ Definition at line 67 o

-Definition at line 33 of file balance.php. +Definition at line 36 of file balance.php.

-Referenced by AddFiche(), cl_user::Check(), ExecSql(), ExecuteScript(), FormAchInput(), FormAchView(), FormFin(), FormVenInput(), FormVenteView(), GetFicheJrn(), NoAccess(), Document::ParseDocument(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), and TransferCSV(). +Referenced by AddFiche(), cl_user::Check(), ExecSql(), ExecuteScript(), FormAchInput(), FormAchView(), FormFin(), FormVenInput(), FormVenteView(), GetFicheJrn(), NoAccess(), Document::ParseDocument(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), and TransferCSV(). -

+

@@ -352,7 +379,7 @@ Referenced by AddFiche()

-Definition at line 71 of file balance.php. +Definition at line 76 of file balance.php.

- +
$c label = "Depuis" $c label = "Depuis"

@@ -361,7 +388,7 @@ Definition at line 71 o - +
centralise table = 1 centralise table = 1
@@ -377,12 +404,12 @@ Definition at line 71 o

-Definition at line 68 of file balance.php. +Definition at line 71 of file balance.php.

-Referenced by fiche::blank(), ListJrn(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), VerifImport(), ViewRecord(), and widget::widget(). +Referenced by fiche::blank(), ListJrn(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), VerifImport(), ViewFiche(), ViewRecord(), and widget::widget(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bilan_8php-source.html b/doc/developper/html/bilan_8php-source.html index 013a2ea07..f726db91d 100644 --- a/doc/developper/html/bilan_8php-source.html +++ b/doc/developper/html/bilan_8php-source.html @@ -91,8 +91,8 @@ 00085 //ereg("\\$[a-zA-Z]+[0-9]*=",$buffer,$e); 00086 // echo $e[0]; 00087 //echo "<br>".$form; -00088 $a=ParseFormula($cn,"$buffer",$buffer,$start,$end,false); -00089 $b=str_replace("$","\$",$a); +00088 $a=ParseFormula($cn,"$buffer",$buffer,$start,$end,false); +00089 $b=str_replace("$","\$",$a); 00090 00091 // echo "Formule to eval".$b.'<hr>'; 00092 eval("$b;"); @@ -129,7 +129,7 @@ 00124 $f2_value=str_replace("$","",$f2_value); 00125 // DEBUG 00126 //echo "f2_value=$f2_value"; -00127 $a=${"$f2_value"}; +00127 $a=${"$f2_value"}; 00128 // DEBUG echo " a = $a"; 00129 $line_rtf=str_replace($f2_str,$a,$line_rtf); 00130 @@ -142,7 +142,7 @@ 00137 00138 }// rtf file is read 00139 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bilan_8php.html b/doc/developper/html/bilan_8php.html index 0ed256e7e..07c6d09a8 100644 --- a/doc/developper/html/bilan_8php.html +++ b/doc/developper/html/bilan_8php.html @@ -296,7 +296,7 @@ Definition at line 129 of

Definition at line 58 of file bilan.php.

-Referenced by Cezpdf::alink(), Cezpdf::ezTable(), Cezpdf::ezText(), Cezpdf::ezWhatPageNumber(), Document_modele::form(), TransferCSV(), and Cezpdf::uline(). +Referenced by Cezpdf::alink(), Cezpdf::ezTable(), Cezpdf::ezText(), Cezpdf::ezWhatPageNumber(), Document_modele::form(), TransferCSV(), and Cezpdf::uline().

@@ -324,7 +324,7 @@ Referenced by Cezpdf:: Definition at line 33 of file bilan.php. -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/cbc__be_8inc_8php-source.html b/doc/developper/html/cbc__be_8inc_8php-source.html index 93e9f2db1..4d6cf67dd 100644 --- a/doc/developper/html/cbc__be_8inc_8php-source.html +++ b/doc/developper/html/cbc__be_8inc_8php-source.html @@ -64,7 +64,7 @@ 00064 fclose($handle); 00065 echo "Encore rien désolé"; 00066 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/cbc__be_8inc_8php.html b/doc/developper/html/cbc__be_8inc_8php.html index e8a64ee3c..0d8dd33b0 100644 --- a/doc/developper/html/cbc__be_8inc_8php.html +++ b/doc/developper/html/cbc__be_8inc_8php.html @@ -47,10 +47,10 @@ Definition in file cbc_be.inc

Definition at line 28 of file cbc_be.inc.php.

-Referenced by Centralise(), cl_user::cl_user(), Cezpdf::ezTable(), Document::Generate(), parm_code::Get(), fiche_def::Get(), Document_modele::Get(), Document::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), cl_user::GetPreferences(), ListJrn(), fiche_def_ref::LoadAll(), make_array(), Document_modele::myList(), action::myList(), Cpdf::openFont(), Own::Own(), ShowDossier(), and fiche::strAttribut(). +Referenced by Centralise(), cl_user::cl_user(), Cezpdf::ezTable(), Document::Generate(), parm_code::Get(), fiche_def::Get(), Document_modele::Get(), Document::get(), action::get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), cl_user::GetPreferences(), ListJrn(), fiche_def_ref::LoadAll(), make_array(), Document_modele::myList(), action::myList(), Cpdf::openFont(), Own::Own(), Document::Send(), ShowDossier(), and fiche::strAttribut(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central_8php-source.html b/doc/developper/html/central_8php-source.html index d6689ce70..1f3f2f0df 100644 --- a/doc/developper/html/central_8php-source.html +++ b/doc/developper/html/central_8php-source.html @@ -81,7 +81,7 @@ 00075 if ( $ret != null) { 00076 echo '<FORM METHOD="POST" action="central.php">'; 00077 echo $ret; -00078 echo '<INPUT TYPE="SUBMIT" name="central" VALUE="Centralise">'; +00078 echo '<INPUT TYPE="SUBMIT" name="central" VALUE="Centralise">'; 00079 echo '</FORM>'; 00080 } else { 00081 echo '<H2 class="info"> Aucune période à centraliser</H2>'; @@ -90,7 +90,7 @@ 00084 echo "</DIV>"; 00085 html_page_stop(); 00086 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central_8php.html b/doc/developper/html/central_8php.html index af3d885d6..e73814e23 100644 --- a/doc/developper/html/central_8php.html +++ b/doc/developper/html/central_8php.html @@ -102,7 +102,7 @@ Definition at line 35 o Definition at line 37 of file central.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central__inc_8php-source.html b/doc/developper/html/central__inc_8php-source.html index 6471cbc89..cfb335016 100644 --- a/doc/developper/html/central__inc_8php-source.html +++ b/doc/developper/html/central__inc_8php-source.html @@ -145,7 +145,7 @@ 00162 } 00163 00164 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central__inc_8php.html b/doc/developper/html/central__inc_8php.html index 407709deb..e8bf7b4e1 100644 --- a/doc/developper/html/central__inc_8php.html +++ b/doc/developper/html/central__inc_8php.html @@ -74,9 +74,9 @@ Met les donnees centralisees dans la table centralize.

Definition at line 36 of file central_inc.php.

-References $MaxJrn, $MaxLine, $Res, $Res2, $Ret, $row, $sql, Commit(), EndSql(), ExecSql(), and StartSql(). +References $MaxJrn, $MaxLine, $Res, $Res2, $Ret, $row, $sql, Commit(), EndSql(), ExecSql(), and StartSql().

-Referenced by ShowMenuAdvanced(). +Referenced by ShowMenuAdvanced().

@@ -127,7 +127,7 @@ Definition at line 159 References $Res, and ExecSql(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/check__priv_8php-source.html b/doc/developper/html/check__priv_8php-source.html index 3a9c4a447..e18b12261 100644 --- a/doc/developper/html/check__priv_8php-source.html +++ b/doc/developper/html/check__priv_8php-source.html @@ -158,7 +158,7 @@ 00206 } 00207 00208 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/check__priv_8php.html b/doc/developper/html/check__priv_8php.html index 59f9378a2..f8e05cd44 100644 --- a/doc/developper/html/check__priv_8php.html +++ b/doc/developper/html/check__priv_8php.html @@ -250,12 +250,12 @@ $p_user le login user

    Definition at line 46 of file check_priv.php.

    -References $cn, $Res, $Res2, CheckIsAdmin(), CountSql(), DbConnect(), echo_debug(), and ExecSql(). +References $cn, $Res, $Res2, CheckIsAdmin(), CountSql(), DbConnect(), echo_debug(), and ExecSql().

    Referenced by ShowMenuJrnUser(). -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classAttribut.html b/doc/developper/html/classAttribut.html index d502733d6..92a5d127b 100644 --- a/doc/developper/html/classAttribut.html +++ b/doc/developper/html/classAttribut.html @@ -162,7 +162,7 @@ Definition at line
    The documentation for this class was generated from the following file:
    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classBalance.html b/doc/developper/html/classBalance.html index b73e95be6..6cd1488f2 100644 --- a/doc/developper/html/classBalance.html +++ b/doc/developper/html/classBalance.html @@ -110,7 +110,7 @@ retrieve all the row from the ledger in the range of a periode

    Definition at line 53 of file class_balance.php.

    -References $a, $array, $i, $M, $r, $Res, $sql, ExecSql(), GetPosteLibelle(), and label. +References $a, $array, $i, $M, $r, $Res, $sql, ExecSql(), GetPosteLibelle(), and label.


    Field Documentation

    @@ -191,7 +191,7 @@ Definition at line 3
    The documentation for this class was generated from the following file:
    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classCezpdf.html b/doc/developper/html/classCezpdf.html index 7f42a5f58..34688e102 100644 --- a/doc/developper/html/classCezpdf.html +++ b/doc/developper/html/classCezpdf.html @@ -128,7 +128,7 @@ Definition at line 5 Definition at line 28 of file class.ezpdf.php.

    -References $a, $size, Cpdf::Cpdf(), Cpdf::getFirstPageId(), and size. +References $a, $size, Cpdf::Cpdf(), Cpdf::getFirstPageId(), and size.

    Referenced by Creport::Creport(). @@ -172,7 +172,7 @@ Referenced by Creport::Crepo

    Definition at line 1473 of file class.ezpdf.php.

    -References $a, $i, $start, and start. +References $a, $i, $start, and start.

    Referenced by ezTable(). @@ -668,7 +668,7 @@ Referenced by ezTable(

    Definition at line 360 of file class.ezpdf.php.

    -References $i. +References $i.

    Referenced by ezPRVTaddPageNumbers(). @@ -753,7 +753,7 @@ Referenced by ezPRVTad

    Definition at line 526 of file class.ezpdf.php.

    -References $ok, Cpdf::$options, $y, ezNewPage(), ezSetY(), ezText(), size, start, and Cpdf::transaction(). +References $ok, Cpdf::$options, $y, ezNewPage(), ezSetY(), ezText(), size, start, and Cpdf::transaction().

    Referenced by ezTable(). @@ -850,7 +850,7 @@ Referenced by ezTable(

    Definition at line 497 of file class.ezpdf.php.

    -References $n, $x, Cpdf::line(), Cpdf::setLineStyle(), and Cpdf::setStrokeColor(). +References $n, $x, Cpdf::line(), Cpdf::setLineStyle(), and Cpdf::setStrokeColor().

    Referenced by ezTable(). @@ -1088,7 +1088,7 @@ Referenced by ezPrvtTa

    Definition at line 273 of file class.ezpdf.php.

    -References $i, and size. +References $i, and size.

    Referenced by ezWhatPageNumber(). @@ -1137,7 +1137,7 @@ Referenced by ezWhatPa

    Definition at line 331 of file class.ezpdf.php.

    -References $i. +References $i.

    @@ -1222,7 +1222,7 @@ References ezPRVTclean

    Definition at line 607 of file class.ezpdf.php.

    -References $height, $ok, Cpdf::$options, $p, $row, $start, $t, $w, $x, $y, Cpdf::addObject(), Cpdf::addText(), Cpdf::addTextWrap(), alink(), Cpdf::closeObject(), ezNewPage(), ezProcessText(), ezPrvtGetTextWidth(), ezPrvtTableColumnHeadings(), ezPrvtTableDrawLines(), ezSetY(), Cpdf::filledRectangle(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), Cpdf::getTextWidth(), Cpdf::line(), Cpdf::newPage(), Cpdf::openObject(), Cpdf::reopenObject(), Cpdf::restoreState(), Cpdf::saveState(), Cpdf::setColor(), Cpdf::setLineStyle(), Cpdf::setStrokeColor(), start, Cpdf::transaction(), value, and width. +References $height, $ok, Cpdf::$options, $p, $row, $start, $t, $w, $x, $y, Cpdf::addObject(), Cpdf::addText(), Cpdf::addTextWrap(), alink(), Cpdf::closeObject(), ezNewPage(), ezProcessText(), ezPrvtGetTextWidth(), ezPrvtTableColumnHeadings(), ezPrvtTableDrawLines(), ezSetY(), Cpdf::filledRectangle(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), Cpdf::getTextWidth(), Cpdf::line(), Cpdf::newPage(), Cpdf::openObject(), Cpdf::reopenObject(), Cpdf::restoreState(), Cpdf::saveState(), Cpdf::setColor(), Cpdf::setLineStyle(), Cpdf::setStrokeColor(), start, Cpdf::transaction(), value, and width.

    @@ -1275,7 +1275,7 @@ References $height, Definition at line 1205 of file class.ezpdf.php.

    -References $height, Cpdf::$options, $right, $size, $start, Cpdf::addTextWrap(), ezNewPage(), ezProcessText(), Cpdf::getFontHeight(), Cpdf::line(), size, and start. +References $height, Cpdf::$options, $right, $size, $start, Cpdf::addTextWrap(), ezNewPage(), ezProcessText(), Cpdf::getFontHeight(), Cpdf::line(), size, and start.

    Referenced by ezPrvtTableColumnHeadings(). @@ -1414,7 +1414,7 @@ References $code.

    Definition at line 1518 of file class.ezpdf.php.

    -References $a, $i, $start, and start. +References $a, $i, $start, and start.


    Field Documentation

    @@ -1522,7 +1522,7 @@ Referenced by ezPrvtTa
    The documentation for this class was generated from the following file:
    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:37 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classCpdf.html b/doc/developper/html/classCpdf.html index de7fb4dff..421685746 100644 --- a/doc/developper/html/classCpdf.html +++ b/doc/developper/html/classCpdf.html @@ -58,7 +58,7 @@  addLink ($url, $x0, $y0, $x1, $y1) - addInternalLink ($label, $x0, $y0, $x1, $y1) + addInternalLink ($label, $x0, $y0, $x1, $y1)  setEncryption ($userPass='', $ownerPass='', $pc=array()) @@ -138,9 +138,9 @@  addObject ($id, $options='add') - addInfo ($label, $value=0) + addInfo ($label, $value=0) - setPreferences ($label, $value=0) + setPreferences ($label, $value=0)  PRVT_getBytes (&$data, $pos, $num) @@ -154,7 +154,7 @@  openHere ($style, $a=0, $b=0, $c=0) - addDestination ($label, $style, $a=0, $b=0, $c=0) + addDestination ($label, $style, $a=0, $b=0, $c=0)  setFontFamily ($family, $options='') @@ -531,7 +531,7 @@ add a link in the document to an internal destination (ie. within the document)

    Definition at line 1173 of file class.pdf.php.

    -References label. +References label.

    @@ -1025,7 +1025,7 @@ ARC4 encrypt a text string

    Definition at line 1138 of file class.pdf.php.

    -References $a, $b, $c, and $t. +References $a, $b, $c, and $t.

    @@ -1057,7 +1057,7 @@ initialize the ARC4 encryption

    Definition at line 1112 of file class.pdf.php.

    -References $i, and $t. +References $i, and $t.

    @@ -1282,7 +1282,7 @@ draws an ellipse in the current line style centered at $x0,$y0, radii $r1,$r2 if

    Definition at line 1713 of file class.pdf.php.

    -References $a, $c1, $i, and $tmp. +References $a, $c1, $i, and $tmp.

    @@ -1831,7 +1831,7 @@ an action object, used to link to URLS initially

    Definition at line 726 of file class.pdf.php.

    -References $o, $res, and label. +References $o, $res, and label.

    @@ -1878,7 +1878,7 @@ an annotation object, this will add an annotation to the current page. initially

    Definition at line 769 of file class.pdf.php.

    -References $label, $o, $res, and label. +References $label, $o, $res, and label.

    @@ -1925,7 +1925,7 @@ define the document catalog, the overall controller for the document

    Definition at line 297 of file class.pdf.php.

    -References $action, $o, $options, $res, o_viewerPreferences(), and openHere(). +References $action, $o, $options, $res, o_viewerPreferences(), and openHere().

    Referenced by o_outlines(), and o_pages(). @@ -1974,7 +1974,7 @@ the contents objects hold all of the content which appears on pages

    Definition at line 890 of file class.pdf.php.

    -References $o, $res, and $tmp. +References $o, $res, and $tmp.

    @@ -2021,7 +2021,7 @@ destination object, used to specify the location for the user to jump to, presen

    Definition at line 224 of file class.pdf.php.

    -References $action, $o, $options, $res, and $tmp. +References $action, $o, $options, $res, and $tmp.

    @@ -2068,7 +2068,7 @@ encryption object.

    Definition at line 1015 of file class.pdf.php.

    -References $action, $o, $res, and $tmp. +References $action, $o, $res, and $tmp.

    @@ -2115,7 +2115,7 @@ an object to hold the font description

    Definition at line 475 of file class.pdf.php.

    -References $o, $options, $res, addMessage(), name, o_fontEncoding(), and o_pages(). +References $o, $options, $res, addMessage(), name, o_fontEncoding(), and o_pages().

    @@ -2162,7 +2162,7 @@ a font descriptor, needed for including additional fonts

    Definition at line 559 of file class.pdf.php.

    -References $o, $res, label, and value. +References $o, $res, label, and value.

    @@ -2209,7 +2209,7 @@ the font encoding

    Definition at line 610 of file class.pdf.php.

    -References $label, $num, $o, $res, and label. +References $label, $num, $o, $res, and label.

    Referenced by o_font(). @@ -2258,7 +2258,7 @@ an image object, will be an XObject in the document, includes description and da

    Definition at line 940 of file class.pdf.php.

    -References $action, $o, $res, $tmp, and label. +References $action, $o, $res, $tmp, and label.

    @@ -2305,7 +2305,7 @@ define the document information

    Definition at line 682 of file class.pdf.php.

    -References $o, $res, and filterText(). +References $o, $res, and filterText().

    @@ -2352,7 +2352,7 @@ define the outlines in the doc, empty for now

    Definition at line 445 of file class.pdf.php.

    -References $o, $options, $res, and o_catalog(). +References $o, $options, $res, and o_catalog().

    @@ -2399,7 +2399,7 @@ a page object, it also creates a contents object to hold its contents

    Definition at line 821 of file class.pdf.php.

    -References $count, $o, and $res. +References $count, $o, and $res.

    @@ -2446,7 +2446,7 @@ object which is a parent to the pages in the document

    Definition at line 347 of file class.pdf.php.

    -References $i, $o, $options, $res, $tmp, label, and o_catalog(). +References $i, $o, $options, $res, $tmp, label, and o_catalog().

    Referenced by o_font(), and o_procset(). @@ -2495,7 +2495,7 @@ the document procset, solves some problems with printing to old PS printers

    Definition at line 647 of file class.pdf.php.

    -References $o, $options, $res, label, and o_pages(). +References $o, $options, $res, label, and o_pages().

    @@ -2542,7 +2542,7 @@ set the viewer preferences

    Definition at line 259 of file class.pdf.php.

    -References $o, and $res. +References $o, and $res.

    Referenced by o_catalog(). @@ -2577,7 +2577,7 @@ private

    Definition at line 1306 of file class.pdf.php.

    -References $bits, $data, $file, $i, $row, $tmp, and name. +References $bits, $data, $file, $i, $row, $tmp, and name.

    @@ -3313,7 +3313,7 @@ if the font is not loaded then load it and make the required object else just ma

    Definition at line 1417 of file class.pdf.php.

    -References $d, $data, $i, $list, $num, $tmp, extra, name, and width. +References $d, $data, $i, $list, $num, $tmp, extra, name, and width.

    @@ -3444,7 +3444,7 @@ set the encryption of the document can be used to turn it on and/or set the pass

    Definition at line 1184 of file class.pdf.php.

    -References $p, and print. +References $p, and print.

    @@ -4717,7 +4717,7 @@ Definition at line 134


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:37 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classCreport.html b/doc/developper/html/classCreport.html index aee748205..d193ce9e0 100644 --- a/doc/developper/html/classCreport.html +++ b/doc/developper/html/classCreport.html @@ -164,7 +164,7 @@ Definition at line 26 of
    The documentation for this class was generated from the following file:
    • /home/dany/developpement/phpcompta-dev/phpcompta/html/addon/readme.php
    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:37 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classCustomer.html b/doc/developper/html/classCustomer.html index ec11d5fb9..9684ce00d 100644 --- a/doc/developper/html/classCustomer.html +++ b/doc/developper/html/classCustomer.html @@ -122,7 +122,7 @@ Get all info contains in the view thanks to the poste elt (account).

    Definition at line 57 of file class_customer.php.

    -References $Res, $row, $sql, ExecSql(), f_id, and name. +References $Res, $row, $sql, ExecSql(), f_id, and name.

    Referenced by VatListing(). @@ -160,7 +160,7 @@ parm :

    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classDocument__type.html b/doc/developper/html/classDocument__type.html index 2cbb2ee97..829653e38 100644 --- a/doc/developper/html/classDocument__type.html +++ b/doc/developper/html/classDocument__type.html @@ -57,7 +57,7 @@ document_type
    Parameters:

    Definition at line 35 of file class_document_type.php.

    -References dt_id. +References dt_id.

    @@ -90,12 +90,12 @@ Get all the data for this dt_id.

    Definition at line 43 of file class_document_type.php.

    -References $r, $sql, dt_id, and ExecSql(). +References $r, $sql, dt_id, and ExecSql().


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classOwn.html b/doc/developper/html/classOwn.html index 9f29ee52b..3140b4e58 100644 --- a/doc/developper/html/classOwn.html +++ b/doc/developper/html/classOwn.html @@ -92,7 +92,7 @@ save data

    Definition at line 62 of file class_own.php.

    -References MY_COMMUNE, MY_CP, MY_NAME, MY_NUMBER, MY_STREET, and MY_TVA. +References MY_COMMUNE, MY_CP, MY_FAX, MY_NAME, MY_NUMBER, MY_PAYS, MY_STREET, MY_TEL, and MY_TVA.

    @@ -131,7 +131,7 @@ Update a row.

    Definition at line 51 of file class_own.php.

    -References FormatString(). +References FormatString().


    Field Documentation

    @@ -162,7 +162,7 @@ Definition at line 29
    The documentation for this class was generated from the following file:
    • /home/dany/developpement/phpcompta-dev/phpcompta/include/class_own.php
    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class_8ezpdf_8php-source.html b/doc/developper/html/class_8ezpdf_8php-source.html index 368ce7c92..b8db11a3b 100644 --- a/doc/developper/html/class_8ezpdf_8php-source.html +++ b/doc/developper/html/class_8ezpdf_8php-source.html @@ -103,9 +103,9 @@ 00094 } 00095 switch (strtolower($orientation)){ 00096 case 'landscape': -00097 $a=$size[3]; +00097 $a=$size[3]; 00098 $size[3]=$size[2]; -00099 $size[2]=$a; +00099 $size[2]=$a; 00100 break; 00101 } 00102 } else { @@ -298,9 +298,9 @@ 00289 if (!isset($this->ez['pageNumbering'])){ 00290 $this->ez['pageNumbering']=array(); 00291 } -00292 $i = count($this->ez['pageNumbering']); -00293 $this->ez['pageNumbering'][$i][$this->ezPageCount]=array('x'=>$x,'y'=>$y,'pos'=>$pos,'pattern'=>$pattern,'num'=>$num,'size'=>$size); -00294 return $i; +00292 $i = count($this->ez['pageNumbering']); +00293 $this->ez['pageNumbering'][$i][$this->ezPageCount]=array('x'=>$x,'y'=>$y,'pos'=>$pos,'pattern'=>$pattern,'num'=>$num,'size'=>$size); +00294 return $i; 00295 } 00296 00297 // ------------------------------------------------------------------------------ @@ -348,18 +348,18 @@ 00339 // then this has only just been started, this will over-write the start, and nothing will appear 00340 // add a special command to the start block, telling it to stop as well 00341 if ($stopTotal){ -00342 $this->ez['pageNumbering'][$i][$this->ezPageCount]['stoptn']=1; +00342 $this->ez['pageNumbering'][$i][$this->ezPageCount]['stoptn']=1; 00343 } else { -00344 $this->ez['pageNumbering'][$i][$this->ezPageCount]['stopn']=1; +00344 $this->ez['pageNumbering'][$i][$this->ezPageCount]['stopn']=1; 00345 } 00346 } else { 00347 if ($stopTotal){ -00348 $this->ez['pageNumbering'][$i][$this->ezPageCount]='stopt'; +00348 $this->ez['pageNumbering'][$i][$this->ezPageCount]='stopt'; 00349 } else { -00350 $this->ez['pageNumbering'][$i][$this->ezPageCount]='stop'; +00350 $this->ez['pageNumbering'][$i][$this->ezPageCount]='stop'; 00351 } 00352 if ($next){ -00353 $this->ez['pageNumbering'][$i][$this->ezPageCount].='n'; +00353 $this->ez['pageNumbering'][$i][$this->ezPageCount].='n'; 00354 } 00355 } 00356 } @@ -370,11 +370,11 @@ 00361 foreach($tmp as $i=>$v){ 00362 if (is_array($v)){ 00363 if (isset($v[$lbl])){ -00364 return $i; +00364 return $i; 00365 } 00366 } else { 00367 if ($v==$lbl){ -00368 return $i; +00368 return $i; 00369 } 00370 } 00371 } @@ -679,8 +679,8 @@ 00670 ,'innerLineThickness'=>1,'outerLineThickness'=>1,'splitRows'=>0,'protectRows'=>1 00671 ); 00672 -00673 foreach($defaults as $key=>$value){ -00674 if (is_array($value)){ +00673 foreach($defaults as $key=>$value){ +00674 if (is_array($value)){ 00675 if (!isset($options[$key]) || !is_array($options[$key])){ 00676 $options[$key]=$value; 00677 } @@ -1490,8 +1490,8 @@ 01481 if (!isset($this->ez['links'])){ 01482 $this->ez['links']=array(); 01483 } -01484 $i = $info['nCallback']; -01485 $this->ez['links'][$i] = array('x'=>$info['x'],'y'=>$info['y'],'angle'=>$info['angle'],'decender'=>$info['decender'],'height'=>$info['height'],'url'=>$info['p']); +01484 $i = $info['nCallback']; +01485 $this->ez['links'][$i] = array('x'=>$info['x'],'y'=>$info['y'],'angle'=>$info['angle'],'decender'=>$info['decender'],'height'=>$info['height'],'url'=>$info['p']); 01486 if ($internal==0){ 01487 $this->saveState(); 01488 $this->setColor(0,0,1); @@ -1504,13 +1504,13 @@ 01495 case 'eol': 01496 // the end of the link 01497 // assume that it is the most recent opening which has closed -01498 $i = $info['nCallback']; -01499 $start = $this->ez['links'][$i]; +01498 $i = $info['nCallback']; +01499 $start = $this->ez['links'][$i]; 01500 // add underlining 01501 if ($internal){ 01502 $this->addInternalLink($start['url'],$start['x'],$start['y']+$start['decender'],$info['x'],$start['y']+$start['decender']+$start['height']); 01503 } else { -01504 $a = deg2rad((float)$start['angle']-90.0); +01504 $a = deg2rad((float)$start['angle']-90.0); 01505 $drop = $start['height']*$lineFactor*1.5; 01506 $dropx = cos($a)*$drop; 01507 $dropy = -sin($a)*$drop; @@ -1535,8 +1535,8 @@ 01526 if (!isset($this->ez['links'])){ 01527 $this->ez['links']=array(); 01528 } -01529 $i = $info['nCallback']; -01530 $this->ez['links'][$i] = array('x'=>$info['x'],'y'=>$info['y'],'angle'=>$info['angle'],'decender'=>$info['decender'],'height'=>$info['height']); +01529 $i = $info['nCallback']; +01530 $this->ez['links'][$i] = array('x'=>$info['x'],'y'=>$info['y'],'angle'=>$info['angle'],'decender'=>$info['decender'],'height'=>$info['height']); 01531 $this->saveState(); 01532 $thick = $info['height']*$lineFactor; 01533 $this->setLineStyle($thick); @@ -1545,10 +1545,10 @@ 01536 case 'eol': 01537 // the end of the link 01538 // assume that it is the most recent opening which has closed -01539 $i = $info['nCallback']; -01540 $start = $this->ez['links'][$i]; +01539 $i = $info['nCallback']; +01540 $start = $this->ez['links'][$i]; 01541 // add underlining -01542 $a = deg2rad((float)$start['angle']-90.0); +01542 $a = deg2rad((float)$start['angle']-90.0); 01543 $drop = $start['height']*$lineFactor*1.5; 01544 $dropx = cos($a)*$drop; 01545 $dropy = -sin($a)*$drop; @@ -1562,7 +1562,7 @@ 01553 01554 } 01555 ?> -
    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class_8ezpdf_8php.html b/doc/developper/html/class_8ezpdf_8php.html index 856944024..91eacc970 100644 --- a/doc/developper/html/class_8ezpdf_8php.html +++ b/doc/developper/html/class_8ezpdf_8php.html @@ -15,7 +15,7 @@ class  Cezpdf -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class_8pdf_8php-source.html b/doc/developper/html/class_8pdf_8php-source.html index 74280af48..88dfc02da 100644 --- a/doc/developper/html/class_8pdf_8php-source.html +++ b/doc/developper/html/class_8pdf_8php-source.html @@ -189,16 +189,16 @@ 00361 // then it should be an array having 'id','rid','pos', where rid=the page to which this one will be placed relative 00362 // and pos is either 'before' or 'after', saying where this page will fit. 00363 if (isset($options['id']) && isset($options['rid']) && isset($options['pos'])){ -00364 $i = array_search($options['rid'],$o['info']['pages']); +00364 $i = array_search($options['rid'],$o['info']['pages']); 00365 if (isset($o['info']['pages'][$i]) && $o['info']['pages'][$i]==$options['rid']){ 00366 // then there is a match 00367 // make a space 00368 switch ($options['pos']){ 00369 case 'before': -00370 $k = $i; +00370 $k = $i; 00371 break; 00372 case 'after': -00373 $k=$i+1; +00373 $k=$i+1; 00374 break; 00375 default: 00376 $k=-1; @@ -224,7 +224,7 @@ 00396 $o['info']['fonts'][]=array('objNum'=>$options['objNum'],'fontNum'=>$options['fontNum']); 00397 break; 00398 case 'xObject': -00399 $o['info']['xObjects'][]=array('objNum'=>$options['objNum'],'label'=>$options['label']); +00399 $o['info']['xObjects'][]=array('objNum'=>$options['objNum'],'label'=>$options['label']); 00400 break; 00401 case 'out': 00402 if (count($o['info']['pages'])){ @@ -300,7 +300,7 @@ 00478 } 00479 switch ($action){ 00480 case 'new': -00481 $this->objects[$id]=array('t'=>'font','info'=>array('name'=>$options['name'],'SubType'=>'Type1')); +00481 $this->objects[$id]=array('t'=>'font','info'=>array('name'=>$options['name'],'SubType'=>'Type1')); 00482 $fontNum=$this->numFonts; 00483 $this->objects[$id]['info']['fontNum']=$fontNum; 00484 // deal with the encoding and the differences @@ -385,8 +385,8 @@ 00566 break; 00567 case 'out': 00568 $res="\n".$id." 0 obj\n<< /Type /FontDescriptor\n"; -00569 foreach ($o['info'] as $label => $value){ -00570 switch ($label){ +00569 foreach ($o['info'] as $label => $value){ +00570 switch ($label){ 00571 case 'Ascent': 00572 case 'CapHeight': 00573 case 'Descent': @@ -400,7 +400,7 @@ 00581 case 'StemH': 00582 case 'XHeight': 00583 case 'CharSet': -00584 if (strlen($value)){ +00584 if (strlen($value)){ 00585 $res.='/'.$label.' '.$value."\n"; 00586 } 00587 break; @@ -442,7 +442,7 @@ 00626 } 00627 $res.="/Differences \n["; 00628 $onum=-100; -00629 foreach($o['info']['differences'] as $num=>$label){ +00629 foreach($o['info']['differences'] as $num=>$label){ 00630 if ($num!=$onum+1){ 00631 // we cannot make use of consecutive numbering 00632 $res.= "\n".$num." /".$label; @@ -480,7 +480,7 @@ 00667 break; 00668 case 'out': 00669 $res="\n".$id." 0 obj\n["; -00670 foreach ($o['info'] as $label=>$val){ +00670 foreach ($o['info'] as $label=>$val){ 00671 $res.='/'.$label.' '; 00672 } 00673 $res.="]\nendobj"; @@ -551,7 +551,7 @@ 00744 switch($o['type']){ 00745 case 'ilink': 00746 // there will be an 'label' setting, this is the name of the destination -00747 $res.="\n/S /GoTo\n/D ".$this->destinations[(string)$o['info']['label']]." 0 R"; +00747 $res.="\n/S /GoTo\n/D ".$this->destinations[(string)$o['info']['label']]." 0 R"; 00748 break; 00749 case 'URI': 00750 $res.="\n/S /URI\n/URI ("; @@ -588,10 +588,10 @@ 00785 break; 00786 case 'ilink': 00787 // this is to a named internal link -00788 $label = $options['label']; +00788 $label = $options['label']; 00789 $this->objects[$id]=array('t'=>'annotation','info'=>$options); 00790 $this->numObj++; -00791 $this->o_action($this->numObj,'new',array('type'=>'ilink','label'=>$label)); +00791 $this->o_action($this->numObj,'new',array('type'=>'ilink','label'=>$label)); 00792 $this->objects[$id]['info']['actionId']=$this->numObj; 00793 break; 00794 } @@ -783,7 +783,7 @@ 00989 } 00990 // assign it a place in the named resource dictionary as an external object, according to 00991 // the label passed in with it. -00992 $this->o_pages($this->currentNode,'xObject',array('label'=>$options['label'],'objNum'=>$id)); +00992 $this->o_pages($this->currentNode,'xObject',array('label'=>$options['label'],'objNum'=>$id)); 00993 // also make sure that we have the right procset object for it. 00994 $this->o_procset($this->procsetObjectId,'add','ImageC'); 00995 break; @@ -902,25 +902,25 @@ 01125 } 01126 $j=0; 01127 for ($i=0;$i<256;$i++){ -01128 $t = $this->arc4[$i]; +01128 $t = $this->arc4[$i]; 01129 $j = ($j + ord($t) + ord($k[$i]))%256; -01130 $this->arc4[$i]=$this->arc4[$j]; +01130 $this->arc4[$i]=$this->arc4[$j]; 01131 $this->arc4[$j]=$t; 01132 } 01133 } 01134 01138 function ARC4($text){ 01139 $len=strlen($text); -01140 $a=0; -01141 $b=0; +01140 $a=0; +01141 $b=0; 01142 $c = $this->arc4; 01143 $out=''; 01144 for ($i=0;$i<$len;$i++){ -01145 $a = ($a+1)%256; -01146 $t= $c[$a]; -01147 $b = ($b+ord($t))%256; -01148 $c[$a]=$c[$b]; -01149 $c[$b]=$t; +01145 $a = ($a+1)%256; +01146 $t= $c[$a]; +01147 $b = ($b+ord($t))%256; +01148 $c[$a]=$c[$b]; +01149 $c[$b]=$t; 01150 $k = ord($c[(ord($c[$a])+ord($c[$b]))%256]); 01151 $out.=chr(ord($text[$i]) ^ $k); 01152 } @@ -934,9 +934,9 @@ 01167 $this->o_annotation($this->numObj,'new',$info); 01168 } 01169 -01173 function addInternalLink($label,$x0,$y0,$x1,$y1){ +01173 function addInternalLink($label,$x0,$y0,$x1,$y1){ 01174 $this->numObj++; -01175 $info = array('type'=>'ilink','label'=>$label,'rect'=>array($x0,$y0,$x1,$y1)); +01175 $info = array('type'=>'ilink','label'=>$label,'rect'=>array($x0,$y0,$x1,$y1)); 01176 $this->o_annotation($this->numObj,'new',$info); 01177 } 01178 @@ -1051,8 +1051,8 @@ 01314 $name=substr($font,$pos+1); 01315 } 01316 -01317 if (substr($name,-4)=='.afm'){ -01318 $name=substr($name,0,strlen($name)-4); +01317 if (substr($name,-4)=='.afm'){ +01318 $name=substr($name,0,strlen($name)-4); 01319 } 01320 $this->addMessage('openFont: '.$font.' - '.$name); 01321 if (file_exists($dir.'php_'.$name.'.afm')){ @@ -1110,7 +1110,7 @@ 01373 if (count($bits2)>2){ 01374 $dtmp[$bits2[0]]=array(); 01375 for ($i=1;$i<count($bits2);$i++){ -01376 $dtmp[$bits2[0]][]=$bits2[$i]; +01376 $dtmp[$bits2[0]][]=$bits2[$i]; 01377 } 01378 } else if (count($bits2)==2){ 01379 $dtmp[$bits2[0]]=$bits2[1]; @@ -1153,10 +1153,10 @@ 01424 $pos=strrpos($fontName,'/'); 01425 // $dir=substr($fontName,0,$pos+1); 01426 $name=substr($fontName,$pos+1); -01427 if (substr($name,-4)=='.afm'){ -01428 $name=substr($name,0,strlen($name)-4); +01427 if (substr($name,-4)=='.afm'){ +01428 $name=substr($name,0,strlen($name)-4); 01429 } -01430 $options=array('name'=>$name); +01430 $options=array('name'=>$name); 01431 if (is_array($encoding)){ 01432 // then encoding and differences might be set 01433 if (isset($encoding['encoding'])){ @@ -1199,7 +1199,7 @@ 01470 foreach ($this->fonts[$fontName]['C'] as $num=>$d){ 01471 if (intval($num)>0 || $num=='0'){ 01472 if ($lastChar>0 && $num>$lastChar+1){ -01473 for($i=$lastChar+1;$i<$num;$i++){ +01473 for($i=$lastChar+1;$i<$num;$i++){ 01474 $widths[] = 0; 01475 } 01476 } @@ -1214,7 +1214,7 @@ 01485 if (isset($options['differences'])){ 01486 foreach($options['differences'] as $charNum=>$charName){ 01487 if ($charNum>$lastChar){ -01488 for($i=$lastChar+1;$i<=$charNum;$i++){ +01488 for($i=$lastChar+1;$i<=$charNum;$i++){ 01489 $widths[]=0; 01490 } 01491 $lastChar=$charNum; @@ -1297,7 +1297,7 @@ 01568 if ($fbtype=='ttf'){ 01569 $tmp['SubType']='TrueType'; 01570 } -01571 $this->addMessage('adding extra info to font.('.$fontObj.')'); +01571 $this->addMessage('adding extra info to font.('.$fontObj.')'); 01572 foreach($tmp as $fk=>$fv){ 01573 $this->addMessage($fk." : ".$fv); 01574 } @@ -1409,7 +1409,7 @@ 01729 $dtm = $dt/3; 01730 01731 if ($angle != 0){ -01732 $a = -1*deg2rad((float)$angle); +01732 $a = -1*deg2rad((float)$angle); 01733 $tmp = "\n q "; 01734 $tmp .= sprintf('%.3f',cos($a)).' '.sprintf('%.3f',(-1.0*sin($a))).' '.sprintf('%.3f',sin($a)).' '.sprintf('%.3f',cos($a)).' '; 01735 $tmp .= sprintf('%.3f',$x0).' '.sprintf('%.3f',$y0).' cm'; @@ -1427,7 +1427,7 @@ 01747 $this->objects[$this->currentContents]['c'].="\n".sprintf('%.3f',$a0).' '.sprintf('%.3f',$b0).' m '; 01748 for ($i=1;$i<=$nSeg;$i++){ 01749 // draw this bit of the total curve -01750 $t1 = $i*$dt+$astart; +01750 $t1 = $i*$dt+$astart; 01751 $a1 = $x0+$r1*cos($t1); 01752 $b1 = $y0+$r2*sin($t1); 01753 $c1 = -$r1*sin($t1); @@ -2509,7 +2509,7 @@ 02974 $this->o_destination($this->numObj,'new',array('page'=>$this->currentPage,'type'=>$style,'p1'=>$a,'p2'=>$b,'p3'=>$c)); 02975 $id = $this->numObj; 02976 // store the label->idf relationship, note that this means that labels can be used only once -02977 $this->destinations["$label"]=$id; +02977 $this->destinations["$label"]=$id; 02978 } 02979 02985 function setFontFamily($family,$options=''){ @@ -2597,7 +2597,7 @@ 03073 } // end of class 03074 03075 ?> -
    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class_8pdf_8php.html b/doc/developper/html/class_8pdf_8php.html index 4ecd0ad4d..16171ca00 100644 --- a/doc/developper/html/class_8pdf_8php.html +++ b/doc/developper/html/class_8pdf_8php.html @@ -18,7 +18,7 @@ class  Cpdf -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__action_8php-source.html b/doc/developper/html/class__action_8php-source.html index 4d74e3c44..b6c70eea0 100644 --- a/doc/developper/html/class__action_8php-source.html +++ b/doc/developper/html/class__action_8php-source.html @@ -34,17 +34,16 @@ 00025 require_once("user_common.php"); 00047 class action 00048 { -00060 var $db; -00061 var $ag_desc; -00062 var $ag_date; -00063 var $d_lob; -00064 var $dt_id; -00065 var $d_state; -00066 var $d_number; -00067 var $d_filename; -00068 var $d_mimetype; -00069 var $ag_title; -00070 var $f_id; +00061 var $db; +00062 var $ag_comment; +00063 var $ag_timestamp; +00064 var $dt_id; +00065 var $d_state; +00066 var $d_number; +00067 var $d_filename; +00068 var $d_mimetype; +00069 var $ag_title; +00070 var $f_id; 00075 function action ($p_cn) 00076 { 00077 $this->db=$p_cn; @@ -57,278 +56,346 @@ 00089 // Date 00090 $date=new widget("text"); 00091 $date->readonly=true; -00092 $date->name="ag_date"; -00093 $date->value=$this->ag_date; +00092 $date->name="ag_timestamp"; +00093 $date->value=$this->ag_timestamp; 00094 // Doc Type -00095 $doc_type=new widget("hidden"); -00096 $doc_type->name="dt_id"; -00097 $doc_type->value=$this->dt_id; -00098 $a=ExecSql($this->db,"select dt_value from document_type where dt_id=".$this->dt_id); +00095 $doc_type=new widget("hidden"); +00096 $doc_type->name="dt_id"; +00097 $doc_type->value=$this->dt_id; +00098 $a=ExecSql($this->db,"select dt_value from document_type where dt_id=".$this->dt_id); 00099 $v=pg_fetch_array($a,0); 00100 $str_type=$v[0]; 00101 00102 // state 00103 // Retrieve the value -00104 $a=ExecSql($this->db,"select s_value from document_state where s_id=".$this->d_state); -00105 $v=pg_fetch_array($a,0); -00106 $str_state=$v[0]; -00107 $state=new widget("hidden"); -00108 $state->name="d_state"; -00109 $state->value=$this->d_state; -00110 // title -00111 $title=new widget("text"); -00112 $title->readonly=true; -00113 $title->name="ag_title"; -00114 $title->value=FormatString($this->ag_title); -00115 -00116 // Description -00117 $desc=new widget('textarea'); -00118 $desc->name="ag_desc"; -00119 $desc->readonly=" disabled "; -00120 $desc->value=$this->ag_desc; -00121 // Propose to generate a document -00122 $gen=new widget ("checkbox"); -00123 $gen->name="p_gen"; -00124 $doc_gen=new widget("select"); -00125 $doc_gen->name="gen_doc"; -00126 $doc_gen->value=make_array($this->db, -00127 "select md_id,md_name from document_modele where md_type=".$this->dt_id); -00128 // f_id -00129 $tiers=new fiche($this->db); -00130 $tiers->GetByQCode($this->qcode); -00131 // Preparing the return string -00132 -00133 $r.="<p>Date : ".$date->IOValue()."</p>"; -00134 $r.="<p>Etat $str_state".$state->IOValue()."</p>"; -00135 $r.="<p>Type du document $str_type".$doc_type->IOValue()."</p>"; -00136 $r.="<p> Tiers : ".$this->qcode." ".$tiers->strAttribut(1).'</p>'; -00137 $r.="<p> Titre : ".$title->IOValue(); -00138 $r.="<p>Description :".urldecode($desc->IOValue())."</p>"; -00139 return $r; -00140 -00141 } -00142 -00151 function Confirm() -00152 { -00153 if ( isDate($this->ag_date) == NULL ) -00154 { -00155 // if the date is invalid, default date is today -00156 $this->ag_date=date("d.m.Y"); -00157 } -00158 // Compute the widget -00159 // Date -00160 $date=new widget("text"); -00161 $date->readonly=true; -00162 $date->name="ag_date"; -00163 $date->value=$this->ag_date; -00164 // Doc Type -00165 $doc_type=new widget("hidden"); -00166 $doc_type->name="dt_id"; -00167 $doc_type->value=$this->dt_id; -00168 $a=ExecSql($this->db,"select dt_value from document_type where dt_id=".$this->dt_id); -00169 $v=pg_fetch_array($a,0); -00170 $str_type=$v[0]; -00171 if ( isset ($_REQUEST['url'])) -00172 { -00173 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); -00174 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); -00175 } -00176 else -00177 { -00178 $retour=""; -00179 $h_url=""; -00180 } -00181 -00182 // state -00183 // Retrieve the value -00184 $a=ExecSql($this->db,"select s_value from document_state where s_id=".$this->d_state); -00185 $v=pg_fetch_array($a,0); -00186 $str_state=$v[0]; -00187 $state=new widget("hidden"); -00188 $state->name="d_state"; -00189 $state->value=$this->d_state; -00190 // title -00191 $title=new widget("text"); -00192 $title->readonly=true; -00193 $title->name="ag_title"; -00194 $title->value=FormatString($this->ag_title); -00195 -00196 // Description -00197 $desc=new widget('textarea'); -00198 $desc->name="ag_desc"; -00199 $desc->readonly=" disabled "; -00200 $desc->value=$this->ag_desc; -00201 // Propose to generate a document -00202 $gen=new widget ("checkbox"); -00203 $gen->name="p_gen"; -00204 $doc_gen=new widget("select"); -00205 $doc_gen->name="gen_doc"; -00206 $doc_gen->value=make_array($this->db, -00207 "select md_id,md_name from document_modele where md_type=".$this->dt_id); -00208 // f_id -00209 $tiers=new fiche($this->db); -00210 $tiers->GetByQCode($this->qcode); -00211 // Preparing the return string -00212 $r=$retour."<form method=\"post\">"; -00213 $r.="<p>Date : ".$date->IOValue()."</p>"; -00214 $r.="<p>Etat $str_state".$state->IOValue()."</p>"; -00215 $r.="<p>Type du document $str_type".$doc_type->IOValue()."</p>"; -00216 $r.="<p> Tiers : ".$this->qcode." ".$tiers->strAttribut(1).'</p>'; -00217 $r.="<p> Titre : ".$title->IOValue(); -00218 $r.="<p>Description :".$desc->IOValue()."</p>"; -00219 // if no document exist for this type then do not display the question -00220 if ( sizeof($doc_gen->value) != 0) -00221 $r.="<p> G&eacute;n&eacute;rer un document ".$gen->IOValue()." ".$doc_gen->IOValue()."</p>"; -00222 -00223 // Add the hidden tag -00224 $r.='<input type="hidden" name="sa" value="save_action_st2">'; -00225 $r.='<input type="hidden" name="p_action" value="suivi_courrier">'; -00226 $r.='<input type="hidden" name="tiers" value="'.$this->qcode.'">'; -00227 if ( $tiers->strAttribut(1) != "- ERROR -") -00228 $r.=$desc->Submit("Save","Sauve"); -00229 $r.=$desc->Submit("corr","Corrige"); +00104 // Retrieve the value if there is an attached doc +00105 $doc_ref=""; +00106 if ( strlen ($this->d_state) > 0 ) +00107 { +00108 $a=ExecSql($this->db,"select s_value from document_state where s_id=".$this->d_state); +00109 $v=pg_fetch_array($a,0); +00110 $str_state=$v[0]; +00111 $state=new widget("hidden"); +00112 $state->name="d_state"; +00113 $state->value=$this->d_state; +00114 $doc=new Document($this->db,$this->d_id); +00115 $doc_ref="<p> Document ".$doc->a_ref().'</p>'; +00116 } +00117 else +00118 $str_state=""; +00119 // title +00120 $title=new widget("text"); +00121 $title->readonly=true; +00122 $title->name="ag_title"; +00123 $title->value=FormatString($this->ag_title); +00124 +00125 // ag_ref +00126 $ag_ref=new widget("text"); +00127 $ag_ref->readonly=true; +00128 $ag_ref->name="ag_ref"; +00129 $ag_ref->value=FormatString($this->ag_ref); +00130 +00131 +00132 // Description +00133 $desc=new widget('textarea'); +00134 $desc->name="ag_comment"; +00135 $desc->readonly=" disabled "; +00136 $desc->value=$this->ag_comment; +00137 // Propose to generate a document +00138 $gen=new widget ("checkbox"); +00139 $gen->name="p_gen"; +00140 $doc_gen=new widget("select"); +00141 $doc_gen->name="gen_doc"; +00142 $doc_gen->value=make_array($this->db, +00143 "select md_id,md_name from document_modele where md_type=".$this->dt_id); +00144 // f_id +00145 $tiers=new fiche($this->db); +00146 $tiers->GetByQCode($this->qcode); +00147 // Preparing the return string +00148 +00149 $r.="<p>Date : ".$date->IOValue()."</p>"; +00150 if ( $str_type != "" ) +00151 $r.="<p>Type du document $str_type".$doc_type->IOValue()."</p>"; +00152 $r.="<p> Tiers : ".$this->qcode." ".$tiers->strAttribut(1).'</p>'; +00153 $r.="<p> Titre : ".$title->IOValue().' Ref :'.$ag_ref->IOValue(); +00154 $r.=$doc_ref; +00155 $r.="<p>Description :".urldecode(urldecode($desc->IOValue()))."</p>"; +00156 +00157 return $r; +00158 +00159 } +00162 function get() +00163 { +00164 echo_debug('class_action',__LINE__,'Action::Get() '); +00165 $sql="select * from action_gestion left join document using (ag_id) where ag_id=".$this->ag_id; +00166 $r=ExecSql($this->db,$sql); +00167 $row=pg_fetch_all($r); +00168 if ( $row==false) return; +00169 $this->ag_comment=$row[0]['ag_comment']; +00170 $this->ag_timestamp=$row[0]['ag_timestamp']; +00171 $this->f_id=$row[0]['f_id']; +00172 $this->ag_title=$row[0]['ag_title']; +00173 $this->ag_type=$row[0]['ag_type']; +00174 $this->ag_ref=$row[0]['ag_ref']; +00175 $this->d_id=$row[0]['d_id']; +00176 echo_debug('class_action',__LINE__,' Document id = '.$this->d_id); +00177 // if there is no document set 0 to d_id +00178 if ( $this->d_id == "" ) +00179 $this->d_id=0; +00180 // if there is a document fill the object +00181 if ($this->d_id != 0 ) +00182 { +00183 $this->d_state=$row[0]['d_state']; +00184 } +00185 echo_debug('class_action',__LINE__,' After test Document id = '.$this->d_id); +00186 $this->dt_id=$this->ag_type; +00187 $a=new fiche($this->db,$this->f_id); +00188 $this->qcode=$a->strAttribut(ATTR_DEF_QUICKCODE); +00189 +00190 } +00199 function Confirm() +00200 { +00202 if ( isDate($this->ag_timestamp) == NULL ) +00203 { +00204 // if the date is invalid, default date is today +00205 $this->ag_timestamp=date("d.m.Y"); +00206 } +00207 // Compute the widget +00208 // Date +00209 $date=new widget("text"); +00210 $date->readonly=true; +00211 $date->name="ag_timestamp"; +00212 $date->value=$this->ag_timestamp; +00213 // Doc Type +00214 $doc_type=new widget("hidden"); +00215 $doc_type->name="dt_id"; +00216 $doc_type->value=$this->dt_id; +00217 $a=ExecSql($this->db,"select dt_value from document_type where dt_id=".$this->dt_id); +00218 $v=pg_fetch_array($a,0); +00219 $str_type=$v[0]; +00220 if ( isset ($_REQUEST['url'])) +00221 { +00222 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); +00223 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); +00224 } +00225 else +00226 { +00227 $retour=""; +00228 $h_url=""; +00229 } 00230 -00231 $r.=$h_url."</form>"; -00232 return $r; -00233 } -00241 function SaveStage2() -00242 { -00243 // Get The sequence id, -00244 $seq_name="seq_doc_type_".$this->dt_id; -00245 $str_file=""; -00246 $add_file=''; -00247 // f_id -00248 $tiers=new fiche($this->db); -00249 $tiers->GetByQCode($this->qcode); -00250 if ( trim($this->ag_title) == "") { -00251 $doc_mod=new document_type($this->db); -00252 $doc_mod->dt_id=$this->dt_id; -00253 $doc_mod->get(); -00254 $this->ag_title=$doc_mod->dt_value; -00255 } -00256 echo_debug('class_action',__LINE__," tiers->id ".$tiers->id); -00257 $sql=sprintf("insert into action_gestion(ag_type,ag_title,f_id,ag_comment) values ('%s','%s',%d,'%s')", $this->dt_id, -00258 FormatString($this->ag_title), -00259 $tiers->id, -00260 FormatString(urlencode($this->ag_desc))); -00261 ExecSql($this->db,$sql); -00262 $this->ag_id=GetSequence($this->db,'action_gestion_ag_id_seq'); -00263 -00264 // the lob filename and the mimetype needed if we want to generate a doc. -00265 if ( $this->gen == 'on' ) -00266 { -00267 $doc=new Document($this->db); -00268 $doc->f_id=$tiers->id; -00269 $doc->md_id=$this->md_id; -00270 $doc->ag_id=$this->ag_id; -00271 $str_file=$doc->Generate(); -00272 } -00273 -00274 $r=$this->Display(); -00275 $r.="<hr>"; -00276 $r.='<form enctype="multipart/form-data" method="post">'; -00277 // Add the hidden tag -00278 $r.='<input type="hidden" name="sa" value="save_action_st3">'; -00279 $r.='<input type="hidden" name="p_action" value="suivi_courrier">'; -00280 $r.='<input type="hidden" name="ag_id" value="'.$this->ag_id.'">'; -00281 -00282 // Value for the generated document -00283 if ( $this->gen == 'on' ) -00284 { -00285 $r.='<input type="hidden" name="d_id" value="'.$doc->d_id.'">'; -00286 $r.="Sauver le document généré :"; -00287 $r.=$str_file; -00288 $checkbox=new widget("checkbox"); -00289 $checkbox->name="save_generate"; -00290 $r.=$checkbox->IOValue(); -00291 $r.="<hr>"; -00292 } -00293 $upload=new widget("file"); -00294 $upload->name="file_upload"; -00295 $upload->value=""; -00296 $r.="Enregistrer le fichier ".$upload->IOValue(); -00297 $r.=$upload->Submit("save","Sauve le fichier"); -00298 $r.="</form>"; -00299 return $r; -00300 } -00306 function SaveStage3($d_id) -00307 { -00308 // no generated doc -00309 if ( $d_id == 0 ) return; -00310 // if we save the generated doc -00311 if ( isset($_POST['save_generate'])) -00312 { -00313 return; -00314 } -00315 -00316 // Upload a new document -00317 $doc=new Document($this->db); -00318 $doc->d_id=$d_id; -00319 $doc->Upload($this->ag_id); -00320 } -00329 function myList($p_filter="",$p_search="") -00330 { -00331 $sql=" -00332 select ag_id,to_char(ag_timestamp,'DD-MM-YYYY HH:MI') as my_date,f_id,ag_title,d_id,md_type,dt_value -00333 from action_gestion -00334 left outer join document using (ag_id) -00335 left outer join document_modele on (ag_type=md_type) -00336 join document_type on (ag_type=dt_id) -00337 where dt_id in ($p_filter) $p_search"; -00338 $max_line=CountSql($this->db,$sql); -00339 $step=$_SESSION['g_pagesize']; -00340 $page=(isset($_GET['offset']))?$_GET['page']:1; -00341 $offset=(isset($_GET['offset']))?$_GET['offset']:0; -00342 $limit=" LIMIT $step OFFSET $offset "; -00343 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); -00344 -00345 $Res=ExecSql($this->db,$sql.$limit); -00346 $a_row=pg_fetch_all($Res); -00347 $r='<div class="u_redcontent">'; -00348 $r.=$bar; -00349 $r.="<table>"; -00350 $r.="<tr>"; -00351 $r.="<th>Date</th>"; -00352 $r.="<th>Société</th>"; -00353 $r.="<th>Titre</th>"; -00354 $r.="<th>type</th>"; -00355 $r.="<th>Document</th>"; -00356 $r.="</tr>"; -00357 -00358 // if there are no records return a message -00359 if ( sizeof ($a_row) == 0 or $a_row == false ) -00360 { -00361 $r='<div class="u_redcontent">'; -00362 $r.='<hr>Aucun enregistrement trouvé'; -00363 $r.="</div>"; -00364 return $r; -00365 -00366 } -00367 foreach ($a_row as $row ) -00368 { -00369 $r.="<tr>"; -00370 $r.="<td>".$row['my_date']."</td>"; -00371 $f=new fiche($this->db); -00372 $f->id=$row['f_id']; -00373 $r.="<td>".$f->getName()."</td>"; -00374 $r.="<td>".$row['ag_title']."</td>"; -00375 $r.="<td>".$row['dt_value']."</td>"; -00376 -00377 $doc=new Document($this->db,$row['d_id']); -00378 $r.="<td>".$doc->a_ref()."</td>"; -00379 $r.="</tr>"; -00380 -00381 } -00382 $r.="</table>"; -00383 $r.=$bar; -00384 $r.="</div>"; -00385 return $r; -00386 } -00387 -00388 -00389 -00390 } -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00231 // state +00232 $a=ExecSql($this->db,"select s_value from document_state where s_id=".$this->d_state); +00233 $v=pg_fetch_array($a,0); +00234 $str_state=$v[0]; +00235 $state=new widget("hidden"); +00236 $state->name="d_state"; +00237 $state->value=$this->d_state; +00238 +00239 // title +00240 $title=new widget("text"); +00241 $title->readonly=true; +00242 $title->name="ag_title"; +00243 $title->value=FormatString($this->ag_title); +00244 +00245 // Description +00246 $desc=new widget('textarea'); +00247 $desc->name="ag_comment"; +00248 $desc->readonly=" disabled "; +00249 $desc->value=$this->ag_comment; +00250 // Propose to generate a document +00251 $gen=new widget ("checkbox"); +00252 $gen->name="p_gen"; +00253 $doc_gen=new widget("select"); +00254 $doc_gen->name="gen_doc"; +00255 $doc_gen->value=make_array($this->db, +00256 "select md_id,md_name from document_modele where md_type=".$this->dt_id); +00257 // f_id +00258 $tiers=new fiche($this->db); +00259 $tiers->GetByQCode($this->qcode); +00260 // Preparing the return string +00261 $r=$retour."<form method=\"post\">"; +00262 $r.="<p>Date : ".$date->IOValue()."</p>"; +00263 $r.="<p>Etat $str_state".$state->IOValue()."</p>"; +00264 $r.="<p>Type du document $str_type".$doc_type->IOValue()."</p>"; +00265 $r.="<p> Tiers : ".$this->qcode." ".$tiers->strAttribut(1).'</p>'; +00266 $r.="<p> Titre : ".$title->IOValue(); +00267 $r.="<p>Description :".$desc->IOValue()."</p>"; +00268 +00269 // if no document exist for this type then do not display the question +00270 if ( sizeof($doc_gen->value) != 0) +00271 $r.="<p> G&eacute;n&eacute;rer un document ".$gen->IOValue()." ".$doc_gen->IOValue()."</p>"; +00272 +00273 // Add the hidden tag +00274 $r.='<input type="hidden" name="sa" value="save_action_st2">'; +00275 $r.='<input type="hidden" name="p_action" value="suivi_courrier">'; +00276 $r.='<input type="hidden" name="tiers" value="'.$this->qcode.'">'; +00277 if ( $tiers->strAttribut(1) != "- ERROR -") +00278 $r.=$desc->Submit("Save","Sauve"); +00279 $r.=$desc->Submit("corr","Corrige"); +00280 +00281 $r.=$h_url."</form>"; +00282 return $r; +00283 } +00291 function SaveStage2() +00292 { +00293 // Get The sequence id, +00294 $seq_name="seq_doc_type_".$this->dt_id; +00295 $str_file=""; +00296 $add_file=''; +00297 // f_id +00298 $tiers=new fiche($this->db); +00299 $tiers->GetByQCode($this->qcode); +00300 if ( trim($this->ag_title) == "") { +00301 $doc_mod=new document_type($this->db); +00302 $doc_mod->dt_id=$this->dt_id; +00303 $doc_mod->get(); +00304 $this->ag_title=$doc_mod->dt_value; +00305 } +00306 echo_debug('class_action',__LINE__," tiers->id ".$tiers->id); +00307 $this->ag_id=NextSequence($this->db,'action_gestion_ag_id_seq'); +00308 // Create the reference +00309 $ref=$this->dt_id.'/'.$this->ag_id; +00310 $this->ag_ref=$ref; +00311 +00312 $sql=sprintf("insert into action_gestion(ag_id,ag_type,ag_title,f_id,ag_comment,ag_ref) values (%d,'%s','%s',%d,'%s','%s')", +00313 $this->ag_id, +00314 $this->dt_id, +00315 FormatString($this->ag_title), +00316 $tiers->id, +00317 FormatString(urlencode($this->ag_comment)), +00318 $ref +00319 ); +00320 ExecSql($this->db,$sql); +00321 +00322 +00323 +00324 // the lob filename and the mimetype needed if we want to generate a doc. +00325 if ( $this->gen == 'on' ) +00326 { +00327 $doc=new Document($this->db); +00328 $doc->f_id=$tiers->id; +00329 $doc->md_id=$this->md_id; +00330 $doc->ag_id=$this->ag_id; +00331 $doc->d_state=$this->d_state; +00332 $str_file=$doc->Generate(); +00333 $d='<input type="hidden" name="d_id" value="'.$doc->d_id.'">'; +00334 } +00335 +00336 $r=$this->Display(); +00337 $r.="<hr>"; +00338 $r.='<form enctype="multipart/form-data" method="post">'; +00339 // Add the hidden tag +00340 $r.='<input type="hidden" name="sa" value="save_action_st3">'; +00341 $r.='<input type="hidden" name="p_action" value="suivi_courrier">'; +00342 $r.='<input type="hidden" name="ag_id" value="'.$this->ag_id.'">'; +00343 // add the d_id +00344 $r.=$d; +00345 +00346 // Value for the generated document +00347 if ( $this->gen == 'on' ) +00348 { +00349 $r.='<input type="hidden" name="d_id" value="'.$doc->d_id.'">'; +00350 $r.="Sauver le document généré :"; +00351 $r.=$str_file; +00352 $checkbox=new widget("checkbox"); +00353 $checkbox->name="save_generate"; +00354 $r.=$checkbox->IOValue(); +00355 $r.="<hr>"; +00356 } +00357 $upload=new widget("file"); +00358 $upload->name="file_upload"; +00359 $upload->value=""; +00360 $r.="Enregistrer le fichier ".$upload->IOValue(); +00361 $r.=$upload->Submit("save","Sauve le fichier"); +00362 $r.="</form>"; +00363 return $r; +00364 } +00370 function SaveStage3($d_id) +00371 { +00372 // no generated doc +00373 if ( $d_id == 0 ) return; +00374 // if we save the generated doc +00375 if ( isset($_POST['save_generate'])) +00376 { +00377 return; +00378 } +00379 +00380 // Upload a new document +00381 $doc=new Document($this->db); +00382 $doc->d_id=$d_id; +00383 $doc->Upload($this->ag_id); +00384 } +00393 function myList($p_filter="",$p_search="") +00394 { +00395 $sql=" +00396 select ag_id,to_char(ag_timestamp,'DD-MM-YYYY HH:MI') as my_date,f_id,ag_title,d_id,md_type,dt_value,ag_ref +00397 from action_gestion +00398 left outer join document using (ag_id) +00399 left outer join document_modele on (ag_type=md_type) +00400 join document_type on (ag_type=dt_id) +00401 where dt_id in ($p_filter) $p_search"; +00402 $max_line=CountSql($this->db,$sql); +00403 $step=$_SESSION['g_pagesize']; +00404 $page=(isset($_GET['offset']))?$_GET['page']:1; +00405 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00406 $limit=" LIMIT $step OFFSET $offset "; +00407 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00408 +00409 $Res=ExecSql($this->db,$sql.$limit); +00410 $a_row=pg_fetch_all($Res); +00411 $r='<div class="u_redcontent">'; +00412 $r.=$bar; +00413 $r.="<table>"; +00414 $r.="<tr>"; +00415 $r.="<th>Date</th>"; +00416 $r.="<th>Société</th>"; +00417 $r.="<th>Titre</th>"; +00418 $r.="<th>type</th>"; +00419 $r.="<th>Référence</th>"; +00420 $r.="<th>Document</th>"; +00421 $r.="</tr>"; +00422 +00423 // if there are no records return a message +00424 if ( sizeof ($a_row) == 0 or $a_row == false ) +00425 { +00426 $r='<div class="u_redcontent">'; +00427 $r.='<hr>Aucun enregistrement trouvé'; +00428 $r.="</div>"; +00429 return $r; +00430 +00431 } +00432 echo JS_SEARCH_CARD; +00433 foreach ($a_row as $row ) +00434 { +00435 $r.="<tr>"; +00436 $r.="<td>".$row['my_date']."</td>"; +00437 $f=new fiche($this->db); +00438 $f->id=$row['f_id']; +00439 $q=$f->strAttribut(ATTR_DEF_QUICKCODE); +00440 $js=sprintf("javascript:showfiche('%s','%s')", +00441 $_REQUEST['PHPSESSID'],$q); +00442 $r.="<td>".'<A HREF="'.$js.'">'.$q." : ".$f->getName().'</A></td>'; +00443 $r.='<td><A HREF="commercial.php?p_action=suivi_courrier&sa=detail&ag_id='.$row['ag_id'].'">'. +00444 $row['ag_title']."</A></td>"; +00445 $r.="<td>".$row['dt_value']."</td>"; +00446 $r.="<td>".$row['ag_ref']."</td>"; +00447 +00448 $doc=new Document($this->db,$row['d_id']); +00449 $r.="<td>".$doc->a_ref()."</td>"; +00450 $r.="</tr>"; +00451 +00452 } +00453 $r.="</table>"; +00454 $r.=$bar; +00455 $r.="</div>"; +00456 return $r; +00457 } +00458 +00459 +00460 +00461 } +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__action_8php.html b/doc/developper/html/class__action_8php.html index 58d7ecce3..ebd0544df 100644 --- a/doc/developper/html/class__action_8php.html +++ b/doc/developper/html/class__action_8php.html @@ -29,7 +29,7 @@ class_action for manipulating actions action can be :

      The table document_type are the possible actions

      -Definition in file class_action.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_action.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__attribut_8php-source.html b/doc/developper/html/class__attribut_8php-source.html index 8c66a3c64..b34dcc7db 100644 --- a/doc/developper/html/class__attribut_8php-source.html +++ b/doc/developper/html/class__attribut_8php-source.html @@ -43,16 +43,16 @@ 00051 for ($i=0;$i< sizeof($p_attribut)-1;$i++) { 00052 if ( $p_attribut[$i]->ad_id > $p_attribut[$i+1]->ad_id ) { 00053 // then swap them -00054 $t=$p_attribut[$i]; -00055 $p_attribut[$i]=$p_attribut[$i+1]; -00056 $p_attribut[$i+1] = $t; -00057 $i=0; +00054 $t=$p_attribut[$i]; +00055 $p_attribut[$i]=$p_attribut[$i+1]; +00056 $p_attribut[$i+1] = $t; +00057 $i=0; 00058 } 00059 } 00060 00061 return $p_attribut; 00062 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__attribut_8php.html b/doc/developper/html/class__attribut_8php.html index 27e63d0d1..bab9c14d7 100644 --- a/doc/developper/html/class__attribut_8php.html +++ b/doc/developper/html/class__attribut_8php.html @@ -65,12 +65,12 @@ Sort an array of object attribut thx the ad_id.

      Definition at line 50 of file class_attribut.php.

      -References $i, and $t. +References $i, and $t.

      Referenced by fiche::getAttribut(). -


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__balance_8php-source.html b/doc/developper/html/class__balance_8php-source.html index de46b46aa..501c8c686 100644 --- a/doc/developper/html/class__balance_8php-source.html +++ b/doc/developper/html/class__balance_8php-source.html @@ -72,35 +72,35 @@ 00084 // Load the array 00085 for ($i=0; $i <$M;$i++) { 00086 $r=pg_fetch_array($Res,$i); -00087 $a['poste']=$r['j_poste']; -00088 $a['label']=substr(GetPosteLibelle($this->db,$r['j_poste'],1),0,40); -00089 $a['sum_deb']=round($r['sum_deb'],2); -00090 $a['sum_cred']=round($r['sum_cred'],2); -00091 $a['solde_deb']=round(( $a['sum_deb'] >= $a['sum_cred'] )? $a['sum_deb']- $a['sum_cred']:0,2); -00092 $a['solde_cred']=round(( $a['sum_deb'] <= $a['sum_cred'] )?$a['sum_cred']-$a['sum_deb']:0,2); -00093 $array[$i]=$a; -00094 $tot_cred+= $a['sum_cred']; -00095 $tot_deb+= $a['sum_deb']; -00096 $tot_deb_saldo+= $a['solde_deb']; -00097 $tot_cred_saldo+= $a['solde_cred']; +00087 $a['poste']=$r['j_poste']; +00088 $a['label']=substr(GetPosteLibelle($this->db,$r['j_poste'],1),0,40); +00089 $a['sum_deb']=round($r['sum_deb'],2); +00090 $a['sum_cred']=round($r['sum_cred'],2); +00091 $a['solde_deb']=round(( $a['sum_deb'] >= $a['sum_cred'] )? $a['sum_deb']- $a['sum_cred']:0,2); +00092 $a['solde_cred']=round(( $a['sum_deb'] <= $a['sum_cred'] )?$a['sum_cred']-$a['sum_deb']:0,2); +00093 $array[$i]=$a; +00094 $tot_cred+= $a['sum_cred']; +00095 $tot_deb+= $a['sum_deb']; +00096 $tot_deb_saldo+= $a['solde_deb']; +00097 $tot_cred_saldo+= $a['solde_cred']; 00098 00099 00100 }//for i 00101 // Add the saldo -00102 $i+=1; -00103 $a['poste']=""; -00104 $a['label']="<b> Totaux </b>"; -00105 $a['sum_deb']=$tot_deb; -00106 $a['sum_cred']=$tot_cred; -00107 $a['solde_deb']=$tot_deb_saldo; -00108 $a['solde_cred']=$tot_cred_saldo; -00109 $array[$i]=$a; +00102 $i+=1; +00103 $a['poste']=""; +00104 $a['label']="<b> Totaux </b>"; +00105 $a['sum_deb']=$tot_deb; +00106 $a['sum_cred']=$tot_cred; +00107 $a['solde_deb']=$tot_deb_saldo; +00108 $a['solde_cred']=$tot_cred_saldo; +00109 $array[$i]=$a; 00110 $this->row=$array; 00111 return $array; 00112 00113 } 00114 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__balance_8php.html b/doc/developper/html/class__balance_8php.html index 6cec0bcb7..aaea74157 100644 --- a/doc/developper/html/class__balance_8php.html +++ b/doc/developper/html/class__balance_8php.html @@ -23,7 +23,7 @@ Class for manipulating data to print the balance of account.

      -Definition in file class_balance.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_balance.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__contact_8php-source.html b/doc/developper/html/class__contact_8php-source.html index 06b81738b..e075bf806 100644 --- a/doc/developper/html/class__contact_8php-source.html +++ b/doc/developper/html/class__contact_8php-source.html @@ -35,7 +35,7 @@ 00034 var $company; 00036 function contact($p_cn,$p_id=0) 00037 { -00038 $this->fiche_def_ref=FICHE_TYPE_CONTACT; +00038 $this->fiche_def_ref=FICHE_TYPE_CONTACT; 00039 fiche::fiche($p_cn,$p_id) ; 00040 $this->company=""; 00041 } @@ -46,7 +46,7 @@ 00054 if ( $this->company != "") 00055 { 00056 $extra_sql="and f_id in (select f_id from jnt_fic_att_value join -00057 attr_value using (jft_id) where av_text='".$this->company."' and ad_id=".ATTR_DEF_COMPANY.") "; +00057 attr_value using (jft_id) where av_text='".$this->company."' and ad_id=".ATTR_DEF_COMPANY.") "; 00058 } 00059 $url=urlencode($_SERVER['REQUEST_URI']); 00060 $script=$_SERVER['SCRIPT_NAME']; @@ -72,13 +72,13 @@ 00080 $step_contact=$this->GetAll($offset,$search.$extra_sql); 00081 if ( $all_contact == 0 ) return ""; 00082 $r=$bar; -00083 $r.='<table> +00083 $r.='<table border="0"> 00084 <TR style="background-color:lightgrey;"> 00085 <th>Nom</th> 00086 <th>Téléphone</th> 00087 <th>email</th> 00088 <th>Fax</th> -00089 <th>Société</th> +00089 <th colspan="2">Société</th> 00090 </TR>'; 00091 $base=$_SERVER['SCRIPT_NAME']; 00092 // Compute the url @@ -86,9 +86,9 @@ 00094 $and="?"; 00095 $get=$_GET; 00096 if ( isset ($get) ) { -00097 foreach ($get as $name=>$value ) { +00097 foreach ($get as $name=>$value ) { 00098 // we clean the parameter offset, step, page and size -00099 if ( ! in_array($name,array('f_id','detail'))) { +00099 if ( ! in_array($name,array('f_id','detail'))) { 00100 $url.=$and.$name."=".$value; 00101 $and="&"; 00102 }// if @@ -97,29 +97,39 @@ 00105 00106 if ( sizeof ($step_contact ) == 0 ) 00107 return $r; -00108 foreach ($step_contact as $contact ) { -00109 $l_company=new fiche($this->cn); -00110 $l_company->GetByQCode($contact->strAttribut(ATTR_DEF_COMPANY),false); -00111 $l_company_name=$l_company->strAttribut(ATTR_DEF_NAME); -00112 if ( $l_company_name == '- ERROR -' ) $l_company_name=""; -00113 $r.="<TR>"; -00114 $r.='<TD><A HREF="'.$url."&sa=detail&f_id=".$contact->id."\">".$contact->strAttribut(ATTR_DEF_NAME)."</A></TD>"; -00115 $r.="<TD>".$contact->strAttribut(ATTR_DEF_TEL)."</TD>"; -00116 $r.="<TD>".$contact->strAttribut(ATTR_DEF_EMAIL)."</TD>". -00117 "<TD> ".$contact->strAttribut(ATTR_DEF_FAX)."</TD>". -00118 "<TD> ".$l_company_name. -00119 "</TD>"; -00120 -00121 $r.="</TR>"; -00122 -00123 } -00124 $r.="</TABLE>"; -00125 $r.=$bar; -00126 return $r; -00127 } -00128 -00129 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00108 echo JS_SEARCH_CARD; +00109 foreach ($step_contact as $contact ) { +00110 $l_company=new fiche($this->cn); +00111 $l_company->GetByQCode($contact->strAttribut(ATTR_DEF_COMPANY),false); +00112 $l_company_name=$l_company->strAttribut(ATTR_DEF_NAME); +00113 if ( $l_company_name == '- ERROR -' ) $l_company_name=""; +00114 // add popup for detail +00115 if ( $l_company_name !="") +00116 { +00117 $l_company_name=sprintf("<A HREF=\"javascript:showfiche('%s','%s')\">%s - %s</A>", +00118 $_REQUEST['PHPSESSID'], +00119 $contact->strAttribut(ATTR_DEF_COMPANY), +00120 $contact->strAttribut(ATTR_DEF_COMPANY), +00121 $l_company_name +00122 ); +00123 } +00124 $r.="<TR>"; +00125 $r.='<TD><A HREF="'.$url."&sa=detail&f_id=".$contact->id."\">".$contact->strAttribut(ATTR_DEF_NAME)."</A></TD>"; +00126 $r.="<TD>".$contact->strAttribut(ATTR_DEF_TEL)."</TD>"; +00127 $r.="<TD>".$contact->strAttribut(ATTR_DEF_EMAIL)."</TD>". +00128 "<TD> ".$contact->strAttribut(ATTR_DEF_FAX)."</TD>". +00129 "<TD> ".$l_company_name. "</TD>"; +00130 +00131 $r.="</TR>"; +00132 +00133 } +00134 $r.="</TABLE>"; +00135 $r.=$bar; +00136 return $r; +00137 } +00138 +00139 } +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__contact_8php.html b/doc/developper/html/class__contact_8php.html index a16c4df87..6f7121799 100644 --- a/doc/developper/html/class__contact_8php.html +++ b/doc/developper/html/class__contact_8php.html @@ -23,7 +23,7 @@ class for the contact, contact are derived from ficheContact are a card which ar

      -Definition in file class_contact.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_contact.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__customer_8php-source.html b/doc/developper/html/class__customer_8php-source.html index 3c4de70eb..9dd1e35a9 100644 --- a/doc/developper/html/class__customer_8php-source.html +++ b/doc/developper/html/class__customer_8php-source.html @@ -46,7 +46,7 @@ 00044 var $cp; 00045 var $vat_number; 00049 function Customer($p_cn,$p_id=0) { -00050 $this->fiche_def_ref=FICHE_TYPE_CLIENT; +00050 $this->fiche_def_ref=FICHE_TYPE_CLIENT; 00051 fiche::fiche($p_cn,$p_id) ; 00052 00053 } @@ -57,7 +57,7 @@ 00061 if ( pg_NumRows($Res) == 0) return null; 00062 // There is only _one_ row by customer 00063 $row=pg_fetch_array($Res,0); -00064 $this->name=$row['name']; +00064 $this->name=$row['name']; 00065 $this->id=$row['f_id']; 00066 $this->street=$row['rue']; 00067 $this->cp=$row['code_postal']; @@ -122,7 +122,7 @@ 00138 $customer=$e['j_poste']; 00139 // Retrieve name and vat number 00140 $this->GetFromPoste($customer); -00141 $a_Res[$customer]['name']=$this->name; +00141 $a_Res[$customer]['name']=$this->name; 00142 $a_Res[$customer]['vat_number']=$this->vat_number; 00143 break; 00144 @@ -199,7 +199,7 @@ 00225 <th>Nom</th> 00226 <th>Adresse</th> 00227 <th>Solde</th> -00228 <th>Action </th> +00228 <th colspan="3">Action </th> 00229 </TR>'; 00230 if ( sizeof ($step_client ) == 0 ) 00231 return $r; @@ -208,26 +208,26 @@ 00234 $e=sprintf('<A HREF="%s?p_action=client&sa=detail&f_id=%d&url=%s" title="Détail"> ', 00235 $script,$client->id,$url); 00236 -00237 $r.="<TD> $e".$client->strAttribut(ATTR_DEF_QUICKCODE)."</A></TD>"; -00238 $r.="<TD>".$client->strAttribut(ATTR_DEF_NAME)."</TD>"; -00239 $r.="<TD>".$client->strAttribut(ATTR_DEF_ADRESS). -00240 " ".$client->strAttribut(ATTR_DEF_CP). -00241 " ".$client->strAttribut(ATTR_DEF_PAYS). +00237 $r.="<TD> $e".$client->strAttribut(ATTR_DEF_QUICKCODE)."</A></TD>"; +00238 $r.="<TD>".$client->strAttribut(ATTR_DEF_NAME)."</TD>"; +00239 $r.="<TD>".$client->strAttribut(ATTR_DEF_ADRESS). +00240 " ".$client->strAttribut(ATTR_DEF_CP). +00241 " ".$client->strAttribut(ATTR_DEF_PAYS). 00242 "</TD>"; 00243 -00244 $post=new poste($this->cn,$client->strAttribut(ATTR_DEF_ACCOUNT)); -00245 $a=$post->GetSoldeDetail(); +00244 $post=new poste($this->cn,$client->strAttribut(ATTR_DEF_ACCOUNT)); +00245 $a=$post->GetSoldeDetail(); 00246 $r.=sprintf('<TD align="right"> %15.2f&euro;</TD>',$a['solde']); 00247 $r.="<TD>"; 00248 -00249 $r.=sprintf('<A HREF="%s?p_action=contact&qcode=%s&url=%s" title="Contact">C</A> - ', -00250 $script,$client->strAttribut(ATTR_DEF_QUICKCODE),$url); -00251 $r.=sprintf('<A HREF="%s?p_action=suivi_courrier&sa=list&qcode=%s&url=%s" title="Action">A</A> - ', -00252 $script,$client->strAttribut(ATTR_DEF_QUICKCODE) ,$url); +00249 $r.=sprintf('<A HREF="%s?p_action=contact&qcode=%s&url=%s" title="Contact">Contact</A></td>', +00250 $script,$client->strAttribut(ATTR_DEF_QUICKCODE),$url); +00251 $r.=sprintf('<td><A HREF="%s?p_action=suivi_courrier&sa=list&qcode=%s&url=%s" title="Action">Courrier</A></td> ', +00252 $script,$client->strAttribut(ATTR_DEF_QUICKCODE) ,$url); 00253 00254 00255 -00256 $r.='<A HREF="commercial.php?p_action=facture&sa=list&qcode='.$client->strAttribut(ATTR_DEF_QUICKCODE).'&url='.$url.'" title="Historique Facture">F</A> -'; +00256 $r.='<td><A HREF="commercial.php?p_action=facture&sa=list&qcode='.$client->strAttribut(ATTR_DEF_QUICKCODE).'&url='.$url.'" title="Historique Facture">Facture</A></td>'; 00257 00258 $r.='</TD>'; 00259 @@ -242,7 +242,7 @@ 00268 } 00269 00270 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__customer_8php.html b/doc/developper/html/class__customer_8php.html index e966445a0..b5c91ac5e 100644 --- a/doc/developper/html/class__customer_8php.html +++ b/doc/developper/html/class__customer_8php.html @@ -23,7 +23,7 @@ Derived from class fiche Customer ar

      -Definition in file class_customer.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_customer.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document_8php-source.html b/doc/developper/html/class__document_8php-source.html index 1f1eb87ee..5f780bdb3 100644 --- a/doc/developper/html/class__document_8php-source.html +++ b/doc/developper/html/class__document_8php-source.html @@ -28,498 +28,610 @@ 00019 /* $Revision$ */ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00021 require_once('class_own.php'); -00027 class Document -00028 { -00029 var $db; -00031 var $ag_id; -00032 var $d_mimetype; -00033 var $d_filename; -00034 var $d_lob; -00035 var $d_number; -00036 var $md_id; -00037 /* Constructor -00038 * \param $p_cn Database connection -00039 */ -00040 function Document($p_cn,$p_d_id=0) -00041 { -00042 $this->db=$p_cn; -00043 $this->d_id=$p_d_id; -00044 } -00055 function Generate() -00056 { -00057 // create a temp directory in /tmp to unpack file and to parse it -00058 $dirname=tempnam('/tmp','doc_'); -00059 echo $dirname; -00060 unlink($dirname); -00061 mkdir ($dirname); -00062 echo_debug('class_action',__LINE__,"Dirname is $dirname"); -00063 // Retrieve the lob and save it into $dirname -00064 StartSql($this->db); -00065 $dm_info="select md_lob,md_filename,md_mimetype -00066 from document_modele where md_id=".$this->md_id; -00067 $Res=ExecSql($this->db,$dm_info); -00068 -00069 $row=pg_fetch_array($Res,0); -00070 $this->d_lob=$row['md_lob']; -00071 $this->d_filename=$row['md_filename']; -00072 $this->d_mimetype=$row['md_mimetype']; -00073 -00074 echo_debug('class_document',__LINE__,"OID is ".$row['md_lob']); -00076 chdir($dirname); -00077 $filename=$row['md_filename']; -00078 pg_lo_export($this->db,$row['md_lob'],$filename); -00079 -00080 // if the doc is a OOo, we need to unzip it first -00081 // and the name of the file to change is always content.xml -00082 if ( substr($row['md_mimetype'],'vnd.oasis') != 0 ) -00083 { -00084 system("unzip ".$filename); -00085 // Remove the file we do not need anymore -00086 unlink($filename); -00087 $file_to_parse="content.xml"; -00088 } -00089 else -00090 $file_to_parse=$filename; -00091 // affect a number -00092 $this->d_number=NextSequence($this->db,"seq_doc_type_".$this->md_id); -00093 -00094 -00095 // parse the document - return the doc number ? -00096 $this->ParseDocument($dirname,$file_to_parse); -00097 -00098 Commit($this->db); -00099 // if the doc is a OOo, we need to re-zip it -00100 if ( substr($row['md_mimetype'],'vnd.oasis') != 0 ) -00101 { -00102 system ("zip -r ".$filename." *"); -00103 $file_to_parse=$filename; -00104 } -00105 // Create a directory -00106 mkdir ($_SERVER['DOCUMENT_ROOT'].$dirname); -00107 -00108 // we need to rename the new generated file -00109 rename($dirname."/".$file_to_parse,$_SERVER['DOCUMENT_ROOT'].$dirname.'/'.$file_to_parse); -00110 $ret=sprintf('<A HREF="%s">Document généré</A>', -00111 $dirname.'/'.$file_to_parse); -00112 $this->SaveGenerated($_SERVER['DOCUMENT_ROOT'].$dirname."/".$file_to_parse); -00113 return $ret; -00114 } -00115 -00125 function ParseDocument($p_dir,$p_file) -00126 { -00127 -00128 -00129 -00136 // open the document -00137 $infile_name=$p_dir."/".$p_file; -00138 echo_debug("class_document.php",__LINE__,"Open the document $p_dir/$p_file"); -00139 $h=fopen($infile_name,"r"); -00140 $output_name=tempnam($_SERVER["DOCUMENT_ROOT"]."/tmp","gen_doc_"); -00141 $output_file=fopen($output_name,"w+"); -00142 // check if the opening is sucessfull -00143 if ( $h == false ) -00144 { -00145 echo "cannot open $p_dir $p_file "; -00146 exit(); -00147 } -00148 if ( $output_file == false) -00149 { -00150 echo "ne peut pas ouvrir le fichier de sortie"; -00151 exit(); -00152 } -00153 //read the file -00154 while(! feof($h)) +00022 require_once('class_poste.php'); +00028 class Document +00029 { +00030 var $db; +00032 var $ag_id; +00033 var $d_mimetype; +00034 var $d_filename; +00035 var $d_lob; +00036 var $d_number; +00037 var $md_id; +00038 var $d_state; +00039 /* Constructor +00040 * \param $p_cn Database connection +00041 */ +00042 function Document($p_cn,$p_d_id=0) +00043 { +00044 $this->db=$p_cn; +00045 $this->d_id=$p_d_id; +00046 } +00057 function Generate() +00058 { +00059 // create a temp directory in /tmp to unpack file and to parse it +00060 $dirname=tempnam('/tmp','doc_'); +00061 echo $dirname; +00062 unlink($dirname); +00063 mkdir ($dirname); +00064 echo_debug('class_action',__LINE__,"Dirname is $dirname"); +00065 // Retrieve the lob and save it into $dirname +00066 StartSql($this->db); +00067 $dm_info="select md_type,md_lob,md_filename,md_mimetype +00068 from document_modele where md_id=".$this->md_id; +00069 $Res=ExecSql($this->db,$dm_info); +00070 +00071 $row=pg_fetch_array($Res,0); +00072 $this->d_lob=$row['md_lob']; +00073 $this->d_filename=$row['md_filename']; +00074 $this->d_mimetype=$row['md_mimetype']; +00075 +00076 echo_debug('class_document',__LINE__,"OID is ".$row['md_lob']); +00078 chdir($dirname); +00079 $filename=$row['md_filename']; +00080 pg_lo_export($this->db,$row['md_lob'],$filename); +00081 $type="n"; +00082 echo_debug('class_document',__LINE__,'The document type is '.$row['md_mimetype']); +00083 // if the doc is a OOo, we need to unzip it first +00084 // and the name of the file to change is always content.xml +00085 if ( strpos($row['md_mimetype'],'vnd.oasis') != 0 ) +00086 { +00087 echo_debug('class_document',__LINE__,'Unzip the OOo'); +00088 system("unzip ".$filename); +00089 // Remove the file we do not need anymore +00090 unlink($filename); +00091 $file_to_parse="content.xml"; +00092 $type="OOo"; +00093 } +00094 else +00095 $file_to_parse=$filename; +00096 // affect a number +00097 $this->d_number=NextSequence($this->db,"seq_doc_type_".$row['md_type']); +00098 +00099 +00100 // parse the document - return the doc number ? +00101 $this->ParseDocument($dirname,$file_to_parse,$type); +00102 +00103 Commit($this->db); +00104 // if the doc is a OOo, we need to re-zip it +00105 if ( strpos($row['md_mimetype'],'vnd.oasis') != 0 ) +00106 { +00107 system ("zip -r ".$filename." *"); +00108 $file_to_parse=$filename; +00109 } +00110 // Create a directory +00111 mkdir ($_SERVER['DOCUMENT_ROOT'].$dirname); +00112 +00113 // we need to rename the new generated file +00114 rename($dirname."/".$file_to_parse,$_SERVER['DOCUMENT_ROOT'].$dirname.'/'.$file_to_parse); +00115 $ret=sprintf('<A HREF="%s">Document généré</A>', +00116 $dirname.'/'.$file_to_parse); +00117 $this->SaveGenerated($_SERVER['DOCUMENT_ROOT'].$dirname."/".$file_to_parse); +00118 return $ret; +00119 } +00120 +00131 function ParseDocument($p_dir,$p_file,$p_type) +00132 { +00133 +00134 echo_debug('class_document',__LINE__,'Begin parsing of '.$p_dir.' '.$p_file.'Type = '.$p_type); +00135 +00142 // open the document +00143 $infile_name=$p_dir."/".$p_file; +00144 echo_debug("class_document.php",__LINE__,"Open the document $p_dir/$p_file"); +00145 $h=fopen($infile_name,"r"); +00146 $output_name=tempnam($_SERVER["DOCUMENT_ROOT"]."/tmp","gen_doc_"); +00147 $output_file=fopen($output_name,"w+"); +00148 // check if the opening is sucessfull +00149 if ( $h == false ) +00150 { +00151 echo "cannot open $p_dir $p_file "; +00152 exit(); +00153 } +00154 if ( $output_file == false) 00155 { -00156 // replace the tag -00157 $buffer=fgets($h); -00158 // search in the buffer the magic << and >> -00159 // while ereg finds something to replace -00160 while ( ereg ("<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[0-9]*>>",$buffer,$f) ) -00161 { -00162 -00163 echo_debug('class_document',__LINE__,var_export( $f,true)); -00164 foreach ( $f as $pattern ) -00165 { -00166 echo_debug('class_document',__LINE__, "pattern"); -00167 echo_debug('class_document',__LINE__, var_export($pattern,true)); -00168 $to_remove=$pattern; -00169 // we remove the < and > from the pattern -00170 $pattern=str_replace('<','',$pattern); -00171 $pattern=str_replace('>','',$pattern); -00172 -00173 -00174 // if the pattern if found we replace it -00175 $value=$this->Replace($pattern); -00176 // replace into the $buffer -00177 $buffer=str_replace($to_remove,$value,$buffer); -00178 echo_debug('class_document',__LINE__, $buffer); -00179 // if the pattern if found we replace it -00180 echo_debug('class_document',__LINE__,"Transform $pattern by $value"); -00181 } -00182 } -00183 // write into the output_file -00184 fwrite($output_file,$buffer); -00185 -00186 } -00187 fclose($h); -00188 fclose($output_file); -00189 rename ($output_name,$infile_name); -00190 // Save the document into the database +00156 echo "ne peut pas ouvrir le fichier de sortie"; +00157 exit(); +00158 } +00159 // compute the regex +00160 if ( $p_type=='OOo') +00161 { +00162 $regex="&lt;&lt;[A-Z]+_*[A-Z]*_*[A-Z]*_*[0-9]*&gt;&gt;"; +00163 $lt="&lt;"; +00164 $gt="&gt;"; +00165 } +00166 else +00167 { +00168 $regex="<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[0-9]*>>"; +00169 $lt="<"; +00170 $gt=">"; +00171 } +00172 //read the file +00173 while(! feof($h)) +00174 { +00175 // replace the tag +00176 $buffer=fgets($h); +00177 // search in the buffer the magic << and >> +00178 // while ereg finds something to replace +00179 while ( ereg ($regex,$buffer,$f) ) +00180 { +00181 +00182 echo_debug('class_document',__LINE__,'var_export '.var_export( $f,true)); +00183 foreach ( $f as $pattern ) +00184 { +00185 echo_debug('class_document',__LINE__, "pattern"); +00186 echo_debug('class_document',__LINE__, var_export($pattern,true)); +00187 $to_remove=$pattern; +00188 // we remove the < and > from the pattern +00189 $pattern=str_replace($lt,'',$pattern); +00190 $pattern=str_replace($gt,'',$pattern); 00191 -00192 } -00200 function SaveGenerated($p_file) -00201 { -00202 // We save the generated file -00203 $doc=new Document($this->db); -00204 StartSql($this->db); -00205 $this->d_lob=pg_lo_import($this->db,$p_file); -00206 if ( $this->d_lob == false ) { -00207 Rollback($this->db); echo_debug('class_document',__LINE__,"can't save file $p_file"); -00208 return 1; } -00209 -00210 $sql=sprintf("insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) -00211 values (%d,%s,%d,'%s','%s')", -00212 $this->ag_id, -00213 $this->d_lob, -00214 $this->d_number, -00215 $this->d_filename, -00216 $this->d_mimetype -00217 ); -00218 ExecSql($this->db,$sql); -00219 $this->d_id=GetSequence($this->db,"document_d_id_seq"); -00220 -00221 Commit($this->db); -00222 return 0; -00223 } -00231 function Upload() -00232 { -00233 -00234 // Start Transaction -00235 StartSql($this->db); -00236 $new_name=tempnam('/tmp','doc_'); -00237 var_dump($_FILES); -00238 // nothing to save -00239 if ( sizeof($_FILES) == 0 ) return; -00240 // check if a file is submitted -00241 if ( strlen($_FILES['file_upload']['tmp_name']) != 0 ) -00242 { -00243 // upload the file and move it to temp directory -00244 if ( move_uploaded_file($_FILES['file_upload']['tmp_name'],$new_name)) -00245 { -00246 $oid=pg_lo_import($this->db,$new_name); -00247 // check if the lob is in the database -00248 if ( $oid == false ) -00249 { -00250 Rollback($this->db); -00251 return 1; -00252 } -00253 } -00254 // the upload in the database is successfull -00255 $this->d_lob=$oid; -00256 $this->d_filename=$_FILES['file_upload']['name']; -00257 $this->d_mimetype=$_FILES['file_upload']['type']; -00258 // now we have to update the col. -00259 // We retrieve the row to remove a possible existing lob (replace) -00260 $sql="select d_lob from document where d_id=".$this->d_id; -00261 $ret=ExecSql($this->db,$sql); -00262 -00263 if (pg_num_rows($ret) != 0) -00264 { -00265 // a result is found, the old oid is keept in order to -00266 // remove it later -00267 $r=pg_fetch_array($ret,0) ; -00268 $old_oid=$r['d_lob'] ; -00269 if (strlen($old_oid) != 0) { pg_lo_unlink ($this->db,$old_oid);} -00270 } -00271 // Update the table -00272 $sql=sprintf("update document set d_lob=%s,d_filename='%s',d_mimetype='%s' where d_id=%d", -00273 $this->d_lob,$this->d_filename,$this->d_mimetype,$this->d_id); -00274 ExecSql($this->db,$sql); -00275 Commit($this->db); -00276 } -00277 -00278 } -00284 function a_ref() -00285 { -00286 if ( $this->d_id == 0 ) -00287 return ''; -00288 $r=""; -00289 $r='<A HREF="show_document.php?d_id='.$this->d_id.'">Document</A>'; -00290 return $r; -00291 } -00292 /* ! Get -00293 * \brief Retrieve the document -00294 */ -00295 function Get() -00296 { -00297 // retrieve the template and generate document -00298 StartSql($this->db); -00299 $ret=ExecSql($this->db, -00300 "select d_id,d_lob,d_filename,d_mimetype from document where d_id=".$this->d_id ); -00301 if ( pg_num_rows ($ret) == 0 ) -00302 return; -00303 $row=pg_fetch_array($ret,0); -00304 //the document is saved into file $tmp -00305 $tmp=tempnam('/tmp/','document_'); -00306 pg_lo_export($this->db,$row['d_lob'],$tmp); -00307 $this->d_mimetype=$row['d_mimetype']; -00308 $this->d_filename=$row['d_filename']; -00309 -00310 // send it to stdout -00311 ini_set('zlib.output_compression','Off'); -00312 header("Pragma: public"); -00313 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -00314 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -00315 header("Cache-Control: must-revalidate"); -00316 header('Content-type: "'.$this->d_mimetype.'"'); -00317 header('Content-Disposition: attachment;filename="'.$this->d_filename.'"',FALSE); -00318 header("Accept-Ranges: bytes"); -00319 $file=fopen($tmp,'r'); -00320 while ( !feof ($file) ) -00321 { -00322 echo fread($file,8192); -00323 } -00324 fclose($file); -00325 -00326 unlink ($tmp); -00327 -00328 Commit($this->db); -00329 -00330 } -00363 function Replace($p_tag) -00364 { -00365 $r="Tag inconnu"; -00366 static $counter=0; -00367 switch ($p_tag) -00368 { -00369 case 'DATE': -00370 $r=' Date inconnue '; -00371 // Date are in $_REQUEST['ag_date'] -00372 // or $_POST['e_date'] -00373 if ( isset ($_REQUEST['ag_date'])) -00374 $r=$_REQUEST['ag_date']; -00375 if ( isset ($_REQUEST['e_date'])) -00376 $r=$_REQUEST['e_date']; -00377 -00378 break; -00379 // -00380 // the company priv -00381 -00382 case 'MY_NAME': -00383 $my=new own($this->db); -00384 $r=$my->MY_NAME; -00385 break; -00386 case 'MY_CP': -00387 $my=new own($this->db); -00388 $r=$my->MY_CP; -00389 break; -00390 case 'MY_COMMUNE': -00391 $my=new own($this->db); -00392 $r=$my->MY_COMMUNE; -00393 break; -00394 case 'MY_TVA': -00395 $my=new own($this->db); -00396 $r=$my->MY_TVA; -00397 break; -00398 case 'MY_STREET': -00399 $my=new own($this->db); -00400 $r=$my->MY_STREET; -00401 break; -00402 case 'MY_NUMBER': -00403 $my=new own($this->db); -00404 $r=$my->MY_NUMBER; -00405 break; -00406 // customer -00407 /*\note The CUST_* are retrieved thx the $_REQUEST['tiers'] -00408 * which contains the quick_code -00409 */ -00410 case 'CUST_NAME': -00411 $tiers=new fiche($this->db); -00412 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; -00413 $tiers->getByQcode($qcode,false); -00414 $r=$tiers->strAttribut(ATTR_DEF_NAME); -00415 break; -00416 case 'CUST_ADDR_1': -00417 $tiers=new fiche($this->db); -00418 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; -00419 $tiers->getByQcode($qcode,false); -00420 $r=$tiers->strAttribut(ATTR_DEF_ADRESS); -00421 -00422 break ; -00423 case 'CUST_CP': -00424 $tiers=new fiche($this->db); -00425 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; -00426 $tiers->getByQcode($qcode,false); -00427 $r=$tiers->strAttribut(ATTR_DEF_CP); -00428 +00192 +00193 // if the pattern if found we replace it +00194 $value=$this->Replace($pattern); +00195 // replace into the $buffer +00196 // take the position in the buffer +00197 $pos=strpos($buffer,$to_remove); +00198 // get the length of the string to remove +00199 $len=strlen($to_remove); +00200 $buffer=substr_replace($buffer,$value,$pos,$len); +00201 +00202 // echo_debug('class_document',__LINE__, $buffer); +00203 // if the pattern if found we replace it +00204 echo_debug('class_document',__LINE__,"Transform $pattern by $value"); +00205 } +00206 } +00207 // write into the output_file +00208 fwrite($output_file,$buffer); +00209 +00210 } +00211 fclose($h); +00212 fclose($output_file); +00213 rename ($output_name,$infile_name); +00214 // Save the document into the database +00215 +00216 } +00224 function SaveGenerated($p_file) +00225 { +00226 echo_debug('class_document',__LINE__,'Save generated'); +00227 // We save the generated file +00228 $doc=new Document($this->db); +00229 StartSql($this->db); +00230 $this->d_lob=pg_lo_import($this->db,$p_file); +00231 if ( $this->d_lob == false ) { +00232 Rollback($this->db); echo_debug('class_document',__LINE__,"can't save file $p_file"); +00233 return 1; } +00234 +00235 $sql=sprintf("insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype,d_state) +00236 values (%d,%s,%d,'%s','%s',%d)", +00237 $this->ag_id, +00238 $this->d_lob, +00239 $this->d_number, +00240 $this->d_filename, +00241 $this->d_mimetype, +00242 $this->d_state +00243 ); +00244 ExecSql($this->db,$sql); +00245 $this->d_id=GetSequence($this->db,"document_d_id_seq"); +00246 echo_debug('class_document',__LINE__,'document sauvé : d_id'.$this->d_id); +00247 Commit($this->db); +00248 return 0; +00249 } +00257 function Upload() +00258 { +00259 +00260 // Start Transaction +00261 StartSql($this->db); +00262 $new_name=tempnam('/tmp','doc_'); +00263 +00264 // nothing to save +00265 if ( sizeof($_FILES) == 0 ) return; +00266 // check if a file is submitted +00267 if ( strlen($_FILES['file_upload']['tmp_name']) != 0 ) +00268 { +00269 // upload the file and move it to temp directory +00270 if ( move_uploaded_file($_FILES['file_upload']['tmp_name'],$new_name)) +00271 { +00272 $oid=pg_lo_import($this->db,$new_name); +00273 // check if the lob is in the database +00274 if ( $oid == false ) +00275 { +00276 Rollback($this->db); +00277 return 1; +00278 } +00279 } +00280 // the upload in the database is successfull +00281 $this->d_lob=$oid; +00282 $this->d_filename=$_FILES['file_upload']['name']; +00283 $this->d_mimetype=$_FILES['file_upload']['type']; +00284 // now we have to update the col. +00285 // We retrieve the row to remove a possible existing lob (replace) +00286 $sql="select d_lob from document where d_id=".$this->d_id; +00287 $ret=ExecSql($this->db,$sql); +00288 +00289 if (pg_num_rows($ret) != 0) +00290 { +00291 // a result is found, the old oid is keept in order to +00292 // remove it later +00293 $r=pg_fetch_array($ret,0) ; +00294 $old_oid=$r['d_lob'] ; +00295 if (strlen($old_oid) != 0) { pg_lo_unlink ($this->db,$old_oid);} +00296 } +00297 // Update the table +00298 $sql=sprintf("update document set d_lob=%s,d_filename='%s',d_mimetype='%s' where d_id=%d", +00299 $this->d_lob,$this->d_filename,$this->d_mimetype,$this->d_id); +00300 ExecSql($this->db,$sql); +00301 Commit($this->db); +00302 } +00303 +00304 } +00310 function a_ref() +00311 { +00312 if ( $this->d_id == 0 ) +00313 return ''; +00314 $r=""; +00315 $r='<A HREF="show_document.php?d_id='.$this->d_id.'">Document</A>'; +00316 return $r; +00317 } +00318 /* ! Get +00319 * \brief Send the document +00320 */ +00321 function Send() +00322 { +00323 // retrieve the template and generate document +00324 StartSql($this->db); +00325 $ret=ExecSql($this->db, +00326 "select d_id,d_lob,d_filename,d_mimetype from document where d_id=".$this->d_id ); +00327 if ( pg_num_rows ($ret) == 0 ) +00328 return; +00329 $row=pg_fetch_array($ret,0); +00330 //the document is saved into file $tmp +00331 $tmp=tempnam('/tmp/','document_'); +00332 pg_lo_export($this->db,$row['d_lob'],$tmp); +00333 $this->d_mimetype=$row['d_mimetype']; +00334 $this->d_filename=$row['d_filename']; +00335 +00336 // send it to stdout +00337 ini_set('zlib.output_compression','Off'); +00338 header("Pragma: public"); +00339 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); +00340 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +00341 header("Cache-Control: must-revalidate"); +00342 header('Content-type: "'.$this->d_mimetype.'"'); +00343 header('Content-Disposition: attachment;filename="'.$this->d_filename.'"',FALSE); +00344 header("Accept-Ranges: bytes"); +00345 $file=fopen($tmp,'r'); +00346 while ( !feof ($file) ) +00347 { +00348 echo fread($file,8192); +00349 } +00350 fclose($file); +00351 +00352 unlink ($tmp); +00353 +00354 Commit($this->db); +00355 +00356 } +00359 function get() +00360 { +00361 $sql="select * from document where d_id=".$this->d_id; +00362 $ret=Exec($this->db,$sql); +00363 if ( pg_num_rows($ret) == 0 ) +00364 return; +00365 $row=pg_fetch_array($ret,0); +00366 $this->ag_id=$row['ag_id']; +00367 $this->d_mimetype=$row['d_mimetype']; +00368 $this->d_filename=$row['d_filename']; +00369 $this->d_lob=$row['d_lob']; +00370 $this->d_number=$row['']; +00371 $this->d_state=$row['ag_id']; +00372 $this->d_number=$row['d_number']; +00373 +00374 } +00407 function Replace($p_tag) +00408 { +00409 $r="Tag inconnu"; +00410 static $counter=0; +00411 switch ($p_tag) +00412 { +00413 case 'DATE': +00414 $r=' Date inconnue '; +00415 // Date are in $_REQUEST['ag_date'] +00416 // or $_POST['e_date'] +00417 if ( isset ($_REQUEST['ag_date'])) +00418 $r=$_REQUEST['ag_date']; +00419 if ( isset ($_REQUEST['e_date'])) +00420 $r=$_REQUEST['e_date']; +00421 +00422 break; +00423 // +00424 // the company priv +00425 +00426 case 'MY_NAME': +00427 $my=new own($this->db); +00428 $r=$my->MY_NAME; 00429 break; -00430 case 'CUST_CO': -00431 $tiers=new fiche($this->db); -00432 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; -00433 $tiers->getByQcode($qcode,false); -00434 $r=$tiers->strAttribut(ATTR_DEF_PAYS); -00435 -00436 break; -00437 case 'CUST_VAT': -00438 $tiers=new fiche($this->db); -00439 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; -00440 $tiers->getByQcode($qcode,false); -00441 $r=$tiers->strAttribut(ATTR_DEF_NUMTVA); -00442 break; -00443 // Marchandise in $_POST['e_march*'] -00444 // \see user_form_achat.php or user_form_ven.php -00445 case 'NUMBER': -00446 $r=$this->d_number; -00447 break; -00448 /* -00449 * - [VEN_ART_NAME] -00450 * - [VEN_ART_PRICE] -00451 * - [VEN_ART_QUANT] -00452 * - [VEN_ART_TVA_CODE] -00453 * - [VEN_ART_TVA_AMOUNT] -00454 * - [VEN_ART_STOCK_CODE] -00455 * - [VEN_HTVA] -00456 * - [VEN_TVAC] -00457 * - [VEN_TVA] -00458 * - [TOTAL_VEN_HTVA] -00459 */ -00460 case 'MARCH_NEXT': -00461 $counter++; -00462 $r=''; -00463 break; -00464 -00465 case 'VEN_ART_NAME': -00466 extract ($_POST); -00467 $id='e_march'.$counter; -00468 // check if the march exists -00469 if ( ! isset (${$id})) return ""; -00470 // check that something is sold -00471 if ( ${'e_march'.$counter.'_sell'} != 0 && ${'e_quant'.$counter} != 0 ) -00472 { -00473 $f=new fiche($this->db); -00474 $f->GetByQCode(${$id},false); -00475 $r=$f->strAttribut(ATTR_DEF_NAME); -00476 } else $r = ""; -00477 break; -00478 -00479 case 'VEN_ART_PRICE': -00480 extract ($_POST); -00481 $id='e_march'.$counter.'_sell' ; -00482 if ( !isset (${$id}) ) return ""; -00483 $r=${$id}; -00484 break; -00485 -00486 case 'VEN_ART_TVA_CODE': -00487 extract ($_POST); -00488 $id='e_march'.$counter.'_tva_id'; -00489 if ( !isset (${$id}) ) return ""; -00490 $r=${$id}; -00491 break; -00492 -00493 case 'VEN_ART_TVA_LABEL': -00494 extract ($_POST); -00495 $id='e_march'.$counter.'_tva_id'; -00496 if ( !isset (${$id}) ) return ""; -00497 $tva=GetTvaRate($this->db,${$id}); -00498 if ( $tva == null || $tva==0 ) return ""; -00499 $r=$tva['tva_label']; -00500 break; -00501 -00502 -00503 case 'VEN_ART_TVA_AMOUNT': -00504 extract ($_POST); -00505 $qt='e_quant'.$counter; -00506 $price='e_march'.$counter.'_sell' ; -00507 $tva='e_march'.$counter.'_tva_id'; -00508 if ( !isset (${'e_march'.$counter}) ) return ""; -00509 // check that something is sold -00510 if ( ${'e_march'.$counter.'_sell'} == 0 && ${'e_quant'.$counter} == 0 ) -00511 return ""; -00512 $a_tva=GetTvaRate($this->db,${$tva}); -00513 // if no vat returns 0 -00514 if ( $a_tva == null || $a_tva == 0 ) return 0; -00515 $r=round($price,2)*$qt*$a_tva['tva_rate']; -00516 $r=round($r,2); -00517 break; -00518 -00519 case 'VEN_ART_QUANT': -00520 extract ($_POST); -00521 $id='e_quant'.$counter; -00522 if ( !isset (${$id}) ) return ""; -00523 // check that something is sold -00524 if ( ${'e_march'.$counter.'_sell'} == 0 && ${'e_quant'.$counter} == 0 ) -00525 return ""; -00526 $r=${$id}; -00527 break; -00528 -00529 case 'VEN_HTVA': -00530 extract ($_POST); -00531 $id='e_march'.$counter.'_sell' ; -00532 $quant='e_quant'.$counter; -00533 // check that something is sold -00534 if ( ${'e_march'.$counter.'_sell'} == 0 && ${'e_quant'.$counter} == 0 ) -00535 return ""; -00541 $r=round(${$id}*${$quant},2); -00542 break; -00543 -00544 case 'VEN_TVAC': -00545 extract ($_POST); -00546 $id='e_march'.$counter.'_sell' ; -00547 $quant='e_quant'.$counter; -00548 // check that something is sold -00549 if ( ${'e_march'.$counter.'_sell'} == 0 && ${'e_quant'.$counter} == 0 ) -00550 return ""; -00555 $r=${$id}*${$quant}; -00556 $tva=GetTvaRate($this->db,${'e_march'.$counter.'_tva_id'}); -00557 // if there is no vat we return now -00558 if ( $tva == null || $tva == 0 ) return $r; -00559 // we compute with the vat included -00560 $r=$r+$tva['tva_rate']; -00561 $r=round($r,2); -00562 break; -00563 case 'TOTAL_VEN_HTVA': -00564 extract($_POST); -00565 $sum=0.0; -00566 for ($i=0;$i<$nb_item;$i++) -00567 { -00568 $sum+=${'e_march'.$i.'_sell'}*$e{'e_quant'.$i}; -00569 } -00570 $r=round($sum,2); +00430 case 'MY_CP': +00431 $my=new own($this->db); +00432 $r=$my->MY_CP; +00433 break; +00434 case 'MY_COMMUNE': +00435 $my=new own($this->db); +00436 $r=$my->MY_COMMUNE; +00437 break; +00438 case 'MY_TVA': +00439 $my=new own($this->db); +00440 $r=$my->MY_TVA; +00441 break; +00442 case 'MY_STREET': +00443 $my=new own($this->db); +00444 $r=$my->MY_STREET; +00445 break; +00446 case 'MY_NUMBER': +00447 $my=new own($this->db); +00448 $r=$my->MY_NUMBER; +00449 break; +00450 case 'MY_TEL': +00451 $my=new own($this->db); +00452 $r=$my->MY_TEL; +00453 break; +00454 case 'MY_FAX': +00455 $my=new own($this->db); +00456 $r=$my->MY_FAX; +00457 break; +00458 case 'MY_PAYS': +00459 $my=new own($this->db); +00460 $r=$my->MY_PAYS; +00461 break; +00462 +00463 // customer +00464 /*\note The CUST_* are retrieved thx the $_REQUEST['tiers'] +00465 * which contains the quick_code +00466 */ +00467 case 'SOLDE': +00468 $tiers=new fiche($this->db); +00469 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00470 $tiers->Getbyqcode($qcode,false); +00471 $p=$tiers->strAttribut(ATTR_DEF_ACCOUNT); +00472 $poste=new Poste($this->db,$p); +00473 $r=$poste->GetSolde(' true' ); +00474 break; +00475 case 'CUST_NAME': +00476 $tiers=new fiche($this->db); +00477 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00478 $tiers->getByQcode($qcode,false); +00479 $r=$tiers->strAttribut(ATTR_DEF_NAME); +00480 break; +00481 case 'CUST_ADDR_1': +00482 $tiers=new fiche($this->db); +00483 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00484 $tiers->getByQcode($qcode,false); +00485 $r=$tiers->strAttribut(ATTR_DEF_ADRESS); +00486 +00487 break ; +00488 case 'CUST_CP': +00489 $tiers=new fiche($this->db); +00490 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00491 $tiers->getByQcode($qcode,false); +00492 $r=$tiers->strAttribut(ATTR_DEF_CP); +00493 +00494 break; +00495 case 'CUST_CO': +00496 $tiers=new fiche($this->db); +00497 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00498 $tiers->getByQcode($qcode,false); +00499 $r=$tiers->strAttribut(ATTR_DEF_PAYS); +00500 +00501 break; +00502 case 'CUST_VAT': +00503 $tiers=new fiche($this->db); +00504 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00505 $tiers->getByQcode($qcode,false); +00506 $r=$tiers->strAttribut(ATTR_DEF_NUMTVA); +00507 break; +00508 // Marchandise in $_POST['e_march*'] +00509 // \see user_form_achat.php or user_form_ven.php +00510 case 'NUMBER': +00511 $r=$this->d_number; +00512 break; +00513 case 'REFERENCE': +00514 $act=new action($this->db); +00515 $act->ag_id=$this->ag_id; +00516 $act->get(); +00517 $r=$act->ag_ref; +00518 break; +00519 +00520 /* +00521 * - [VEN_ART_NAME] +00522 * - [VEN_ART_PRICE] +00523 * - [VEN_ART_QUANT] +00524 * - [VEN_ART_TVA_CODE] +00525 * - [VEN_ART_TVA_AMOUNT] +00526 * - [VEN_ART_STOCK_CODE] +00527 * - [VEN_HTVA] +00528 * - [VEN_TVAC] +00529 * - [VEN_TVA] +00530 * - [TOTAL_VEN_HTVA] +00531 */ +00532 case 'MARCH_NEXT': +00533 $counter++; +00534 $r=''; +00535 break; +00536 +00537 case 'VEN_ART_NAME': +00538 extract ($_POST); +00539 $id='e_march'.$counter; +00540 // check if the march exists +00541 if ( ! isset (${$id})) return ""; +00542 // check that something is sold +00543 if ( ${'e_march'.$counter.'_sell'} != 0 && ${'e_quant'.$counter} != 0 ) +00544 { +00545 $f=new fiche($this->db); +00546 $f->GetByQCode(${$id},false); +00547 $r=$f->strAttribut(ATTR_DEF_NAME); +00548 } else $r = ""; +00549 break; +00550 +00551 case 'VEN_ART_PRICE': +00552 extract ($_POST); +00553 $id='e_march'.$counter.'_sell' ; +00554 if ( !isset (${$id}) ) return ""; +00555 $r=${$id}; +00556 break; +00557 +00558 case 'TVA_CODE': +00559 extract ($_POST); +00560 $id='e_march'.$counter.'_tva_id'; +00561 if ( !isset (${$id}) ) return ""; +00562 if ( ${$id} == -1 ) return ""; +00563 $qt='e_quant'.$counter; +00564 $price='e_march'.$counter.'_sell' ; +00565 if ( ${$price} == 0 || ${$qt} == 0 +00566 || strlen(trim( $price )) ==0 +00567 || strlen(trim($qt)) ==0) +00568 return ""; +00569 +00570 $r=${$id}; 00571 break; -00572 case 'TOTAL_VEN_TVAC': -00573 extract($_POST); -00574 $sum=0.0; -00575 for ($i=0;$i<$nb_item;$i++) -00576 { -00577 $tva=GetTvaRate($this->db,${'e_march'.$i.'_tva_id'}); -00578 $tva_rate=( $tva == null || $tva == 0 )?0.0:$tva['tva_rate']; -00579 $sum+=${'e_march'.$i.'_sell'}*${'e_quant'.$i}*(1+$tva_rate); -00580 } -00581 $r=round($sum,2); +00572 +00573 case 'TVA_LABEL': +00574 extract ($_POST); +00575 $id='e_march'.$counter.'_tva_id'; +00576 if ( !isset (${$id}) ) return ""; +00577 $tva=GetTvaRate($this->db,${$id}); +00578 if ( $tva == null || $tva==0 ) return ""; +00579 $r=$tva['tva_label']; +00580 break; +00581 00582 -00583 break; -00584 -00585 } -00586 return $r; -00587 } -00591 function remove() -00592 { -00593 $sql='delete from document where d_id='.$this->d_id; -00594 ExecSql($this->db,$sql); -00595 } -00602 function MoveDocumentPj($p_internal) -00603 { -00604 -00605 $sql=sprintf("update jrn set jr_pj=%s,jr_pj_name='%s',jr_pj_type='%s' where jr_internal='%s'", -00606 $this->d_lob,$this->d_filename,$this->d_mimetype,$p_internal); -00607 ExecSql($this->db,$sql); -00608 // clean the table document -00609 $this->remove(); -00610 } -00611 -00612 -00613 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00583 case 'TVA_AMOUNT': +00584 extract ($_POST); +00585 $qt='e_quant'.$counter; +00586 $price='e_march'.$counter.'_sell' ; +00587 $tva='e_march'.$counter.'_tva_id'; +00588 if ( !isset (${'e_march'.$counter}) ) return ""; +00589 // check that something is sold +00590 if ( ${$price} == 0 || ${$qt} == 0 +00591 || strlen(trim( $price )) ==0 +00592 || strlen(trim($qt)) ==0) +00593 return ""; +00594 $a_tva=GetTvaRate($this->db,${$tva}); +00595 echo_debug('class_document',__LINE__,'Tva :'.var_export($a_tva,true)); +00596 // if no vat returns 0 +00597 if ( sizeof($a_tva) == 0 ) return ""; +00598 $r=round(${$price},2)*${$qt}*$a_tva['tva_rate']; +00599 $r=round($r,2); +00600 break; +00601 +00602 case 'VEN_ART_QUANT': +00603 extract ($_POST); +00604 $id='e_quant'.$counter; +00605 if ( !isset (${$id}) ) return ""; +00606 // check that something is sold +00607 if ( ${'e_march'.$counter.'_sell'} == 0 +00608 || ${'e_quant'.$counter} == 0 +00609 || strlen(trim( ${'e_march'.$counter.'_sell'} )) ==0 +00610 || strlen(trim(${'e_quant'.$counter})) ==0 ) +00611 return ""; +00612 $r=${$id}; +00613 break; +00614 +00615 case 'VEN_HTVA': +00616 extract ($_POST); +00617 $id='e_march'.$counter.'_sell' ; +00618 $quant='e_quant'.$counter; +00619 if ( !isset (${$id}) ) return ""; +00620 +00621 // check that something is sold +00622 if ( ${'e_march'.$counter.'_sell'} == 0 || ${'e_quant'.$counter} == 0 +00623 || strlen(trim( ${'e_march'.$counter.'_sell'} )) ==0 +00624 || strlen(trim(${'e_quant'.$counter})) ==0) +00625 return ""; +00631 $r=round(${$id}*${$quant},2); +00632 break; +00633 +00634 case 'VEN_TVAC': +00635 extract ($_POST); +00636 $id='e_march'.$counter.'_sell' ; +00637 $quant='e_quant'.$counter; +00638 // if it is exist +00639 if ( ! isset(${$id})) +00640 return ""; +00641 // check that something is sold +00642 if ( ${'e_march'.$counter.'_sell'} == 0 || ${'e_quant'.$counter} == 0 ) +00643 return ""; +00648 $r=${$id}*${$quant}; +00649 $tva=GetTvaRate($this->db,${'e_march'.$counter.'_tva_id'}); +00650 // if there is no vat we return now +00651 if ( $tva == null || $tva == 0 ) return $r; +00652 // we compute with the vat included +00653 $r=$r+$r*$tva['tva_rate']; +00654 $r=round($r,2); +00655 break; +00656 case 'TOTAL_VEN_HTVA': +00657 extract($_POST); +00658 echo_debug('class_document',__LINE__,'TOTAL_VEN_TVA item :'.$nb_item); +00659 +00660 $sum=0.0; +00661 for ($i=0;$i<$nb_item;$i++) +00662 { +00663 $sell='e_march'.$i.'_sell'; +00664 $qt='e_quant'.$i; +00665 echo_debug('class_document',__LINE__,'sell :'.$sell.' qt = '.$qt); +00666 +00667 echo_debug('class_document',__LINE__,'counter :'.$i.' sur '.$nb_item); +00668 if ( ! isset (${$sell}) ) break; +00669 echo_debug('class_document',__LINE__,'sell :'.${$sell}.' qt = '.${$qt}); +00670 +00671 if ( strlen(trim(${$sell})) == 0 || +00672 strlen(trim(${$qt})) == 0 || +00673 ${$qt}==0 || ${$sell}==0) +00674 continue; +00675 $sum+=${$sell}*${$qt}; +00676 echo_debug('class_document',__LINE__,'sum :'.$sum); +00677 +00678 } +00679 $r=round($sum,2); +00680 break; +00681 case 'TOTAL_VEN_TVAC': +00682 extract($_POST); +00683 $sum=0.0; +00684 for ($i=0;$i<$nb_item;$i++) +00685 { +00686 $tva=GetTvaRate($this->db,${'e_march'.$i.'_tva_id'}); +00687 $tva_rate=( $tva == null || $tva == 0 )?0.0:$tva['tva_rate']; +00688 echo_debug('class_document',__LINE__,' :'.$i.' sur '.$nb_item); +00689 $sell=${'e_march'.$i.'_sell'}; +00690 $qt=${'e_quant'.$i}; +00691 echo_debug('class_document',__LINE__,'sell :'.$sell.' qt = '.$qt); +00692 +00693 $sum+=$sell*$qt*(1+$tva_rate); +00694 // $sum+=${'e_march'.$i.'_sell'}*${'e_quant'.$i}*(1+$tva_rate); +00695 } +00696 $r=round($sum,2); +00697 +00698 break; +00699 +00700 } +00701 return $r; +00702 } +00706 function remove() +00707 { +00708 $sql='delete from document where d_id='.$this->d_id; +00709 ExecSql($this->db,$sql); +00710 } +00717 function MoveDocumentPj($p_internal) +00718 { +00719 +00720 $sql=sprintf("update jrn set jr_pj=%s,jr_pj_name='%s',jr_pj_type='%s' where jr_internal='%s'", +00721 $this->d_lob,$this->d_filename,$this->d_mimetype,$p_internal); +00722 ExecSql($this->db,$sql); +00723 // clean the table document +00724 $this->remove(); +00725 } +00726 +00727 +00728 } +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document_8php.html b/doc/developper/html/class__document_8php.html index 28bbd878d..9238a5fee 100644 --- a/doc/developper/html/class__document_8php.html +++ b/doc/developper/html/class__document_8php.html @@ -23,7 +23,7 @@ Class Document corresponds to the ta

      -Definition in file class_document.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_document.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document__modele_8php-source.html b/doc/developper/html/class__document__modele_8php-source.html index 3e55c4dde..2c0b1164d 100644 --- a/doc/developper/html/class__document__modele_8php-source.html +++ b/doc/developper/html/class__document__modele_8php-source.html @@ -38,7 +38,7 @@ 00036 //Constructor parameter = database connexion 00037 function Document_modele($p_cn,$p_id=-1) { 00038 $this->cn=$p_cn; -00039 $this->md_id=$p_id; +00039 $this->md_id=$p_id; 00040 } 00041 00049 function myList() { @@ -63,7 +63,7 @@ 00068 $r.="</td>"; 00069 $r.="<TD>"; 00070 $c=new widget("checkbox"); -00071 $c->name="dm_remove_".$row['md_id']; +00071 $c->name="dm_remove_".$row['md_id']; 00072 $r.=$c->IOValue(); 00073 $r.="</td>"; 00074 $r.="</tr>"; @@ -71,11 +71,11 @@ 00076 $r.="</table>"; 00077 00078 // need hidden parameter for subaction -00079 $a=new widget("hidden"); -00080 $a->name="sa"; -00081 $a->value="rm_template"; -00082 $r.=$a->IOValue(); -00083 $r.=$a->Submit("rm_template","Effacer la sélection"); +00079 $a=new widget("hidden"); +00080 $a->name="sa"; +00081 $a->value="rm_template"; +00082 $r.=$a->IOValue(); +00083 $r.=$a->Submit("rm_template","Effacer la sélection"); 00084 $r.="</form></p>"; 00085 return $r; 00086 } @@ -94,8 +94,8 @@ 00115 { 00116 00117 // insert into the table document_modele -00118 $this->name=FormatString($this->md_name); -00119 $this->md_id=NextSequence($this->cn,'document_modele_md_id_seq'); +00118 $this->name=FormatString($this->md_name); +00119 $this->md_id=NextSequence($this->cn,'document_modele_md_id_seq'); 00120 $sql=sprintf("insert into document_modele(md_id,md_name,md_type) 00121 values (%d,'%s',%d)", 00122 $this->md_id,$this->name,$this->md_type); @@ -104,144 +104,145 @@ 00125 $this->md_sequence="document_".NextSequence($this->cn,"document_seq"); 00126 // if start is not equal to 0 and he's a number than the user 00127 // request a number change -00128 if ( $this->start != 0 && isNumber($this->start) == 1 ) -00129 { -00130 $sql="alter sequence seq_doc_type_".$this->md_type." start with ".$this->start; -00131 ExecSql($this->cn,$sql); -00132 } -00133 -00134 } -00135 // Save the file -00136 $new_name=tempnam('/tmp','document_'); -00137 echo_debug('class_document_modele.php',__LINE__,"new name=".$new_name); -00138 if ( strlen ($_FILES['doc']['tmp_name']) != 0 ) -00139 { -00140 if (move_uploaded_file($_FILES['doc']['tmp_name'], -00141 $new_name)) -00142 { -00143 // echo "Image saved"; -00144 $oid= pg_lo_import($this->cn,$new_name); -00145 if ( $oid == false ) -00146 { -00147 echo_error('class_document_modele.php',__LINE__,"cannot upload document"); -00148 Rollback($cn); -00149 return; -00150 } -00151 echo_debug('class_document_modele.php',__LINE__,"Loading document"); -00152 // Remove old document -00153 $ret=ExecSql($this->cn,"select md_lob from document_modele where md_id=".$this->md_id); -00154 if (pg_num_rows($ret) != 0) -00155 { -00156 $r=pg_fetch_array($ret,0); -00157 $old_oid=$r['md_lob']; -00158 if (strlen($old_oid) != 0) -00159 pg_lo_unlink($this->cn,$old_oid); -00160 } -00161 // Load new document -00162 var_dump($_FILES); -00163 ExecSql($this->cn,"update document_modele set md_lob=".$oid.", md_mimetype='".$_FILES['doc']['type']."' ,md_filename='".$_FILES['doc']['name']."' where md_id=".$this->md_id); -00164 Commit($this->cn); -00165 } -00166 else -00167 { -00168 echo "<H1>Error</H1>"; -00169 Rollback($this->cn); -00170 exit; -00171 } -00172 } -00173 } -00178 function Delete() -00179 { -00180 StartSql($this->cn); -00181 // first we unlink the document -00182 $sql="select md_lob from document_modele where md_id=".$this->md_id; -00183 $res=ExecSql($this->cn,$sql); -00184 $r=pg_fetch_array($res,0); -00185 // if a lob is found -00186 if ( strlen ($r['md_lob']) != 0 ) -00187 { -00188 // we remove it first -00189 pg_lo_unlink($r['md_lob']); -00190 } -00191 // now we can delete the row -00192 $sql="delete from document_modele where md_id =".$this->md_id; -00193 $sql=ExecSql($this->cn,$sql); -00194 Commit($this->cn); -00195 } -00196 -00203 function Get($p_id,$p_internal) -00204 { -00205 // retrieve info from the table invoice -00206 -00207 // retrieve the template and generate document -00208 StartSql($this->cn); -00209 $ret=ExecSql($cn,"select iv_name,iv_file from invoice where iv_id".$this->iv_id); -00210 if ( pg_num_rows ($ret) == 0 ) -00211 return; -00212 $row=pg_fetch_array($ret,0); -00213 //the template is saved into file $tmp -00214 $tmp=tempnam('/tmp/','invoice_'); -00215 pg_lo_export($cn,$row['iv_file'],$tmp); -00216 // Parse the file -00217 +00128 echo_debug('class_document_modele',__LINE__, "this->start ".$this->start." a number ".isNumber($this->start)); +00129 +00130 if ( $this->start != 0 && isNumber($this->start) == 1 ) +00131 { +00132 $sql="alter sequence seq_doc_type_".$this->md_type." restart ".$this->start; +00133 ExecSql($this->cn,$sql); +00134 } +00135 +00136 } +00137 // Save the file +00138 $new_name=tempnam('/tmp','document_'); +00139 echo_debug('class_document_modele.php',__LINE__,"new name=".$new_name); +00140 if ( strlen ($_FILES['doc']['tmp_name']) != 0 ) +00141 { +00142 if (move_uploaded_file($_FILES['doc']['tmp_name'], +00143 $new_name)) +00144 { +00145 // echo "Image saved"; +00146 $oid= pg_lo_import($this->cn,$new_name); +00147 if ( $oid == false ) +00148 { +00149 echo_error('class_document_modele.php',__LINE__,"cannot upload document"); +00150 Rollback($cn); +00151 return; +00152 } +00153 echo_debug('class_document_modele.php',__LINE__,"Loading document"); +00154 // Remove old document +00155 $ret=ExecSql($this->cn,"select md_lob from document_modele where md_id=".$this->md_id); +00156 if (pg_num_rows($ret) != 0) +00157 { +00158 $r=pg_fetch_array($ret,0); +00159 $old_oid=$r['md_lob']; +00160 if (strlen($old_oid) != 0) +00161 pg_lo_unlink($this->cn,$old_oid); +00162 } +00163 // Load new document +00164 ExecSql($this->cn,"update document_modele set md_lob=".$oid.", md_mimetype='".$_FILES['doc']['type']."' ,md_filename='".$_FILES['doc']['name']."' where md_id=".$this->md_id); +00165 Commit($this->cn); +00166 } +00167 else +00168 { +00169 echo "<H1>Error</H1>"; +00170 Rollback($this->cn); +00171 exit; +00172 } +00173 } +00174 } +00179 function Delete() +00180 { +00181 StartSql($this->cn); +00182 // first we unlink the document +00183 $sql="select md_lob from document_modele where md_id=".$this->md_id; +00184 $res=ExecSql($this->cn,$sql); +00185 $r=pg_fetch_array($res,0); +00186 // if a lob is found +00187 if ( strlen ($r['md_lob']) != 0 ) +00188 { +00189 // we remove it first +00190 pg_lo_unlink($r['md_lob']); +00191 } +00192 // now we can delete the row +00193 $sql="delete from document_modele where md_id =".$this->md_id; +00194 $sql=ExecSql($this->cn,$sql); +00195 Commit($this->cn); +00196 } +00197 +00204 function Get($p_id,$p_internal) +00205 { +00206 // retrieve info from the table invoice +00207 +00208 // retrieve the template and generate document +00209 StartSql($this->cn); +00210 $ret=ExecSql($cn,"select iv_name,iv_file from invoice where iv_id".$this->iv_id); +00211 if ( pg_num_rows ($ret) == 0 ) +00212 return; +00213 $row=pg_fetch_array($ret,0); +00214 //the template is saved into file $tmp +00215 $tmp=tempnam('/tmp/','invoice_'); +00216 pg_lo_export($cn,$row['iv_file'],$tmp); +00217 // Parse the file 00218 00219 00220 -00221 // send it to stdout -00222 ini_set('zlib.output_compression','Off'); -00223 header("Pragma: public"); -00224 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -00225 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -00226 header("Cache-Control: must-revalidate"); -00227 header('Content-type: rtf/x-application'); -00228 header('Content-Disposition: attachment;filename="invoice'.$p_internal.'.rtf"',FALSE); -00229 header("Accept-Ranges: bytes"); -00230 $file=fopen($tmp,'r'); -00231 while ( !feof ($file) ) -00232 { -00233 echo fread($file,8192); -00234 } -00235 fclose($file); -00236 -00237 unlink ($tmp); -00238 -00239 Commit($cn); -00240 -00241 } -00251 function form($p_action) -00252 { -00253 $r="<p>"; -00254 $r.='<form enctype="multipart/form-data" action="'.$p_action.'" method="post">'; -00255 $t=new widget("text"); -00256 $t->name="md_name"; -00257 $r.=" Nom ".$t->IOValue().""; -00258 $r.="Type de document "; -00259 $w=new widget("select"); -00260 $w->name="md_type"; -00261 $w->value=make_array($this->cn,'select dt_id,dt_value from document_type'); -00262 $r.=$w->IOValue(); -00263 $r.="</p><p>"; -00264 $f=new widget("file"); -00265 $f->name="doc"; -00266 $r.="fichier ".$f->IOValue().""; -00267 // we need to add the sub action as hidden -00268 $h=new widget("hidden"); -00269 $h->name="sa"; -00270 $h->value="add_document"; -00271 $r.=$h->IOValue(); -00272 $start=new widget("text"); -00273 $start->name="start_seq"; -00274 $start->size=9; -00275 $start->value="0"; -00276 $r.=" Numerotation commence a ".$start->IOValue().""; -00277 $r.=$w->Submit('add_document','Ajout'); -00278 $r.="</form></p>"; -00279 return $r; -00280 } -00281 -00282 } -00283 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00221 +00222 // send it to stdout +00223 ini_set('zlib.output_compression','Off'); +00224 header("Pragma: public"); +00225 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); +00226 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +00227 header("Cache-Control: must-revalidate"); +00228 header('Content-type: rtf/x-application'); +00229 header('Content-Disposition: attachment;filename="invoice'.$p_internal.'.rtf"',FALSE); +00230 header("Accept-Ranges: bytes"); +00231 $file=fopen($tmp,'r'); +00232 while ( !feof ($file) ) +00233 { +00234 echo fread($file,8192); +00235 } +00236 fclose($file); +00237 +00238 unlink ($tmp); +00239 +00240 Commit($cn); +00241 +00242 } +00252 function form($p_action) +00253 { +00254 $r="<p>"; +00255 $r.='<form enctype="multipart/form-data" action="'.$p_action.'" method="post">'; +00256 $t=new widget("text"); +00257 $t->name="md_name"; +00258 $r.=" Nom ".$t->IOValue().""; +00259 $r.="Type de document "; +00260 $w=new widget("select"); +00261 $w->name="md_type"; +00262 $w->value=make_array($this->cn,'select dt_id,dt_value from document_type'); +00263 $r.=$w->IOValue(); +00264 $r.="</p><p>"; +00265 $f=new widget("file"); +00266 $f->name="doc"; +00267 $r.="fichier ".$f->IOValue().""; +00268 // we need to add the sub action as hidden +00269 $h=new widget("hidden"); +00270 $h->name="sa"; +00271 $h->value="add_document"; +00272 $r.=$h->IOValue(); +00273 $start=new widget("text"); +00274 $start->name="start_seq"; +00275 $start->size=9; +00276 $start->value="0"; +00277 $r.=" Numerotation commence a ".$start->IOValue().""; +00278 $r.=$w->Submit('add_document','Ajout'); +00279 $r.="</form></p>"; +00280 return $r; +00281 } +00282 +00283 } +00284 ?> +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document__modele_8php.html b/doc/developper/html/class__document__modele_8php.html index 0d21647f9..09c267d9f 100644 --- a/doc/developper/html/class__document__modele_8php.html +++ b/doc/developper/html/class__document__modele_8php.html @@ -23,7 +23,7 @@ Class for the document template.

      -Definition in file class_document_modele.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_document_modele.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document__type_8php-source.html b/doc/developper/html/class__document__type_8php-source.html index 702c52019..2ee08a60e 100644 --- a/doc/developper/html/class__document__type_8php-source.html +++ b/doc/developper/html/class__document__type_8php-source.html @@ -32,19 +32,19 @@ 00035 function document_type($p_cn) 00036 { 00037 $this->db=$p_cn; -00038 $this->dt_id=-1; +00038 $this->dt_id=-1; 00039 } 00043 function get() 00044 { 00045 $sql="select * from document_type where dt_id=".$this->dt_id; 00046 $R=ExecSql($this->db,$sql); 00047 $r=pg_fetch_array($R,0); -00048 $this->dt_id=$r['dt_id']; +00048 $this->dt_id=$r['dt_id']; 00049 $this->dt_value=$r['dt_value']; 00050 } 00051 00052 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__document__type_8php.html b/doc/developper/html/class__document__type_8php.html index f800d1718..f6a6951ae 100644 --- a/doc/developper/html/class__document__type_8php.html +++ b/doc/developper/html/class__document__type_8php.html @@ -22,7 +22,7 @@ class for the table document_type

      -Definition in file class_document_type.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_document_type.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__fiche_8php-source.html b/doc/developper/html/class__fiche_8php-source.html index fd6e7c7f9..3feb98c0e 100644 --- a/doc/developper/html/class__fiche_8php-source.html +++ b/doc/developper/html/class__fiche_8php-source.html @@ -55,7 +55,7 @@ 00061 $row=pg_fetch_array($Ret,$i); 00062 $t = new Attribut($row['ad_id']); 00063 $t->ad_text=$row['ad_text']; -00064 $this->attribut[$i]=$t; +00064 $this->attribut[$i]=$t; 00065 } 00066 return $this->attribut; 00067 } @@ -69,7 +69,7 @@ 00080 if ( ($Max=pg_NumRows($Ret)) == 0 ) 00081 return ; 00082 $row=pg_fetch_array($Ret,0); -00083 $this->label=$row['fd_label']; +00083 $this->label=$row['fd_label']; 00084 $this->class_base=$row['fd_class_base']; 00085 $this->fiche_def=$row['frd_id']; 00086 $this->create_account=$row['fd_create_account']; @@ -83,11 +83,11 @@ 00100 00101 for ( $i = 0; $i < $Max;$i++) { 00102 $row=pg_fetch_array($Ret,$i); -00103 $this->all[$i]=new fiche_def($this->cn,$row['fd_id']); -00104 $this->all[$i]->label=$row['fd_label']; -00105 $this->all[$i]->class_base=$row['fd_class_base']; -00106 $this->all[$i]->fiche_def=$row['frd_id']; -00107 $this->all[$i]->create_account=$row['fd_create_account']; +00103 $this->all[$i]=new fiche_def($this->cn,$row['fd_id']); +00104 $this->all[$i]->label=$row['fd_label']; +00105 $this->all[$i]->class_base=$row['fd_class_base']; +00106 $this->all[$i]->fiche_def=$row['frd_id']; +00107 $this->all[$i]->create_account=$row['fd_create_account']; 00108 } 00109 } 00119 function HasAttribute($p_attr) { @@ -153,7 +153,7 @@ 00205 $t=new Attribut ($row['ad_id']); 00206 $t->ad_text=$row['ad_text']; 00207 $t->av_text=$row['av_text']; -00208 $this->attribut[$i]=$t; +00208 $this->attribut[$i]=$t; 00209 } 00210 $e=new Fiche_def($this->cn,$this->fiche_def); 00211 $e->GetAttribut(); @@ -208,7 +208,7 @@ 00271 $row=pg_fetch_array($Ret,$i); 00272 $t=new fiche($this->cn,$row['f_id']); 00273 $t->getAttribut(); -00274 $all[$i]=$t; +00274 $all[$i]=$t; 00275 00276 } 00277 return $all; @@ -220,7 +220,7 @@ 00293 where frd_id=".$p_frd_id; 00294 if ( $p_search != "" ) 00295 { -00296 $a=FormatString($p_search); +00296 $a=FormatString($p_search); 00297 $sql="select * from vw_fiche_attr where frd_id=".$p_frd_id. 00298 " and vw_name ~* '$p_search'"; 00299 } @@ -257,7 +257,7 @@ 00340 $row=pg_fetch_array($Ret,$i); 00341 $t=new fiche($this->cn,$row['f_id']); 00342 $t->getAttribut(); -00343 $all[$i]=$t; +00343 $all[$i]=$t; 00344 00345 } 00346 return $all; @@ -302,35 +302,35 @@ 00402 $r='<table>'; 00403 foreach ($array as $attr) 00404 { -00405 $msg=""; -00406 if ( $attr->ad_id == ATTR_DEF_ACCOUNT) +00405 $msg=""; +00406 if ( $attr->ad_id == ATTR_DEF_ACCOUNT) 00407 { -00408 $r.=JS_SEARCH_POSTE; +00408 $r.=JS_SEARCH_POSTE; 00409 $w=new widget("js_search_poste"); 00410 // account created automatically 00411 $sql="select account_auto($p_fiche_def)"; 00412 echo_debug("class_fiche",__LINE__,$sql); 00413 $ret_sql=ExecSql($this->cn,$sql); -00414 $a=pg_fetch_array($ret_sql,0); +00414 $a=pg_fetch_array($ret_sql,0); 00415 if ( $a['account_auto'] == 't' ) -00416 $msg="<TD> <font color=\"red\">Rappel: Poste créé automatiquement !</font></TD> "; +00416 $msg="<TD> <font color=\"red\">Rappel: Poste créé automatiquement !</font></TD> "; 00417 00418 } -00419 elseif ( $attr->ad_id == ATTR_DEF_TVA) +00419 elseif ( $attr->ad_id == ATTR_DEF_TVA) 00420 { -00421 $r.=JS_TVA; +00421 $r.=JS_TVA; 00422 $w=new widget("js_tva"); 00423 } -00424 elseif ( $attr->ad_id == ATTR_DEF_COMPANY ) +00424 elseif ( $attr->ad_id == ATTR_DEF_COMPANY ) 00425 { -00426 $r.=JS_SEARCH_CARD; +00426 $r.=JS_SEARCH_CARD; 00427 $w=new widget("js_search"); 00428 // filter on frd_id -00429 $w->extra=FICHE_TYPE_CLIENT.','.FICHE_TYPE_FOURNISSEUR.','.FICHE_TYPE_ADM_TAX; +00429 $w->extra=FICHE_TYPE_CLIENT.','.FICHE_TYPE_FOURNISSEUR.','.FICHE_TYPE_ADM_TAX; 00430 $w->extra2=0; // jrn = 0 00431 $label=new widget("span"); 00432 $label->name="av_text".$attr->ad_id."_label"; -00433 $msg=$label->IOValue(); +00433 $msg=$label->IOValue(); 00434 } 00435 else 00436 { @@ -356,290 +356,297 @@ 00465 00466 foreach ( $attr as $r) 00467 { -00468 $msg=""; -00469 if ( $r->ad_id == ATTR_DEF_ACCOUNT) +00468 $msg=""; +00469 if ( $p_readonly) 00470 { -00471 $ret.=JS_SEARCH_POSTE; -00472 $w=new widget("js_search_poste"); -00473 // account created automatically -00474 $sql="select account_auto($this->fiche_def)"; -00475 echo_debug("class_fiche",__LINE__,$sql); -00476 $ret_sql=ExecSql($this->cn,$sql); -00477 $a=pg_fetch_array($ret_sql,0); -00478 // if ( $a['account_auto'] == 't' ) -00479 // $msg="<TD> <font color=\"red\">si vide le Poste sera créer automatiquement</font></TD> "; -00480 } -00481 elseif ( $r->ad_id == ATTR_DEF_TVA) -00482 { -00483 $ret.=JS_TVA; -00484 $w=new widget("js_tva"); -00485 } -00486 elseif ( $r->ad_id == ATTR_DEF_COMPANY ) -00487 { -00488 $ret.=JS_SEARCH_CARD; -00489 $w=new widget("js_search"); -00490 // filter on frd_id -00491 $w->extra=FICHE_TYPE_CLIENT.','.FICHE_TYPE_FOURNISSEUR.','.FICHE_TYPE_ADM_TAX; -00492 $w->extra2=0; // jrn = 0 -00493 $label=new widget("span"); -00494 $label->name="av_text".$r->ad_id."_label"; -00495 $msg=$label->IOValue(); -00496 } -00497 else -00498 { -00499 $w=new widget("text"); -00500 } -00501 -00502 $w->label=$r->ad_text; -00503 $w->value=$r->av_text; -00504 $w->name="av_text".$r->ad_id; -00505 $w->readonly=$p_readonly; -00506 $w->table=1; -00507 -00508 $ret.="<TR>".$w->IOValue()."$msg </TR>"; -00509 } -00510 $ret.="</table>"; -00511 return $ret; -00512 } -00519 function Save($p_fiche_def=0) -00520 { -00521 // new card or only a update ? -00522 if ( $this->id == 0 ) -00523 $this->insert($p_fiche_def); -00524 else -00525 $this->update(); -00526 } -00533 function insert($p_fiche_def) -00534 { -00535 $fiche_id=NextSequence($this->cn,'s_fiche'); -00536 $this->id=$fiche_id; -00537 // first we create the card -00538 StartSql($this->cn); -00539 $sql=sprintf("insert into fiche(f_id,fd_id)". -00540 " values (%d,%d)", -00541 $fiche_id,$p_fiche_def); -00542 $Ret=ExecSql($this->cn,$sql); -00543 // parse the $_POST array -00544 foreach ($_POST as $name=>$value ) -00545 { -00546 echo_debug ("class_fiche",__LINE__,"Name = $name value $value") ; -00547 list ($id) = sscanf ($name,"av_text%d"); -00548 if ( $id == null ) continue; -00549 echo_debug("class_fiche",__LINE__,"add $id"); -00550 -00551 // Special traitement -00552 // quickcode -00553 if ( $id == ATTR_DEF_QUICKCODE) -00554 { -00555 echo_debug("Modify ATTR_DEF_QUICKCODE"); -00556 $sql=sprintf("select insert_quick_code(%d,'%s')", -00557 $fiche_id,FormatString($value)); -00558 ExecSql($this->cn,$sql); -00559 continue; -00560 } -00561 // name -00562 if ( $id == ATTR_DEF_NAME ) -00563 { -00564 echo_debug("Modify ATTR_DEF_NAME"); -00565 if ( strlen(trim($value)) == 0 ) -00566 $value="pas de nom"; -00567 -00568 } -00569 // account -00570 if ( $id == ATTR_DEF_ACCOUNT ) -00571 { -00572 echo_debug("Modify ATTR_DEF_ACCOUNT"); -00573 $v=FormatString($value); -00574 if ( isNumber($v) == 1 ) -00575 { -00576 $sql=sprintf("select account_insert(%d,%d)", -00577 $this->id,$v); -00578 $Ret=ExecSql($this->cn,$sql); -00579 } -00580 if ( strlen(trim($v))==0 ) -00581 { -00582 $sql=sprintf("select account_insert(%d,null)", -00583 $this->id); -00584 $Ret=ExecSql($this->cn,$sql); -00585 } -00586 -00587 continue; -00588 } -00589 // TVA -00590 if ( $id == ATTR_DEF_TVA ) -00591 { -00592 echo_debug("Modify ATTR_DEF_TVA"); -00593 // Verify if the rate exists, if not then do not update -00594 if ( strlen(trim($value)) != 0 ) -00595 { -00596 if ( CountSql($this->cn,"select * from tva_rate where tva_id=".$value) == 0) -00597 { -00598 echo_debug("class_fiche",__LINE__,"Tva invalide $value"); -00599 continue; -00600 } -00601 } -00602 } -00603 // The contact has a company attribut -00604 if ( $id == ATTR_DEF_COMPANY ) -00605 { -00606 $exist=CountSql($this->cn,"select f_id from fiche join fiche_def using (fd_id) ". -00607 " join jnt_fic_att_value using (f_id) join attr_value using (jft_id) ". -00608 " where frd_id in (8,9,14) and ad_id=".ATTR_DEF_QUICKCODE. -00609 " and av_text='".FormatString($value)."'"); -00610 if ( $exist == 0 ) -00611 { -00612 $value="Attention : pas de société "; -00613 } -00614 } -00615 // Normal traitement -00616 $value2=FormatString($value); -00617 -00618 $sql=sprintf("select attribut_insert(%d,%d,'%s')", -00619 $fiche_id,$id,$value2); -00620 ExecSql($this->cn,$sql); -00621 } -00622 Commit($this->cn); -00623 return; -00624 -00625 -00626 } -00627 -00628 -00629 -00633 function update() -00634 { -00635 // parse the $_POST array -00636 foreach ($_POST as $name=>$value ) -00637 { -00638 echo_debug ("class_fiche",__LINE__,"Name = $name value $value") ; -00639 list ($id) = sscanf ($name,"av_text%d"); -00640 if ( $id == null ) continue; -00641 echo_debug("class_fiche",__LINE__,"modify $id"); -00642 -00643 // retrieve jft_id to update table attr_value -00644 $sql=" select jft_id from jnt_fic_att_value where ad_id=$id and f_id=$this->id"; -00645 $Ret=ExecSql($this->cn,$sql); -00646 if ( pg_NumRows($Ret) != 1 ) { -00647 echo_error ("class_fiche ".__LINE__." INVALID ID !!! "); -00648 return; -00649 } -00650 $tmp=pg_fetch_array($Ret,0); -00651 $jft_id=$tmp['jft_id']; -00652 -00653 // Special traitement -00654 // quickcode -00655 if ( $id == ATTR_DEF_QUICKCODE) -00656 { -00657 echo_debug("Modify ATTR_DEF_QUICKCODE"); -00658 $sql=sprintf("select update_quick_code(%d,'%s')", -00659 $jft_id,FormatString($value)); -00660 ExecSql($this->cn,$sql); -00661 continue; -00662 } -00663 // name -00664 if ( $id == ATTR_DEF_NAME ) -00665 { -00666 echo_debug("Modify ATTR_DEF_NAME"); -00667 if ( strlen(trim($value)) == 0 ) -00668 continue; -00669 -00670 } -00671 // account -00672 if ( $id == ATTR_DEF_ACCOUNT ) -00673 { -00674 echo_debug("Modify ATTR_DEF_ACCOUNT"); -00675 $v=FormatString($value); -00676 if ( isNumber($v) == 1 ) -00677 { -00678 $sql=sprintf("select account_update(%d,%d)", -00679 $this->id,$v); -00680 $Ret=ExecSql($this->cn,$sql); -00681 } -00682 if ( strlen (trim($v)) == 0 ) -00683 { -00684 $sql=sprintf("select account_update(%d,null)", -00685 $this->id); -00686 $Ret=ExecSql($this->cn,$sql); -00687 continue; +00471 $w=new widget("text"); +00472 } +00473 if ($p_readonly==false) +00474 { +00475 if ( $r->ad_id == ATTR_DEF_ACCOUNT) +00476 { +00477 $ret.=JS_SEARCH_POSTE; +00478 $w=new widget("js_search_poste"); +00479 // account created automatically +00480 $sql="select account_auto($this->fiche_def)"; +00481 echo_debug("class_fiche",__LINE__,$sql); +00482 $ret_sql=ExecSql($this->cn,$sql); +00483 $a=pg_fetch_array($ret_sql,0); +00484 if ( $a['account_auto'] == 't' ) +00485 $msg="<TD> <font color=\"red\">si vide le Poste sera créer automatiquement</font></TD> "; +00486 } +00487 elseif ( $r->ad_id == ATTR_DEF_TVA) +00488 { +00489 $ret.=JS_TVA; +00490 $w=new widget("js_tva"); +00491 } +00492 elseif ( $r->ad_id == ATTR_DEF_COMPANY ) +00493 { +00494 $ret.=JS_SEARCH_CARD; +00495 $w=new widget("js_search"); +00496 // filter on frd_id +00497 $w->extra=FICHE_TYPE_CLIENT.','.FICHE_TYPE_FOURNISSEUR.','.FICHE_TYPE_ADM_TAX; +00498 $w->extra2=0; // jrn = 0 +00499 $label=new widget("span"); +00500 $label->name="av_text".$r->ad_id."_label"; +00501 $msg=$label->IOValue(); +00502 } +00503 +00504 else +00505 { +00506 $w=new widget("text"); +00507 } +00508 } +00509 $w->label=$r->ad_text; +00510 $w->value=$r->av_text; +00511 $w->name="av_text".$r->ad_id; +00512 $w->readonly=$p_readonly; +00513 $w->table=1; +00514 +00515 $ret.="<TR>".$w->IOValue()."$msg </TR>"; +00516 } +00517 $ret.="</table>"; +00518 return $ret; +00519 } +00526 function Save($p_fiche_def=0) +00527 { +00528 // new card or only a update ? +00529 if ( $this->id == 0 ) +00530 $this->insert($p_fiche_def); +00531 else +00532 $this->update(); +00533 } +00540 function insert($p_fiche_def) +00541 { +00542 $fiche_id=NextSequence($this->cn,'s_fiche'); +00543 $this->id=$fiche_id; +00544 // first we create the card +00545 StartSql($this->cn); +00546 $sql=sprintf("insert into fiche(f_id,fd_id)". +00547 " values (%d,%d)", +00548 $fiche_id,$p_fiche_def); +00549 $Ret=ExecSql($this->cn,$sql); +00550 // parse the $_POST array +00551 foreach ($_POST as $name=>$value ) +00552 { +00553 echo_debug ("class_fiche",__LINE__,"Name = $name value $value") ; +00554 list ($id) = sscanf ($name,"av_text%d"); +00555 if ( $id == null ) continue; +00556 echo_debug("class_fiche",__LINE__,"add $id"); +00557 +00558 // Special traitement +00559 // quickcode +00560 if ( $id == ATTR_DEF_QUICKCODE) +00561 { +00562 echo_debug("Modify ATTR_DEF_QUICKCODE"); +00563 $sql=sprintf("select insert_quick_code(%d,'%s')", +00564 $fiche_id,FormatString($value)); +00565 ExecSql($this->cn,$sql); +00566 continue; +00567 } +00568 // name +00569 if ( $id == ATTR_DEF_NAME ) +00570 { +00571 echo_debug("Modify ATTR_DEF_NAME"); +00572 if ( strlen(trim($value)) == 0 ) +00573 $value="pas de nom"; +00574 +00575 } +00576 // account +00577 if ( $id == ATTR_DEF_ACCOUNT ) +00578 { +00579 echo_debug("Modify ATTR_DEF_ACCOUNT"); +00580 $v=FormatString($value); +00581 if ( isNumber($v) == 1 ) +00582 { +00583 $sql=sprintf("select account_insert(%d,%d)", +00584 $this->id,$v); +00585 $Ret=ExecSql($this->cn,$sql); +00586 } +00587 if ( strlen(trim($v))==0 ) +00588 { +00589 $sql=sprintf("select account_insert(%d,null)", +00590 $this->id); +00591 $Ret=ExecSql($this->cn,$sql); +00592 } +00593 +00594 continue; +00595 } +00596 // TVA +00597 if ( $id == ATTR_DEF_TVA ) +00598 { +00599 echo_debug("Modify ATTR_DEF_TVA"); +00600 // Verify if the rate exists, if not then do not update +00601 if ( strlen(trim($value)) != 0 ) +00602 { +00603 if ( CountSql($this->cn,"select * from tva_rate where tva_id=".$value) == 0) +00604 { +00605 echo_debug("class_fiche",__LINE__,"Tva invalide $value"); +00606 continue; +00607 } +00608 } +00609 } +00610 // The contact has a company attribut +00611 if ( $id == ATTR_DEF_COMPANY ) +00612 { +00613 $exist=CountSql($this->cn,"select f_id from fiche join fiche_def using (fd_id) ". +00614 " join jnt_fic_att_value using (f_id) join attr_value using (jft_id) ". +00615 " where frd_id in (8,9,14) and ad_id=".ATTR_DEF_QUICKCODE. +00616 " and av_text='".FormatString($value)."'"); +00617 if ( $exist == 0 ) +00618 { +00619 $value="Attention : pas de société "; +00620 } +00621 } +00622 // Normal traitement +00623 $value2=FormatString($value); +00624 +00625 $sql=sprintf("select attribut_insert(%d,%d,'%s')", +00626 $fiche_id,$id,$value2); +00627 ExecSql($this->cn,$sql); +00628 } +00629 Commit($this->cn); +00630 return; +00631 +00632 +00633 } +00634 +00635 +00636 +00640 function update() +00641 { +00642 // parse the $_POST array +00643 foreach ($_POST as $name=>$value ) +00644 { +00645 echo_debug ("class_fiche",__LINE__,"Name = $name value $value") ; +00646 list ($id) = sscanf ($name,"av_text%d"); +00647 if ( $id == null ) continue; +00648 echo_debug("class_fiche",__LINE__,"modify $id"); +00649 +00650 // retrieve jft_id to update table attr_value +00651 $sql=" select jft_id from jnt_fic_att_value where ad_id=$id and f_id=$this->id"; +00652 $Ret=ExecSql($this->cn,$sql); +00653 if ( pg_NumRows($Ret) != 1 ) { +00654 echo_error ("class_fiche ".__LINE__." INVALID ID !!! "); +00655 return; +00656 } +00657 $tmp=pg_fetch_array($Ret,0); +00658 $jft_id=$tmp['jft_id']; +00659 +00660 // Special traitement +00661 // quickcode +00662 if ( $id == ATTR_DEF_QUICKCODE) +00663 { +00664 echo_debug("Modify ATTR_DEF_QUICKCODE"); +00665 $sql=sprintf("select update_quick_code(%d,'%s')", +00666 $jft_id,FormatString($value)); +00667 ExecSql($this->cn,$sql); +00668 continue; +00669 } +00670 // name +00671 if ( $id == ATTR_DEF_NAME ) +00672 { +00673 echo_debug("Modify ATTR_DEF_NAME"); +00674 if ( strlen(trim($value)) == 0 ) +00675 continue; +00676 +00677 } +00678 // account +00679 if ( $id == ATTR_DEF_ACCOUNT ) +00680 { +00681 echo_debug("Modify ATTR_DEF_ACCOUNT"); +00682 $v=FormatString($value); +00683 if ( isNumber($v) == 1 ) +00684 { +00685 $sql=sprintf("select account_update(%d,%d)", +00686 $this->id,$v); +00687 $Ret=ExecSql($this->cn,$sql); 00688 } -00689 } -00690 // TVA -00691 if ( $id == ATTR_DEF_TVA ) -00692 { -00693 echo_debug("Modify ATTR_DEF_TVA"); -00694 // Verify if the rate exists, if not then do not update -00695 if ( strlen(trim($value)) != 0 ) -00696 { -00697 if ( CountSql($this->cn,"select * from tva_rate where tva_id=".$value) == 0) -00698 { -00699 echo_debug("class_fiche",__LINE__,"Tva invalide $value"); -00700 continue; -00701 } -00702 } -00703 } -00704 if ( $id == ATTR_DEF_COMPANY ) -00705 { -00706 $exist=CountSql($this->cn,"select f_id from fiche join fiche_def using (fd_id) ". -00707 " join jnt_fic_att_value using (f_id) join attr_value using (jft_id) ". -00708 " where frd_id in (8,9,14) and ad_id=".ATTR_DEF_QUICKCODE. -00709 " and av_text='".FormatString($value)."'"); -00710 -00711 -00712 if ( $exist == 0 ) -00713 { -00714 $value="Attention : pas de société "; -00715 } -00716 } -00717 -00718 // Normal traitement -00719 $value2=FormatString($value); -00720 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", -00721 $value2,$jft_id); -00722 ExecSql($this->cn,$sql); -00723 } -00724 return; -00725 -00726 } -00729 function remove() -00730 { -00731 if ( $this->id==0 ) return; -00732 // verify if that card has not been used is a ledger -00733 $sql="select fiche_used(".$this->id.") as result"; -00734 $Res=ExecSql($this->cn,$sql); -00735 -00736 // fetch the result -00737 list($result)=pg_fetch_row($Res,0); -00738 -00739 if ( $result == 0 ) -00740 { -00741 $sql="select fiche_delete (".$this->id.")"; -00742 $Res=ExecSql($this->cn,$sql); -00743 return 0; -00744 } -00745 return 1; -00746 } -00749 function getName() -00750 { -00751 $sql="select av_text from jnt_fic_att_value join attr_value -00752 using (jft_id) where ad_id=1 and f_id=".$this->id; -00753 $Res=ExecSql($this->cn,$sql); -00754 $r=pg_fetch_all($Res); -00755 if ( sizeof($r) == 0 ) -00756 return 1; -00757 return $r[0]['av_text']; -00758 } -00761 function Get() -00762 { -00763 echo_debug('class_client',__LINE__,'Get'); -00764 fiche::getAttribut(); +00689 if ( strlen (trim($v)) == 0 ) +00690 { +00691 $sql=sprintf("select account_update(%d,null)", +00692 $this->id); +00693 $Ret=ExecSql($this->cn,$sql); +00694 continue; +00695 } +00696 } +00697 // TVA +00698 if ( $id == ATTR_DEF_TVA ) +00699 { +00700 echo_debug("Modify ATTR_DEF_TVA"); +00701 // Verify if the rate exists, if not then do not update +00702 if ( strlen(trim($value)) != 0 ) +00703 { +00704 if ( CountSql($this->cn,"select * from tva_rate where tva_id=".$value) == 0) +00705 { +00706 echo_debug("class_fiche",__LINE__,"Tva invalide $value"); +00707 continue; +00708 } +00709 } +00710 } +00711 if ( $id == ATTR_DEF_COMPANY ) +00712 { +00713 $exist=CountSql($this->cn,"select f_id from fiche join fiche_def using (fd_id) ". +00714 " join jnt_fic_att_value using (f_id) join attr_value using (jft_id) ". +00715 " where frd_id in (8,9,14) and ad_id=".ATTR_DEF_QUICKCODE. +00716 " and av_text='".FormatString($value)."'"); +00717 +00718 +00719 if ( $exist == 0 ) +00720 { +00721 $value="Attention : pas de société "; +00722 } +00723 } +00724 +00725 // Normal traitement +00726 $value2=FormatString($value); +00727 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", +00728 $value2,$jft_id); +00729 ExecSql($this->cn,$sql); +00730 } +00731 return; +00732 +00733 } +00736 function remove() +00737 { +00738 if ( $this->id==0 ) return; +00739 // verify if that card has not been used is a ledger +00740 $sql="select fiche_used(".$this->id.") as result"; +00741 $Res=ExecSql($this->cn,$sql); +00742 +00743 // fetch the result +00744 list($result)=pg_fetch_row($Res,0); +00745 +00746 if ( $result == 0 ) +00747 { +00748 $sql="select fiche_delete (".$this->id.")"; +00749 $Res=ExecSql($this->cn,$sql); +00750 return 0; +00751 } +00752 return 1; +00753 } +00756 function getName() +00757 { +00758 $sql="select av_text from jnt_fic_att_value join attr_value +00759 using (jft_id) where ad_id=1 and f_id=".$this->id; +00760 $Res=ExecSql($this->cn,$sql); +00761 $r=pg_fetch_all($Res); +00762 if ( sizeof($r) == 0 ) +00763 return 1; +00764 return $r[0]['av_text']; 00765 } -00771 function GetAll($p_offset=-1,$p_search="") -00772 { -00773 return fiche::GetByDef($this->fiche_def_ref,$p_offset,$p_search); -00774 } -00775 } -00776 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00768 function Get() +00769 { +00770 echo_debug('class_client',__LINE__,'Get'); +00771 fiche::getAttribut(); +00772 } +00778 function GetAll($p_offset=-1,$p_search="") +00779 { +00780 return fiche::GetByDef($this->fiche_def_ref,$p_offset,$p_search); +00781 } +00782 } +00783 ?> +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__fiche_8php.html b/doc/developper/html/class__fiche_8php.html index 94e7e4f12..4e6793736 100644 --- a/doc/developper/html/class__fiche_8php.html +++ b/doc/developper/html/class__fiche_8php.html @@ -26,7 +26,7 @@ define Class fiche and fiche def, those class are using class attribut

      -Definition in file class_fiche.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_fiche.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__fiche__def_8php-source.html b/doc/developper/html/class__fiche__def_8php-source.html index 53318eeda..36c118363 100644 --- a/doc/developper/html/class__fiche__def_8php-source.html +++ b/doc/developper/html/class__fiche__def_8php-source.html @@ -53,7 +53,7 @@ 00060 { 00061 $o=new fiche_def_ref($this->db); 00062 -00063 foreach ( $this->attribut as $value) +00063 foreach ( $this->attribut as $value) 00064 { 00065 $o->$value=$row[$value]; 00066 } @@ -65,7 +65,7 @@ 00078 function Display() 00079 { 00080 $r=""; -00081 foreach ( $this->attribut as $value) +00081 foreach ( $this->attribut as $value) 00082 { 00083 $r.="<TD>".$this->$value.'</TD>'; 00084 } @@ -103,7 +103,7 @@ 00141 00142 } 00143 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__fiche__def_8php.html b/doc/developper/html/class__fiche__def_8php.html index 201aeac9d..9066507c1 100644 --- a/doc/developper/html/class__fiche__def_8php.html +++ b/doc/developper/html/class__fiche__def_8php.html @@ -23,7 +23,7 @@

      -Definition in file class_fiche_def.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_fiche_def.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__jrn_8php-source.html b/doc/developper/html/class__jrn_8php-source.html index 0b4f717de..e34713e0a 100644 --- a/doc/developper/html/class__jrn_8php-source.html +++ b/doc/developper/html/class__jrn_8php-source.html @@ -39,8 +39,8 @@ 00033 } 00034 function GetName() { 00035 if ( $this->id==0 ) { -00036 $this->name=" Grand Livre "; -00037 return $this->name; +00036 $this->name=" Grand Livre "; +00037 return $this->name; 00038 } 00039 00040 $Res=ExecSql($this->db,"select jrn_def_name from ". @@ -49,7 +49,7 @@ 00043 $Max=pg_NumRows($Res); 00044 if ($Max==0) return null; 00045 $ret=pg_fetch_array($Res,0); -00046 $this->name=$ret['jrn_def_name']; +00046 $this->name=$ret['jrn_def_name']; 00047 return $ret['jrn_def_name']; 00048 } 00049 @@ -211,8 +211,8 @@ 00220 } 00221 echo_debug('class_jrn.php',__LINE__,"Total debit $tot_deb,credit $tot_cred"); 00222 $this->row=$array; -00223 $a=array($array,$tot_deb,$tot_cred); -00224 return $a; +00223 $a=array($array,$tot_deb,$tot_cred); +00224 return $a; 00225 } 00243 function GetRowSimple($p_from,$p_to,$cent='off',$p_limit=-1,$p_offset=-1) 00244 { @@ -294,10 +294,10 @@ 00326 $Res=pg_fetch_all($r); 00327 echo_debug('class_jrn',__LINE__,$Res); 00328 if ( sizeof($Res) == 0 ) return 1; -00329 return $Res[0]['value']; +00329 return $Res[0]['value']; 00330 } 00331 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__jrn_8php.html b/doc/developper/html/class__jrn_8php.html index 538ff3e32..40238d490 100644 --- a/doc/developper/html/class__jrn_8php.html +++ b/doc/developper/html/class__jrn_8php.html @@ -16,7 +16,7 @@  Class for jrn. More...
      -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__own_8php-source.html b/doc/developper/html/class__own_8php-source.html index b4da77145..27066eeb1 100644 --- a/doc/developper/html/class__own_8php-source.html +++ b/doc/developper/html/class__own_8php-source.html @@ -53,12 +53,15 @@ 00065 $this->UpdateRow('MY_STREET'); 00066 $this->UpdateRow('MY_NUMBER'); 00067 $this->UpdateRow('MY_CP'); -00068 $this->UpdateRow('MY_COMMUNE'); -00069 -00070 } -00071 -00072 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00068 $this->UpdateRow('MY_TEL'); +00069 $this->UpdateRow('MY_PAYS'); +00070 $this->UpdateRow('MY_COMMUNE'); +00071 $this->UpdateRow('MY_FAX'); +00072 +00073 } +00074 +00075 } +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__own_8php.html b/doc/developper/html/class__own_8php.html index 315471b95..1ac6da040 100644 --- a/doc/developper/html/class__own_8php.html +++ b/doc/developper/html/class__own_8php.html @@ -23,7 +23,7 @@ Class to manage the company parameter (address, name...).

      -Definition in file class_own.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_own.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__parm__code_8php-source.html b/doc/developper/html/class__parm__code_8php-source.html index c5fa5f754..2af530e45 100644 --- a/doc/developper/html/class__parm__code_8php-source.html +++ b/doc/developper/html/class__parm__code_8php-source.html @@ -114,7 +114,7 @@ 00152 } 00153 00154 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__parm__code_8php.html b/doc/developper/html/class__parm__code_8php.html index 47eee41da..1bdb70e37 100644 --- a/doc/developper/html/class__parm__code_8php.html +++ b/doc/developper/html/class__parm__code_8php.html @@ -23,7 +23,7 @@ Manage the table parm_code which c

      -Definition in file class_parm_code.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_parm_code.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__poste_8php-source.html b/doc/developper/html/class__poste_8php-source.html index e9368ec07..63121bafa 100644 --- a/doc/developper/html/class__poste_8php-source.html +++ b/doc/developper/html/class__poste_8php-source.html @@ -28,95 +28,109 @@ 00019 /* $Revision$ */ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00028 class poste { -00029 var $db; -00030 var $id; -00031 var $row; -00032 function poste($p_cn,$p_id) { -00033 $this->db=$p_cn; -00034 $this->id=$p_id; -00035 } -00036 -00046 function GetRow($p_from,$p_to) -00047 { -00048 if ( $p_from == $p_to ) -00049 $periode=" jr_tech_per = $p_from "; -00050 else -00051 $periode = "(jr_tech_per >= $p_from and jr_tech_per <= $p_to) "; -00052 -00053 $Res=ExecSql($this->db,"select to_char(j_date,'DD.MM.YYYY') as j_date,". -00054 "case when j_debit='t' then j_montant else 0 end as deb_montant,". -00055 "case when j_debit='f' then j_montant else 0 end as cred_montant,". -00056 " jr_comment as description,jrn_def_name as jrn_name,". -00057 "j_debit, jr_internal ". -00058 " from jrnx left join jrn_def on jrn_def_id=j_jrn_def ". -00059 " left join jrn on jr_grpt_id=j_grpt". -00060 " where j_poste=".$this->id." and ".$periode. -00061 " order by j_date::date"); -00062 $array=array(); -00063 $tot_cred=0.0; -00064 $tot_deb=0.0; -00065 $Max=pg_NumRows($Res); -00066 if ( $Max == 0 ) return null; -00067 for ($i=0;$i<$Max;$i++) { -00068 $array[]=pg_fetch_array($Res,$i); -00069 if ($array[$i]['j_debit']=='t') { -00070 $tot_deb+=$array[$i]['deb_montant'] ; -00071 } else { -00072 $tot_cred+=$array[$i]['cred_montant'] ; -00073 } -00074 } -00075 $this->row=$array; -00076 return array($array,$tot_deb,$tot_cred); -00077 } -00080 function GetName() { -00081 $ret=pg_exec($this->db, -00082 "select pcm_lib from tmp_pcmn where -00083 pcm_val=".$this->id); -00084 if ( pg_NumRows($ret) != 0) { -00085 $r=pg_fetch_array($ret); -00086 $this->name=$r['pcm_lib']; -00087 } else { -00088 $this->name="Poste inconnu"; -00089 } -00090 return $this->name; -00091 } -00099 function GetSolde($p_cond="") { -00100 $Res=ExecSql($this->db,"select sum(deb) as sum_deb, sum(cred) as sum_cred from -00101 ( select j_poste, -00102 case when j_debit='t' then j_montant else 0 end as deb, -00103 case when j_debit='f' then j_montant else 0 end as cred -00104 from jrnx join tmp_pcmn on j_poste=pcm_val -00105 where -00106 j_poste like ('$this->id'::text) and -00107 $p_cond -00108 ) as m "); -00109 $Max=pg_NumRows($Res); -00110 if ($Max==0) return 0; -00111 $r=pg_fetch_array($Res,0); -00112 -00113 return abs($r['sum_deb']-$r['sum_cred']); -00114 } -00121 function GetSoldeDetail($p_cond="") { -00122 if ( $p_cond != "") $p_cond=" and ".$p_cond; -00123 $Res=ExecSql($this->db,"select sum(deb) as sum_deb, sum(cred) as sum_cred from -00124 ( select j_poste, -00125 case when j_debit='t' then j_montant else 0 end as deb, -00126 case when j_debit='f' then j_montant else 0 end as cred -00127 from jrnx join tmp_pcmn on j_poste=pcm_val -00128 where -00129 j_poste like ('$this->id'::text) -00130 $p_cond -00131 ) as m "); -00132 $Max=pg_NumRows($Res); -00133 if ($Max==0) return 0; -00134 $r=pg_fetch_array($Res,0); -00135 -00136 return array('debit'=>$r['sum_deb'], -00137 'credit'=>$r['sum_cred'], -00138 'solde'=>abs($r['sum_deb']-$r['sum_cred'])); -00139 } -00140 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00029 var $db; +00030 var $id; +00031 var $label; +00032 var $parent; +00033 var $row; +00034 function poste($p_cn,$p_id) { +00035 $this->db=$p_cn; +00036 $this->id=$p_id; +00037 } +00038 +00048 function GetRow($p_from,$p_to) +00049 { +00050 if ( $p_from == $p_to ) +00051 $periode=" jr_tech_per = $p_from "; +00052 else +00053 $periode = "(jr_tech_per >= $p_from and jr_tech_per <= $p_to) "; +00054 +00055 $Res=ExecSql($this->db,"select to_char(j_date,'DD.MM.YYYY') as j_date,". +00056 "case when j_debit='t' then j_montant else 0 end as deb_montant,". +00057 "case when j_debit='f' then j_montant else 0 end as cred_montant,". +00058 " jr_comment as description,jrn_def_name as jrn_name,". +00059 "j_debit, jr_internal ". +00060 " from jrnx left join jrn_def on jrn_def_id=j_jrn_def ". +00061 " left join jrn on jr_grpt_id=j_grpt". +00062 " where j_poste=".$this->id." and ".$periode. +00063 " order by j_date::date"); +00064 $array=array(); +00065 $tot_cred=0.0; +00066 $tot_deb=0.0; +00067 $Max=pg_NumRows($Res); +00068 if ( $Max == 0 ) return null; +00069 for ($i=0;$i<$Max;$i++) { +00070 $array[]=pg_fetch_array($Res,$i); +00071 if ($array[$i]['j_debit']=='t') { +00072 $tot_deb+=$array[$i]['deb_montant'] ; +00073 } else { +00074 $tot_cred+=$array[$i]['cred_montant'] ; +00075 } +00076 } +00077 $this->row=$array; +00078 return array($array,$tot_deb,$tot_cred); +00079 } +00084 function GetName() { +00085 $ret=pg_exec($this->db, +00086 "select pcm_lib from tmp_pcmn where +00087 pcm_val=".$this->id); +00088 if ( pg_NumRows($ret) != 0) { +00089 $r=pg_fetch_array($ret); +00090 $this->name=$r['pcm_lib']; +00091 } else { +00092 $this->name="Poste inconnu"; +00093 } +00094 return $this->name; +00095 } +00100 function get() +00101 { +00102 $ret=ExecSql($this->db,"select pcm_lib,pcm_val_parent from +00103 tmp_pcmn where pcm_val=".$this->id); +00104 $r=pg_fetch_all($ret); +00105 +00106 if ( ! $r ) return false; +00107 $this->label=$r[0]['pcm_lib']; +00108 $this->parent=$r[0]['pcm_val_parent']; +00109 return true; +00110 } +00111 +00119 function GetSolde($p_cond="") { +00120 $Res=ExecSql($this->db,"select sum(deb) as sum_deb, sum(cred) as sum_cred from +00121 ( select j_poste, +00122 case when j_debit='t' then j_montant else 0 end as deb, +00123 case when j_debit='f' then j_montant else 0 end as cred +00124 from jrnx join tmp_pcmn on j_poste=pcm_val +00125 where +00126 j_poste like ('$this->id'::text) and +00127 $p_cond +00128 ) as m "); +00129 $Max=pg_NumRows($Res); +00130 if ($Max==0) return 0; +00131 $r=pg_fetch_array($Res,0); +00132 +00133 return abs($r['sum_deb']-$r['sum_cred']); +00134 } +00141 function GetSoldeDetail($p_cond="") { +00142 if ( $p_cond != "") $p_cond=" and ".$p_cond; +00143 $Res=ExecSql($this->db,"select sum(deb) as sum_deb, sum(cred) as sum_cred from +00144 ( select j_poste, +00145 case when j_debit='t' then j_montant else 0 end as deb, +00146 case when j_debit='f' then j_montant else 0 end as cred +00147 from jrnx join tmp_pcmn on j_poste=pcm_val +00148 where +00149 j_poste like ('$this->id'::text) +00150 $p_cond +00151 ) as m "); +00152 $Max=pg_NumRows($Res); +00153 if ($Max==0) return 0; +00154 $r=pg_fetch_array($Res,0); +00155 +00156 return array('debit'=>$r['sum_deb'], +00157 'credit'=>$r['sum_cred'], +00158 'solde'=>abs($r['sum_deb']-$r['sum_cred'])); +00159 } +00160 } +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__poste_8php.html b/doc/developper/html/class__poste_8php.html index 679d53d85..25f554ffa 100644 --- a/doc/developper/html/class__poste_8php.html +++ b/doc/developper/html/class__poste_8php.html @@ -23,7 +23,7 @@ Manage the account.

      -Definition in file class_poste.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_poste.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__rapport_8php-source.html b/doc/developper/html/class__rapport_8php-source.html index 8f25b1288..83b77ad0a 100644 --- a/doc/developper/html/class__rapport_8php-source.html +++ b/doc/developper/html/class__rapport_8php-source.html @@ -34,14 +34,14 @@ 00033 function rapport($p_cn,$p_id) { 00034 $this->db=$p_cn; 00035 $this->id=$p_id; -00036 $this->name='UNDEF'; +00036 $this->name='UNDEF'; 00037 } 00040 function GetName() { 00041 $ret=execSql($this->db,"select fr_label from formdef where fr_id=".$this->id); -00042 if (pg_NumRows($ret) == 0) return $this->name; -00043 $a=pg_fetch_array($ret,0); -00044 $this->name=$a['fr_label']; -00045 return $this->name; +00042 if (pg_NumRows($ret) == 0) return $this->name; +00043 $a=pg_fetch_array($ret,0); +00044 $this->name=$a['fr_label']; +00045 return $this->name; 00046 } 00053 function GetRow($p_start,$p_end) { 00054 @@ -72,7 +72,7 @@ 00079 } 00080 } 00081 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__rapport_8php.html b/doc/developper/html/class__rapport_8php.html index 46118dde9..8b2d46161 100644 --- a/doc/developper/html/class__rapport_8php.html +++ b/doc/developper/html/class__rapport_8php.html @@ -23,7 +23,7 @@ Create, view, modify and parse report.

      -Definition in file class_rapport.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_rapport.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__user_8php-source.html b/doc/developper/html/class__user_8php-source.html index 14e8dcd78..3d1c4f943 100644 --- a/doc/developper/html/class__user_8php-source.html +++ b/doc/developper/html/class__user_8php-source.html @@ -50,7 +50,7 @@ 00051 $this->admin=( isset($_SESSION['use_admin']) )?$_SESSION['use_admin']:0; 00052 00053 if ( isset($_SESSION['use_name']) ) -00054 $this->name=$_SESSION['use_name']; +00054 $this->name=$_SESSION['use_name']; 00055 if ( isset($_SESSION['use_first_name']) ) 00056 $this->first_name=$_SESSION['use_first_name']; 00057 } @@ -70,7 +70,7 @@ 00071 if (($Max=pg_NumRows($Res)) == 0 ) return -1; 00072 $row=pg_fetch_array($Res,0); 00073 $this->first_name=$row['use_first_name']; -00074 $this->name=$row['use_name']; +00074 $this->name=$row['use_name']; 00075 $this->active=$row['use_active']; 00076 $this->login=$row['use_login']; 00077 $this->admin=$row['use_admin']; @@ -101,7 +101,7 @@ 00107 $_SESSION['use_first_name']=$r['use_first_name']; 00108 00109 $this->admin=$_SESSION['use_admin']; -00110 $this->name=$_SESSION['use_name']; +00110 $this->name=$_SESSION['use_name']; 00111 $this->first_name=$_SESSION['use_first_name']; 00112 $this->GetGlobalPref(); 00113 @@ -220,7 +220,7 @@ 00277 } 00278 // save array into g_ variable 00279 $array_pref=array ('g_theme'=>'THEME','g_pagesize'=>'PAGESIZE'); -00280 foreach ($array_pref as $name=>$parameter ) { +00280 foreach ($array_pref as $name=>$parameter ) { 00281 if ( ! isset ($line[$parameter]) ) { 00282 echo_debug("Missing pref : ".$parameter); 00283 $this->insert_default_global_pref($parameter); @@ -241,14 +241,14 @@ 00306 $Sql="insert into user_global_pref(user_id,parameter_type,parameter_value) 00307 values ('%s','%s','%s')"; 00308 if ( $p_type == "" ) { -00309 foreach ( $default_parameter as $name=>$value) { -00310 $Insert=sprintf($Sql,$this->id,$name,$value); +00309 foreach ( $default_parameter as $name=>$value) { +00310 $Insert=sprintf($Sql,$this->id,$name,$value); 00311 ExecSql($cn,$Insert); 00312 } 00313 } 00314 else { 00315 $value=($p_value=="")?$default_parameter[$p_type]:$p_value; -00316 $Insert=sprintf($Sql,$this->id,$p_type,$value); +00316 $Insert=sprintf($Sql,$this->id,$p_type,$value); 00317 ExecSql($cn,$Insert); 00318 } 00319 @@ -263,13 +263,21 @@ 00336 where parameter_type='%s' and 00337 user_id='%s'"; 00338 $value=($p_value=="")?$default_parameter[$p_type]:$p_value; -00339 $Update=sprintf($Sql,$value,$p_type,$this->id); +00339 $Update=sprintf($Sql,$value,$p_type,$this->id); 00340 ExecSql($cn,$Update); 00341 00342 }//end function -00343 } -00344 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00346 function getExercice() +00347 { +00348 $sql="select p_exercice from parm_periode where p_id=".$this->GetPeriode(); +00349 $Ret=ExecSql($this->db,$sql); +00350 $r=pg_fetch_array($Ret,0); +00351 return $r['p_exercice']; +00352 } +00353 +00354 } +00355 ?> +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__user_8php.html b/doc/developper/html/class__user_8php.html index dd5b779bb..32786076d 100644 --- a/doc/developper/html/class__user_8php.html +++ b/doc/developper/html/class__user_8php.html @@ -23,7 +23,7 @@ Data & function about connected users.

      -Definition in file class_user.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_user.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__widget_8php-source.html b/doc/developper/html/class__widget_8php-source.html index df8935296..8383df7a9 100644 --- a/doc/developper/html/class__widget_8php-source.html +++ b/doc/developper/html/class__widget_8php-source.html @@ -29,337 +29,393 @@ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00021 00032 class widget { -00047 var $type; -00048 var $name; -00049 var $value; -00050 var $readonly; -00051 var $size; -00052 var $selected; -00053 var $table; -00054 var $label; -00055 var $disabled; -00056 var $extra; -00057 var $extra2; -00058 var $tabindex; -00059 function widget($p_type="") { -00060 $this->type=$p_type; -00061 $this->readonly=false; -00062 $this->size=20; -00063 $this->width=50; -00064 $this->heigh=20; -00065 $this->value=""; -00066 $this->selected=""; -00067 $this->table=0; -00068 $this->label=""; -00069 $this->disabled=false; -00070 $this->tabindex=32767; -00071 } -00072 function SetReadOnly($p_read) { -00073 $this->readonly=$p_read; -00074 } -00084 function IOValue($p_name=null,$p_value=null,$p_label="") { -00085 -00086 if ( $p_name != null) -00087 $this->name=$p_name; -00088 $this->value=($p_value===null)?$this->value:$p_value; -00089 $this->label=($p_label == "")?$this->label:$p_label; -00090 -00091 // Input text type -00092 $disabled = $this->disabled ? "DISABLED" : ""; -00093 if (strtoupper($this->type)=="TEXT") { -00094 if ( $this->readonly==false) { -00095 $r="<INPUT TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" TABINDEX=\"$this->tabindex\" SIZE=\"$this->size\" ".$disabled.">";} else { -00096 $r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s">', $this->value,$this->name,$this->value); -00097 } -00098 -00099 if ($this->table==1) { -00100 if ( $this->label != "") { -00101 $r="<TD>".$this->label."</TD><TD>".$r."</TD>"; -00102 }else { -00103 $r="<TD>".$r."</TD>"; -00104 } -00105 } -00106 return $r; -00107 } -00108 // Hidden field -00109 if (strtoupper($this->type)=="HIDDEN") { -00110 $r='<INPUT TYPE="HIDDEN" name="'.$this->name.'" value="'.$this->value.'">'; -00111 if ( $this->readonly==true) return ""; +00053 var $type; +00054 var $name; +00055 var $value; +00056 var $readonly; +00057 var $size; +00058 var $selected; +00059 var $table; +00060 var $label; +00061 var $disabled; +00062 var $extra; +00063 var $extra2; +00064 var $tabindex; +00065 function widget($p_type="") { +00066 $this->type=$p_type; +00067 $this->readonly=false; +00068 $this->size=20; +00069 $this->width=50; +00070 $this->heigh=20; +00071 $this->value=""; +00072 $this->selected=""; +00073 $this->table=0; +00074 $this->label=""; +00075 $this->disabled=false; +00076 $this->tabindex=32767; +00077 } +00078 function SetReadOnly($p_read) { +00079 $this->readonly=$p_read; +00080 } +00090 function IOValue($p_name=null,$p_value=null,$p_label="") { +00091 +00092 if ( $p_name != null) +00093 $this->name=$p_name; +00094 $this->value=($p_value===null)?$this->value:$p_value; +00095 $this->label=($p_label == "")?$this->label:$p_label; +00096 +00097 // Input text type +00098 $disabled = $this->disabled ? "DISABLED" : ""; +00099 if (strtoupper($this->type)=="TEXT") { +00100 if ( $this->readonly==false) { +00101 $r="<INPUT TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" TABINDEX=\"$this->tabindex\" SIZE=\"$this->size\" ".$disabled.">";} else { +00102 $r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s">', $this->value,$this->name,$this->value); +00103 } +00104 +00105 if ($this->table==1) { +00106 if ( $this->label != "") { +00107 $r="<TD style=\"border:solid 1px blue;\">".$this->label."</TD><TD>".$r."</TD>"; +00108 }else { +00109 $r="<TD>".$r."</TD>"; +00110 } +00111 } 00112 return $r; 00113 } -00114 // Select value -00115 if ( strtoupper($this->type) == "SELECT") { -00116 if ($this->readonly==false ){ -00117 //echo "<b>Selected <b>".$this->selected; -00118 $r="<SELECT NAME=\"$this->name\">"; -00119 for ( $i=0;$i<sizeof($this->value);$i++) { -00120 $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":""; -00121 $r.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>'; -00122 $r.=$this->value[$i]['label']; -00123 } -00124 $r.="</SELECT>"; -00125 } else { -00126 echo_debug('class_widget.php',__LINE__,"this->selected = ".$this->selected); -00127 for ( $i=0;$i<sizeof($this->value);$i++) { -00128 echo_debug('class_widget.php',__LINE__,"check for ".$this->value[$i]['value']); -00129 if ($this->selected==$this->value[$i]['value'] ) { -00130 $r=$this->value[$i]['label']; -00131 -00132 } -00133 } -00134 } -00135 if ( $this->table==1) { -00136 $r="<TD> $r </TD>"; -00137 if ( $this->label != "") $r="<TD> $this->label</TD>".$r; -00138 } -00139 return $r; -00140 } -00141 // Password -00142 if (strtoupper($this->type)=="PASSWORD") { -00143 if ( $this->readonly==true) return ""; -00144 $r='<input type="password" name="'.$this->name; -00145 $r.='">'; -00146 if ($this->table==1) { -00147 $r="<TD> $this->label </TD><TD> $r </TD>"; -00148 } -00149 return $r; -00150 } -00151 -00152 // Checkbox -00153 if (strtoupper($this->type)=="CHECKBOX") { -00154 if ( $this->readonly == true) { -00155 $check=( $this->selected==true )?"checked":"unchecked"; -00156 $r='<input type="CHECKBOX" name="'.$this->name.'"'; -00157 $r.=" $check"; -00158 $r.=' disabled>'; -00159 -00160 } else { -00161 $check=( $this->selected==true )?"checked":"unchecked"; -00162 $r='<input type="CHECKBOX" name="'.$this->name.'"'; +00114 // Hidden field +00115 if (strtoupper($this->type)=="HIDDEN") { +00116 $r='<INPUT TYPE="HIDDEN" name="'.$this->name.'" value="'.$this->value.'">'; +00117 if ( $this->readonly==true) return ""; +00118 return $r; +00119 } +00120 // Select value +00121 if ( strtoupper($this->type) == "SELECT") { +00122 if ($this->readonly==false ){ +00123 //echo "<b>Selected <b>".$this->selected; +00124 $r="<SELECT NAME=\"$this->name\">"; +00125 for ( $i=0;$i<sizeof($this->value);$i++) { +00126 $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":""; +00127 $r.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>'; +00128 $r.=$this->value[$i]['label']; +00129 } +00130 $r.="</SELECT>"; +00131 } else { +00132 echo_debug('class_widget.php',__LINE__,"this->selected = ".$this->selected); +00133 for ( $i=0;$i<sizeof($this->value);$i++) { +00134 echo_debug('class_widget.php',__LINE__,"check for ".$this->value[$i]['value']); +00135 if ($this->selected==$this->value[$i]['value'] ) { +00136 $r=$this->value[$i]['label']; +00137 +00138 } +00139 } +00140 } +00141 if ( $this->table==1) { +00142 $r="<TD> $r </TD>"; +00143 if ( $this->label != "") $r="<TD> $this->label</TD>".$r; +00144 } +00145 return $r; +00146 } +00147 // Password +00148 if (strtoupper($this->type)=="PASSWORD") { +00149 if ( $this->readonly==true) return ""; +00150 $r='<input type="password" name="'.$this->name; +00151 $r.='">'; +00152 if ($this->table==1) { +00153 $r="<TD> $this->label </TD><TD> $r </TD>"; +00154 } +00155 return $r; +00156 } +00157 +00158 // Checkbox +00159 if (strtoupper($this->type)=="CHECKBOX") { +00160 if ( $this->readonly == true) { +00161 $check=( $this->selected==true )?"checked":"unchecked"; +00162 $r='<input type="CHECKBOX" name="'.$this->name.'"'; 00163 $r.=" $check"; -00164 $r.=' '.$disabled.'>'; -00165 } -00166 if ($this->table==1) { -00167 $r="<TD> $this->label </TD><TD> $r </TD>"; -00168 } else { -00169 $r=$r." $this->label"; -00170 } -00171 return $r; -00172 } -00173 -00174 //radio -00175 if (strtoupper($this->type)=="RADIO") { -00176 if ( $this->readonly == true) { -00177 $check=( $this->selected==true || $this->selected=='t' )?"Yes":"no"; -00178 $r=$check; -00179 } else { -00180 $check=( $this->selected==true||$this->selected=='t' )?"checked":"unchecked"; -00181 $r='<input type="RADIO" name="'.$this->name.'"'; -00182 $r.=" VALUE=\"$this->value\""; -00183 $r.=" $check"; -00184 $r.=' '.$disabled.'>'; -00185 } -00186 if ($this->table==1) { -00187 $r="<TD> $this->label </TD><TD> $r </TD>"; -00188 } else { -00189 $r=$this->label.$r; -00190 } -00191 return $r; -00192 } -00193 -00194 //textarea -00195 if (strtoupper($this->type)=="TEXTAREA") { -00196 if ( $this->readonly == false ) { -00197 $r=""; -00198 $r.='<TEXTAREA name="'.$this->name.'"'; -00199 $r.=" rows=\"$this->heigh\" "; -00200 $r.=" cols=\"$this->width\" "; -00201 $r.=' '.$disabled.'>'; -00202 $r.=$this->value; -00203 -00204 $r.="</TEXTAREA>"; -00205 } else { -00206 $r='<p>'; -00207 $r.=$this->value; -00208 $r.=sprintf('<input type="hidden" name="%s" value="%s">', -00209 $this->name,urlencode($this->value)); -00210 $r.='</p>'; -00211 -00212 } -00213 if ($this->table==1) { -00214 $r="<TD> $this->label </TD><TD> $r </TD>"; -00215 } -00216 return $r; -00217 } -00218 -00219 //file -00220 if (strtoupper($this->type)=="FILE") { -00221 if ( $this->readonly == false ) { -00222 $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">'; -00223 -00224 } -00225 if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; -00226 return $r; -00227 } -00228 // input type == js_search_poste => button search for the account -00229 if ( strtolower($this->type)=="js_search_poste") { -00230 -00231 $l_sessid=$_REQUEST['PHPSESSID']; -00232 if ( $this->readonly == false ) { -00233 // Do we need to filter ?? -00234 if ( $this->extra2 == null ) { -00235 $r=sprintf('<TD> -00236 <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search"> -00237 %s</TD><TD> -00238 -00239 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00240 </TD>', -00241 $l_sessid, -00242 $this->name, -00243 $this->extra, -00244 $this->label, -00245 $this->name, -00246 $this->value -00247 ); -00248 -00249 } else { // $p_list is not null, so we have a filter -00250 $r=sprintf('<TD> -00251 <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> -00252 %s</TD><TD> -00253 -00254 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00255 </TD>', -00256 $l_sessid, -00257 $this->name, -00258 $this->extra2, -00259 $this->extra, -00260 $this->label, -00261 $this->name, -00262 $this->value -00263 ); -00264 -00265 } //else -00266 } else { -00267 $r=sprintf('<TD><input type="hidden" name="%s" value="%s"> -00268 %s -00269 -00270 </TD>', -00271 $this->name, -00272 $this->value , -00273 $this->value -00274 ); +00164 $r.=' disabled>'; +00165 +00166 } else { +00167 $check=( $this->selected==true )?"checked":"unchecked"; +00168 $r='<input type="CHECKBOX" name="'.$this->name.'"'; +00169 $r.=" $check"; +00170 $r.=' '.$disabled.'>'; +00171 } +00172 if ($this->table==1) { +00173 $r="<TD> $this->label </TD><TD> $r </TD>"; +00174 } else { +00175 $r=$r." $this->label"; +00176 } +00177 return $r; +00178 } +00179 +00180 //radio +00181 if (strtoupper($this->type)=="RADIO") { +00182 if ( $this->readonly == true) { +00183 $check=( $this->selected==true || $this->selected=='t' )?"Yes":"no"; +00184 $r=$check; +00185 } else { +00186 $check=( $this->selected==true||$this->selected=='t' )?"checked":"unchecked"; +00187 $r='<input type="RADIO" name="'.$this->name.'"'; +00188 $r.=" VALUE=\"$this->value\""; +00189 $r.=" $check"; +00190 $r.=' '.$disabled.'>'; +00191 } +00192 if ($this->table==1) { +00193 $r="<TD> $this->label </TD><TD> $r </TD>"; +00194 } else { +00195 $r=$this->label.$r; +00196 } +00197 return $r; +00198 } +00199 +00200 //textarea +00201 if (strtoupper($this->type)=="TEXTAREA") { +00202 if ( $this->readonly == false ) { +00203 $r=""; +00204 $r.='<TEXTAREA name="'.$this->name.'"'; +00205 $r.=" rows=\"$this->heigh\" "; +00206 $r.=" cols=\"$this->width\" "; +00207 $r.=' '.$disabled.'>'; +00208 $r.=$this->value; +00209 +00210 $r.="</TEXTAREA>"; +00211 } else { +00212 $r='<p>'; +00213 $r.=$this->value; +00214 $r.=sprintf('<input type="hidden" name="%s" value="%s">', +00215 $this->name,urlencode($this->value)); +00216 $r.='</p>'; +00217 +00218 } +00219 if ($this->table==1) { +00220 $r="<TD> $this->label </TD><TD> $r </TD>"; +00221 } +00222 return $r; +00223 } +00224 +00225 //file +00226 if (strtoupper($this->type)=="FILE") { +00227 if ( $this->readonly == false ) { +00228 $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">'; +00229 +00230 } +00231 if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; +00232 return $r; +00233 } +00234 // input type == js_search_poste => button search for the account +00235 if ( strtolower($this->type)=="js_search_poste") { +00236 +00237 $l_sessid=$_REQUEST['PHPSESSID']; +00238 if ( $this->readonly == false ) { +00239 // Do we need to filter ?? +00240 if ( $this->extra2 == null ) { +00241 $r=sprintf('<TD> +00242 <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search"> +00243 %s</TD><TD> +00244 +00245 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00246 </TD>', +00247 $l_sessid, +00248 $this->name, +00249 $this->extra, +00250 $this->label, +00251 $this->name, +00252 $this->value +00253 ); +00254 +00255 } else { // $p_list is not null, so we have a filter +00256 $r=sprintf('<TD> +00257 <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00258 %s</TD><TD> +00259 +00260 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00261 </TD>', +00262 $l_sessid, +00263 $this->name, +00264 $this->extra2, +00265 $this->extra, +00266 $this->label, +00267 $this->name, +00268 $this->value +00269 ); +00270 +00271 } //else +00272 } else { +00273 $r=sprintf('<TD><input type="hidden" name="%s" value="%s"> +00274 %s 00275 -00276 } //else if readonly == true -00277 return $r; -00278 -00279 } // end js_search_poste -00280 -00281 // input type == js_search => button search for card -00282 if ( strtolower($this->type)=="js_search") { -00283 $l_sessid=$_REQUEST['PHPSESSID']; -00284 if ( $this->readonly == false ) { -00285 $r=sprintf('<TD> -00286 <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New"> -00287 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> -00288 %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> -00289 ', -00290 $l_sessid, -00291 $this->extra, // deb or cred -00292 $this->name, -00293 $this->extra2, //jrn -00294 $l_sessid, -00295 $this->extra, -00296 $this->name, -00297 $this->extra2, -00298 $this->label, -00299 $this->name, -00300 $this->value, -00301 $this->tabindex -00302 ); -00303 } else { -00304 // readonly == true -00305 $r=sprintf('<TD> %s</TD> -00306 <TD> -00307 <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8"> -00308 </TD>', -00309 $this->label, -00310 $this->name, -00311 $this->value -00312 ); -00313 -00314 } -00315 return $r; -00316 }// poste==js_search -00317 -00318 -00319 // type=span -00320 if ( strtolower($this->type)=="span") { -00321 $r=sprintf('<span id="%s" >%s</span>', -00322 $this->name, -00323 $this->value); -00324 return $r; -00325 }// end type = span -00326 -00327 // input type == js_tva -00328 if ( strtolower($this->type)=="js_tva") { -00329 $id=sprintf("<span id=%s></span>",$this->label); -00330 $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', -00331 $id, -00332 $this->name, -00333 $this->value, -00334 $this->label, -00335 $this->name); -00336 $l_sessid=$_REQUEST['PHPSESSID']; -00337 $r.=sprintf("<input type=\"button\" value=\"Tva\" -00338 onClick=\" -00339 ShowTva('%s','%s');\"></TD>", -00340 $l_sessid,$this->name); -00341 return $r; -00342 } -00343 -00344 // input type == js_concerned => button search for the concerned operations -00345 if ( strtolower($this->type)=="js_concerned") { -00346 if ( $this->readonly == false) { -00347 $l_sessid=$_REQUEST['PHPSESSID']; -00348 $r=sprintf('<TD> -00349 <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search"> -00350 %s</TD><TD> -00351 -00352 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00353 </TD>', -00354 $l_sessid, -00355 $this->name, -00356 $this->label, -00357 $this->name, -00358 $this->value -00359 ); -00360 } else { -00361 $r=sprintf("<TD><span>%s</span>",$this->value); -00362 $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value); -00363 } -00364 -00365 return $r; -00366 }// end js_concerned -00367 return "INVALID WIDGET "; -00368 } //end function -00369 /* Debug -00370 */ -00371 function debug() { -00372 echo "Type ".$this->type."<br>"; -00373 echo "name ".$this->name."<br>"; -00374 echo "value". $this->value."<br>"; -00375 $readonly=($this->readonly==false)?"false":"true"; -00376 echo "read only".$readonly."<br>"; -00377 } -00378 function Submit ($p_name,$p_value) { -00379 return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">'; -00380 } -00381 function Reset ($p_value) { -00382 return '<INPUT TYPE="SUBMIT" VALUE="'.$p_value.'">'; -00383 } -00384 -00385 } -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00276 </TD>', +00277 $this->name, +00278 $this->value , +00279 $this->value +00280 ); +00281 +00282 } //else if readonly == true +00283 return $r; +00284 +00285 } // end js_search_poste +00286 +00287 // input type == js_search => button search for card +00288 if ( strtolower($this->type)=="js_search") { +00289 $l_sessid=$_REQUEST['PHPSESSID']; +00290 if ( $this->readonly == false ) { +00291 $r=sprintf('<TD> +00292 <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New"> +00293 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00294 %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> +00295 ', +00296 $l_sessid, +00297 $this->extra, // deb or cred +00298 $this->name, +00299 $this->extra2, //jrn +00300 $l_sessid, +00301 $this->extra, +00302 $this->name, +00303 $this->extra2, +00304 $this->label, +00305 $this->name, +00306 $this->value, +00307 $this->tabindex +00308 ); +00309 } else { +00310 // readonly == true +00311 $r=sprintf('<TD> %s</TD> +00312 <TD> +00313 <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8"> +00314 </TD>', +00315 $this->label, +00316 $this->name, +00317 $this->value +00318 ); +00319 +00320 } +00321 return $r; +00322 }// poste==js_search +00323 +00324 +00325 // input type == js_search => button search for card +00328 if ( strtolower($this->type)=="js_search_only") { +00329 $l_sessid=$_REQUEST['PHPSESSID']; +00330 if ( $this->readonly == false ) { +00331 if ( $this->table==1) +00332 { +00333 $r=sprintf('<TD> +00334 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00335 %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> +00336 ', +00337 $l_sessid, +00338 $this->extra, +00339 $this->name, +00340 $this->extra2, +00341 $this->label, +00342 $this->name, +00343 $this->value, +00344 $this->tabindex +00345 ); +00346 } +00347 else +00348 { +00349 $r=sprintf(' +00350 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00351 %s <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> ', +00352 $l_sessid, +00353 $this->extra, +00354 $this->name, +00355 $this->extra2, +00356 $this->label, +00357 $this->name, +00358 $this->value, +00359 $this->tabindex +00360 ); +00361 } +00362 } else { +00363 // readonly == true +00364 $r=sprintf('<TD> %s</TD> +00365 <TD> +00366 <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8"> +00367 </TD>', +00368 $this->label, +00369 $this->name, +00370 $this->value +00371 ); +00372 +00373 } +00374 return $r; +00375 }// poste==js_search_only +00376 +00377 +00378 +00379 +00380 +00381 // type=span +00382 if ( strtolower($this->type)=="span") { +00383 $r=sprintf('<span id="%s" >%s </span>', +00384 $this->name, +00385 $this->value +00386 ); +00387 +00388 return $r; +00389 }// end type = span +00390 +00391 // input type == js_tva +00392 if ( strtolower($this->type)=="js_tva") { +00393 $id=sprintf("<span id=%s></span>",$this->label); +00394 $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', +00395 $id, +00396 $this->name, +00397 $this->value, +00398 $this->label, +00399 $this->name); +00400 $l_sessid=$_REQUEST['PHPSESSID']; +00401 $r.=sprintf("<input type=\"button\" value=\"Tva\" +00402 onClick=\" +00403 ShowTva('%s','%s');\"></TD>", +00404 $l_sessid,$this->name); +00405 return $r; +00406 } +00407 +00408 // input type == js_concerned => button search for the concerned operations +00409 if ( strtolower($this->type)=="js_concerned") { +00410 if ( $this->readonly == false) { +00411 $l_sessid=$_REQUEST['PHPSESSID']; +00412 $r=sprintf('<TD> +00413 <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search"> +00414 %s</TD><TD> +00415 +00416 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00417 </TD>', +00418 $l_sessid, +00419 $this->name, +00420 $this->label, +00421 $this->name, +00422 $this->value +00423 ); +00424 } else { +00425 $r=sprintf("<TD><span>%s</span>",$this->value); +00426 $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value); +00427 } +00428 +00429 return $r; +00430 }// end js_concerned +00431 return "INVALID WIDGET "; +00432 } //end function +00433 /* Debug +00434 */ +00435 function debug() { +00436 echo "Type ".$this->type."<br>"; +00437 echo "name ".$this->name."<br>"; +00438 echo "value". $this->value."<br>"; +00439 $readonly=($this->readonly==false)?"false":"true"; +00440 echo "read only".$readonly."<br>"; +00441 } +00442 function Submit ($p_name,$p_value) { +00443 return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">'; +00444 } +00445 function Reset ($p_value) { +00446 return '<INPUT TYPE="SUBMIT" VALUE="'.$p_value.'">'; +00447 } +00448 +00449 } +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/class__widget_8php.html b/doc/developper/html/class__widget_8php.html index 4726b3359..b609b17c4 100644 --- a/doc/developper/html/class__widget_8php.html +++ b/doc/developper/html/class__widget_8php.html @@ -23,7 +23,7 @@ This class is used to create all the HTML INPUT TYPE.

      -Definition in file class_widget.php.


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file class_widget.php.
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/classaction.html b/doc/developper/html/classaction.html index 45391f03c..4dd5403c3 100644 --- a/doc/developper/html/classaction.html +++ b/doc/developper/html/classaction.html @@ -19,40 +19,41 @@  Display ()  Display the object.
      Confirm () + get () - Display the encoded data and ask a confirmation this correspond to the stage 1, before the generation or the upload of document.
      SaveStage2 () + This function shows the detail of an action thanks the ag_id.
      Confirm () - Save the document and propose to save the generated document or to upload one, the data are included except the file. Temporary the generated document is save.
      SaveStage3 ($d_id) + Display the encoded data and ask a confirmation this correspond to the stage 1, before the generation or the upload of document.
      SaveStage2 () - Upload the document or save the generated document.
      myList ($p_filter="", $p_search="") + Save the document and propose to save the generated document or to upload one, the data are included except the file. Temporary the generated document is save.
      SaveStage3 ($d_id) - Show list of action.
      + Upload the document or save the generated document.
      myList ($p_filter="", $p_search="") + + Show list of action.

      Data Fields

       $db$ag_desc$ag_comment$ag_date$ag_timestamp$d_lob$dt_id$dt_id$d_state$d_state$d_number$d_number$d_filename$d_filename$d_mimetype$d_mimetype$ag_title$ag_title - - $f_id$f_id

      Detailed Description

      @@ -105,7 +106,7 @@ References f_id.

      Member Function Documentation

      -

      +

      +References $a, $desc, $doc_type, $h_url, $r, $retour, $title, ag_comment, ag_timestamp, d_state, dt_id, ExecSql(), fiche, FormatString(), isDate(), make_array(), name, and value.
      @@ -133,11 +134,12 @@ Display the encoded data and ask a confirmation this correspond to the stage 1,

      Confirm

      Returns:
      string containing the form
      +
      Todo:
      add the hour

      -Definition at line 151 of file class_action.php. +Definition at line 199 of file class_action.php.

      -References $a, $desc, $doc_type, $h_url, $r, $retour, $title, ag_date, ag_desc, d_state, dt_id, ExecSql(), fiche, FormatString(), isDate(), make_array(), name, and value.

      @@ -172,12 +174,45 @@ Display

      Definition at line 85 of file class_action.php.

      -References $a, $desc, $doc_type, $r, $title, ag_date, ag_desc, d_state, dt_id, ExecSql(), fiche, FormatString(), and make_array(). +References $a, $desc, $doc, $doc_type, $r, $title, ag_comment, ag_timestamp, d_state, dt_id, ExecSql(), fiche, FormatString(), and make_array().

      -Referenced by SaveStage2(). +Referenced by SaveStage2(). -

      +

      + + + + +
      + + + + + + + + +
      action::get  ) 
      +
      + + + + + +
      +   + + +

      +This function shows the detail of an action thanks the ag_id. +

      + +

      +Definition at line 162 of file class_action.php. +

      +References $a, $r, $row, $sql, ag_comment, ag_timestamp, ag_title, d_state, dt_id, echo_debug(), ExecSql(), f_id, fiche, and qcode.

      +

      +References $_SESSION, $bar, $doc, $limit, $offset, $page, $r, $Res, $row, $sql, $step, ag_title, CountSql(), ExecSql(), f_id, fiche, and jrn_navigation_bar().
      @@ -222,12 +257,12 @@ myList($p_filter="")
      Parameters:
      Returns:
      string containing html code

      -Definition at line 329 of file class_action.php. +Definition at line 393 of file class_action.php.

      -References $_SESSION, $bar, $doc, $limit, $offset, $page, $r, $Res, $row, $sql, $step, ag_title, CountSql(), ExecSql(), f_id, fiche, and jrn_navigation_bar().

      -

      +

      +References $d, $doc, $r, $sql, $str_file, ag_id, ag_title, d_state, Display(), dt_id, echo_debug(), ExecSql(), fiche, FormatString(), md_id, name, NextSequence(), and value.
      @@ -257,12 +292,12 @@ SaveStage2

      Returns:

      -Definition at line 241 of file class_action.php. +Definition at line 291 of file class_action.php.

      -References $doc, $r, $sql, $str_file, ag_id, ag_title, Display(), dt_id, echo_debug(), ExecSql(), fiche, FormatString(), GetSequence(), md_id, name, and value.

      -

      +

      +References $d_id, and $doc.
      @@ -296,19 +331,19 @@ SaveStage3
      Parameters:

      -Definition at line 306 of file class_action.php. +Definition at line 370 of file class_action.php.

      -References $d_id, and $doc.


      Field Documentation

      -

      +

      @@ -322,18 +357,18 @@ References $d_id, a
      - +
      action::$ag_date action::$ag_comment

      -document date (ag_gestion.ag_date) +description (ag_gestion.ag_comment)

      Definition at line 62 of file class_action.php.

      -

      +

      @@ -347,18 +382,18 @@ Definition at line 62 +Definition at line 63 of file class_action.php.
      - +
      action::$ag_desc action::$ag_timestamp

      -description (ag_gestion.ag_desc) +document date (ag_gestion.ag_timestamp)

      -Definition at line 61 of file class_action.php.

      -

      +

      @@ -377,7 +412,7 @@ title document Definition at line 69 of file class_action.php.
      - +
      action::$ag_title action::$ag_title
      -

      +

      @@ -402,32 +437,7 @@ filename's document Definition at line 67 of file class_action.php.
      -

      - - - - -
      - - - - -
      action::$d_lob
      -
      - - - - - -
      -   - - -

      - -

      -Definition at line 63 of file class_action.php.

      -

      +

      @@ -452,7 +462,7 @@ document's filename Definition at line 68 of file class_action.php.
      -

      +

      @@ -477,13 +487,13 @@ number of the document Definition at line 66 of file class_action.php.
      -

      +

      @@ -524,16 +534,16 @@ Definition at line 65

      database connexion

      -Definition at line 60 of file class_action.php. +Definition at line 61 of file class_action.php.

      - +
      action::$d_state action::$d_state
      -

      +

      @@ -547,12 +557,12 @@ Definition at line 60
      - +
      action::$dt_id action::$dt_id

      -type of the document (document_type.dt_id) +type of the document (document_type.dt_id)

      Definition at line 64 of file class_action.php.

      -

      +

      @@ -579,7 +589,7 @@ Definition at line 70


      The documentation for this class was generated from the following file: -
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/classcl__user.html b/doc/developper/html/classcl__user.html index 91aa50b82..8390a3697 100644 --- a/doc/developper/html/classcl__user.html +++ b/doc/developper/html/classcl__user.html @@ -44,6 +44,9 @@  update_global_pref ($p_type, $p_value="")  update default pref if value is not given then use the default value
      getExercice () + + Return the year of current Periode it is the parm_periode.p_exercice col.

      Data Fields

       $id @@ -100,7 +103,7 @@ Definition at line 33 Definition at line 40 of file class_user.php.

      -References $_SESSION, $cn, $p_id, $Res, $row, $Sql, DbConnect(), echo_debug(), isValid(), and name. +References $_SESSION, $cn, $p_id, $Res, $row, $Sql, DbConnect(), echo_debug(), isValid(), and name.


      Member Function Documentation

      @@ -176,7 +179,7 @@ Check if an user is an admin.

      Definition at line 143 of file class_user.php.

      -References $cn, $pass5, $res, $sql, CountSql(), and DbConnect(). +References $cn, $pass5, $res, $sql, CountSql(), and DbConnect().

      Referenced by AccessJrn(). @@ -211,7 +214,7 @@ Check if user is active and exists in therepository Automatically redirect.

      Definition at line 85 of file class_user.php.

      -References $_SESSION, $cn, $pass5, $r, $res, $ret, $sql, DbConnect(), echo_debug(), exit, GetGlobalPref(), and name. +References $_SESSION, $cn, $pass5, $r, $res, $ret, $sql, DbConnect(), echo_debug(), exit, GetGlobalPref(), and name.

      @@ -269,6 +272,39 @@ Definition at line 237< References $Res, and ExecSql(). +

      + + + + +
      + + + + + + + + +
      cl_user::getExercice  ) 
      +
      + + + + + +
      +   + + +

      +Return the year of current Periode it is the parm_periode.p_exercice col. +

      + +

      +Definition at line 346 of file class_user.php. +

      +References $r, $Ret, $sql, and ExecSql().

      @@ -304,7 +340,7 @@ Get the global preferences from user_global_pref in the account_repository db.

      Definition at line 257 of file class_user.php.

      -References $_SESSION, $cn, $Max, $Res, $row, echo_debug(), ExecSql(), insert_default_global_pref(), and name. +References $_SESSION, $cn, $Max, $Res, $row, echo_debug(), ExecSql(), insert_default_global_pref(), and name.

      Referenced by Check().

      @@ -465,7 +501,7 @@ insert default pref if no parameter are given insert all the existing parameter

      Definition at line 299 of file class_user.php.

      -References $cn, $Sql, echo_debug(), ExecSql(), name, and value. +References $cn, $Sql, echo_debug(), ExecSql(), name, and value.

      Referenced by GetGlobalPref(). @@ -556,7 +592,7 @@ update default pref if value is not given then use the default value

      Definition at line 331 of file class_user.php.

      -References $cn, $Sql, ExecSql(), and value. +References $cn, $Sql, ExecSql(), and value.


      Field Documentation

      @@ -687,7 +723,7 @@ Definition at line 38
      The documentation for this class was generated from the following file:
      -
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:37 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/classcontact.html b/doc/developper/html/classcontact.html index 0037ae902..a242ad1f0 100644 --- a/doc/developper/html/classcontact.html +++ b/doc/developper/html/classcontact.html @@ -114,7 +114,7 @@ Summary

      Definition at line 50 of file class_contact.php.

      -References $bar, $offset, $page, $r, $search, $url, fiche::CountByDef(), f_id, fiche::fiche(), FormatString(), fiche::GetAll(), jrn_navigation_bar(), name, table, and value. +References $bar, $contact, $offset, $page, $r, $search, $url, fiche::CountByDef(), f_id, fiche::fiche(), FormatString(), fiche::GetAll(), jrn_navigation_bar(), name, table, and value.


      Field Documentation

      @@ -145,7 +145,7 @@ Definition at line 3
      The documentation for this class was generated from the following file:
      -
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:37 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/classfiche.html b/doc/developper/html/classfiche.html index 3f4ff6774..bb84f0262 100644 --- a/doc/developper/html/classfiche.html +++ b/doc/developper/html/classfiche.html @@ -170,7 +170,7 @@ insert a new record show a blank card to be filled

      Definition at line 397 of file class_fiche.php.

      -References $a, $array, $label, $r, $ret_sql, $sql, $w, echo_debug(), ExecSql(), and table. +References $a, $array, $label, $msg, $r, $ret_sql, $sql, $w, echo_debug(), ExecSql(), and table.

      @@ -227,7 +227,7 @@ Return array of card from the frd family.

      Definition at line 289 of file class_fiche.php.

      -References $a, $Ret, $sql, ExecSql(), and FormatString(). +References $a, $Ret, $sql, ExecSql(), and FormatString().

      Referenced by Supplier::Summary(), Customer::Summary(), contact::Summary(), and Admin::Summary(). @@ -269,7 +269,7 @@ Display object instance, getAttribute sort the attribute and add missing ones.

      Definition at line 459 of file class_fiche.php.

      -References $a, $label, $r, $ret, $ret_sql, $sql, $w, echo_debug(), and ExecSql(). +References $a, $label, $msg, $r, $ret, $ret_sql, $sql, $w, echo_debug(), and ExecSql().

      @@ -300,7 +300,7 @@ Synonum of fiche::getAttribut.

      -Definition at line 761 of file class_fiche.php. +Definition at line 768 of file class_fiche.php.

      References echo_debug(), and getAttribut(). @@ -350,7 +350,7 @@ get all the card thanks the fiche

      Returns:
      fiche::GetByDef

      -Definition at line 771 of file class_fiche.php. +Definition at line 778 of file class_fiche.php.

      References GetByDef().

      @@ -387,9 +387,9 @@ get all the attribute of a card, add missing ones and sort the array ($this->

      Definition at line 188 of file class_fiche.php.

      -References $e, $flag, $i, $Max, $Ret, $row, $sql, $t, ExecSql(), return, and SortAttributeById(). +References $e, $flag, $i, $Max, $Ret, $row, $sql, $t, ExecSql(), return, and SortAttributeById().

      -Referenced by Get(), and GetByQCode(). +Referenced by Get(), and GetByQCode().

      @@ -445,9 +445,9 @@ Return array of card from the frd family.

      Definition at line 315 of file class_fiche.php.

      -References $_SESSION, $all, $i, $limit, $Ret, $row, $sql, $t, ExecSql(), f_id, fiche(), and return. +References $_SESSION, $all, $i, $limit, $Ret, $row, $sql, $t, ExecSql(), f_id, fiche(), and return.

      -Referenced by GetAll(). +Referenced by GetAll().

      @@ -497,7 +497,7 @@ GetByQCode($p_qcode)

      Parameters:

      Definition at line 167 of file class_fiche.php.

      -References $r, $Res, $sql, echo_debug(), ExecSql(), f_id, FormatString(), and getAttribut(). +References $r, $Res, $sql, echo_debug(), ExecSql(), f_id, FormatString(), and getAttribut().

      @@ -537,7 +537,7 @@ Get all the card where the fiche_def.fd_id is given in parameter.

      Definition at line 258 of file class_fiche.php.

      -References $all, $i, $Ret, $row, $sql, $t, ExecSql(), f_id, fiche(), and return. +References $all, $i, $Ret, $row, $sql, $t, ExecSql(), f_id, fiche(), and return.

      @@ -568,7 +568,7 @@ return the name of a card

      -Definition at line 749 of file class_fiche.php. +Definition at line 756 of file class_fiche.php.

      References $r, $Res, $sql, and ExecSql(). @@ -607,11 +607,11 @@ insert a new record

      -Definition at line 533 of file class_fiche.php. +Definition at line 540 of file class_fiche.php.

      -References $fiche_id, $Ret, $sql, Commit(), CountSql(), echo_debug(), ExecSql(), FormatString(), isNumber(), name, NextSequence(), StartSql(), and value. +References $fiche_id, $Ret, $sql, Commit(), CountSql(), echo_debug(), ExecSql(), FormatString(), isNumber(), name, NextSequence(), StartSql(), and value.

      -Referenced by Save(). +Referenced by Save().

      @@ -642,7 +642,7 @@ remove a card

      -Definition at line 729 of file class_fiche.php. +Definition at line 736 of file class_fiche.php.

      References $Res, $sql, and ExecSql(). @@ -681,9 +681,9 @@ Save a card, call insert or update.

    -Definition at line 519 of file class_fiche.php. +Definition at line 526 of file class_fiche.php.

    -References insert(), and update(). +References insert(), and update().

    @@ -785,7 +785,7 @@ return the string of the given attribute (attr_def.ad_id)

    Definition at line 364 of file class_fiche.php.

    -References $e, $Res, $row, $sql, and ExecSql(). +References $e, $Res, $row, $sql, and ExecSql().

    @@ -814,14 +814,14 @@ References $e, <

    update a card

    -

    Todo:
    add a check to return an error and rollback operation
    +
    Todo:
    add a check to return an error and rollback operation

    -Definition at line 633 of file class_fiche.php. +Definition at line 640 of file class_fiche.php.

    -References $Ret, $sql, $tmp, CountSql(), echo_debug(), echo_error(), ExecSql(), FormatString(), isNumber(), name, and value. +References $Ret, $sql, $tmp, CountSql(), echo_debug(), echo_error(), ExecSql(), FormatString(), isNumber(), name, and value.

    -Referenced by Save(). +Referenced by Save().


    Field Documentation

    @@ -952,7 +952,7 @@ Definition at line 150
    The documentation for this class was generated from the following file:
    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classfiche__def.html b/doc/developper/html/classfiche__def.html index ad3f8652e..27b4108ef 100644 --- a/doc/developper/html/classfiche__def.html +++ b/doc/developper/html/classfiche__def.html @@ -160,7 +160,7 @@ Get attribut of the fiche_def.

    Definition at line 74 of file class_fiche.php.

    -References $Ret, $row, $sql, ExecSql(), frd_id, label, and return. +References $Ret, $row, $sql, ExecSql(), frd_id, label, and return.

    @@ -194,7 +194,7 @@ Get all the fiche_def.

    Definition at line 94 of file class_fiche.php.

    -References $i, $Ret, $row, $sql, ExecSql(), fiche_def(), frd_id, and return. +References $i, $Ret, $row, $sql, ExecSql(), fiche_def(), frd_id, and return.

    @@ -228,7 +228,7 @@ Get attribut of a fiche_def.

    Definition at line 51 of file class_fiche.php.

    -References $i, $Ret, $row, $sql, $t, ExecSql(), and return. +References $i, $Ret, $row, $sql, $t, ExecSql(), and return.

    @@ -453,7 +453,7 @@ Definition at line 32< - +
    fiche_def::$label fiche_def::$label
    @@ -474,7 +474,7 @@ Definition at line
    33<


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classfiche__def__ref.html b/doc/developper/html/classfiche__def__ref.html index c65844011..2306ce1bf 100644 --- a/doc/developper/html/classfiche__def__ref.html +++ b/doc/developper/html/classfiche__def__ref.html @@ -122,7 +122,7 @@ tag.

    Definition at line 78 of file class_fiche_def.php.

    -References $r, and value. +References $r, and value.

    @@ -193,7 +193,7 @@ parm :

    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classjrn.html b/doc/developper/html/classjrn.html index c13217571..bb2550949 100644 --- a/doc/developper/html/classjrn.html +++ b/doc/developper/html/classjrn.html @@ -114,7 +114,7 @@ GetDefLine Get the number of lines of a journal
    Parameters:<

    Definition at line 321 of file class_jrn.php.

    -References $r, $Res, $sql, echo_debug(), ExecSql(), and value. +References $r, $Res, $sql, echo_debug(), ExecSql(), and value.

    @@ -145,7 +145,7 @@ References $r

    Definition at line 34 of file class_jrn.php.

    -References $Max, $Res, $ret, ExecSql(), and name. +References $Max, $Res, $ret, ExecSql(), and name.

    @@ -217,7 +217,7 @@ gen :

    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classposte.html b/doc/developper/html/classposte.html index 05983147d..1780fdcdc 100644 --- a/doc/developper/html/classposte.html +++ b/doc/developper/html/classposte.html @@ -18,19 +18,26 @@  Get dat for poste.
     GetName () - Return the name of a account.
    GetSolde ($p_cond="") + Return the name of a account it doesn't change any data member.
    get () - give the balance of an account
    GetSoldeDetail ($p_cond="") + Get all the value for this object from the database the data member are set.
    GetSolde ($p_cond="")  give the balance of an account
    GetSoldeDetail ($p_cond="") + + give the balance of an account

    Data Fields

     $db  $id$row$label + + $parent + + $row

    Detailed Description

    @@ -75,12 +82,46 @@ Definition at line 28<

    -Definition at line 32 of file class_poste.php. +Definition at line 34 of file class_poste.php.

    References $p_id.


    Member Function Documentation

    +

    + + + + +
    + + + + + + + + +
    poste::get  ) 
    +
    + + + + + +
    +   + + +

    +Get all the value for this object from the database the data member are set. +

    +

    Returns:
    false if this account doesn't exist otherwise true
    + +

    +Definition at line 100 of file class_poste.php. +

    +References $r, $ret, ExecSql(), and label.

    @@ -105,13 +146,14 @@ References $p_id. +References $r, $ret, and name.

    -Return the name of a account. +Return the name of a account it doesn't change any data member.

    +

    Returns:
    string with the pcm_lib

    -Definition at line 80 of file class_poste.php. +Definition at line 84 of file class_poste.php.

    -References $r, $ret, and name.

    @@ -159,12 +201,12 @@ Get dat for poste.

    Returns:
    double array (j_date,deb_montant,cred_montant,description,jrn_name,j_debit,jr_internal) (tot_deb,tot_credit

    -Definition at line 46 of file class_poste.php. +Definition at line 48 of file class_poste.php.

    -References $array, $i, $Max, $Res, and ExecSql(). +References $array, $i, $Max, $Res, and ExecSql(). -

    +

    +References $Max, $r, $Res, and ExecSql().
    @@ -194,12 +236,12 @@ give the balance of an account
    Returns:
    balance of the account

    -Definition at line 99 of file class_poste.php. +Definition at line 119 of file class_poste.php.

    -References $Max, $r, $Res, and ExecSql().

    -

    +

    +References $Max, $r, $Res, and ExecSql().
    @@ -229,9 +271,9 @@ give the balance of an account
    Returns:
    balance of the account

    -Definition at line 121 of file class_poste.php. +Definition at line 141 of file class_poste.php.

    -References $Max, $r, $Res, and ExecSql().


    Field Documentation

    @@ -255,7 +297,7 @@ References $Max,

    - +database connection

    Definition at line 29 of file class_poste.php. @@ -280,12 +322,62 @@ Definition at line 29<

    - +poste_id

    Definition at line 30 of file class_poste.php. -

    +

    + + + + +
    + + + + +
    poste::$label
    +
    + + + + + +
    +   + + +

    +label of the poste +

    +Definition at line 31 of file class_poste.php.

    +

    + + + + +
    + + + + +
    poste::$parent
    +
    + + + + + +
    +   + + +

    +parent account +

    +Definition at line 32 of file class_poste.php.

    +

    +Definition at line 33 of file class_poste.php.
    @@ -305,14 +397,14 @@ Definition at line 30<

    - +double array see GetRow

    -Definition at line 31 of file class_poste.php.


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classrapport.html b/doc/developper/html/classrapport.html index 1cef72acc..484628641 100644 --- a/doc/developper/html/classrapport.html +++ b/doc/developper/html/classrapport.html @@ -74,7 +74,7 @@ Constructor.

    Definition at line 33 of file class_rapport.php.

    -References $p_id, and name. +References $p_id, and name.


    Member Function Documentation

    @@ -108,7 +108,7 @@ Return the report's name.

    Definition at line 40 of file class_rapport.php.

    -References $a, $ret, and name. +References $a, $ret, and name.

    @@ -157,7 +157,7 @@ return all the row and parse formula from a report

    Definition at line 53 of file class_rapport.php.

    -References $col, $l_line, $Max, $Res, ExecSql(), and ParseFormula(). +References $col, $l_line, $Max, $Res, ExecSql(), and ParseFormula().


    Field Documentation

    @@ -238,7 +238,7 @@ Definition at line 3
    The documentation for this class was generated from the following file:
    -
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classwidget.html b/doc/developper/html/classwidget.html index af776561a..f570f69dd 100644 --- a/doc/developper/html/classwidget.html +++ b/doc/developper/html/classwidget.html @@ -17,7 +17,7 @@  IOValue ($p_name=null, $p_value=null, $p_label="") - create the corresponding INPUT tag
    + create the corresponding INPUT tag js_search_only only for searching a card no new button
     debug ()  Submit ($p_name, $p_value) @@ -49,6 +49,7 @@  $tabindex + special value js_search and js_search_only :you need to add a span widget the name of the js_* widget + '_label' , the member extra contains cred,deb to filter the search of cred of deb of a jrn or contains a string with a list of frd_id

    Detailed Description

    class widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search @@ -83,9 +84,9 @@ Definition at line 32

    -Definition at line 59 of file class_widget.php. +Definition at line 65 of file class_widget.php.

    -References disabled, heigh, label, readonly, selected, size, table, value, and width. +References disabled, heigh, label, readonly, selected, size, table, value, and width.


    Member Function Documentation

    @@ -115,9 +116,9 @@ References disabled<

    -Definition at line 371 of file class_widget.php. +Definition at line 435 of file class_widget.php.

    -References $readonly, readonly, and value. +References $readonly, readonly, and value.

    @@ -160,7 +161,7 @@ References $readonly<

    -create the corresponding INPUT tag +create the corresponding INPUT tag js_search_only only for searching a card no new button

    function IOValue($p_name,$p_value="",$p_label="")

    Parameters:
    @@ -173,9 +174,9 @@ function IOValue($p_name,$p_value="",$p_label="")

    Returns:
    string containing the tag

    -Definition at line 84 of file class_widget.php. +Definition at line 90 of file class_widget.php.

    -References $check, $disabled, $i, $r, disabled, echo_debug(), label, name, selected, and value. +References $check, $disabled, $i, $r, disabled, echo_debug(), label, name, selected, and value.

    @@ -205,7 +206,7 @@ References $check

    -Definition at line 381 of file class_widget.php. +Definition at line 445 of file class_widget.php.

    @@ -235,9 +236,9 @@ Definition at line 38

    -Definition at line 72 of file class_widget.php. +Definition at line 78 of file class_widget.php.

    -References readonly. +References readonly.

    @@ -276,7 +277,7 @@ References readonly.

    -Definition at line 378 of file class_widget.php. +Definition at line 442 of file class_widget.php.


    Field Documentation

    @@ -286,7 +287,7 @@ Definition at line 37 - +
    widget::$disabled widget::$disabled
    @@ -302,9 +303,9 @@ Definition at line
    37

    to disable the type

    -Definition at line 55 of file class_widget.php. +Definition at line 61 of file class_widget.php.

    -Referenced by IOValue(). +Referenced by IOValue().

    @@ -313,7 +314,7 @@ Referenced by IOValue - +
    widget::$extra widget::$extra
    @@ -329,7 +330,7 @@ Referenced by
    IOValue

    depends of the input type

    -Definition at line 56 of file class_widget.php. +Definition at line 62 of file class_widget.php.

    @@ -338,7 +339,7 @@ Definition at line 56 - +
    widget::$extra2 widget::$extra2
    @@ -354,7 +355,7 @@ Definition at line
    56

    depends of the input type

    -Definition at line 57 of file class_widget.php. +Definition at line 63 of file class_widget.php.

    @@ -363,7 +364,7 @@ Definition at line 57 - +
    widget::$label widget::$label
    @@ -379,7 +380,7 @@ Definition at line
    57

    text before the input tag

    -Definition at line 54 of file class_widget.php. +Definition at line 60 of file class_widget.php.

    @@ -404,7 +405,7 @@ Definition at line 54

    name of the input tag

    -Definition at line 48 of file class_widget.php. +Definition at line 54 of file class_widget.php.

    @@ -429,9 +430,9 @@ Definition at line 48

    if set to false cannot modify

    -Definition at line 50 of file class_widget.php. +Definition at line 56 of file class_widget.php.

    -Referenced by debug(). +Referenced by debug().

    @@ -456,7 +457,7 @@ Referenced by debug()

    selected value for the radio or select

    -Definition at line 52 of file class_widget.php. +Definition at line 58 of file class_widget.php.

    @@ -481,7 +482,7 @@ Definition at line 52

    size for the text type

    -Definition at line 51 of file class_widget.php. +Definition at line 57 of file class_widget.php.

    @@ -503,10 +504,12 @@ Definition at line 51 +

    +special value js_search and js_search_only :you need to add a span widget the name of the js_* widget + '_label' , the member extra contains cred,deb to filter the search of cred of deb of a jrn or contains a string with a list of frd_id

    the tabindex

    -Definition at line 58 of file class_widget.php. +Definition at line 64 of file class_widget.php.

    @@ -515,7 +518,7 @@ Definition at line 58 - +
    widget::$table widget::$table
    @@ -529,9 +532,9 @@ Definition at line
    58

    -if we want to make a HTML table row +if we want to make a HTML table row the value is return with <TD>

    -Definition at line 53 of file class_widget.php. +Definition at line 59 of file class_widget.php.

    @@ -556,7 +559,7 @@ Definition at line 53

    type of the input tag (text, select, files, js_search,...)

    -Definition at line 47 of file class_widget.php. +Definition at line 53 of file class_widget.php.

    @@ -581,12 +584,12 @@ Definition at line 47

    value

    -Definition at line 49 of file class_widget.php. +Definition at line 55 of file class_widget.php.


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/client_8inc_8php-source.html b/doc/developper/html/client_8inc_8php-source.html index 4ed0ad427..308f8780e 100644 --- a/doc/developper/html/client_8inc_8php-source.html +++ b/doc/developper/html/client_8inc_8php-source.html @@ -29,7 +29,7 @@ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00021 require_once("class_customer.php"); 00022 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; -00023 var_dump($_REQUEST); +00023 00028 ?> 00029 00030 <? @@ -47,7 +47,7 @@ 00043 // Add card 00044 if ( $sub_action=="insert" ) 00045 { -00046 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', +00046 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', 00047 urldecode($_REQUEST['url'])); 00048 00049 $customer=new Customer($cn); @@ -74,19 +74,19 @@ 00072 //Display a blank card 00073 if ( $sub_action=="blank") 00074 { -00075 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', +00075 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', 00076 "commercial.php?p_action=client"); 00077 echo '<div class="u_redcontent">'; 00078 00079 echo $retour; 00080 $c=new Customer($cn); 00081 echo '<form method="post" action="commercial.php"'; -00082 echo '<input type="hidden" name="p_action" value="client">'; -00083 echo '<input type="hidden" name="sa" value="insert">'; -00084 echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">'; -00085 echo '<input type="hidden" name="url" value="'.$_GET['url'].'">'; +00082 echo '<input type="hidden" name="p_action" value="client">'; +00083 echo '<input type="hidden" name="sa" value="insert">'; +00084 echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">'; +00085 echo '<input type="hidden" name="url" value="'.$_GET['url'].'">'; 00086 echo $c->blank($_GET['fd_id']); -00087 echo '<input type="Submit" value="Sauve">'; +00087 echo '<input type="Submit" value="Sauve">'; 00088 echo '</form>'; 00089 echo $retour; 00090 echo '</div>'; @@ -99,28 +99,28 @@ 00098 <span> 00099 <form method="get" action="commercial.php"> 00100 <? -00101 $a=(isset($_GET['query']))?$_GET['query']:""; -00102 printf ('<input type="text" name="query" value="%s">', +00101 $a=(isset($_GET['query']))?$_GET['query']:""; +00102 printf ('<input type="text" name="query" value="%s">', 00103 $a); 00104 ?> -00105 <input type="submit" name="submit_query" value="recherche"> -00106 <input type="hidden" name="p_action" value="client"> +00105 <input type="submit" name="submit_query" value="recherche"> +00106 <input type="hidden" name="p_action" value="client"> 00107 </form> 00108 </span> 00109 <span> 00110 <form method="get" action="commercial.php"> -00111 <input type="hidden" name="url" <? $url=urlencode($_SERVER['REQUEST_URI']);echo 'value="'.$url.'"'; ?> -00112 <input type="hidden" name="p_action" value="client"> +00111 <input type="hidden" name="url" <? $url=urlencode($_SERVER['REQUEST_URI']);echo 'value="'.$url.'"'; ?> +00112 <input type="hidden" name="p_action" value="client"> 00113 00114 <? 00115 $w=new widget("select"); 00116 $w->name="fd_id"; 00117 $w->value= make_array($cn,"select fd_id,fd_label from fiche_def where ". -00118 " frd_id=".FICHE_TYPE_CLIENT); +00118 " frd_id=".FICHE_TYPE_CLIENT); 00119 echo $w->IOValue(); 00120 ?> -00121 <input type="hidden" name="sa" value="blank"> -00122 <input type="submit" name="submit_query" value="Ajout Client"> +00121 <input type="hidden" name="sa" value="blank"> +00122 <input type="submit" name="submit_query" value="Ajout Client"> 00123 00124 </form> 00125 </span> @@ -131,47 +131,38 @@ 00130 echo '<div class="u_redcontent">'; 00131 echo $client->Summary($search); 00132 echo '</div>'; -00133 echo '<div style="position:absolute;right:1%;width:10%;color:blue;background-color:lightgrey;margin-top:10px;">'; -00134 echo "<strong>Action :</strong> Ajout, mise à jour ou effacement"; -00135 echo " <ul>"; -00136 echo "<li>C - Contact</li>"; -00137 echo "<li>F - Facture</li>"; -00138 echo "<li>FC - Courrier</li>"; -00139 echo "</ul>"; -00140 -00141 echo '</div>'; -00142 echo '</div>'; -00143 -00144 } -00146 // Show Detail -00147 if ( $sub_action == 'detail' ) -00148 { -00149 $f_id=$_REQUEST['f_id']; -00150 echo '<div class="u_redcontent">'; -00151 $client=new Customer($cn,$f_id); -00152 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', -00153 urldecode($_REQUEST['url'])); -00154 echo $retour; -00155 echo '<form action="'.$_REQUEST['url'].'" method="post">'; -00156 echo $client->Display(false); -00157 $w=new widget("hidden"); -00158 $w->name="p_action"; -00159 $w->value="client"; -00160 echo $w->IOValue(); -00161 $w->name="f_id"; -00162 $w->value=$f_id; -00163 echo $w->IOValue(); -00164 -00165 echo $w->Submit('mod','Sauver les modifications'); -00166 echo $w->Reset("Annuler"); -00167 echo $w->Submit('delete','Effacer cette fiche'); -00168 echo '</form>'; -00169 echo $retour; -00170 echo '<div>'; -00171 } -00172 html_page_stop(); -00173 ?> -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00133 echo '</div>'; +00134 +00135 } +00137 // Show Detail +00138 if ( $sub_action == 'detail' ) +00139 { +00140 $f_id=$_REQUEST['f_id']; +00141 echo '<div class="u_redcontent">'; +00142 $client=new Customer($cn,$f_id); +00143 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', +00144 urldecode($_REQUEST['url'])); +00145 echo $retour; +00146 echo '<form action="'.$_REQUEST['url'].'" method="post">'; +00147 echo $client->Display(false); +00148 $w=new widget("hidden"); +00149 $w->name="p_action"; +00150 $w->value="client"; +00151 echo $w->IOValue(); +00152 $w->name="f_id"; +00153 $w->value=$f_id; +00154 echo $w->IOValue(); +00155 +00156 echo $w->Submit('mod','Sauver les modifications'); +00157 echo $w->Reset("Annuler"); +00158 echo $w->Submit('delete','Effacer cette fiche'); +00159 echo '</form>'; +00160 echo $retour; +00161 echo '<div>'; +00162 } +00163 html_page_stop(); +00164 ?> +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/client_8inc_8php.html b/doc/developper/html/client_8inc_8php.html index 85b912d64..bf45795ec 100644 --- a/doc/developper/html/client_8inc_8php.html +++ b/doc/developper/html/client_8inc_8php.html @@ -140,11 +140,11 @@ Referenced by Custo

    -Initial value:

    sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
    +Initial value:
    sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
                       urldecode($_REQUEST['url']))
     

    -Definition at line 152 of file client.inc.php. +Definition at line 143 of file client.inc.php.

    @@ -293,13 +293,13 @@ Definition at line 116<

    Initial value:

     make_array($cn,"select fd_id,fd_label from fiche_def where ".
    -             " frd_id=".FICHE_TYPE_CLIENT)
    +             " frd_id=".FICHE_TYPE_CLIENT)
     

    Definition at line 117 of file client.inc.php. -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/commercial_8php-source.html b/doc/developper/html/commercial_8php-source.html index 5fbc2d389..d7144aa34 100644 --- a/doc/developper/html/commercial_8php-source.html +++ b/doc/developper/html/commercial_8php-source.html @@ -139,7 +139,7 @@ 00151 { 00152 require_once("bank.inc.php"); 00153 } -

    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/commercial_8php.html b/doc/developper/html/commercial_8php.html index ce0fbbc63..0837b5719 100644 --- a/doc/developper/html/commercial_8php.html +++ b/doc/developper/html/commercial_8php.html @@ -55,7 +55,7 @@ Definition in file commercial.p

    Definition at line 35 of file commercial.php.

    -Referenced by cl_user::Check(), cl_user::cl_user(), fiche::GetByDef(), cl_user::GetGlobalPref(), jrn_navigation_bar(), ListJrn(), action::myList(), ShowDossier(), TransferCSV(), and ViewFiche(). +Referenced by cl_user::Check(), cl_user::cl_user(), fiche::GetByDef(), cl_user::GetGlobalPref(), jrn_navigation_bar(), ListJrn(), action::myList(), ShowDossier(), TransferCSV(), and ViewFiche().

    @@ -158,7 +158,7 @@ Definition at line 4143 of file commercial.php. -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/constant_8php-source.html b/doc/developper/html/constant_8php-source.html index 1f7de5898..0fbfafcf5 100644 --- a/doc/developper/html/constant_8php-source.html +++ b/doc/developper/html/constant_8php-source.html @@ -95,293 +95,300 @@ 00091 define ("OPEN",1); 00092 define ("CLOSED",0); 00093 define ("NOTCENTRALIZED",3); -00094 -00095 // Pour les ShowMenuComptaLeft -00096 define ("MENU_FACT",1); -00097 define ("MENU_FICHE",2); -00098 define ("MENU_PARAM",3); -00099 -00100 // for the fiche_inc.GetSqlFiche function -00101 define ("ALL_FICHE_DEF_REF", 1000); -00102 -00103 // fixed value for attr_def data -00104 define ("ATTR_DEF_ACCOUNT",5); -00105 define ("ATTR_DEF_NAME",1); -00106 define ("ATTR_DEF_PRIX_ACHAT",7); -00107 define ("ATTR_DEF_PRIX_VENTE",6); -00108 define ("ATTR_DEF_TVA",2); -00109 define ("ATTR_DEF_NUMTVA",13); -00110 define ("ATTR_DEF_ADRESS",14); -00111 define ("ATTR_DEF_CP",15); -00112 define ("ATTR_DEF_PAYS",16); -00113 define ("ATTR_DEF_STOCK",19); -00114 define ("ATTR_DEF_TEL",17); -00115 define ("ATTR_DEF_EMAIL",18); -00116 define ("ATTR_DEF_COMPANY",25); -00117 define ("ATTR_DEF_FAX",26); -00118 +00094 define ("ALL",4); +00095 +00096 // Pour les ShowMenuComptaLeft +00097 define ("MENU_FACT",1); +00098 define ("MENU_FICHE",2); +00099 define ("MENU_PARAM",3); +00100 +00101 // for the fiche_inc.GetSqlFiche function +00102 define ("ALL_FICHE_DEF_REF", 1000); +00103 +00104 // fixed value for attr_def data +00105 define ("ATTR_DEF_ACCOUNT",5); +00106 define ("ATTR_DEF_NAME",1); +00107 define ("ATTR_DEF_PRIX_ACHAT",7); +00108 define ("ATTR_DEF_PRIX_VENTE",6); +00109 define ("ATTR_DEF_TVA",2); +00110 define ("ATTR_DEF_NUMTVA",13); +00111 define ("ATTR_DEF_ADRESS",14); +00112 define ("ATTR_DEF_CP",15); +00113 define ("ATTR_DEF_PAYS",16); +00114 define ("ATTR_DEF_STOCK",19); +00115 define ("ATTR_DEF_TEL",17); +00116 define ("ATTR_DEF_EMAIL",18); +00117 define ("ATTR_DEF_COMPANY",25); +00118 define ("ATTR_DEF_FAX",26); 00119 -00120 define ("FICHE_TYPE_CLIENT",9); -00121 define ("FICHE_TYPE_VENTE",1); -00122 define ("FICHE_TYPE_FOURNISSEUR",8); -00123 define ("FICHE_TYPE_FIN",4); -00124 define ("FICHE_TYPE_CONTACT",16); -00125 define ("FICHE_TYPE_ADM_TAX",14); -00126 define ("ATTR_DEF_DEPENSE_NON_DEDUCTIBLE",20); -00127 define ("ATTR_DEF_TVA_NON_DEDUCTIBLE",21); -00128 define ("ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP",22); -00129 define ("ATTR_DEF_QUICKCODE",23); -00130 define ("JS_SEARCH_POSTE","<SCRIPT language=\"javascript\">function SearchPoste(p_sessid,p_ctl,p_jrn) -00131 { -00132 var win=window.open('poste_search.php?p_jrn='+p_jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes'); -00133 } -00134 function SearchPosteFilter(p_sessid,p_ctl,p_filter,jrn) -00135 { -00136 var win=window.open('poste_search.php?p_jrn='+jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+'&filter='+p_filter,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes'); -00137 } -00138 function GetIt() { -00139 window.close(); -00140 } -00141 function SetItChild(p_ctl,p_value) { -00142 self.opener.SetItParent(p_ctl,p_value); -00143 window.close(); -00144 } -00145 function SetItParent(p_ctl,p_value) { -00146 -00147 var f=document.getElementsByName(p_ctl); -00148 for (var h=0; h < f.length; h++) { -00149 f[h].value=p_value; -00150 } -00151 -00152 } -00153 /* SetValue( p_ctl,p_value ) -00154 /* p_ctl is the name of the control -00155 /* p_value is the value to set in -00156 */ -00157 function SetValue(p_ctl,p_value) -00158 { -00159 -00160 var f=document.getElementsByName(p_ctl); -00161 for (var h=0; h < f.length; h++) { -00162 f[h].value=p_value; -00163 } -00164 -00165 -00166 } -00167 </SCRIPT>" -00168 ); -00169 define ("JS_SHOW_TVA","<SCRIPT language=\"javascript\"> -00170 function ShowTva(p_sessid,ctl) -00171 { -00172 var win=window.open('show_tva.php?ctl='+ctl+'&PHPSESSID='+p_sessid,'Montre','scrollbar,toolbar=no,width=300,height=300,resizable=yes'); -00173 } -00174 function GetIt(ctl,tva_id) { -00175 self.opener.SetValue(ctl,tva_id) -00176 window.close(); -00177 } -00178 -00179 </SCRIPT>" -00180 ); -00181 -00182 define ("JS_VIEW_JRN_DETAIL","<script language=\"javascript\">function viewDetail(p_value,p_sessid) -00183 { -00184 var win=window.open('jrn_op_detail.php?jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes'); -00185 } -00186 -00187 </script>"); -00188 define ("JS_VIEW_JRN_CANCEL","<script language=\"javascript\" >function cancelOperation(p_value,p_sessid,p_jrn) -00189 { -00190 var win=window.open('annulation.php?p_jrn='+p_jrn+'&jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Annule','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes'); -00191 } -00192 function RefreshMe() { -00193 window.location.reload(); -00194 } -00195 </script>"); -00196 define ("JS_VIEW_JRN_MODIFY","<script language=\"javascript\">function modifyOperation(p_value,p_sessid,p_jrn) -00197 { -00198 var win=window.open('modify_op.php?action=update&p_jrn='+p_jrn+'&line='+p_value+'&PHPSESSID='+p_sessid,'Modifie','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); -00199 } -00200 function RefreshMe() { -00201 window.location.reload(); -00202 } -00203 function dropLink(p_value,p_value2,p_sessid) { -00204 var win=window.open('modify_op.php?action=delete&line='+p_value+'&line2='+p_value2+'&PHPSESSID='+p_sessid,'Liaison','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); -00205 } -00206 -00207 -00208 </script>"); -00209 define ("JS_UPDATE_PCMN","<script language=\"javascript\">function PcmnUpdate(p_value,p_lib,p_parent,p_sessid) -00210 { -00211 var win=window.open('line_update.php?l='+p_value+'&n='+p_lib+'&p='+p_parent+'&PHPSESSID='+p_sessid,'Modifie','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); -00212 } -00213 function RefreshMe() { -00214 window.location.reload(); -00215 } -00216 +00120 +00121 define ("FICHE_TYPE_CLIENT",9); +00122 define ("FICHE_TYPE_VENTE",1); +00123 define ("FICHE_TYPE_FOURNISSEUR",8); +00124 define ("FICHE_TYPE_FIN",4); +00125 define ("FICHE_TYPE_CONTACT",16); +00126 define ("FICHE_TYPE_ADM_TAX",14); +00127 define ("ATTR_DEF_DEPENSE_NON_DEDUCTIBLE",20); +00128 define ("ATTR_DEF_TVA_NON_DEDUCTIBLE",21); +00129 define ("ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP",22); +00130 define ("ATTR_DEF_QUICKCODE",23); +00131 define ("JS_SEARCH_POSTE","<SCRIPT language=\"javascript\">function SearchPoste(p_sessid,p_ctl,p_jrn) +00132 { +00133 var win=window.open('poste_search.php?p_jrn='+p_jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes'); +00134 } +00135 function SearchPosteFilter(p_sessid,p_ctl,p_filter,jrn) +00136 { +00137 var win=window.open('poste_search.php?p_jrn='+jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+'&filter='+p_filter,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes'); +00138 } +00139 function GetIt() { +00140 window.close(); +00141 } +00142 function SetItChild(p_ctl,p_value) { +00143 self.opener.SetItParent(p_ctl,p_value); +00144 window.close(); +00145 } +00146 function SetItParent(p_ctl,p_value) { +00147 +00148 var f=document.getElementsByName(p_ctl); +00149 for (var h=0; h < f.length; h++) { +00150 f[h].value=p_value; +00151 } +00152 +00153 } +00154 /* SetValue( p_ctl,p_value ) +00155 /* p_ctl is the name of the control +00156 /* p_value is the value to set in +00157 */ +00158 function SetValue(p_ctl,p_value) +00159 { +00160 +00161 var f=document.getElementsByName(p_ctl); +00162 for (var h=0; h < f.length; h++) { +00163 f[h].value=p_value; +00164 } +00165 +00166 +00167 } +00168 </SCRIPT>" +00169 ); +00170 define ("JS_SHOW_TVA","<SCRIPT language=\"javascript\"> +00171 function ShowTva(p_sessid,ctl) +00172 { +00173 var win=window.open('show_tva.php?ctl='+ctl+'&PHPSESSID='+p_sessid,'Montre','scrollbar,toolbar=no,width=300,height=300,resizable=yes'); +00174 } +00175 function GetIt(ctl,tva_id) { +00176 self.opener.SetValue(ctl,tva_id) +00177 window.close(); +00178 } +00179 +00180 </SCRIPT>" +00181 ); +00182 +00183 define ("JS_VIEW_JRN_DETAIL","<script language=\"javascript\">function viewDetail(p_value,p_sessid) +00184 { +00185 var win=window.open('jrn_op_detail.php?jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes'); +00186 } +00187 +00188 </script>"); +00189 define ("JS_VIEW_JRN_CANCEL","<script language=\"javascript\" >function cancelOperation(p_value,p_sessid,p_jrn) +00190 { +00191 var win=window.open('annulation.php?p_jrn='+p_jrn+'&jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Annule','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes'); +00192 } +00193 function RefreshMe() { +00194 window.location.reload(); +00195 } +00196 </script>"); +00197 define ("JS_VIEW_JRN_MODIFY","<script language=\"javascript\">function modifyOperation(p_value,p_sessid,p_jrn) +00198 { +00199 var win=window.open('modify_op.php?action=update&p_jrn='+p_jrn+'&line='+p_value+'&PHPSESSID='+p_sessid,'Modifie','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); +00200 } +00201 function RefreshMe() { +00202 window.location.reload(); +00203 } +00204 function dropLink(p_value,p_value2,p_sessid) { +00205 var win=window.open('modify_op.php?action=delete&line='+p_value+'&line2='+p_value2+'&PHPSESSID='+p_sessid,'Liaison','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); +00206 } +00207 +00208 +00209 </script>"); +00210 define ("JS_UPDATE_PCMN","<script language=\"javascript\">function PcmnUpdate(p_value,p_lib,p_parent,p_sessid) +00211 { +00212 var win=window.open('line_update.php?l='+p_value+'&n='+p_lib+'&p='+p_parent+'&PHPSESSID='+p_sessid,'Modifie','toolbar=no,width=500,height=400,scrollbars=yes,resizable=yes'); +00213 } +00214 function RefreshMe() { +00215 window.location.reload(); +00216 } 00217 -00218 </script>"); -00219 -00220 define ("JS_SEARCH_CARD"," -00221 <script language=\"javascript\"> -00222 /* type must be cred or deb and name is -00223 * the control's name -00224 */ -00225 function SearchCard(p_sessid,type,name,jrn) -00226 { -00227 var a=window.open('fiche_search.php?p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name,'item','toolbar=no,width=350,height=450,scrollbars=yes'); -00228 } -00229 function NewCard(p_sessid,type,name,jrn) -00230 { -00231 var a=window.open('fiche_new.php?p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name,'item','toolbar=no,width=350,height=450,scrollbars=yes'); -00232 } -00233 /* SetValue( p_ctl,p_value ) -00234 /* p_ctl is the name of the control -00235 /* p_value is the value to set in -00236 */ -00237 function SetValue(p_ctl,p_value) -00238 { -00239 -00240 var f=document.getElementsByName(p_ctl); -00241 for (var h=0; h < f.length; h++) { -00242 f[h].value=p_value; -00243 } -00244 -00245 -00246 } -00247 /* Parameters -00248 * i = ctl _name -00249 * p_id = code id (fiche.f_id) -00250 *¨p_label = label -00251 * p_sell vw_fiche_attr.vw_sell -00252 * p_buy vw_fiche_attr.vw_buy -00253 * p_tva_id vw_fiche_attr.tva_id -00254 * p_tva_label vw_fiche_attr.tva_label -00255 */ -00256 function SetData(i,p_id,p_label,p_sell,p_buy,p_tva_id, p_tva_label) -00257 { -00258 SetValue(i,p_id); -00259 // for the form we use 1. and for span 2. -00260 //1. document.form_detail.eval(a).value=p_buy; -00261 //2. document.getElementById(a).innerHTML=p_sell; -00262 -00263 // Compute name of label ctl -00264 var a=i+'_label'; -00265 document.getElementById(a).innerHTML=p_label; -00266 -00267 // Compute name of sell ctl -00268 var a=i+'_sell'; -00269 // if the object exist -00270 var e=document.getElementsByName(a) -00271 if ( e.length != 0 ) { -00272 SetValue(a,p_sell); -00273 -00274 } -00275 -00276 // Compute name of buy ctl -00277 var a=i+'_buy'; -00278 // if the object exist -00279 var e=document.getElementsByName(a) -00280 if ( e.length != 0 ) { -00281 SetValue(a,p_buy); -00282 } -00283 // Compute name of tva_id ctl -00284 var a=i+'_tva_id'; +00218 +00219 </script>"); +00220 +00221 define ("JS_SEARCH_CARD"," +00222 <script language=\"javascript\"> +00223 function showfiche(p_sessid,qcode) +00224 { +00225 var a=window.open('show_fiche.php?PHPSESSID='+p_sessid+'&q='+qcode,'','toolbar=no,width=350,height=450,scrollbar=yes'); +00226 +00227 } +00228 +00229 /* type must be cred or deb and name is +00230 * the control's name +00231 */ +00232 function SearchCard(p_sessid,type,name,jrn) +00233 { +00234 var a=window.open('fiche_search.php?p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name,'item','toolbar=no,width=350,height=450,scrollbars=yes'); +00235 } +00236 function NewCard(p_sessid,type,name,jrn) +00237 { +00238 var a=window.open('fiche_new.php?p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name,'item','toolbar=no,width=350,height=450,scrollbars=yes'); +00239 } +00240 /* SetValue( p_ctl,p_value ) +00241 /* p_ctl is the name of the control +00242 /* p_value is the value to set in +00243 */ +00244 function SetValue(p_ctl,p_value) +00245 { +00246 +00247 var f=document.getElementsByName(p_ctl); +00248 for (var h=0; h < f.length; h++) { +00249 f[h].value=p_value; +00250 } +00251 +00252 +00253 } +00254 /* Parameters +00255 * i = ctl _name +00256 * p_id = code id (fiche.f_id) +00257 *¨p_label = label +00258 * p_sell vw_fiche_attr.vw_sell +00259 * p_buy vw_fiche_attr.vw_buy +00260 * p_tva_id vw_fiche_attr.tva_id +00261 * p_tva_label vw_fiche_attr.tva_label +00262 */ +00263 function SetData(i,p_id,p_label,p_sell,p_buy,p_tva_id, p_tva_label) +00264 { +00265 SetValue(i,p_id); +00266 // for the form we use 1. and for span 2. +00267 //1. document.form_detail.eval(a).value=p_buy; +00268 //2. document.getElementById(a).innerHTML=p_sell; +00269 +00270 // Compute name of label ctl +00271 var a=i+'_label'; +00272 document.getElementById(a).innerHTML=p_label; +00273 +00274 // Compute name of sell ctl +00275 var a=i+'_sell'; +00276 // if the object exist +00277 var e=document.getElementsByName(a) +00278 if ( e.length != 0 ) { +00279 SetValue(a,p_sell); +00280 +00281 } +00282 +00283 // Compute name of buy ctl +00284 var a=i+'_buy'; 00285 // if the object exist 00286 var e=document.getElementsByName(a) 00287 if ( e.length != 0 ) { -00288 SetValue(a,p_tva_id); +00288 SetValue(a,p_buy); 00289 } -00290 -00291 // Compute name of tva_label ctl -00292 var a=i+'_tva_label'; -00293 // if the object exist -00294 if (document.getElementById(a) ) { -00295 document.getElementById(a).innerHTML=p_tva_label; +00290 // Compute name of tva_id ctl +00291 var a=i+'_tva_id'; +00292 // if the object exist +00293 var e=document.getElementsByName(a) +00294 if ( e.length != 0 ) { +00295 SetValue(a,p_tva_id); 00296 } -00297 } -00298 -00299 -00300 </script> -00301 -00302 -00303 "); -00304 // concerned operation -00305 define ("JS_CONCERNED_OP"," -00306 <script language=\"javascript\"> -00307 -00308 function SearchJrn(p_sessid,p_ctl) -00309 { -00310 var win=window.open('jrn_search.php?p_ctl='+p_ctl+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes'); -00311 } -00312 function GetIt(p_ctl,p_value) { -00313 self.opener.SetIt(p_value,p_ctl); -00314 window.close(); -00315 } -00316 /* SetValue( p_ctl,p_value ) -00317 /* p_ctl is the name of the control -00318 /* p_value is the value to set in -00319 */ -00320 function SetIt(p_value,p_ctl) { -00321 -00322 var f=document.getElementsByName(p_ctl); -00323 for (var h=0; h < f.length; h++) { -00324 f[h].value=p_value; -00325 } -00326 -00327 -00328 } -00329 -00330 -00331 </script> -00332 "); -00333 // One line calculator -00334 define ("JS_CALC_LINE"," -00335 -00336 <form name=\"calc_line\" onSubmit=\"cal()\"> -00337 <input type=\"text\" size=\"20\" name=\"calculator\" onBlur=\"cal()\"> -00338 Answer:<span id=\"name\"></span> -00339 <br> -00340 -00341 <!-- <input type=\"button\" name=\"B1\" value=\"Calculate\" > --> +00297 +00298 // Compute name of tva_label ctl +00299 var a=i+'_tva_label'; +00300 // if the object exist +00301 if (document.getElementById(a) ) { +00302 document.getElementById(a).innerHTML=p_tva_label; +00303 } +00304 } +00305 +00306 +00307 </script> +00308 +00309 +00310 "); +00311 // concerned operation +00312 define ("JS_CONCERNED_OP"," +00313 <script language=\"javascript\"> +00314 +00315 function SearchJrn(p_sessid,p_ctl) +00316 { +00317 var win=window.open('jrn_search.php?p_ctl='+p_ctl+'&PHPSESSID='+p_sessid,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes'); +00318 } +00319 function GetIt(p_ctl,p_value) { +00320 self.opener.SetIt(p_value,p_ctl); +00321 window.close(); +00322 } +00323 /* SetValue( p_ctl,p_value ) +00324 /* p_ctl is the name of the control +00325 /* p_value is the value to set in +00326 */ +00327 function SetIt(p_value,p_ctl) { +00328 +00329 var f=document.getElementsByName(p_ctl); +00330 for (var h=0; h < f.length; h++) { +00331 f[h].value=p_value; +00332 } +00333 +00334 +00335 } +00336 +00337 +00338 </script> +00339 "); +00340 // One line calculator +00341 define ("JS_CALC_LINE"," 00342 -00343 <input type=\"reset\" name=\"B2\" value=\"Reset\"><br> -00344 -00345 -00346 </form> -00347 <SCRIPT language=\"javascript\"> -00348 -00349 function cal() -00350 { -00351 document.getElementById(\"name\").innerHTML= -00352 eval(document.calc_line.calculator.value) -00353 } -00354 </script> +00343 <form name=\"calc_line\" onSubmit=\"cal()\"> +00344 <input type=\"text\" size=\"20\" name=\"calculator\" onBlur=\"cal()\"> +00345 Answer:<span id=\"name\"></span> +00346 <br> +00347 +00348 <!-- <input type=\"button\" name=\"B1\" value=\"Calculate\" > --> +00349 +00350 <input type=\"reset\" name=\"B2\" value=\"Reset\"><br> +00351 +00352 +00353 </form> +00354 <SCRIPT language=\"javascript\"> 00355 -00356 -00357 -00358 " -00359 ); -00360 -00361 define ("JS_TVA","<script language=\"javascript\"> +00356 function cal() +00357 { +00358 document.getElementById(\"name\").innerHTML= +00359 eval(document.calc_line.calculator.value) +00360 } +00361 </script> 00362 -00363 function ChangeTVA(p_ctl,p_value) { -00364 if (document.getElementById(p_ctl) ) { -00365 var f=document.getElementsByName(p_value); -00366 for ( var i=0; i < f.length ; i++) { -00367 document.getElementById(p_ctl).innerHTML=f[i].value; -00368 } -00369 } -00370 } -00371 -00372 </script>"); -00373 // Sql string -00374 define ("SQL_LIST_ALL_INVOICE",""); -00375 -00376 define ("SQL_LIST_UNPAID_INVOICE"," where (jr_rapt is null or jr_rapt = '') and jr_valid = true "); -00377 define ("SQL_LIST_UNPAID_INVOICE_DATE_LIMIT" ," where (jr_rapt is null or jr_rapt = '') -00378 and to_date(to_char(jr_ech,'DD.MM.YYYY'),'DD.MM.YYYY') < to_date(to_char(now(),'DD.MM.YYYY'),'DD.MM.YYYY') and jr_valid = true" ); -00379 ?> -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00363 +00364 +00365 " +00366 ); +00367 +00368 define ("JS_TVA","<script language=\"javascript\"> +00369 +00370 function ChangeTVA(p_ctl,p_value) { +00371 if (document.getElementById(p_ctl) ) { +00372 var f=document.getElementsByName(p_value); +00373 for ( var i=0; i < f.length ; i++) { +00374 document.getElementById(p_ctl).innerHTML=f[i].value; +00375 } +00376 } +00377 } +00378 +00379 </script>"); +00380 // Sql string +00381 define ("SQL_LIST_ALL_INVOICE",""); +00382 +00383 define ("SQL_LIST_UNPAID_INVOICE"," where (jr_rapt is null or jr_rapt = '') and jr_valid = true "); +00384 define ("SQL_LIST_UNPAID_INVOICE_DATE_LIMIT" ," where (jr_rapt is null or jr_rapt = '') +00385 and to_date(to_char(jr_ech,'DD.MM.YYYY'),'DD.MM.YYYY') < to_date(to_char(now(),'DD.MM.YYYY'),'DD.MM.YYYY') and jr_valid = true" ); +00386 ?> +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/constant_8php.html b/doc/developper/html/constant_8php.html index b41804801..c44418a9f 100644 --- a/doc/developper/html/constant_8php.html +++ b/doc/developper/html/constant_8php.html @@ -104,87 +104,89 @@ enum  NOTCENTRALIZED -enum  MENU_FACT +enum  ALL -enum  MENU_FICHE +enum  MENU_FACT -enum  MENU_PARAM +enum  MENU_FICHE -enum  ALL_FICHE_DEF_REF +enum  MENU_PARAM -enum  ATTR_DEF_ACCOUNT +enum  ALL_FICHE_DEF_REF -enum  ATTR_DEF_NAME +enum  ATTR_DEF_ACCOUNT -enum  ATTR_DEF_PRIX_ACHAT +enum  ATTR_DEF_NAME -enum  ATTR_DEF_PRIX_VENTE +enum  ATTR_DEF_PRIX_ACHAT -enum  ATTR_DEF_TVA +enum  ATTR_DEF_PRIX_VENTE -enum  ATTR_DEF_NUMTVA +enum  ATTR_DEF_TVA -enum  ATTR_DEF_ADRESS +enum  ATTR_DEF_NUMTVA -enum  ATTR_DEF_CP +enum  ATTR_DEF_ADRESS -enum  ATTR_DEF_PAYS +enum  ATTR_DEF_CP -enum  ATTR_DEF_STOCK +enum  ATTR_DEF_PAYS -enum  ATTR_DEF_TEL +enum  ATTR_DEF_STOCK -enum  ATTR_DEF_EMAIL +enum  ATTR_DEF_TEL -enum  ATTR_DEF_COMPANY +enum  ATTR_DEF_EMAIL -enum  ATTR_DEF_FAX +enum  ATTR_DEF_COMPANY -enum  FICHE_TYPE_CLIENT +enum  ATTR_DEF_FAX -enum  FICHE_TYPE_VENTE +enum  FICHE_TYPE_CLIENT -enum  FICHE_TYPE_FOURNISSEUR +enum  FICHE_TYPE_VENTE -enum  FICHE_TYPE_FIN +enum  FICHE_TYPE_FOURNISSEUR -enum  FICHE_TYPE_CONTACT +enum  FICHE_TYPE_FIN -enum  FICHE_TYPE_ADM_TAX +enum  FICHE_TYPE_CONTACT -enum  ATTR_DEF_DEPENSE_NON_DEDUCTIBLE +enum  FICHE_TYPE_ADM_TAX -enum  ATTR_DEF_TVA_NON_DEDUCTIBLE +enum  ATTR_DEF_DEPENSE_NON_DEDUCTIBLE -enum  ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP +enum  ATTR_DEF_TVA_NON_DEDUCTIBLE -enum  ATTR_DEF_QUICKCODE +enum  ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP -enum  JS_SEARCH_POSTE +enum  ATTR_DEF_QUICKCODE -enum  JS_SHOW_TVA +enum  JS_SEARCH_POSTE -enum  JS_VIEW_JRN_DETAIL +enum  JS_SHOW_TVA -enum  JS_VIEW_JRN_CANCEL +enum  JS_VIEW_JRN_DETAIL -enum  JS_VIEW_JRN_MODIFY +enum  JS_VIEW_JRN_CANCEL -enum  JS_UPDATE_PCMN +enum  JS_VIEW_JRN_MODIFY -enum  JS_SEARCH_CARD +enum  JS_UPDATE_PCMN -enum  JS_CONCERNED_OP +enum  JS_SEARCH_CARD -enum  JS_CALC_LINE +enum  JS_CONCERNED_OP -enum  JS_TVA +enum  JS_CALC_LINE -enum  SQL_LIST_ALL_INVOICE +enum  JS_TVA -enum  SQL_LIST_UNPAID_INVOICE +enum  SQL_LIST_ALL_INVOICE -enum  SQL_LIST_UNPAID_INVOICE_DATE_LIMIT +enum  SQL_LIST_UNPAID_INVOICE + +enum  SQL_LIST_UNPAID_INVOICE_DATE_LIMIT

    Detailed Description

    @@ -218,13 +220,13 @@ Definition in file constant.php86 of file constant.php. -

    +

    @@ -240,16 +242,16 @@ Definition at line 86

    -Definition at line 101 of file constant.php. +Definition at line 94 of file constant.php.

    - +
    enum ALL_FICHE_DEF_REF enum ALL
    -

    +

    @@ -265,166 +267,16 @@ Definition at line 101

    -Definition at line 104 of file constant.php. +Definition at line 102 of file constant.php.

    - +
    enum ATTR_DEF_ACCOUNT enum ALL_FICHE_DEF_REF
    -

    +

    - -
    - - -
    enum ATTR_DEF_ADRESS
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 110 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_COMPANY
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 116 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_CP
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 111 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_DEPENSE_NON_DEDUCTIBLE
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 126 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_EMAIL
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 115 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_FAX
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 117 of file constant.php.

    -

    - - - @@ -443,13 +295,13 @@ Definition at line 117 Definition at line 105 of file constant.php.
    - - - +
    enum ATTR_DEF_NAME enum ATTR_DEF_ACCOUNT
    -

    +

    @@ -465,16 +317,41 @@ Definition at line 105

    -Definition at line 109 of file constant.php. +Definition at line 111 of file constant.php.

    - +
    enum ATTR_DEF_NUMTVA enum ATTR_DEF_ADRESS
    -

    +

    + +
    - + + +
    enum ATTR_DEF_PAYS enum ATTR_DEF_COMPANY
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 117 of file constant.php.

    +

    + + + @@ -493,163 +370,13 @@ Definition at line 109 Definition at line 112 of file constant.php.
    + + +
    enum ATTR_DEF_CP
    -

    +

    - -
    - - -
    enum ATTR_DEF_PRIX_ACHAT
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 106 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_PRIX_VENTE
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 107 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_QUICKCODE
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 129 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_STOCK
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 113 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_TEL
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 114 of file constant.php.

    -

    - - - - -
    - - - - -
    enum ATTR_DEF_TVA
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 108 of file constant.php.

    -

    - - - @@ -668,13 +395,288 @@ Definition at line 108 Definition at line 127 of file constant.php.
    - - - +
    enum ATTR_DEF_TVA_NON_DEDUCTIBLE enum ATTR_DEF_DEPENSE_NON_DEDUCTIBLE
    -

    +

    + +
    - + + +
    enum ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP enum ATTR_DEF_EMAIL
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 116 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_FAX
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 118 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_NAME
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 106 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_NUMTVA
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 110 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_PAYS
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 113 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_PRIX_ACHAT
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 107 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_PRIX_VENTE
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 108 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_QUICKCODE
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 130 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_STOCK
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 114 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_TEL
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 115 of file constant.php.

    +

    + + + + +
    + + + + +
    enum ATTR_DEF_TVA
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 109 of file constant.php.

    +

    + + + @@ -693,6 +695,31 @@ Definition at line 127 Definition at line 128 of file constant.php.
    + + +
    enum ATTR_DEF_TVA_NON_DEDUCTIBLE
    +

    + + + + +
    + + + + +
    enum ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 129 of file constant.php.

    @@ -1068,13 +1095,63 @@ Definition at line 36 Definition at line 38 of file constant.php.
    -

    +

    + +
    - + + +
    enum FICHE_TYPE_ADM_TAX enum FICHE_TYPE_ADM_TAX
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 126 of file constant.php.

    +

    + + + + +
    + + + + +
    enum FICHE_TYPE_CLIENT
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 121 of file constant.php.

    +

    + + + @@ -1093,38 +1170,13 @@ Definition at line 38 Definition at line 125 of file constant.php.
    + + +
    enum FICHE_TYPE_CONTACT
    -

    +

    - -
    - - -
    enum FICHE_TYPE_CLIENT
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 120 of file constant.php.

    -

    - - - @@ -1143,13 +1195,13 @@ Definition at line 120 Definition at line 124 of file constant.php.
    - - - +
    enum FICHE_TYPE_CONTACT enum FICHE_TYPE_FIN
    -

    +

    @@ -1168,13 +1220,13 @@ Definition at line 124 Definition at line 123 of file constant.php.
    - +
    enum FICHE_TYPE_FIN enum FICHE_TYPE_FOURNISSEUR
    -

    +

    @@ -1193,31 +1245,6 @@ Definition at line 123 Definition at line 122 of file constant.php.
    - +
    enum FICHE_TYPE_FOURNISSEUR enum FICHE_TYPE_VENTE
    -

    - - - - -
    - - - - -
    enum FICHE_TYPE_VENTE
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 121 of file constant.php.

    @@ -1393,13 +1420,13 @@ Definition at line 67 Definition at line 74 of file constant.php.
    -

    +

    @@ -1415,16 +1442,16 @@ Definition at line 74

    -Definition at line 334 of file constant.php. +Definition at line 341 of file constant.php.

    - +
    enum JS_CALC_LINE enum JS_CALC_LINE
    -

    +

    @@ -1440,16 +1467,16 @@ Definition at line 334

    -Definition at line 305 of file constant.php. +Definition at line 312 of file constant.php.

    - +
    enum JS_CONCERNED_OP enum JS_CONCERNED_OP
    -

    +

    @@ -1465,16 +1492,16 @@ Definition at line 305

    -Definition at line 220 of file constant.php. +Definition at line 221 of file constant.php.

    - +
    enum JS_SEARCH_CARD enum JS_SEARCH_CARD
    -

    +

    @@ -1490,16 +1517,16 @@ Definition at line 220

    -Definition at line 130 of file constant.php. +Definition at line 131 of file constant.php.

    - +
    enum JS_SEARCH_POSTE enum JS_SEARCH_POSTE
    -

    +

    @@ -1515,16 +1542,16 @@ Definition at line 130

    -Definition at line 169 of file constant.php. +Definition at line 170 of file constant.php.

    - +
    enum JS_SHOW_TVA enum JS_SHOW_TVA
    -

    +

    @@ -1540,16 +1567,16 @@ Definition at line 169

    -Definition at line 361 of file constant.php. +Definition at line 368 of file constant.php.

    - +
    enum JS_TVA enum JS_TVA
    -

    +

    @@ -1565,16 +1592,16 @@ Definition at line 361

    -Definition at line 209 of file constant.php. +Definition at line 210 of file constant.php.

    - +
    enum JS_UPDATE_PCMN enum JS_UPDATE_PCMN
    -

    +

    @@ -1590,16 +1617,16 @@ Definition at line 209

    -Definition at line 188 of file constant.php. +Definition at line 189 of file constant.php.

    - +
    enum JS_VIEW_JRN_CANCEL enum JS_VIEW_JRN_CANCEL
    -

    +

    @@ -1615,16 +1642,16 @@ Definition at line 188

    -Definition at line 182 of file constant.php. +Definition at line 183 of file constant.php.

    - +
    enum JS_VIEW_JRN_DETAIL enum JS_VIEW_JRN_DETAIL
    -

    +

    @@ -1640,7 +1667,7 @@ Definition at line 182

    -Definition at line 196 of file constant.php. +Definition at line 197 of file constant.php.

    - +
    enum JS_VIEW_JRN_MODIFY enum JS_VIEW_JRN_MODIFY

    @@ -1668,38 +1695,13 @@ Definition at line 196 Definition at line 81 of file constant.php. -

    +

    - -
    - - -
    enum MENU_FACT
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 96 of file constant.php.

    -

    - - - @@ -1718,13 +1720,13 @@ Definition at line 96 Definition at line 97 of file constant.php.
    - - - +
    enum MENU_FICHE enum MENU_FACT
    -

    +

    @@ -1743,6 +1745,31 @@ Definition at line 97 Definition at line 98 of file constant.php.
    - +
    enum MENU_PARAM enum MENU_FICHE
    +

    + + + + +
    + + + + +
    enum MENU_PARAM
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 99 of file constant.php.

    @@ -2168,13 +2195,13 @@ Definition at line 76 Definition at line 50 of file constant.php.
    -

    +

    @@ -2190,16 +2217,16 @@ Definition at line 50

    -Definition at line 374 of file constant.php. +Definition at line 381 of file constant.php.

    - +
    enum SQL_LIST_ALL_INVOICE enum SQL_LIST_ALL_INVOICE
    -

    +

    @@ -2215,16 +2242,16 @@ Definition at line 374

    -Definition at line 376 of file constant.php. +Definition at line 383 of file constant.php.

    - +
    enum SQL_LIST_UNPAID_INVOICE enum SQL_LIST_UNPAID_INVOICE
    -

    +

    @@ -2240,7 +2267,7 @@ Definition at line 376

    -Definition at line 377 of file constant.php. +Definition at line 384 of file constant.php.

    - +
    enum SQL_LIST_UNPAID_INVOICE_DATE_LIMIT enum SQL_LIST_UNPAID_INVOICE_DATE_LIMIT

    @@ -2343,7 +2370,7 @@ Definition at line 59 Definition at line 89 of file constant.php. -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/contact_8inc_8php-source.html b/doc/developper/html/contact_8inc_8php-source.html index f32b32cc6..50ff16ceb 100644 --- a/doc/developper/html/contact_8inc_8php-source.html +++ b/doc/developper/html/contact_8inc_8php-source.html @@ -30,14 +30,14 @@ 00022 require_once('class_contact.php'); 00023 require_once('class_widget.php'); 00030 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; -00031 var_dump($_REQUEST); +00031 00032 // if this page is called from another menu (customer, supplier,...) 00033 // a button back is added 00034 // TODO add function for generating url, hidden tags... 00035 if ( isset ($_REQUEST['url'])) 00036 { -00037 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); -00038 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); +00037 $retour=sprintf('<A class="mtitle" HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); +00038 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); 00039 } 00040 else 00041 { @@ -59,11 +59,11 @@ 00058 // Add card 00059 if ( $sub_action=="insert" ) 00060 { -00061 $contact=new Contact($cn); -00062 $contact->Save($_REQUEST['fd_id']); +00061 $contact=new Contact($cn); +00062 $contact->Save($_REQUEST['fd_id']); 00063 echo $retour; 00064 echo "<table>"; -00065 echo $contact->Display(true); +00065 echo $contact->Display(true); 00066 echo "</table>"; 00067 echo $retour; 00068 @@ -75,8 +75,8 @@ 00075 // modification is asked 00076 $f_id=$_REQUEST['f_id']; 00077 -00078 $contact=new contact($cn,$f_id); -00079 $contact->Save(); +00078 $contact=new contact($cn,$f_id); +00079 $contact->Save(); 00080 $sub_action="list"; 00081 } 00082 // by default open liste @@ -85,19 +85,19 @@ 00086 //Display a blank card 00087 if ( $sub_action=="blank") 00088 { -00089 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', +00089 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>', 00090 "commercial.php?p_action=contact"); 00091 echo '<div class="u_redcontent">'; 00092 00093 echo $retour; 00094 $c=new contact($cn); 00095 echo '<form method="post" action="commercial.php"'; -00096 echo '<input type="hidden" name="p_action" value="client">'; -00097 echo '<input type="hidden" name="sa" value="insert">'; -00098 echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">'; -00099 echo '<input type="hidden" name="url" value="'.$_GET['url'].'">'; +00096 echo '<input type="hidden" name="p_action" value="client">'; +00097 echo '<input type="hidden" name="sa" value="insert">'; +00098 echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">'; +00099 echo '<input type="hidden" name="url" value="'.$_GET['url'].'">'; 00100 echo $c->blank($_GET['fd_id']); -00101 echo '<input type="Submit" value="Sauve">'; +00101 echo '<input type="Submit" value="Sauve">'; 00102 echo '</form>'; 00103 echo $retour; 00104 echo '</div>'; @@ -110,84 +110,104 @@ 00112 <span> 00113 <form method="get" action="commercial.php"> 00114 <? -00115 $a=(isset($_GET['query']))?$_GET['query']:""; -00116 printf ('<input type="text" name="query" value="%s">', +00115 $a=(isset($_GET['query']))?$_GET['query']:""; +00116 printf ('<input type="text" name="query" value="%s">', 00117 $a); 00118 ?> -00119 <input type="submit" name="submit_query" value="recherche"> -00120 <input type="hidden" name="p_action" value="contact"> +00119 <input type="submit" name="submit_query" value="recherche"> +00120 <input type="hidden" name="p_action" value="contact"> 00121 </form> 00122 </span> 00123 <span> 00124 <form method="get" action="commercial.php"> -00125 <input type="hidden" name="url" <? $url=urlencode($_SERVER['REQUEST_URI']);echo 'value="'.$url.'"'; ?> -00126 <input type="hidden" name="p_action" value="contact"> +00125 <input type="hidden" name="url" <? $url=urlencode($_SERVER['REQUEST_URI']);echo 'value="'.$url.'"'; ?> +00126 <input type="hidden" name="p_action" value="contact"> 00127 00128 <? 00129 $w=new widget("select"); 00130 $w->name="fd_id"; 00131 $w->value= make_array($cn,"select fd_id,fd_label from fiche_def where ". -00132 " frd_id=".FICHE_TYPE_CONTACT); -00133 echo $w->IOValue(); -00134 ?> -00135 <input type="hidden" name="sa" value="blank"> -00136 <input type="submit" name="submit_query" value="Ajout Contact"> -00137 -00138 </form> -00139 </span> +00132 " frd_id=".FICHE_TYPE_CONTACT); +00133 // if array is empty show an warning and stops +00134 if ( sizeof ($w->value) == 0 ) { +00135 echo '<p style="color:red">Aucune fiche de catégories contact</p>'; +00136 echo '<p>allez dans comptabilité -> fiche creation et choississez contact comme sorte</p>'; +00137 exit(); +00138 } +00139 echo $w->IOValue(); 00140 -00141 <form> -00142 <? -00143 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; -00144 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', -00145 $qcode); -00146 ?> -00147 <input type="submit" name="submit_query" value="recherche"> -00148 <input type="hidden" name="p_action" value="contact"> -00149 -00150 </FORM> -00151 <? -00152 $contact=new Contact($cn); -00153 $search=(isset($_GET['query']))?$_GET['query']:""; -00154 // check if a company is asked if yes, add a condition -00155 if ( $qcode != "" ) -00156 { -00157 $contact->company=$qcode; -00158 } -00159 echo '<div class="u_redcontent">'; -00160 echo $contact->Summary($search); -00161 echo '</div>'; -00162 -00163 -00164 } -00166 // Show Detail -00167 if ( $sub_action == 'detail' ) -00168 { -00169 $f_id=$_REQUEST['f_id']; -00170 echo '<div class="u_redcontent">'; -00171 $contact=new contact($cn,$f_id); -00172 echo $retour; -00173 echo '<form action="'.$_SERVER['REQUEST_URI'].'" method="post">'; -00174 echo $contact->Display(false); -00175 $w=new widget("hidden"); -00176 $w->name="p_action"; -00177 $w->value="contact"; -00178 echo $w->IOValue(); -00179 $w->name="f_id"; -00180 $w->value=$f_id; -00181 echo $w->IOValue(); +00141 ?> +00142 <input type="hidden" name="sa" value="blank"> +00143 <input type="submit" name="submit_query" value="Ajout Contact"> +00144 +00145 </form> +00146 </span> +00147 +00148 <form> +00149 <? +00150 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00151 echo JS_SEARCH_CARD; +00152 $w=new widget('js_search_only'); +00153 $w->name='qcode'; +00154 $w->value=$qcode; +00155 $w->label='qcode'; +00156 $w->extra='4,8,9,14'; +00157 $sp= new widget("span"); +00158 echo $sp->IOValue("qcode_label",$qcode)."</TD></TR>"; +00159 +00160 echo $w->IOValue(); +00161 +00162 // printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', +00163 // $qcode); +00164 ?> +00165 <input type="submit" name="submit_query" value="recherche"> +00166 <input type="hidden" name="p_action" value="contact"> +00167 +00168 </FORM> +00169 <? +00170 $contact=new Contact($cn); +00171 $search=(isset($_GET['query']))?$_GET['query']:""; +00172 // check if a company is asked if yes, add a condition +00173 if ( $qcode != "" ) +00174 { +00175 $contact->company=$qcode; +00176 } +00177 echo $retour; +00178 echo '<div class="u_redcontent">'; +00179 echo $contact->Summary($search); +00180 echo '</div>'; +00181 echo $retour; 00182 -00183 echo $w->Submit('mod','Sauver les modifications'); -00184 echo '<A HREF="commercial.php?p_action=contact"><INPUT TYPE="button" value="Retour"></A>'; -00185 echo $w->Submit('delete','Effacer cette fiche'); -00186 echo '</form>'; -00187 echo $retour; -00188 echo '<div>'; -00189 } -00190 html_page_stop(); -00191 -00192 -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00183 +00184 } +00186 // Show Detail +00187 if ( $sub_action == 'detail' ) +00188 { +00189 $f_id=$_REQUEST['f_id']; +00190 echo '<div class="u_redcontent">'; +00191 $contact=new contact($cn,$f_id); +00192 echo $retour; +00193 echo '<form action="'.$_SERVER['REQUEST_URI'].'" method="post">'; +00194 echo $contact->Display(false); +00195 $w=new widget("hidden"); +00196 $w->name="p_action"; +00197 $w->value="contact"; +00198 echo $w->IOValue(); +00199 $w->name="f_id"; +00200 $w->value=$f_id; +00201 echo $w->IOValue(); +00202 +00203 echo $w->Submit('mod','Sauver les modifications'); +00204 echo '<A HREF="commercial.php?p_action=contact"><INPUT TYPE="button" value="Retour"></A>'; +00205 echo $w->Submit('delete','Effacer cette fiche'); +00206 echo '</form>'; +00207 echo $retour; +00208 echo '<div>'; +00209 } +00210 html_page_stop(); +00211 +00212 +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/contact_8inc_8php.html b/doc/developper/html/contact_8inc_8php.html index feb8d57da..ef9eb4f43 100644 --- a/doc/developper/html/contact_8inc_8php.html +++ b/doc/developper/html/contact_8inc_8php.html @@ -28,11 +28,17 @@ $w value$qcode = (isset($_GET['qcode']))?$_GET['qcode']:"" + $qcode = (isset($_GET['qcode']))?$_GET['qcode']:"" - $contact = new Contact($cn) +$w label = 'qcode' - $search = (isset($_GET['query']))?$_GET['query']:"" +$w extra = '4,8,9,14' + + $sp = new widget("span") + + $contact = new Contact($cn) + + $search = (isset($_GET['query']))?$_GET['query']:""

    Detailed Description

    @@ -66,7 +72,7 @@ Definition in file contact.in Definition at line 94 of file contact.inc.php. -

    +

    +Definition at line 170 of file contact.inc.php. +

    +Referenced by contact::Summary().

    @@ -88,7 +94,9 @@ Definition at line 94<

    -Definition at line 152 of file contact.inc.php.

    @@ -122,7 +130,7 @@ Definition at line 38< - +
    $qcode = (isset($_GET['qcode']))?$_GET['qcode']:"" $qcode = (isset($_GET['qcode']))?$_GET['qcode']:""
    @@ -138,10 +146,10 @@ Definition at line
    38<

    -Definition at line 143 of file contact.inc.php. +Definition at line 150 of file contact.inc.php. -

    +

    +Definition at line 171 of file contact.inc.php. + +
    @@ -163,7 +171,34 @@ Definition at line 143

    -Definition at line 153 of file contact.inc.php.

    +

    + + + + +
    + + + + +
    $sp = new widget("span")
    +
    + + + +
    +   + + +

    + +

    +Definition at line 157 of file contact.inc.php. +

    +Referenced by ShowActionList(), and u_ShowMenuRecherche().

    @@ -241,6 +276,56 @@ Definition at line 125 Definition at line 129 of file contact.inc.php. +

    + + + + +
    + + + + +
    $w extra = '4,8,9,14'
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 156 of file contact.inc.php.

    +

    + + + + +
    + + + + +
    $w label = 'qcode'
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 155 of file contact.inc.php.

    @@ -287,13 +372,13 @@ Definition at line 130

    Initial value:

     make_array($cn,"select fd_id,fd_label from fiche_def where ".
    -             " frd_id=".FICHE_TYPE_CONTACT)
    +             " frd_id=".FICHE_TYPE_CONTACT)
     

    Definition at line 131 of file contact.inc.php.

    -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/debug_8php-source.html b/doc/developper/html/debug_8php-source.html index 1992453a8..5be44a901 100644 --- a/doc/developper/html/debug_8php-source.html +++ b/doc/developper/html/debug_8php-source.html @@ -40,7 +40,7 @@ 00040 } 00041 00042 ?> -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/debug_8php.html b/doc/developper/html/debug_8php.html index 7c17e322c..2bc40209d 100644 --- a/doc/developper/html/debug_8php.html +++ b/doc/developper/html/debug_8php.html @@ -77,10 +77,10 @@ print debug

    Definition at line 34 of file debug.php.

    -Referenced by AddFiche(), AddForm(), AddModele(), fiche::blank(), cl_user::Check(), CheckJrn(), cl_user::cl_user(), ComputeTotalVat(), ComputeVat(), DbConnect(), DefModele(), DeleteRapt(), fiche::Display(), DisplayDetailModele(), echo_error(), EncodeFiche(), EncodeForm(), ExecSql(), form_verify_input(), FormAchInput(), FormVenInput(), Document::Generate(), fiche::Get(), get_quick_key(), GetAllUser(), GetArray(), fiche::GetByQCode(), GetClass(), GetCreateAccount(), GetData(), GetDataJrnJrId(), GetDataJrnPdf(), jrn::GetDefLine(), cl_user::GetGlobalPref(), GetNextFiche(), GetParent(), GetPriv(), GetRappel(), jrn::GetRow(), jrn::GetRowSimple(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertRapt(), InsertStockGoods(), widget::IOValue(), new_fiche(), Document::ParseDocument(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), action::SaveStage2(), ShowDossier(), ShowMenuCompta(), ShowMenuJrnUser(), ShowPeriode(), u_ShowMenuRecherche(), fiche::update(), UpdateFiche(), UpdateForm(), UpdateJrn(), UpdateModele(), VerifData(), VerifyOperationDate(), ViewImp(), ViewJrn(), ViewRec(), and ViewRecord(). +Referenced by AddFiche(), AddForm(), AddModele(), fiche::blank(), cl_user::Check(), CheckJrn(), cl_user::cl_user(), ComputeTotalVat(), ComputeVat(), DbConnect(), DefModele(), DeleteRapt(), fiche::Display(), DisplayDetailModele(), echo_error(), EncodeFiche(), EncodeForm(), ExecSql(), form_verify_input(), FormAchInput(), FormVenInput(), Document::Generate(), fiche::Get(), action::get(), get_quick_key(), GetAllUser(), GetArray(), fiche::GetByQCode(), GetClass(), GetCreateAccount(), GetData(), GetDataJrnJrId(), GetDataJrnPdf(), jrn::GetDefLine(), cl_user::GetGlobalPref(), GetNextFiche(), GetParent(), GetPriv(), GetRappel(), jrn::GetRow(), jrn::GetRowSimple(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertRapt(), InsertStockGoods(), widget::IOValue(), isDate(), new_fiche(), Document::ParseDocument(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), action::SaveStage2(), ShowDossier(), ShowMenuCompta(), ShowMenuJrnUser(), ShowPeriode(), u_ShowMenuRecherche(), fiche::update(), UpdateFiche(), UpdateForm(), UpdateJrn(), UpdateModele(), VerifData(), VerifyOperationDate(), ViewImp(), ViewJrn(), ViewRec(), and ViewRecord(). -


    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/decla_8BE_8inc_8php-source.html b/doc/developper/html/decla_8BE_8inc_8php-source.html index 57ffa9dcf..a52f400ce 100644 --- a/doc/developper/html/decla_8BE_8inc_8php-source.html +++ b/doc/developper/html/decla_8BE_8inc_8php-source.html @@ -32,22 +32,22 @@ 00038 //-- 00039 require_once("class_own.php"); 00040 // load the data -00041 $my=new Own($p_cn); +00041 $my=new Own($p_cn); 00042 //Make the first record -00043 $a="000000"; -00044 $a.=sprintf("% 32s",$my->MY_NAME); -00045 $b=$my->MY_STREET.",".$my->MY_NUMBER; -00046 $a.=sprintf("% 24s",$b); -00047 $b=$my->MY_CP." ".$my->MY_COMMUNE; -00048 $a.=sprintf("% 27s",$b); -00049 $a.="BE"; -00050 $a.=sprintf("%9s",$my->MY_TVA); +00043 $a="000000"; +00044 $a.=sprintf("% 32s",$my->MY_NAME); +00045 $b=$my->MY_STREET.",".$my->MY_NUMBER; +00046 $a.=sprintf("% 24s",$b); +00047 $b=$my->MY_CP." ".$my->MY_COMMUNE; +00048 $a.=sprintf("% 27s",$b); +00049 $a.="BE"; +00050 $a.=sprintf("%9s",$my->MY_TVA); 00051 // special zone -00052 $a.=sprintf("% 20s",' '); +00052 $a.=sprintf("% 20s",' '); 00053 // -00054 $a.="E"; -00055 $a.=$p_year; -00056 $a.="\n"; +00054 $a.="E"; +00055 $a.=$p_year; +00056 $a.="\n"; 00057 // customer record 00058 $rec_id=0; 00059 $tot_amount=0; @@ -55,30 +55,30 @@ 00061 foreach ($p_array as $client) { 00062 if ( strlen(trim($client['tva'])) != 0 ) { 00063 $rec_id++; -00064 $a.=sprintf("%06d",$rec_id); -00065 $a.=sprintf("% 32s",$client['name']); -00066 $a.=str_repeat(" ",51); -00067 $a.=sprintf("BE%s",$client['vat_number']); -00068 $a.=sprintf("%010d",$client['amount']*100); -00069 $a.=sprintf("%010d",$client['tva']*100); -00070 $a.=str_repeat(" ",10); -00071 $a.="\n"; +00064 $a.=sprintf("%06d",$rec_id); +00065 $a.=sprintf("% 32s",$client['name']); +00066 $a.=str_repeat(" ",51); +00067 $a.=sprintf("BE%s",$client['vat_number']); +00068 $a.=sprintf("%010d",$client['amount']*100); +00069 $a.=sprintf("%010d",$client['tva']*100); +00070 $a.=str_repeat(" ",10); +00071 $a.="\n"; 00072 $tot_amount=+$client['amount']*100; 00073 $tot_tva+=$client['tva']*100; 00074 } 00075 } 00076 //Last Record -00077 $a.="999999"; -00078 $a.=sprintf("%016d",$tot_amount); -00079 $a.=sprintf("%016d",$tot_tva); -00080 $a.=str_repeat(" ",51); -00081 $a.="BE"; -00082 $a.=$my->MY_TVA; -00083 $a.=str_repeat(" ",28); -00084 $a.="\r\n"; -00085 return $a; +00077 $a.="999999"; +00078 $a.=sprintf("%016d",$tot_amount); +00079 $a.=sprintf("%016d",$tot_tva); +00080 $a.=str_repeat(" ",51); +00081 $a.="BE"; +00082 $a.=$my->MY_TVA; +00083 $a.=str_repeat(" ",28); +00084 $a.="\r\n"; +00085 return $a; 00086 } -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/decla_8BE_8inc_8php.html b/doc/developper/html/decla_8BE_8inc_8php.html index 0714a5874..4402760ca 100644 --- a/doc/developper/html/decla_8BE_8inc_8php.html +++ b/doc/developper/html/decla_8BE_8inc_8php.html @@ -65,10 +65,10 @@ parm : -array gen : -none return:

      Definition at line 36 of file decla.BE.inc.php.

      -References $a, $b, $client, $my, and name. +References $a, $b, $client, $my, and name. -


      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000000.html b/doc/developper/html/dir_000000.html index 0cb18f0c0..255c91bd3 100644 --- a/doc/developper/html/dir_000000.html +++ b/doc/developper/html/dir_000000.html @@ -13,7 +13,7 @@ directory  phpcompta-dev -
      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000001.html b/doc/developper/html/dir_000001.html index 3aeb60e20..d26c47bdd 100644 --- a/doc/developper/html/dir_000001.html +++ b/doc/developper/html/dir_000001.html @@ -13,7 +13,7 @@ directory  phpcompta -
      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000002.html b/doc/developper/html/dir_000002.html index 7672e17dd..504448a5d 100644 --- a/doc/developper/html/dir_000002.html +++ b/doc/developper/html/dir_000002.html @@ -15,7 +15,7 @@ directory  include -
      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000003.html b/doc/developper/html/dir_000003.html index 302aecc07..19e446742 100644 --- a/doc/developper/html/dir_000003.html +++ b/doc/developper/html/dir_000003.html @@ -229,6 +229,8 @@  send the document template

      +file  show_fiche.php [code] + file  show_pj.php [code] file  show_tva.php [code] @@ -281,7 +283,7 @@

      -


      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000004.html b/doc/developper/html/dir_000004.html index cd5e63c34..581d4164d 100644 --- a/doc/developper/html/dir_000004.html +++ b/doc/developper/html/dir_000004.html @@ -17,7 +17,7 @@ file  readme.php [code] -
      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000005.html b/doc/developper/html/dir_000005.html index 73b0e61c7..187e97fbd 100644 --- a/doc/developper/html/dir_000005.html +++ b/doc/developper/html/dir_000005.html @@ -13,7 +13,7 @@ file  setup.php [code] -
      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dir_000006.html b/doc/developper/html/dir_000006.html index 5a8116670..ab6d5510e 100644 --- a/doc/developper/html/dir_000006.html +++ b/doc/developper/html/dir_000006.html @@ -27,7 +27,7 @@

      file  balance.php [code] - Show the balance and let you print it or export to PDF.
      + Show the balance and let you print it or export to PDF file included by user_impress.

      file  bank.inc.php [code] @@ -185,6 +185,8 @@  the purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database

      +file  facture_inc.php [code] + file  fiche_def.inc.php [code]  Let customise the fiche_def_ref for the user.
      @@ -206,7 +208,7 @@ file  impress_bilan.php [code] - form who call the printing of the bilan in RTF
      + form who call the printing of the bilan in RTF file included by user_impress

      file  impress_fiche.php [code] @@ -225,12 +227,12 @@

      file  impress_poste.php [code] - Print account (html or pdf).
      + Print account (html or pdf) file included from user_impress.

      file  impress_rapport.php [code] - print first the report in html and propose to print it in pdf
      + print first the report in html and propose to print it in pdf file included by user_impress

      file  ing_be.inc.php [code] @@ -343,7 +345,7 @@

      -


      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/dirs.html b/doc/developper/html/dirs.html index 4b5f695d8..b393892fe 100644 --- a/doc/developper/html/dirs.html +++ b/doc/developper/html/dirs.html @@ -22,7 +22,7 @@
-
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/document__modele_8inc_8php-source.html b/doc/developper/html/document__modele_8inc_8php-source.html index fdcd172d9..af25120ab 100644 --- a/doc/developper/html/document__modele_8inc_8php-source.html +++ b/doc/developper/html/document__modele_8inc_8php-source.html @@ -29,53 +29,51 @@ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00025 require_once("class_document_modele.php"); 00026 $sub_action=(isset ($_REQUEST['sa']))?$_REQUEST['sa']:""; -00027 var_dump($_REQUEST); +00027 00028 echo "<hr>"; -00029 // echo ShowMenuDocument(); -00030 -00031 // show the form for adding a template -00032 // -00033 $doc=new Document_modele($cn); +00029 // show the form for adding a template +00030 // +00031 $doc=new Document_modele($cn); +00032 +00033 echo $doc->form('parametre.php?p_action=document'); 00034 -00035 echo $doc->form('parametre.php?p_action=document'); -00036 -00038 // Document add a template -00040 if ( $sub_action=='add_document') -00041 { -00042 require_once("class_document_modele.php"); -00043 $doc=new Document_modele($cn); -00044 $doc->md_name=$_POST['md_name']; -00045 $doc->md_id=-1; // because it is a new model -00046 $doc->md_type=$_POST['md_type']; -00047 $doc->start=$_POST['start_seq']; -00048 $doc->Save(); -00049 } -00051 // Document remove a template -00053 if ( $sub_action=='rm_template') { -00054 echo_debug (__FILE__,__LINE__,'Remove some templates'); -00055 require_once("class_document_modele.php"); -00056 // Get all the document to remove -00057 -00058 foreach ( $_POST as $name=>$value ) -00059 { -00060 echo_debug(__FILE__,__LINE__,"name = ".$name); -00061 echo_debug(__FILE__,__LINE__,"value = ".$value); -00062 list ($id) = sscanf ($name,"dm_remove_%d"); -00063 echo_debug(__FILE__,__LINE__,"id = ".$id); -00064 if ( $id == null ) continue; -00065 // a document has to be removed -00066 $doc=new Document_modele($cn); -00067 $doc->md_id=$id; -00068 echo_debug (__FILE__,__LINE__,'Removing'); -00069 $doc->Delete(); -00070 } +00036 // Document add a template +00038 if ( $sub_action=='add_document') +00039 { +00040 require_once("class_document_modele.php"); +00041 $doc=new Document_modele($cn); +00042 $doc->md_name=$_POST['md_name']; +00043 $doc->md_id=-1; // because it is a new model +00044 $doc->md_type=$_POST['md_type']; +00045 $doc->start=$_POST['start_seq']; +00046 $doc->Save(); +00047 } +00049 // Document remove a template +00051 if ( $sub_action=='rm_template') { +00052 echo_debug (__FILE__,__LINE__,'Remove some templates'); +00053 require_once("class_document_modele.php"); +00054 // Get all the document to remove +00055 +00056 foreach ( $_POST as $name=>$value ) +00057 { +00058 echo_debug(__FILE__,__LINE__,"name = ".$name); +00059 echo_debug(__FILE__,__LINE__,"value = ".$value); +00060 list ($id) = sscanf ($name,"dm_remove_%d"); +00061 echo_debug(__FILE__,__LINE__,"id = ".$id); +00062 if ( $id == null ) continue; +00063 // a document has to be removed +00064 $doc=new Document_modele($cn); +00065 $doc->md_id=$id; +00066 echo_debug (__FILE__,__LINE__,'Removing'); +00067 $doc->Delete(); +00068 } +00069 +00070 } 00071 -00072 } -00073 -00075 // Default action : Show the list -00077 echo $doc->myList(); -00078 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00073 // Default action : Show the list +00075 echo $doc->myList(); +00076 ?> +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/document__modele_8inc_8php.html b/doc/developper/html/document__modele_8inc_8php.html index 220e6a1bd..67f052c04 100644 --- a/doc/developper/html/document__modele_8inc_8php.html +++ b/doc/developper/html/document__modele_8inc_8php.html @@ -55,9 +55,9 @@ Definition in file d

-Definition at line 33 of file document_modele.inc.php. +Definition at line 31 of file document_modele.inc.php.

-Referenced by action::myList(), Document::SaveGenerated(), action::SaveStage2(), and action::SaveStage3(). +Referenced by action::Display(), action::myList(), Document::SaveGenerated(), action::SaveStage2(), and action::SaveStage3().

@@ -107,7 +107,7 @@ Definition at line 45 of file document_modele.inc.php. +Definition at line 43 of file document_modele.inc.php.

@@ -132,7 +132,7 @@ Definition at line 44 of file document_modele.inc.php. +Definition at line 42 of file document_modele.inc.php.

Referenced by Document_modele::myList(). @@ -159,7 +159,9 @@ Referenced by 46 of file document_modele.inc.php. +Definition at line 44 of file document_modele.inc.php. +

+Referenced by Document::Generate().

@@ -184,12 +186,12 @@ Definition at line 47 of file document_modele.inc.php. +Definition at line 45 of file document_modele.inc.php.

Referenced by Cezpdf::alink(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezTable(), Cezpdf::ezText(), Document_modele::Save(), and Cezpdf::uline(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/ecrit__ouv_8php-source.html b/doc/developper/html/ecrit__ouv_8php-source.html index 8880c7b35..5f3d1414f 100644 --- a/doc/developper/html/ecrit__ouv_8php-source.html +++ b/doc/developper/html/ecrit__ouv_8php-source.html @@ -29,141 +29,158 @@ 00024 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00025 include_once ("ac_common.php"); 00026 require_once('class_widget.php'); -00027 html_page_start($_SESSION['g_theme']); -00028 if ( ! isset ( $_SESSION['g_dossier'] ) ) { -00029 echo "You must choose a Dossier "; -00030 exit -2; -00031 } -00032 include_once ("postgres.php"); -00033 /* Admin. Dossier */ -00034 include_once ("class_user.php"); -00035 $cn=DbConnect($_SESSION['g_dossier']); -00036 $User=new cl_user($cn); -00037 $User->Check(); -00038 -00039 include_once ("check_priv.php"); -00040 -00041 include_once ("user_menu.php"); -00042 echo '<div class="u_tmenu">'; -00043 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); -00044 echo '</div>'; -00045 // TODO : add a check for permission -00046 if ( $User->CheckAction($cn,EXP_IMP_ECR) == 0 ) { -00047 /* Cannot Access */ -00048 NoAccess(); -00049 exit -1; -00050 } -00051 -00052 echo ShowMenuAdvanced("ecrit_ouv.php"); -00053 echo '<div class="lmenu">'; -00054 -00055 echo ShowItem ( array ( -00056 array ("ecrit_ouv.php?export","Export"), -00057 array ("ecrit_ouv.php?import","Import") -00058 ),'V'); -00059 echo '</div>'; -00060 echo '<div class="redcontent">'; -00062 if ( isset ($_GET['export'])) { -00063 // if the year is not set, ask it -00064 // ask the exercice and do the export -00065 $periode=make_array($cn,"select distinct p_exercice,p_exercice from parm_periode order by p_exercice"); -00066 echo '<form method="GET" ACTION="export_ouv.php">'; -00067 $w=new widget('select'); -00068 $w->table=0; -00069 $w->label='Periode'; -00070 $w->readonly=false; -00071 $w->value=$periode; -00072 $w->name="p_periode"; -00073 echo 'P&eacute;riode : '.$w->IOValue(); -00074 echo $w->Submit('export','Export'); -00075 echo "</form>"; -00076 exit(0); -00077 } -00079 if ( isset ($_GET['import'])) { -00080 // show a form to upload the file -00081 // that form will parse the file, create an ods operation -00082 // and ask you to validate it -00083 // if no file is given -00084 if ( ! isset ($_REQUEST['p_submit']) ) { -00085 ?> -00086 <FORM NAME="form_detail" enctype="multipart/form-data" ACTION="ecrit_ouv.php?import" METHOD="POST"> -00087 <? -00088 // TODO propose ODS ledger -00089 $ods=make_array($cn,"select jrn_def_id,jrn_def_name from jrn_def where jrn_def_type = 'OD'"); -00090 $x=new widget("select"); -00091 $x->name='p_jrn'; -00092 $x->value=$ods; -00093 echo "Choississez votre journal ".$x->IOValue(); -00094 -00095 $w=new widget("file"); -00096 $w->name='import_file'; -00097 $w->label='p_file'; -00098 echo $w->IOValue(); -00099 echo $w->Submit('p_submit','Charger le fichier'); -00100 ?> -00101 </FORM> -00102 <? -00103 exit(0); -00104 } else { -00105 require_once("user_form_ods.php"); -00106 require_once("jrn.php"); -00107 // a file is given, so we upload it -00108 $new_name=tempnam('/tmp','import'); -00109 if ( strlen ( $_FILES['import_file']['tmp_name']) != 0 ) { -00110 if ( move_uploaded_file($_FILES['import_file']['tmp_name'],$new_name) ) { -00111 // upload succeed -00112 $h_file=fopen($new_name,'r') ; -00113 // test if the file is opened -00114 if ( $h_file == false) { echo 'Je ne peux ouvrir pas ce fichier';exit(-1);} -00115 // Analyze the file and store result into array -00116 $valid=false; -00117 $idx=0; -00118 while ( !feof($h_file) ) { -00119 -00120 $line=fgets($h_file); -00121 // check if the first line contains the signature -00122 if ( $valid ) { -00123 // skip blank line -00124 if (strlen (trim($line)) == 0 ) continue; -00125 // put the line into an array -00126 list($sign,$poste,$amount)=explode(";",$line); -00127 $asign[$idx]=$sign; $aposte[$idx]=$poste;$aamount[$idx]=$amount; -00128 $idx++; -00129 } -00130 $valid=(($line=="OUVERTURE\n" && $valid==false) || $valid)?true:false; -00131 -00132 } // read the file -00133 // if valid is still false then there is nothing to do -00134 if ( ! $valid) { echo 'Aucun enregistrement valide'; return ;} -00135 // compose the array for the function FormODS -00136 $array_ods['e_comm']='Ecriture d\'ouverture'; -00137 for ($i=0;$i<$idx;$i++) { -00138 $n="e_account$i"; -00139 $array_ods[$n]=$aposte[$i]; -00140 $n="e_account".$i."_type"; -00141 $array_ods[$n]=$asign[$i]; -00142 $n="e_account".$i."_amount"; -00143 $array_ods[$n]=$aamount[$i]; -00144 } -00145 -00146 // submit button in the form -00147 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> -00148 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00149 $r=FormODS($cn,$_POST['p_jrn'],$User->GetPeriode(),$submit, -00150 $array_ods,false,$idx,$p_saved=false); -00151 -00152 echo $r; -00153 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; -00154 -00155 } -00156 } -00157 } // else -> a file is given -00158 }// if import -00159 // IF import and export are not set then the choice is proposed -00160 echo '</div>'; -00161 html_page_stop(); -00162 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00027 require_once('class_poste.php'); +00028 html_page_start($_SESSION['g_theme']); +00029 if ( ! isset ( $_SESSION['g_dossier'] ) ) { +00030 echo "You must choose a Dossier "; +00031 exit -2; +00032 } +00033 include_once ("postgres.php"); +00034 /* Admin. Dossier */ +00035 include_once ("class_user.php"); +00036 $cn=DbConnect($_SESSION['g_dossier']); +00037 $User=new cl_user($cn); +00038 $User->Check(); +00039 +00040 include_once ("check_priv.php"); +00041 +00042 include_once ("user_menu.php"); +00043 echo '<div class="u_tmenu">'; +00044 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00045 echo '</div>'; +00046 // \todo add a check for permission +00047 if ( $User->CheckAction($cn,EXP_IMP_ECR) == 0 ) { +00048 /* Cannot Access */ +00049 NoAccess(); +00050 exit -1; +00051 } +00052 +00053 echo ShowMenuAdvanced("ecrit_ouv.php"); +00054 echo '<div class="lmenu">'; +00055 +00056 echo ShowItem ( array ( +00057 array ("ecrit_ouv.php?export","Export"), +00058 array ("ecrit_ouv.php?import","Import") +00059 ),'V'); +00060 echo '</div>'; +00061 echo '<div class="redcontent">'; +00063 if ( isset ($_GET['export'])) { +00064 // if the year is not set, ask it +00065 // ask the exercice and do the export +00066 $periode=make_array($cn,"select distinct p_exercice,p_exercice from parm_periode order by p_exercice"); +00067 echo '<form method="GET" ACTION="export_ouv.php">'; +00068 $w=new widget('select'); +00069 $w->table=0; +00070 $w->label='Periode'; +00071 $w->readonly=false; +00072 $w->value=$periode; +00073 $w->name="p_periode"; +00074 echo 'P&eacute;riode : '.$w->IOValue(); +00075 echo $w->Submit('export','Export'); +00076 echo "</form>"; +00077 exit(0); +00078 } +00080 if ( isset ($_GET['import'])) { +00081 // show a form to upload the file +00082 // that form will parse the file, create an ods operation +00083 // and ask you to validate it +00084 // if no file is given +00085 if ( ! isset ($_REQUEST['p_submit']) ) { +00086 ?> +00087 <FORM NAME="form_detail" enctype="multipart/form-data" ACTION="ecrit_ouv.php?import" METHOD="POST"> +00088 <? +00089 // TODO propose ODS ledger +00090 $ods=make_array($cn,"select jrn_def_id,jrn_def_name from jrn_def where jrn_def_type = 'OD'"); +00091 $x=new widget("select"); +00092 $x->name='p_jrn'; +00093 $x->value=$ods; +00094 echo "Choississez votre journal ".$x->IOValue(); +00095 +00096 $w=new widget("file"); +00097 $w->name='import_file'; +00098 $w->label='p_file'; +00099 echo $w->IOValue(); +00100 echo $w->Submit('p_submit','Charger le fichier'); +00101 ?> +00102 </FORM> +00103 <? +00104 exit(0); +00105 } else { +00106 require_once("user_form_ods.php"); +00107 require_once("jrn.php"); +00108 // a file is given, so we upload it +00109 $new_name=tempnam('/tmp','import'); +00110 if ( strlen ( $_FILES['import_file']['tmp_name']) != 0 ) { +00111 if ( move_uploaded_file($_FILES['import_file']['tmp_name'],$new_name) ) { +00112 // upload succeed +00113 $h_file=fopen($new_name,'r') ; +00114 // test if the file is opened +00115 if ( $h_file == false) { echo 'Je ne peux ouvrir pas ce fichier';exit(-1);} +00116 // Analyze the file and store result into array +00117 $valid=false; +00118 $idx=0; +00119 while ( !feof($h_file) ) { +00120 +00121 $line=fgets($h_file); +00122 // check if the first line contains the signature +00123 if ( $valid ) { +00124 // skip blank line +00125 if (strlen (trim($line)) == 0 ) continue; +00126 // put the line into several array with the same index +00127 list($sign,$poste,$label,$amount)=explode(";",$line); +00128 $asign[$idx]=$sign; $aposte[$idx]=$poste;$aamount[$idx]=$amount; +00129 $alabel[$idx]=$label; +00130 $idx++; +00131 } +00132 $valid=(($line=="OUVERTURE\n" && $valid==false) || $valid)?true:false; +00133 +00134 } // read the file +00135 // if valid is still false then there is nothing to do +00136 if ( ! $valid) { echo 'Aucun enregistrement valide'; return ;} +00137 // compose the array for the function FormODS +00138 $array_ods['e_comm']='Ecriture d\'ouverture'; +00139 for ($i=0;$i<$idx;$i++) { +00140 $n="e_account$i"; +00141 $array_ods[$n]=$aposte[$i]; +00142 $n="e_account".$i."_type"; +00143 $array_ods[$n]=$asign[$i]; +00144 $n="e_account".$i."_amount"; +00145 $array_ods[$n]=$aamount[$i]; +00146 } +00147 // Check if all the poste exist +00148 // otherwise create it +00149 for ($i=0;$i<$idx;$i++) +00150 { +00151 +00152 $p=new Poste($cn,$aposte[$i]); +00153 +00154 // if the poste exists then check the next one +00155 if ( $p->get() == true ) continue; +00156 echo 'Attention creation de '.$p->id.' '.$alabel[$i].'<br>'; +00157 $sql=sprintf("select account_add(%d,'%s')", +00158 $p->id,$alabel[$i]); +00159 +00160 ExecSql($cn,$sql); +00161 } +00162 +00163 // submit button in the form +00164 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> +00165 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; +00166 $r=FormODS($cn,$_POST['p_jrn'],$User->GetPeriode(),$submit, +00167 $array_ods,false,$idx,$p_saved=false); +00168 +00169 echo $r; +00170 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; +00171 +00172 } +00173 } +00174 } // else -> a file is given +00175 }// if import +00176 // IF import and export are not set then the choice is proposed +00177 echo '</div>'; +00178 html_page_stop(); +00179 ?> +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/ecrit__ouv_8php.html b/doc/developper/html/ecrit__ouv_8php.html index 463240ea4..5eeeb98ef 100644 --- a/doc/developper/html/ecrit__ouv_8php.html +++ b/doc/developper/html/ecrit__ouv_8php.html @@ -63,7 +63,7 @@ Definition in file ecrit_ouv.ph

-Definition at line 35 of file ecrit_ouv.php. +Definition at line 36 of file ecrit_ouv.php.

@@ -88,7 +88,7 @@ Definition at line 35

-Definition at line 36 of file ecrit_ouv.php. +Definition at line 37 of file ecrit_ouv.php.

@@ -113,7 +113,7 @@ Definition at line 36

-Definition at line 67 of file ecrit_ouv.php. +Definition at line 68 of file ecrit_ouv.php.

@@ -138,7 +138,7 @@ Definition at line 67

-Definition at line 90 of file ecrit_ouv.php. +Definition at line 91 of file ecrit_ouv.php.

Referenced by Cezpdf::ezPrvtTableDrawLines(), Cezpdf::ezTable(), and ParseFormula(). @@ -165,7 +165,7 @@ Referenced by Cezpdf::

-Definition at line 49 of file ecrit_ouv.php. +Definition at line 50 of file ecrit_ouv.php.

@@ -174,7 +174,7 @@ Definition at line 49 - +
$w label = 'Periode' $w label = 'Periode'
@@ -190,7 +190,7 @@ Definition at line 49

-Definition at line 69 of file ecrit_ouv.php. +Definition at line 70 of file ecrit_ouv.php.

@@ -215,7 +215,7 @@ Definition at line 69

-Definition at line 72 of file ecrit_ouv.php. +Definition at line 73 of file ecrit_ouv.php.

@@ -240,9 +240,9 @@ Definition at line 72

-Definition at line 70 of file ecrit_ouv.php. +Definition at line 71 of file ecrit_ouv.php.

-Referenced by widget::debug(), widget::SetReadOnly(), and widget::widget(). +Referenced by widget::debug(), widget::SetReadOnly(), and widget::widget().

@@ -251,7 +251,7 @@ Referenced by widget: - +
$w table = 0 $w table = 0
@@ -267,7 +267,7 @@ Referenced by
widget:

-Definition at line 68 of file ecrit_ouv.php. +Definition at line 69 of file ecrit_ouv.php.

@@ -292,10 +292,10 @@ Definition at line 68

-Definition at line 71 of file ecrit_ouv.php. +Definition at line 72 of file ecrit_ouv.php. -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/error_8php-source.html b/doc/developper/html/error_8php-source.html index e118342dc..24b58eb6d 100644 --- a/doc/developper/html/error_8php-source.html +++ b/doc/developper/html/error_8php-source.html @@ -63,7 +63,7 @@ 00065 } 00066 00067 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/error_8php.html b/doc/developper/html/error_8php.html index 472c162c0..04e8e7bdb 100644 --- a/doc/developper/html/error_8php.html +++ b/doc/developper/html/error_8php.html @@ -61,7 +61,7 @@ Following the error code show adialog box. Definition at line 33 of file error.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/eub__be_8inc_8php-source.html b/doc/developper/html/eub__be_8inc_8php-source.html index 6f88bdb1b..74015dfc6 100644 --- a/doc/developper/html/eub__be_8inc_8php-source.html +++ b/doc/developper/html/eub__be_8inc_8php-source.html @@ -82,7 +82,7 @@ 00078 } // file is read 00079 fclose($handle); 00080 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/eub__be_8inc_8php.html b/doc/developper/html/eub__be_8inc_8php.html index 37849fee7..c0204c1d6 100644 --- a/doc/developper/html/eub__be_8inc_8php.html +++ b/doc/developper/html/eub__be_8inc_8php.html @@ -207,10 +207,10 @@ Definition at line 29<

Definition at line 55 of file eub_be.inc.php.

-Referenced by AddFiche(), cl_user::cl_user(), Get_attr_def(), Get_attr_min(), GetCreateAccount(), GetDataJrnPdf(), jrn::GetRow(), cl_user::insert_default_global_pref(), RecordJrn(), and cl_user::update_global_pref(). +Referenced by AddFiche(), cl_user::cl_user(), Get_attr_def(), Get_attr_min(), GetCreateAccount(), GetDataJrnPdf(), jrn::GetRow(), cl_user::insert_default_global_pref(), RecordJrn(), and cl_user::update_global_pref(). -


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/export__ouv_8php-source.html b/doc/developper/html/export__ouv_8php-source.html index 47d45b1af..bb12fe9a3 100644 --- a/doc/developper/html/export__ouv_8php-source.html +++ b/doc/developper/html/export__ouv_8php-source.html @@ -70,21 +70,39 @@ 00065 order by j_poste::text"); 00066 if ( $ret == null ) {echo 'Rien à exporter'; exit();} 00067 printf ("OUVERTURE\n"); -00068 foreach ($ret as $poste_id) { -00069 //var_dump($poste_id); echo "<br>"; -00070 $Poste=new poste($cn,$poste_id['j_poste']); -00071 $sql="j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max']; -00072 $result=$Poste->GetSoldeDetail($sql ); -00073 if ( $result['solde'] == 0 ) continue; -00074 if ( $result['debit'] > $result ['credit'] ) { -00075 printf ("d;%d;%12.4f\n",$Poste->id,$result['solde']); -00076 } else { -00077 printf ("c;%d;%12.4f\n",$Poste->id,$result['solde']); -00078 } -00079 } -00080 -00081 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00068 // check if the account are balanced +00069 $sum=0; +00070 foreach ($ret as $poste_id) { +00071 +00072 $Poste=new poste($cn,$poste_id['j_poste']); +00073 // fill the object +00074 $Poste->get(); +00075 // build sql stmt +00076 $sql="j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max']; +00077 $result=$Poste->GetSoldeDetail($sql ); +00078 $Poste->label=str_replace(';','',$Poste->label); +00079 +00080 if ( $result['solde'] == 0 ) continue; +00081 if ( $result['debit'] > $result ['credit'] ) { +00082 printf ("d;%d;%s;%12.4f\n",$Poste->id,$Poste->label,$result['solde']); +00083 $sum+=$result['solde']; +00084 } else { +00085 printf ("c;%d;%s;%12.4f\n",$Poste->id,$Poste->label,$result['solde']); +00086 $sum-=$result['solde']; +00087 } +00088 } +00089 // $sum must be equal to 0 +00090 // $sum > 0 then deb is too big +00091 // $sum < 0 then cred is too big +00092 if ( $sum != 0) +00093 { +00094 printf("ATTENTION : COMPTE NON EQUILIBRE\n "); +00095 $msg = ($sum > 0)?" Debit plus grand de $sum":"Credit plus grand de $sum"; +00096 printf ("DIFFERENCE = $msg \n"); +00097 +00098 } +00099 ?> +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/export__ouv_8php.html b/doc/developper/html/export__ouv_8php.html index a2b4d2f49..c99f1df31 100644 --- a/doc/developper/html/export__ouv_8php.html +++ b/doc/developper/html/export__ouv_8php.html @@ -28,9 +28,13 @@  $ret$sql = "j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max'] + $sum = 0 - $result = $Poste->GetSoldeDetail($sql ) + $sql = "j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max'] + + $result = $Poste->GetSoldeDetail($sql ) + +$Poste label = str_replace(';','',$Poste->label)

Detailed Description

@@ -89,7 +93,7 @@ Definition at line 4435 of file export_ouv.php. -

+

+Referenced by getFicheNameCode(), ShowJrn(), ShowMenuCompta(), u_ShowDossier(), and ViewStock().
@@ -111,9 +115,9 @@ Definition at line 35

-Definition at line 72 of file export_ouv.php. +Definition at line 77 of file export_ouv.php.

-Referenced by getFicheNameCode(), ShowJrn(), ShowMenuCompta(), u_ShowDossier(), and ViewStock().

@@ -148,7 +152,7 @@ Referenced by getFicheNa Definition at line 59 of file export_ouv.php. -

+

+Definition at line 76 of file export_ouv.php.
@@ -170,7 +174,7 @@ Definition at line 59

-Definition at line 71 of file export_ouv.php.

@@ -223,6 +227,31 @@ Definition at line 5557 of file export_ouv.php. +

+ + + + +
+ + + + +
$sum = 0
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file export_ouv.php.

@@ -273,7 +302,32 @@ Definition at line 3749 of file export_ouv.php.
-


Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +

+ + + + +
+ + + + +
$Poste label = str_replace(';','',$Poste->label)
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file export_ouv.php.

+


Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/facture_8inc_8php-source.html b/doc/developper/html/facture_8inc_8php-source.html index e21b621c0..c7447cad7 100644 --- a/doc/developper/html/facture_8inc_8php-source.html +++ b/doc/developper/html/facture_8inc_8php-source.html @@ -32,7 +32,6 @@ 00023 require_once('jrn.php'); 00024 require_once("class_document.php"); 00025 require_once("class_fiche.php"); -00032 var_dump($_REQUEST); 00033 // First we show the menu 00034 // If nothing is asked the propose a blank form 00035 // to enter a new invoice @@ -49,8 +48,8 @@ 00046 00047 if ( isset ($_REQUEST['url'])) 00048 { -00049 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); -00050 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); +00049 $retour=sprintf('<A class="mtitle" HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url'])); +00050 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url'])); 00051 } 00052 00053 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; @@ -68,18 +67,18 @@ 00066 { 00067 // reset all the paid flag because the checkbox is post only 00068 // when checked -00069 foreach ($_GET as $name=>$paid) +00069 foreach ($_GET as $name=>$paid) 00070 { -00071 list($ad) = sscanf($name,"set_jr_id%d"); +00071 list($ad) = sscanf($name,"set_jr_id%d"); 00072 if ( $ad == null ) continue; 00073 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00074 $Res=ExecSql($cn,$sql); 00075 00076 } 00077 // set a paid flag for the checked box -00078 foreach ($_GET as $name=>$paid) +00078 foreach ($_GET as $name=>$paid) 00079 { -00080 list ($id) = sscanf ($name,"rd_paid%d"); +00080 list ($id) = sscanf ($name,"rd_paid%d"); 00081 00082 if ( $id == null ) continue; 00083 // echo "Mise à jour $id"; @@ -89,7 +88,7 @@ 00087 } 00088 00089 } -00090 +00090 echo $retour; 00091 echo '<div class="u_redcontent">'; 00092 00093 @@ -111,26 +110,26 @@ 00109 00110 $w=new widget("select"); 00111 -00112 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00112 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00113 // User is already set User=new cl_user($cn); 00114 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00115 $w->selected=$current; 00116 00117 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); -00118 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00118 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; 00119 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', -00120 $qcode); +00120 $qcode); 00121 00122 // Show list of sell 00123 // Date - date of payment - Customer - amount -00124 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_type='VEN'" ; +00124 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_type='VEN'" ; 00125 $step=$_SESSION['g_pagesize']; 00126 $page=(isset($_GET['offset']))?$_GET['page']:1; 00127 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00128 00129 $l=""; 00130 // check if qcode contains something -00131 if ( $qcode != "" ) +00131 if ( $qcode != "" ) 00132 { 00133 // add a condition to filter on the quick code 00134 $l=" and jr_grpt_id in (select j_grpt from jrnx where j_qcode='$qcode') "; @@ -146,7 +145,7 @@ 00144 if ( $max_line !=0 ) 00145 echo $hid->Submit('paid','Mise à jour paiement'); 00146 echo '</FORM>'; -00147 echo $retour; +00147 echo $retour; 00148 00149 echo '</div>'; 00150 @@ -239,7 +238,7 @@ 00242 echo $form; 00243 echo '</div>'; 00244 } -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/facture_8inc_8php.html b/doc/developper/html/facture_8inc_8php.html index 363fe1342..2b385d3da 100644 --- a/doc/developper/html/facture_8inc_8php.html +++ b/doc/developper/html/facture_8inc_8php.html @@ -38,7 +38,7 @@ $w selected = $current - $qcode = (isset($_GET['qcode']))?$_GET['qcode']:"" + $qcode = (isset($_GET['qcode']))?$_GET['qcode']:""  $step = $_SESSION['g_pagesize'] @@ -323,7 +323,7 @@ Definition at line 112 - +
$qcode = (isset($_GET['qcode']))?$_GET['qcode']:"" $qcode = (isset($_GET['qcode']))?$_GET['qcode']:""
@@ -441,7 +441,7 @@ Definition at line
125

Definition at line 197 of file facture.inc.php.

-Referenced by action::SaveStage2(). +Referenced by action::SaveStage2().

@@ -543,7 +543,7 @@ Definition at line 196

Definition at line 194 of file facture.inc.php.

-Referenced by action::action(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetFicheJrn(), getFicheNameCode(), Supplier::GetFromPoste(), Customer::GetFromPoste(), InsertStockGoods(), action::myList(), and contact::Summary(). +Referenced by action::action(), action::get(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetFicheJrn(), getFicheNameCode(), Supplier::GetFromPoste(), Customer::GetFromPoste(), InsertStockGoods(), action::myList(), and contact::Summary().

@@ -646,7 +646,7 @@ Definition at line 115 Definition at line 100 of file facture.inc.php. -


Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche_8php-source.html b/doc/developper/html/fiche_8php-source.html index 70bc1f306..7367f1b1a 100644 --- a/doc/developper/html/fiche_8php-source.html +++ b/doc/developper/html/fiche_8php-source.html @@ -46,7 +46,7 @@ 00040 echo '<div class="u_tmenu">'; 00041 echo ShowMenuCompta($_SESSION['g_dossier']); 00042 echo '</div>'; -00043 echo JS_SEARCH_POSTE; +00043 echo JS_SEARCH_POSTE; 00044 00045 if ( !isset($sessid)) 00046 { @@ -175,7 +175,7 @@ 00169 echo "<h2 class=\"error\"> Pas d'accès </h2>"; 00170 else 00171 { -00172 $a=UpdateFiche($cn,$HTTP_POST_VARS); +00172 $a=UpdateFiche($cn,$HTTP_POST_VARS); 00173 } 00174 $fd_id=GetFicheDef($cn,$_POST["f_id"]); 00175 ViewFiche($cn,$fd_id); @@ -185,7 +185,7 @@ 00179 } 00180 html_page_stop(); 00181 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche_8php.html b/doc/developper/html/fiche_8php.html index 6051e9904..e3c82d8a3 100644 --- a/doc/developper/html/fiche_8php.html +++ b/doc/developper/html/fiche_8php.html @@ -75,7 +75,7 @@ Definition at line 35 of Definition at line 37 of file fiche.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__csv_8php-source.html b/doc/developper/html/fiche__csv_8php-source.html index 69d2e388a..e6f359f6d 100644 --- a/doc/developper/html/fiche__csv_8php-source.html +++ b/doc/developper/html/fiche__csv_8php-source.html @@ -60,7 +60,7 @@ 00055 $o=1; 00056 }else { 00057 printf(";%s",$attribut->ad_text); -00058 if ( $attribut->ad_id == ATTR_DEF_ACCOUNT +00058 if ( $attribut->ad_id == ATTR_DEF_ACCOUNT 00059 && isset ($_REQUEST['with_amount'])) 00060 echo ";debit;credit;solde"; 00061 } @@ -78,7 +78,7 @@ 00073 printf (";%s",$dattribut->av_text); 00074 // if solde resquested 00075 //-- -00076 if ( $dattribut->ad_id == ATTR_DEF_ACCOUNT +00076 if ( $dattribut->ad_id == ATTR_DEF_ACCOUNT 00077 && isset ($_REQUEST['with_amount'])) { 00078 $account=new poste ($cn,$dattribut->av_text); 00079 $solde=$account->GetSoldeDetail("j_tech_per between ".$_REQUEST['from_periode']. @@ -103,7 +103,7 @@ 00098 } 00099 exit; 00100 ?> -
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__csv_8php.html b/doc/developper/html/fiche__csv_8php.html index 0431b4d84..9d227c60c 100644 --- a/doc/developper/html/fiche__csv_8php.html +++ b/doc/developper/html/fiche__csv_8php.html @@ -212,7 +212,7 @@ Definition at line 3699 of file fiche_csv.php. -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__def_8inc_8php-source.html b/doc/developper/html/fiche__def_8inc_8php-source.html index cf07ee78f..f27431255 100644 --- a/doc/developper/html/fiche__def_8inc_8php-source.html +++ b/doc/developper/html/fiche__def_8inc_8php-source.html @@ -45,7 +45,7 @@ 00040 for ($i=0;$i<sizeof($all);$i++) 00041 { 00042 echo '<TR>'; -00043 echo $all[$i]->Display(); +00043 echo $all[$i]->Display(); 00044 echo "<TD>"; 00045 echo '<form method="post">'; 00046 $w=new widget('hidden'); @@ -80,7 +80,7 @@ 00075 echo '</form>'; 00076 echo '</div>'; 00077 } -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__def_8inc_8php.html b/doc/developper/html/fiche__def_8inc_8php.html index 67b5d2c14..bfae907ee 100644 --- a/doc/developper/html/fiche__def_8inc_8php.html +++ b/doc/developper/html/fiche__def_8inc_8php.html @@ -217,7 +217,7 @@ Definition at line

Definition at line 32 of file fiche_def.inc.php.

-Referenced by fiche_def_ref::fiche_def_ref(), fiche_def_ref::Get(), Get_fiche_def_ref(), GetBaseFicheDefault(), fiche_def_ref::Input(), and fiche_def_ref::Save(). +Referenced by fiche_def_ref::fiche_def_ref(), fiche_def_ref::Get(), Get_fiche_def_ref(), GetBaseFicheDefault(), fiche_def_ref::Input(), and fiche_def_ref::Save().

@@ -244,7 +244,7 @@ Referenced by fic

Definition at line 30 of file fiche_def.inc.php.

-Referenced by fiche_def_ref::fiche_def_ref(), fiche_def::Get(), Get_fiche_def_ref(), fiche_def::GetAll(), GetFicheDefRef(), and fiche_def_ref::Input(). +Referenced by fiche_def_ref::fiche_def_ref(), fiche_def::Get(), Get_fiche_def_ref(), fiche_def::GetAll(), GetFicheDefRef(), and fiche_def_ref::Input().

@@ -271,10 +271,10 @@ Referenced by fic

Definition at line 31 of file fiche_def.inc.php.

-Referenced by fiche_def_ref::fiche_def_ref(), fiche_def_ref::Get(), Get_fiche_def_ref(), fiche_def_ref::Input(), and fiche_def_ref::Save(). +Referenced by fiche_def_ref::fiche_def_ref(), fiche_def_ref::Get(), Get_fiche_def_ref(), fiche_def_ref::Input(), and fiche_def_ref::Save(). -


Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__inc_8php-source.html b/doc/developper/html/fiche__inc_8php-source.html index aefb9e9de..8889c4442 100644 --- a/doc/developper/html/fiche__inc_8php-source.html +++ b/doc/developper/html/fiche__inc_8php-source.html @@ -61,7 +61,7 @@ 00068 // Is a account given ? 00069 for ( $i = 0; $i < $p_inc;$i++) { 00070 //Except for the class base -00071 if ( ${"p_ad_id$i"} == ATTR_DEF_ACCOUNT ) { +00071 if ( ${"p_ad_id$i"} == ATTR_DEF_ACCOUNT ) { 00072 if (strlen (trim(${"p_av_text$i"})) == 0 or 00073 isNumber(${"p_av_text$i"}) == 0 ) 00074 { @@ -97,7 +97,7 @@ 00104 // Add it the jnt table 00105 // 5 is always for the account post 00106 $Sql=sprintf("insert into jnt_fic_att_value (f_id,ad_id) values (%d,%d)", -00107 $l_f_id,ATTR_DEF_ACCOUNT); +00107 $l_f_id,ATTR_DEF_ACCOUNT); 00108 $Res=ExecSql($p_cn,$Sql); 00109 00110 // Get the jft_id sequence (s_jnt_fic_att_value) @@ -137,7 +137,7 @@ 00144 // Add it the jnt table 00145 // 5 is always for the account post 00146 $Sql=sprintf("insert into jnt_fic_att_value (f_id,ad_id) values (%d,%d)", -00147 $l_f_id,ATTR_DEF_ACCOUNT); +00147 $l_f_id,ATTR_DEF_ACCOUNT); 00148 $Res=ExecSql($p_cn,$Sql); 00149 00150 // Get the jft_id sequence (s_jnt_fic_att_value) @@ -155,10 +155,10 @@ 00162 // Add the others attribut in jnt_fic_att_value and after in attr_value 00163 for ( $i = 0; $i < $p_inc;$i++) { 00164 //Except for the class base -00165 if ( ${"p_ad_id$i"} == ATTR_DEF_ACCOUNT ) continue; +00165 if ( ${"p_ad_id$i"} == ATTR_DEF_ACCOUNT ) continue; 00166 00167 // Special treatment for QuickCode -00168 if ( ${"p_ad_id$i"} == ATTR_DEF_QUICKCODE ) { +00168 if ( ${"p_ad_id$i"} == ATTR_DEF_QUICKCODE ) { 00169 $sql=sprintf("select insert_quick_code(%d,'%s')", 00170 $l_f_id,FormatString(${"p_av_text$i"})); 00171 $Res=ExecSql($p_cn,$sql); @@ -173,7 +173,7 @@ 00180 $l_jft_id=GetSequence($p_cn,'s_jnt_fic_att_value'); 00181 00182 // test the vat rate -00183 if ( ${"p_ad_id$i"} == ATTR_DEF_TVA ) { +00183 if ( ${"p_ad_id$i"} == ATTR_DEF_TVA ) { 00184 // is a rate given 00185 if ( strlen(trim(${"p_av_text$i"})) != 0 and 00186 isNumber(${"p_av_text$i"}) == 1) { @@ -204,12 +204,12 @@ 00227 00228 $ch_col="</TD><TD>"; 00229 $ch_li='</TR><TR>'; -00230 echo '<FORM action="fiche.php" method="post" name="fiche">'; -00231 echo '<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; +00230 echo '<FORM action="fiche.php" method="post" name="fiche">'; +00231 echo '<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; 00232 $l_sessid=$_REQUEST['PHPSESSID']; 00233 -00234 echo JS_SHOW_TVA; -00235 echo JS_SEARCH_POSTE; +00234 echo JS_SHOW_TVA; +00235 echo JS_SEARCH_POSTE; 00236 echo "<TABLE>"; 00237 if ($p_array == null) { 00238 // Array is null so we display a blank form @@ -225,22 +225,22 @@ 00248 $Res=ExecSql($p_cn,$sql); 00249 $Max=pg_NumRows($Res); 00250 // Put the card modele id (fiche_def.fd_id) -00251 echo '<INPUT TYPE="HIDDEN" name="fd_id" value="'.$p_type.'">'; +00251 echo '<INPUT TYPE="HIDDEN" name="fd_id" value="'.$p_type.'">'; 00252 for ($i=0;$i < $Max;$i++) { 00253 $l_line=pg_fetch_array($Res,$i); 00254 00255 // The number of the attribute -00256 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="ad_id%d" value="%s">', +00256 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="ad_id%d" value="%s">', 00257 $i,$l_line['ad_id']); 00258 00259 $but_search_poste=""; 00260 // Javascript for searching the account -00261 if ( $l_line ['ad_id'] == ATTR_DEF_ACCOUNT ) { +00261 if ( $l_line ['ad_id'] == ATTR_DEF_ACCOUNT ) { 00262 $ctl_name="av_text$i"; 00263 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$l_sessid.'\',\''.$ctl_name.'\')">'; 00264 } 00265 // Javascript for showing the tva -00266 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { +00266 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { 00267 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Montre" OnClick="ShowTva(\''.$l_sessid.'\', \'av_text'.$i.'\')">'; 00268 } 00269 // content of the attribute @@ -249,8 +249,8 @@ 00272 } 00273 echo '</TR>'; 00274 echo '</TABLE>'; -00275 echo '<INPUT TYPE="HIDDEN" name="inc" value="'.$Max.'">'; -00276 echo '<INPUT TYPE="SUBMIT" name="add_fiche" value="ajoute">'; +00275 echo '<INPUT TYPE="HIDDEN" name="inc" value="'.$Max.'">'; +00276 echo '<INPUT TYPE="SUBMIT" name="add_fiche" value="ajoute">'; 00277 echo '</FORM>'; 00278 }else { 00279 // Array is not null so we have to find the card's data from the database @@ -270,9 +270,9 @@ 00293 $Max=pg_NumRows($Res); 00294 echo_debug('fiche_inc.php',__LINE__,"Max ==== $Max"); 00295 -00296 echo '<INPUT TYPE="HIDDEN" name="f_id" value="'.$p_type.'">'; -00297 echo '<INPUT TYPE="HIDDEN" name="f_label" value="'.$label.'">'; -00298 echo '<INPUT TYPE="HIDDEN" name="max" value="'.$Max.'">'; +00296 echo '<INPUT TYPE="HIDDEN" name="f_id" value="'.$p_type.'">'; +00297 echo '<INPUT TYPE="HIDDEN" name="f_label" value="'.$label.'">'; +00298 echo '<INPUT TYPE="HIDDEN" name="max" value="'.$Max.'">'; 00299 00300 for ($i=0;$i < $Max;$i++) { 00301 // fetch the data @@ -282,8 +282,8 @@ 00305 // useful when we want to update the PCMN 00306 00307 $but_search_poste=""; -00308 if ( $l_line['ad_id'] == ATTR_DEF_ACCOUNT ) { -00309 printf('<INPUT TYPE="HIDDEN" name="class" value="%s">', +00308 if ( $l_line['ad_id'] == ATTR_DEF_ACCOUNT ) { +00309 printf('<INPUT TYPE="HIDDEN" name="class" value="%s">', 00310 $l_line['av_text']); 00311 // Javascript for searching the account 00312 $ctl_name="av_text$i"; @@ -291,16 +291,16 @@ 00314 } 00315 00316 // Javascript for showing the tva -00317 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { +00317 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { 00318 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Montre" OnClick="ShowTva(\''.$l_sessid.'\',\'av_text'.$i.'\')">'; 00319 } 00320 00321 // hide ad_id -00322 $ad=sprintf('<input type="hidden" name="ad_id%d" value="%s">', +00322 $ad=sprintf('<input type="hidden" name="ad_id%d" value="%s">', 00323 $l_line['ad_id'],$l_line['av_text']); 00324 00325 // in hidden we put the jft_id -00326 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="jft_id%d" value="%s">', +00326 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="jft_id%d" value="%s">', 00327 $i,$l_line['jft_id']); 00328 printf ('<TR><TD> %s </TD><TD><INPUT TYPE="TEXT" NAME="av_text%d" VALUE="%s">%s %s %s</TD></TR>', 00329 $l_line['ad_text'], $i, $l_line['av_text'],$Hid,$but_search_poste,$ad); @@ -308,7 +308,7 @@ 00331 } 00332 echo '</TR>'; 00333 echo '</TABLE>'; -00334 echo '<INPUT TYPE="SUBMIT" name="update_fiche" value="Mis à jour">'; +00334 echo '<INPUT TYPE="SUBMIT" name="update_fiche" value="Mis à jour">'; 00335 echo '</FORM>'; 00336 } 00337 } @@ -341,7 +341,7 @@ 00404 $max_line=CountSql($p_cn,"select f_id,av_text from 00405 fiche join jnt_fic_att_value using (f_id) 00406 join attr_value using (jft_id) -00407 where fd_id='".$p_type."' and ad_id=".ATTR_DEF_NAME." order by f_id"); +00407 where fd_id='".$p_type."' and ad_id=".ATTR_DEF_NAME." order by f_id"); 00408 $sql_limit=" limit ".$step; 00409 $sql_offset=" offset ".$offset; 00410 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); @@ -358,795 +358,799 @@ 00421 $Max=pg_NumRows($Res); 00422 echo $bar; 00423 -00424 for ( $i = 0; $i < $Max; $i++) { -00425 $l_line=pg_fetch_array($Res,$i); -00426 $div="<DIV>"; -00427 $span_mod='<span class="mtitle"><A class="mtitle2" href="fiche.php?action=detail&fiche_id='.$l_line['f_id'].'"> Modifie</A></SPAN>'; -00428 $span_del='<span class="mtitle2" ALIGN="left">'. -00429 '<A class="mtitle2" href="fiche.php?f_fd_id='.$p_type.'&action=delete&fiche_id='.$l_line['f_id']. -00430 '"> delete</A></SPAN>'; -00431 $span_id='<SPAN style="background-color:lightgrey;">'.$l_line['j_qcode']."</SPAN>"; -00432 if ( $i %2 == 0 ) -00433 $div='<DIV style="background-color:#DDE6FF;">'; -00434 echo $div.$span_del.'&nbsp;'.'&nbsp;'.'&nbsp;'.'&nbsp;'.'&nbsp;'.'&nbsp;'. -00435 $span_mod."&nbsp;"."&nbsp;"."&nbsp;".$span_id."&nbsp;"."&nbsp;"."&nbsp;".$l_line['av_text']."</DIV>"; -00436 } -00437 echo '<FORM METHOD="POST" action="fiche.php">'; -00438 echo '<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; -00439 echo '<INPUT TYPE="SUBMIT" name="add" Value="Ajout fiche">'; -00440 echo '</FORM>'; -00441 echo $bar; -00442 -00443 } -00458 function GetNextFiche($p_cn,$p_base) { -00459 $Res=ExecSql($p_cn,"select max(pcm_val) as maxcode from tmp_pcmn where pcm_val_parent = $p_base"); -00460 $Max=pg_NumRows($Res); -00461 echo_debug('fiche_inc.php',__LINE__,"$Max=pg_NumRows"); -00462 $l_line=pg_fetch_array($Res,0); -00463 $ret=$l_line['maxcode']; -00464 if ( $ret == "" ) { -00465 $ret=sprintf("%d%04d",$p_base,0); -00466 return $ret+1; -00467 -00468 } -00469 -00470 echo_debug('fiche_inc.php',__LINE__,"ret $ret"); -00471 return $ret+1; -00472 } -00488 function ViewFicheDetail($p_cn,$p_id) { -00489 -00490 // Retrieve the fiche_def.fd_id of the card -00491 $fd_id=GetFicheDef($p_cn,$p_id); -00492 -00493 //Update the default attribute of a card if is model has changed -00494 $sql="insert into jnt_fic_att_value (f_id,ad_id) -00495 select $p_id, ad_id -00496 from jnt_fic_attr -00497 where fd_id=$fd_id and -00498 ad_id not in (select ad_id from jnt_fic_att_value where -00499 f_id=$p_id)"; -00500 -00501 $Res=ExecSql($p_cn,$sql); -00502 -00503 // add a empty string to attr_value -00504 $sql="insert into attr_value select jft_id,'' from jnt_fic_att_value -00505 where f_id=$p_id and jft_id not in (select jft_id from attr_value natural join jnt_fic_att_value where -00506 f_id = $p_id)"; -00507 $Res=ExecSql($p_cn,$sql); -00508 -00509 EncodeFiche ($p_cn,$p_id,1); -00510 } -00526 function UpdateFiche($p_cn,$p_array) { -00527 -00528 echo_debug ('fiche_inc.php',__LINE__,"UpdateFiche"); -00529 $tva_error=false; -00530 foreach ( $p_array as $key=> $element) { -00531 echo_debug('fiche_inc.php',__LINE__,"UF $key => $element"); -00532 ${"$key"}=$element; -00533 // Get the name -00534 if ( $key == "ad_id".ATTR_DEF_NAME ) { -00535 $label=$element; -00536 if (strlen(trim($label))== 0 ) -00537 return; -00538 } -00539 // Get the class base -00540 if ( $key=="ad_id".ATTR_DEF_ACCOUNT) { -00541 $class=$element; +00424 echo '<table>'; +00425 for ( $i = 0; $i < $Max; $i++) { +00426 $l_line=pg_fetch_array($Res,$i); +00427 if ( $i%2 == 0) +00428 echo '<TR class="odd">'; +00429 else +00430 echo '<TR class="even">'; +00431 +00432 $span_mod='<TD><A href="fiche.php?action=detail&fiche_id='.$l_line['f_id'].'">'.$l_line['j_qcode'].'</A></TD>'; +00433 $span_del='<TD>'. +00434 '<A href="fiche.php?f_fd_id='.$p_type.'&action=delete&fiche_id='.$l_line['f_id']. +00435 '"> delete</A></td>'; +00436 +00437 echo $span_del.$span_mod.'<TD>'.$l_line['av_text']."</TD>"; +00438 echo '</tr>'; +00439 } +00440 echo '</table>'; +00441 echo '<FORM METHOD="POST" action="fiche.php">'; +00442 echo '<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; +00443 echo '<INPUT TYPE="SUBMIT" name="add" Value="Ajout fiche">'; +00444 echo '</FORM>'; +00445 echo $bar; +00446 +00447 } +00462 function GetNextFiche($p_cn,$p_base) { +00463 $Res=ExecSql($p_cn,"select max(pcm_val) as maxcode from tmp_pcmn where pcm_val_parent = $p_base"); +00464 $Max=pg_NumRows($Res); +00465 echo_debug('fiche_inc.php',__LINE__,"$Max=pg_NumRows"); +00466 $l_line=pg_fetch_array($Res,0); +00467 $ret=$l_line['maxcode']; +00468 if ( $ret == "" ) { +00469 $ret=sprintf("%d%04d",$p_base,0); +00470 return $ret+1; +00471 +00472 } +00473 +00474 echo_debug('fiche_inc.php',__LINE__,"ret $ret"); +00475 return $ret+1; +00476 } +00492 function ViewFicheDetail($p_cn,$p_id) { +00493 +00494 // Retrieve the fiche_def.fd_id of the card +00495 $fd_id=GetFicheDef($p_cn,$p_id); +00496 +00497 //Update the default attribute of a card if is model has changed +00498 $sql="insert into jnt_fic_att_value (f_id,ad_id) +00499 select $p_id, ad_id +00500 from jnt_fic_attr +00501 where fd_id=$fd_id and +00502 ad_id not in (select ad_id from jnt_fic_att_value where +00503 f_id=$p_id)"; +00504 +00505 $Res=ExecSql($p_cn,$sql); +00506 +00507 // add a empty string to attr_value +00508 $sql="insert into attr_value select jft_id,'' from jnt_fic_att_value +00509 where f_id=$p_id and jft_id not in (select jft_id from attr_value natural join jnt_fic_att_value where +00510 f_id = $p_id)"; +00511 $Res=ExecSql($p_cn,$sql); +00512 +00513 EncodeFiche ($p_cn,$p_id,1); +00514 } +00530 function UpdateFiche($p_cn,$p_array) { +00531 +00532 echo_debug ('fiche_inc.php',__LINE__,"UpdateFiche"); +00533 $tva_error=false; +00534 foreach ( $p_array as $key=> $element) { +00535 echo_debug('fiche_inc.php',__LINE__,"UF $key => $element"); +00536 ${"$key"}=$element; +00537 // Get the name +00538 if ( $key == "ad_id".ATTR_DEF_NAME ) { +00539 $label=$element; +00540 if (strlen(trim($label))== 0 ) +00541 return; 00542 } -00543 // Get the vat and -00544 // test the vat rate -00545 if ( $key == 'ad_id'.ATTR_DEF_TVA ) { -00546 // is a valid rate ? -00547 if ( strlen(trim($element)) == 0 ) continue; -00548 if ( CountSql($p_cn,"select * from tva_rate where tva_id='".$element."'") == 0 ) { -00549 // warning -00550 echo_error('invalid rate') ; -00551 echo '<script> -00552 alert("Attention tva invalid remis à sa valeur par défaut "); -00553 </script>'; -00554 $tva_error=true; -00555 } -00556 } -00557 } -00558 // If each card has it own account must also update the tmp_pcm table -00559 // -00560 $fd_ref=GetFicheDefRef($p_cn,$fiche); -00561 // Update all the others data -00562 for ( $i =0 ; $i < $max ; $i++) { -00563 // Format text -00564 $text=FormatString( ${"av_text$i"}); -00565 // Check if we don't try to update a QUICK CODE -00566 $Res=ExecSql($p_cn,"select ad_id from jnt_fic_att_value where jft_id=".${"jft_id$i"}); -00567 $a=pg_fetch_array($Res,0); -00568 if ( $a['ad_id'] != ATTR_DEF_QUICKCODE) -00569 { -00570 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", -00571 $text, -00572 ${"jft_id$i"}); -00573 } -00574 else -00575 { -00576 $sql=sprintf("select update_quick_code(%d,'%s')", -00577 ${"jft_id$i"}, -00578 $text); -00579 } -00580 // Execute SQL -00581 $Res=ExecSql($p_cn,$sql); -00582 } -00583 // Update tva to his default value -00584 if ( $tva_error == true ) { -00585 $sql="update attr_value set av_text=1 where jft_id = ( select jft_id from jnt_fic_att_value -00586 natural join fiche natural join attr_def -00587 where ad_id=".ATTR_DEF_TVA." and f_id=$fiche)"; -00588 $Res=ExecSql($p_cn,$sql); -00589 } -00590 -00591 // Update the PCMN if needed -00592 $sql="select av_text from attr_value natural join jnt_fic_att_value -00593 where f_id=$fiche and ad_id=".ATTR_DEF_ACCOUNT; -00594 $Res=ExecSql($p_cn,$sql); -00595 -00596 if ( pg_NumRows($Res) != 0 ) { -00597 // it means that a account exists -00598 // Retrieve the name and the ad_id 5 -00599 $f=pg_fetch_array($Res,0); -00600 $class_old=$f['av_text']; -00601 -00602 // if the class changed -00603 if ( $class != $class_old and $class != "" ) { -00604 if ( CountSql($p_cn,"select * from jrnx where j_poste=$class") or -00605 CountSql($p_cn,"select * from jrnx where j_poste=$class_old" )) -00606 { -00607 // No change if the account is already used -00608 echo_error("Not possible to change the account, already used"); -00609 } else { -00610 if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) ==0) -00611 // we have to insert -00612 { -00613 // First we must use a parent -00614 $parent=GetParent($p_cn,$class); -00615 $Res=ExecSql($p_cn, -00616 "insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) -00617 values ($class,'$f_label',$parent)"); -00618 } -00619 } -00620 $class=$class_old; -00621 } else // $class="" -00622 { -00623 -00624 echo_debug('fiche_inc.php',__LINE__,"new account "); -00625 $class=$class_old; -00626 if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) == 0 ) { -00627 // First we must use a parent -00628 $parent=GetParent($p_cn,$class); -00629 $Res=ExecSql($p_cn, -00630 "insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) -00631 values ($class,'$f_label',$parent)"); -00632 } -00633 } -00634 -00635 -00636 // Change the name in TMP_PCMN -00637 // Get the new name -00638 $f_label=FormatString($f_label); -00639 ExecSql($p_cn,"update tmp_pcmn set pcm_lib='".$f_label."' where pcm_val=".$class); -00640 -00641 -00642 } -00643 // Update of TMP_PCMN if a class base is given (ad_id=5) +00543 // Get the class base +00544 if ( $key=="ad_id".ATTR_DEF_ACCOUNT) { +00545 $class=$element; +00546 } +00547 // Get the vat and +00548 // test the vat rate +00549 if ( $key == 'ad_id'.ATTR_DEF_TVA ) { +00550 // is a valid rate ? +00551 if ( strlen(trim($element)) == 0 ) continue; +00552 if ( CountSql($p_cn,"select * from tva_rate where tva_id='".$element."'") == 0 ) { +00553 // warning +00554 echo_error('invalid rate') ; +00555 echo '<script> +00556 alert("Attention tva invalid remis à sa valeur par défaut "); +00557 </script>'; +00558 $tva_error=true; +00559 } +00560 } +00561 } +00562 // If each card has it own account must also update the tmp_pcm table +00563 // +00564 $fd_ref=GetFicheDefRef($p_cn,$fiche); +00565 // Update all the others data +00566 for ( $i =0 ; $i < $max ; $i++) { +00567 // Format text +00568 $text=FormatString( ${"av_text$i"}); +00569 // Check if we don't try to update a QUICK CODE +00570 $Res=ExecSql($p_cn,"select ad_id from jnt_fic_att_value where jft_id=".${"jft_id$i"}); +00571 $a=pg_fetch_array($Res,0); +00572 if ( $a['ad_id'] != ATTR_DEF_QUICKCODE) +00573 { +00574 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", +00575 $text, +00576 ${"jft_id$i"}); +00577 } +00578 else +00579 { +00580 $sql=sprintf("select update_quick_code(%d,'%s')", +00581 ${"jft_id$i"}, +00582 $text); +00583 } +00584 // Execute SQL +00585 $Res=ExecSql($p_cn,$sql); +00586 } +00587 // Update tva to his default value +00588 if ( $tva_error == true ) { +00589 $sql="update attr_value set av_text=1 where jft_id = ( select jft_id from jnt_fic_att_value +00590 natural join fiche natural join attr_def +00591 where ad_id=".ATTR_DEF_TVA." and f_id=$fiche)"; +00592 $Res=ExecSql($p_cn,$sql); +00593 } +00594 +00595 // Update the PCMN if needed +00596 $sql="select av_text from attr_value natural join jnt_fic_att_value +00597 where f_id=$fiche and ad_id=".ATTR_DEF_ACCOUNT; +00598 $Res=ExecSql($p_cn,$sql); +00599 +00600 if ( pg_NumRows($Res) != 0 ) { +00601 // it means that a account exists +00602 // Retrieve the name and the ad_id 5 +00603 $f=pg_fetch_array($Res,0); +00604 $class_old=$f['av_text']; +00605 +00606 // if the class changed +00607 if ( $class != $class_old and $class != "" ) { +00608 if ( CountSql($p_cn,"select * from jrnx where j_poste=$class") or +00609 CountSql($p_cn,"select * from jrnx where j_poste=$class_old" )) +00610 { +00611 // No change if the account is already used +00612 echo_error("Not possible to change the account, already used"); +00613 } else { +00614 if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) ==0) +00615 // we have to insert +00616 { +00617 // First we must use a parent +00618 $parent=GetParent($p_cn,$class); +00619 $Res=ExecSql($p_cn, +00620 "insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) +00621 values ($class,'$f_label',$parent)"); +00622 } +00623 } +00624 $class=$class_old; +00625 } else // $class="" +00626 { +00627 +00628 echo_debug('fiche_inc.php',__LINE__,"new account "); +00629 $class=$class_old; +00630 if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) == 0 ) { +00631 // First we must use a parent +00632 $parent=GetParent($p_cn,$class); +00633 $Res=ExecSql($p_cn, +00634 "insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) +00635 values ($class,'$f_label',$parent)"); +00636 } +00637 } +00638 +00639 +00640 // Change the name in TMP_PCMN +00641 // Get the new name +00642 $f_label=FormatString($f_label); +00643 ExecSql($p_cn,"update tmp_pcmn set pcm_lib='".$f_label."' where pcm_val=".$class); 00644 00645 -00646 -00647 } -00660 function EncodeModele($p_js) -00661 { -00662 echo '<H2 CLASS="info"> Ajout d\'un modèle</H2>'; -00663 echo '<FORM ACTION="fiche.php" METHOD="post">'; -00664 echo '<BR>Libellé <INPUT TYPE="TEXT" NAME="nom_mod">'; -00665 echo '<BR>Classe de base <INPUT TYPE="TEXT" NAME="class_base">'; -00666 echo $p_js; -00667 echo '<INPUT TYPE="HIDDEN" NAME="inc" VALUE="1">'; -00668 echo '<BR><INPUT TYPE="SUBMIT" name="record_model" VALUE="Ajoute modèle">'; -00669 echo '</FORM>'; -00670 } -00686 function DefModele ($p_cn,$p_js,$p_array=null,$p_ligne=1) -00687 { -00688 echo_debug('fiche_inc.php',__LINE__,"DefModele ($p_array,$p_ligne=1) "); -00689 -00690 // Creating form -00691 $display='<FORM ACTION="fiche.php" METHOD="POST">'; +00646 } +00647 // Update of TMP_PCMN if a class base is given (ad_id=5) +00648 +00649 +00650 +00651 } +00664 function EncodeModele($p_js) +00665 { +00666 echo '<H2 CLASS="info"> Ajout d\'un modèle</H2>'; +00667 echo '<FORM ACTION="fiche.php" METHOD="post">'; +00668 echo '<BR>Libellé <INPUT TYPE="TEXT" NAME="nom_mod">'; +00669 echo '<BR>Classe de base <INPUT TYPE="TEXT" NAME="class_base">'; +00670 echo $p_js; +00671 echo '<INPUT TYPE="HIDDEN" NAME="inc" VALUE="1">'; +00672 echo '<BR><INPUT TYPE="SUBMIT" name="record_model" VALUE="Ajoute modèle">'; +00673 echo '</FORM>'; +00674 } +00689 function DefModele ($p_cn,$p_js,$p_array=null,$p_ligne=1) +00690 { +00691 echo_debug('fiche_inc.php',__LINE__,"DefModele ($p_array,$p_ligne=1) "); 00692 -00693 // Number of line of the card -00694 $display.='<INPUT TYPE="HIDDEN" NAME="INC" VALUE="'.$p_ligne.'">'; +00693 // Creating form +00694 $display='<FORM ACTION="fiche.php" METHOD="POST">'; 00695 -00696 // Table of input -00697 $display.='<TABLE BORDER="0" CELLSPACING="0">'; -00698 -00699 -00700 //Name of the CARD (fiche_def.fd_label) -00701 $display.='<TR><TD> Catégorie de fiche </TD>'; -00702 $display.='<TD><INPUT TYPE="INPUT" NAME="nom_mod">'; -00703 $display.='</TD></TR>'; -00704 -00705 // Class base fiche_def.fd_class_base (optional) -00706 $display.='<TR><TD> Classe de base </TD>'; -00707 $display.='<TD><INPUT TYPE="INPUT" NAME="class_base"> '.$p_js; -00708 $display.='</TD></TR>'; -00709 // Checkbox for the creation of a post -00710 $display.='<TR><TD> <INPUT TYPE="CHECKBOX" NAME="create" UNCHECKED>Create accounts for each</TD></TR>'; -00711 -00712 //display the different template -00713 $ref=Get_fiche_def_ref($p_cn); +00696 // Number of line of the card +00697 $display.='<INPUT TYPE="HIDDEN" NAME="INC" VALUE="'.$p_ligne.'">'; +00698 +00699 // Table of input +00700 $display.='<TABLE BORDER="0" CELLSPACING="0">'; +00701 +00702 +00703 //Name of the CARD (fiche_def.fd_label) +00704 $display.='<TR><TD> Catégorie de fiche </TD>'; +00705 $display.='<TD><INPUT TYPE="INPUT" NAME="nom_mod">'; +00706 $display.='</TD></TR>'; +00707 +00708 // Class base fiche_def.fd_class_base (optional) +00709 $display.='<TR><TD> Classe de base </TD>'; +00710 $display.='<TD><INPUT TYPE="INPUT" NAME="class_base"> '.$p_js; +00711 $display.='</TD></TR>'; +00712 // Checkbox for the creation of a post +00713 $display.='<TR><TD> <INPUT TYPE="CHECKBOX" NAME="create" CHECKED>Cr&eacute;ation automatique du poste comptable</TD></TR>'; 00714 -00715 // check if $ref is an array -00716 // and display the choice +00715 //display the different template +00716 $ref=Get_fiche_def_ref($p_cn); 00717 -00718 // select by default the first choice -00719 $check="CHECKED"; -00720 if ( sizeof($ref) ) { -00721 foreach ($ref as $i=>$v) { -00722 $display.='<TR><TD COLSPAN="2">'; -00723 -00724 $display.='<INPUT TYPE="RADIO" NAME="FICHE_REF" VALUE="'.$v['id'].'"'.$check.'>'; -00725 $display.=$v['text']; -00726 // if a class base exist in fiche_def_ref, we display it -00727 if ( sizeof ($v['class']) != 0 ) -00728 $display.="&nbsp;&nbsp<I>Class base = ".$v['class']."</I>"; -00729 $display.="</TD></TR>"; -00730 $check=""; -00731 } -00732 -00733 } -00734 // closing the form -00735 $display.='</TABLE>'; -00736 $display.='<INPUT TYPE="SUBMIT" NAME="add_modele" VALUE="Sauve">'; -00737 $display.='</FORM>'; -00738 -00739 // display it -00740 echo $display; +00718 // check if $ref is an array +00719 // and display the choice +00720 +00721 // select by default the first choice +00722 $check="CHECKED"; +00723 if ( sizeof($ref) ) { +00724 foreach ($ref as $i=>$v) { +00725 $display.='<TR><TD COLSPAN="2">'; +00726 +00727 $display.='<INPUT TYPE="RADIO" NAME="FICHE_REF" VALUE="'.$v['id'].'"'.$check.'>'; +00728 $display.=$v['text']; +00729 // if a class base exist in fiche_def_ref, we display it +00730 if ( sizeof ($v['class']) != 0 ) +00731 $display.="&nbsp;&nbsp<I>Class base = ".$v['class']."</I>"; +00732 $display.="</TD></TR>"; +00733 $check=""; +00734 } +00735 +00736 } +00737 // closing the form +00738 $display.='</TABLE>'; +00739 $display.='<INPUT TYPE="SUBMIT" NAME="add_modele" VALUE="Sauve">'; +00740 $display.='</FORM>'; 00741 -00742 } -00758 function AddModele($p_cn,$p_array) { -00759 echo_debug('fiche_inc.php',__LINE__,"AddModele"); -00760 // Show what we receive for debug purpose only -00761 // -00762 foreach ( $p_array as $key=>$element ) { -00763 echo_debug('fiche_inc.php',__LINE__,"p_$key $element"); -00764 ${"p_$key"}=$element; -00765 } -00766 // Format correctly the name of the cat. of card -00767 $p_nom_mod=FormatString($p_nom_mod); -00768 echo_debug('fiche_inc.php',__LINE__,"Adding $p_nom_mod"); -00769 // Format the p_class_base -00770 // must be an integer -00771 if ( isNumber($p_class_base) == 0 && FormatString($p_class_base) != null ) { -00772 echo_error ('p_class_base is NOT a number'); -00773 } -00774 if ( strlen(trim($p_nom_mod)) == 0 ) -00775 return; -00776 -00777 // $p_FICHE_REF cannot be null !!! (== fiche_def_ref.frd_id -00778 if (! isset ($p_FICHE_REF) or strlen($p_FICHE_REF) == 0 ) { -00779 echo_error ("AddModele : fiche_ref MUST NOT be null or empty"); -00780 return; -00781 } -00782 // build the sql request for fiche_def -00783 // and insert into fiche_def -00784 // if p_class_base is null get the default class base from -00785 // fiche_def_ref -00786 if ( FormatString($p_class_base) == null ) -00787 { // p_class is null -00788 // So we take the default one -00789 $p_class_base=GetBaseFicheDefault($p_cn,$p_FICHE_REF); -00790 } -00791 // Set the value of fiche_def.fd_create_account -00792 if ( isset($p_create)) -00793 $p_create='true'; -00794 else -00795 $p_create='false'; -00796 -00797 // Class is valid ? -00798 if ( FormatString($p_class_base) != null) { +00742 // display it +00743 echo $display; +00744 +00745 } +00761 function AddModele($p_cn,$p_array) { +00762 echo_debug('fiche_inc.php',__LINE__,"AddModele"); +00763 // Show what we receive for debug purpose only +00764 // +00765 foreach ( $p_array as $key=>$element ) { +00766 echo_debug('fiche_inc.php',__LINE__,"p_$key $element"); +00767 ${"p_$key"}=$element; +00768 } +00769 // Format correctly the name of the cat. of card +00770 $p_nom_mod=FormatString($p_nom_mod); +00771 echo_debug('fiche_inc.php',__LINE__,"Adding $p_nom_mod"); +00772 // Format the p_class_base +00773 // must be an integer +00774 if ( isNumber($p_class_base) == 0 && FormatString($p_class_base) != null ) { +00775 echo_error ('p_class_base is NOT a number'); +00776 } +00777 if ( strlen(trim($p_nom_mod)) == 0 ) +00778 return; +00779 +00780 // $p_FICHE_REF cannot be null !!! (== fiche_def_ref.frd_id +00781 if (! isset ($p_FICHE_REF) or strlen($p_FICHE_REF) == 0 ) { +00782 echo_error ("AddModele : fiche_ref MUST NOT be null or empty"); +00783 return; +00784 } +00785 // build the sql request for fiche_def +00786 // and insert into fiche_def +00787 // if p_class_base is null get the default class base from +00788 // fiche_def_ref +00789 if ( FormatString($p_class_base) == null ) +00790 { // p_class is null +00791 // So we take the default one +00792 $p_class_base=GetBaseFicheDefault($p_cn,$p_FICHE_REF); +00793 } +00794 // Set the value of fiche_def.fd_create_account +00795 if ( isset($p_create)) +00796 $p_create='true'; +00797 else +00798 $p_create='false'; 00799 -00800 // p_class is a valid number -00801 $sql=sprintf("insert into fiche_def(fd_label,fd_class_base,frd_id,fd_create_account) -00802 values ('%s',%s,%d,'%s')", -00803 $p_nom_mod,$p_class_base,$p_FICHE_REF,$p_create); -00804 $Res=ExecSql($p_cn,$sql); -00805 -00806 // p_class must be added to tmp_pcmn -00807 $sql=sprintf("select account_add(%d,'%s')", -00808 $p_class_base,$p_nom_mod); -00809 -00810 $Res=ExecSql($p_cn,$sql); -00811 -00812 // Get the fd_id -00813 $fd_id=GetSequence($p_cn,'s_fdef'); +00800 // Class is valid ? +00801 if ( FormatString($p_class_base) != null) { +00802 +00803 // p_class is a valid number +00804 $sql=sprintf("insert into fiche_def(fd_label,fd_class_base,frd_id,fd_create_account) +00805 values ('%s',%s,%d,'%s')", +00806 $p_nom_mod,$p_class_base,$p_FICHE_REF,$p_create); +00807 $Res=ExecSql($p_cn,$sql); +00808 +00809 // p_class must be added to tmp_pcmn +00810 $sql=sprintf("select account_add(%d,'%s')", +00811 $p_class_base,$p_nom_mod); +00812 +00813 $Res=ExecSql($p_cn,$sql); 00814 -00815 // Add the class_base if needed -00816 -00817 if ( $p_create=='true' ) { -00818 $sql=sprintf("insert into jnt_fic_attr(fd_id,ad_id) -00819 values (%d,%d)",$fd_id,ATTR_DEF_ACCOUNT); -00820 $Res=ExecSql($p_cn,$sql); -00821 } -00822 } else { -00823 //There is no class base not even as default -00824 $sql=sprintf("insert into fiche_def(fd_label,frd_id,fd_create_account) values ('%s',%d,'%s')", -00825 $p_nom_mod,$p_FICHE_REF,$p_create); -00826 -00827 $Res=ExecSql($p_cn,$sql); -00828 -00829 // Get the fd_id -00830 $fd_id=GetSequence($p_cn,'s_fdef'); +00815 // Get the fd_id +00816 $fd_id=GetSequence($p_cn,'s_fdef'); +00817 +00818 // Add the class_base if needed +00819 +00820 if ( $p_create=='true' ) { +00821 $sql=sprintf("insert into jnt_fic_attr(fd_id,ad_id) +00822 values (%d,%d)",$fd_id,ATTR_DEF_ACCOUNT); +00823 $Res=ExecSql($p_cn,$sql); +00824 } +00825 } else { +00826 //There is no class base not even as default +00827 $sql=sprintf("insert into fiche_def(fd_label,frd_id,fd_create_account) values ('%s',%d,'%s')", +00828 $p_nom_mod,$p_FICHE_REF,$p_create); +00829 +00830 $Res=ExecSql($p_cn,$sql); 00831 -00832 } -00833 -00834 // Get the default attr_def from attr_min -00835 $def_attr=Get_attr_min($p_cn,$p_FICHE_REF); +00832 // Get the fd_id +00833 $fd_id=GetSequence($p_cn,'s_fdef'); +00834 +00835 } 00836 -00837 //if defaut attr not null -00838 // build the sql insert for the table attr_def -00839 if (sizeof($def_attr) != 0 ) { -00840 // insert all the mandatory fields into jnt_fiche_attr -00841 foreach ( $def_attr as $i=>$v) { -00842 $sql=sprintf("insert into jnt_fic_Attr(fd_id,ad_id) -00843 values (%d,%s)", -00844 $fd_id,$v['ad_id']); -00845 ExecSql($p_cn,$sql); -00846 } -00847 } -00848 -00849 -00850 } -00866 function UpdateModele($p_cn,$p_fiche) { -00867 -00868 $array=GetDataModele($p_cn,$p_fiche); -00869 if ($array==null) { -00870 echo_error ("fiche_inc:UpdateModele Fiche non trouvée"); -00871 return; -00872 } -00873 echo '<H2 class="info">'.getFicheDefName($p_cn,$p_fiche).'</H2>'; -00874 foreach ( $array as $key=>$element) echo_debug('fiche_inc.php',__LINE__,"$key => $element"); -00875 DisplayDetailModele($p_cn,$array,$array['ligne']); -00876 -00877 } -00892 function GetDataModele($p_cn,$p_fiche) { -00893 $Res=ExecSql($p_cn,"select fd_class_base,ad_id,ad_text from -00894 fiche_def -00895 natural join jnt_fic_attr -00896 natural join attr_def -00897 where -00898 fd_id=$p_fiche"); -00899 $Max=pg_NumRows($Res) ; -00900 if ($Max==0) return null; -00901 -00902 // store the data in an array -00903 for ($i=0; $i < $Max;$i++) { -00904 $line=pg_fetch_array($Res,$i); -00905 if ($i == 0 ) { -00906 $array['label']=GetFicheDefName($p_cn,$p_fiche); -00907 $array['class_base']=$line['fd_class_base']; -00908 $array['fd_id']=$p_fiche; -00909 }//if $i == 0 -00910 -00911 //Label -00912 $text=sprintf("ad_id%d",$i); -00913 $array[$text]=$line['ad_id']; -00914 //isd_id -00915 $text=sprintf("ad_text%d",$i); -00916 $array[$text]=$line['ad_text']; -00917 -00918 }//for -00919 $array['ligne']=$Max; -00920 return $array; -00921 } -00935 function Remove ($p_cn, $p_fid) { -00936 if ( ! isset ($p_cn) || -00937 ! isset ($p_fid) ) { -00938 echo_error ("Remove Missing Parameter p_cn = $p_cn p_fid=$p_fid"); -00939 return; -00940 } -00941 // if the card has its own account in PCMN -00942 // Get the fiche_def.fd_id from fiche.f_id -00943 $fd_id=GetFicheDef($p_cn,$p_fid); -00944 if ( GetCreateAccount($p_cn,$fd_id) == 1 ) { -00945 // Retrieve the class -00946 $class=GetClass($p_cn,$p_fid); -00947 -00948 // if class is not NULL and if we use it before, we can't remove it -00949 if (FormatString($class) != null && -00950 CountSql($p_cn,"select * from jrnx where j_poste=$class") != 0 ) { -00951 echo "<SCRIPT> alert('Impossible ce poste est utilisé dans un journal'); </SCRIPT>"; -00952 return; -00953 } else { -00954 // Remove in PCMN -00955 if ( trim(strlen($class)) != 0 and isNumber($class) == 1) -00956 ExecSql($p_cn,"delete from tmp_pcmn where pcm_val=".$class); -00957 } -00958 -00959 } -00960 // Remove from attr_value -00961 $Res=ExecSql($p_cn,"delete from attr_value -00962 where jft_id in (select jft_id -00963 from jnt_fic_att_value -00964 natural join fiche where f_id=$p_fid)"); -00965 // Remove from jnt_fic_att_value -00966 $Res=ExecSql($p_cn,"delete from jnt_fic_att_value where f_id=$p_fid"); -00967 -00968 // Remove from fiche -00969 $Res=ExecSql($p_cn,"delete from fiche where f_id=$p_fid"); -00970 -00971 } -00985 function getFicheName($p_cn,$p_id) { -00986 // Retrieve the attribute with the ad_id 1 -00987 // 1 is always the name -00988 -00989 $Res=ExecSql($p_cn,"select vw_name from -00990 vw_fiche_attr where quick_code='$p_id'"); -00991 if ( pg_NumRows($Res) == 0 ) return "Unknown"; -00992 $st=pg_fetch_array($Res,0); -00993 return $st['vw_name']; -00994 } -01007 function getFicheNameById($p_cn,$p_id) { -01008 // Retrieve the attribute with the ad_id 1 -01009 // 1 is always the name -01010 $Res=ExecSql($p_cn,"select av_text from -01011 attr_value -01012 natural join jnt_fic_att_value -01013 natural join fiche -01014 where -01015 f_id=$p_id and -01016 ad_id=".ATTR_DEF_NAME); -01017 -01018 if ( pg_NumRows($Res) == 0 ) return "Unknown"; -01019 $st=pg_fetch_array($Res,0); -01020 return $st['av_text']; -01021 } -01022 -01035 function getFicheDefName($p_cn,$p_id) { -01036 $Res=ExecSql($p_cn,"select fd_label from fiche_def where fd_id=$p_id"); -01037 if ( pg_NumRows($Res) == 0 ) return "Unknown"; -01038 $st=pg_fetch_array($Res,0); -01039 return $st['fd_label']; -01040 } -01041 -01054 function GetFicheJrn($p_cn,$p_jrn,$p_type) -01055 { -01056 $get=""; -01057 if ( $p_type == 'deb' ) { -01058 $get='jrn_def_fiche_deb'; -01059 } -01060 if ( $p_type == 'cred' ) { -01061 $get='jrn_def_fiche_cred'; +00837 // Get the default attr_def from attr_min +00838 $def_attr=Get_attr_min($p_cn,$p_FICHE_REF); +00839 +00840 //if defaut attr not null +00841 // build the sql insert for the table attr_def +00842 if (sizeof($def_attr) != 0 ) { +00843 // insert all the mandatory fields into jnt_fiche_attr +00844 foreach ( $def_attr as $i=>$v) { +00845 $sql=sprintf("insert into jnt_fic_Attr(fd_id,ad_id) +00846 values (%d,%s)", +00847 $fd_id,$v['ad_id']); +00848 ExecSql($p_cn,$sql); +00849 } +00850 } +00851 +00852 +00853 } +00869 function UpdateModele($p_cn,$p_fiche) { +00870 +00871 $array=GetDataModele($p_cn,$p_fiche); +00872 if ($array==null) { +00873 echo_error ("fiche_inc:UpdateModele Fiche non trouvée"); +00874 return; +00875 } +00876 echo '<H2 class="info">'.getFicheDefName($p_cn,$p_fiche).'</H2>'; +00877 foreach ( $array as $key=>$element) echo_debug('fiche_inc.php',__LINE__,"$key => $element"); +00878 DisplayDetailModele($p_cn,$array,$array['ligne']); +00879 +00880 } +00895 function GetDataModele($p_cn,$p_fiche) { +00896 $Res=ExecSql($p_cn,"select fd_class_base,ad_id,ad_text from +00897 fiche_def +00898 natural join jnt_fic_attr +00899 natural join attr_def +00900 where +00901 fd_id=$p_fiche"); +00902 $Max=pg_NumRows($Res) ; +00903 if ($Max==0) return null; +00904 +00905 // store the data in an array +00906 for ($i=0; $i < $Max;$i++) { +00907 $line=pg_fetch_array($Res,$i); +00908 if ($i == 0 ) { +00909 $array['label']=GetFicheDefName($p_cn,$p_fiche); +00910 $array['class_base']=$line['fd_class_base']; +00911 $array['fd_id']=$p_fiche; +00912 }//if $i == 0 +00913 +00914 //Label +00915 $text=sprintf("ad_id%d",$i); +00916 $array[$text]=$line['ad_id']; +00917 //isd_id +00918 $text=sprintf("ad_text%d",$i); +00919 $array[$text]=$line['ad_text']; +00920 +00921 }//for +00922 $array['ligne']=$Max; +00923 return $array; +00924 } +00938 function Remove ($p_cn, $p_fid) { +00939 if ( ! isset ($p_cn) || +00940 ! isset ($p_fid) ) { +00941 echo_error ("Remove Missing Parameter p_cn = $p_cn p_fid=$p_fid"); +00942 return; +00943 } +00944 // if the card has its own account in PCMN +00945 // Get the fiche_def.fd_id from fiche.f_id +00946 $fd_id=GetFicheDef($p_cn,$p_fid); +00947 if ( GetCreateAccount($p_cn,$fd_id) == 1 ) { +00948 // Retrieve the class +00949 $class=GetClass($p_cn,$p_fid); +00950 +00951 // if class is not NULL and if we use it before, we can't remove it +00952 if (FormatString($class) != null && +00953 CountSql($p_cn,"select * from jrnx where j_poste=$class") != 0 ) { +00954 echo "<SCRIPT> alert('Impossible ce poste est utilisé dans un journal'); </SCRIPT>"; +00955 return; +00956 } else { +00957 // Remove in PCMN +00958 if ( trim(strlen($class)) != 0 and isNumber($class) == 1) +00959 ExecSql($p_cn,"delete from tmp_pcmn where pcm_val=".$class); +00960 } +00961 +00962 } +00963 // Remove from attr_value +00964 $Res=ExecSql($p_cn,"delete from attr_value +00965 where jft_id in (select jft_id +00966 from jnt_fic_att_value +00967 natural join fiche where f_id=$p_fid)"); +00968 // Remove from jnt_fic_att_value +00969 $Res=ExecSql($p_cn,"delete from jnt_fic_att_value where f_id=$p_fid"); +00970 +00971 // Remove from fiche +00972 $Res=ExecSql($p_cn,"delete from fiche where f_id=$p_fid"); +00973 +00974 } +00988 function getFicheName($p_cn,$p_id) { +00989 // Retrieve the attribute with the ad_id 1 +00990 // 1 is always the name +00991 +00992 $Res=ExecSql($p_cn,"select vw_name from +00993 vw_fiche_attr where quick_code='$p_id'"); +00994 if ( pg_NumRows($Res) == 0 ) return "Unknown"; +00995 $st=pg_fetch_array($Res,0); +00996 return $st['vw_name']; +00997 } +01010 function getFicheNameById($p_cn,$p_id) { +01011 // Retrieve the attribute with the ad_id 1 +01012 // 1 is always the name +01013 $Res=ExecSql($p_cn,"select av_text from +01014 attr_value +01015 natural join jnt_fic_att_value +01016 natural join fiche +01017 where +01018 f_id=$p_id and +01019 ad_id=".ATTR_DEF_NAME); +01020 +01021 if ( pg_NumRows($Res) == 0 ) return "Unknown"; +01022 $st=pg_fetch_array($Res,0); +01023 return $st['av_text']; +01024 } +01025 +01038 function getFicheDefName($p_cn,$p_id) { +01039 $Res=ExecSql($p_cn,"select fd_label from fiche_def where fd_id=$p_id"); +01040 if ( pg_NumRows($Res) == 0 ) return "Unknown"; +01041 $st=pg_fetch_array($Res,0); +01042 return $st['fd_label']; +01043 } +01044 +01057 function GetFicheJrn($p_cn,$p_jrn,$p_type) +01058 { +01059 $get=""; +01060 if ( $p_type == 'deb' ) { +01061 $get='jrn_def_fiche_deb'; 01062 } -01063 if ( $get == "" ) { -01064 echo_error("Invalid p_type function GetFicheJrn($p_cn,$p_jrn,$p_type)"); -01065 exit -1; -01066 } -01067 $Res=ExecSql($p_cn,"select $get as fiche from jrn_def where jrn_def_id=$p_jrn"); -01068 $Max=pg_NumRows($Res); -01069 if ( $Max==0) { -01070 echo_warning("No rows"); -01071 return null; -01072 } -01073 // Normally Max must be == 1 -01074 $list=pg_fetch_array($Res,0); -01075 if ( $list['fiche']=="") { -01076 echo_warning("No fiche"); -01077 return null; -01078 } -01079 -01080 $sql="select f_id,av_text as f_label -01081 from fiche natural join jnt_fic_att_value -01082 natural join attr_def -01083 natural join attr_value -01084 natural join fiche_def -01085 where ad_id=1 and -01086 fd_id in (".$list['fiche'].") order by f_label"; -01087 -01088 $Res=ExecSql($p_cn,$sql); -01089 $Max=pg_NumRows($Res); -01090 if ($Max==0 ) return null; -01091 // Get The result and put it into an array -01092 for ($i=0;$i<$Max;$i++) { -01093 $line=pg_fetch_array($Res,$i); -01094 $f_id=$line['f_id']; -01095 $f_label=$line['f_label']; -01096 $a[$i]=array($f_id,$f_label); -01097 } -01098 return $a; -01099 } -01112 function Get_fiche_def_ref($p_cn) -01113 { -01114 // get all the data from fiche_def_ref -01115 $Res=ExecSql($p_cn, "select frd_id,frd_text,frd_class_base -01116 from fiche_def_ref -01117 order by frd_text"); -01118 -01119 // check if the result is valid -01120 $Max=pg_NumRows($Res); -01121 if ( $Max == 0) return null; -01122 -01123 // store the result in a array -01124 for ($i=0;$i<$Max;$i++) { -01125 $f=pg_fetch_array($Res,$i); -01126 $array[$i]['id']=$f['frd_id']; -01127 $array[$i]['text']=$f['frd_text']; -01128 $array[$i]['class']=$f['frd_class_base']; -01129 } -01130 -01131 // return result -01132 return $array; -01133 } -01146 function Get_attr_min($p_cn,$p_fiche_def_ref) { -01147 // find the min attr for the fiche_def_ref -01148 $Sql="select ad_id,ad_text from attr_min natural join attr_def -01149 natural join fiche_def_ref -01150 where -01151 frd_id= $p_fiche_def_ref"; -01152 $Res=ExecSql($p_cn,$Sql); -01153 $Num=pg_NumRows($Res); -01154 -01155 // test the number of returned rows -01156 if ($Num == 0 ) return null; +01063 if ( $p_type == 'cred' ) { +01064 $get='jrn_def_fiche_cred'; +01065 } +01066 if ( $get == "" ) { +01067 echo_error("Invalid p_type function GetFicheJrn($p_cn,$p_jrn,$p_type)"); +01068 exit -1; +01069 } +01070 $Res=ExecSql($p_cn,"select $get as fiche from jrn_def where jrn_def_id=$p_jrn"); +01071 $Max=pg_NumRows($Res); +01072 if ( $Max==0) { +01073 echo_warning("No rows"); +01074 return null; +01075 } +01076 // Normally Max must be == 1 +01077 $list=pg_fetch_array($Res,0); +01078 if ( $list['fiche']=="") { +01079 echo_warning("No fiche"); +01080 return null; +01081 } +01082 +01083 $sql="select f_id,av_text as f_label +01084 from fiche natural join jnt_fic_att_value +01085 natural join attr_def +01086 natural join attr_value +01087 natural join fiche_def +01088 where ad_id=1 and +01089 fd_id in (".$list['fiche'].") order by f_label"; +01090 +01091 $Res=ExecSql($p_cn,$sql); +01092 $Max=pg_NumRows($Res); +01093 if ($Max==0 ) return null; +01094 // Get The result and put it into an array +01095 for ($i=0;$i<$Max;$i++) { +01096 $line=pg_fetch_array($Res,$i); +01097 $f_id=$line['f_id']; +01098 $f_label=$line['f_label']; +01099 $a[$i]=array($f_id,$f_label); +01100 } +01101 return $a; +01102 } +01115 function Get_fiche_def_ref($p_cn) +01116 { +01117 // get all the data from fiche_def_ref +01118 $Res=ExecSql($p_cn, "select frd_id,frd_text,frd_class_base +01119 from fiche_def_ref +01120 order by frd_text"); +01121 +01122 // check if the result is valid +01123 $Max=pg_NumRows($Res); +01124 if ( $Max == 0) return null; +01125 +01126 // store the result in a array +01127 for ($i=0;$i<$Max;$i++) { +01128 $f=pg_fetch_array($Res,$i); +01129 $array[$i]['id']=$f['frd_id']; +01130 $array[$i]['text']=$f['frd_text']; +01131 $array[$i]['class']=$f['frd_class_base']; +01132 } +01133 +01134 // return result +01135 return $array; +01136 } +01149 function Get_attr_min($p_cn,$p_fiche_def_ref) { +01150 // find the min attr for the fiche_def_ref +01151 $Sql="select ad_id,ad_text from attr_min natural join attr_def +01152 natural join fiche_def_ref +01153 where +01154 frd_id= $p_fiche_def_ref"; +01155 $Res=ExecSql($p_cn,$Sql); +01156 $Num=pg_NumRows($Res); 01157 -01158 // Get Results & Store them in a array -01159 for ($i=0;$i<$Num;$i++) { -01160 $f=pg_fetch_array($Res,$i); -01161 $array[$i]['ad_id']=$f['ad_id']; -01162 $array[$i]['ad_text']=$f['ad_text']; -01163 } -01164 return $array; -01165 } -01178 function Get_attr_def($p_cn,$p_fiche_def) { -01179 // find the min attr for the fiche_def_ref -01180 $Sql="select ad_id,ad_text from attr_def -01181 natural join jnt_fic_attr -01182 natural join fiche_def -01183 where -01184 fd_id= $p_fiche_def order by ad_id"; -01185 $Res=ExecSql($p_cn,$Sql); -01186 $Num=pg_NumRows($Res); -01187 -01188 // test the number of returned rows -01189 if ($Num == 0 ) return null; +01158 // test the number of returned rows +01159 if ($Num == 0 ) return null; +01160 +01161 // Get Results & Store them in a array +01162 for ($i=0;$i<$Num;$i++) { +01163 $f=pg_fetch_array($Res,$i); +01164 $array[$i]['ad_id']=$f['ad_id']; +01165 $array[$i]['ad_text']=$f['ad_text']; +01166 } +01167 return $array; +01168 } +01181 function Get_attr_def($p_cn,$p_fiche_def) { +01182 // find the min attr for the fiche_def_ref +01183 $Sql="select ad_id,ad_text from attr_def +01184 natural join jnt_fic_attr +01185 natural join fiche_def +01186 where +01187 fd_id= $p_fiche_def order by ad_id"; +01188 $Res=ExecSql($p_cn,$Sql); +01189 $Num=pg_NumRows($Res); 01190 -01191 // Get Results & Store them in a array -01192 for ($i=0;$i<$Num;$i++) { -01193 $f=pg_fetch_array($Res,$i); -01194 $array[$i]['ad_id']=$f['ad_id']; -01195 $array[$i]['ad_text']=$f['ad_text']; -01196 } -01197 return $array; -01198 } -01211 function GetCreateAccount($p_cn,$p_fiche_def) { -01212 // find the min attr for the fiche_def_ref -01213 $Sql="select fd_create_account -01214 from fiche_def -01215 where -01216 fd_id= $p_fiche_def"; -01217 $Res=ExecSql($p_cn,$Sql); -01218 $Num=pg_NumRows($Res); -01219 -01220 // test the number of returned rows -01221 if ($Num == 0 ) return 0; +01191 // test the number of returned rows +01192 if ($Num == 0 ) return null; +01193 +01194 // Get Results & Store them in a array +01195 for ($i=0;$i<$Num;$i++) { +01196 $f=pg_fetch_array($Res,$i); +01197 $array[$i]['ad_id']=$f['ad_id']; +01198 $array[$i]['ad_text']=$f['ad_text']; +01199 } +01200 return $array; +01201 } +01214 function GetCreateAccount($p_cn,$p_fiche_def) { +01215 // find the min attr for the fiche_def_ref +01216 $Sql="select fd_create_account +01217 from fiche_def +01218 where +01219 fd_id= $p_fiche_def"; +01220 $Res=ExecSql($p_cn,$Sql); +01221 $Num=pg_NumRows($Res); 01222 -01223 -01224 for ($i=0;$i<$Num;$i++) { -01225 $f=pg_fetch_array($Res,$i); -01226 echo_debug ("fd_create_account == ".$f['fd_create_account']); -01227 if ( $f['fd_create_account']=='t') { -01228 echo_debug('fiche_inc.php',__LINE__,"fd_create_account return 1"); -01229 return 1; -01230 } -01231 } -01232 echo_debug('fiche_inc.php',__LINE__,"fd_create_account return 0"); -01233 return 0; -01234 } -01248 function GetFicheDefRef($p_cn,$p_f_id) -01249 { -01250 // Sql stmt -01251 $sql="select frd_id from fiche_def join fiche using (fd_id) -01252 where f_id=$p_f_id"; -01253 // Execute it -01254 $Res=ExecSql($p_cn,$sql); -01255 -01256 // nothing is found -01257 if ( pg_NumRows($Res) == 0 ) return null; +01223 // test the number of returned rows +01224 if ($Num == 0 ) return 0; +01225 +01226 +01227 for ($i=0;$i<$Num;$i++) { +01228 $f=pg_fetch_array($Res,$i); +01229 echo_debug ("fd_create_account == ".$f['fd_create_account']); +01230 if ( $f['fd_create_account']=='t') { +01231 echo_debug('fiche_inc.php',__LINE__,"fd_create_account return 1"); +01232 return 1; +01233 } +01234 } +01235 echo_debug('fiche_inc.php',__LINE__,"fd_create_account return 0"); +01236 return 0; +01237 } +01251 function GetFicheDefRef($p_cn,$p_f_id) +01252 { +01253 // Sql stmt +01254 $sql="select frd_id from fiche_def join fiche using (fd_id) +01255 where f_id=$p_f_id"; +01256 // Execute it +01257 $Res=ExecSql($p_cn,$sql); 01258 -01259 // Fetch the data -01260 $f=pg_fetch_array($Res,0); +01259 // nothing is found +01260 if ( pg_NumRows($Res) == 0 ) return null; 01261 -01262 // return the value -01263 return $f['frd_id']; +01262 // Fetch the data +01263 $f=pg_fetch_array($Res,0); 01264 -01265 } -01279 function GetFicheDef($p_cn,$p_f_id) -01280 { -01281 // Sql stmt -01282 $sql="select fd_id from fiche_def join fiche using (fd_id) -01283 where f_id=$p_f_id"; -01284 // Execute it -01285 $Res=ExecSql($p_cn,$sql); -01286 -01287 // nothing is found -01288 if ( pg_NumRows($Res) == 0 ) return null; +01265 // return the value +01266 return $f['frd_id']; +01267 +01268 } +01282 function GetFicheDef($p_cn,$p_f_id) +01283 { +01284 // Sql stmt +01285 $sql="select fd_id from fiche_def join fiche using (fd_id) +01286 where f_id=$p_f_id"; +01287 // Execute it +01288 $Res=ExecSql($p_cn,$sql); 01289 -01290 // Fetch the data -01291 $f=pg_fetch_array($Res,0); +01290 // nothing is found +01291 if ( pg_NumRows($Res) == 0 ) return null; 01292 -01293 // return the value -01294 return $f['fd_id']; +01293 // Fetch the data +01294 $f=pg_fetch_array($Res,0); 01295 -01296 } -01297 -01310 function GetClass($p_cn,$p_fid) { -01311 echo_debug('fiche_inc.php',__LINE__,"GetClass($p_fid)"); -01312 -01313 // the account class is in the av_text with the ad_id=5 in -01314 // attr_Def -01315 $sql="select av_text from attr_value -01316 natural join jnt_fic_att_value -01317 natural join attr_def -01318 where -01319 ad_id=".ATTR_DEF_ACCOUNT." and f_id=$p_fid"; -01320 // Exec -01321 $Res=ExecSql($p_cn,$sql); -01322 if (pg_NumRows($Res) == 0 ) return null; -01323 -01324 // Fetch the data and return it -01325 $f=pg_fetch_array($Res,0); -01326 return $f['av_text']; -01327 } -01340 function InsertModeleLine($p_cn,$p_fid,$p_adid) -01341 { -01342 // Insert a new attribute for the model -01343 // it means insert a row in jnt_fic_attr -01344 $sql=sprintf("insert into jnt_fic_attr (fd_id,ad_id) values (%d,%d)", -01345 $p_fid,$p_adid); -01346 $Res=ExecSql($p_cn,$sql); -01347 -01348 } -01361 function SaveModeleName($p_cn,$p_fid,$p_label) -01362 { -01363 // Insert a new attribute for the model -01364 // it means insert a row in jnt_fic_attr -01365 $sql=sprintf("update fiche_def set fd_label='%s' where -01366 fd_id=%d", -01367 $p_label,$p_fid); -01368 $Res=ExecSql($p_cn,$sql); -01369 -01370 } -01371 -01387 function DisplayDetailModele($p_cn,$p_array,$MaxLine) -01388 { -01389 echo_debug('fiche_inc.php',__LINE__,"DisplayDetailModele"); -01390 -01391 foreach ($p_array as $v=>$i) { -01392 echo_debug('fiche_inc.php',__LINE__,"v == $v i==$i"); -01393 ${"$v"}=$i; -01394 } -01395 echo '<FORM action="fiche.php" method="get">'; -01396 echo '<INPUT TYPE="HIDDEN" NAME="fd_id" VALUE="'.$fd_id.'">'; -01397 -01398 printf("<TABLE>"); -01399 // Display each attribute -01400 for ($i=0;$i<$MaxLine;$i++) { -01401 echo '<TR><td>'; -01402 // Can change the name -01403 if ( ${"ad_id$i"} == ATTR_DEF_NAME ) { -01404 printf('Label</TD><TD><INPUT TYPE="TEXT" NAME="label" VALUE="%s">', -01405 $label); -01406 printf('</td><TD><input type="submit" NAME="change_name" value="Change Nom">'); -01407 } else { -01408 // The attr. -01409 printf('%s ', -01410 ${"ad_text$i"}); -01411 } -01412 echo '</td></tr>'; -01413 } -01414 -01415 // Show the possible attribute which are not already attribute of the model -01416 // of card -01417 $Res=ExecSql($p_cn,"select ad_id,ad_text from attr_def -01418 where ad_id not in (select ad_id from fiche_def natural join jnt_fic_attr -01419 where fd_id=$fd_id)"); -01420 $M=pg_NumRows($Res); -01421 -01422 // Show the unused attribute -01423 echo '<TR> <TD>'; -01424 echo '<SELECT NAME="ad_id">'; -01425 for ($i=0;$i<$M;$i++) { -01426 $l=pg_fetch_array($Res,$i); -01427 printf('<OPTION VALUE="%s"> %s', -01428 $l['ad_id'],$l['ad_text']); -01429 } -01430 echo '</SELECT>'; -01431 echo '</TD><TD> <INPUT TYPE="SUBMIT" Value="Add that line" NAME="add_ligne"></TD></TR>'; -01432 printf("</TABLE>"); -01433 echo '</FORM>'; -01434 } -01447 function GetParent($p_cn,$p_val) -01448 { -01449 $len=strlen($p_val)-1; -01450 for ($i=$len-1;$i>0;$i--) { -01451 $a=substr($p_val,0,$i); -01452 echo_debug ("parent == $a len =1"); -01453 if (CountSql($p_cn,"select pcm_val from tmp_pcmn where pcm_val=$a") == 1) -01454 return $a; -01455 } -01456 } -01471 function getFicheAttribut($p_cn,$p_id,$p_attr="") { -01472 // Retrieve the attribute with the ad_id 1 -01473 // 1 is always the name -01474 -01475 if ( $p_attr != "") { -01476 $Res=ExecSql($p_cn,"select av_text from -01477 attr_value -01478 natural join jnt_fic_att_value -01479 natural join fiche -01480 where -01481 ad_id=$p_attr -01482 and f_id=(select f_id from vw_poste_qcode where j_qcode='$p_id') "); -01483 if ( pg_NumRows($Res) == 0 ) return NULL; -01484 $st=pg_fetch_array($Res,0); -01485 return $st['av_text']; -01486 } else { -01487 // Get attribut from the view -01488 $Res=ExecSql($p_cn,"select * from vw_fiche_attr where quick_code='$p_id'"); -01489 if ( pg_NumRows($Res) == 0 ) return null; -01490 $st=pg_fetch_array($Res,0); -01491 return $st; -01492 } -01493 } -01494 -01511 function IsFicheOfJrn($p_cn,$p_jrn,$p_fiche,$p_type="") -01512 { -01513 $get=""; -01514 if ( $p_type == 'deb' ) { -01515 $get='jrn_def_fiche_deb'; -01516 } -01517 if ( $p_type == 'cred' ) { -01518 $get='jrn_def_fiche_cred'; +01296 // return the value +01297 return $f['fd_id']; +01298 +01299 } +01300 +01313 function GetClass($p_cn,$p_fid) { +01314 echo_debug('fiche_inc.php',__LINE__,"GetClass($p_fid)"); +01315 +01316 // the account class is in the av_text with the ad_id=5 in +01317 // attr_Def +01318 $sql="select av_text from attr_value +01319 natural join jnt_fic_att_value +01320 natural join attr_def +01321 where +01322 ad_id=".ATTR_DEF_ACCOUNT." and f_id=$p_fid"; +01323 // Exec +01324 $Res=ExecSql($p_cn,$sql); +01325 if (pg_NumRows($Res) == 0 ) return null; +01326 +01327 // Fetch the data and return it +01328 $f=pg_fetch_array($Res,0); +01329 return $f['av_text']; +01330 } +01343 function InsertModeleLine($p_cn,$p_fid,$p_adid) +01344 { +01345 // Insert a new attribute for the model +01346 // it means insert a row in jnt_fic_attr +01347 $sql=sprintf("insert into jnt_fic_attr (fd_id,ad_id) values (%d,%d)", +01348 $p_fid,$p_adid); +01349 $Res=ExecSql($p_cn,$sql); +01350 +01351 } +01364 function SaveModeleName($p_cn,$p_fid,$p_label) +01365 { +01366 // Insert a new attribute for the model +01367 // it means insert a row in jnt_fic_attr +01368 $sql=sprintf("update fiche_def set fd_label='%s' where +01369 fd_id=%d", +01370 $p_label,$p_fid); +01371 $Res=ExecSql($p_cn,$sql); +01372 +01373 } +01374 +01390 function DisplayDetailModele($p_cn,$p_array,$MaxLine) +01391 { +01392 echo_debug('fiche_inc.php',__LINE__,"DisplayDetailModele"); +01393 +01394 foreach ($p_array as $v=>$i) { +01395 echo_debug('fiche_inc.php',__LINE__,"v == $v i==$i"); +01396 ${"$v"}=$i; +01397 } +01398 echo '<FORM action="fiche.php" method="get">'; +01399 echo '<INPUT TYPE="HIDDEN" NAME="fd_id" VALUE="'.$fd_id.'">'; +01400 +01401 printf("<TABLE>"); +01402 // Display each attribute +01403 for ($i=0;$i<$MaxLine;$i++) { +01404 echo '<TR><td>'; +01405 // Can change the name +01406 if ( ${"ad_id$i"} == ATTR_DEF_NAME ) { +01407 printf('Label</TD><TD><INPUT TYPE="TEXT" NAME="label" VALUE="%s">', +01408 $label); +01409 printf('</td><TD><input type="submit" NAME="change_name" value="Change Nom">'); +01410 } else { +01411 // The attr. +01412 printf('%s ', +01413 ${"ad_text$i"}); +01414 } +01415 echo '</td></tr>'; +01416 } +01417 +01418 // Show the possible attribute which are not already attribute of the model +01419 // of card +01420 $Res=ExecSql($p_cn,"select ad_id,ad_text from attr_def +01421 where ad_id not in (select ad_id from fiche_def natural join jnt_fic_attr +01422 where fd_id=$fd_id)"); +01423 $M=pg_NumRows($Res); +01424 +01425 // Show the unused attribute +01426 echo '<TR> <TD>'; +01427 echo '<SELECT NAME="ad_id">'; +01428 for ($i=0;$i<$M;$i++) { +01429 $l=pg_fetch_array($Res,$i); +01430 printf('<OPTION VALUE="%s"> %s', +01431 $l['ad_id'],$l['ad_text']); +01432 } +01433 echo '</SELECT>'; +01434 echo '</TD><TD> <INPUT TYPE="SUBMIT" Value="Add that line" NAME="add_ligne"></TD></TR>'; +01435 printf("</TABLE>"); +01436 echo '</FORM>'; +01437 } +01450 function GetParent($p_cn,$p_val) +01451 { +01452 $len=strlen($p_val)-1; +01453 for ($i=$len-1;$i>0;$i--) { +01454 $a=substr($p_val,0,$i); +01455 echo_debug ("parent == $a len =1"); +01456 if (CountSql($p_cn,"select pcm_val from tmp_pcmn where pcm_val=$a") == 1) +01457 return $a; +01458 } +01459 } +01474 function getFicheAttribut($p_cn,$p_id,$p_attr="") { +01475 // Retrieve the attribute with the ad_id 1 +01476 // 1 is always the name +01477 +01478 if ( $p_attr != "") { +01479 $Res=ExecSql($p_cn,"select av_text from +01480 attr_value +01481 natural join jnt_fic_att_value +01482 natural join fiche +01483 where +01484 ad_id=$p_attr +01485 and f_id=(select f_id from vw_poste_qcode where j_qcode='$p_id') "); +01486 if ( pg_NumRows($Res) == 0 ) return NULL; +01487 $st=pg_fetch_array($Res,0); +01488 return $st['av_text']; +01489 } else { +01490 // Get attribut from the view +01491 $Res=ExecSql($p_cn,"select * from vw_fiche_attr where quick_code='$p_id'"); +01492 if ( pg_NumRows($Res) == 0 ) return null; +01493 $st=pg_fetch_array($Res,0); +01494 return $st; +01495 } +01496 } +01497 +01514 function IsFicheOfJrn($p_cn,$p_jrn,$p_fiche,$p_type="") +01515 { +01516 $get=""; +01517 if ( $p_type == 'deb' ) { +01518 $get='jrn_def_fiche_deb'; 01519 } -01520 if ( $get != "" ) { -01521 $Res=ExecSql($p_cn,"select $get as fiche from jrn_def where jrn_def_id=$p_jrn"); -01522 } else { -01523 // Get all the fiche type (deb and cred) -01524 $Res=ExecSql($p_cn," select jrn_def_fiche_cred as fiche -01525 from jrn_def where jrn_def_id=$p_jrn -01526 union -01527 select jrn_def_fiche_deb -01528 from jrn_def where jrn_def_id=$p_jrn" -01529 ); -01530 } -01531 $Max=pg_NumRows($Res); -01532 if ( $Max==0) { -01533 echo_warning("No rows"); -01534 return null; -01535 } -01536 // Normally Max must be == 1 -01537 $list=pg_fetch_array($Res,0); -01538 if ( $list['fiche']=="") { -01539 echo_warning("No fiche"); -01540 return null; -01541 } -01542 -01543 $sql="select * -01544 from vw_fiche_attr -01545 where -01546 fd_id in (".$list['fiche'].") and quick_code='$p_fiche'"; -01547 -01548 $Res=ExecSql($p_cn,$sql); -01549 $Max=pg_NumRows($Res); -01550 if ($Max==0 ) -01551 return 0; -01552 else -01553 return 1; -01554 } -01555 ?> -
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +01520 if ( $p_type == 'cred' ) { +01521 $get='jrn_def_fiche_cred'; +01522 } +01523 if ( $get != "" ) { +01524 $Res=ExecSql($p_cn,"select $get as fiche from jrn_def where jrn_def_id=$p_jrn"); +01525 } else { +01526 // Get all the fiche type (deb and cred) +01527 $Res=ExecSql($p_cn," select jrn_def_fiche_cred as fiche +01528 from jrn_def where jrn_def_id=$p_jrn +01529 union +01530 select jrn_def_fiche_deb +01531 from jrn_def where jrn_def_id=$p_jrn" +01532 ); +01533 } +01534 $Max=pg_NumRows($Res); +01535 if ( $Max==0) { +01536 echo_warning("No rows"); +01537 return null; +01538 } +01539 // Normally Max must be == 1 +01540 $list=pg_fetch_array($Res,0); +01541 if ( $list['fiche']=="") { +01542 echo_warning("No fiche"); +01543 return null; +01544 } +01545 +01546 $sql="select * +01547 from vw_fiche_attr +01548 where +01549 fd_id in (".$list['fiche'].") and quick_code='$p_fiche'"; +01550 +01551 $Res=ExecSql($p_cn,$sql); +01552 $Max=pg_NumRows($Res); +01553 if ($Max==0 ) +01554 return 0; +01555 else +01556 return 1; +01557 } +01558 ?> +
Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__inc_8php.html b/doc/developper/html/fiche__inc_8php.html index 68af828f4..a38d304b6 100644 --- a/doc/developper/html/fiche__inc_8php.html +++ b/doc/developper/html/fiche__inc_8php.html @@ -133,7 +133,7 @@ the fiche_def.fd_id, id of the cat of the model

    Detailed Description

    Function for managing card, redundant with the class fiche.

    -

    Todo:
    remove this file but adapt first the pages which needs those function and complete the class_fiche.php
    +
    Todo:
    remove this file but adapt first the pages which needs those function and complete the class_fiche.php

    Definition in file fiche_inc.php.


    Function Documentation

    @@ -190,7 +190,7 @@ ajoute une nouvelle fiche

    Definition at line 38 of file fiche_inc.php.

    -References $flag, $num, $p_parent, $Res, $sql, $Sql, CountSql(), echo_debug(), echo_error(), ExecSql(), exit, FormatString(), Get_attr_def(), GetBaseFiche(), GetCreateAccount(), GetNextFiche(), GetSequence(), and isNumber(). +References $flag, $num, $p_parent, $Res, $sql, $Sql, CountSql(), echo_debug(), echo_error(), ExecSql(), exit, FormatString(), Get_attr_def(), GetBaseFiche(), GetCreateAccount(), GetNextFiche(), GetSequence(), and isNumber().

    @@ -237,9 +237,9 @@ array gen :

    • none table : insert into fiche_def insert into attr_def return:
    • none

    -Definition at line 758 of file fiche_inc.php. +Definition at line 761 of file fiche_inc.php.

    -References $Res, $sql, echo_debug(), echo_error(), ExecSql(), FormatString(), Get_attr_min(), GetBaseFicheDefault(), GetSequence(), and isNumber(). +References $Res, $sql, echo_debug(), echo_error(), ExecSql(), FormatString(), Get_attr_min(), GetBaseFicheDefault(), GetSequence(), and isNumber().

    @@ -291,17 +291,20 @@ References $Res, < Creation of a model of card or correction.

    DefModele

    -parm :

      -
    • $p_cn database connection
        -
      • $p_ligne number of lines
      -
    • $p_array array
    • $p_js class base (javascript code) gen :
        -
      • none return:
      • nothing
      -
    +
    Parameters:
    + + + + + +
    $p_cn database connection
    $p_ligne number of lines
    $p_array array
    $p_js class base (javascript code)
    +
    +
    Returns:
    nothing

    -Definition at line 686 of file fiche_inc.php. +Definition at line 689 of file fiche_inc.php.

    -References $check, echo_debug(), Get_fiche_def_ref(), and METHOD. +References $check, echo_debug(), Get_fiche_def_ref(), and METHOD.

    @@ -355,11 +358,11 @@ parm :

    -Definition at line 1387 of file fiche_inc.php. +Definition at line 1390 of file fiche_inc.php.

    -References $i, $l, $M, $Res, echo_debug(), ExecSql(), label, and value. +References $i, $l, $M, $Res, echo_debug(), ExecSql(), label, and value.

    -Referenced by UpdateModele(). +Referenced by UpdateModele().

    @@ -417,9 +420,9 @@ DANY: Oui je suis assez d'accord avec toi

    Definition at line 225 of file fiche_inc.php.

    -References $l_line, $label, $Max, $Res, $sql, echo_debug(), ExecSql(), getFicheNameById(), name, and value. +References $l_line, $label, $Max, $Res, $sql, echo_debug(), ExecSql(), getFicheNameById(), name, and value.

    -Referenced by ViewFicheDetail(). +Referenced by ViewFicheDetail().

    @@ -453,9 +456,9 @@ parm :

    -Definition at line 1310 of file fiche_inc.php. +Definition at line 1313 of file fiche_inc.php.

    References $Res, $sql, echo_debug(), and ExecSql().

    -Referenced by Remove(). +Referenced by Remove().

    @@ -794,11 +797,11 @@ $p_fiche_def_ref fiche_def.fd_id gen :

      GetCreateAccount

      -Definition at line 1211 of file fiche_inc.php. +Definition at line 1214 of file fiche_inc.php.

      References $Num, $Res, $Sql, echo_debug(), and ExecSql().

      -Referenced by AddFiche(), and Remove(). +Referenced by AddFiche(), and Remove().

      @@ -845,11 +848,11 @@ fiche id gen :

      • none return:
      • array with all the data

      -Definition at line 892 of file fiche_inc.php. +Definition at line 895 of file fiche_inc.php.

      -References $array, $Max, $Res, ExecSql(), and label. +References $array, $Max, $Res, ExecSql(), and label.

      -Referenced by UpdateModele(). +Referenced by UpdateModele().

      @@ -905,7 +908,7 @@ p_id quick_code

        string avec nom fiche or array

        -Definition at line 1471 of file fiche_inc.php. +Definition at line 1474 of file fiche_inc.php.

        References $Res, and ExecSql().

        @@ -957,11 +960,11 @@ $p_f_id fiche.f_id gen :

          the fiche_def.fd_id or null if nothing has been found

          -Definition at line 1279 of file fiche_inc.php. +Definition at line 1282 of file fiche_inc.php.

          References $Res, $sql, and ExecSql().

          -Referenced by Remove(), and ViewFicheDetail(). +Referenced by Remove(), and ViewFicheDetail().

          @@ -1009,7 +1012,7 @@ p_id fiche id fiche_def.fd_id gen :

            string fiche_def.fd_label

            -Definition at line 1035 of file fiche_inc.php. +Definition at line 1038 of file fiche_inc.php.

            References $Res, and ExecSql(). @@ -1059,11 +1062,11 @@ $p_f_id fiche.f_id gen :

              the fiche_def.frd_id or null if nothing has been found

              -Definition at line 1248 of file fiche_inc.php. +Definition at line 1251 of file fiche_inc.php.

              References $Res, $sql, ExecSql(), and frd_id.

              -Referenced by UpdateFiche(). +Referenced by UpdateFiche().

              @@ -1118,9 +1121,9 @@ j_jrn journal_id

              -Definition at line 1054 of file fiche_inc.php. +Definition at line 1057 of file fiche_inc.php.

              -References $a, $i, $list, $Max, $Res, $sql, echo_error(), echo_warning(), ExecSql(), exit, and f_id. +References $a, $i, $list, $Max, $Res, $sql, echo_error(), echo_warning(), ExecSql(), exit, and f_id.

              @@ -1168,7 +1171,7 @@ p_id quick_code gen :

                string avec nom fiche

                -Definition at line 985 of file fiche_inc.php. +Definition at line 988 of file fiche_inc.php.

                References $Res, and ExecSql().

                @@ -1220,7 +1223,7 @@ p_id quick_code gen :

                  string avec nom fiche

                  -Definition at line 1007 of file fiche_inc.php. +Definition at line 1010 of file fiche_inc.php.

                  References $Res, and ExecSql().

                  @@ -1271,9 +1274,9 @@ p_base gen :

                  • return:

                  -Definition at line 458 of file fiche_inc.php. +Definition at line 462 of file fiche_inc.php.

                  -References $l_line, $Max, $Res, $ret, echo_debug(), and ExecSql(). +References $l_line, $Max, $Res, $ret, echo_debug(), and ExecSql().

                  Referenced by AddFiche(). @@ -1322,11 +1325,11 @@ the base we want insert gen :

                  • return: the parent

                  -Definition at line 1447 of file fiche_inc.php. +Definition at line 1450 of file fiche_inc.php.

                  -References $a, CountSql(), and echo_debug(). +References $a, CountSql(), and echo_debug().

                  -Referenced by UpdateFiche(). +Referenced by UpdateFiche().

                  @@ -1380,7 +1383,7 @@ the fiche_def.fd_id, id of the cat of the model

                    InsertModeleLine

                    -Definition at line 1340 of file fiche_inc.php. +Definition at line 1343 of file fiche_inc.php.

                    References $Res, $sql, and ExecSql(). @@ -1444,9 +1447,9 @@ j_jrn journal_id

                      return 1 if the fiche is in the range otherwise 0

                      -Definition at line 1511 of file fiche_inc.php. +Definition at line 1514 of file fiche_inc.php.

                      -References $list, $Max, $Res, $sql, echo_warning(), and ExecSql(). +References $list, $Max, $Res, $sql, echo_warning(), and ExecSql().

                      Referenced by form_verify_input(). @@ -1495,9 +1498,9 @@ none

                      Remove

                      -Definition at line 935 of file fiche_inc.php. +Definition at line 938 of file fiche_inc.php.

                      -References $Res, CountSql(), echo_error(), ExecSql(), FormatString(), GetClass(), GetCreateAccount(), GetFicheDef(), and isNumber(). +References $Res, CountSql(), echo_error(), ExecSql(), FormatString(), GetClass(), GetCreateAccount(), GetFicheDef(), and isNumber().

                      @@ -1552,7 +1555,7 @@ the fiche_def.fd_id, id of the cat of the model

                      -Definition at line 1361 of file fiche_inc.php. +Definition at line 1364 of file fiche_inc.php.

                      References $Res, $sql, and ExecSql(). @@ -1601,9 +1604,9 @@ p_array gen :

                      • none return:
                      • nothing

                      -Definition at line 526 of file fiche_inc.php. +Definition at line 530 of file fiche_inc.php.

                      -References $a, $label, $Res, $sql, CountSql(), echo_debug(), echo_error(), ExecSql(), FormatString(), GetFicheDefRef(), GetParent(), and label. +References $a, $label, $Res, $sql, CountSql(), echo_debug(), echo_error(), ExecSql(), FormatString(), GetFicheDefRef(), GetParent(), and label.

                      @@ -1650,9 +1653,9 @@ p_fiche fichedef(f_id) gen :

                      • none return:
                      • none

                      -Definition at line 866 of file fiche_inc.php. +Definition at line 869 of file fiche_inc.php.

                      -References $array, DisplayDetailModele(), echo_debug(), echo_error(), and GetDataModele(). +References $array, DisplayDetailModele(), echo_debug(), echo_error(), and GetDataModele().

                      @@ -1701,7 +1704,7 @@ $p_type fiche_def.fd_id catg of card gen :

                        Definition at line 394 of file fiche_inc.php.

                        -References $_SESSION, $bar, $l_line, $Max, $offset, $page, $Res, $sql_limit, $sql_offset, $step, CountSql(), ExecSql(), jrn_navigation_bar(), METHOD, name, and value. +References $_SESSION, $bar, $l_line, $Max, $offset, $page, $Res, $sql_limit, $sql_offset, $step, CountSql(), ExecSql(), jrn_navigation_bar(), METHOD, name, table, and value.

                        @@ -1748,12 +1751,12 @@ id de la fiche fiche(f_id) gen :

                        • return:

                        -Definition at line 488 of file fiche_inc.php. +Definition at line 492 of file fiche_inc.php.

                        -References $Res, $sql, EncodeFiche(), ExecSql(), and GetFicheDef(). +References $Res, $sql, EncodeFiche(), ExecSql(), and GetFicheDef(). -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fiche__new_8php-source.html b/doc/developper/html/fiche__new_8php-source.html index 05234d891..1e7bbf856 100644 --- a/doc/developper/html/fiche__new_8php-source.html +++ b/doc/developper/html/fiche__new_8php-source.html @@ -66,11 +66,11 @@ 00061 $ch_col="</TD><TD>"; 00062 $ch_li='</TR><TR>'; 00063 $r='<FORM action="fiche_new.php" method="post">'; -00064 $r.='<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; +00064 $r.='<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; 00065 $l_sessid=(isset ($_POST["PHPSESSID"]))?$_POST["PHPSESSID"]:$_GET["PHPSESSID"]; 00066 -00067 $r.=JS_SHOW_TVA; -00068 $r.=JS_SEARCH_POSTE; +00067 $r.=JS_SHOW_TVA; +00068 $r.=JS_SEARCH_POSTE; 00069 $r.="<TABLE>"; 00070 echo '<H2 class="info">New </H2>'; 00071 $p_f_id=""; @@ -83,21 +83,21 @@ 00078 $Res=ExecSql($p_cn,$sql); 00079 $Max=pg_NumRows($Res); 00080 // Put the card modele id (fiche_def.fd_id) -00081 $r.='<INPUT TYPE="HIDDEN" name="fd_id" value="'.$p_type.'">'; +00081 $r.='<INPUT TYPE="HIDDEN" name="fd_id" value="'.$p_type.'">'; 00082 for ($i=0;$i < $Max;$i++) { 00083 $l_line=pg_fetch_array($Res,$i); 00084 00085 // The number of the attribute -00086 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="ad_id%d" value="%s">', +00086 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="ad_id%d" value="%s">', 00087 $i,$l_line['ad_id']); 00088 00089 $but_search_poste=""; 00090 // Javascript for searching the account -00091 if ( $l_line ['ad_id'] == ATTR_DEF_ACCOUNT ) { +00091 if ( $l_line ['ad_id'] == ATTR_DEF_ACCOUNT ) { 00092 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$l_sessid.'\',\'av_text'.$i.'\')">'; 00093 } 00094 // Javascript for showing the tva -00095 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { +00095 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { 00096 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Montre" OnClick="ShowTva(\''.$l_sessid.'\',\'av_text'.$i.'\')">'; 00097 } 00098 // content of the attribute @@ -105,8 +105,8 @@ 00100 $l_line['ad_text'], $i,$Hid,$but_search_poste); 00101 } 00102 $r.="</TABLE>"; -00103 $r.='<INPUT TYPE="SUBMIT" name="add_fiche" value="Mis à jour">'; -00104 $r.= '<INPUT TYPE="HIDDEN" name="inc" value="'.$Max.'">'; +00103 $r.='<INPUT TYPE="SUBMIT" name="add_fiche" value="Mis à jour">'; +00104 $r.= '<INPUT TYPE="HIDDEN" name="inc" value="'.$Max.'">'; 00105 $r.='</FORM>'; 00106 return $r; 00107 } @@ -136,7 +136,7 @@ 00131 $n=pg_NumRows($Res); 00132 for ($i=0;$i <$n;$i++) { 00133 $f=pg_fetch_array($Res,$i); -00134 $e[$i]=$f['fd_id']; +00134 $e[$i]=$f['fd_id']; 00135 } 00136 $list['fiche']=join(',',$e); 00137 } else { // We have to find it from the database @@ -169,7 +169,7 @@ 00164 00165 00166 // Compter le nombre de cat. possible -00167 $a=explode(",",$list['fiche']); +00167 $a=explode(",",$list['fiche']); 00168 00169 // sinon si cat = 1 ou si var. cat vaut qq chose 00170 // Montrer le contenu de fiche @@ -192,15 +192,15 @@ 00187 echo "Choix catégories fiche"; 00188 echo '<FORM METHOD="POST" ACTION="'.$_SERVER['REQUEST_URI'].'">'; 00189 foreach ($a as $element) { -00190 printf('<INPUT TYPE="RADIO" NAME="cat" value="%s">%s<br>', +00190 printf('<INPUT TYPE="RADIO" NAME="cat" value="%s">%s<br>', 00191 $element,GetFicheDefName($cn,$element)); 00192 00193 } -00194 echo '<INPUT TYPE="SUBMIT" value="Choisir">'; +00194 echo '<INPUT TYPE="SUBMIT" value="Choisir">'; 00195 echo "<FORM>"; 00196 } 00197 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fiche__new_8php.html b/doc/developper/html/fiche__new_8php.html index 04d55816b..604333fa6 100644 --- a/doc/developper/html/fiche__new_8php.html +++ b/doc/developper/html/fiche__new_8php.html @@ -78,7 +78,7 @@ Definition in file fiche_new.ph

                        Definition at line 60 of file fiche_new.php.

                        -References $l_line, $Max, $r, $Res, $sql, echo_debug(), ExecSql(), name, and value. +References $l_line, $Max, $r, $Res, $sql, echo_debug(), ExecSql(), name, and value.


                        Variable Documentation

                        @@ -131,7 +131,7 @@ Definition at line 134 Definition at line 136 of file fiche_new.php.

                        -Referenced by FormAchInput(), FormVenInput(), GetFicheJrn(), IsFicheOfJrn(), and Cpdf::selectFont(). +Referenced by FormAchInput(), FormVenInput(), GetFicheJrn(), IsFicheOfJrn(), and Cpdf::selectFont().

                        @@ -183,7 +183,7 @@ Definition at line 126 Definition at line 131 of file fiche_new.php.

                        -Referenced by AddForm(), Cezpdf::ezPrvtTableDrawLines(), and GetConcerned(). +Referenced by AddForm(), Cezpdf::ezPrvtTableDrawLines(), and GetConcerned().

                        @@ -286,7 +286,7 @@ Definition at line 31116 of file fiche_new.php. -


                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fiche__search_8php-source.html b/doc/developper/html/fiche__search_8php-source.html index f8736260d..31a73dd0e 100644 --- a/doc/developper/html/fiche__search_8php-source.html +++ b/doc/developper/html/fiche__search_8php-source.html @@ -84,8 +84,8 @@ 00079 } 00080 ?> 00081 <script language="javascript"> -00082 function SetData (name_ctl,value,value_2,value_3,value_4,value_5,value_6) { -00083 self.opener.SetData(name_ctl,value,value_2,value_3,value_4,value_5,value_6); +00082 function SetData (name_ctl,value,value_2,value_3,value_4,value_5,value_6) { +00083 self.opener.SetData(name_ctl,value,value_2,value_3,value_4,value_5,value_6); 00084 window.close(); 00085 } 00086 </script> @@ -103,7 +103,7 @@ 00098 00099 $r.="<FORM METHOD=\"POST\" ACTION=\"".$_SERVER['REQUEST_URI']."\">"; 00100 $r.="Recherche : ".'<INPUT TYPE="TEXT" NAME="fic_search" VALUE="'.$e_fic_search.'">'; -00101 $r.='<INPUT TYPE="submit" name="search" value="Go">'; +00101 $r.='<INPUT TYPE="submit" name="search" value="Go">'; 00102 //$r.="</FORM>"; 00103 $r.="<div>"; 00104 echo $r; @@ -118,72 +118,78 @@ 00113 $list_fiche=get_list_fiche($cn,$get,$_GET['p_jrn']); 00114 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; 00115 } -00116 if ( $e_type == 'cred' ) { +00116 elseif ( $e_type == 'cred' ) { 00117 $get='jrn_def_fiche_cred'; 00118 $list_fiche=get_list_fiche($cn,$get,$_GET['p_jrn']); 00119 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; 00120 } -00121 -00122 -00123 // if e_type contains a list of value -00124 if ( $e_type != 'cred' and $e_type != 'deb') { -00125 $list_fiche=$e_type; -00126 $sql="select * from vw_fiche_attr where frd_id in ( $list_fiche )"; -00127 // $sql="select * from vw_fiche_attr "; -00128 } -00129 // e_fic_search contains the pattern -00130 -00131 if (strlen(trim($e_fic_search) ) == 0 ) { -00132 $Res=ExecSql($cn,$sql); -00133 } else { -00134 $Res=ExecSql($cn,"$sql and upper(vw_name) like upper('%$e_fic_search%')"); -00135 } -00136 -00137 // Test whether rows are returned -00138 if ( ($Max = pg_NumRows($Res) ) == 0 ) { -00139 echo_warning("Pas de fiche trouvée"); -00140 return; -00141 } -00142 // Show the cards -00143 for ( $i=0; $i < $Max; $i++) { -00144 -00145 //set focus on first "Select" button. -00146 -00147 $row=pg_fetch_array($Res,$i); -00148 if ( $i %2 == 0 ) -00149 $class="even"; -00150 else -00151 $class="odd"; -00152 $text=FormatString($row['vw_name']); -00153 $r.="<span class=\"$class\">"; -00154 $r.=sprintf ('<input name="%s" type="button" onClick="'."SetData('%s','%s','%s','%s','%s','%s','%s')".'" value="%s">', -00155 "select" . $i, -00156 $e_name, -00157 $row['quick_code'] , -00158 $text, -00159 $row['vw_sell'], -00160 $row['vw_buy'], -00161 $row['tva_id'], -00162 $row['tva_label'] , -00163 $row['quick_code'] -00164 ); -00165 $r.="&nbsp;".$row['vw_name']; -00166 if ( $row['vw_addr'] !="") -00167 $r.="<br><font size=-1>Adresse:&nbsp;".$row['vw_addr']."&nbsp;".$row['vw_cp']."</font>"; -00168 $r.="</span>"; -00169 } -00170 } -00171 $r.="</div>"; -00172 $r.="</FORM>"; -00173 echo $r; -00174 -00175 ?> -00176 -00177 <? -00178 -00179 html_page_stop(); -00180 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00124 elseif ( $e_type == 'all' ) { +00125 $sql="select * from vw_fiche_attr where true"; +00126 } +00127 // if e_type contains a list of value for filtering on fiche_def_ref.frd_id +00128 else{ +00129 $list_fiche=$e_type; +00130 $sql="select * from vw_fiche_attr where frd_id in ( $list_fiche )"; +00131 // $sql="select * from vw_fiche_attr "; +00132 } +00133 // e_fic_search contains the pattern +00134 +00135 if (strlen(trim($e_fic_search) ) == 0 ) { +00136 $Res=ExecSql($cn,$sql); +00137 } else { +00138 $Res=ExecSql($cn,"$sql and upper(vw_name) like upper('%$e_fic_search%')"); +00139 } +00140 +00141 // Test whether rows are returned +00142 if ( ($Max = pg_NumRows($Res) ) == 0 ) { +00143 echo_warning("Pas de fiche trouvée"); +00144 return; +00145 } +00146 // Show the cards +00147 for ( $i=0; $i < $Max; $i++) { +00148 +00149 //set focus on first "Select" button. +00150 +00151 $row=pg_fetch_array($Res,$i); +00152 // if quick code is empty pass ( it not used for the contact) +00153 if (trim($row['quick_code']) == "") +00154 continue; +00155 +00156 +00157 if ( $i %2 == 0 ) +00158 $class="even"; +00159 else +00160 $class="odd"; +00161 $text=FormatString($row['vw_name']); +00162 $r.="<span class=\"$class\">"; +00163 $r.=sprintf ('<input name="%s" type="button" onClick="'."SetData('%s','%s','%s','%s','%s','%s','%s')".'" value="%s">', +00164 "select" . $i, +00165 $e_name, +00166 $row['quick_code'] , +00167 $text, +00168 $row['vw_sell'], +00169 $row['vw_buy'], +00170 $row['tva_id'], +00171 $row['tva_label'] , +00172 $row['quick_code'] +00173 ); +00174 $r.="&nbsp;".$row['vw_name']; +00175 if ( $row['vw_addr'] !="") +00176 $r.="<br><font size=-1>Adresse:&nbsp;".$row['vw_addr']."&nbsp;".$row['vw_cp']."</font>"; +00177 $r.="</span>"; +00178 } +00179 } +00180 $r.="</div>"; +00181 $r.="</FORM>"; +00182 echo $r; +00183 +00184 ?> +00185 +00186 <? +00187 +00188 html_page_stop(); +00189 ?> +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fiche__search_8php.html b/doc/developper/html/fiche__search_8php.html index 2c9aa112e..833bba320 100644 --- a/doc/developper/html/fiche__search_8php.html +++ b/doc/developper/html/fiche__search_8php.html @@ -264,7 +264,7 @@ Definition at line 11 Definition at line 32 of file fiche_search.php. -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/files.html b/doc/developper/html/files.html index a29d80544..214325cbf 100644 --- a/doc/developper/html/files.html +++ b/doc/developper/html/files.html @@ -50,6 +50,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/html/send_poste_pdf.php [code]Print the account in pdf /home/dany/developpement/phpcompta-dev/phpcompta/html/show_document.php [code]Retrieve a document /home/dany/developpement/phpcompta-dev/phpcompta/html/show_document_modele.php [code]Send the document template + /home/dany/developpement/phpcompta-dev/phpcompta/html/show_fiche.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/html/show_pj.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/html/show_tva.php [code]Popup window to let the user choose the vat /home/dany/developpement/phpcompta-dev/phpcompta/html/stock.php [code]Manage the stock by year @@ -69,7 +70,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/ac_common.php [code]Common utilities for a lot of procedure, classe /home/dany/developpement/phpcompta-dev/phpcompta/include/action.inc.php [code]Page who manage the different action (meeting, letter) /home/dany/developpement/phpcompta-dev/phpcompta/include/admin.inc.php [code]Called from the module "Gestion" to manage the customer - /home/dany/developpement/phpcompta-dev/phpcompta/include/balance.php [code]Show the balance and let you print it or export to PDF + /home/dany/developpement/phpcompta-dev/phpcompta/include/balance.php [code]Show the balance and let you print it or export to PDF file included by user_impress /home/dany/developpement/phpcompta-dev/phpcompta/include/bank.inc.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/cbc_be.inc.php [code]This file must be included to parse the CVS from the CBC Bank /home/dany/developpement/phpcompta-dev/phpcompta/include/central_inc.php [code]Concerns the centralization operations @@ -105,18 +106,19 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/error.php [code]Obsolete ? /home/dany/developpement/phpcompta-dev/phpcompta/include/eub_be.inc.php [code]File included to parse CSV from EUB Bank /home/dany/developpement/phpcompta-dev/phpcompta/include/facture.inc.php [code]Purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database + /home/dany/developpement/phpcompta-dev/phpcompta/include/facture_inc.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/fiche_def.inc.php [code]Let customise the fiche_def_ref for the user /home/dany/developpement/phpcompta-dev/phpcompta/include/fiche_inc.php [code]Function for managing card, redundant with the class fiche /home/dany/developpement/phpcompta-dev/phpcompta/include/form_inc.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/fortis_be.inc.php [code]File to include : parse the CSV file from fortis Bank Belgium /home/dany/developpement/phpcompta-dev/phpcompta/include/import_inc.php [code] - /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_bilan.php [code]Form who call the printing of the bilan in RTF + /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_bilan.php [code]Form who call the printing of the bilan in RTF file included by user_impress /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_fiche.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_inc.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_jrn.php [code]Ask for Printing the ledger (pdf,html) /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_listing_client.php [code]Print the listing of customer for vat - /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_poste.php [code]Print account (html or pdf) - /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_rapport.php [code]Print first the report in html and propose to print it in pdf + /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_poste.php [code]Print account (html or pdf) file included from user_impress + /home/dany/developpement/phpcompta-dev/phpcompta/include/impress_rapport.php [code]Print first the report in html and propose to print it in pdf file included by user_impress /home/dany/developpement/phpcompta-dev/phpcompta/include/ing_be.inc.php [code]File to be included to parse CSV from ING Belgium /home/dany/developpement/phpcompta-dev/phpcompta/include/jrn.php [code]Work with the ledger /home/dany/developpement/phpcompta-dev/phpcompta/include/periode.inc.php [code]Still used ? @@ -141,7 +143,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/user_menu.php [code]Nearly all the menu are here, some of them returns a HTML string, others echo directly the result /home/dany/developpement/phpcompta-dev/phpcompta/include/user_update.php [code]Check if still used -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form_8php-source.html b/doc/developper/html/form_8php-source.html index 1ae249991..1e84914e3 100644 --- a/doc/developper/html/form_8php-source.html +++ b/doc/developper/html/form_8php-source.html @@ -118,7 +118,7 @@ 00112 //echo "</DIV>"; 00113 html_page_stop(); 00114 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form_8php.html b/doc/developper/html/form_8php.html index 026aa80d1..0216a5f98 100644 --- a/doc/developper/html/form_8php.html +++ b/doc/developper/html/form_8php.html @@ -129,7 +129,7 @@ Definition at line 37 of f Definition at line 91 of file form.php. -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__csv_8php-source.html b/doc/developper/html/form__csv_8php-source.html index ae67e5122..cb5a7e29b 100644 --- a/doc/developper/html/form__csv_8php-source.html +++ b/doc/developper/html/form__csv_8php-source.html @@ -90,11 +90,11 @@ 00084 printf("\n"); 00085 // Display value for each line 00086 //-- -00087 $a=0; +00087 $a=0; 00088 foreach ($array as $e ) 00089 { -00090 print $periode_name[$a]; -00091 $a++; +00090 print $periode_name[$a]; +00091 $a++; 00092 foreach ($e as $elt) 00093 { 00094 printf(";%s",$elt['montant']); @@ -104,7 +104,7 @@ 00098 } 00099 exit; 00100 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__csv_8php.html b/doc/developper/html/form__csv_8php.html index e9e48242a..d515f2256 100644 --- a/doc/developper/html/form__csv_8php.html +++ b/doc/developper/html/form__csv_8php.html @@ -102,7 +102,7 @@ Definition at line 40 Definition at line 36 of file form_csv.php. -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__inc_8php-source.html b/doc/developper/html/form__inc_8php-source.html index fa528c538..2779439ff 100644 --- a/doc/developper/html/form__inc_8php-source.html +++ b/doc/developper/html/form__inc_8php-source.html @@ -33,7 +33,7 @@ 00034 function EncodeForm($p_line,$p_sessid,$p_array=null) { 00035 // echo '<SCRIPT LANGUAGE="javascript" SRC="win_search_poste.js"></SCRIPT>'; 00036 include_once("constant.php"); -00037 echo JS_SEARCH_POSTE; +00037 echo JS_SEARCH_POSTE; 00038 $search='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$p_sessid."','not')\">"; 00039 for ( $i =0 ; $i <= $p_line; $i++) { 00040 ${"text$i"}=""; @@ -55,9 +55,9 @@ 00056 echo "<FORM ACTION=\"form.php\" METHOD=\"POST\">"; 00057 printf ("Nom du rapport : <INPUT TYPE=\"TEXT\" NAME=\"form_nom\" VALUE=\"%s\">", 00058 $form_nom); -00059 printf ('<INPUT TYPE="HIDDEN" NAME="line" value="%s"', +00059 printf ('<INPUT TYPE="HIDDEN" NAME="line" value="%s"', 00060 $p_line); -00061 if ( isset ($fr_id)) printf ('<INPUT TYPE="HIDDEN" NAME="fr_id" value="%s"', +00061 if ( isset ($fr_id)) printf ('<INPUT TYPE="HIDDEN" NAME="fr_id" value="%s"', 00062 $fr_id); 00063 00064 echo '<TABLE>'; @@ -94,12 +94,12 @@ 00095 } 00096 echo "</TABLE>"; 00097 if ( isset($fr_id)){ -00098 echo '<INPUT TYPE="submit" value="Enregistre" name="update">'; +00098 echo '<INPUT TYPE="submit" value="Enregistre" name="update">'; 00099 }else { -00100 echo '<INPUT TYPE="submit" value="Enregistre" name="record">'; +00100 echo '<INPUT TYPE="submit" value="Enregistre" name="record">'; 00101 } -00102 echo '<INPUT TYPE="submit" value="Ajoute une ligne" name="add_line">'; -00103 echo '<INPUT TYPE="submit" value="Efface ce rapport" name="del_form">'; +00102 echo '<INPUT TYPE="submit" value="Ajoute une ligne" name="add_line">'; +00103 echo '<INPUT TYPE="submit" value="Efface ce rapport" name="del_form">'; 00104 00105 echo "</FORM>"; 00106 @@ -162,10 +162,10 @@ 00216 for ($i =0; $i <$line;$i++) { 00217 echo_debug ("position =".${"pos$i"}); 00218 if ( (string) ${"pos$i"} != (string) (int) ${"pos$i"}) { -00219 ${"pos$i"}=$i+1; +00219 ${"pos$i"}=$i+1; 00220 } 00221 if ( ${"pos$i"} > $line || ${"pos$i"} < 0) { -00222 ${"pos$i"}=$i+1; +00222 ${"pos$i"}=$i+1; 00223 echo_debug('form_inc.php',__LINE__,"position trop grand max = $line+1 "); 00224 } 00225 } @@ -242,7 +242,7 @@ 00303 } 00304 00305 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__inc_8php.html b/doc/developper/html/form__inc_8php.html index d68f9068e..50f4ffcef 100644 --- a/doc/developper/html/form__inc_8php.html +++ b/doc/developper/html/form__inc_8php.html @@ -84,7 +84,7 @@ Add a report.

                        Definition at line 267 of file form_inc.php.

                        -References $n, $Res, $sql, CheckFormula(), echo_debug(), echo_error(), ExecSql(), FormatString(), and GetSequence(). +References $n, $Res, $sql, CheckFormula(), echo_debug(), echo_error(), ExecSql(), FormatString(), and GetSequence().

                        @@ -189,7 +189,7 @@ parm :

                        Parameters:

                        Definition at line 34 of file form_inc.php.

                        -References $search, echo_debug(), name, size, and value. +References $search, echo_debug(), name, size, and value.

                        Referenced by ViewForm(). @@ -243,7 +243,7 @@ Get data from a form.

                        Definition at line 149 of file form_inc.php.

                        -References $array, $l_line, $Max, $p_id, $Res, and ExecSql(). +References $array, $l_line, $Max, $p_id, $Res, and ExecSql().

                        Referenced by ViewForm(). @@ -398,7 +398,7 @@ Update a report.

                        Definition at line 208 of file form_inc.php.

                        -References $i, $o, $Res, $sql, CheckFormula(), echo_debug(), ExecSql(), and FormatString(). +References $i, $o, $Res, $sql, CheckFormula(), echo_debug(), ExecSql(), and FormatString().

                        @@ -457,7 +457,7 @@ Definition at line 117$array, $l_line, EncodeForm(), GetDataForm(), GetFormName(), and GetNumberLine(). -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__pdf_8php-source.html b/doc/developper/html/form__pdf_8php-source.html index 948b73c06..6a68d5e44 100644 --- a/doc/developper/html/form__pdf_8php-source.html +++ b/doc/developper/html/form__pdf_8php-source.html @@ -94,11 +94,11 @@ 00089 } 00090 else 00091 { // With Step -00092 $a=0; +00092 $a=0; 00093 foreach ($array as $e) 00094 { 00095 $pdf->ezText($periode_name[$a],25); -00096 $a++; +00096 $a++; 00097 $pdf->ezTable($e, 00098 array ('desc'=>'Description', 00099 'montant' => 'Montant' @@ -111,7 +111,7 @@ 00106 $pdf->ezStream(); 00107 00108 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/form__pdf_8php.html b/doc/developper/html/form__pdf_8php.html index eafe86db6..10e35f06b 100644 --- a/doc/developper/html/form__pdf_8php.html +++ b/doc/developper/html/form__pdf_8php.html @@ -75,7 +75,7 @@ Definition at line 33 Definition at line 42 of file form_pdf.php. -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fortis__be_8inc_8php-source.html b/doc/developper/html/fortis__be_8inc_8php-source.html index 178350e1c..7ed9bacf5 100644 --- a/doc/developper/html/fortis__be_8inc_8php-source.html +++ b/doc/developper/html/fortis__be_8inc_8php-source.html @@ -115,7 +115,7 @@ 00111 } // file is read 00112 fclose($handle); 00113 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/fortis__be_8inc_8php.html b/doc/developper/html/fortis__be_8inc_8php.html index 5b00789b6..6710628af 100644 --- a/doc/developper/html/fortis__be_8inc_8php.html +++ b/doc/developper/html/fortis__be_8inc_8php.html @@ -65,7 +65,7 @@ Definition in file fortis_

                        Definition at line 54 of file fortis_be.inc.php.

                        -Referenced by DefModele(), widget::IOValue(), and UpdateJrn(). +Referenced by DefModele(), widget::IOValue(), and UpdateJrn().

                        @@ -192,7 +192,7 @@ Definition at line

                        Definition at line 76 of file fortis_be.inc.php.

                        -Referenced by Get_attr_def(), Get_attr_min(), GetAllUser(), GetCreateAccount(), GetPriv(), GetUid(), and VerifImport(). +Referenced by Get_attr_def(), Get_attr_min(), GetAllUser(), GetCreateAccount(), GetPriv(), GetUid(), and VerifImport().

                        @@ -301,7 +301,7 @@ Definition at line Definition at line 71 of file fortis_be.inc.php. -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/functions.html b/doc/developper/html/functions.html index 24b4a27a0..45dc8d6bc 100644 --- a/doc/developper/html/functions.html +++ b/doc/developper/html/functions.html @@ -16,11 +16,11 @@ Here is a list of all struct and union fields with links to the structures/union : Attribut
                      • $ad_text : Attribut
                      • $addLooseObjects : Cpdf
                      • $admin -: cl_user
                      • $ag_date -: action
                      • $ag_desc +: cl_user
                      • $ag_comment : action
                      • $ag_id -: Document
                      • $ag_title -: action
                      • $all +: Document
                      • $ag_timestamp +: action
                      • $ag_title +: action
                      • $all : fiche_def
                      • $arc4 : Cpdf
                      • $arc4_objnum : Cpdf
                      • $attribut @@ -46,15 +46,15 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
                      • $currentStrokeColour : Cpdf
                      • $currentTextState : Cpdf
                      • $d_filename -: Document, action
                      • $d_lob -: Document, action
                      • $d_mimetype -: Document, action
                      • $d_number -: Document, action
                      • $d_state -: action
                      • $db +: Document, action
                      • $d_lob +: Document
                      • $d_mimetype +: Document, action
                      • $d_number +: Document, action
                      • $d_state +: Document, action
                      • $db : cl_user, rapport, poste, parm_code, Own, jrn, Document, Balance, action
                      • $destinations : Cpdf
                      • $disabled : widget
                      • $dt_id -: action
                      • $encrypted +: action
                      • $encrypted : Cpdf
                      • $encryptionKey : Cpdf
                      • $extra : widget
                      • $extra2 @@ -62,7 +62,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cezpdf
                      • $ezPageCount : Cezpdf
                      • $ezPages : Cezpdf
                      • $f_id -: action
                      • $fiche_def +: action
                      • $fiche_def : fiche, fiche_def
                      • $fiche_def_ref : fiche
                      • $fileIdentifier : Cpdf
                      • $firstPageId @@ -74,7 +74,7 @@ Here is a list of all struct and union fields with links to the structures/union : fiche_def_ref
                      • $id : cl_user, rapport, poste, jrn, fiche, fiche_def
                      • $infoObject : Cpdf
                      • $label -: widget, fiche_def
                      • $looseObjects +: widget, poste, fiche_def
                      • $looseObjects : Cpdf
                      • $md_id : Document_modele, Document
                      • $md_lob : Document_modele
                      • $md_name @@ -94,13 +94,14 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
                      • $p_code : parm_code
                      • $p_comment : parm_code
                      • $p_value -: parm_code
                      • $pass +: parm_code
                      • $parent +: poste
                      • $pass : cl_user
                      • $poste : Supplier, Customer
                      • $procsetObjectId : Cpdf
                      • $readonly : widget
                      • $reportContents : Creport
                      • $row -: poste, jrn, Balance
                      • $selected +: poste, jrn, Balance
                      • $selected : widget
                      • $sequence : Document_modele
                      • $size : widget
                      • $stack @@ -115,7 +116,7 @@ Here is a list of all struct and union fields with links to the structures/union : Supplier, Customer, Admin
                      • $wordSpaceAdjust : Cpdf
                      • $y : Cezpdf
                      -
                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                      diff --git a/doc/developper/html/functions_0x61.html b/doc/developper/html/functions_0x61.html index c8ed8116b..8e350b825 100644 --- a/doc/developper/html/functions_0x61.html +++ b/doc/developper/html/functions_0x61.html @@ -34,7 +34,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
                    • ARC4_init() : Cpdf
                    • Attribut() : Attribut
                    -
                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/functions_0x62.html b/doc/developper/html/functions_0x62.html index 6480d4e90..adeab0b69 100644 --- a/doc/developper/html/functions_0x62.html +++ b/doc/developper/html/functions_0x62.html @@ -15,7 +15,7 @@ Here is a list of all struct and union fields with links to the structures/union
                  • Balance() : Balance
                  • blank() : fiche
                  -
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                  Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/functions_0x63.html b/doc/developper/html/functions_0x63.html index 094983174..2395c5085 100644 --- a/doc/developper/html/functions_0x63.html +++ b/doc/developper/html/functions_0x63.html @@ -19,14 +19,14 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
                • cl_user() : cl_user
                • closeObject() : Cpdf
                • Confirm() -: action
                • contact() +: action
                • contact() : contact
                • CountByDef() : fiche
                • Cpdf() : Cpdf
                • Creport() : Creport
                • curve() : Cpdf
                • Customer() : Customer
                -
                Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                diff --git a/doc/developper/html/functions_0x64.html b/doc/developper/html/functions_0x64.html index 9e389139f..039745d04 100644 --- a/doc/developper/html/functions_0x64.html +++ b/doc/developper/html/functions_0x64.html @@ -20,7 +20,7 @@ Here is a list of all struct and union fields with links to the structures/union : Document_modele
              • document_type() : Document_type
              • dots() : Creport
              -
              Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/functions_0x65.html b/doc/developper/html/functions_0x65.html index 10ed59145..39c16870d 100644 --- a/doc/developper/html/functions_0x65.html +++ b/doc/developper/html/functions_0x65.html @@ -40,7 +40,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cezpdf
            • ezText() : Cezpdf
            • ezWhatPageNumber() : Cezpdf
            -
            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
            diff --git a/doc/developper/html/functions_0x66.html b/doc/developper/html/functions_0x66.html index f244db9c7..189555e37 100644 --- a/doc/developper/html/functions_0x66.html +++ b/doc/developper/html/functions_0x66.html @@ -20,7 +20,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
          • filterText() : Cpdf
          • form() : Document_modele
          -
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
          Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/functions_0x67.html b/doc/developper/html/functions_0x67.html index 8630d1259..a76b24e65 100644 --- a/doc/developper/html/functions_0x67.html +++ b/doc/developper/html/functions_0x67.html @@ -13,16 +13,17 @@ Here is a list of all struct and union fields with links to the structures/union

          - g -

          -
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
          Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/functions_0x68.html b/doc/developper/html/functions_0x68.html index 938191188..207cdaccb 100644 --- a/doc/developper/html/functions_0x68.html +++ b/doc/developper/html/functions_0x68.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

          - h -

          -
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
          Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/functions_0x69.html b/doc/developper/html/functions_0x69.html index f9ab23afa..38d166858 100644 --- a/doc/developper/html/functions_0x69.html +++ b/doc/developper/html/functions_0x69.html @@ -18,7 +18,7 @@ Here is a list of all struct and union fields with links to the structures/union : fiche
        • insert_default_global_pref() : cl_user
        • IOValue() : widget
        -
        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
        diff --git a/doc/developper/html/functions_0x6a.html b/doc/developper/html/functions_0x6a.html index 9593028f8..e649da45e 100644 --- a/doc/developper/html/functions_0x6a.html +++ b/doc/developper/html/functions_0x6a.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

        - j -

        -
        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
        diff --git a/doc/developper/html/functions_0x6c.html b/doc/developper/html/functions_0x6c.html index d4b26c564..052cc9108 100644 --- a/doc/developper/html/functions_0x6c.html +++ b/doc/developper/html/functions_0x6c.html @@ -16,7 +16,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
      • LoadAll() : parm_code, fiche_def_ref
      • loadTemplate() : Cezpdf
      -
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/functions_0x6d.html b/doc/developper/html/functions_0x6d.html index a3f234a4e..c03b8d0e4 100644 --- a/doc/developper/html/functions_0x6d.html +++ b/doc/developper/html/functions_0x6d.html @@ -14,9 +14,9 @@ Here is a list of all struct and union fields with links to the structures/union

      - m -

      -
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +: Document
    • myList() +: Document_modele, action
    +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x6e.html b/doc/developper/html/functions_0x6e.html index 5b72695b0..069e21f12 100644 --- a/doc/developper/html/functions_0x6e.html +++ b/doc/developper/html/functions_0x6e.html @@ -15,7 +15,7 @@ Here is a list of all struct and union fields with links to the structures/union
  • newDocument() : Cpdf
  • newPage() : Cpdf
-
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/functions_0x6f.html b/doc/developper/html/functions_0x6f.html index df2af352c..c0bf581e7 100644 --- a/doc/developper/html/functions_0x6f.html +++ b/doc/developper/html/functions_0x6f.html @@ -34,7 +34,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • output() : Cpdf
  • Own() : Own -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x70.html b/doc/developper/html/functions_0x70.html index 08ce62c2b..65adb007a 100644 --- a/doc/developper/html/functions_0x70.html +++ b/doc/developper/html/functions_0x70.html @@ -23,7 +23,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • PRVTcheckTextDirective1() : Cpdf
  • PRVTgetTextPosition() : Cpdf -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x72.html b/doc/developper/html/functions_0x72.html index 628c633fc..e8a0e9e1f 100644 --- a/doc/developper/html/functions_0x72.html +++ b/doc/developper/html/functions_0x72.html @@ -15,13 +15,13 @@ Here is a list of all struct and union fields with links to the structures/union
  • rapport() : rapport
  • rectangle() : Cpdf
  • remove() -: fiche, Document
  • reopenObject() +: fiche, Document
  • reopenObject() : Cpdf
  • Replace() -: Document
  • Reset() +: Document
  • Reset() : widget
  • restoreState() : Cpdf
  • rf() : Creport -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x73.html b/doc/developper/html/functions_0x73.html index 5664d1fa3..141a633fa 100644 --- a/doc/developper/html/functions_0x73.html +++ b/doc/developper/html/functions_0x73.html @@ -15,10 +15,11 @@ Here is a list of all struct and union fields with links to the structures/union
  • Save() : parm_code, Own, fiche_def_ref, fiche, Document_modele
  • SaveGenerated() : Document
  • SaveStage2() -: action
  • SaveStage3() -: action
  • saveState() +: action
  • SaveStage3() +: action
  • saveState() : Cpdf
  • selectFont() -: Cpdf
  • setColor() +: Cpdf
  • Send() +: Document
  • setColor() : Cpdf
  • setCurrentFont() : Cpdf
  • setEncryption() : Cpdf
  • setFontFamily() @@ -36,7 +37,7 @@ Here is a list of all struct and union fields with links to the structures/union : widget
  • Summary() : Supplier, Customer, contact, Admin
  • Supplier() : Supplier -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x74.html b/doc/developper/html/functions_0x74.html index fd11a2f6a..c5c3c05ff 100644 --- a/doc/developper/html/functions_0x74.html +++ b/doc/developper/html/functions_0x74.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

    - t -

    • transaction() : Cpdf
    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x75.html b/doc/developper/html/functions_0x75.html index f5e51714a..47ecdf259 100644 --- a/doc/developper/html/functions_0x75.html +++ b/doc/developper/html/functions_0x75.html @@ -18,7 +18,7 @@ Here is a list of all struct and union fields with links to the structures/union : cl_user
  • UpdateRow() : Own
  • Upload() : Document -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x76.html b/doc/developper/html/functions_0x76.html index 49a3308c4..0e28fa642 100644 --- a/doc/developper/html/functions_0x76.html +++ b/doc/developper/html/functions_0x76.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

    - v -

    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x77.html b/doc/developper/html/functions_0x77.html index 67eb153fa..29f6a93b1 100644 --- a/doc/developper/html/functions_0x77.html +++ b/doc/developper/html/functions_0x77.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

    - w -

    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_func.html b/doc/developper/html/functions_func.html index 8ef280aa9..b531486ad 100644 --- a/doc/developper/html/functions_func.html +++ b/doc/developper/html/functions_func.html @@ -46,7 +46,7 @@ : Cpdf
  • cl_user() : cl_user
  • closeObject() : Cpdf
  • Confirm() -: action
  • contact() +: action
  • contact() : contact
  • CountByDef() : fiche
  • Cpdf() : Cpdf
  • Creport() @@ -102,16 +102,17 @@ : Document_modele

    - g -

    - h -

    - n -

    @@ -203,10 +204,11 @@
  • Save() : parm_code, Own, fiche_def_ref, fiche, Document_modele
  • SaveGenerated() : Document
  • SaveStage2() -: action
  • SaveStage3() -: action
  • saveState() +: action
  • SaveStage3() +: action
  • saveState() : Cpdf
  • selectFont() -: Cpdf
  • setColor() +: Cpdf
  • Send() +: Document
  • setColor() : Cpdf
  • setCurrentFont() : Cpdf
  • setEncryption() : Cpdf
  • setFontFamily() @@ -240,7 +242,7 @@

    - w -

    -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_vars.html b/doc/developper/html/functions_vars.html index d93bea1c9..75e624798 100644 --- a/doc/developper/html/functions_vars.html +++ b/doc/developper/html/functions_vars.html @@ -16,11 +16,11 @@ : Attribut
  • $ad_text : Attribut
  • $addLooseObjects : Cpdf
  • $admin -: cl_user
  • $ag_date -: action
  • $ag_desc +: cl_user
  • $ag_comment : action
  • $ag_id -: Document
  • $ag_title -: action
  • $all +: Document
  • $ag_timestamp +: action
  • $ag_title +: action
  • $all : fiche_def
  • $arc4 : Cpdf
  • $arc4_objnum : Cpdf
  • $attribut @@ -46,15 +46,15 @@ : Cpdf
  • $currentStrokeColour : Cpdf
  • $currentTextState : Cpdf
  • $d_filename -: Document, action
  • $d_lob -: Document, action
  • $d_mimetype -: Document, action
  • $d_number -: Document, action
  • $d_state -: action
  • $db +: Document, action
  • $d_lob +: Document
  • $d_mimetype +: Document, action
  • $d_number +: Document, action
  • $d_state +: Document, action
  • $db : cl_user, rapport, poste, parm_code, Own, jrn, Document, Balance, action
  • $destinations : Cpdf
  • $disabled : widget
  • $dt_id -: action
  • $encrypted +: action
  • $encrypted : Cpdf
  • $encryptionKey : Cpdf
  • $extra : widget
  • $extra2 @@ -62,7 +62,7 @@ : Cezpdf
  • $ezPageCount : Cezpdf
  • $ezPages : Cezpdf
  • $f_id -: action
  • $fiche_def +: action
  • $fiche_def : fiche, fiche_def
  • $fiche_def_ref : fiche
  • $fileIdentifier : Cpdf
  • $firstPageId @@ -74,7 +74,7 @@ : fiche_def_ref
  • $id : cl_user, rapport, poste, jrn, fiche, fiche_def
  • $infoObject : Cpdf
  • $label -: widget, fiche_def
  • $looseObjects +: widget, poste, fiche_def
  • $looseObjects : Cpdf
  • $md_id : Document_modele, Document
  • $md_lob : Document_modele
  • $md_name @@ -94,13 +94,14 @@ : Cpdf
  • $p_code : parm_code
  • $p_comment : parm_code
  • $p_value -: parm_code
  • $pass +: parm_code
  • $parent +: poste
  • $pass : cl_user
  • $poste : Supplier, Customer
  • $procsetObjectId : Cpdf
  • $readonly : widget
  • $reportContents : Creport
  • $row -: poste, jrn, Balance
  • $selected +: poste, jrn, Balance
  • $selected : widget
  • $sequence : Document_modele
  • $size : widget
  • $stack @@ -115,7 +116,7 @@ : Supplier, Customer, Admin
  • $wordSpaceAdjust : Cpdf
  • $y : Cezpdf -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals.html b/doc/developper/html/globals.html index 43a8f9011..d2eb733dc 100644 --- a/doc/developper/html/globals.html +++ b/doc/developper/html/globals.html @@ -14,20 +14,20 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - $ -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x5f.html b/doc/developper/html/globals_0x5f.html index f3350a0f4..f1dc0e623 100644 --- a/doc/developper/html/globals_0x5f.html +++ b/doc/developper/html/globals_0x5f.html @@ -19,7 +19,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : readme.php
  • __pad4__ : readme.php
  • __pad5__ : readme.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x61.html b/doc/developper/html/globals_0x61.html index 597b3f5b0..a94545fd3 100644 --- a/doc/developper/html/globals_0x61.html +++ b/doc/developper/html/globals_0x61.html @@ -16,33 +16,34 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • AddFiche() : fiche_inc.php
  • AddForm() : form_inc.php
  • AddModele() -: fiche_inc.php
  • ag_date -: action.inc.php
  • ag_desc -: action.inc.php
  • ag_id -: facture.inc.php, action.inc.php
  • ag_title -: action.inc.php
  • ALL_FICHE_DEF_REF -: constant.php
  • AlterSequence() +: fiche_inc.php
  • ag_comment +: action.inc.php
  • ag_id +: facture.inc.php, action.inc.php
  • ag_timestamp +: action.inc.php
  • ag_title +: action.inc.php
  • ALL +: constant.php
  • ALL_FICHE_DEF_REF +: constant.php
  • AlterSequence() : postgres.php
  • AnalyzeError() : error.php
  • ATTR_DEF_ACCOUNT -: constant.php
  • ATTR_DEF_ADRESS -: constant.php
  • ATTR_DEF_COMPANY -: constant.php
  • ATTR_DEF_CP -: constant.php
  • ATTR_DEF_DEPENSE_NON_DEDUCTIBLE -: constant.php
  • ATTR_DEF_EMAIL -: constant.php
  • ATTR_DEF_FAX -: constant.php
  • ATTR_DEF_NAME -: constant.php
  • ATTR_DEF_NUMTVA -: constant.php
  • ATTR_DEF_PAYS -: constant.php
  • ATTR_DEF_PRIX_ACHAT -: constant.php
  • ATTR_DEF_PRIX_VENTE -: constant.php
  • ATTR_DEF_QUICKCODE -: constant.php
  • ATTR_DEF_STOCK -: constant.php
  • ATTR_DEF_TEL -: constant.php
  • ATTR_DEF_TVA -: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE -: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP -: constant.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: constant.php
  • ATTR_DEF_ADRESS +: constant.php
  • ATTR_DEF_COMPANY +: constant.php
  • ATTR_DEF_CP +: constant.php
  • ATTR_DEF_DEPENSE_NON_DEDUCTIBLE +: constant.php
  • ATTR_DEF_EMAIL +: constant.php
  • ATTR_DEF_FAX +: constant.php
  • ATTR_DEF_NAME +: constant.php
  • ATTR_DEF_NUMTVA +: constant.php
  • ATTR_DEF_PAYS +: constant.php
  • ATTR_DEF_PRIX_ACHAT +: constant.php
  • ATTR_DEF_PRIX_VENTE +: constant.php
  • ATTR_DEF_QUICKCODE +: constant.php
  • ATTR_DEF_STOCK +: constant.php
  • ATTR_DEF_TEL +: constant.php
  • ATTR_DEF_TVA +: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE +: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP +: constant.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x62.html b/doc/developper/html/globals_0x62.html index d873631b6..6fb578ff3 100644 --- a/doc/developper/html/globals_0x62.html +++ b/doc/developper/html/globals_0x62.html @@ -20,7 +20,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_impress.php
  • BQE : constant.php
  • break : user_impress.php, readme.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x63.html b/doc/developper/html/globals_0x63.html index f947b4c1e..0a93dee6a 100644 --- a/doc/developper/html/globals_0x63.html +++ b/doc/developper/html/globals_0x63.html @@ -32,7 +32,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : jrn.php
  • CountSql() : postgres.php
  • CreatePeriodeCond() : impress_inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x64.html b/doc/developper/html/globals_0x64.html index d2025e97d..260bb68f3 100644 --- a/doc/developper/html/globals_0x64.html +++ b/doc/developper/html/globals_0x64.html @@ -13,7 +13,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - d -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x65.html b/doc/developper/html/globals_0x65.html index f094ee1c4..6c7d1a776 100644 --- a/doc/developper/html/globals_0x65.html +++ b/doc/developper/html/globals_0x65.html @@ -29,9 +29,9 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : postgres.php
  • exit : user_sec.php, user_jrn.php, show_tva.php, show_pj.php, show_document_modele.php, sec_pdf.php, print_balance.php, poste_csv.php, pcmn_update.php, parametre.php, modify_op.php, line_update.php, jrn_update.php, jrn_search.php, jrn_detail.php, jrn_csv.php, jrn_add.php, fiche_csv.php, export_ouv.php, ecrit_ouv.php, bal_csv.php, annulation.php, admin_repo.php, user_update.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, balance.php
  • EXP_IMP_ECR : constant.php
  • extra -: action.inc.php
  • extra2 -: action.inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: contact.inc.php, action.inc.php
  • extra2 +: action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x66.html b/doc/developper/html/globals_0x66.html index fa084b8eb..6c2e773cc 100644 --- a/doc/developper/html/globals_0x66.html +++ b/doc/developper/html/globals_0x66.html @@ -17,12 +17,12 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • fiche : user_impress.php
  • FICHE_READ : constant.php
  • FICHE_TYPE_ADM_TAX -: constant.php
  • FICHE_TYPE_CLIENT -: constant.php
  • FICHE_TYPE_CONTACT -: constant.php
  • FICHE_TYPE_FIN -: constant.php
  • FICHE_TYPE_FOURNISSEUR -: constant.php
  • FICHE_TYPE_VENTE -: constant.php
  • FICHE_WRITE +: constant.php
  • FICHE_TYPE_CLIENT +: constant.php
  • FICHE_TYPE_CONTACT +: constant.php
  • FICHE_TYPE_FIN +: constant.php
  • FICHE_TYPE_FOURNISSEUR +: constant.php
  • FICHE_TYPE_VENTE +: constant.php
  • FICHE_WRITE : constant.php
  • FIRST : constant.php
  • FORM : constant.php
  • form_verify_input() @@ -40,7 +40,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_def.inc.php
  • frd_id : fiche_def.inc.php
  • frd_text : fiche_def.inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x67.html b/doc/developper/html/globals_0x67.html index 423d4c027..b1bd8eea0 100644 --- a/doc/developper/html/globals_0x67.html +++ b/doc/developper/html/globals_0x67.html @@ -13,7 +13,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - g -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x68.html b/doc/developper/html/globals_0x68.html index 1862bb876..493373e14 100644 --- a/doc/developper/html/globals_0x68.html +++ b/doc/developper/html/globals_0x68.html @@ -17,7 +17,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : ac_common.php
  • html_page_start() : ac_common.php
  • html_page_stop() : ac_common.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x69.html b/doc/developper/html/globals_0x69.html index 547d5b793..742e797c1 100644 --- a/doc/developper/html/globals_0x69.html +++ b/doc/developper/html/globals_0x69.html @@ -30,7 +30,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_inc.php
  • isNumber() : ac_common.php
  • isValid() : user_common.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6a.html b/doc/developper/html/globals_0x6a.html index fbe9b2663..a2723636d 100644 --- a/doc/developper/html/globals_0x6a.html +++ b/doc/developper/html/globals_0x6a.html @@ -14,17 +14,17 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - j -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: constant.php
  • JS_CONCERNED_OP +: constant.php
  • JS_SEARCH_CARD +: constant.php
  • JS_SEARCH_POSTE +: constant.php
  • JS_SHOW_TVA +: constant.php
  • JS_TVA +: constant.php
  • JS_UPDATE_PCMN +: constant.php
  • JS_VIEW_JRN_CANCEL +: constant.php
  • JS_VIEW_JRN_DETAIL +: constant.php
  • JS_VIEW_JRN_MODIFY +: constant.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6c.html b/doc/developper/html/globals_0x6c.html index 5362c44bf..2392fdb42 100644 --- a/doc/developper/html/globals_0x6c.html +++ b/doc/developper/html/globals_0x6c.html @@ -13,11 +13,11 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - l -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6d.html b/doc/developper/html/globals_0x6d.html index 2be19540b..3d4aad2c7 100644 --- a/doc/developper/html/globals_0x6d.html +++ b/doc/developper/html/globals_0x6d.html @@ -15,23 +15,26 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li
  • make_array() : ac_common.php
  • MakeListingVat() : decla.BE.inc.php
  • md_id -: facture.inc.php, document_modele.inc.php, action.inc.php
  • md_name +: facture.inc.php, document_modele.inc.php, action.inc.php
  • md_name : document_modele.inc.php
  • md_type : document_modele.inc.php
  • MENU_FACT -: constant.php
  • MENU_FICHE -: constant.php
  • MENU_PARAM -: constant.php
  • MenuAdmin() +: constant.php
  • MENU_FICHE +: constant.php
  • MENU_PARAM +: constant.php
  • MenuAdmin() : user_menu.php
  • MenuJrn() : user_menu.php
  • METHOD : pref.inc.php
  • MPCMN : constant.php
  • MY_COMMUNE : parametre.php
  • MY_CP -: parametre.php
  • MY_NAME +: parametre.php
  • MY_FAX +: parametre.php
  • MY_NAME : parametre.php
  • MY_NUMBER -: parametre.php
  • MY_STREET -: parametre.php
  • MY_TVA +: parametre.php
  • MY_PAYS +: parametre.php
  • MY_STREET +: parametre.php
  • MY_TEL +: parametre.php
  • MY_TVA : parametre.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6e.html b/doc/developper/html/globals_0x6e.html index c08ef1f47..5665c3bc8 100644 --- a/doc/developper/html/globals_0x6e.html +++ b/doc/developper/html/globals_0x6e.html @@ -13,7 +13,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - n -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6f.html b/doc/developper/html/globals_0x6f.html index 134867c24..dc99d353d 100644 --- a/doc/developper/html/globals_0x6f.html +++ b/doc/developper/html/globals_0x6f.html @@ -15,7 +15,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li
  • ODS : constant.php
  • OPEN : constant.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x70.html b/doc/developper/html/globals_0x70.html index 9caee2fc2..7267944db 100644 --- a/doc/developper/html/globals_0x70.html +++ b/doc/developper/html/globals_0x70.html @@ -24,7 +24,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_impress.php
  • PosteForm() : poste.php
  • print : impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x72.html b/doc/developper/html/globals_0x72.html index 9d599644b..24d19f3cd 100644 --- a/doc/developper/html/globals_0x72.html +++ b/doc/developper/html/globals_0x72.html @@ -27,7 +27,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : priv_user.php, parametre.php, listing_client.php, jrn_search.php, form.php, fiche_new.php, admin_repo.php, user_action_ach.php, periode.inc.php, impress_listing_client.php
  • Rollback() : postgres.php
  • ros_logo() : readme.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x73.html b/doc/developper/html/globals_0x73.html index c8f4e2842..ab72b6ed3 100644 --- a/doc/developper/html/globals_0x73.html +++ b/doc/developper/html/globals_0x73.html @@ -16,7 +16,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : postgres.php
  • SaveModeleName() : fiche_inc.php
  • SECU : constant.php
  • selected -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, bank.inc.php, action.inc.php
  • SetInternalCode() +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, bank.inc.php, action.inc.php
  • SetInternalCode() : jrn.php
  • ShowActionList() : action.inc.php
  • ShowDevise() : preference.php
  • ShowDossier() @@ -35,19 +35,19 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_menu.php
  • ShowMenuPcmn() : user_menu.php
  • ShowPeriode() : preference.php
  • ShowReportResult() -: impress_rapport.php
  • size +: impress_rapport.php
  • size : annulation.php, tva.inc.php
  • SortAttributeById() : class_attribut.php
  • SQL_LIST_ALL_INVOICE -: constant.php
  • SQL_LIST_UNPAID_INVOICE -: constant.php
  • SQL_LIST_UNPAID_INVOICE_DATE_LIMIT -: constant.php
  • start +: constant.php
  • SQL_LIST_UNPAID_INVOICE +: constant.php
  • SQL_LIST_UNPAID_INVOICE_DATE_LIMIT +: constant.php
  • start : document_modele.inc.php
  • StartSql() : postgres.php
  • STOCK_READ : constant.php
  • STOCK_WRITE : constant.php
  • success< br > : test.php, setup.php
  • SyncRight() : postgres.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x74.html b/doc/developper/html/globals_0x74.html index 29395a7a4..4a66a1a97 100644 --- a/doc/developper/html/globals_0x74.html +++ b/doc/developper/html/globals_0x74.html @@ -13,10 +13,10 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - t -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x75.html b/doc/developper/html/globals_0x75.html index fe7c41bb9..f6a84f530 100644 --- a/doc/developper/html/globals_0x75.html +++ b/doc/developper/html/globals_0x75.html @@ -21,7 +21,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : form_inc.php
  • UpdateJrn() : jrn.php
  • UpdateModele() : fiche_inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x76.html b/doc/developper/html/globals_0x76.html index d80742011..8f59912e3 100644 --- a/doc/developper/html/globals_0x76.html +++ b/doc/developper/html/globals_0x76.html @@ -13,12 +13,14 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - v -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x77.html b/doc/developper/html/globals_0x77.html index 13f768ff9..521493a2a 100644 --- a/doc/developper/html/globals_0x77.html +++ b/doc/developper/html/globals_0x77.html @@ -15,7 +15,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li
  • width : tva.inc.php
  • withStock() : user_common.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x79.html b/doc/developper/html/globals_0x79.html index b3d60a91e..b0831af0f 100644 --- a/doc/developper/html/globals_0x79.html +++ b/doc/developper/html/globals_0x79.html @@ -14,7 +14,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - y -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_enum.html b/doc/developper/html/globals_enum.html index 652043ed8..1aadcbf0e 100644 --- a/doc/developper/html/globals_enum.html +++ b/doc/developper/html/globals_enum.html @@ -13,26 +13,27 @@

    - a -

    +: constant.php
  • ALL +: constant.php
  • ALL_FICHE_DEF_REF +: constant.php
  • ATTR_DEF_ACCOUNT +: constant.php
  • ATTR_DEF_ADRESS +: constant.php
  • ATTR_DEF_COMPANY +: constant.php
  • ATTR_DEF_CP +: constant.php
  • ATTR_DEF_DEPENSE_NON_DEDUCTIBLE +: constant.php
  • ATTR_DEF_EMAIL +: constant.php
  • ATTR_DEF_FAX +: constant.php
  • ATTR_DEF_NAME +: constant.php
  • ATTR_DEF_NUMTVA +: constant.php
  • ATTR_DEF_PAYS +: constant.php
  • ATTR_DEF_PRIX_ACHAT +: constant.php
  • ATTR_DEF_PRIX_VENTE +: constant.php
  • ATTR_DEF_QUICKCODE +: constant.php
  • ATTR_DEF_STOCK +: constant.php
  • ATTR_DEF_TEL +: constant.php
  • ATTR_DEF_TVA +: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE +: constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP +: constant.php

    - b -

    @@ -77,24 +78,24 @@ : constant.php

    - j -

    +: constant.php
  • JS_CONCERNED_OP +: constant.php
  • JS_SEARCH_CARD +: constant.php
  • JS_SEARCH_POSTE +: constant.php
  • JS_SHOW_TVA +: constant.php
  • JS_TVA +: constant.php
  • JS_UPDATE_PCMN +: constant.php
  • JS_VIEW_JRN_CANCEL +: constant.php
  • JS_VIEW_JRN_DETAIL +: constant.php
  • JS_VIEW_JRN_MODIFY +: constant.php

    - l -

    - m -

    - n -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x61.html b/doc/developper/html/globals_vars_0x61.html index 5d6732f72..43ee53886 100644 --- a/doc/developper/html/globals_vars_0x61.html +++ b/doc/developper/html/globals_vars_0x61.html @@ -12,12 +12,12 @@

    - a -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
  • ag_comment +: action.inc.php
  • ag_id +: facture.inc.php, action.inc.php
  • ag_timestamp +: action.inc.php
  • ag_title +: action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x62.html b/doc/developper/html/globals_vars_0x62.html index c5ddba224..571dffb29 100644 --- a/doc/developper/html/globals_vars_0x62.html +++ b/doc/developper/html/globals_vars_0x62.html @@ -16,7 +16,7 @@ : user_impress.php
  • bilan : user_impress.php
  • break : user_impress.php, readme.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x63.html b/doc/developper/html/globals_vars_0x63.html index c0e165dd7..9a76fe321 100644 --- a/doc/developper/html/globals_vars_0x63.html +++ b/doc/developper/html/globals_vars_0x63.html @@ -16,7 +16,7 @@ : test_smarty.php
  • compile_dir : test_smarty.php
  • config_dir : test_smarty.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x64.html b/doc/developper/html/globals_vars_0x64.html index 356244134..932b4ddbc 100644 --- a/doc/developper/html/globals_vars_0x64.html +++ b/doc/developper/html/globals_vars_0x64.html @@ -13,10 +13,10 @@

    - d -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: action.inc.php
  • disabled +: impress_poste.php
  • dt_id +: action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x65.html b/doc/developper/html/globals_vars_0x65.html index 791d9b5dc..6b8a1725d 100644 --- a/doc/developper/html/globals_vars_0x65.html +++ b/doc/developper/html/globals_vars_0x65.html @@ -15,9 +15,9 @@
  • else : user_sec.php
  • exit : user_sec.php, user_jrn.php, show_tva.php, show_pj.php, show_document_modele.php, sec_pdf.php, print_balance.php, poste_csv.php, pcmn_update.php, parametre.php, modify_op.php, line_update.php, jrn_update.php, jrn_search.php, jrn_detail.php, jrn_csv.php, jrn_add.php, fiche_csv.php, export_ouv.php, ecrit_ouv.php, bal_csv.php, annulation.php, admin_repo.php, user_update.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, balance.php
  • extra -: action.inc.php
  • extra2 -: action.inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: contact.inc.php, action.inc.php
  • extra2 +: action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x66.html b/doc/developper/html/globals_vars_0x66.html index 22dad7b5d..00de842c3 100644 --- a/doc/developper/html/globals_vars_0x66.html +++ b/doc/developper/html/globals_vars_0x66.html @@ -18,7 +18,7 @@ : fiche_def.inc.php
  • frd_id : fiche_def.inc.php
  • frd_text : fiche_def.inc.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x68.html b/doc/developper/html/globals_vars_0x68.html index f7ded1235..e1e2aaa6e 100644 --- a/doc/developper/html/globals_vars_0x68.html +++ b/doc/developper/html/globals_vars_0x68.html @@ -14,7 +14,7 @@

    - h -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x69.html b/doc/developper/html/globals_vars_0x69.html index f2916c762..ab10ec686 100644 --- a/doc/developper/html/globals_vars_0x69.html +++ b/doc/developper/html/globals_vars_0x69.html @@ -14,7 +14,7 @@

    - i -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6c.html b/doc/developper/html/globals_vars_0x6c.html index 26ee5837e..53127585f 100644 --- a/doc/developper/html/globals_vars_0x6c.html +++ b/doc/developper/html/globals_vars_0x6c.html @@ -13,9 +13,9 @@

    - l -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6d.html b/doc/developper/html/globals_vars_0x6d.html index a141f5efa..d2930e2ec 100644 --- a/doc/developper/html/globals_vars_0x6d.html +++ b/doc/developper/html/globals_vars_0x6d.html @@ -13,17 +13,20 @@

    - m -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6e.html b/doc/developper/html/globals_vars_0x6e.html index 75075a587..db8f4e9bb 100644 --- a/doc/developper/html/globals_vars_0x6e.html +++ b/doc/developper/html/globals_vars_0x6e.html @@ -13,8 +13,8 @@

    - n -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, admin.inc.php, action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x70.html b/doc/developper/html/globals_vars_0x70.html index effeb319d..d640dd924 100644 --- a/doc/developper/html/globals_vars_0x70.html +++ b/doc/developper/html/globals_vars_0x70.html @@ -17,7 +17,7 @@ : poste.inc.php
  • poste : user_impress.php
  • print : impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x72.html b/doc/developper/html/globals_vars_0x72.html index ab81a179f..6dbd11cf1 100644 --- a/doc/developper/html/globals_vars_0x72.html +++ b/doc/developper/html/globals_vars_0x72.html @@ -16,7 +16,7 @@ : user_impress.php
  • readonly : ecrit_ouv.php
  • return : priv_user.php, parametre.php, listing_client.php, jrn_search.php, form.php, fiche_new.php, admin_repo.php, user_action_ach.php, periode.inc.php, impress_listing_client.php -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x73.html b/doc/developper/html/globals_vars_0x73.html index 2ece18544..e4001052f 100644 --- a/doc/developper/html/globals_vars_0x73.html +++ b/doc/developper/html/globals_vars_0x73.html @@ -13,11 +13,11 @@

    - s -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x74.html b/doc/developper/html/globals_vars_0x74.html index c01e72034..a1f489cc6 100644 --- a/doc/developper/html/globals_vars_0x74.html +++ b/doc/developper/html/globals_vars_0x74.html @@ -13,9 +13,9 @@

    - t -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x76.html b/doc/developper/html/globals_vars_0x76.html index 0df995884..4515c33cb 100644 --- a/doc/developper/html/globals_vars_0x76.html +++ b/doc/developper/html/globals_vars_0x76.html @@ -13,8 +13,8 @@

    - v -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, admin.inc.php, action.inc.php +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x77.html b/doc/developper/html/globals_vars_0x77.html index 8d170ef6a..eec5b68e9 100644 --- a/doc/developper/html/globals_vars_0x77.html +++ b/doc/developper/html/globals_vars_0x77.html @@ -14,7 +14,7 @@

    - w -

    -
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/hierarchy.html b/doc/developper/html/hierarchy.html index fd41a9de9..5ea2a91f7 100644 --- a/doc/developper/html/hierarchy.html +++ b/doc/developper/html/hierarchy.html @@ -36,7 +36,7 @@
  • rapport
  • widget -
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import_8php-source.html b/doc/developper/html/import_8php-source.html index 64bbd4906..034d3996b 100644 --- a/doc/developper/html/import_8php-source.html +++ b/doc/developper/html/import_8php-source.html @@ -67,7 +67,7 @@ 00062 if ( isset( $_REQUEST['PHPSESSID'])) { 00063 $sessid = $_REQUEST['PHPSESSID']; 00064 } -00065 echo JS_SEARCH_POSTE; +00065 echo JS_SEARCH_POSTE; 00066 00067 // if action is set proceed to it 00068 if ( isset ($_GET["action"]) ) { @@ -102,7 +102,7 @@ 00097 00098 html_page_stop(); 00099 ?> -
    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import_8php.html b/doc/developper/html/import_8php.html index b9e91e5fc..2d1fc61b5 100644 --- a/doc/developper/html/import_8php.html +++ b/doc/developper/html/import_8php.html @@ -75,7 +75,7 @@ Definition at line 52 of Definition at line 38 of file import.php. -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import__inc_8php-source.html b/doc/developper/html/import__inc_8php-source.html index 2502aed3f..2ac47027d 100644 --- a/doc/developper/html/import__inc_8php-source.html +++ b/doc/developper/html/import__inc_8php-source.html @@ -60,19 +60,19 @@ 00069 $Res=ExecSql($p_cn,$sql); 00070 $Num=pg_NumRows($Res); 00071 echo $Num." opérations à complèter.<br/><br/>"; -00072 $i=1; +00072 $i=1; 00073 while($val = pg_fetch_array($Res)){ 00074 echo '<form METHOD="POST" action="import.php?action=verif">'; -00075 echo '<input type="hidden" name="code" value="'.$val['code'].'">'; +00075 echo '<input type="hidden" name="code" value="'.$val['code'].'">'; 00076 echo '<table border="1" width="500">'; 00077 echo '<tr><td width="200">'.$val['code'].'</td><td width="200">'.$val['date_exec'].'</td><td width="100">'.$val['montant'].' EUR</td><tr/>'; 00078 echo '<tr><td height="50" colspan="3">'.$val['detail'].'</td><tr/>'; -00079 echo '<tr><td>Poste Comptable : <input type="text" size="10" name="poste"></td>'; +00079 echo '<tr><td>Poste Comptable : <input type="text" size="10" name="poste"></td>'; 00080 echo "<td>n° compte : ".$val['num_compte']."</td>"; -00081 echo '<td><input type="submit" value="modifier"></td><tr/>'; +00081 echo '<td><input type="submit" value="modifier"></td><tr/>'; 00082 echo '</table>'; 00083 echo '</FORM>'; -00084 $i++; +00084 $i++; 00085 } 00086 } 00090 function TransferCSV($p_cn, $periode){ @@ -150,7 +150,7 @@ 00174 function ShowFormTransfert($p_cn){ 00175 $w=new widget("select"); 00176 echo '<FORM METHOD="POST" action="import.php?action=import" enctype="multipart/form-data">'; -00177 echo '<INPUT TYPE="file" name="fupload" size="20"><br>'; +00177 echo '<INPUT TYPE="file" name="fupload" size="20"><br>'; 00178 // ask for the journal target 00179 $jrn=make_array ($p_cn,"select jrn_def_id,jrn_def_name from jrn_def where jrn_def_type='FIN';"); 00180 $w->label='Journal'; @@ -166,7 +166,7 @@ 00190 echo '</FORM>'; 00191 } 00192 ?> -
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import__inc_8php.html b/doc/developper/html/import__inc_8php.html index d0cab941d..0ecf2f6f5 100644 --- a/doc/developper/html/import__inc_8php.html +++ b/doc/developper/html/import__inc_8php.html @@ -95,7 +95,7 @@ Parse the file and insert the record into the table import_tmp. Insert in a temp

    Definition at line 37 of file import_inc.php.

    -References Commit(), print, and StartSql(). +References Commit(), print, and StartSql().

    @@ -131,7 +131,7 @@ parm : database connection

      Definition at line 174 of file import_inc.php.

      -References $jrn, $w, make_array(), METHOD, name, and size. +References $jrn, $w, make_array(), METHOD, name, and size.

      @@ -174,7 +174,7 @@ Transfert data into the ledger.

      Definition at line 90 of file import_inc.php.

      -References $_SESSION, $code, $date_exec, $end, $jrn, $Max, $montant, $poste_comptable, $r, $Res, $Res2, $seq, $sql, $start, $val, Commit(), ExecSql(), exit, InsertJrn(), InsertJrnx(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). +References $_SESSION, $code, $date_exec, $end, $jrn, $Max, $montant, $poste_comptable, $r, $Res, $Res2, $seq, $sql, $start, $val, Commit(), ExecSql(), exit, InsertJrn(), InsertJrnx(), NextSequence(), Rollback(), SetInternalCode(), and StartSql().

      @@ -258,10 +258,10 @@ Verify the import.

      Definition at line 67 of file import_inc.php.

      -References $i, $Num, $Res, $sql, $val, ExecSql(), METHOD, name, size, table, value, and width. +References $i, $Num, $Res, $sql, $val, ExecSql(), METHOD, name, size, table, value, and width. -


      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__bilan_8php-source.html b/doc/developper/html/impress__bilan_8php-source.html index f705b9007..1283e8f19 100644 --- a/doc/developper/html/impress__bilan_8php-source.html +++ b/doc/developper/html/impress__bilan_8php-source.html @@ -27,35 +27,38 @@ 00018 */ 00019 /* $Revision$ */ 00020 include_once("class_widget.php"); -00025 -00026 // Show the jrn and date -00028 include_once("postgres.php"); -00029 $ret=make_array($cn,"select fr_id,fr_label -00030 from formdef -00031 order by fr_label"); -00033 // Form -00035 $w=new widget("select"); -00036 $w->table=1; -00037 -00038 echo '<div class="u_redcontent">'; -00039 echo '<FORM ACTION="bilan.php" METHOD="POST">'; -00040 echo '<TABLE>'; -00041 -00042 print '<TR>'; -00043 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00044 $w->label="Depuis"; -00045 print $w->IOValue('from_periode',$periode_start); -00046 $w->label=" jusqu'à "; -00047 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); -00048 print $w->IOValue('to_periode',$periode_end); -00049 print "</TR>"; -00050 echo '</TABLE>'; -00051 print $w->Submit('bt_rtf','Impression'); -00052 -00053 echo '</FORM>'; -00054 echo '</div>'; -00055 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00028 +00029 // Show the jrn and date +00031 include_once("postgres.php"); +00032 $ret=make_array($cn,"select fr_id,fr_label +00033 from formdef +00034 order by fr_label"); +00036 // Form +00038 $w=new widget("select"); +00039 $w->table=1; +00040 +00041 echo '<div class="u_redcontent">'; +00042 echo '<FORM ACTION="bilan.php" METHOD="POST">'; +00043 echo '<TABLE>'; +00044 +00045 print '<TR>'; +00046 // filter on the current year +00047 $filter_year=" where p_exercice='".$User->getExercice()."'"; +00048 +00049 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00050 $w->label="Depuis"; +00051 print $w->IOValue('from_periode',$periode_start); +00052 $w->label=" jusqu'à "; +00053 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00054 print $w->IOValue('to_periode',$periode_end); +00055 print "</TR>"; +00056 echo '</TABLE>'; +00057 print $w->Submit('bt_rtf','Impression'); +00058 +00059 echo '</FORM>'; +00060 echo '</div>'; +00061 ?> +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__bilan_8php.html b/doc/developper/html/impress__bilan_8php.html index 54afe76bb..655654763 100644 --- a/doc/developper/html/impress__bilan_8php.html +++ b/doc/developper/html/impress__bilan_8php.html @@ -7,7 +7,7 @@ -

      impress_bilan.php File Reference

      form who call the printing of the bilan in RTF More... +

      impress_bilan.php File Reference

      form who call the printing of the bilan in RTF file included by user_impress More...

      @@ -22,26 +22,28 @@  print$periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") + $filter_year = " where p_exercice='".$User->getExercice()."'" -$w label = "Depuis" + $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id") - $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") +$w label = "Depuis" + + $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")


      Detailed Description

      -form who call the printing of the bilan in RTF +form who call the printing of the bilan in RTF file included by user_impress

      - +some variable are already defined ($cn, $User ...)

      Definition in file impress_bilan.php.


      Variable Documentation

      -

      +

      @@ -60,13 +62,13 @@ Definition in file impress_ Definition at line 47 of file impress_bilan.php.
      - +
      $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") $filter_year = " where p_exercice='".$User->getExercice()."'"
      -

      +

      @@ -82,7 +84,32 @@ Definition at line 4

      -Definition at line 43 of file impress_bilan.php. +Definition at line 53 of file impress_bilan.php. +

      +
      - +
      $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
      +

      + + + + +
      + + + + +
      $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
      +
      + + + +
      +   + + +

      + +

      +Definition at line 49 of file impress_bilan.php.

      @@ -110,9 +137,9 @@ Definition at line 4 order by fr_label")

      -Definition at line 29 of file impress_bilan.php. +Definition at line 32 of file impress_bilan.php.

      -Referenced by cl_user::Check(), fiche::Display(), ExecSql(), FormPeriode(), FormPeriodeMult(), Document::Generate(), Document_modele::Get(), Document::Get(), GetJrnName(), rapport::GetName(), poste::GetName(), jrn::GetName(), GetNextFiche(), getPeriodeName(), ImpHtml(), PosteForm(), Document_modele::Save(), save_upload_document(), ShowItem(), ShowMenuJrn(), and Document::Upload(). +Referenced by cl_user::Check(), fiche::Display(), ExecSql(), FormPeriode(), FormPeriodeMult(), Document::Generate(), poste::get(), Document_modele::Get(), Document::get(), GetJrnName(), rapport::GetName(), poste::GetName(), jrn::GetName(), GetNextFiche(), getPeriodeName(), ImpHtml(), PosteForm(), Document_modele::Save(), save_upload_document(), Document::Send(), ShowItem(), ShowMenuJrn(), and Document::Upload().

      @@ -137,16 +164,16 @@ Referenced by cl_user::

      -Definition at line 35 of file impress_bilan.php. +Definition at line 38 of file impress_bilan.php. -

      +

      @@ -162,7 +189,7 @@ Definition at line 3

      -Definition at line 44 of file impress_bilan.php. +Definition at line 50 of file impress_bilan.php.

      - +
      $w label = "Depuis" $w label = "Depuis"

      @@ -187,7 +214,7 @@ Definition at line 4

      -Definition at line 38 of file impress_bilan.php. +Definition at line 41 of file impress_bilan.php.

      Referenced by ExecuteScript(), ImportCSV(), and Cpdf::setEncryption(). @@ -198,7 +225,7 @@ Referenced by ExecuteScript() - +
      $w table = 1 $w table = 1
      @@ -214,10 +241,10 @@ Referenced by
      ExecuteScript()

      -Definition at line 36 of file impress_bilan.php. +Definition at line 39 of file impress_bilan.php. -


      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__fiche_8php-source.html b/doc/developper/html/impress__fiche_8php-source.html index 7e9fce636..0c776fa7c 100644 --- a/doc/developper/html/impress__fiche_8php-source.html +++ b/doc/developper/html/impress__fiche_8php-source.html @@ -64,90 +64,93 @@ 00056 // Si les fiches ont un poste comptable 00057 // propose de calculer aussi le solde 00058 //-- -00059 if ( $fiche_def->HasAttribute(ATTR_DEF_ACCOUNT) == true ) { +00059 if ( $fiche_def->HasAttribute(ATTR_DEF_ACCOUNT) == true ) { 00060 echo '<form method="POST" ACTION="user_impress.php">'; -00061 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00062 -00063 $w->selected=(isset($_POST['from_periode']))?$_POST['from_periode']:""; -00064 print "Depuis ".$w->IOValue('from_periode',$periode_start); -00065 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); -00066 $w->selected=(isset($_POST['to_periode']))?$_POST['to_periode']:""; -00067 print " Jusque ".$w->IOValue('to_periode',$periode_end); -00068 -00069 -00070 print $submit->Submit('bt_solde',"Avec solde"). -00071 $hid->IOValue("type","fiche"). -00072 $fiche_id->IOValue("fd_id",$_REQUEST['fd_id']). -00073 $hid->IOValue("with_amount"); -00074 -00075 echo "</form>"; -00076 } +00061 // filter on the current year +00062 $filter_year=" where p_exercice='".$User->getExercice()."'"; +00063 +00064 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00065 +00066 $w->selected=(isset($_POST['from_periode']))?$_POST['from_periode']:""; +00067 print "Depuis ".$w->IOValue('from_periode',$periode_start); +00068 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00069 $w->selected=(isset($_POST['to_periode']))?$_POST['to_periode']:""; +00070 print " Jusque ".$w->IOValue('to_periode',$periode_end); +00071 +00072 +00073 print $submit->Submit('bt_solde',"Avec solde"). +00074 $hid->IOValue("type","fiche"). +00075 $fiche_id->IOValue("fd_id",$_REQUEST['fd_id']). +00076 $hid->IOValue("with_amount"); 00077 -00078 $fiche=new fiche($cn); -00079 $e=$fiche->GetByType($fiche_def->id); -00080 $l=var_export($e,true); -00081 echo_debug('impress_fiche.php',__LINE__,$l); -00082 $old=-1; -00083 echo "<TABLE class=\"result\">"; -00084 echo "<TR>"; -00085 $fiche_def->GetAttribut(); -00086 foreach ($fiche_def->attribut as $attribut) { -00087 echo "<TH>".$attribut->ad_text."</TH>"; -00088 // si solde demandé affiche la col -00089 //-- -00090 if ($attribut->ad_id==ATTR_DEF_ACCOUNT -00091 && $with_amount==true) { -00092 echo "<TH >Débit</TH>"; -00093 echo "<TH >Crédit</TH>"; -00094 echo "<TH >Solde</TH>"; -00095 } -00096 } -00097 -00098 echo "<TR></TR>"; -00099 if ( count($e) != 0 ) { -00100 foreach ($e as $detail) { -00101 echo "<TR>"; -00102 foreach ( $detail->attribut as $dattribut ) { -00103 echo "<TD>".$dattribut->av_text."</TD>"; -00104 // if amount requested -00105 //--- -00106 if ( $dattribut->ad_id == ATTR_DEF_ACCOUNT && -00107 $with_amount) { -00108 -00109 $account=new poste ($cn,$dattribut->av_text); -00110 $solde= $account->GetSoldeDetail("j_tech_per between ".$_REQUEST['from_periode']. -00111 " and ". -00112 $_REQUEST['to_periode']); -00113 printf ("<td align=\"right\">% 10.2f</td>",$solde['debit']); -00114 printf ("<td align=\"right\">% 10.2f</td>",$solde['credit']); -00115 printf ("<td align=\"right\">% 10.2f</td>",$solde['solde']); -00116 -00117 } -00118 } -00119 } -00120 echo "</TR>"; -00121 } -00122 -00123 echo "</TABLE>"; -00124 echo "</div>"; -00125 } -00126 else { -00127 // only the menu -00128 $fiche_def=new fiche_def($cn); -00129 -00130 -00131 $fiche_def->GetAll(); +00078 echo "</form>"; +00079 } +00080 +00081 $fiche=new fiche($cn); +00082 $e=$fiche->GetByType($fiche_def->id); +00083 $l=var_export($e,true); +00084 echo_debug('impress_fiche.php',__LINE__,$l); +00085 $old=-1; +00086 echo "<TABLE class=\"result\">"; +00087 echo "<TR>"; +00088 $fiche_def->GetAttribut(); +00089 foreach ($fiche_def->attribut as $attribut) { +00090 echo "<TH>".$attribut->ad_text."</TH>"; +00091 // si solde demandé affiche la col +00092 //-- +00093 if ($attribut->ad_id==ATTR_DEF_ACCOUNT +00094 && $with_amount==true) { +00095 echo "<TH >Débit</TH>"; +00096 echo "<TH >Crédit</TH>"; +00097 echo "<TH >Solde</TH>"; +00098 } +00099 } +00100 +00101 echo "<TR></TR>"; +00102 if ( count($e) != 0 ) { +00103 foreach ($e as $detail) { +00104 echo "<TR>"; +00105 foreach ( $detail->attribut as $dattribut ) { +00106 echo "<TD>".$dattribut->av_text."</TD>"; +00107 // if amount requested +00108 //--- +00109 if ( $dattribut->ad_id == ATTR_DEF_ACCOUNT && +00110 $with_amount) { +00111 +00112 $account=new poste ($cn,$dattribut->av_text); +00113 $solde= $account->GetSoldeDetail("j_tech_per between ".$_REQUEST['from_periode']. +00114 " and ". +00115 $_REQUEST['to_periode']); +00116 printf ("<td align=\"right\">% 10.2f</td>",$solde['debit']); +00117 printf ("<td align=\"right\">% 10.2f</td>",$solde['credit']); +00118 printf ("<td align=\"right\">% 10.2f</td>",$solde['solde']); +00119 +00120 } +00121 } +00122 } +00123 echo "</TR>"; +00124 } +00125 +00126 echo "</TABLE>"; +00127 echo "</div>"; +00128 } +00129 else { +00130 // only the menu +00131 $fiche_def=new fiche_def($cn); 00132 -00133 $i=0; -00134 foreach ($fiche_def->all as $l_fiche) { -00135 $a[$i]=array("user_impress.php?type=fiche&fd_id=".$l_fiche->id,$l_fiche->label); -00136 $i++; -00137 } -00138 echo ShowItem($a,'V'); -00139 } -00140 -00141 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00133 +00134 $fiche_def->GetAll(); +00135 +00136 $i=0; +00137 foreach ($fiche_def->all as $l_fiche) { +00138 $a[$i]=array("user_impress.php?type=fiche&fd_id=".$l_fiche->id,$l_fiche->label); +00139 $i++; +00140 } +00141 echo ShowItem($a,'V'); +00142 } +00143 +00144 ?> +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__fiche_8php.html b/doc/developper/html/impress__fiche_8php.html index a988bd8bd..6e12e6f98 100644 --- a/doc/developper/html/impress__fiche_8php.html +++ b/doc/developper/html/impress__fiche_8php.html @@ -28,7 +28,7 @@ $w selected = (isset($_POST['from_periode']))?$_POST['from_periode']:"" - $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") + $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")  $fiche = new fiche($cn) @@ -66,7 +66,7 @@

      Definition at line 26 of file impress_fiche.php.

      -Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), cl_user::GetGlobalPref(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), cl_user::insert_default_global_pref(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), SyncRight(), cl_user::update_global_pref(), and ViewJrn(). +Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), cl_user::GetGlobalPref(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), cl_user::insert_default_global_pref(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), SyncRight(), cl_user::update_global_pref(), and ViewJrn().

      @@ -91,9 +91,9 @@ Referenced by cl_user::

      -Definition at line 79 of file impress_fiche.php. +Definition at line 82 of file impress_fiche.php.

      -Referenced by fiche::getAttribut(), jrn_navigation_bar(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordODS(), RecordSell(), fiche::strAttribut(), Supplier::Summary(), Customer::Summary(), Admin::Summary(), and Customer::VatListing(). +Referenced by fiche::getAttribut(), jrn_navigation_bar(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordODS(), RecordSell(), fiche::strAttribut(), Supplier::Summary(), Customer::Summary(), Admin::Summary(), and Customer::VatListing().

      @@ -118,7 +118,7 @@ Referenced by fiche::g

      -Definition at line 78 of file impress_fiche.php. +Definition at line 81 of file impress_fiche.php.

      Referenced by FormAchInput(), FormVenInput(), and ShowActionList(). @@ -172,7 +172,7 @@ Definition at line 4

      Definition at line 38 of file impress_fiche.php.

      -Referenced by fiche::insert(). +Referenced by fiche::insert().

      @@ -222,7 +222,7 @@ Definition at line 3

      -Definition at line 80 of file impress_fiche.php. +Definition at line 83 of file impress_fiche.php.

      @@ -247,7 +247,7 @@ Definition at line 8

      -Definition at line 82 of file impress_fiche.php. +Definition at line 85 of file impress_fiche.php.

      Referenced by CreatePeriodeCond(). @@ -258,7 +258,7 @@ Referenced by CreatePe - +
      $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
      @@ -274,7 +274,7 @@ Referenced by
      CreatePe

      -Definition at line 65 of file impress_fiche.php. +Definition at line 68 of file impress_fiche.php.

      @@ -302,7 +302,7 @@ Definition at line 6 $_REQUEST['to_periode'])

      -Definition at line 110 of file impress_fiche.php. +Definition at line 113 of file impress_fiche.php.

      Referenced by FormFin(), and ImpHtml(). @@ -404,10 +404,10 @@ Definition at line 5

      -Definition at line 63 of file impress_fiche.php. +Definition at line 66 of file impress_fiche.php. -


      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__inc_8php-source.html b/doc/developper/html/impress__inc_8php-source.html index ebbf24b95..7305c131d 100644 --- a/doc/developper/html/impress__inc_8php-source.html +++ b/doc/developper/html/impress__inc_8php-source.html @@ -54,15 +54,15 @@ 00058 echo '<FORM ACTION=send_poste_pdf.php METHOD="GET">'; 00059 } 00060 echo $periode; -00061 echo '<INPUT TYPE="HIDDEN" NAME="type" value="'.$type.'">'; -00062 echo '<INPUT TYPE="HIDDEN" NAME="action" value="'.$action.'">'; +00061 echo '<INPUT TYPE="HIDDEN" NAME="type" value="'.$type.'">'; +00062 echo '<INPUT TYPE="HIDDEN" NAME="action" value="'.$action.'">'; 00063 00064 echo $centr; 00065 00066 if ( isset($filter)) -00067 echo '<INPUT TYPE="HIDDEN" NAME="filter" value="'.$filter.'">'; +00067 echo '<INPUT TYPE="HIDDEN" NAME="filter" value="'.$filter.'">'; 00068 if ( isset ($p_id)) { -00069 echo '<INPUT TYPE="HIDDEN" NAME="p_id" value="'.$p_id.'">'; +00069 echo '<INPUT TYPE="HIDDEN" NAME="p_id" value="'.$p_id.'">'; 00070 } else { 00071 include_once("poste.php"); 00072 echo "<BR>"; @@ -70,7 +70,7 @@ 00074 echo ' <BR>Tous les postes '; 00075 echo '<INPUT TYPE="checkbox" NAME="all_poste"><BR>'; 00076 } -00077 echo '<INPUT TYPE="SUBMIT" name="print" Value="Executer">'; +00077 echo '<INPUT TYPE="SUBMIT" name="print" Value="Executer">'; 00078 00079 echo '</FORM>'; 00080 echo "</DIV>"; @@ -141,9 +141,9 @@ 00171 $ret.=sprintf("<H2 class=\"info\">%d %s</H2>", 00172 $poste[$i],GetPosteLibelle($p_cn,$poste[$i],1)); 00173 $ret.="<TABLE style=\"border-bottom-style:solid; border-width:2px\" >"; -00174 $i=0; +00174 $i=0; 00175 foreach ($array as $col=>$element) { -00176 $i++; +00176 $i++; 00177 if ( $i %2 == 0) 00178 $ret.="<tr class=\"even\">"; 00179 else @@ -239,9 +239,9 @@ 00282 for ($i=0;$i<$Max;$i++) { 00283 $array[]=pg_fetch_array($Res,$i); 00284 if ($array[$i]['j_debit']=='t') { -00285 $tot_deb+=$array[$i]['deb_montant'] ; +00285 $tot_deb+=$array[$i]['deb_montant'] ; 00286 } else { -00287 $tot_cred+=$array[$i]['cred_montant'] ; +00287 $tot_cred+=$array[$i]['cred_montant'] ; 00288 } 00289 } 00290 return array($array,$tot_deb,$tot_cred); @@ -479,8 +479,8 @@ 00563 00564 } 00565 echo_debug('impress_inc.php',__LINE__,"Total debit $tot_deb,credit $tot_cred"); -00566 $a=array($array,$tot_deb,$tot_cred); -00567 return $a; +00566 $a=array($array,$tot_deb,$tot_cred); +00567 return $a; 00568 } 00580 function GetDataGrpt($p_cn,$p_array) 00581 { @@ -546,8 +546,8 @@ 00657 $cred=$line['tot_amount']; 00658 } 00659 echo_debug('impress_inc.php',__LINE__,"MONTANT $deb,$cred"); -00660 $a=array($deb,$cred); -00661 return $a; +00660 $a=array($deb,$cred); +00661 return $a; 00662 00663 } 00664 } // Type = jrn @@ -581,8 +581,8 @@ 00692 $cred=$line['tot_amount']; 00693 } 00694 echo_debug('impress_inc.php',__LINE__,"MONTANT $deb,$cred"); -00695 $a=array($deb,$cred); -00696 return $a; +00695 $a=array($deb,$cred); +00696 return $a; 00697 } // central == 1 00698 else // Donnée non centralisée => pas de rappel 00699 { @@ -634,7 +634,7 @@ 00761 } 00762 // Get sum of account 00763 $P=new poste($p_cn,$e[0]); -00764 $i=$P->GetSolde($cond); +00764 $i=$P->GetSolde($cond); 00765 $p_formula=str_replace($x,$i,$p_formula); 00766 } 00767 @@ -723,7 +723,7 @@ 00876 } 00877 00878 ?> -
      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/impress__inc_8php.html b/doc/developper/html/impress__inc_8php.html index 4580983b6..2eb2e92d2 100644 --- a/doc/developper/html/impress__inc_8php.html +++ b/doc/developper/html/impress__inc_8php.html @@ -118,7 +118,7 @@ p_field (default = j_tech_per) gen :

        Definition at line 372 of file impress_inc.php.

        -References $cond, and $old. +References $cond, and $old.

        Referenced by GetDataGrpt(), GetDataJrn(), GetDataJrnPdf(), and ImpHtml(). @@ -163,7 +163,7 @@ parm :

          Definition at line 580 of file impress_inc.php.

          -References $array, $cond, $Max, $Res, CreatePeriodeCond(), and ExecSql(). +References $array, $cond, $Max, $Res, CreatePeriodeCond(), and ExecSql().

          @@ -218,7 +218,7 @@ array periode

            Definition at line 306 of file impress_inc.php.

            -References $array, $cond, $Max, $Res, CreatePeriodeCond(), and ExecSql(). +References $array, $cond, $Max, $Res, CreatePeriodeCond(), and ExecSql().

            Referenced by ImpHtml(). @@ -282,7 +282,7 @@ gen :

              Definition at line 421 of file impress_inc.php.

              -References $a, $array, $cond, $Max, $Res, $Sql, CreatePeriodeCond(), echo_debug(), and ExecSql(). +References $a, $array, $cond, $Max, $Res, $Sql, CreatePeriodeCond(), echo_debug(), and ExecSql().

              @@ -334,7 +334,7 @@ parm :

                Definition at line 265 of file impress_inc.php.

                -References $array, $i, $Max, $Res, and ExecSql(). +References $array, $i, $Max, $Res, and ExecSql().

                Referenced by ImpHtml(). @@ -478,7 +478,7 @@ $p_jrnx_id jrnx.j_id

                  Definition at line 614 of file impress_inc.php.

                  -References $a, $Res, $sql, CountSql(), echo_debug(), and ExecSql(). +References $a, $Res, $sql, CountSql(), echo_debug(), and ExecSql().

                  @@ -572,7 +572,7 @@ connection gen :

                    Definition at line 117 of file impress_inc.php.

                    -References $array, $c, $col, $cond, $i, $l_line, $Max, $nPoste, $poste, $Res, $ret, $solde, CreatePeriodeCond(), echo_debug(), ExecSql(), GetDataJrn(), GetDataPoste(), GetFormulaValue(), and GetPosteLibelle(). +References $array, $c, $col, $cond, $i, $l_line, $Max, $nPoste, $poste, $Res, $ret, $solde, CreatePeriodeCond(), echo_debug(), ExecSql(), GetDataJrn(), GetDataPoste(), GetFormulaValue(), and GetPosteLibelle().

                    Referenced by Imp(). @@ -647,7 +647,7 @@ $p_label

                      Definition at line 724 of file impress_inc.php.

                      -References $cond, $e, $i, $x, CheckFormula(), echo_debug(), getPeriodeFromMonth(), and poste. +References $cond, $e, $i, $x, CheckFormula(), echo_debug(), getPeriodeFromMonth(), and poste.

                      Referenced by rapport::GetRow(). @@ -696,10 +696,10 @@ connection gen :

                        Definition at line 36 of file impress_inc.php.

                        -References $centr, echo_debug(), FormPeriodeMult(), METHOD, name, PosteForm(), and value. +References $centr, echo_debug(), FormPeriodeMult(), METHOD, name, PosteForm(), and value. -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__jrn_8php-source.html b/doc/developper/html/impress__jrn_8php-source.html index 1d2647d30..96792862c 100644 --- a/doc/developper/html/impress__jrn_8php-source.html +++ b/doc/developper/html/impress__jrn_8php-source.html @@ -188,9 +188,9 @@ 00187 "); 00188 // Pour voir tout les journal ? 00189 if ( $NoPriv == 0 ) { -00190 $a=count($ret); -00191 $all=array('value'=>0,'label'=>'Grand Livre'); -00192 $ret[$a]=$all; +00190 $a=count($ret); +00191 $all=array('value'=>0,'label'=>'Grand Livre'); +00192 $ret[$a]=$all; 00193 } 00194 if ( count($ret) < 1 ) 00195 NoAccess(); @@ -204,20 +204,20 @@ 00205 print $w->IOValue("jrn_id",$ret); 00206 print '</TR>'; 00207 print '<TR>'; -00208 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00208 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00209 $w->label="Depuis"; 00210 print $w->IOValue('from_periode',$periode_start); 00211 $w->label=" jusqu'à "; -00212 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); +00212 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); 00213 print $w->IOValue('to_periode',$periode_end); 00214 print "</TR><TR>"; 00215 $centralise=new widget("checkbox"); 00216 $centralise->label="Depuis les journaux centralisés"; 00217 $centralise->table=1; 00218 print $centralise->IOValue('cent'); -00219 $a=array( -00220 array('value'=>0,'label'=>'Detaillé'), -00221 array('value'=>1,'label'=>'Simple') +00219 $a=array( +00220 array('value'=>0,'label'=>'Detaillé'), +00221 array('value'=>1,'label'=>'Simple') 00222 ); 00223 $w->selected=1; 00224 echo $w->IOValue('p_simple',$a,'Style d\'impression'); @@ -228,7 +228,7 @@ 00229 echo '</FORM>'; 00230 echo '</div>'; 00231 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__jrn_8php.html b/doc/developper/html/impress__jrn_8php.html index 0ecf15c60..000152345 100644 --- a/doc/developper/html/impress__jrn_8php.html +++ b/doc/developper/html/impress__jrn_8php.html @@ -26,7 +26,7 @@  exit$all = array('value'=>0,'label'=>'Grand Livre') + $all = array('value'=>0,'label'=>'Grand Livre')  $ret [$a] = $all @@ -76,8 +76,8 @@ Definition in file impress_jr

                        Initial value:

                        array(
                        -         array('value'=>0,'label'=>'Detaillé'),
                        -         array('value'=>1,'label'=>'Simple')
                        +         array('value'=>0,'label'=>'Detaillé'),
                        +         array('value'=>1,'label'=>'Simple')
                                  )
                         

                        @@ -90,7 +90,7 @@ Definition at line 219 - +
                        $all = array('value'=>0,'label'=>'Grand Livre') $all = array('value'=>0,'label'=>'Grand Livre')
                        @@ -158,7 +158,7 @@ Definition at line
                        215

                        Definition at line 35 of file impress_jrn.php.

                        -Referenced by Cpdf::selectFont(). +Referenced by action::SaveStage2(), and Cpdf::selectFont().

                        @@ -392,7 +392,7 @@ Definition at line 141 - +
                        $centralise label = "Choississez le journal" $centralise label = "Choississez le journal"
                        @@ -467,7 +467,7 @@ Definition at line
                        223 - +
                        $centralise table = 1 $centralise table = 1
                        @@ -486,7 +486,7 @@ Definition at line
                        223 Definition at line 203 of file impress_jrn.php. -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__listing__client_8php-source.html b/doc/developper/html/impress__listing__client_8php-source.html index 3d9adc238..82ffff57f 100644 --- a/doc/developper/html/impress__listing__client_8php-source.html +++ b/doc/developper/html/impress__listing__client_8php-source.html @@ -52,7 +52,7 @@ 00050 "; 00051 foreach ($a_Res as $key=>$elt) { 00052 echo "<tr>". -00053 "<td>".$elt['name']."</td>". +00053 "<td>".$elt['name']."</td>". 00054 "<td>".$elt['vat_number']."</td>". 00055 "<td align=\"right\">".sprintf("% 8.2f",$elt['amount'])."</td>". 00056 "<td align=\"right\">".sprintf("% 8.2f",$elt['tva'])."</td>". @@ -84,7 +84,7 @@ 00084 echo '</div>'; 00085 00086 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__listing__client_8php.html b/doc/developper/html/impress__listing__client_8php.html index 24112ff17..6a7336ba5 100644 --- a/doc/developper/html/impress__listing__client_8php.html +++ b/doc/developper/html/impress__listing__client_8php.html @@ -145,7 +145,7 @@ Definition at line - +
                        $w label = "Année concernée" $w label = "Année concernée"
                        @@ -222,7 +222,7 @@ Referenced by
                        fiche_de - +
                        $w table = 1 $w table = 1
                        @@ -241,7 +241,7 @@ Referenced by
                        fiche_de Definition at line 68 of file impress_listing_client.php. -
                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__poste_8php-source.html b/doc/developper/html/impress__poste_8php-source.html index d6a9c3338..e189dc2b1 100644 --- a/doc/developper/html/impress__poste_8php-source.html +++ b/doc/developper/html/impress__poste_8php-source.html @@ -28,120 +28,124 @@ 00019 /* $Revision$ */ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00021 include_once("class_widget.php"); -00026 -00027 // If print is asked -00028 // First time in html -00029 // after in pdf or cvs -00031 if ( isset( $_POST['bt_html'] ) ) { -00032 include("class_poste.php"); -00033 $Poste=new poste($cn,$_POST['poste_id']); -00034 $Poste->GetName(); -00035 list($array,$tot_deb,$tot_cred)=$Poste->GetRow( $_POST['from_periode'], -00036 $_POST['to_periode'] -00037 ); -00038 -00039 $rep=""; -00040 $submit=new widget(); -00041 $hid=new widget("hidden"); -00042 echo '<div class="u_content">'; -00043 echo '<h2 class="info">'.$Poste->id." ".$Poste->name.'</h2>'; -00044 echo "<table >"; -00045 echo '<TR>'; -00046 echo '<TD><form method="GET" ACTION="user_impress.php">'. -00047 $submit->Submit('bt_other',"Autre poste"). -00048 $hid->IOValue("type","poste")."</form></TD>"; -00049 -00050 echo '<TD><form method="POST" ACTION="poste_pdf.php">'. -00051 $submit->Submit('bt_pdf',"Export PDF"). -00052 $hid->IOValue("type","poste"). -00053 $hid->IOValue("poste_id",$Poste->id). -00054 $hid->IOValue("from_periode",$_POST['from_periode']). -00055 $hid->IOValue("to_periode",$_POST['to_periode']); -00056 -00057 echo "</form></TD>"; -00058 echo '<TD><form method="POST" ACTION="poste_csv.php">'. -00059 $submit->Submit('bt_csv',"Export CSV"). -00060 $hid->IOValue("type","poste"). -00061 $hid->IOValue("poste_id",$Poste->id). -00062 $hid->IOValue("from_periode",$_POST['from_periode']). -00063 $hid->IOValue("to_periode",$_POST['to_periode']); -00064 -00065 echo "</form></TD>"; -00066 -00067 echo "</TR>"; +00030 +00031 // If print is asked +00032 // First time in html +00033 // after in pdf or cvs +00035 if ( isset( $_POST['bt_html'] ) ) { +00036 include("class_poste.php"); +00037 $Poste=new poste($cn,$_POST['poste_id']); +00038 $Poste->GetName(); +00039 list($array,$tot_deb,$tot_cred)=$Poste->GetRow( $_POST['from_periode'], +00040 $_POST['to_periode'] +00041 ); +00042 +00043 $rep=""; +00044 $submit=new widget(); +00045 $hid=new widget("hidden"); +00046 echo '<div class="u_content">'; +00047 echo '<h2 class="info">'.$Poste->id." ".$Poste->name.'</h2>'; +00048 echo "<table >"; +00049 echo '<TR>'; +00050 echo '<TD><form method="GET" ACTION="user_impress.php">'. +00051 $submit->Submit('bt_other',"Autre poste"). +00052 $hid->IOValue("type","poste")."</form></TD>"; +00053 +00054 echo '<TD><form method="POST" ACTION="poste_pdf.php">'. +00055 $submit->Submit('bt_pdf',"Export PDF"). +00056 $hid->IOValue("type","poste"). +00057 $hid->IOValue("poste_id",$Poste->id). +00058 $hid->IOValue("from_periode",$_POST['from_periode']). +00059 $hid->IOValue("to_periode",$_POST['to_periode']); +00060 +00061 echo "</form></TD>"; +00062 echo '<TD><form method="POST" ACTION="poste_csv.php">'. +00063 $submit->Submit('bt_csv',"Export CSV"). +00064 $hid->IOValue("type","poste"). +00065 $hid->IOValue("poste_id",$Poste->id). +00066 $hid->IOValue("from_periode",$_POST['from_periode']). +00067 $hid->IOValue("to_periode",$_POST['to_periode']); 00068 -00069 echo "</table>"; -00070 if ( count($Poste->row ) == 0 ) -00071 exit; +00069 echo "</form></TD>"; +00070 +00071 echo "</TR>"; 00072 -00073 echo "<TABLE class=\"result\" width=\"100%\">"; -00074 echo "<TR>". -00075 "<TH> Code interne </TH>". -00076 "<TH> Date</TH>". -00077 "<TH> Description </TH>". -00078 "<TH> Débit </TH>". -00079 "<TH> Crédit </TH>". -00080 "</TR>"; -00081 -00082 foreach ( $Poste->row as $op ) { -00083 echo "<TR>". -00084 "<TD>".$op['jr_internal']."</TD>". -00085 "<TD>".$op['j_date']."</TD>". -00086 "<TD>".$op['description']."</TD>". -00087 "<TD>".$op['deb_montant']."</TD>". -00088 "<TD>".$op['cred_montant']."</TD>". -00089 "</TR>"; -00090 -00091 } -00092 $solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur"; -00093 $diff=abs($tot_deb-$tot_cred); -00094 echo "<TR>". -00095 "<TD>$solde_type</TD>". -00096 "<TD>$diff</TD>". -00097 "<TD></TD>". -00098 "<TD>$tot_deb</TD>". -00099 "<TD>$tot_cred</TD>". -00100 "</TR>"; -00101 -00102 echo "</table>"; -00103 echo "</div>"; -00104 exit; -00105 } -00106 -00108 // Show the jrn and date -00110 include_once("postgres.php"); -00111 $ret=make_array($cn,"select distinct j_poste::text ,j_poste::text||' '||pcm_lib -00112 from jrnx inner join tmp_pcmn on (pcm_val=j_poste) -00113 order by j_poste::text"); -00115 // Form -00117 echo '<div class="u_content">'; -00118 echo '<FORM ACTION="?type=poste" METHOD="POST">'; -00119 echo '<TABLE><TR>'; -00120 $w=new widget("select"); -00121 $w->table=1; -00122 $w->label="Choississez le poste"; -00123 print $w->IOValue("poste_id",$ret); -00124 print '</TR>'; -00125 print '<TR>'; -00126 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00127 $w->label="Depuis"; -00128 print $w->IOValue('from_periode',$periode_start); -00129 $w->label=" jusqu'à "; -00130 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); -00131 print $w->IOValue('to_periode',$periode_end); -00132 print "</TR>"; -00133 print "<TR><TD>"; -00134 $all=new widget("checkbox"); -00135 $all->label="Tous les postes"; -00136 $all->disabled=true; -00137 echo $all->IOValue("poste_id",""); -00138 echo '</TABLE>'; -00139 print $w->Submit('bt_html','Impression'); -00140 -00141 echo '</FORM>'; -00142 echo '</div>'; -00143 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00073 echo "</table>"; +00074 if ( count($Poste->row ) == 0 ) +00075 exit; +00076 +00077 echo "<TABLE class=\"result\" width=\"100%\">"; +00078 echo "<TR>". +00079 "<TH> Code interne </TH>". +00080 "<TH> Date</TH>". +00081 "<TH> Description </TH>". +00082 "<TH> Débit </TH>". +00083 "<TH> Crédit </TH>". +00084 "</TR>"; +00085 +00086 foreach ( $Poste->row as $op ) { +00087 echo "<TR>". +00088 "<TD>".$op['jr_internal']."</TD>". +00089 "<TD>".$op['j_date']."</TD>". +00090 "<TD>".$op['description']."</TD>". +00091 "<TD>".$op['deb_montant']."</TD>". +00092 "<TD>".$op['cred_montant']."</TD>". +00093 "</TR>"; +00094 +00095 } +00096 $solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur"; +00097 $diff=abs($tot_deb-$tot_cred); +00098 echo "<TR>". +00099 "<TD>$solde_type</TD>". +00100 "<TD>$diff</TD>". +00101 "<TD></TD>". +00102 "<TD>$tot_deb</TD>". +00103 "<TD>$tot_cred</TD>". +00104 "</TR>"; +00105 +00106 echo "</table>"; +00107 echo "</div>"; +00108 exit; +00109 } +00110 +00112 // Show the jrn and date +00114 include_once("postgres.php"); +00115 $ret=make_array($cn,"select distinct j_poste::text ,j_poste::text||' '||pcm_lib +00116 from jrnx inner join tmp_pcmn on (pcm_val=j_poste) +00117 order by j_poste::text"); +00119 // Form +00121 if ( $ret==null) +00122 exit('Les journaux sont vides'); +00123 echo '<div class="u_content">'; +00124 echo '<FORM ACTION="?type=poste" METHOD="POST">'; +00125 echo '<TABLE><TR>'; +00126 $w=new widget("select"); +00127 $w->table=1; +00128 $w->label="Choississez le poste"; +00129 print $w->IOValue("poste_id",$ret); +00130 print '</TR>'; +00131 print '<TR>'; +00132 // filter on the current year +00133 $filter_year=" where p_exercice='".$User->getExercice()."'"; +00134 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00135 $w->label="Depuis"; +00136 print $w->IOValue('from_periode',$periode_start); +00137 $w->label=" jusqu'à "; +00138 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order $filter_year by p_id"); +00139 print $w->IOValue('to_periode',$periode_end); +00140 print "</TR>"; +00141 print "<TR><TD>"; +00142 $all=new widget("checkbox"); +00143 $all->label="Tous les postes"; +00144 $all->disabled=true; +00145 echo $all->IOValue("poste_id",""); +00146 echo '</TABLE>'; +00147 print $w->Submit('bt_html','Impression'); +00148 +00149 echo '</FORM>'; +00150 echo '</div>'; +00151 ?> +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__poste_8php.html b/doc/developper/html/impress__poste_8php.html index c16463880..e6830547c 100644 --- a/doc/developper/html/impress__poste_8php.html +++ b/doc/developper/html/impress__poste_8php.html @@ -7,7 +7,7 @@ -

                        impress_poste.php File Reference

                        Print account (html or pdf). More... +

                        impress_poste.php File Reference

                        Print account (html or pdf) file included from user_impress. More...

                        @@ -34,22 +34,24 @@  print$periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") + $filter_year = " where p_exercice='".$User->getExercice()."'" - $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") + $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id") -print</TR > print< TR >< TD > $all = new widget("checkbox") + $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order $filter_year by p_id") -$all disabled = true +print</TR > print< TR >< TD > $all = new widget("checkbox") + +$all disabled = true


                        Detailed Description

                        -Print account (html or pdf). +Print account (html or pdf) file included from user_impress.

                        - +some variable are already defined $cn, $User ...

                        Definition in file impress_poste.php.


                        Variable Documentation

                        -

                        +

                        +Definition at line 142 of file impress_poste.php. + +
                        @@ -71,7 +73,32 @@ Definition in file impress_

                        -Definition at line 134 of file impress_poste.php.

                        +

                        + + + + +
                        + + + + +
                        $filter_year = " where p_exercice='".$User->getExercice()."'"
                        +
                        + + + +
                        +   + + +

                        + +

                        +Definition at line 133 of file impress_poste.php.

                        @@ -96,16 +123,16 @@ Definition at line 1

                        -Definition at line 41 of file impress_poste.php. +Definition at line 45 of file impress_poste.php. -

                        +

                        @@ -121,16 +148,16 @@ Definition at line 4

                        -Definition at line 130 of file impress_poste.php. +Definition at line 138 of file impress_poste.php.

                        - +
                        $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order $filter_year by p_id")
                        -

                        +

                        @@ -146,7 +173,7 @@ Definition at line 1

                        -Definition at line 126 of file impress_poste.php. +Definition at line 134 of file impress_poste.php.

                        - +
                        $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")

                        @@ -171,7 +198,7 @@ Definition at line 1

                        -Definition at line 33 of file impress_poste.php. +Definition at line 37 of file impress_poste.php.

                        @@ -196,7 +223,7 @@ Definition at line 3

                        -Definition at line 39 of file impress_poste.php. +Definition at line 43 of file impress_poste.php.

                        @@ -224,7 +251,7 @@ Definition at line 3 order by j_poste::text")

                        -Definition at line 111 of file impress_poste.php. +Definition at line 115 of file impress_poste.php.

                        @@ -249,7 +276,7 @@ Definition at line 1

                        -Definition at line 40 of file impress_poste.php. +Definition at line 44 of file impress_poste.php.

                        @@ -274,16 +301,16 @@ Definition at line 4

                        -Definition at line 120 of file impress_poste.php. +Definition at line 126 of file impress_poste.php. -

                        +

                        @@ -299,9 +326,9 @@ Definition at line 1

                        -Definition at line 136 of file impress_poste.php. +Definition at line 144 of file impress_poste.php.

                        -Referenced by widget::IOValue(), and widget::widget(). +Referenced by widget::IOValue(), and widget::widget().

                        - +
                        $all disabled = true $all disabled = true

                        @@ -326,7 +353,7 @@ Referenced by widget:

                        -Definition at line 100 of file impress_poste.php. +Definition at line 104 of file impress_poste.php.

                        @@ -335,7 +362,7 @@ Definition at line 1 - +
                        $all label = "Choississez le poste" $all label = "Choississez le poste"
                        @@ -351,7 +378,7 @@ Definition at line
                        1

                        -Definition at line 122 of file impress_poste.php. +Definition at line 128 of file impress_poste.php.

                        @@ -376,7 +403,7 @@ Definition at line 1

                        -Definition at line 124 of file impress_poste.php. +Definition at line 130 of file impress_poste.php.

                        @@ -385,7 +412,7 @@ Definition at line 1 - +
                        $w table = 1 $w table = 1
                        @@ -401,10 +428,10 @@ Definition at line
                        1

                        -Definition at line 121 of file impress_poste.php. +Definition at line 127 of file impress_poste.php. -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__rapport_8php-source.html b/doc/developper/html/impress__rapport_8php-source.html index e89fa014e..cff894cee 100644 --- a/doc/developper/html/impress__rapport_8php-source.html +++ b/doc/developper/html/impress__rapport_8php-source.html @@ -27,157 +27,160 @@ 00018 */ 00019 /* $Revision$ */ 00020 include_once("class_widget.php"); -00025 -00026 // If print is asked -00027 // First time in html -00028 // after in pdf or cvs -00030 if ( isset( $_POST['bt_html'] ) ) { -00031 include("class_rapport.php"); -00032 $Form=new rapport($cn,$_POST['form_id']); -00033 $Form->GetName(); -00034 // step asked ? -00035 //-- -00036 if ($_POST['p_step'] == 0 ) { -00037 $array=$Form->GetRow( $_POST['from_periode'], -00038 $_POST['to_periode'] -00039 ); -00040 } else { -00041 // step are asked -00042 //-- -00043 for ($e=$_POST['from_periode'];$e<=$_POST['to_periode'];$e+=$_POST['p_step']) -00044 { -00045 -00046 $periode=getPeriodeName($cn,$e); -00047 if ( $periode == null ) continue; -00048 $array[]=$Form->GetRow($e,$e); -00049 $periode_name[]=$periode; -00050 } -00051 } -00052 -00053 -00054 $rep=""; -00055 $submit=new widget(); -00056 $hid=new widget("hidden"); -00057 echo '<div class="u_content">'; -00058 $t=($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end'); -00059 echo '<h2 class="info">'.$Form->id." ".$Form->name. -00060 " - ".getPeriodeName($cn,$_POST['from_periode'],'p_start'). -00061 " ".$t. -00062 '</h2>'; -00063 echo '<table >'; -00064 echo '<TR>'; -00065 echo '<TD><form method="GET" ACTION="user_impress.php">'. -00066 $submit->Submit('bt_other',"Autre Rapport"). -00067 $hid->IOValue("type","rapport")."</form></TD>"; -00068 -00069 echo '<TD><form method="POST" ACTION="form_pdf.php">'. -00070 $submit->Submit('bt_pdf',"Export PDF"). -00071 $hid->IOValue("type","rapport"). -00072 $hid->IOValue("form_id",$Form->id). -00073 $hid->IOValue("from_periode",$_POST['from_periode']). -00074 $hid->IOValue("to_periode",$_POST['to_periode']). -00075 $hid->IOValue("p_step",$_POST['p_step']); -00076 -00077 -00078 echo "</form></TD>"; -00079 echo '<TD><form method="POST" ACTION="form_csv.php">'. -00080 $submit->Submit('bt_csv',"Export CSV"). -00081 $hid->IOValue("type","form"). -00082 $hid->IOValue("form_id",$Form->id). -00083 $hid->IOValue("from_periode",$_POST['from_periode']). -00084 $hid->IOValue("to_periode",$_POST['to_periode']). -00085 $hid->IOValue("p_step",$_POST['p_step']); -00086 -00087 echo "</form></TD>"; -00088 -00089 echo "</TR>"; +00029 +00030 // If print is asked +00031 // First time in html +00032 // after in pdf or cvs +00034 if ( isset( $_POST['bt_html'] ) ) { +00035 include("class_rapport.php"); +00036 $Form=new rapport($cn,$_POST['form_id']); +00037 $Form->GetName(); +00038 // step asked ? +00039 //-- +00040 if ($_POST['p_step'] == 0 ) { +00041 $array=$Form->GetRow( $_POST['from_periode'], +00042 $_POST['to_periode'] +00043 ); +00044 } else { +00045 // step are asked +00046 //-- +00047 for ($e=$_POST['from_periode'];$e<=$_POST['to_periode'];$e+=$_POST['p_step']) +00048 { +00049 +00050 $periode=getPeriodeName($cn,$e); +00051 if ( $periode == null ) continue; +00052 $array[]=$Form->GetRow($e,$e); +00053 $periode_name[]=$periode; +00054 } +00055 } +00056 +00057 +00058 $rep=""; +00059 $submit=new widget(); +00060 $hid=new widget("hidden"); +00061 echo '<div class="u_content">'; +00062 $t=($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end'); +00063 echo '<h2 class="info">'.$Form->id." ".$Form->name. +00064 " - ".getPeriodeName($cn,$_POST['from_periode'],'p_start'). +00065 " ".$t. +00066 '</h2>'; +00067 echo '<table >'; +00068 echo '<TR>'; +00069 echo '<TD><form method="GET" ACTION="user_impress.php">'. +00070 $submit->Submit('bt_other',"Autre Rapport"). +00071 $hid->IOValue("type","rapport")."</form></TD>"; +00072 +00073 echo '<TD><form method="POST" ACTION="form_pdf.php">'. +00074 $submit->Submit('bt_pdf',"Export PDF"). +00075 $hid->IOValue("type","rapport"). +00076 $hid->IOValue("form_id",$Form->id). +00077 $hid->IOValue("from_periode",$_POST['from_periode']). +00078 $hid->IOValue("to_periode",$_POST['to_periode']). +00079 $hid->IOValue("p_step",$_POST['p_step']); +00080 +00081 +00082 echo "</form></TD>"; +00083 echo '<TD><form method="POST" ACTION="form_csv.php">'. +00084 $submit->Submit('bt_csv',"Export CSV"). +00085 $hid->IOValue("type","form"). +00086 $hid->IOValue("form_id",$Form->id). +00087 $hid->IOValue("from_periode",$_POST['from_periode']). +00088 $hid->IOValue("to_periode",$_POST['to_periode']). +00089 $hid->IOValue("p_step",$_POST['p_step']); 00090 -00091 echo "</table>"; -00092 if ( count($Form->row ) == 0 ) -00093 exit; +00091 echo "</form></TD>"; +00092 +00093 echo "</TR>"; 00094 -00095 if ( $_POST['p_step'] == 0) -00096 { // check the step -00097 // show tables -00098 ShowReportResult($Form->row); -00099 } -00100 else -00101 { -00102 $a=0; -00103 foreach ( $array as $e) { -00104 echo '<h2 class="info">Periode : '.$periode_name[$a]."</h2>"; -00105 $a++; -00106 ShowReportResult($e); -00107 } -00108 } -00109 -00110 echo "</div>"; -00111 exit; -00112 } +00095 echo "</table>"; +00096 if ( count($Form->row ) == 0 ) +00097 exit; +00098 +00099 if ( $_POST['p_step'] == 0) +00100 { // check the step +00101 // show tables +00102 ShowReportResult($Form->row); +00103 } +00104 else +00105 { +00106 $a=0; +00107 foreach ( $array as $e) { +00108 echo '<h2 class="info">Periode : '.$periode_name[$a]."</h2>"; +00109 $a++; +00110 ShowReportResult($e); +00111 } +00112 } 00113 -00115 // Show the jrn and date -00117 include_once("postgres.php"); -00118 $ret=make_array($cn,"select fr_id,fr_label -00119 from formdef -00120 order by fr_label"); -00121 if ( sizeof($ret) == 0 ) { -00122 echo "Aucun Rapport"; -00123 return; -00124 } -00126 // Form -00128 echo '<div class="u_content">'; -00129 echo '<FORM ACTION="?type=rapport" METHOD="POST">'; -00130 echo '<TABLE><TR>'; -00131 $w=new widget("select"); -00132 $w->table=1; -00133 $w->label="Choississez le rapport"; -00134 print $w->IOValue("form_id",$ret); -00135 print '</TR>'; -00136 print '<TR>'; -00137 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00138 $w->label="Depuis"; -00139 print $w->IOValue('from_periode',$periode_start); -00140 $w->label=" jusqu'à "; -00141 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); -00142 print $w->IOValue('to_periode',$periode_end); -00143 print "</TR>"; -00144 $aStep=array( -00145 array('value'=>0,'label'=>'Pas d\'étape'), -00146 array('value'=>1,'label'=>'1 mois') -00147 ); -00148 $w->label='Par étape de'; -00149 echo '<TR> '.$w->IOValue('p_step',$aStep); -00150 echo '</TR>'; -00151 -00152 echo '</TABLE>'; -00153 print $w->Submit('bt_html','Impression'); -00154 -00155 echo '</FORM>'; -00156 echo '</div>'; -00158 // Function -00160 function ShowReportResult($p_array) { -00161 -00162 echo '<TABLE class="result">'; -00163 echo "<TR>". -00164 "<TH> Description </TH>". -00165 "<TH> montant </TH>". -00166 "</TR>"; -00167 $i=0; -00168 foreach ( $p_array as $op ) { -00169 $i++; -00170 $class= ( $i % 2 == 0 )?' class="odd"':""; -00171 -00172 echo "<TR $class>". -00173 "<TD>".$op['desc']."</TD>". -00174 "<TD align=\"right\">".sprintf("% 8.2f",$op['montant'])."</TD>". -00175 "</TR>"; -00176 } -00177 echo "</table>"; -00178 -00179 } -00180 -00181 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00114 echo "</div>"; +00115 exit; +00116 } +00117 +00119 // Show the jrn and date +00121 include_once("postgres.php"); +00122 $ret=make_array($cn,"select fr_id,fr_label +00123 from formdef +00124 order by fr_label"); +00125 if ( sizeof($ret) == 0 ) { +00126 echo "Aucun Rapport"; +00127 return; +00128 } +00130 // Form +00132 echo '<div class="u_content">'; +00133 echo '<FORM ACTION="?type=rapport" METHOD="POST">'; +00134 echo '<TABLE><TR>'; +00135 $w=new widget("select"); +00136 $w->table=1; +00137 $w->label="Choississez le rapport"; +00138 print $w->IOValue("form_id",$ret); +00139 print '</TR>'; +00140 print '<TR>'; +00141 // filter on the current year +00142 $filter_year=" where p_exercice='".$User->getExercice()."'"; +00143 +00144 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00145 $w->label="Depuis"; +00146 print $w->IOValue('from_periode',$periode_start); +00147 $w->label=" jusqu'à "; +00148 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id"); +00149 print $w->IOValue('to_periode',$periode_end); +00150 print "</TR>"; +00151 $aStep=array( +00152 array('value'=>0,'label'=>'Pas d\'étape'), +00153 array('value'=>1,'label'=>'1 mois') +00154 ); +00155 $w->label='Par étape de'; +00156 echo '<TR> '.$w->IOValue('p_step',$aStep); +00157 echo '</TR>'; +00158 +00159 echo '</TABLE>'; +00160 print $w->Submit('bt_html','Impression'); +00161 +00162 echo '</FORM>'; +00163 echo '</div>'; +00165 // Function +00167 function ShowReportResult($p_array) { +00168 +00169 echo '<TABLE class="result">'; +00170 echo "<TR>". +00171 "<TH> Description </TH>". +00172 "<TH> montant </TH>". +00173 "</TR>"; +00174 $i=0; +00175 foreach ( $p_array as $op ) { +00176 $i++; +00177 $class= ( $i % 2 == 0 )?' class="odd"':""; +00178 +00179 echo "<TR $class>". +00180 "<TD>".$op['desc']."</TD>". +00181 "<TD align=\"right\">".sprintf("% 8.2f",$op['montant'])."</TD>". +00182 "</TR>"; +00183 } +00184 echo "</table>"; +00185 +00186 } +00187 +00188 ?> +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/impress__rapport_8php.html b/doc/developper/html/impress__rapport_8php.html index 38aaf40df..c604448e8 100644 --- a/doc/developper/html/impress__rapport_8php.html +++ b/doc/developper/html/impress__rapport_8php.html @@ -7,14 +7,14 @@ -

                        impress_rapport.php File Reference

                        print first the report in html and propose to print it in pdf More... +

                        impress_rapport.php File Reference

                        print first the report in html and propose to print it in pdf file included by user_impress More...

                        Go to the source code of this file. - + @@ -35,20 +35,22 @@ - + - + - + + +

                        Functions

                         ShowReportResult ($p_array)
                         ShowReportResult ($p_array)

                        Variables

                         $Form = new rapport($cn,$_POST['form_id'])
                         print
                         $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id")
                         $filter_year = " where p_exercice='".$User->getExercice()."'"
                         $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id")
                         $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
                        print</TR > $aStep
                         $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
                        print</TR > $aStep


                        Detailed Description

                        -print first the report in html and propose to print it in pdf +print first the report in html and propose to print it in pdf file included by user_impress

                        - +some variable are already defined ($cn, $User ...)

                        Definition in file impress_rapport.php.


                        Function Documentation

                        -

                        +

                        +References $i.
                        @@ -75,13 +77,13 @@ Definition in file impres

                        -Definition at line 160 of file impress_rapport.php. +Definition at line 167 of file impress_rapport.php.

                        -References $i.


                        Variable Documentation

                        -

                        +

                        Initial value:

                        array(
                        -             array('value'=>0,'label'=>'Pas d\'étape'),
                        -             array('value'=>1,'label'=>'1 mois')
                        +             array('value'=>0,'label'=>'Pas d\'étape'),
                        +             array('value'=>1,'label'=>'1 mois')
                                      )
                         

                        -Definition at line 144 of file impress_rapport.php. +Definition at line 151 of file impress_rapport.php. +

                        +
                        @@ -102,12 +104,37 @@ References $i.
                        +

                        + + + + +
                        + + + + +
                        $filter_year = " where p_exercice='".$User->getExercice()."'"
                        +
                        + + + +
                        +   + + +

                        + +

                        +Definition at line 142 of file impress_rapport.php.

                        @@ -132,7 +159,7 @@ Definition at line

                        -Definition at line 32 of file impress_rapport.php. +Definition at line 36 of file impress_rapport.php.

                        @@ -157,16 +184,16 @@ Definition at line

                        -Definition at line 56 of file impress_rapport.php. +Definition at line 60 of file impress_rapport.php. -

                        +

                        @@ -182,16 +209,16 @@ Definition at line

                        -Definition at line 141 of file impress_rapport.php. +Definition at line 148 of file impress_rapport.php.

                        - +
                        $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id") $periode_end = make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")
                        -

                        +

                        @@ -207,7 +234,7 @@ Definition at line

                        -Definition at line 137 of file impress_rapport.php. +Definition at line 144 of file impress_rapport.php.

                        - +
                        $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id") $periode_start = make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id")

                        @@ -235,7 +262,7 @@ Definition at line order by fr_label")

                        -Definition at line 118 of file impress_rapport.php. +Definition at line 122 of file impress_rapport.php.

                        @@ -260,7 +287,7 @@ Definition at line

                        -Definition at line 55 of file impress_rapport.php. +Definition at line 59 of file impress_rapport.php.

                        @@ -285,9 +312,9 @@ Definition at line

                        -Definition at line 58 of file impress_rapport.php. +Definition at line 62 of file impress_rapport.php.

                        -Referenced by Cpdf::ARC4(), Cpdf::ARC4_init(), Cezpdf::ezTable(), Document_modele::form(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), fiche_def_ref::Input(), RecordInvoice(), SortAttributeById(), and Customer::VatListing(). +Referenced by Cpdf::ARC4(), Cpdf::ARC4_init(), Cezpdf::ezTable(), Document_modele::form(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), fiche_def_ref::Input(), RecordInvoice(), SortAttributeById(), and Customer::VatListing().

                        @@ -312,7 +339,7 @@ Referenced by Cpdf::ARC4

                        -Definition at line 110 of file impress_rapport.php. +Definition at line 114 of file impress_rapport.php.

                        @@ -321,7 +348,7 @@ Definition at line - +
                        $w label = "Choississez le rapport" $w label = "Choississez le rapport"
                        @@ -337,7 +364,7 @@ Definition at line

                        -Definition at line 133 of file impress_rapport.php. +Definition at line 137 of file impress_rapport.php.

                        @@ -362,7 +389,7 @@ Definition at line

                        -Definition at line 135 of file impress_rapport.php. +Definition at line 139 of file impress_rapport.php.

                        @@ -371,7 +398,7 @@ Definition at line - +
                        $w table = 1 $w table = 1
                        @@ -387,10 +414,10 @@ Definition at line

                        -Definition at line 132 of file impress_rapport.php. +Definition at line 136 of file impress_rapport.php. -


                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/index.html b/doc/developper/html/index.html index 2de174285..3850ec9fe 100644 --- a/doc/developper/html/index.html +++ b/doc/developper/html/index.html @@ -27,7 +27,7 @@ Les noms de fichier sont class_*.php pour les fichiers contenant des classes. Faire de la doc -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/index_8php-source.html b/doc/developper/html/index_8php-source.html index e374a69e1..9578a2d99 100644 --- a/doc/developper/html/index_8php-source.html +++ b/doc/developper/html/index_8php-source.html @@ -39,7 +39,7 @@ 00057 <script src="scripts.js" type="text/javascript"></script> 00058 </head> 00059 <BODY onLoad="SetFocus(\'login\',0)"> -00060 Version developpement 1.2.2 patch 5 +00060 Version BETA 2.0 00061 <div class="remark"> 00062 <p class="gras">Il est conseill&eacute; de ne PAS utiliser Internet Explorer. 00063 </p><p> @@ -56,19 +56,19 @@ 00074 <IMG SRC="image/logo7.jpg" alt="Logo"> 00075 <BR> 00076 -00077 <form action="login.php" method="post" name="loginform"> +00077 <form action="login.php" method="post" name="loginform"> 00078 <TABLE><TR><TD> 00079 <TABLE BORDER=0 CELLSPACING=0> 00080 <TR> 00081 <TD class="cell">Login</TD> -00082 <TD><input type="text" name="p_user" tabindex="1"></TD> +00082 <TD><input type="text" name="p_user" tabindex="1"></TD> 00083 </TR> 00084 <TR> 00085 <TD> Password</TD> 00086 <TD><INPUT TYPE="PASSWORD" NAME="p_pass" tabindex="2"></TD> 00087 </TR> 00088 <TR> -00089 <TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="login" value="Log in"></TD> +00089 <TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="login" value="Log in"></TD> 00090 </TR> 00091 </table> 00092 </TD></TR></TABLE> @@ -78,7 +78,7 @@ 00096 </html>'; 00097 00098 ?> -
                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/index_8php.html b/doc/developper/html/index_8php.html index 3cc11b010..3ca420dd7 100644 --- a/doc/developper/html/index_8php.html +++ b/doc/developper/html/index_8php.html @@ -19,7 +19,7 @@ default page where user access

                        -Definition in file index.php.


                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file index.php.
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/info_8php-source.html b/doc/developper/html/info_8php-source.html index 0900bffa6..66253646c 100644 --- a/doc/developper/html/info_8php-source.html +++ b/doc/developper/html/info_8php-source.html @@ -10,7 +10,7 @@

                        info.php

                        Go to the documentation of this file.
                        00001 <?
                         00002 phpinfo();
                         00003 ?>
                        -

                        Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/info_8php.html b/doc/developper/html/info_8php.html index 76272ba93..c1daac3de 100644 --- a/doc/developper/html/info_8php.html +++ b/doc/developper/html/info_8php.html @@ -12,7 +12,7 @@ Go to the source code of this file.
                        -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/ing__be_8inc_8php-source.html b/doc/developper/html/ing__be_8inc_8php-source.html index 728190c11..42999a5f7 100644 --- a/doc/developper/html/ing__be_8inc_8php-source.html +++ b/doc/developper/html/ing__be_8inc_8php-source.html @@ -123,7 +123,7 @@ 00119 } // file is read 00120 fclose($handle); 00121 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/ing__be_8inc_8php.html b/doc/developper/html/ing__be_8inc_8php.html index ea9772688..997e94d9e 100644 --- a/doc/developper/html/ing__be_8inc_8php.html +++ b/doc/developper/html/ing__be_8inc_8php.html @@ -318,7 +318,7 @@ Definition at line 29< Definition at line 83 of file ing_be.inc.php. -
                        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/jrn_8php-source.html b/doc/developper/html/jrn_8php-source.html index 9d3d7db5e..bf7dcfc53 100644 --- a/doc/developper/html/jrn_8php-source.html +++ b/doc/developper/html/jrn_8php-source.html @@ -115,15 +115,15 @@ 00123 echo "<tr>"; 00124 echo "<TD>"; 00125 printf ('<SELECT NAME="class_deb%d">',$i); -00126 foreach ( $poste as $key => $value){ +00126 foreach ( $poste as $key => $value){ 00127 $selected=""; 00128 if ( ${"e_class_deb$i"} == $key ) $selected="SELECTED"; -00129 $a=sprintf('<OPTION VALUE="%s" %s >%s - % .40s', +00129 $a=sprintf('<OPTION VALUE="%s" %s >%s - % .40s', 00130 $key, -00131 $selected, +00131 $selected, 00132 $key, -00133 $value); -00134 echo $a; +00133 $value); +00134 echo $a; 00135 } 00136 echo "</SELECT>"; 00137 printf ('</TD>'); @@ -182,15 +182,15 @@ 00190 echo "<tr>"; 00191 echo "<TD>"; 00192 printf ('<SELECT NAME="class_cred%d">',$i); -00193 foreach ( $poste_c as $key => $value){ +00193 foreach ( $poste_c as $key => $value){ 00194 $selected=""; 00195 if ( ${"e_class_cred$i"} == $key ) $selected="SELECTED"; -00196 $a=sprintf('<OPTION VALUE="%s" %s >%s - % .40s', +00196 $a=sprintf('<OPTION VALUE="%s" %s >%s - % .40s', 00197 $key, -00198 $selected, +00198 $selected, 00199 $key, -00200 $value); -00201 echo $a; +00200 $value); +00201 echo $a; 00202 } 00203 00204 echo "</SELECT>"; @@ -223,7 +223,7 @@ 00231 } 00232 00233 echo '<TR><TD colspan="2"> -00234 rapprochement : <INPUT TYPE="TEXT" name="rapt" value="'.$e_rapt.'">'.$search.'</TD></TR>'; +00234 rapprochement : <INPUT TYPE="TEXT" name="rapt" value="'.$e_rapt.'">'.$search.'</TD></TR>'; 00235 echo "</TABLE>"; 00236 00237 // To avoid problem with unknown variable @@ -266,12 +266,12 @@ 00289 return ; 00290 } 00291 // Javascript -00292 $r=JS_VIEW_JRN_MODIFY; +00292 $r=JS_VIEW_JRN_MODIFY; 00293 00294 // Build the form 00295 $col_vide="<TD></TD>"; 00296 for ( $i =0 ; $i < sizeof($l_array); $i++) { -00297 $content=$l_array[$i] ; +00297 $content=$l_array[$i] ; 00298 00299 // for the first line 00300 if ( $i == 0 ) { @@ -282,11 +282,11 @@ 00305 $r.=$content['jr_date']; 00306 $r.="</TD>"; 00307 // for upload document we need the grpt_id -00308 $r.='<Input type="hidden" name="jr_grpt_id" value="'.$content['jr_grpt_id'].'">'; +00308 $r.='<Input type="hidden" name="jr_grpt_id" value="'.$content['jr_grpt_id'].'">'; 00309 00310 // comment can be changed 00311 $r.="<TD>"; -00312 $r.='<INPUT TYPE="TEXT" name="comment" value="'; +00312 $r.='<INPUT TYPE="TEXT" name="comment" value="'; 00313 $r.=$content['jr_comment']; 00314 $r.='" SIZE="25">'; 00315 $r.="</TD>"; @@ -302,7 +302,7 @@ 00325 // Is Paid 00326 $r.="<TD>"; 00327 $check=( $content['jr_rapt'] != null )?"CHECKED":"UNCHECKED"; -00328 $r.='<TD>Payé <INPUT TYPE="CHECKBOX" name="is_paid" '.$check.'></TD>'; +00328 $r.='<TD>Payé <INPUT TYPE="CHECKBOX" name="is_paid" '.$check.'></TD>'; 00329 } 00330 $r.="</TR>"; 00331 $r.="</TABLE>"; @@ -324,7 +324,7 @@ 00347 $file=new widget("file"); 00348 $file->table=1; 00349 //document -00350 $r.='<TD>A effacer <INPUT TYPE="CHECKBOX" name="to_remove" ></TD>'; +00350 $r.='<TD>A effacer <INPUT TYPE="CHECKBOX" name="to_remove" ></TD>'; 00351 $r.="<TD>".sprintf('<A class="detail" HREF="show_pj.php?jrn=%s&jr_grpt_id=%s">%s</A>', 00352 $content['jr_id'], 00353 $content['jr_grpt_id'], @@ -339,7 +339,7 @@ 00362 $r.="</table>"; 00363 $r.="Total ".$content['jr_montant']."<br>"; 00364 // show all the related operation -00365 $a=GetConcerned($p_cn,$content['jr_id']); +00365 $a=GetConcerned($p_cn,$content['jr_id']); 00366 00367 if ( $a != null ) { 00368 $r.="<b>Operation concernée</b> <br>"; @@ -354,7 +354,7 @@ 00377 foreach ($a as $key => $element) { 00378 $r.=sprintf ('%s <INPUT TYPE="BUTTON" VALUE="Détail" onClick="viewDetail(\'%s\',\'%s\')">', 00379 GetInternal($p_cn,$element),GetGrpt($p_cn,$element),$sessid); -00380 $r.=sprintf('<INPUT TYPE="button" value="Efface" onClick="dropLink(\'%s\',\'%s\',\'%s\')"><BR>', +00380 $r.=sprintf('<INPUT TYPE="button" value="Efface" onClick="dropLink(\'%s\',\'%s\',\'%s\')"><BR>', 00381 $content['jr_id'],$element,$sessid); 00382 }//for 00383 $r.= "</div>"; @@ -370,8 +370,8 @@ 00393 $search='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchJrn(\''.$sessid."','rapt')\">"; 00394 00395 $r.= '<H2 class="info">rapprochement </H2> -00396 <INPUT TYPE="TEXT" name="rapt" value="">'.$search; -00397 $r.='<input type="hidden" name="jr_id" value="'.$content['jr_id'].'">'; +00396 <INPUT TYPE="TEXT" name="rapt" value="">'.$search; +00397 $r.='<input type="hidden" name="jr_id" value="'.$content['jr_id'].'">'; 00398 00399 // echo $r; 00400 return $r; @@ -481,7 +481,7 @@ 00567 } 00583 function ViewJrn($p_dossier,$p_user,$p_jrn,$p_url,$p_array=null) { 00584 echo_debug('jrn.php',__LINE__,"function ViewJrn($p_dossier,$p_user,$p_jrn,$p_array=null) "); -00585 echo JS_VIEW_JRN_DETAIL; +00585 echo JS_VIEW_JRN_DETAIL; 00586 $db=sprintf("dossier%d",$p_dossier); 00587 $l_prop=GetJrnProp($p_dossier,$p_jrn); 00588 echo "<H2 class=\"info\">".$l_prop['jrn_def_name']."( ".$l_prop['jrn_def_code'].")"."</H2>"; @@ -679,7 +679,7 @@ 00842 } 00843 // Montre ce qu'on a encodé et demande vérif 00844 $next=""; -00845 foreach ( $p_array as $name=>$element ) { +00845 foreach ( $p_array as $name=>$element ) { 00846 echo_debug('jrn.php',__LINE__,"element $name -> $element "); 00847 // Sauve les données dans des variables 00848 ${"p_$name"}=$element; @@ -800,12 +800,12 @@ 01015 $array['jr_pj_name']=$line['jr_pj_name']; 01016 // $array['']=$line['']; 01017 -01018 $ret_array[$i]=$array; +01018 $ret_array[$i]=$array; 01019 } 01020 return $ret_array; 01021 } 01022 ?> -
                        Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                        Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                        diff --git a/doc/developper/html/jrn_8php.html b/doc/developper/html/jrn_8php.html index 090dbee59..48873f882 100644 --- a/doc/developper/html/jrn_8php.html +++ b/doc/developper/html/jrn_8php.html @@ -288,7 +288,7 @@ p_jr_id (jrn.jr_id) gen :

                          Definition at line 973 of file jrn.php.

                          -References $array, $i, $MaxLine, $Res, echo_debug(), and ExecSql(). +References $array, $i, $MaxLine, $Res, echo_debug(), and ExecSql().

                          Referenced by UpdateJrn(). @@ -390,7 +390,7 @@ jrn id gen :

                            Definition at line 907 of file jrn.php.

                            -References $Max, $Res, $ret, and ExecSql(). +References $Max, $Res, $ret, and ExecSql().

                            @@ -624,7 +624,7 @@ p_user user id

                              Definition at line 38 of file jrn.php.

                              -References $a, $cn, $e, $l2_line, $l_line, $poste, $Res, $search, $sessid, $Sql, DbConnect(), echo_debug(), ExecSql(), GetJrnProperty(), GetPeriode(), METHOD, name, selected, and value. +References $a, $cn, $e, $l2_line, $l_line, $poste, $Res, $search, $sessid, $Sql, DbConnect(), echo_debug(), ExecSql(), GetJrnProperty(), GetPeriode(), METHOD, name, selected, and value.

                              Referenced by CorrectRecord(). @@ -734,7 +734,7 @@ p_jrn

                                Definition at line 282 of file jrn.php.

                                -References $a, $check, $col_vide, $file, $i, $r, $search, $sessid, echo_debug(), echo_error(), GetConcerned(), GetDataJrnJrId(), GetGrpt(), GetInternal(), name, return, and value. +References $a, $check, $col_vide, $file, $i, $r, $search, $sessid, echo_debug(), echo_error(), GetConcerned(), GetDataJrnJrId(), GetGrpt(), GetInternal(), name, return, and value.

                                @@ -790,7 +790,7 @@ p_array array with all the values

                                  Definition at line 834 of file jrn.php.

                                  -References cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), name, and PeriodeClosed(). +References cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), name, and PeriodeClosed().

                                  @@ -858,7 +858,7 @@ p_user,

                                    Definition at line 583 of file jrn.php.

                                    -References $cn, $col_vide, $db, $l_id, $l_line, $MaxLine, $Res, $sessid, $sql, DbConnect(), echo_debug(), ExecSql(), FormatString(), GetJrnProp(), and isDate(). +References $cn, $col_vide, $db, $l_id, $l_line, $MaxLine, $Res, $sessid, $sql, DbConnect(), echo_debug(), ExecSql(), FormatString(), GetJrnProp(), and isDate().

                                    @@ -968,10 +968,10 @@ p_jrn

                                      Definition at line 457 of file jrn.php.

                                      -References $col_vide, echo_debug(), GetJrnProp(), GetPosteLibelle(), and table. +References $col_vide, echo_debug(), GetJrnProp(), GetPosteLibelle(), and table. -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__add_8php-source.html b/doc/developper/html/jrn__add_8php-source.html index 35d97e053..ef0f93e77 100644 --- a/doc/developper/html/jrn__add_8php-source.html +++ b/doc/developper/html/jrn__add_8php-source.html @@ -58,7 +58,7 @@ 00053 00054 } 00055 -00056 echo JS_SEARCH_POSTE; +00056 echo JS_SEARCH_POSTE; 00057 00058 If ( isset ($_POST["JRN_ADD"]) ) { 00059 if ( !isset($_POST["p_jrn_name"]) || ! isset($_POST["p_jrn_type"] )) { @@ -208,7 +208,7 @@ 00203 echo "</DIV>"; 00204 html_page_stop(); 00205 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__add_8php.html b/doc/developper/html/jrn__add_8php.html index f34522276..59778a2f7 100644 --- a/doc/developper/html/jrn__add_8php.html +++ b/doc/developper/html/jrn__add_8php.html @@ -517,7 +517,7 @@ Definition at line 37 Definition at line 52 of file jrn_add.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__csv_8php-source.html b/doc/developper/html/jrn__csv_8php-source.html index 9abf840d2..8662ff8ec 100644 --- a/doc/developper/html/jrn__csv_8php-source.html +++ b/doc/developper/html/jrn__csv_8php-source.html @@ -124,7 +124,7 @@ 00120 00122 } 00123 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__csv_8php.html b/doc/developper/html/jrn__csv_8php.html index ed8becdfb..6dfd13ebc 100644 --- a/doc/developper/html/jrn__csv_8php.html +++ b/doc/developper/html/jrn__csv_8php.html @@ -210,7 +210,7 @@ Definition at line 36 Definition at line 80 of file jrn_csv.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__detail_8php-source.html b/doc/developper/html/jrn__detail_8php-source.html index 085eff0f7..3826492a3 100644 --- a/doc/developper/html/jrn__detail_8php-source.html +++ b/doc/developper/html/jrn__detail_8php-source.html @@ -57,7 +57,7 @@ 00052 exit -1; 00053 } 00054 // Javascript -00055 echo JS_SEARCH_POSTE; +00055 echo JS_SEARCH_POSTE; 00056 if ( isset( $_GET['p_jrn'] )) { 00057 $p_jrn=$_GET['p_jrn']; 00058 } else { @@ -253,7 +253,7 @@ 00248 echo "</DIV>"; 00249 html_page_stop(); 00250 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__detail_8php.html b/doc/developper/html/jrn__detail_8php.html index 0eaaca291..b50f58e68 100644 --- a/doc/developper/html/jrn__detail_8php.html +++ b/doc/developper/html/jrn__detail_8php.html @@ -183,7 +183,7 @@ Definition at line 84 Definition at line 128 of file jrn_detail.php.

                                      -Referenced by EncodeFiche(), FormODS(), FormPeriode(), FormPeriodeMult(), GetAmount(), GetData(), GetDataForm(), GetFirstJrnIdForJrnType(), GetInternal(), GetNextFiche(), GetNumberLine(), rapport::GetRow(), ImpHtml(), MenuJrn(), new_fiche(), PeriodeClosed(), RecordJrn(), ShowDevise(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), ViewFiche(), ViewForm(), and ViewJrn(). +Referenced by EncodeFiche(), FormODS(), FormPeriode(), FormPeriodeMult(), GetAmount(), GetData(), GetDataForm(), GetFirstJrnIdForJrnType(), GetInternal(), GetNextFiche(), GetNumberLine(), rapport::GetRow(), ImpHtml(), MenuJrn(), new_fiche(), PeriodeClosed(), RecordJrn(), ShowDevise(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), ViewFiche(), ViewForm(), and ViewJrn().

                                      @@ -546,7 +546,7 @@ Definition at line 3552 of file jrn_detail.php. -


                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__op__detail_8php-source.html b/doc/developper/html/jrn__op__detail_8php-source.html index cd9ef2205..8b045f735 100644 --- a/doc/developper/html/jrn__op__detail_8php-source.html +++ b/doc/developper/html/jrn__op__detail_8php-source.html @@ -82,7 +82,7 @@ 00077 } 00078 echo '</div>'; 00079 -00080 $a=GetConcerned($cn,$e_jr_id); +00080 $a=GetConcerned($cn,$e_jr_id); 00081 00082 if ( $a != null ) { 00083 echo "operation concernée <br>"; @@ -94,11 +94,11 @@ 00089 echo "</div>"; 00090 }// if ( $a != null ) { 00091 ?> -00092 <input type="button" onClick="window.close()" value="Fermer"> +00092 <input type="button" onClick="window.close()" value="Fermer"> 00093 <? 00094 html_page_stop(); 00095 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__op__detail_8php.html b/doc/developper/html/jrn__op__detail_8php.html index e2aaf6b39..71930582c 100644 --- a/doc/developper/html/jrn__op__detail_8php.html +++ b/doc/developper/html/jrn__op__detail_8php.html @@ -129,7 +129,7 @@ Definition at line Definition at line 38 of file jrn_op_detail.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__pdf_8php-source.html b/doc/developper/html/jrn__pdf_8php-source.html index 145fb259e..f03bd3943 100644 --- a/doc/developper/html/jrn__pdf_8php-source.html +++ b/doc/developper/html/jrn__pdf_8php-source.html @@ -76,7 +76,7 @@ 00071 $offset=0;$limit=22;$step=22; 00072 $rap_deb=0;$rap_cred=0; 00073 while (1) { -00074 $a=0; +00074 $a=0; 00075 list ($a_jrn,$tot_deb,$tot_cred)=$Jrn->GetRow($_GET['from_periode'], 00076 $_GET['to_periode'], 00077 $_GET['central'], @@ -115,7 +115,7 @@ 00110 array('shaded'=>0,'showHeadings'=>1,'width'=>500, 00111 'cols'=>array('deb_montant'=> array('justification'=>'right'), 00112 'cred_montant'=> array('justification'=>'right')))); -00113 $a=1; +00113 $a=1; 00114 // Total Page 00115 $apage=array(array('deb'=>sprintf("%8.2f",$tot_deb),'cred'=>$tot_cred)); 00116 foreach ($apage as $key=>$element) echo_debug('jrn_pdf.php',__LINE__,"apage $key => $element"); @@ -165,7 +165,7 @@ 00160 $pdf->ezStream(); 00161 00162 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__pdf_8php.html b/doc/developper/html/jrn__pdf_8php.html index 9a77ced48..857f14ed5 100644 --- a/doc/developper/html/jrn__pdf_8php.html +++ b/doc/developper/html/jrn__pdf_8php.html @@ -366,7 +366,7 @@ Definition at line 127

                                      Definition at line 71 of file jrn_pdf.php.

                                      -Referenced by fiche::GetByDef(), ListJrn(), and action::myList(). +Referenced by fiche::GetByDef(), ListJrn(), and action::myList().

                                      @@ -594,7 +594,7 @@ Definition at line 132 Definition at line 54 of file jrn_pdf.php. -


                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__search_8php-source.html b/doc/developper/html/jrn__search_8php-source.html index 043374749..62a9b487e 100644 --- a/doc/developper/html/jrn__search_8php-source.html +++ b/doc/developper/html/jrn__search_8php-source.html @@ -44,7 +44,7 @@ 00039 exit -2; 00040 } 00041 // Javascript -00042 echo JS_CONCERNED_OP; +00042 echo JS_CONCERNED_OP; 00043 if ( isset( $p_jrn )) { 00044 $p_jrn=$p_jrn; 00045 $_SESSION[ "p_jrn"]=$p_jrn; @@ -117,27 +117,27 @@ 00112 if ( ! isset ($p_montant)) $p_montant=""; 00113 if ( ! isset ($p_comment)) $p_comment=""; 00114 if ( ! isset ($p_internal)) $p_internal=""; -00115 echo '<input type="hidden" name="p_ctl" value="'.$p_ctl.'">'; +00115 echo '<input type="hidden" name="p_ctl" value="'.$p_ctl.'">'; 00116 echo '<TD> Date </TD>'; 00117 echo '<TD> <SELECT NAME="p_date_sel">'.$opt_date.' </TD>'; -00118 echo '<TD> <INPUT TYPE="text" name="p_date" VALUE="'.$p_date.'"></TD>'; +00118 echo '<TD> <INPUT TYPE="text" name="p_date" VALUE="'.$p_date.'"></TD>'; 00119 00120 echo '<TD> Montant </TD>'; 00121 echo '<TD> <SELECT NAME="p_montant_sel">'.$opt_montant.' </TD>'; -00122 echo '<TD> <INPUT TYPE="text" name="p_montant" VALUE="'.$p_montant.'"></TD>'; +00122 echo '<TD> <INPUT TYPE="text" name="p_montant" VALUE="'.$p_montant.'"></TD>'; 00123 echo '</TR><TR>'; 00124 echo '<TD> Commentaire </TD>'; 00125 echo '<TD> contient </TD>'; -00126 echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD>'; +00126 echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD>'; 00127 ?> 00128 </TR><TR> 00129 <TD> Code interne </TD><TD>comme </TD> 00130 <? -00131 echo '<TD> <INPUT TYPE="text" name="p_internal" VALUE="'.$p_internal.'"></TD>'; +00131 echo '<TD> <INPUT TYPE="text" name="p_internal" VALUE="'.$p_internal.'"></TD>'; 00132 echo "</TR>"; 00133 00134 echo '</TABLE>'; -00135 echo '<INPUT TYPE="submit" name="search" value="cherche">'; +00135 echo '<INPUT TYPE="submit" name="search" value="cherche">'; 00136 echo '</FORM>'; 00137 00138 // if a search is asked otherwise don't show all the rows @@ -238,7 +238,7 @@ 00233 <? 00234 html_page_stop(); 00235 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__search_8php.html b/doc/developper/html/jrn__search_8php.html index ade2df298..0b79247e2 100644 --- a/doc/developper/html/jrn__search_8php.html +++ b/doc/developper/html/jrn__search_8php.html @@ -679,7 +679,7 @@ Definition at line 39163 of file jrn_search.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__update_8php-source.html b/doc/developper/html/jrn__update_8php-source.html index e1a90fd5e..c7c874535 100644 --- a/doc/developper/html/jrn__update_8php-source.html +++ b/doc/developper/html/jrn__update_8php-source.html @@ -64,7 +64,7 @@ 00058 echo '</div>'; 00059 html_page_stop(); 00060 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/jrn__update_8php.html b/doc/developper/html/jrn__update_8php.html index 8d87543c4..8d7a0c3e2 100644 --- a/doc/developper/html/jrn__update_8php.html +++ b/doc/developper/html/jrn__update_8php.html @@ -129,7 +129,7 @@ Definition at line 3450 of file jrn_update.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/line__update_8php-source.html b/doc/developper/html/line__update_8php-source.html index b93c9db59..aaa5fe14c 100644 --- a/doc/developper/html/line__update_8php-source.html +++ b/doc/developper/html/line__update_8php-source.html @@ -53,10 +53,10 @@ 00047 00048 /* Modif d'une ligne */ 00049 if ( isset ($_POST["update"] ) ) { -00050 foreach ($HTTP_POST_VARS as $name => $element) { +00050 foreach ($HTTP_POST_VARS as $name => $element) { 00051 echo_debug('line_update.php',__LINE__,"name $name $element"); 00052 } -00053 echo JS_UPDATE_PCMN; +00053 echo JS_UPDATE_PCMN; 00054 $cn=DbConnect($_SESSION['g_dossier']); 00055 $p_val=trim($_POST["p_val"]); 00056 $p_lib=FormatString($_POST["p_name"]); @@ -101,19 +101,19 @@ 00095 $p=$_GET['p']; 00096 $n=$_GET['n']; 00097 -00098 printf ('<TD>Numéro de classe </TD><TD><INPUT TYPE="TEXT" name="p_val" value="%s"></TD>',$l); +00098 printf ('<TD>Numéro de classe </TD><TD><INPUT TYPE="TEXT" name="p_val" value="%s"></TD>',$l); 00099 echo "</TR><TR>"; -00100 printf('<TD>Libellé </TD><TD><INPUT TYPE="TEXT" size="70" NAME="p_name" value="%s"></TD>',urldecode($n)); +00100 printf('<TD>Libellé </TD><TD><INPUT TYPE="TEXT" size="70" NAME="p_name" value="%s"></TD>',urldecode($n)); 00101 echo "</TR><TR>"; -00102 printf ('<TD>Classe Parent</TD><TD><INPUT TYPE="TEXT" name="p_val_parent" value="%s"></TD>',$p); +00102 printf ('<TD>Classe Parent</TD><TD><INPUT TYPE="TEXT" name="p_val_parent" value="%s"></TD>',$p); 00103 ?> 00104 </TR> 00105 </TABLE> 00106 <TABLE> 00107 <TR> 00108 <TD><INPUT TYPE="Submit" VALUE="Sauve"> -00109 <INPUT TYPE="HIDDEN" name="update"> -00110 <? printf ('<INPUT TYPE="HIDDEN" name="p_old" value="%s">',$l); ?> +00109 <INPUT TYPE="HIDDEN" name="update"> +00110 <? printf ('<INPUT TYPE="HIDDEN" name="p_old" value="%s">',$l); ?> 00111 </TD><TD><input type="button" Value="Retour sans sauver" onClick='window.close();'></TD></TR> 00112 </TABLE> 00113 </FORM> @@ -122,7 +122,7 @@ 00116 <? 00117 html_page_stop(); 00118 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/line__update_8php.html b/doc/developper/html/line__update_8php.html index ad688804a..9e5e9b524 100644 --- a/doc/developper/html/line__update_8php.html +++ b/doc/developper/html/line__update_8php.html @@ -169,7 +169,7 @@ Definition at line 58<

                                      Definition at line 95 of file line_update.php.

                                      -Referenced by Cezpdf::ezTable(), and Cpdf::setEncryption(). +Referenced by Cezpdf::ezTable(), Document::Replace(), and Cpdf::setEncryption().

                                      @@ -298,7 +298,7 @@ Definition at line 34<

                                      Definition at line 70 of file line_update.php.

                                      -Referenced by Centralise(), fiche::CountByDef(), fiche_def::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetDossierName(), GetFirstJrnIdForJrnType(), GetUserProperty(), fiche::insert(), MenuJrn(), NextJrn(), Document_modele::Save(), ShowMenuComptaForm(), ShowMenuJrnUser(), and fiche::update(). +Referenced by Centralise(), fiche::CountByDef(), fiche_def::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetDossierName(), cl_user::getExercice(), GetFirstJrnIdForJrnType(), GetUserProperty(), fiche::insert(), MenuJrn(), NextJrn(), Document_modele::Save(), ShowMenuComptaForm(), ShowMenuJrnUser(), and fiche::update().

                                      @@ -351,7 +351,7 @@ Definition at line 36< Definition at line 43 of file line_update.php. -


                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/listing__client_8php-source.html b/doc/developper/html/listing__client_8php-source.html index 1a2e20229..8e0113ad7 100644 --- a/doc/developper/html/listing__client_8php-source.html +++ b/doc/developper/html/listing__client_8php-source.html @@ -56,12 +56,12 @@ 00052 $a_Res=$customer->VatListing($_POST['year']); 00053 00054 require_once("decla.BE.inc.php"); -00055 $a=MakeListingVat($cn,$a_Res,$_POST['year']); +00055 $a=MakeListingVat($cn,$a_Res,$_POST['year']); 00056 echo "$a"; 00057 return; 00058 } 00059 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/listing__client_8php.html b/doc/developper/html/listing__client_8php.html index 610fa9335..6b6572c22 100644 --- a/doc/developper/html/listing__client_8php.html +++ b/doc/developper/html/listing__client_8php.html @@ -183,7 +183,7 @@ Definition at line Definition at line 56 of file listing_client.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/login_8php-source.html b/doc/developper/html/login_8php-source.html index e08bdf2aa..29632efc4 100644 --- a/doc/developper/html/login_8php-source.html +++ b/doc/developper/html/login_8php-source.html @@ -61,7 +61,7 @@ 00055 } 00056 html_page_stop(); 00057 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/login_8php.html b/doc/developper/html/login_8php.html index 0929672b5..96121f77f 100644 --- a/doc/developper/html/login_8php.html +++ b/doc/developper/html/login_8php.html @@ -156,7 +156,7 @@ Definition at line 39 of Definition at line 41 of file login.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/logout_8php-source.html b/doc/developper/html/logout_8php-source.html index 5ae4536b7..4719e80a2 100644 --- a/doc/developper/html/logout_8php-source.html +++ b/doc/developper/html/logout_8php-source.html @@ -36,7 +36,7 @@ 00030 00031 html_page_stop(); 00032 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/logout_8php.html b/doc/developper/html/logout_8php.html index 344394938..58b8b1715 100644 --- a/doc/developper/html/logout_8php.html +++ b/doc/developper/html/logout_8php.html @@ -19,7 +19,7 @@ Logout.

                                      -Definition in file logout.php.


                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +Definition in file logout.php.
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/modify__op_8php-source.html b/doc/developper/html/modify__op_8php-source.html index a81c6ed13..42dc1e4c4 100644 --- a/doc/developper/html/modify__op_8php-source.html +++ b/doc/developper/html/modify__op_8php-source.html @@ -74,7 +74,7 @@ 00068 } 00069 00070 // Javascript -00071 echo JS_VIEW_JRN_MODIFY; +00071 echo JS_VIEW_JRN_MODIFY; 00073 if ( $action == 'update' ) { 00074 if ( ($priv=CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_GET['p_jrn'],true)) < 1 ) { 00075 NoAccess(); @@ -84,18 +84,18 @@ 00079 // p_id is jrn.jr_id 00080 $p_id=$_GET["line"]; 00081 echo_debug('modify_op.php',__LINE__," action = update p_id = $p_id"); -00082 echo JS_VIEW_JRN_DETAIL; -00083 echo JS_CONCERNED_OP; +00082 echo JS_VIEW_JRN_DETAIL; +00083 echo JS_CONCERNED_OP; 00084 $r ='<FORM METHOD="POST" enctype="multipart/form-data" ACTION="modify_op.php">'; 00085 $r.=UpdateJrn($cn,$p_id); 00086 -00087 $r.='<INPUT TYPE="Hidden" name="action" value="update_record">'; +00087 $r.='<INPUT TYPE="Hidden" name="action" value="update_record">'; 00088 $r.="<br>"; 00089 $r.="<br>"; 00090 $r.="<br>"; -00091 $r.='<input type="SUBMIT" name="update_record" value="Enregistre">'; +00091 $r.='<input type="SUBMIT" name="update_record" value="Enregistre">'; 00092 $r.="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; -00093 $r.='<input type="button" value="Fermer" onClick="window.close();">'; +00093 $r.='<input type="button" value="Fermer" onClick="window.close();">'; 00094 $r.='</FORM>'; 00095 00096 // echo '<div class="redcontent">'; @@ -155,7 +155,7 @@ 00154 } 00155 html_page_stop(); 00156 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/modify__op_8php.html b/doc/developper/html/modify__op_8php.html index ec8d30d81..680a53cd1 100644 --- a/doc/developper/html/modify__op_8php.html +++ b/doc/developper/html/modify__op_8php.html @@ -59,7 +59,7 @@ Definition in file modify_op.ph

                                      Definition at line 125 of file modify_op.php.

                                      -Referenced by Document_modele::Save(), save_upload_document(), and Document::Upload(). +Referenced by Document_modele::Save(), save_upload_document(), and Document::Upload().

                                      @@ -214,7 +214,7 @@ Definition at line 3776 of file modify_op.php. -


                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/namespaceCpdf.html b/doc/developper/html/namespaceCpdf.html index f020ca7c7..2e68e9f37 100644 --- a/doc/developper/html/namespaceCpdf.html +++ b/doc/developper/html/namespaceCpdf.html @@ -21,7 +21,7 @@ LICENCE This code has been placed in the Public Domain for all to enjoy.

                                      Version:
                                      009

                                      -


                                      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/namespaces.html b/doc/developper/html/namespaces.html index 0e47fb5cd..b9bda4109 100644 --- a/doc/developper/html/namespaces.html +++ b/doc/developper/html/namespaces.html @@ -8,7 +8,7 @@

                                      phpcompta Namespace List

                                      Here is a list of all namespaces with brief descriptions:
                                      Cpdf
                                      -
                                      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/not__implemented_8php-source.html b/doc/developper/html/not__implemented_8php-source.html index 7712c2507..35f83f782 100644 --- a/doc/developper/html/not__implemented_8php-source.html +++ b/doc/developper/html/not__implemented_8php-source.html @@ -32,7 +32,7 @@ 00023 echo '<H1 class="info"> Not Implemented</H1>'; 00024 html_page_stop(); 00025 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/not__implemented_8php.html b/doc/developper/html/not__implemented_8php.html index fdf14630f..7b4b69a5a 100644 --- a/doc/developper/html/not__implemented_8php.html +++ b/doc/developper/html/not__implemented_8php.html @@ -12,7 +12,7 @@ Go to the source code of this file.
                                      -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/pages.html b/doc/developper/html/pages.html index 2fb576ff6..00175335b 100644 --- a/doc/developper/html/pages.html +++ b/doc/developper/html/pages.html @@ -9,7 +9,7 @@
                                    • Todo List
                                    -
                                    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/parametre_8php-source.html b/doc/developper/html/parametre_8php-source.html index d892f7c48..2bfe5e1c8 100644 --- a/doc/developper/html/parametre_8php-source.html +++ b/doc/developper/html/parametre_8php-source.html @@ -153,38 +153,44 @@ 00158 $m->MY_NUMBER=$p_no; 00159 $m->MY_CP=$p_cp; 00160 $m->MY_COMMUNE=$p_Commune; -00161 $m->Save(); -00162 } -00163 -00164 $my=new Own($cn); -00165 $all=new widget("text"); -00166 $all->table=1; -00167 echo '<form method="post" action="?p_action=company">'; -00168 echo "<table class=\"result\">"; -00169 echo "<tr>".$all->IOValue("p_name",$my->MY_NAME,"Nom société")."</tr>"; -00170 -00171 echo "<tr>".$all->IOValue("p_tva",$my->MY_TVA,"Numéro de Tva")."</tr>"; -00172 echo "<tr>".$all->IOValue("p_street",$my->MY_STREET,"Rue ")."</tr>"; -00173 echo "<tr>".$all->IOValue("p_no",$my->MY_NUMBER,"Numéro")."</tr>"; -00174 echo "<tr>".$all->IOValue("p_cp",$my->MY_CP,"Code Postal")."</tr>"; -00175 echo "<tr>".$all->IOValue("p_Commune",$my->MY_COMMUNE,"Commune")."</tr>"; -00176 echo "</table>"; -00177 $submit=new widget("submit"); -00178 echo $submit->Submit("record_company","Enregistre"); -00179 echo "</form>"; -00180 } -00182 // Document -00184 echo "</DIV>"; -00185 if ( $p_action == 'document' ) { -00186 echo '<div class="u_content">'; -00187 require_once('document_modele.inc.php'); -00188 echo '</div>'; -00189 } -00190 -00191 -00192 html_page_stop(); -00193 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00161 $m->MY_TEL=$p_tel; +00162 $m->MY_FAX=$p_fax; +00163 $m->MY_PAYS=$p_pays; +00164 $m->Save(); +00165 } +00166 +00167 $my=new Own($cn); +00168 $all=new widget("text"); +00169 $all->table=1; +00170 echo '<form method="post" action="?p_action=company">'; +00171 echo "<table class=\"result\">"; +00172 echo "<tr>".$all->IOValue("p_name",$my->MY_NAME,"Nom société")."</tr>"; +00173 echo "<tr>".$all->IOValue("p_tel",$my->MY_TEL,"Téléphone")."</tr>"; +00174 echo "<tr>".$all->IOValue("p_fax",$my->MY_FAX,"Fax")."</tr>"; +00175 echo "<tr>".$all->IOValue("p_street",$my->MY_STREET,"Rue ")."</tr>"; +00176 echo "<tr>".$all->IOValue("p_no",$my->MY_NUMBER,"Numéro")."</tr>"; +00177 echo "<tr>".$all->IOValue("p_cp",$my->MY_CP,"Code Postal")."</tr>"; +00178 echo "<tr>".$all->IOValue("p_Commune",$my->MY_COMMUNE,"Commune")."</tr>"; +00179 echo "<tr>".$all->IOValue("p_pays",$my->MY_PAYS,"Pays")."</tr>"; +00180 echo "<tr>".$all->IOValue("p_tva",$my->MY_TVA,"Numéro de Tva")."</tr>"; +00181 +00182 echo "</table>"; +00183 $submit=new widget("submit"); +00184 echo $submit->Submit("record_company","Enregistre"); +00185 echo "</form>"; +00186 } +00188 // Document +00190 echo "</DIV>"; +00191 if ( $p_action == 'document' ) { +00192 echo '<div class="u_content">'; +00193 require_once('document_modele.inc.php'); +00194 echo '</div>'; +00195 } +00196 +00197 +00198 html_page_stop(); +00199 ?> +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/parametre_8php.html b/doc/developper/html/parametre_8php.html index 6c5cfbd2d..521d794ca 100644 --- a/doc/developper/html/parametre_8php.html +++ b/doc/developper/html/parametre_8php.html @@ -42,13 +42,19 @@ $m MY_COMMUNE = $p_Commune - $my = new Own($cn) +$m MY_TEL = $p_tel - $all = new widget("text") +$m MY_FAX = $p_fax -$all table = 1 +$m MY_PAYS = $p_pays - $submit = new widget("submit") + $my = new Own($cn) + + $all = new widget("text") + +$all table = 1 + + $submit = new widget("submit")

                                    Detailed Description

                                    @@ -107,7 +113,7 @@ Definition at line 34 Definition at line 74 of file parametre.php. -

                                    +

                                    +Definition at line 168 of file parametre.php.
                                    @@ -129,7 +135,7 @@ Definition at line 74

                                    -Definition at line 165 of file parametre.php.

                                    @@ -157,7 +163,7 @@ Definition at line 16556 of file parametre.php. -

                                    +

                                    +Referenced by MakeListingVat(), and Document::Replace().
                                    @@ -179,9 +185,9 @@ Definition at line 56

                                    -Definition at line 164 of file parametre.php. +Definition at line 167 of file parametre.php.

                                    -Referenced by MakeListingVat(), and Document::Replace().

                                    @@ -234,7 +240,7 @@ Definition at line 66 Definition at line 44 of file parametre.php. -

                                    +

                                    +Definition at line 183 of file parametre.php.
                                    @@ -256,7 +262,7 @@ Definition at line 44

                                    -Definition at line 177 of file parametre.php.

                                    @@ -333,7 +339,7 @@ Definition at line 61

                                    Definition at line 160 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save().

                                    @@ -360,7 +366,34 @@ Referenced by Docum

                                    Definition at line 159 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save(). + + +

                                    + + + + +
                                    + + + + +
                                    $m MY_FAX = $p_fax
                                    +
                                    + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 162 of file parametre.php. +

                                    +Referenced by Document::Replace(), and Own::Save().

                                    @@ -387,7 +420,7 @@ Referenced by Docum

                                    Definition at line 155 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save().

                                    @@ -414,7 +447,34 @@ Referenced by Docum

                                    Definition at line 158 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save(). + + +

                                    + + + + +
                                    + + + + +
                                    $m MY_PAYS = $p_pays
                                    +
                                    + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 163 of file parametre.php. +

                                    +Referenced by Document::Replace(), and Own::Save().

                                    @@ -441,7 +501,34 @@ Referenced by Docum

                                    Definition at line 157 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save(). + + +

                                    + + + + +
                                    + + + + +
                                    $m MY_TEL = $p_tel
                                    +
                                    + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 161 of file parametre.php. +

                                    +Referenced by Document::Replace(), and Own::Save().

                                    @@ -468,7 +555,7 @@ Referenced by Docum

                                    Definition at line 156 of file parametre.php.

                                    -Referenced by Document::Replace(), and Own::Save(). +Referenced by Document::Replace(), and Own::Save().

                                    @@ -496,13 +583,13 @@ Referenced by Docum Definition at line 101 of file parametre.php. -

                                    +

                                    @@ -518,10 +605,10 @@ Definition at line 101

                                    -Definition at line 166 of file parametre.php. +Definition at line 169 of file parametre.php.

                                    - +
                                    $all table = 1 $all table = 1
                                    -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/pcmn__update_8php-source.html b/doc/developper/html/pcmn__update_8php-source.html index 3bc9bfd37..e14ccc2e0 100644 --- a/doc/developper/html/pcmn__update_8php-source.html +++ b/doc/developper/html/pcmn__update_8php-source.html @@ -54,7 +54,7 @@ 00048 NoAccess(); 00049 exit -1; 00050 } -00051 echo JS_UPDATE_PCMN; +00051 echo JS_UPDATE_PCMN; 00052 /* Store the p_start parameter */ 00053 if ( ! isset ( $_SESSION['g_start']) ) { 00054 $_SESSION['g_start']=""; @@ -201,7 +201,7 @@ 00197 echo "</DIV>"; 00198 html_page_stop(); 00199 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/pcmn__update_8php.html b/doc/developper/html/pcmn__update_8php.html index d92f55157..ce1c211ae 100644 --- a/doc/developper/html/pcmn__update_8php.html +++ b/doc/developper/html/pcmn__update_8php.html @@ -156,7 +156,7 @@ Definition at line 36< Definition at line 49 of file pcmn_update.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/periode_8inc_8php-source.html b/doc/developper/html/periode_8inc_8php-source.html index ff1842b81..1a1508a03 100644 --- a/doc/developper/html/periode_8inc_8php-source.html +++ b/doc/developper/html/periode_8inc_8php-source.html @@ -112,7 +112,7 @@ 00110 ShowPeriode($cn); 00111 00112 ?> -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/periode_8inc_8php.html b/doc/developper/html/periode_8inc_8php.html index fc78dc08d..3c7206374 100644 --- a/doc/developper/html/periode_8inc_8php.html +++ b/doc/developper/html/periode_8inc_8php.html @@ -26,7 +26,7 @@

                                    Detailed Description

                                    Still used ?

                                    -

                                    Todo:
                                    check if obsolete
                                    +
                                    Todo:
                                    check if obsolete

                                    Definition in file periode.inc.php.


                                    Variable Documentation

                                    @@ -137,7 +137,7 @@ Definition at line 61< Definition at line 59 of file periode.inc.php. -
                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste_8inc_8php-source.html b/doc/developper/html/poste_8inc_8php-source.html index e31132983..4e3c2ce0f 100644 --- a/doc/developper/html/poste_8inc_8php-source.html +++ b/doc/developper/html/poste_8inc_8php-source.html @@ -45,11 +45,11 @@ 00041 echo '<table align="left">'; 00042 for ($i=0;$i<sizeof($all);$i++) { 00043 echo '<TR>'; -00044 echo $all[$i]->Display(); +00044 echo $all[$i]->Display(); 00045 echo '<TD><FORM method="POST">'; 00046 $w=new widget('hidden'); 00047 $w->name='id'; -00048 $w->value=$i; +00048 $w->value=$i; 00049 echo $w->IOValue(); 00050 echo $w->Submit('mod','modifie'); 00051 echo '</FORM>'; @@ -79,7 +79,7 @@ 00076 echo "</div>"; 00077 00078 } -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste_8inc_8php.html b/doc/developper/html/poste_8inc_8php.html index 510d4a73a..eeade5fc7 100644 --- a/doc/developper/html/poste_8inc_8php.html +++ b/doc/developper/html/poste_8inc_8php.html @@ -88,7 +88,7 @@ Definition at line 39 Definition at line 69 of file poste.inc.php.

                                    -Referenced by Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), fiche_def_ref::Input(), ListJrn(), Document::ParseDocument(), and ros_logo(). +Referenced by Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), fiche_def_ref::Input(), ListJrn(), Document::ParseDocument(), and ros_logo().

                                    @@ -215,7 +215,7 @@ Definition at line 47 Definition at line 33 of file poste.inc.php.

                                    -Referenced by parm_code::Get(), parm_code::Input(), InsertJrn(), parm_code::Save(), and UpdateComment(). +Referenced by parm_code::Get(), parm_code::Input(), InsertJrn(), parm_code::Save(), and UpdateComment().

                                    @@ -270,7 +270,7 @@ Referenced by par Definition at line 48 of file poste.inc.php. -


                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste_8php-source.html b/doc/developper/html/poste_8php-source.html index 2dc2bdc1e..5b0cec56e 100644 --- a/doc/developper/html/poste_8php-source.html +++ b/doc/developper/html/poste_8php-source.html @@ -91,7 +91,7 @@ 00128 } 00129 00130 ?> -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste_8php.html b/doc/developper/html/poste_8php.html index cb5a572e0..d448ed732 100644 --- a/doc/developper/html/poste_8php.html +++ b/doc/developper/html/poste_8php.html @@ -70,7 +70,7 @@ Max of ligne definie dans le journal. -
                                    Todo:
                                    obsolete ?
                                    +
                                    Todo:
                                    obsolete ?

                                    Definition at line 62 of file poste.php. @@ -191,7 +191,7 @@ give the balance of an account

                                    Definition at line 114 of file poste.php.

                                    -References $Max, $r, $Res, and ExecSql(). +References $Max, $r, $Res, and ExecSql().

                                    Referenced by FormFin(). @@ -233,12 +233,12 @@ Cree un form pour prendre les postes.

                                    Definition at line 87 of file poste.php.

                                    -References $Max, $Res, $ret, and ExecSql(). +References $Max, $Res, $ret, and ExecSql().

                                    Referenced by ViewImp(). -


                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__csv_8php-source.html b/doc/developper/html/poste__csv_8php-source.html index 37a42748c..7ec471b2d 100644 --- a/doc/developper/html/poste__csv_8php-source.html +++ b/doc/developper/html/poste__csv_8php-source.html @@ -78,7 +78,7 @@ 00072 00073 exit; 00074 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__csv_8php.html b/doc/developper/html/poste__csv_8php.html index 9988e0a35..fadd69cc5 100644 --- a/doc/developper/html/poste__csv_8php.html +++ b/doc/developper/html/poste__csv_8php.html @@ -185,7 +185,7 @@ Definition at line 3573 of file poste_csv.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__pdf_8php-source.html b/doc/developper/html/poste__pdf_8php-source.html index 5e5773071..9ce9fc274 100644 --- a/doc/developper/html/poste__pdf_8php-source.html +++ b/doc/developper/html/poste__pdf_8php-source.html @@ -100,7 +100,7 @@ 00094 $pdf->ezStream(); 00095 00096 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__pdf_8php.html b/doc/developper/html/poste__pdf_8php.html index 040db9372..af08ce45a 100644 --- a/doc/developper/html/poste__pdf_8php.html +++ b/doc/developper/html/poste__pdf_8php.html @@ -183,7 +183,7 @@ Definition at line 7574 of file poste_pdf.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__search_8php-source.html b/doc/developper/html/poste__search_8php-source.html index 546159834..607aa40d3 100644 --- a/doc/developper/html/poste__search_8php-source.html +++ b/doc/developper/html/poste__search_8php-source.html @@ -37,7 +37,7 @@ 00031 $User=new cl_user($rep); 00032 $User->Check(); 00033 -00034 echo JS_SEARCH_POSTE; +00034 echo JS_SEARCH_POSTE; 00035 00036 if ( ! isset ( $_SESSION['g_dossier'] ) ) { 00037 echo "You must choose a Dossier "; @@ -133,7 +133,7 @@ 00127 00128 echo '<FORM ACTION="poste_search.php'.$url.'" METHOD="POST">'; 00129 if ( isset($p_ctl) ) { -00130 if ($p_ctl != 'not') echo '<INPUT TYPE="hidden" name="p_ctl" value="'.$p_ctl.'">'; +00130 if ($p_ctl != 'not') echo '<INPUT TYPE="hidden" name="p_ctl" value="'.$p_ctl.'">'; 00131 } 00132 echo '<TABLE>'; 00133 echo '<TR>'; @@ -142,14 +142,14 @@ 00136 00137 if ( ! isset ($p_class) ) $p_class=""; 00138 $opt=" <INPUT TYPE=\"text\" value=\"$p_class\" name=\"st_with\">"; -00139 echo '<TD> <INPUT TYPE="text" name="p_class" VALUE="'.$p_class.'"></TD>'; +00139 echo '<TD> <INPUT TYPE="text" name="p_class" VALUE="'.$p_class.'"></TD>'; 00140 00141 echo '<TD> Libellé </TD>'; 00142 echo '<TD> contient </TD>'; 00143 if ( ! isset ($p_comment) ) $p_comment=""; -00144 echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD></TR>'; +00144 echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD></TR>'; 00145 echo '</TABLE>'; -00146 echo '<INPUT TYPE="submit" name="search" value="cherche">'; +00146 echo '<INPUT TYPE="submit" name="search" value="cherche">'; 00147 echo '</FORM>'; 00148 00149 // if request search @@ -189,7 +189,7 @@ 00183 echo '<INPUT TYPE="BUTTON" Value="Close" onClick=\'GetIt()\'>'; 00184 html_page_stop(); 00185 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/poste__search_8php.html b/doc/developper/html/poste__search_8php.html index 1ce903e35..2b82cab30 100644 --- a/doc/developper/html/poste__search_8php.html +++ b/doc/developper/html/poste__search_8php.html @@ -239,7 +239,7 @@ Definition at line 68 Definition at line 31 of file poste_search.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/postgres_8php-source.html b/doc/developper/html/postgres_8php-source.html index 451493add..106ea01d4 100644 --- a/doc/developper/html/postgres_8php-source.html +++ b/doc/developper/html/postgres_8php-source.html @@ -80,9 +80,9 @@ 00086 } 00087 } 00088 $password=phpcompta_password; -00089 $a=pg_connect("dbname=$l_dossier host=127.0.0.1 user='phpcompta' password='$password'"); +00089 $a=pg_connect("dbname=$l_dossier host=127.0.0.1 user='phpcompta' password='$password'"); 00090 echo_debug ('postgres.php',__LINE__,"connect to $p_db dbname $l_dossier"); -00091 return $a; +00091 return $a; 00092 } 00099 function ExecSql($p_connection, $p_string) { 00100 echo_debug('postgres.php',__LINE__,"SQL = $p_string"); @@ -131,7 +131,7 @@ 00154 $Num=pg_NumRows($Res); 00155 echo_debug('postgres.php',__LINE__,"Found ".$Num." rows in GetPriv"); 00156 if ( $Num==0) { return 0;} -00157 for($i=0;$i < $Num;$i++) { +00157 for($i=0;$i < $Num;$i++) { 00158 $Right=pg_fetch_array($Res,$i); 00159 $Priv[]=$Right['priv_priv']; 00160 } @@ -268,8 +268,8 @@ 00325 'g_theme'=>'classic', 00326 'use_login'=>$p_user); 00327 -00328 $a=pg_fetch_array($Ret,0); -00329 return $a; +00328 $a=pg_fetch_array($Ret,0); +00329 return $a; 00330 } 00340 function GetModeleId($p_cn,$p_modname) { 00341 $Res=ExecSql($p_cn,"select mod_id from modeledef where mod_name='$p_modname'"); @@ -312,7 +312,7 @@ 00393 pg_lo_unlink($cn,$old_oid); 00394 } 00395 // Load new document -00396 ExecSql($cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". +00396 ExecSql($cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". 00397 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); 00398 return $oid; 00399 @@ -328,7 +328,7 @@ 00409 00410 00411 ?> -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/postgres_8php.html b/doc/developper/html/postgres_8php.html index fff171e45..6220b7572 100644 --- a/doc/developper/html/postgres_8php.html +++ b/doc/developper/html/postgres_8php.html @@ -162,7 +162,7 @@ Definition at line 263

                                    References $Res, and ExecSql().

                                    -Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordInvoice(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). +Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), ImportCSV(), fiche::insert(), RecordInvoice(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), Document::Send(), TransferCSV(), and Document::Upload().

                                    @@ -205,7 +205,7 @@ Definition at line 222

                                    References ExecSql().

                                    -Referenced by cl_user::AccessJrn(), AddFiche(), cl_user::Admin(), CheckDossier(), CheckIsAdmin(), CheckJrn(), DeleteRapt(), form_verify_input(), FormODS(), FormVenteView(), GetParent(), GetRappel(), fiche_def::HasAttribute(), fiche::insert(), InsertRapt(), ListJrn(), action::myList(), NextJrn(), Remove(), ShowDossier(), fiche::update(), UpdateFiche(), and ViewFiche(). +Referenced by cl_user::AccessJrn(), AddFiche(), cl_user::Admin(), CheckDossier(), CheckIsAdmin(), CheckJrn(), DeleteRapt(), form_verify_input(), FormODS(), FormVenteView(), GetParent(), GetRappel(), fiche_def::HasAttribute(), fiche::insert(), InsertRapt(), ListJrn(), action::myList(), NextJrn(), Remove(), ShowDossier(), fiche::update(), UpdateFiche(), and ViewFiche().

                                    @@ -254,9 +254,9 @@ connect to the database

                                    Definition at line 72 of file postgres.php.

                                    -References $a, and echo_debug(). +References $a, and echo_debug().

                                    -Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), GetFirstJrnIdForJrnType(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), ListJrn(), MenuJrn(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), SyncRight(), and ViewJrn(). +Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), GetFirstJrnIdForJrnType(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), ListJrn(), MenuJrn(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), SyncRight(), and ViewJrn().

                                    @@ -340,9 +340,9 @@ send a sql string to the database

                                    Definition at line 99 of file postgres.php.

                                    -References $ret, echo_debug(), echo_error(), and exit. +References $ret, echo_debug(), echo_error(), and exit.

                                    -Referenced by AddFiche(), AddForm(), AddModele(), AlterSequence(), fiche::blank(), Centralise(), cl_user::CheckAction(), CheckAction(), CheckJrn(), Commit(), action::Confirm(), fiche::CountByDef(), CountSql(), Document_modele::Delete(), DeleteForm(), DeleteRapt(), fiche::Display(), action::Display(), DisplayDetailModele(), EncodeFiche(), EndSql(), ExecuteScript(), ExisteJnt(), ExistePriv(), FormPeriode(), FormPeriodeMult(), Document::Generate(), parm_code::Get(), fiche_def_ref::Get(), fiche_def::Get(), Document_type::get(), Document_modele::Get(), Document::Get(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), GetAllUser(), GetAmount(), GetArray(), fiche::getAttribut(), fiche_def::GetAttribut(), GetAvailableFolder(), GetBaseFiche(), GetBaseFicheDefault(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetClass(), GetConcerned(), GetCreateAccount(), GetData(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetDbId(), jrn::GetDefLine(), GetDossierName(), GetExercice(), getFicheAttribut(), GetFicheDef(), getFicheDefName(), GetFicheDefRef(), GetFicheJrn(), getFicheName(), getFicheNameById(), getFicheNameCode(), GetFirstJrnIdForJrnType(), GetFormName(), GetFormulaValue(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), GetGrpt(), GetInternal(), GetJnt(), GetJrnName(), GetJrnProp(), GetJrnProperty(), GetLogin(), GetModeleId(), jrn::GetName(), fiche::getName(), GetNextFiche(), GetNumberLine(), GetPeriode(), getPeriodeFromDate(), getPeriodeFromMonth(), GetPosteLibelle(), cl_user::GetPreferences(), GetPriv(), GetQuantity(), GetRappel(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), GetSequence(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaPoste(), GetTvaRate(), GetUid(), GetUserProperty(), GetVersion(), html_page_start(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertModeleLine(), InsertRapt(), InsertStockGoods(), isCentralize(), IsFicheOfJrn(), isValid(), ListJrn(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), MenuJrn(), Document::MoveDocumentPj(), Document_modele::myList(), action::myList(), new_fiche(), NextSequence(), Own::Own(), PeriodeClosed(), PosteForm(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Remove(), fiche::remove(), Document::remove(), Rollback(), parm_code::Save(), fiche_def_ref::Save(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), SaveModeleName(), action::SaveStage2(), SetInternalCode(), cl_user::SetPeriode(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrn(), ShowMenuJrnUser(), ShowPeriode(), StartSql(), fiche::strAttribut(), SyncRight(), TransferCSV(), fiche::update(), cl_user::update_global_pref(), UpdateComment(), UpdateCSV(), UpdateFiche(), UpdateForm(), Document::Upload(), Customer::VatListing(), VerifImport(), ViewDetailStock(), ViewFiche(), ViewFicheDetail(), ViewJrn(), and ViewStock(). +Referenced by AddFiche(), AddForm(), AddModele(), AlterSequence(), fiche::blank(), Centralise(), cl_user::CheckAction(), CheckAction(), CheckJrn(), Commit(), action::Confirm(), fiche::CountByDef(), CountSql(), Document_modele::Delete(), DeleteForm(), DeleteRapt(), fiche::Display(), action::Display(), DisplayDetailModele(), EncodeFiche(), EndSql(), ExecuteScript(), ExisteJnt(), ExistePriv(), FormPeriode(), FormPeriodeMult(), Document::Generate(), poste::get(), parm_code::Get(), fiche_def_ref::Get(), fiche_def::Get(), Document_type::get(), Document_modele::Get(), action::get(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), GetAllUser(), GetAmount(), GetArray(), fiche::getAttribut(), fiche_def::GetAttribut(), GetAvailableFolder(), GetBaseFiche(), GetBaseFicheDefault(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetClass(), GetConcerned(), GetCreateAccount(), GetData(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetDbId(), jrn::GetDefLine(), GetDossierName(), GetExercice(), cl_user::getExercice(), getFicheAttribut(), GetFicheDef(), getFicheDefName(), GetFicheDefRef(), GetFicheJrn(), getFicheName(), getFicheNameById(), getFicheNameCode(), GetFirstJrnIdForJrnType(), GetFormName(), GetFormulaValue(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), GetGrpt(), GetInternal(), GetJnt(), GetJrnName(), GetJrnProp(), GetJrnProperty(), GetLogin(), GetModeleId(), jrn::GetName(), fiche::getName(), GetNextFiche(), GetNumberLine(), GetPeriode(), getPeriodeFromDate(), getPeriodeFromMonth(), GetPosteLibelle(), cl_user::GetPreferences(), GetPriv(), GetQuantity(), GetRappel(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), GetSequence(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaPoste(), GetTvaRate(), GetUid(), GetUserProperty(), GetVersion(), html_page_start(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertModeleLine(), InsertRapt(), InsertStockGoods(), isCentralize(), IsFicheOfJrn(), isValid(), ListJrn(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), MenuJrn(), Document::MoveDocumentPj(), Document_modele::myList(), action::myList(), new_fiche(), NextSequence(), Own::Own(), PeriodeClosed(), PosteForm(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Remove(), fiche::remove(), Document::remove(), Rollback(), parm_code::Save(), fiche_def_ref::Save(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), SaveModeleName(), action::SaveStage2(), Document::Send(), SetInternalCode(), cl_user::SetPeriode(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrn(), ShowMenuJrnUser(), ShowPeriode(), StartSql(), fiche::strAttribut(), SyncRight(), TransferCSV(), fiche::update(), cl_user::update_global_pref(), UpdateComment(), UpdateCSV(), UpdateFiche(), UpdateForm(), Document::Upload(), Customer::VatListing(), VerifImport(), ViewDetailStock(), ViewFiche(), ViewFicheDetail(), ViewJrn(), and ViewStock().

                                    @@ -737,7 +737,7 @@ Get the privilege of an user on a folder.

                                    Definition at line 147 of file postgres.php.

                                    -References $cn, $i, $Num, $Res, DbConnect(), echo_debug(), and ExecSql(). +References $cn, $i, $Num, $Res, DbConnect(), echo_debug(), and ExecSql().

                                    Referenced by SyncRight(). @@ -784,7 +784,7 @@ Definition at line 242

                                    References $Res, $seq, and ExecSql().

                                    -Referenced by AddFiche(), AddForm(), AddModele(), InsertJrn(), InsertJrnx(), Document::SaveGenerated(), and action::SaveStage2(). +Referenced by AddFiche(), AddForm(), AddModele(), InsertJrn(), InsertJrnx(), and Document::SaveGenerated().

                                    @@ -870,7 +870,7 @@ Get the properties of an user it means theme, profile, admin...

                                    Definition at line 315 of file postgres.php.

                                    -References $a, $Ret, $sql, and ExecSql(). +References $a, $Ret, $sql, and ExecSql().

                                    @@ -915,7 +915,7 @@ Definition at line 251

                                    References $Res, $seq, and ExecSql().

                                    -Referenced by Document::Generate(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), SetInternalCode(), and TransferCSV(). +Referenced by Document::Generate(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), action::SaveStage2(), SetInternalCode(), and TransferCSV().

                                    @@ -949,7 +949,7 @@ Definition at line 266

                                    References $Res, and ExecSql().

                                    -Referenced by ExecuteScript(), RecordFin(), RecordInvoice(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). +Referenced by ExecuteScript(), RecordFin(), RecordInvoice(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), TransferCSV(), and Document::Upload().

                                    @@ -1000,7 +1000,7 @@ save_upload_document

                                    Definition at line 371 of file postgres.php.

                                    -References $old_oid, $r, $ret, echo_debug(), echo_error(), ExecSql(), name, and Rollback(). +References $old_oid, $r, $ret, echo_debug(), echo_error(), ExecSql(), name, and Rollback().

                                    Referenced by RecordInvoice(), and RecordSell(). @@ -1060,7 +1060,7 @@ Show the folder where user have access. Return : nothing ++

                                    Definition at line 32 of file postgres.php.

                                    -References $_SESSION, $cn, $Max, $row, CountSql(), DbConnect(), echo_debug(), and ExecSql(). +References $_SESSION, $cn, $Max, $row, CountSql(), DbConnect(), echo_debug(), and ExecSql().

                                    @@ -1094,7 +1094,7 @@ Definition at line 257

                                    References $Res, and ExecSql().

                                    -Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). +Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), ImportCSV(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), Document::Send(), TransferCSV(), and Document::Upload().

                                    @@ -1146,7 +1146,7 @@ Definition at line 289 References $cn, $priv, $Res, $right, $sql, DbConnect(), ExecSql(), and GetPriv(). -


                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/pref_8inc_8php-source.html b/doc/developper/html/pref_8inc_8php-source.html index 537bf80cb..03dd5b449 100644 --- a/doc/developper/html/pref_8inc_8php-source.html +++ b/doc/developper/html/pref_8inc_8php-source.html @@ -27,129 +27,135 @@ 00018 */ 00019 /* $Revision$ */ 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr -00021 -00022 echo '<DIV class="u_content">'; -00023 -00024 if ( isset ($_POST['spass']) ) { -00025 if ( $_POST['pass_1'] != $_POST['pass_2'] ) { -00026 ?> -00027 <script> -00028 alert("Les mots de passe ne correspondent pas. Mot de passe inchangé"); -00029 </script> -00030 <? -00031 } -00032 else { -00033 $l_pass=md5($_POST['pass_1']); -00034 $Res=ExecSql($Rep,"update ac_users set use_pass='$l_pass' where use_login='".$_SESSION['g_user']."'"); -00035 $pass=$_POST['pass_1']; -00036 $_SESSION['g_pass']=$_POST['pass_1']; -00037 $g_pass=$_POST['pass_1']; -00038 } -00039 } -00040 $url=$_SERVER['REQUEST_URI']; -00041 -00042 ?> -00043 <H2 CLASS="info"> Password</H2> +00025 echo '<DIV class="u_content">'; +00026 +00027 if ( isset ($_POST['spass']) ) { +00028 if ( $_POST['pass_1'] != $_POST['pass_2'] ) { +00029 ?> +00030 <script> +00031 alert("Les mots de passe ne correspondent pas. Mot de passe inchangé"); +00032 </script> +00033 <? +00034 } +00035 else { +00036 $l_pass=md5($_POST['pass_1']); +00037 $Res=ExecSql($Rep,"update ac_users set use_pass='$l_pass' where use_login='".$_SESSION['g_user']."'"); +00038 $pass=$_POST['pass_1']; +00039 $_SESSION['g_pass']=$_POST['pass_1']; +00040 $g_pass=$_POST['pass_1']; +00041 } +00042 } +00043 $url=$_SERVER['REQUEST_URI']; 00044 -00045 <FORM ACTION="<?echo $url;?>" METHOD="POST"> -00046 <TABLE ALIGN="CENTER"> -00047 <TR><TD><input type="password" name="pass_1"></TD></TR> -00048 <TR><TD><input type="password" name="pass_2"></TD></TR> -00049 <TR><TD><input type="submit" name="spass" value="Change mot de passe"></TD></TR> -00050 </TABLE> -00051 </FORM> -00052 <? -00053 $Rep=DbConnect(); -00054 -00055 // charge tous les styles -00056 $res=ExecSql($Rep,"select the_name from theme -00057 order by the_name"); -00058 for ($i=0;$i < pg_NumRows($res);$i++){ -00059 $st=pg_fetch_array($res,$i); -00060 $style[]=$st['the_name']; -00061 } -00062 // Formatte le display -00063 $disp_style="<SELECT NAME=\"style_user\" >"; -00064 foreach ($style as $st){ -00065 if ( $st == $_SESSION['g_theme'] ) { -00066 $disp_style.='<OPTION VALUE="'.$st.'" SELECTED>'.$st; -00067 } else { -00068 $disp_style.='<OPTION VALUE="'.$st.'">'.$st; -00069 } -00070 } -00071 $disp_style.="</SELECT>"; -00072 ?> -00073 <H2 class="info">Thème</H2> -00074 <FORM ACTION="<? echo $url; ?>" METHOD="post"> -00075 <TABLE ALIGN="center"> -00076 <TR> -00077 <TD> Style </TD> -00078 <TD> <? print $disp_style;?> </TD> -00079 </TR> -00080 <TR> -00081 <td colspan=2> <INPUT TYPE="submit" Value="Sauve"></TD> +00045 ?> +00046 <H2 CLASS="info"> Password</H2> +00047 +00048 <FORM ACTION="<?echo $url;?>" METHOD="POST"> +00049 <TABLE ALIGN="CENTER"> +00050 <TR><TD><input type="password" name="pass_1"></TD></TR> +00051 <TR><TD><input type="password" name="pass_2"></TD></TR> +00052 <TR><TD><input type="submit" name="spass" value="Change mot de passe"></TD></TR> +00053 </TABLE> +00054 </FORM> +00055 <? +00056 $Rep=DbConnect(); +00057 +00058 // charge tous les styles +00059 $res=ExecSql($Rep,"select the_name from theme +00060 order by the_name"); +00061 for ($i=0;$i < pg_NumRows($res);$i++){ +00062 $st=pg_fetch_array($res,$i); +00063 $style[]=$st['the_name']; +00064 } +00065 // Formatte le display +00066 $disp_style="<SELECT NAME=\"style_user\" >"; +00067 foreach ($style as $st){ +00068 if ( $st == $_SESSION['g_theme'] ) { +00069 $disp_style.='<OPTION VALUE="'.$st.'" SELECTED>'.$st; +00070 } else { +00071 $disp_style.='<OPTION VALUE="'.$st.'">'.$st; +00072 } +00073 } +00074 $disp_style.="</SELECT>"; +00075 ?> +00076 <H2 class="info">Thème</H2> +00077 <FORM ACTION="<? echo $url; ?>" METHOD="post"> +00078 <TABLE ALIGN="center"> +00079 <TR> +00080 <TD> Style </TD> +00081 <TD> <? print $disp_style;?> </TD> 00082 </TR> -00083 </TABLE> -00084 </FORM> -00085 -00086 <? -00087 -00088 // Si utilise un dossier alors propose de changer -00089 // la periode par defaut -00090 if ( isset ($_SESSION['g_dossier']) ) { -00091 -00092 include_once("preference.php"); -00093 +00083 <TR> +00084 <td colspan=2> <INPUT TYPE="submit" Value="Sauve"></TD> +00085 </TR> +00086 </TABLE> +00087 </FORM> +00088 +00089 <? +00090 +00091 // Si utilise un dossier alors propose de changer +00092 // la periode par defaut +00093 if ( isset ($_SESSION['g_dossier']) ) { 00094 -00095 if ( isset ($_POST["sub_periode"] ) ) { -00096 $periode=$_POST["periode"]; -00097 $User->SetPeriode($periode); -00098 // SetUserPeriode($cn,$periode,$_SESSION['g_user']); -00099 } -00100 -00101 $l_user_per=$User->GetPeriode(); -00102 $l_form_per=FormPeriode($cn,$l_user_per); -00103 -00104 ?> -00105 <H2 CLASS="info"> Période</H2> -00106 <FORM ACTION="<? echo $url;?>" METHOD="POST"> -00107 <TABLE ALIGN="CENTER"> -00108 <TR><TD>PERIODE</TD> -00109 <? printf('<TD> %s </TD></TR>',$l_form_per); ?> -00110 <TR><TD><input type="submit" name="sub_periode" value="Sauve"></TD></TR> -00111 </TABLE> -00112 </FORM> -00113 -00114 <H2 CLASS="info"> Taille des pages</H2> -00115 <FORM ACTION="<? echo $url;?>" METHOD="POST"> -00116 <TABLE ALIGN="CENTER"> -00117 <TR><TD>Taille des pages</TD> -00118 <TD> -00119 <SELECT NAME="p_size"> -00120 <option value="15">15 -00121 <option value="25">25 -00122 <option value="50">50 -00123 <option value="100">100 -00124 <option value="150">150 -00125 <option value="200">200 -00126 <option value="-1">Illimité -00127 <? -00128 $label=($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize']; -00129 echo '<option value="'.$_SESSION['g_pagesize'].'" selected>'.$label; -00130 ?> -00131 </SELECT> -00132 </TD></TR> -00133 <TR><TD><input type="submit" name="sub_taille" value="Sauve"></TD></TR> -00134 </TABLE> -00135 </FORM> -00136 -00137 -00138 <? -00139 } -00140 -00141 echo "</DIV>"; -00142 ?> -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00095 include_once("preference.php"); +00096 $msg=""; +00097 +00098 if ( isset ($_POST["sub_periode"] ) ) { +00099 $periode=$_POST["periode"]; +00100 $User->SetPeriode($periode); +00101 echo_debug('pref.inc',__LINE__,"Periode returns ".PeriodeClosed($cn,$periode)); +00102 // if periode is closed then warns the users +00103 if ( PeriodeClosed($cn,$periode)=='t') +00104 { +00105 $msg= '<h2 class="error">Attention cette période est fermée, vous ne pourrez rien modifier dans le module comptable</h2>'; +00106 } +00107 +00108 } +00109 +00110 $l_user_per=$User->GetPeriode(); +00111 $l_form_per=FormPeriode($cn,$l_user_per,ALL); +00112 +00113 ?> +00114 <H2 CLASS="info"> Période</H2> +00115 <? echo $msg; ?> +00116 <FORM ACTION="<? echo $url;?>" METHOD="POST"> +00117 <TABLE ALIGN="CENTER"> +00118 <TR><TD>PERIODE</TD> +00119 <? printf('<TD> %s </TD></TR>',$l_form_per); ?> +00120 <TR><TD><input type="submit" name="sub_periode" value="Sauve"></TD></TR> +00121 </TABLE> +00122 </FORM> +00123 +00124 <H2 CLASS="info"> Taille des pages</H2> +00125 <FORM ACTION="<? echo $url;?>" METHOD="POST"> +00126 <TABLE ALIGN="CENTER"> +00127 <TR><TD>Taille des pages</TD> +00128 <TD> +00129 <SELECT NAME="p_size"> +00130 <option value="15">15 +00131 <option value="25">25 +00132 <option value="50">50 +00133 <option value="100">100 +00134 <option value="150">150 +00135 <option value="200">200 +00136 <option value="-1">Illimité +00137 <? +00138 $label=($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize']; +00139 echo '<option value="'.$_SESSION['g_pagesize'].'" selected>'.$label; +00140 ?> +00141 </SELECT> +00142 </TD></TR> +00143 <TR><TD><input type="submit" name="sub_taille" value="Sauve"></TD></TR> +00144 </TABLE> +00145 </FORM> +00146 +00147 +00148 <? +00149 } +00150 +00151 echo "</DIV>"; +00152 ?> +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/pref_8inc_8php.html b/doc/developper/html/pref_8inc_8php.html index 6c7a092ac..1dffcd4f1 100644 --- a/doc/developper/html/pref_8inc_8php.html +++ b/doc/developper/html/pref_8inc_8php.html @@ -20,9 +20,9 @@  $disp_style = "<SELECT NAME=\"style_user\" >" - $l_user_per = $User->GetPeriode() + $msg = "" - $l_form_per = FormPeriode($cn,$l_user_per) + $l_form_per = FormPeriode($cn,$l_user_per,ALL)  $label = ($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize'] @@ -50,7 +50,7 @@

                                    -Definition at line 63 of file pref.inc.php. +Definition at line 66 of file pref.inc.php.

                                    @@ -59,7 +59,7 @@ Definition at line 63 - +
                                    $l_form_per = FormPeriode($cn,$l_user_per) $l_form_per = FormPeriode($cn,$l_user_per,ALL)
                                    @@ -75,32 +75,7 @@ Definition at line 63

                                    -Definition at line 102 of file pref.inc.php. - - -

                                    - - - - -
                                    - - - - -
                                    $l_user_per = $User->GetPeriode()
                                    -
                                    - - - - +Definition at line 111 of file pref.inc.php.
                                    -   - - -

                                    - -

                                    -Definition at line 101 of file pref.inc.php.

                                    @@ -109,7 +84,7 @@ Definition at line 101 - +
                                    $label = ($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize'] $label = ($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize']
                                    @@ -125,9 +100,36 @@ Definition at line 101

                                    -Definition at line 128 of file pref.inc.php. +Definition at line 138 of file pref.inc.php.

                                    -Referenced by fiche::blank(), fiche::Display(), EncodeFiche(), Cpdf::o_annotation(), Cpdf::o_fontEncoding(), and UpdateFiche(). +Referenced by fiche::blank(), fiche::Display(), EncodeFiche(), Cpdf::o_annotation(), Cpdf::o_fontEncoding(), and UpdateFiche(). + + +

                                    + + + + +
                                    + + + + +
                                    $msg = ""
                                    +
                                    + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 96 of file pref.inc.php. +

                                    +Referenced by fiche::blank(), fiche::Display(), form_verify_input(), FormAchInput(), FormODS(), FormVenInput(), and VerifyOperationDate().

                                    @@ -154,9 +156,9 @@ Referenced by fiche::b order by the_name")

                                    -Definition at line 56 of file pref.inc.php. +Definition at line 59 of file pref.inc.php.

                                    -Referenced by cl_user::Admin(), cl_user::Check(), Document_modele::Delete(), Cpdf::o_action(), Cpdf::o_annotation(), Cpdf::o_catalog(), Cpdf::o_contents(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_font(), Cpdf::o_fontDescriptor(), Cpdf::o_fontEncoding(), Cpdf::o_image(), Cpdf::o_info(), Cpdf::o_outlines(), Cpdf::o_page(), Cpdf::o_pages(), Cpdf::o_procset(), and Cpdf::o_viewerPreferences(). +Referenced by cl_user::Admin(), cl_user::Check(), Document_modele::Delete(), Cpdf::o_action(), Cpdf::o_annotation(), Cpdf::o_catalog(), Cpdf::o_contents(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_font(), Cpdf::o_fontDescriptor(), Cpdf::o_fontEncoding(), Cpdf::o_image(), Cpdf::o_info(), Cpdf::o_outlines(), Cpdf::o_page(), Cpdf::o_pages(), Cpdf::o_procset(), and Cpdf::o_viewerPreferences().

                                    @@ -181,9 +183,9 @@ Referenced by cl_user::

                                    -Definition at line 60 of file pref.inc.php. +Definition at line 63 of file pref.inc.php.

                                    -Referenced by html_page_start(). +Referenced by html_page_start().

                                    @@ -208,21 +210,21 @@ Referenced by html_page_

                                    Initial value:

                                    "POST">
                                     <TABLE ALIGN="CENTER">
                                    -<TR><TD><input type="password" name="pass_1"></TD></TR>
                                    -<TR><TD><input type="password" name="pass_2"></TD></TR>
                                    -<TR><TD><input type="submit" name="spass" value="Change mot de passe"></TD></TR>
                                    +<TR><TD><input type="password" name="pass_1"></TD></TR>
                                    +<TR><TD><input type="password" name="pass_2"></TD></TR>
                                    +<TR><TD><input type="submit" name="spass" value="Change mot de passe"></TD></TR>
                                     </TABLE>
                                     </FORM>
                                     <?
                                     $Rep=DbConnect()
                                     

                                    -Definition at line 45 of file pref.inc.php. +Definition at line 48 of file pref.inc.php.

                                    -Referenced by DefModele(), EncodeModele(), FormAchView(), FormVenteView(), RecordJrn(), ShowDevise(), ShowFormTransfert(), ShowPeriode(), u_ShowMenuRecherche(), VerifImport(), ViewFiche(), and ViewImp(). +Referenced by DefModele(), EncodeModele(), FormAchView(), FormVenteView(), RecordJrn(), ShowDevise(), ShowFormTransfert(), ShowPeriode(), u_ShowMenuRecherche(), VerifImport(), ViewFiche(), and ViewImp(). -


                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/preference_8php-source.html b/doc/developper/html/preference_8php-source.html index ad069d4e5..23d372c3b 100644 --- a/doc/developper/html/preference_8php-source.html +++ b/doc/developper/html/preference_8php-source.html @@ -53,162 +53,165 @@ 00072 { 00073 switch ($p_type) { 00074 case CLOSED: -00075 $sql_closed="p_closed=true and p_central = false "; +00075 $sql_closed="where p_closed=true and p_central = false "; 00076 break; 00077 case OPEN: -00078 $sql_closed="p_closed=false"; +00078 $sql_closed="where p_closed=false"; 00079 break; 00080 case NOTCENTRALIZED: -00081 $sql_closed="p_closed=true and p_central = false "; +00081 $sql_closed="where p_closed=true and p_central = false "; 00082 break; -00083 default: -00084 error("invalide p_type in 'preference.php'#__LINE__"); -00085 } -00086 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start_string, -00087 to_char(p_end,'DD.MM.YYYY') as p_end_string -00088 from parm_periode where -00089 $sql_closed -00090 order by p_start"; -00091 -00092 $Res=ExecSql($p_cn,$sql); -00093 $Max=pg_NumRows($Res); -00094 if ( $Max == 0 ) return null; -00095 $ret='<SELECT NAME="periode'.$p_suff.'">'; -00096 for ( $i = 0; $i < $Max;$i++) { -00097 $l_line=pg_fetch_array($Res,$i); -00098 if ( $l_default == $l_line['p_id'] ) -00099 $sel="SELECTED"; -00100 else -00101 $sel=""; -00102 -00103 $ret.=sprintf('<OPTION VALUE="%s" %s>%s - %s',$l_line['p_id'] -00104 ,$sel -00105 ,$l_line['p_start_string'] -00106 ,$l_line['p_end_string']); -00107 -00108 } -00109 $ret.="</SELECT>"; -00110 return $ret; -00111 } -00122 function GetPeriode($p_cn,$p_periode) -00123 { -00124 $sql="select to_char(p_start,'DD.MM.YYYY') as p_start, -00125 to_char(p_end,'DD.MM.YYYY') as p_end -00126 from parm_periode -00127 where p_id=".$p_periode; -00128 $Res=ExecSql($p_cn,$sql); -00129 if ( pg_NumRows($Res) == 0) return null; -00130 return pg_fetch_array($Res,0); -00131 -00132 } -00143 function PeriodeClosed($p_cn,$p_periode) -00144 { -00145 $sql="select p_closed -00146 from parm_periode -00147 where p_id=".$p_periode; -00148 $Res=ExecSql($p_cn,$sql); -00149 if ( pg_NumRows($Res) == 0) return null; -00150 $l_line=pg_fetch_array($Res,0); -00151 return $l_line['p_closed']; -00152 -00153 } -00165 function GetExercice($p_cn,$p_periode) -00166 { -00167 $Res=ExecSql($p_cn,"select p_exercice from parm_periode". -00168 " where p_id=$p_periode"); -00169 if ( pg_NumRows($Res) == 0 ) return ""; -00170 $line=pg_fetch_array($Res,0); -00171 return $line['p_exercice']; -00172 } -00182 function ShowDevise($p_cn) -00183 { -00184 echo "<h2 class=\"info\"> Devises </H2>"; -00185 echo '<TABLE ALIGN="CENTER">'; -00186 echo "<TR>"; -00187 echo '<TH> CODE </TH>'; -00188 echo '<TH> Valeur <BR>(par rapport à l\'euro) </TH>'; -00189 echo "</TR>"; -00190 -00191 $Res=ExecSql($p_cn,"select pm_id,pm_code,pm_rate from parm_money order by pm_code"); -00192 $Max=pg_NumRows($Res); -00193 -00194 for ($i=0;$i<$Max;$i++) { -00195 $l_line=pg_fetch_array($Res,$i); -00196 echo '<TR>'; -00197 echo '<TD>'.$l_line['pm_code'].'</TD>'; -00198 $l_rate=sprintf("% 10.6f",$l_line['pm_rate']); -00199 echo '<TD ALIGN="RIGHT">'.$l_rate.'</TD>'; -00200 echo "<TD class=\"mtitle\"> <A class=\"mtitle\" HREF=\"parametre.php?p_mid=$l_line[pm_id]&p_action=change&p_code=$l_line[pm_code]&p_rate=$l_line[pm_rate]\">Change</A></TD>"; -00201 echo "<TD class=\"mtitle\"> <A class=\"mtitle\" HREF=\"parametre.php?p_mid=$l_line[pm_id]&p_action=delete&p_code=$l_line[pm_code]\">Efface</A></TD>"; -00202 echo '</TR>'; -00203 -00204 } -00205 echo '<TR> <FORM ACTION="parametre.php" METHOD="POST">'; -00206 echo '<TD> <INPUT TYPE="text" NAME="p_devise"></TD>'; -00207 echo '<TD> <INPUT TYPE="text" NAME="p_rate"></TD>'; -00208 echo '<TD> <INPUT TYPE="SUBMIT" NAME="action" Value="Ajout"</TD>'; -00209 echo '</FORM></TR>'; -00210 echo '</TABLE>'; -00211 } -00221 function ShowPeriode($p_cn) -00222 { -00223 // echo "<h2 class=\"info\"> Période </H2>"; -00224 $Res=ExecSql($p_cn,"select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,p_central,p_closed,p_exercice -00225 from parm_periode order by p_start"); -00226 $Max=pg_NumRows($Res); -00227 echo '<TABLE ALIGN="CENTER">'; -00228 echo "</TR>"; -00229 echo '<TH> Date début </TH>'; -00230 echo '<TH> Date fin </TH>'; -00231 echo '<TH> Exercice </TH>'; -00232 echo "</TR>"; -00233 -00234 for ($i=0;$i<$Max;$i++) { -00235 $l_line=pg_fetch_array($Res,$i); -00236 echo '<TR>'; -00237 echo '<TD ALIGN="CENTER"> '.$l_line['date_start'].'</TD>'; -00238 echo '<TD ALIGN="CENTER"> '.$l_line['date_end'].'</TD>'; -00239 echo '<TD ALIGN="CENTER"> '.$l_line['p_exercice'].'</TD>'; -00240 echo_debug('preference.php',__LINE__," closed : $l_line[p_closed]"); -00241 if ( $l_line['p_closed'] == 't' ) { -00242 $closed=($l_line['p_central']=='t')?'<TD>Centralisée</TD>':'<TD>Fermée</TD>'; -00243 $change='<TD></TD>'; -00244 $remove='<TD></TD>'; -00245 } else { -00246 $closed='<TD class="mtitle">'; -00247 $closed.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=closed&p_per='.$l_line['p_id'].'"> Cloturer</A>'; -00248 $change='<TD class="mtitle">'; -00249 $change.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=change_per&p_per='. -00250 $l_line['p_id']."&p_date_start=".$l_line['date_start']. -00251 "&p_date_end=".$l_line['date_end']."&p_exercice=". -00252 $l_line['p_exercice']."\"> Changer</A>"; -00253 $remove='<TD class="mtitle">'; -00254 $remove.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=delete_per&p_per='. -00255 $l_line['p_id']."\"> Efface</A>"; -00256 -00257 } -00258 echo "$closed"; -00259 echo $change; -00260 -00261 echo $remove; -00262 -00263 echo '</TR>'; -00264 -00265 } -00266 echo '<TR> <FORM ACTION="user_advanced.php?p_action=periode" METHOD="POST">'; -00267 echo '<TD> <INPUT TYPE="text" NAME="p_date_start" SIZE="10"></TD>'; -00268 echo '<TD> <INPUT TYPE="text" NAME="p_date_end" SIZE="10"></TD>'; -00269 echo '<TD> <INPUT TYPE="text" NAME="p_exercice" SIZE="10"></TD>'; -00270 echo '<TD> <INPUT TYPE="SUBMIT" NAME="add_per" Value="Ajout"</TD>'; -00271 echo '<TD></TD>'; -00272 echo '<TD></TD>'; -00273 echo '</FORM></TR>'; -00274 -00275 echo '</TABLE>'; -00276 } +00083 case ALL: +00084 $sql_closed=""; +00085 break; +00086 default: +00087 error("invalide p_type in 'preference.php'#__LINE__"); +00088 } +00089 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start_string, +00090 to_char(p_end,'DD.MM.YYYY') as p_end_string +00091 from parm_periode +00092 $sql_closed +00093 order by p_start"; +00094 +00095 $Res=ExecSql($p_cn,$sql); +00096 $Max=pg_NumRows($Res); +00097 if ( $Max == 0 ) return null; +00098 $ret='<SELECT NAME="periode'.$p_suff.'">'; +00099 for ( $i = 0; $i < $Max;$i++) { +00100 $l_line=pg_fetch_array($Res,$i); +00101 if ( $l_default == $l_line['p_id'] ) +00102 $sel="SELECTED"; +00103 else +00104 $sel=""; +00105 +00106 $ret.=sprintf('<OPTION VALUE="%s" %s>%s - %s',$l_line['p_id'] +00107 ,$sel +00108 ,$l_line['p_start_string'] +00109 ,$l_line['p_end_string']); +00110 +00111 } +00112 $ret.="</SELECT>"; +00113 return $ret; +00114 } +00125 function GetPeriode($p_cn,$p_periode) +00126 { +00127 $sql="select to_char(p_start,'DD.MM.YYYY') as p_start, +00128 to_char(p_end,'DD.MM.YYYY') as p_end +00129 from parm_periode +00130 where p_id=".$p_periode; +00131 $Res=ExecSql($p_cn,$sql); +00132 if ( pg_NumRows($Res) == 0) return null; +00133 return pg_fetch_array($Res,0); +00134 +00135 } +00146 function PeriodeClosed($p_cn,$p_periode) +00147 { +00148 $sql="select p_closed +00149 from parm_periode +00150 where p_id=".$p_periode; +00151 $Res=ExecSql($p_cn,$sql); +00152 if ( pg_NumRows($Res) == 0) return null; +00153 $l_line=pg_fetch_array($Res,0); +00154 return $l_line['p_closed']; +00155 +00156 } +00168 function GetExercice($p_cn,$p_periode) +00169 { +00170 $Res=ExecSql($p_cn,"select p_exercice from parm_periode". +00171 " where p_id=$p_periode"); +00172 if ( pg_NumRows($Res) == 0 ) return ""; +00173 $line=pg_fetch_array($Res,0); +00174 return $line['p_exercice']; +00175 } +00185 function ShowDevise($p_cn) +00186 { +00187 echo "<h2 class=\"info\"> Devises </H2>"; +00188 echo '<TABLE ALIGN="CENTER">'; +00189 echo "<TR>"; +00190 echo '<TH> CODE </TH>'; +00191 echo '<TH> Valeur <BR>(par rapport à l\'euro) </TH>'; +00192 echo "</TR>"; +00193 +00194 $Res=ExecSql($p_cn,"select pm_id,pm_code,pm_rate from parm_money order by pm_code"); +00195 $Max=pg_NumRows($Res); +00196 +00197 for ($i=0;$i<$Max;$i++) { +00198 $l_line=pg_fetch_array($Res,$i); +00199 echo '<TR>'; +00200 echo '<TD>'.$l_line['pm_code'].'</TD>'; +00201 $l_rate=sprintf("% 10.6f",$l_line['pm_rate']); +00202 echo '<TD ALIGN="RIGHT">'.$l_rate.'</TD>'; +00203 echo "<TD class=\"mtitle\"> <A class=\"mtitle\" HREF=\"parametre.php?p_mid=$l_line[pm_id]&p_action=change&p_code=$l_line[pm_code]&p_rate=$l_line[pm_rate]\">Change</A></TD>"; +00204 echo "<TD class=\"mtitle\"> <A class=\"mtitle\" HREF=\"parametre.php?p_mid=$l_line[pm_id]&p_action=delete&p_code=$l_line[pm_code]\">Efface</A></TD>"; +00205 echo '</TR>'; +00206 +00207 } +00208 echo '<TR> <FORM ACTION="parametre.php" METHOD="POST">'; +00209 echo '<TD> <INPUT TYPE="text" NAME="p_devise"></TD>'; +00210 echo '<TD> <INPUT TYPE="text" NAME="p_rate"></TD>'; +00211 echo '<TD> <INPUT TYPE="SUBMIT" NAME="action" Value="Ajout"</TD>'; +00212 echo '</FORM></TR>'; +00213 echo '</TABLE>'; +00214 } +00224 function ShowPeriode($p_cn) +00225 { +00226 // echo "<h2 class=\"info\"> Période </H2>"; +00227 $Res=ExecSql($p_cn,"select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,p_central,p_closed,p_exercice +00228 from parm_periode order by p_start"); +00229 $Max=pg_NumRows($Res); +00230 echo '<TABLE ALIGN="CENTER">'; +00231 echo "</TR>"; +00232 echo '<TH> Date début </TH>'; +00233 echo '<TH> Date fin </TH>'; +00234 echo '<TH> Exercice </TH>'; +00235 echo "</TR>"; +00236 +00237 for ($i=0;$i<$Max;$i++) { +00238 $l_line=pg_fetch_array($Res,$i); +00239 echo '<TR>'; +00240 echo '<TD ALIGN="CENTER"> '.$l_line['date_start'].'</TD>'; +00241 echo '<TD ALIGN="CENTER"> '.$l_line['date_end'].'</TD>'; +00242 echo '<TD ALIGN="CENTER"> '.$l_line['p_exercice'].'</TD>'; +00243 echo_debug('preference.php',__LINE__," closed : $l_line[p_closed]"); +00244 if ( $l_line['p_closed'] == 't' ) { +00245 $closed=($l_line['p_central']=='t')?'<TD>Centralisée</TD>':'<TD>Fermée</TD>'; +00246 $change='<TD></TD>'; +00247 $remove='<TD></TD>'; +00248 } else { +00249 $closed='<TD class="mtitle">'; +00250 $closed.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=closed&p_per='.$l_line['p_id'].'"> Cloturer</A>'; +00251 $change='<TD class="mtitle">'; +00252 $change.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=change_per&p_per='. +00253 $l_line['p_id']."&p_date_start=".$l_line['date_start']. +00254 "&p_date_end=".$l_line['date_end']."&p_exercice=". +00255 $l_line['p_exercice']."\"> Changer</A>"; +00256 $remove='<TD class="mtitle">'; +00257 $remove.='<A class="mtitle" HREF="user_advanced.php?p_action=periode&action=delete_per&p_per='. +00258 $l_line['p_id']."\"> Efface</A>"; +00259 +00260 } +00261 echo "$closed"; +00262 echo $change; +00263 +00264 echo $remove; +00265 +00266 echo '</TR>'; +00267 +00268 } +00269 echo '<TR> <FORM ACTION="user_advanced.php?p_action=periode" METHOD="POST">'; +00270 echo '<TD> <INPUT TYPE="text" NAME="p_date_start" SIZE="10"></TD>'; +00271 echo '<TD> <INPUT TYPE="text" NAME="p_date_end" SIZE="10"></TD>'; +00272 echo '<TD> <INPUT TYPE="text" NAME="p_exercice" SIZE="10"></TD>'; +00273 echo '<TD> <INPUT TYPE="SUBMIT" NAME="add_per" Value="Ajout"</TD>'; +00274 echo '<TD></TD>'; +00275 echo '<TD></TD>'; +00276 echo '</FORM></TR>'; 00277 -00278 ?> -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00278 echo '</TABLE>'; +00279 } +00280 +00281 ?> +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/preference_8php.html b/doc/developper/html/preference_8php.html index a392087c7..ad7b65e87 100644 --- a/doc/developper/html/preference_8php.html +++ b/doc/developper/html/preference_8php.html @@ -94,7 +94,7 @@ Generate the form for the periode. - +
                                    $p_cn connexion
                                    $p_default default periode
                                    $p_type the type of the periode
                                    $p_type the type of the periode OPEN CLOSE NOTCENTRALIZED or ALL
                                    $p_suff the suffix of the name
                                    @@ -103,7 +103,7 @@ Generate the form for the periode.

                                    Definition at line 71 of file preference.php.

                                    -References $l_line, $Max, $Res, $ret, $sql, and ExecSql(). +References $l_line, $Max, $Res, $ret, $sql, and ExecSql().

                                    @@ -144,7 +144,7 @@ FormPeriodeMult

                                    Definition at line 37 of file preference.php.

                                    -References $l_line, $Max, $Res, $ret, $sql, and ExecSql(). +References $l_line, $Max, $Res, $ret, $sql, and ExecSql().

                                    Referenced by ViewImp(). @@ -194,7 +194,7 @@ get the exercice of a periode

                                    Returns:
                                    Exercice of the periode

                                    -Definition at line 165 of file preference.php. +Definition at line 168 of file preference.php.

                                    References $Res, and ExecSql(). @@ -245,7 +245,7 @@ GetPeriode

                                    Returns:
                                    array containing the start date & the end date

                                    -Definition at line 122 of file preference.php. +Definition at line 125 of file preference.php.

                                    References $Res, $sql, and ExecSql().

                                    @@ -294,10 +294,10 @@ get the status of a periode periode id -

                                    Returns:
                                    true if closed
                                    +
                                    Returns:
                                    't' if closed otherwise 'f'

                                    -Definition at line 143 of file preference.php. +Definition at line 146 of file preference.php.

                                    References $l_line, $Res, $sql, and ExecSql().

                                    @@ -339,9 +339,9 @@ Show all the currency encoded.

                                    Returns:
                                    nothing

                                    -Definition at line 182 of file preference.php. +Definition at line 185 of file preference.php.

                                    -References $l_line, $Max, $Res, ExecSql(), and METHOD. +References $l_line, $Max, $Res, ExecSql(), and METHOD.

                                    @@ -379,12 +379,12 @@ Show all the periode and their status.

                                    Returns:
                                    nothing

                                    -Definition at line 221 of file preference.php. +Definition at line 224 of file preference.php.

                                    -References $l_line, $Max, $Res, echo_debug(), ExecSql(), and METHOD. +References $l_line, $Max, $Res, echo_debug(), ExecSql(), and METHOD. -


                                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/print__balance_8php-source.html b/doc/developper/html/print__balance_8php-source.html index 2646b5530..316e5c291 100644 --- a/doc/developper/html/print__balance_8php-source.html +++ b/doc/developper/html/print__balance_8php-source.html @@ -54,11 +54,11 @@ 00057 echo_debug('print_balance.php',__LINE__,"key => $key element $element"); 00058 } 00059 // if centralized -00060 $t_cent=""; +00060 $t_cent=""; 00061 00062 if ( isset($central) ) { 00063 $bal->central='Y'; -00064 $t_cent="centralisée"; +00064 $t_cent="centralisée"; 00065 } 00066 else 00067 $bal->central='N'; @@ -74,20 +74,20 @@ 00077 exit(); 00078 00079 } -00080 $a=GetPeriode($cn,$from_periode); -00081 $b=GetPeriode($cn,$to_periode); -00082 $per_text=" période du ".$a['p_start']." au ".$b['p_end']; +00080 $a=GetPeriode($cn,$from_periode); +00081 $b=GetPeriode($cn,$to_periode); +00082 $per_text=" période du ".$a['p_start']." au ".$b['p_end']; 00083 $pdf=& new Cezpdf('a4'); 00084 $pdf->selectFont('./addon/fonts/Helvetica.afm'); 00085 $pdf->ezSetCmMargins(2,2,2,2); -00086 $pdf->ezTable($array,array('poste'=>'Poste','label'=>'Libellé','sum_deb'=>'Total Débit', +00086 $pdf->ezTable($array,array('poste'=>'Poste','label'=>'Libellé','sum_deb'=>'Total Débit', 00087 'sum_cred'=>'Total crédit','solde_deb'=>'Solde débiteur', 00088 'solde_cred'=>'Solde créditeur'),'Balance des comptes '.$t_cent.$per_text); 00089 $pdf->ezStream(); 00090 00091 00092 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/print__balance_8php.html b/doc/developper/html/print__balance_8php.html index 381251459..b9da5fc21 100644 --- a/doc/developper/html/print__balance_8php.html +++ b/doc/developper/html/print__balance_8php.html @@ -304,7 +304,7 @@ Definition at line 4 Definition at line 52 of file print_balance.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/priv__user_8php-source.html b/doc/developper/html/priv__user_8php-source.html index f0344f991..820d9c248 100644 --- a/doc/developper/html/priv__user_8php-source.html +++ b/doc/developper/html/priv__user_8php-source.html @@ -94,13 +94,13 @@ 00088 use_id=".$uid; 00089 $Res=ExecSql($cn,$Sql); 00090 // Update Priv on Folder -00091 foreach ($HTTP_POST_VARS as $name=>$elem) +00091 foreach ($HTTP_POST_VARS as $name=>$elem) 00092 { 00093 echo_debug('priv_user.php',__LINE__,"HTTP_POST_VARS $name $elem"); -00094 if ( substr_count($name,'PRIV')!=0 ) +00094 if ( substr_count($name,'PRIV')!=0 ) 00095 { 00096 echo_debug('priv_user.php',__LINE__,"Found a priv"); -00097 $db_id=substr($name,4); +00097 $db_id=substr($name,4); 00098 $cn=DbConnect(); 00099 if ( ExisteJnt($db_id,$uid) != 1 ) 00100 { @@ -248,7 +248,7 @@ 00242 ?> 00243 00244 -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/priv__user_8php.html b/doc/developper/html/priv__user_8php.html index 406b96a9d..b3dc1b8fa 100644 --- a/doc/developper/html/priv__user_8php.html +++ b/doc/developper/html/priv__user_8php.html @@ -404,7 +404,7 @@ Definition at line 3338 of file priv_user.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/readme_8php-source.html b/doc/developper/html/readme_8php-source.html index 08518e842..d6cccd65b 100644 --- a/doc/developper/html/readme_8php-source.html +++ b/doc/developper/html/readme_8php-source.html @@ -303,7 +303,7 @@ 00294 $pdf->ezStream(); 00295 } 00296 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/readme_8php.html b/doc/developper/html/readme_8php.html index 7935948c0..4d2ead7f6 100644 --- a/doc/developper/html/readme_8php.html +++ b/doc/developper/html/readme_8php.html @@ -774,10 +774,10 @@ Definition at line 281 o

                                    Definition at line 200 of file readme.php.

                                    -Referenced by Document::Replace(). +Referenced by Document::Replace(). -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/recherche_8php-source.html b/doc/developper/html/recherche_8php-source.html index 597f7583c..b462cab4f 100644 --- a/doc/developper/html/recherche_8php-source.html +++ b/doc/developper/html/recherche_8php-source.html @@ -73,14 +73,14 @@ 00070 00071 echo '<div class="u_redcontent">'; 00072 echo $bar; -00073 echo $a; +00073 echo $a; 00074 echo $bar; 00075 echo '</div>'; 00076 } 00077 echo '</DIV>'; 00078 00079 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/recherche_8php.html b/doc/developper/html/recherche_8php.html index f0c96720c..cf505b811 100644 --- a/doc/developper/html/recherche_8php.html +++ b/doc/developper/html/recherche_8php.html @@ -57,7 +57,7 @@ Definition in file recherche.php

                                    Definition at line 66 of file recherche.php.

                                    -Referenced by fiche::blank(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), GetArray(), GetAvailableFolder(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), cl_user::GetPeriode(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), ImpHtml(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), UpdateModele(), and ViewForm(). +Referenced by fiche::blank(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), GetArray(), GetAvailableFolder(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), cl_user::GetPeriode(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), ImpHtml(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), UpdateModele(), and ViewForm().

                                    @@ -185,7 +185,7 @@ Definition at line 48 Definition at line 42 of file recherche.php. -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/sec__pdf_8php-source.html b/doc/developper/html/sec__pdf_8php-source.html index 2f478fffb..c17954d46 100644 --- a/doc/developper/html/sec__pdf_8php-source.html +++ b/doc/developper/html/sec__pdf_8php-source.html @@ -120,7 +120,7 @@ 00120 $action['priv']="Accès"; 00121 break; 00122 } -00123 $a_action[$i]=$action; +00123 $a_action[$i]=$action; 00124 } 00125 $pdf->ezTable($a_action , 00126 array ('lib'=>'Description', @@ -131,7 +131,7 @@ 00131 $pdf->ezStream(); 00132 00133 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/sec__pdf_8php.html b/doc/developper/html/sec__pdf_8php.html index 3a7377fff..cf034697d 100644 --- a/doc/developper/html/sec__pdf_8php.html +++ b/doc/developper/html/sec__pdf_8php.html @@ -296,7 +296,7 @@ Definition at line 43 Definition at line 49 of file sec_pdf.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/send__jrn__pdf_8php-source.html b/doc/developper/html/send__jrn__pdf_8php-source.html index 07d3a08e6..49c2bb9c7 100644 --- a/doc/developper/html/send__jrn__pdf_8php-source.html +++ b/doc/developper/html/send__jrn__pdf_8php-source.html @@ -64,7 +64,7 @@ 00059 $offset=0;$limit=25;$step=25; 00060 $rap_deb=0;$rap_cred=0; 00061 while (1) { -00062 $a=0; +00062 $a=0; 00063 list ($a_jrn,$tot_deb,$tot_cred)=GetDataJrnPdf($cn,$HTTP_GET_VARS,$limit,$offset); 00064 echo_debug('send_jrn_pdf.php',__LINE__,"Total debit $tot_deb,credit $tot_cred"); 00065 @@ -105,7 +105,7 @@ 00100 array('shaded'=>0,'showHeadings'=>1,'width'=>500, 00101 'cols'=>array('deb_montant'=> array('justification'=>'right'), 00102 'cred_montant'=> array('justification'=>'right')))); -00103 $a=1; +00103 $a=1; 00104 // Total Page 00105 $apage=array(array('deb'=>sprintf("%8.2f",$tot_deb),'cred'=>$tot_cred)); 00106 foreach ($apage as $key=>$element) echo_debug('send_jrn_pdf.php',__LINE__,"apage $key => $element"); @@ -155,7 +155,7 @@ 00150 $pdf->ezStream(); 00151 00152 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/send__jrn__pdf_8php.html b/doc/developper/html/send__jrn__pdf_8php.html index 7ea4f1108..6c0e01b49 100644 --- a/doc/developper/html/send__jrn__pdf_8php.html +++ b/doc/developper/html/send__jrn__pdf_8php.html @@ -507,7 +507,7 @@ Definition at line 8 Definition at line 122 of file send_jrn_pdf.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/send__poste__pdf_8php-source.html b/doc/developper/html/send__poste__pdf_8php-source.html index 6c733e50a..2f410d155 100644 --- a/doc/developper/html/send__poste__pdf_8php-source.html +++ b/doc/developper/html/send__poste__pdf_8php-source.html @@ -100,7 +100,7 @@ 00095 $pdf->ezStream(); 00096 00097 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/send__poste__pdf_8php.html b/doc/developper/html/send__poste__pdf_8php.html index cd9882944..39331150e 100644 --- a/doc/developper/html/send__poste__pdf_8php.html +++ b/doc/developper/html/send__poste__pdf_8php.html @@ -192,7 +192,7 @@ Definition at line Definition at line 44 of file send_poste_pdf.php.

                                    -Referenced by form_verify_input(), ImpHtml(), parm_code::Input(), RecordFin(), RecordInvoice(), RecordJrn(), and RecordSell(). +Referenced by form_verify_input(), ImpHtml(), parm_code::Input(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), and Document::Replace().

                                    @@ -270,7 +270,7 @@ Definition at line 75 of file send_poste_pdf.php. -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/setup_8php-source.html b/doc/developper/html/setup_8php-source.html index 449f7ba89..469ae701f 100644 --- a/doc/developper/html/setup_8php-source.html +++ b/doc/developper/html/setup_8php-source.html @@ -88,8 +88,8 @@ 00079 */ 00080 function GetVersion($p_cn) { 00081 $Res=ExecSql($p_cn,"select val from version"); -00082 $a=pg_fetch_array($Res,0); -00083 return $a['val']; +00082 $a=pg_fetch_array($Res,0); +00083 return $a['val']; 00084 } 00085 /* function ExecuteScript 00086 ************************************************** @@ -105,437 +105,442 @@ 00096 */ 00097 function ExecuteScript($p_cn,$script) { 00098 $hf=fopen($script,'r'); -00099 $sql=""; -00100 $flag_function=false; -00101 while (!feof($hf)) { -00102 $buffer=fgets($hf); -00103 $buffer=str_replace ("$","\$",$buffer); -00104 print $buffer."<br>"; -00105 // comment are not execute -00106 if ( substr($buffer,0,2) == "--" ) { -00107 //echo "comment $buffer"; -00108 continue; -00109 } -00110 // Blank Lines Are Skipped -00111 If ( Strlen($buffer)==0) { -00112 //echo "Blank $buffer"; -00113 Continue; -00114 } -00115 if ( strpos(strtolower($buffer),"create function")===0 ) { -00116 echo "found a function"; -00117 $flag_function=true; -00118 $sql=$buffer; -00119 continue; -00120 } -00121 if ( strpos(strtolower($buffer),"create or replace function")===0 ) { -00122 echo "found a function"; -00123 $flag_function=true; -00124 $sql=$buffer; -00125 continue; -00126 } -00127 // No semi colon -> multiline command -00128 if ( $flag_function== false && strpos($buffer,';') == false ) { -00129 $sql.=$buffer; -00130 continue; -00131 } -00132 if ( $flag_function ) { -00133 if ( strpos(strtolower($buffer), "language plpgsql") === false ) { -00134 $sql.=$buffer; -00135 continue; -00136 } -00137 } else { -00138 // cut the semi colon -00139 $buffer=str_replace (';','',$buffer); -00140 } -00141 $sql.=$buffer; -00142 if ( ExecSql($p_cn,$sql) == false ) { -00143 Rollback($p_cn); -00144 if ( DEBUG=='false' ) ob_end_flush(); -00145 print "ERROR : $sql"; -00146 exit(); -00147 } -00148 $sql=""; -00149 $flag_function=false; -00150 print "<hr>"; -00151 } // while (feof) -00152 fclose($hf); -00153 } -00154 -00155 // Verify some PHP parameters -00156 // magic_quotes_gpc = Off -00157 // magic_quotes_runtime = Off -00158 // magic_quotes_sybase = Off -00159 // include_path -00160 -00161 ?> -00162 <h2>Info</h2> -00163 Vous utilisez le domaine <? echo domaine; ?> -00164 <h2>Php setting</h2> -00165 <? -00166 -00167 $flag_php=0; -00168 foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { -00169 -00170 if ( ini_get($a) == false ) print $a.': Ok <br>'; -00171 else { -00172 print ("<h2 class=\"error\">$a has a bad value !!!</h2>"); -00173 $flag_php++; -00174 } -00175 -00176 } -00177 if ( ini_get("max_execution_time") < 60 ) { -00178 print '<h2 class="info"> max_execution_time should be set to 60 minimum</h2>'; -00179 } -00180 if ( ini_get("session.auto_start") == false ) { -00181 print '<h2 class="error"> session.auto_start must be set to true </h2>'; -00182 $flag_php++; -00183 } -00184 if ( ini_get("session.use_trans_sid") == false ) { -00185 print '<h2 class="error"> avertissement session.use_trans_sid should be set to true </h2>'; -00186 } -00187 if ( ereg("..\/include",$inc_path) == 0 and ereg("..\\include",$inc_path) == 0) -00188 { -00189 print ("<h2 class=\"error\">include_path incorrect !!!".$inc_path."</h2>"); -00190 $flag_php++; +00099 if ( $hf == false ) { +00100 echo 'Ne peut ouvrir '.$script; +00101 exit(); +00102 } +00103 $sql=""; +00104 $flag_function=false; +00105 while (!feof($hf)) { +00106 $buffer=fgets($hf); +00107 $buffer=str_replace ("$","\$",$buffer); +00108 print $buffer."<br>"; +00109 // comment are not execute +00110 if ( substr($buffer,0,2) == "--" ) { +00111 //echo "comment $buffer"; +00112 continue; +00113 } +00114 // Blank Lines Are Skipped +00115 If ( Strlen($buffer)==0) { +00116 //echo "Blank $buffer"; +00117 Continue; +00118 } +00119 if ( strpos(strtolower($buffer),"create function")===0 ) { +00120 echo "found a function"; +00121 $flag_function=true; +00122 $sql=$buffer; +00123 continue; +00124 } +00125 if ( strpos(strtolower($buffer),"create or replace function")===0 ) { +00126 echo "found a function"; +00127 $flag_function=true; +00128 $sql=$buffer; +00129 continue; +00130 } +00131 // No semi colon -> multiline command +00132 if ( $flag_function== false && strpos($buffer,';') == false ) { +00133 $sql.=$buffer; +00134 continue; +00135 } +00136 if ( $flag_function ) { +00137 if ( strpos(strtolower($buffer), "language plpgsql") === false && +00138 strpos(strtolower($buffer), "language 'plpgsql'") === false ) { +00139 $sql.=$buffer; +00140 continue; +00141 } +00142 } else { +00143 // cut the semi colon +00144 $buffer=str_replace (';','',$buffer); +00145 } +00146 $sql.=$buffer; +00147 if ( ExecSql($p_cn,$sql) == false ) { +00148 Rollback($p_cn); +00149 if ( DEBUG=='false' ) ob_end_flush(); +00150 print "ERROR : $sql"; +00151 exit(); +00152 } +00153 $sql=""; +00154 $flag_function=false; +00155 print "<hr>"; +00156 } // while (feof) +00157 fclose($hf); +00158 } +00159 +00160 // Verify some PHP parameters +00161 // magic_quotes_gpc = Off +00162 // magic_quotes_runtime = Off +00163 // magic_quotes_sybase = Off +00164 // include_path +00165 +00166 ?> +00167 <h2>Info</h2> +00168 Vous utilisez le domaine <? echo domaine; ?> +00169 <h2>Php setting</h2> +00170 <? +00171 +00172 $flag_php=0; +00173 foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { +00174 +00175 if ( ini_get($a) == false ) print $a.': Ok <br>'; +00176 else { +00177 print ("<h2 class=\"error\">$a has a bad value !!!</h2>"); +00178 $flag_php++; +00179 } +00180 +00181 } +00182 if ( ini_get("max_execution_time") < 60 ) { +00183 print '<h2 class="info"> max_execution_time should be set to 60 minimum</h2>'; +00184 } +00185 if ( ini_get("session.auto_start") == false ) { +00186 print '<h2 class="error"> session.auto_start must be set to true </h2>'; +00187 $flag_php++; +00188 } +00189 if ( ini_get("session.use_trans_sid") == false ) { +00190 print '<h2 class="error"> avertissement session.use_trans_sid should be set to true </h2>'; 00191 } -00192 else -00193 if ( ereg("addon",$inc_path) == 0) { +00192 if ( ereg("..\/include",$inc_path) == 0 and ereg("..\\include",$inc_path) == 0) +00193 { 00194 print ("<h2 class=\"error\">include_path incorrect !!!".$inc_path."</h2>"); 00195 $flag_php++; -00196 }else -00197 print 'include_path : ok ('.$inc_path.')<br>'; -00198 -00199 if ( $flag_php==0 ) { -00200 echo '<p class="info">php.ini est bien configuré</p>'; -00201 } else { -00202 echo '<p class="error"> php mal configuré</p>'; -00203 exit -1; -00204 } -00205 $cn=DbConnect(-2,'phpcompta'); -00206 -00207 if ($cn == false ) { -00208 print "<p> Vous devez absolument taper dans une console la commande 'createuser -A -d -P phpcompta et vous donnez dany comme mot de passe (voir la documentation)' -00209 puis la commande 'createdb -O phpcompta phpcompta'. </p> -00210 <p>Ces commandes créeront l'utilisateur phpcompta -00211 puis la base de données par défaut de phpcompta.</p>"; -00212 exit(); -00213 } -00214 ?> -00215 <h2>Database version </h2> -00216 <? -00217 // Verify Psql version -00218 //-- -00219 $sql="select setting from pg_settings where name='server_version'"; -00220 $Res=ExecSql($cn,$sql); -00221 $row=pg_fetch_array($Res,0); -00222 $version=$row[0]; -00223 -00224 if ( $version[0] != '8' ) { -00225 ?> -00226 <p> Vous devez absolument utiliser au minimum une version 8 de PostGresql, si votre distribution n'en -00227 offre pas, installez en une en la compilant. </p><p>Lisez attentivement la notice sur postgresql.org pour migrer -00228 vos bases de données en 8 -00229 </p> -00230 <? exit(); //' -00231 } -00232 -00233 ?> -00234 <h2>Database Setting</h2> -00235 <? -00236 // Language plsql is installed -00237 //-- -00238 $sql="select lanname from pg_language where lanname='plpgsql'"; -00239 $Res=CountSql($cn,$sql); -00240 if ( $Res==0) { ?> -00241 <p> Vous devez installer le langage plpgsql pour permettre aux fonctions SQL de fonctionner.</p> -00242 <p>Pour cela, sur la ligne de commande, faites -00243 createlang plpgsql pour chaque base de données que vous possédez (y compris template0 et template1). -00244 </p> -00245 <p>Pour afficher toutes les bases de données, tapez sur la ligne de commande "psql -l"</p> -00246 <? exit(); } -00247 -00248 // Memory setting -00249 //-- -00250 $sql="select name,setting -00251 from pg_settings -00252 where -00253 name in ('effective_cache_size','shared_buffers','work_mem')"; -00254 $Res=ExecSql($cn,$sql); -00255 $flag=0; -00256 for ($e=0;$e<pg_NumRows($Res);$e++) { -00257 $a=pg_fetch_array($Res,$e); -00258 switch ($a['name']){ -00259 case 'effective_cache_size': -00260 if ( $a['setting'] < 1000 ){ -00261 print '<p class="warning">Attention le paramètre effective_cache_size est de '. -00262 $a['setting']." au lieu de 1000 </p>"; -00263 $flag++; -00264 } -00265 break; -00266 case 'shared_buffers': -00267 if ( $a['setting'] < 640 ){ -00268 print '<p class="warning">Attention le paramètre shared_buffer est de '. -00269 $a['setting']."au lieu de 640</p>"; -00270 $flag++; -00271 } -00272 break; -00273 case 'work_mem': -00274 if ( $a['setting'] < 8192 ){ -00275 print '<p class="warning">Attention le paramètre work_mem est de '. -00276 $a['setting']." au lieu de 8192 </p>"; -00277 $flag++; -00278 } -00279 break; -00280 -00281 } -00282 } -00283 if ( $flag == 0 ) { -00284 echo '<p class="info">La base de données est bien configurée</p>'; -00285 } else { -00286 echo '<p class="warning">Il y a '.$flag.' paramètre qui sont trop bas</p>'; +00196 } +00197 else +00198 if ( ereg("addon",$inc_path) == 0) { +00199 print ("<h2 class=\"error\">include_path incorrect !!!".$inc_path."</h2>"); +00200 $flag_php++; +00201 }else +00202 print 'include_path : ok ('.$inc_path.')<br>'; +00203 +00204 if ( $flag_php==0 ) { +00205 echo '<p class="info">php.ini est bien configuré</p>'; +00206 } else { +00207 echo '<p class="error"> php mal configuré</p>'; +00208 exit -1; +00209 } +00210 $cn=DbConnect(-2,'phpcompta'); +00211 +00212 if ($cn == false ) { +00213 print "<p> Vous devez absolument taper dans une console la commande 'createuser -A -d -P phpcompta et vous donnez dany comme mot de passe (voir la documentation)' +00214 puis la commande 'createdb -O phpcompta phpcompta'. </p> +00215 <p>Ces commandes créeront l'utilisateur phpcompta +00216 puis la base de données par défaut de phpcompta.</p>"; +00217 exit(); +00218 } +00219 ?> +00220 <h2>Database version </h2> +00221 <? +00222 // Verify Psql version +00223 //-- +00224 $sql="select setting from pg_settings where name='server_version'"; +00225 $Res=ExecSql($cn,$sql); +00226 $row=pg_fetch_array($Res,0); +00227 $version=$row[0]; +00228 +00229 if ( $version[0] != '8' ) { +00230 ?> +00231 <p> Vous devez absolument utiliser au minimum une version 8 de PostGresql, si votre distribution n'en +00232 offre pas, installez en une en la compilant. </p><p>Lisez attentivement la notice sur postgresql.org pour migrer +00233 vos bases de données en 8 +00234 </p> +00235 <? exit(); //' +00236 } +00237 +00238 ?> +00239 <h2>Database Setting</h2> +00240 <? +00241 // Language plsql is installed +00242 //-- +00243 $sql="select lanname from pg_language where lanname='plpgsql'"; +00244 $Res=CountSql($cn,$sql); +00245 if ( $Res==0) { ?> +00246 <p> Vous devez installer le langage plpgsql pour permettre aux fonctions SQL de fonctionner.</p> +00247 <p>Pour cela, sur la ligne de commande, faites +00248 createlang plpgsql pour chaque base de données que vous possédez (y compris template0 et template1). +00249 </p> +00250 <p>Pour afficher toutes les bases de données, tapez sur la ligne de commande "psql -l"</p> +00251 <? exit(); } +00252 +00253 // Memory setting +00254 //-- +00255 $sql="select name,setting +00256 from pg_settings +00257 where +00258 name in ('effective_cache_size','shared_buffers','work_mem')"; +00259 $Res=ExecSql($cn,$sql); +00260 $flag=0; +00261 for ($e=0;$e<pg_NumRows($Res);$e++) { +00262 $a=pg_fetch_array($Res,$e); +00263 switch ($a['name']){ +00264 case 'effective_cache_size': +00265 if ( $a['setting'] < 1000 ){ +00266 print '<p class="warning">Attention le paramètre effective_cache_size est de '. +00267 $a['setting']." au lieu de 1000 </p>"; +00268 $flag++; +00269 } +00270 break; +00271 case 'shared_buffers': +00272 if ( $a['setting'] < 640 ){ +00273 print '<p class="warning">Attention le paramètre shared_buffer est de '. +00274 $a['setting']."au lieu de 640</p>"; +00275 $flag++; +00276 } +00277 break; +00278 case 'work_mem': +00279 if ( $a['setting'] < 8192 ){ +00280 print '<p class="warning">Attention le paramètre work_mem est de '. +00281 $a['setting']." au lieu de 8192 </p>"; +00282 $flag++; +00283 } +00284 break; +00285 +00286 } 00287 } -00288 if ( ! isset($_POST['go']) ) { -00289 ?> -00290 <FORM action="setup.php" METHOD="post"> -00291 <input type="submit" name="go" value="Prêt à commencer la mise à jour ou l'installation?"> -00292 </form> -00293 <? -00294 } -00295 if ( ! isset($_POST['go']) ) -00296 exit(); -00297 // Check if account_repository exists -00298 $account=CountSql($cn, -00299 "select * from pg_database where datname='".domaine."account_repository'"); -00300 -00301 // Create the account_repository -00302 if ($account == 0 ) { -00303 -00304 echo "Creation of ".domaine."account_repository"; -00305 if ( DEBUG=='false') ob_start(); -00306 ExecSql($cn,"create database ".domaine."account_repository encoding='latin1'"); -00307 $cn=DbConnect(); -00308 ExecuteScript($cn,"sql/account_repository/schema.sql"); -00309 ExecuteScript($cn,"sql/account_repository/data.sql"); -00310 if ( DEBUG=='false') ob_end_clean(); -00311 echo "Creation of Démo"; -00312 if ( DEBUG=='false') ob_start(); -00313 ExecSql($cn,"create database ".domaine."dossier1 encoding='latin1'"); -00314 $cn=DbConnect(1,'dossier'); -00315 ExecuteScript($cn,'sql/dossier1/schema.sql'); -00316 ExecuteScript($cn,'sql/dossier1/data.sql'); -00317 if ( DEBUG=='false') ob_end_clean(); -00318 -00319 echo "Creation of Modele1"; -00320 if ( DEBUG=='false') ob_start(); -00321 ExecSql($cn,"create database ".domaine."mod1 encoding='latin1'"); -00322 $cn=DbConnect(1,'mod'); -00323 ExecuteScript($cn,'sql/mod1/schema.sql'); -00324 ExecuteScript($cn,'sql/mod1/data.sql'); -00325 if ( DEBUG=='false') ob_end_clean(); -00326 }// end if -00327 -00328 // Add a french accountancy model -00329 //-- -00330 $cn=DbConnect(); -00331 $Res=CountSql($cn,"select * from modeledef where mod_id=2"); -00332 if ( $Res == 0) { -00333 echo "Creation of Modele2"; -00334 ExecSql($cn,"create database ".domaine."mod2 encoding='latin1'"); -00335 $cn=DbConnect(2,'mod'); -00336 if ( DEBUG=='false') { ob_start(); } -00337 ExecuteScript($cn,'sql/mod2/schema.sql'); -00338 ExecuteScript($cn,'sql/mod2/data.sql'); -00339 $sql="INSERT INTO modeledef VALUES (2, '(FR) Basique', 'Comptabilité Française, tout doit être adaptée');"; -00340 $cn=DbConnect(); -00341 ExecSql($cn,$sql); -00342 if ( DEBUG=='false') ob_end_clean(); -00343 } -00344 // -00345 // Test the connection -00346 //-- -00347 $a=DbConnect(); -00348 if ( $a==false) { -00349 exit ("<h2 class=\"error\">".__LINE__." test has failed !!!</h2>"); -00350 -00351 } -00352 if ( ($Res=ExecSql($a,"select * from ac_users") ) == false ) { -00353 exit ("<h2 class=\"error\">".__LINE__." test has failed !!!</h2>"); -00354 } else -00355 print "Connect to database success <br>"; -00356 echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>"; -00357 -00358 echo "<h2 class=\"info\"> Patching databases</h2>"; -00359 -00360 $cn=DbConnect(); -00361 $Resdossier=ExecSql($cn,"select dos_id, dos_name from ac_dossier"); -00362 $MaxDossier=pg_NumRows($Resdossier); -00363 -00364 for ($e=0;$e < $MaxDossier;$e++) { -00365 $db_row=pg_fetch_array($Resdossier,$e); -00366 $db=DbConnect($db_row['dos_id'],'dossier'); -00367 echo "Patching ".$db_row['dos_name']." from the version ".GetVersion($db)."<hr>"; -00368 if ( DEBUG=='false' ) ob_start(); -00369 if ( GetVersion($db) <= 4 ) { -00370 ExecuteScript($db,'sql/patch/upgrade4.sql'); -00371 -00372 $sql="select jrn_def_id from jrn_def "; -00373 $Res=ExecSql($db,$sql); -00374 $Max=pg_NumRows($Res); -00375 for ($seq=0;$seq<$Max;$seq++) { -00376 $row=pg_fetch_array($Res,$seq); -00377 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); -00378 ExecSql($db,$sql); -00379 } -00380 } // version == 4 -00381 //-- -00382 // update to the version 5 -00383 //-- -00384 if ( GetVersion($db) == 5 ) { -00385 ExecuteScript($db,'sql/patch/upgrade5.sql'); -00386 } // version == 5 -00387 -00388 -00389 //-- -00390 // update to the version 7 -00391 //-- -00392 if ( GetVersion($db) == 6 ) { -00393 ExecuteScript($db,'sql/patch/upgrade6.sql'); -00394 } // version == 6 -00395 +00288 if ( $flag == 0 ) { +00289 echo '<p class="info">La base de données est bien configurée</p>'; +00290 } else { +00291 echo '<p class="warning">Il y a '.$flag.' paramètre qui sont trop bas</p>'; +00292 } +00293 if ( ! isset($_POST['go']) ) { +00294 ?> +00295 <FORM action="setup.php" METHOD="post"> +00296 <input type="submit" name="go" value="Prêt à commencer la mise à jour ou l'installation?"> +00297 </form> +00298 <? +00299 } +00300 if ( ! isset($_POST['go']) ) +00301 exit(); +00302 // Check if account_repository exists +00303 $account=CountSql($cn, +00304 "select * from pg_database where datname='".domaine."account_repository'"); +00305 +00306 // Create the account_repository +00307 if ($account == 0 ) { +00308 +00309 echo "Creation of ".domaine."account_repository"; +00310 if ( DEBUG=='false') ob_start(); +00311 ExecSql($cn,"create database ".domaine."account_repository encoding='latin1'"); +00312 $cn=DbConnect(); +00313 ExecuteScript($cn,"sql/account_repository/schema.sql"); +00314 ExecuteScript($cn,"sql/account_repository/data.sql"); +00315 if ( DEBUG=='false') ob_end_clean(); +00316 echo "Creation of Démo"; +00317 if ( DEBUG=='false') ob_start(); +00318 ExecSql($cn,"create database ".domaine."dossier1 encoding='latin1'"); +00319 $cn=DbConnect(1,'dossier'); +00320 ExecuteScript($cn,'sql/dossier1/schema.sql'); +00321 ExecuteScript($cn,'sql/dossier1/data.sql'); +00322 if ( DEBUG=='false') ob_end_clean(); +00323 +00324 echo "Creation of Modele1"; +00325 if ( DEBUG=='false') ob_start(); +00326 ExecSql($cn,"create database ".domaine."mod1 encoding='latin1'"); +00327 $cn=DbConnect(1,'mod'); +00328 ExecuteScript($cn,'sql/mod1/schema.sql'); +00329 ExecuteScript($cn,'sql/mod1/data.sql'); +00330 if ( DEBUG=='false') ob_end_clean(); +00331 }// end if +00332 +00333 // Add a french accountancy model +00334 //-- +00335 $cn=DbConnect(); +00336 $Res=CountSql($cn,"select * from modeledef where mod_id=2"); +00337 if ( $Res == 0) { +00338 echo "Creation of Modele2"; +00339 ExecSql($cn,"create database ".domaine."mod2 encoding='latin1'"); +00340 $cn=DbConnect(2,'mod'); +00341 if ( DEBUG=='false') { ob_start(); } +00342 ExecuteScript($cn,'sql/mod2/schema.sql'); +00343 ExecuteScript($cn,'sql/mod2/data.sql'); +00344 $sql="INSERT INTO modeledef VALUES (2, '(FR) Basique', 'Comptabilité Française, tout doit être adaptée');"; +00345 $cn=DbConnect(); +00346 ExecSql($cn,$sql); +00347 if ( DEBUG=='false') ob_end_clean(); +00348 } +00349 // +00350 // Test the connection +00351 //-- +00352 $a=DbConnect(); +00353 if ( $a==false) { +00354 exit ("<h2 class=\"error\">".__LINE__." test has failed !!!</h2>"); +00355 +00356 } +00357 if ( ($Res=ExecSql($a,"select * from ac_users") ) == false ) { +00358 exit ("<h2 class=\"error\">".__LINE__." test has failed !!!</h2>"); +00359 } else +00360 print "Connect to database success <br>"; +00361 echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>"; +00362 +00363 echo "<h2 class=\"info\"> Patching databases</h2>"; +00364 +00365 $cn=DbConnect(); +00366 $Resdossier=ExecSql($cn,"select dos_id, dos_name from ac_dossier"); +00367 $MaxDossier=pg_NumRows($Resdossier); +00368 +00369 for ($e=0;$e < $MaxDossier;$e++) { +00370 $db_row=pg_fetch_array($Resdossier,$e); +00371 $db=DbConnect($db_row['dos_id'],'dossier'); +00372 echo "Patching ".$db_row['dos_name']." from the version ".GetVersion($db)."<hr>"; +00373 if ( DEBUG=='false' ) ob_start(); +00374 if ( GetVersion($db) <= 4 ) { +00375 ExecuteScript($db,'sql/patch/upgrade4.sql'); +00376 +00377 $sql="select jrn_def_id from jrn_def "; +00378 $Res=ExecSql($db,$sql); +00379 $Max=pg_NumRows($Res); +00380 for ($seq=0;$seq<$Max;$seq++) { +00381 $row=pg_fetch_array($Res,$seq); +00382 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); +00383 ExecSql($db,$sql); +00384 } +00385 } // version == 4 +00386 //-- +00387 // update to the version 5 +00388 //-- +00389 if ( GetVersion($db) == 5 ) { +00390 ExecuteScript($db,'sql/patch/upgrade5.sql'); +00391 } // version == 5 +00392 +00393 +00394 //-- +00395 // update to the version 7 00396 //-- -00397 // update to the version 8 -00398 //-- -00399 if ( GetVersion($db) == 7 ) { -00400 ExecuteScript($db,'sql/patch/upgrade7.sql'); -00401 // now we use sequence instead of computing a max -00402 // -00403 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); -00404 $Max2= pg_NumRows($Res2) ; -00405 if ( $Max2 == 1) { -00406 $Row=pg_fetch_array($Res2,0); -00407 var_dump($Row); -00408 $M=$Row['l']; -00409 ExecSql($db,"select setval('s_grpt',$M,true)"); -00410 } -00411 } // version == 7 -00412 // version 8 -> 9 -00413 if ( GetVersion($db) == 8 ) { -00414 ExecuteScript($db,'sql/patch/upgrade8.sql'); -00415 } // version == 9->10 -00416 if ( GetVersion($db) == 9 ) { -00417 ExecuteScript($db,'sql/patch/upgrade9.sql'); -00418 } // version == 10->11 -00419 if ( GetVersion($db) == 10 ) { -00420 ExecuteScript($db,'sql/patch/upgrade10.sql'); -00421 } // version -00422 if ( GetVersion($db) == 11 ) { -00423 ExecuteScript($db,'sql/patch/upgrade11.sql'); -00424 } // version -00425 if ( GetVersion($db) == 12 ) { -00426 ExecuteScript($db,'sql/patch/upgrade12.sql'); -00427 } // version -00428 -00429 if ( GetVersion($db) == 13 ) { -00430 ExecuteScript($db,'sql/patch/upgrade13.sql'); -00431 } // version -00432 +00397 if ( GetVersion($db) == 6 ) { +00398 ExecuteScript($db,'sql/patch/upgrade6.sql'); +00399 } // version == 6 +00400 +00401 //-- +00402 // update to the version 8 +00403 //-- +00404 if ( GetVersion($db) == 7 ) { +00405 ExecuteScript($db,'sql/patch/upgrade7.sql'); +00406 // now we use sequence instead of computing a max +00407 // +00408 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); +00409 $Max2= pg_NumRows($Res2) ; +00410 if ( $Max2 == 1) { +00411 $Row=pg_fetch_array($Res2,0); +00412 var_dump($Row); +00413 $M=$Row['l']; +00414 ExecSql($db,"select setval('s_grpt',$M,true)"); +00415 } +00416 } // version == 7 +00417 // version 8 -> 9 +00418 if ( GetVersion($db) == 8 ) { +00419 ExecuteScript($db,'sql/patch/upgrade8.sql'); +00420 } // version == 9->10 +00421 if ( GetVersion($db) == 9 ) { +00422 ExecuteScript($db,'sql/patch/upgrade9.sql'); +00423 } // version == 10->11 +00424 if ( GetVersion($db) == 10 ) { +00425 ExecuteScript($db,'sql/patch/upgrade10.sql'); +00426 } // version +00427 if ( GetVersion($db) == 11 ) { +00428 ExecuteScript($db,'sql/patch/upgrade11.sql'); +00429 } // version +00430 if ( GetVersion($db) == 12 ) { +00431 ExecuteScript($db,'sql/patch/upgrade12.sql'); +00432 } // version 00433 -00434 if ( DEBUG == 'false') ob_end_clean(); -00435 }//for -00436 -00437 $Resdossier=ExecSql($cn,"select mod_id, mod_name from modeledef"); -00438 $MaxDossier=pg_NumRows($Resdossier); -00439 echo "Upgrading Dossier"; -00440 for ($e=0;$e < $MaxDossier;$e++) { -00441 $db_row=pg_fetch_array($Resdossier,$e); -00442 echo "Patching ".$db_row['mod_name']."<hr>"; -00443 $db=DbConnect($db_row['mod_id'],'mod'); -00444 if (DEBUG == 'false' ) ob_start(); -00445 if ( GetVersion($db) <= 4 ) { -00446 ExecuteScript($db,'sql/patch/upgrade4.sql'); -00447 -00448 $sql="select jrn_def_id from jrn_def "; -00449 $Res=ExecSql($db,$sql); -00450 $Max=pg_NumRows($Res); -00451 for ($seq=0;$seq<$Max;$seq++) { -00452 $row=pg_fetch_array($Res,$seq); -00453 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); -00454 ExecSql($db,$sql); -00455 } -00456 } // version == 4 -00457 if ( GetVersion($db) == 5 ) { -00458 ExecuteScript($db,'sql/patch/upgrade5.sql'); -00459 } // version == 5 -00460 -00461 -00462 //-- -00463 // update to the version 7 -00464 //-- -00465 if ( GetVersion($db) == 6 ) { -00466 ExecuteScript($db,'sql/patch/upgrade6.sql'); -00467 } // version == 6 -00468 +00434 if ( GetVersion($db) == 13 ) { +00435 ExecuteScript($db,'sql/patch/upgrade13.sql'); +00436 } // version +00437 +00438 +00439 if ( DEBUG == 'false') ob_end_clean(); +00440 }//for +00441 +00442 $Resdossier=ExecSql($cn,"select mod_id, mod_name from modeledef"); +00443 $MaxDossier=pg_NumRows($Resdossier); +00444 echo "Upgrading Dossier"; +00445 for ($e=0;$e < $MaxDossier;$e++) { +00446 $db_row=pg_fetch_array($Resdossier,$e); +00447 echo "Patching ".$db_row['mod_name']."<hr>"; +00448 $db=DbConnect($db_row['mod_id'],'mod'); +00449 if (DEBUG == 'false' ) ob_start(); +00450 if ( GetVersion($db) <= 4 ) { +00451 ExecuteScript($db,'sql/patch/upgrade4.sql'); +00452 +00453 $sql="select jrn_def_id from jrn_def "; +00454 $Res=ExecSql($db,$sql); +00455 $Max=pg_NumRows($Res); +00456 for ($seq=0;$seq<$Max;$seq++) { +00457 $row=pg_fetch_array($Res,$seq); +00458 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); +00459 ExecSql($db,$sql); +00460 } +00461 } // version == 4 +00462 if ( GetVersion($db) == 5 ) { +00463 ExecuteScript($db,'sql/patch/upgrade5.sql'); +00464 } // version == 5 +00465 +00466 +00467 //-- +00468 // update to the version 7 00469 //-- -00470 // update to the version 8 -00471 //-- -00472 if ( GetVersion($db) == 7 ) { -00473 ExecuteScript($db,'sql/patch/upgrade7.sql'); -00474 // now we use sequence instead of computing a max -00475 // -00476 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); -00477 $Max2= pg_NumRows($Res2) ; -00478 if ( $Max2 == 1) { -00479 $Row=pg_fetch_array($Res2,0); -00480 $M=$Row['l']; -00481 ExecSql($db,"select setval('s_grpt',$M,true)"); -00482 } -00483 } // version == 8 -00484 //-- -00485 // update to the version 9 -00486 //-- -00487 if ( GetVersion($db) == 8 ) { -00488 ExecuteScript($db,'sql/patch/upgrade8.sql'); -00489 } // version == 9 -00490 // update to the version 10 +00470 if ( GetVersion($db) == 6 ) { +00471 ExecuteScript($db,'sql/patch/upgrade6.sql'); +00472 } // version == 6 +00473 +00474 //-- +00475 // update to the version 8 +00476 //-- +00477 if ( GetVersion($db) == 7 ) { +00478 ExecuteScript($db,'sql/patch/upgrade7.sql'); +00479 // now we use sequence instead of computing a max +00480 // +00481 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); +00482 $Max2= pg_NumRows($Res2) ; +00483 if ( $Max2 == 1) { +00484 $Row=pg_fetch_array($Res2,0); +00485 $M=$Row['l']; +00486 ExecSql($db,"select setval('s_grpt',$M,true)"); +00487 } +00488 } // version == 8 +00489 //-- +00490 // update to the version 9 00491 //-- -00492 if ( GetVersion($db) == 9 ) { -00493 ExecuteScript($db,'sql/patch/upgrade9.sql'); +00492 if ( GetVersion($db) == 8 ) { +00493 ExecuteScript($db,'sql/patch/upgrade8.sql'); 00494 } // version == 9 -00495 if ( GetVersion($db) == 10 ) { -00496 ExecuteScript($db,'sql/patch/upgrade10.sql'); -00497 } // version -00498 if ( GetVersion($db) == 11 ) { -00499 ExecuteScript($db,'sql/patch/upgrade11.sql'); -00500 } // version -00501 if ( GetVersion($db) == 12 ) { -00502 ExecuteScript($db,'sql/patch/upgrade12.sql'); -00503 } // version -00504 if ( GetVersion($db) == 13 ) { -00505 ExecuteScript($db,'sql/patch/upgrade13.sql'); -00506 } // version -00507 -00508 if ( DEBUG == 'false') ob_end_clean(); -00509 } -00510 -00511 echo "Upgrading Repository"; -00512 $cn=DbConnect(); -00513 if ( DEBUG == 'false') ob_start(); -00514 if ( GetVersion($cn) <= 4 ) { -00515 ExecuteScript($cn,'sql/patch/ac-upgrade4.sql'); -00516 } -00517 if ( GetVersion($cn) == 5 ) { -00518 ExecuteScript($cn,'sql/patch/ac-upgrade5.sql'); -00519 } -00520 if ( GetVersion($cn) == 6 ) { -00521 ExecuteScript($cn,'sql/patch/ac-upgrade6.sql'); -00522 } -00523 if ( GetVersion($cn) == 7 ) { -00524 ExecuteScript($cn,'sql/patch/ac-upgrade7.sql'); -00525 } -00526 -00527 if (DEBUG=='false') ob_end_clean(); -00528 echo "<h2 class=\"info\">Voilà tout est installé ;-)</h2>"; -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00495 // update to the version 10 +00496 //-- +00497 if ( GetVersion($db) == 9 ) { +00498 ExecuteScript($db,'sql/patch/upgrade9.sql'); +00499 } // version == 9 +00500 if ( GetVersion($db) == 10 ) { +00501 ExecuteScript($db,'sql/patch/upgrade10.sql'); +00502 } // version +00503 if ( GetVersion($db) == 11 ) { +00504 ExecuteScript($db,'sql/patch/upgrade11.sql'); +00505 } // version +00506 if ( GetVersion($db) == 12 ) { +00507 ExecuteScript($db,'sql/patch/upgrade12.sql'); +00508 } // version +00509 if ( GetVersion($db) == 13 ) { +00510 ExecuteScript($db,'sql/patch/upgrade13.sql'); +00511 } // version +00512 +00513 if ( DEBUG == 'false') ob_end_clean(); +00514 } +00515 +00516 echo "Upgrading Repository"; +00517 $cn=DbConnect(); +00518 if ( DEBUG == 'false') ob_start(); +00519 if ( GetVersion($cn) <= 4 ) { +00520 ExecuteScript($cn,'sql/patch/ac-upgrade4.sql'); +00521 } +00522 if ( GetVersion($cn) == 5 ) { +00523 ExecuteScript($cn,'sql/patch/ac-upgrade5.sql'); +00524 } +00525 if ( GetVersion($cn) == 6 ) { +00526 ExecuteScript($cn,'sql/patch/ac-upgrade6.sql'); +00527 } +00528 if ( GetVersion($cn) == 7 ) { +00529 ExecuteScript($cn,'sql/patch/ac-upgrade7.sql'); +00530 } +00531 +00532 if (DEBUG=='false') ob_end_clean(); +00533 echo "<h2 class=\"info\">Voilà tout est installé ;-)</h2>"; +
                                    Generated on Sun Jun 25 23:05:34 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/setup_8php.html b/doc/developper/html/setup_8php.html index a0fbc957b..f0afa644c 100644 --- a/doc/developper/html/setup_8php.html +++ b/doc/developper/html/setup_8php.html @@ -87,7 +87,7 @@

                                    Definition at line 97 of file setup.php.

                                    -References $sql, ExecSql(), exit, print, and Rollback(). +References $sql, ExecSql(), exit, print, and Rollback().

                                    @@ -119,7 +119,7 @@ References $sql, Definition at line 80 of file setup.php.

                                    -References $a, $Res, and ExecSql(). +References $a, $Res, and ExecSql().


                                    Variable Documentation

                                    @@ -145,7 +145,7 @@ References $a,

                                    -Definition at line 347 of file setup.php. +Definition at line 352 of file setup.php.

                                    @@ -170,7 +170,7 @@ Definition at line 347 of

                                    -Definition at line 360 of file setup.php. +Definition at line 365 of file setup.php.

                                    @@ -195,7 +195,7 @@ Definition at line 360 of

                                    -Definition at line 366 of file setup.php. +Definition at line 371 of file setup.php.

                                    Referenced by ViewJrn(). @@ -222,7 +222,7 @@ Referenced by ViewJrn().

                                    -Definition at line 255 of file setup.php. +Definition at line 260 of file setup.php.

                                    Referenced by AddFiche(), ComputeTotalVat(), FormFin(), FormODS(), and fiche::getAttribut(). @@ -249,7 +249,7 @@ Referenced by AddFiche()

                                    -Definition at line 167 of file setup.php. +Definition at line 172 of file setup.php.

                                    @@ -299,9 +299,9 @@ Definition at line 56 of

                                    -Definition at line 408 of file setup.php. +Definition at line 413 of file setup.php.

                                    -Referenced by DisplayDetailModele(), and Balance::GetRow(). +Referenced by DisplayDetailModele(), and Balance::GetRow().

                                    @@ -326,9 +326,9 @@ Referenced by DisplayDet

                                    -Definition at line 374 of file setup.php. +Definition at line 379 of file setup.php.

                                    -Referenced by EncodeFiche(), FormPeriode(), FormPeriodeMult(), Get_fiche_def_ref(), fiche::getAttribut(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetFicheJrn(), cl_user::GetGlobalPref(), GetJrnName(), jrn::GetName(), GetNextFiche(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), ImpHtml(), IsFicheOfJrn(), ListJrn(), MenuJrn(), new_fiche(), PosteForm(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), TransferCSV(), and ViewFiche(). +Referenced by EncodeFiche(), FormPeriode(), FormPeriodeMult(), Get_fiche_def_ref(), fiche::getAttribut(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetFicheJrn(), cl_user::GetGlobalPref(), GetJrnName(), jrn::GetName(), GetNextFiche(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), ImpHtml(), IsFicheOfJrn(), ListJrn(), MenuJrn(), new_fiche(), PosteForm(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), TransferCSV(), and ViewFiche().

                                    @@ -353,7 +353,7 @@ Referenced by EncodeFich

                                    -Definition at line 404 of file setup.php. +Definition at line 409 of file setup.php.

                                    @@ -378,7 +378,7 @@ Definition at line 404 of

                                    -Definition at line 362 of file setup.php. +Definition at line 367 of file setup.php.

                                    @@ -403,7 +403,7 @@ Definition at line 362 of

                                    -Definition at line 239 of file setup.php. +Definition at line 244 of file setup.php.

                                    @@ -428,7 +428,7 @@ Definition at line 239 of

                                    -Definition at line 403 of file setup.php. +Definition at line 408 of file setup.php.

                                    Referenced by Centralise(), CheckJrn(), TransferCSV(), and Customer::VatListing(). @@ -455,7 +455,7 @@ Referenced by Centrali

                                    -Definition at line 361 of file setup.php. +Definition at line 366 of file setup.php.

                                    @@ -480,7 +480,7 @@ Definition at line 361 of

                                    -Definition at line 238 of file setup.php. +Definition at line 243 of file setup.php.

                                    @@ -505,10 +505,10 @@ Definition at line 238 of

                                    -Definition at line 355 of file setup.php. +Definition at line 360 of file setup.php. -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__document_8php-source.html b/doc/developper/html/show__document_8php-source.html index 6e0512888..4271db803 100644 --- a/doc/developper/html/show__document_8php-source.html +++ b/doc/developper/html/show__document_8php-source.html @@ -40,8 +40,8 @@ 00037 $User->Check(); 00038 // retrieve the document 00039 $doc=new Document($cn,$_REQUEST['d_id']); -00040 $doc->Get(); -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +00040 $doc->Send(); +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__document_8php.html b/doc/developper/html/show__document_8php.html index a63e067ad..756a6bd0c 100644 --- a/doc/developper/html/show__document_8php.html +++ b/doc/developper/html/show__document_8php.html @@ -102,7 +102,7 @@ Definition at line 3 Definition at line 34 of file show_document.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__document__modele_8php-source.html b/doc/developper/html/show__document__modele_8php-source.html index e6e13c423..6f2c5d638 100644 --- a/doc/developper/html/show__document__modele_8php-source.html +++ b/doc/developper/html/show__document__modele_8php-source.html @@ -40,7 +40,7 @@ 00037 $User->Check(); 00038 // retrieve the document 00039 $r=ExecSql($cn,"select md_id,md_lob,md_filename,md_mimetype -00040 from document_modele where md_id=".$_REQUEST['md_id']); +00040 from document_modele where md_id=".$_REQUEST['md_id']); 00041 if ( pg_num_rows($r) == 0 ) { 00042 echo_error("Invalid Document"); 00043 exit; @@ -69,7 +69,7 @@ 00066 unlink ($tmp); 00067 00068 Commit($cn); -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__document__modele_8php.html b/doc/developper/html/show__document__modele_8php.html index bbca1b47c..9abf98f1c 100644 --- a/doc/developper/html/show__document__modele_8php.html +++ b/doc/developper/html/show__document__modele_8php.html @@ -84,7 +84,7 @@ Definition at line 60 of file show_document_modele.php.

                                    -Referenced by FormAchView(), FormFin(), FormVenteView(), Document_modele::Get(), Document::Get(), Cpdf::openFont(), and UpdateJrn(). +Referenced by FormAchView(), FormFin(), FormVenteView(), Document_modele::Get(), Cpdf::openFont(), Document::Send(), and UpdateJrn().

                                    @@ -108,7 +108,7 @@ Referenced by FormA

                                    Initial value:

                                    ExecSql($cn,"select md_id,md_lob,md_filename,md_mimetype 
                                    -                 from document_modele where md_id=".$_REQUEST['md_id'])
                                    +                 from document_modele where md_id=".$_REQUEST['md_id'])
                                     

                                    Definition at line 39 of file show_document_modele.php. @@ -163,7 +163,7 @@ Definition at line 50 of file show_document_modele.php.

                                    -Referenced by Creport::dots(), Cpdf::ellipse(), Cpdf::encryptInit(), Cezpdf::ezPRVTaddPageNumbers(), Document_modele::Get(), Document::Get(), Cpdf::md5_16(), Cpdf::o_contents(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_image(), Cpdf::o_pages(), Cpdf::openFont(), Cpdf::output(), Creport::rf(), Cpdf::selectFont(), Cpdf::stream(), and fiche::update(). +Referenced by Creport::dots(), Cpdf::ellipse(), Cpdf::encryptInit(), Cezpdf::ezPRVTaddPageNumbers(), Document_modele::Get(), Cpdf::md5_16(), Cpdf::o_contents(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_image(), Cpdf::o_pages(), Cpdf::openFont(), Cpdf::output(), Creport::rf(), Cpdf::selectFont(), Document::Send(), Cpdf::stream(), and fiche::update().

                                    @@ -216,7 +216,7 @@ Definition at line 43 of file show_document_modele.php. -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__fiche_8php-source.html b/doc/developper/html/show__fiche_8php-source.html new file mode 100644 index 000000000..4a9c01b15 --- /dev/null +++ b/doc/developper/html/show__fiche_8php-source.html @@ -0,0 +1,66 @@ + + +phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/html/show_fiche.php Source File + + + + + +

                                    show_fiche.php

                                    Go to the documentation of this file.
                                    00001 <?
                                    +00002 /*
                                    +00003  *   This file is part of PhpCompta.
                                    +00004  *
                                    +00005  *   PhpCompta is free software; you can redistribute it and/or modify
                                    +00006  *   it under the terms of the GNU General Public License as published by
                                    +00007  *   the Free Software Foundation; either version 2 of the License, or
                                    +00008  *   (at your option) any later version.
                                    +00009  *
                                    +00010  *   PhpCompta is distributed in the hope that it will be useful,
                                    +00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                                    +00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                    +00013  *   GNU General Public License for more details.
                                    +00014  *
                                    +00015  *   You should have received a copy of the GNU General Public License
                                    +00016  *   along with PhpCompta; if not, write to the Free Software
                                    +00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                                    +00018 */
                                    +00019 /* $Revision$ */
                                    +00020 
                                    +00021 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
                                    +00022 
                                    +00031 require_once ('class_user.php');
                                    +00032 require_once ('class_fiche.php');
                                    +00033 require_once ('postgres.php');
                                    +00034 require_once ('debug.php');
                                    +00035 require_once ('ac_common.php');
                                    +00036 require_once('class_widget.php');
                                    +00037 
                                    +00038 $User=new cl_user(DbConnect());
                                    +00039 $User->Check();
                                    +00040 html_page_start($_SESSION['g_theme'],"onLoad='window.focus();'");
                                    +00041 
                                    +00042 
                                    +00043 if ( ! isset ($_REQUEST['q'])) {
                                    +00044   echo 'appel invalide';
                                    +00045   exit();
                                    +00046 }
                                    +00047 // connect to the database
                                    +00048 $cn=DbConnect($_SESSION['g_dossier']);
                                    +00049 if ( $User->CheckAction($cn,FICHE_READ) == 0 ){
                                    +00050     /* Cannot Access */
                                    +00051     echo '<h2 class="error"> Vous n\' avez pas accès</h2>';
                                    +00052     return;
                                    +00053 }
                                    +00054 
                                    +00055 // Create a object fiche
                                    +00056 
                                    +00057 $f=new fiche($cn);
                                    +00058 $f->GetByQCode($_REQUEST['q'],false);
                                    +00059 echo $f->Display(true);
                                    +00060 ?>
                                    +

                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  + +doxygen 1.4.4
                                    + + diff --git a/doc/developper/html/show__fiche_8php.html b/doc/developper/html/show__fiche_8php.html new file mode 100644 index 000000000..ff9dbe2de --- /dev/null +++ b/doc/developper/html/show__fiche_8php.html @@ -0,0 +1,78 @@ + + +phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/html/show_fiche.php File Reference + + + + + +

                                    show_fiche.php File Reference

                                    +

                                    +Go to the source code of this file. + + + + + + +

                                    Variables

                                     $User = new cl_user(DbConnect())
                                     $cn = DbConnect($_SESSION['g_dossier'])
                                    +


                                    Detailed Description

                                    +This file show in a popup window the detail a of card in read only mode the parameter are q (for qcode) & PHPSESSID +

                                    +Definition in file show_fiche.php.


                                    Variable Documentation

                                    +

                                    + + + + +
                                    + + + + +
                                    $cn = DbConnect($_SESSION['g_dossier'])
                                    +
                                    + + + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 48 of file show_fiche.php.

                                    +

                                    + + + + +
                                    + + + + +
                                    $User = new cl_user(DbConnect())
                                    +
                                    + + + + + +
                                    +   + + +

                                    + +

                                    +Definition at line 38 of file show_fiche.php.

                                    +


                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  + +doxygen 1.4.4
                                    + + diff --git a/doc/developper/html/show__pj_8php-source.html b/doc/developper/html/show__pj_8php-source.html index 0e0ff348d..62bd47057 100644 --- a/doc/developper/html/show__pj_8php-source.html +++ b/doc/developper/html/show__pj_8php-source.html @@ -51,8 +51,8 @@ 00042 echo_error("Invalid operation id jr_grpt_id=$jr_grpt_id"); 00043 exit; 00044 } -00045 $a=pg_fetch_array($r,0); -00046 $jrn=$a['jr_def_id']; +00045 $a=pg_fetch_array($r,0); +00046 $jrn=$a['jr_def_id']; 00047 00048 if ($User->AccessJrn($cn,$jrn) == false ){ 00049 /* Cannot Access */ @@ -84,7 +84,7 @@ 00075 unlink ($tmp); 00076 00077 Commit($cn); -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__pj_8php.html b/doc/developper/html/show__pj_8php.html index eb4731c75..4c6f6fa54 100644 --- a/doc/developper/html/show__pj_8php.html +++ b/doc/developper/html/show__pj_8php.html @@ -313,7 +313,7 @@ Definition at line 37 Definition at line 43 of file show_pj.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__tva_8php-source.html b/doc/developper/html/show__tva_8php-source.html index e91715de6..f63d9fc99 100644 --- a/doc/developper/html/show__tva_8php-source.html +++ b/doc/developper/html/show__tva_8php-source.html @@ -72,7 +72,7 @@ 00067 <? 00068 html_page_stop(); 00069 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/show__tva_8php.html b/doc/developper/html/show__tva_8php.html index fa43d2160..39f4a6722 100644 --- a/doc/developper/html/show__tva_8php.html +++ b/doc/developper/html/show__tva_8php.html @@ -239,7 +239,7 @@ Definition at line 30 Definition at line 38 of file show_tva.php. -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/stock_8php-source.html b/doc/developper/html/stock_8php-source.html index ec149205e..81a14d74e 100644 --- a/doc/developper/html/stock_8php-source.html +++ b/doc/developper/html/stock_8php-source.html @@ -83,7 +83,7 @@ 00078 $sg_date=$_POST['sg_date']; 00079 if ( isDate($sg_date) == null 00080 or isNumber($change) == 0 ) { -00081 $msg="Stock données non conformes"; +00081 $msg="Stock données non conformes"; 00082 echo "<script> alert('$msg');</script>"; 00083 echo_error($msg); 00084 } else { @@ -123,7 +123,7 @@ 00118 // if year is not set then use the year of the user's periode 00119 if ( ! isset ($_GET['year']) ) { 00120 // get defaut periode -00121 $a=$User->GetPeriode(); +00121 $a=$User->GetPeriode(); 00122 // get exercice of periode 00123 $year=GetExercice($cn,$a); 00124 } else @@ -140,14 +140,14 @@ 00135 } 00136 $sg_code=(isset ($_GET['sg_code'] ))?$_GET['sg_code']:$_POST['sg_code']; 00137 $year=(isset($_GET['year']))?$_GET['year']:$_POST['year']; -00138 $a=ViewDetailStock($cn,$sg_code,$year); -00139 $b=ChangeStock($sg_code,$year); +00138 $a=ViewDetailStock($cn,$sg_code,$year); +00139 $b=ChangeStock($sg_code,$year); 00140 echo '<div class="u_redcontent">' ; -00141 echo $a; +00141 echo $a; 00142 echo 'Entrer la valeur qui doit augmenter ou diminuer le stock'; 00143 echo '<form action="stock.php" method="POST">'; -00144 echo $b; -00145 echo '<input type="submit" name="sub_change" value="Ok">'; +00144 echo $b; +00145 echo '<input type="submit" name="sub_change" value="Ok">'; 00146 echo '</form>'; 00147 echo '</div>'; 00148 exit(); @@ -173,14 +173,14 @@ 00168 // Show the current stock 00169 echo '<div class="u_redcontent">'; 00170 echo $r; -00171 $a=ViewStock($cn,$year); +00171 $a=ViewStock($cn,$year); 00172 if ( $a != null ) { -00173 echo $a; +00173 echo $a; 00174 } 00175 echo '</div>'; 00176 html_page_stop(); 00177 ?> -
                                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/stock_8php.html b/doc/developper/html/stock_8php.html index cd68b47bd..cf4f1c6a3 100644 --- a/doc/developper/html/stock_8php.html +++ b/doc/developper/html/stock_8php.html @@ -134,7 +134,7 @@ Definition at line 41 of

                                    Definition at line 67 of file stock.php.

                                    -Referenced by ShowMenuAdvanced(). +Referenced by ShowMenuAdvanced().

                                    @@ -212,7 +212,7 @@ Definition at line 153 of Definition at line 43 of file stock.php. -


                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/stock__inc_8php-source.html b/doc/developper/html/stock__inc_8php-source.html index be37ba883..613795398 100644 --- a/doc/developper/html/stock__inc_8php-source.html +++ b/doc/developper/html/stock__inc_8php-source.html @@ -45,22 +45,22 @@ 00050 00051 if ( ( $M = pg_NumRows($Res)) == 0 ) return null; 00052 // store it in a HTLM table -00053 $result="<table>"; -00054 $result.="<tr>"; -00055 $result.='<th>Code</th>'; -00056 $result.='<th>Noms</th>'; -00057 $result.='<th>Entrée</th>'; -00058 $result.='<th>Sortie</th>'; -00059 $result.='<th>Solde</th>'; -00060 $result.="</tr>"; +00053 $result="<table>"; +00054 $result.="<tr>"; +00055 $result.='<th>Code</th>'; +00056 $result.='<th>Noms</th>'; +00057 $result.='<th>Entrée</th>'; +00058 $result.='<th>Sortie</th>'; +00059 $result.='<th>Solde</th>'; +00060 $result.="</tr>"; 00061 00062 // Sql result => table 00063 for ($i = 0; $i < $M ; $i++ ) { 00064 $r=pg_fetch_array($Res,$i); -00065 $result.="<TR>"; +00065 $result.="<TR>"; 00066 00067 // sg_code and link to details -00068 $result.="<td>".'<a class="one" +00068 $result.="<td>".'<a class="one" 00069 HREF="stock.php?action=detail&sg_code='.$r['sg_code'].'&year='.$p_year.'">'. 00070 $r['sg_code']."</A></td>"; 00071 @@ -72,26 +72,26 @@ 00077 $name.=$element['av_text'].","; 00078 } 00079 }// if ( $a_name -00080 $result.="<td> $name </td>"; +00080 $result.="<td> $name </td>"; 00081 00082 // Debit (in) 00083 $deb=GetQuantity($p_cn,$r['sg_code'],$p_year,'d'); -00084 $result.="<td>".$deb."</td>"; +00084 $result.="<td>".$deb."</td>"; 00085 00086 // Credit (out) 00087 $cred=GetQuantity($p_cn,$r['sg_code'],$p_year,'c'); -00088 $result.="<td>".$cred."</td>"; +00088 $result.="<td>".$cred."</td>"; 00089 00090 00091 // diff 00092 $diff=$deb-$cred; -00093 $result.="<td>".$diff."</td>"; -00094 $result.="</tr>"; +00093 $result.="<td>".$diff."</td>"; +00094 $result.="</tr>"; 00095 00096 } -00097 $result.="</table>"; +00097 $result.="</table>"; 00098 -00099 return $result; +00099 return $result; 00100 } 00111 function getFicheNameCode ($p_cn,$p_sg_code) { 00112 // Sql stmt @@ -110,13 +110,13 @@ 00125 // Store in an array 00126 for ( $i=0; $i<$M;$i++) { 00127 $r=pg_fetch_array($Res,$i); -00128 $a['f_id']=$r['f_id']; -00129 $a['av_text']=$r['av_text']; -00130 $result[$i]=$a; +00128 $a['f_id']=$r['f_id']; +00129 $a['av_text']=$r['av_text']; +00130 $result[$i]=$a; 00131 00132 } 00133 -00134 return $result; +00134 return $result; 00135 00136 } 00147 function ViewDetailStock($p_cn,$p_sg_code,$p_year) { @@ -153,7 +153,7 @@ 00178 } 00179 }// if ( $a_name 00180 // Add java script for detail -00181 $r.=JS_VIEW_JRN_DETAIL; +00181 $r.=JS_VIEW_JRN_DETAIL; 00182 00183 $r.='<H2 class="info">'.$p_sg_code." Noms : ".$name.'</H2>'; 00184 @@ -224,10 +224,10 @@ 00259 function ChangeStock($p_sg_code,$p_year){ 00260 $sg_date=date("d.m.Y"); 00261 $r=' -00262 <input type="text" name="stock_change" value="0"> -00263 <input type="hidden" name="sg_code" value="'.$p_sg_code.'"> -00264 <input type="text" name="sg_date" value="'.$sg_date.'"> -00265 <input type="hidden" name="year" value="'.$p_year.'"> +00262 <input type="text" name="stock_change" value="0"> +00263 <input type="hidden" name="sg_code" value="'.$p_sg_code.'"> +00264 <input type="text" name="sg_date" value="'.$sg_date.'"> +00265 <input type="hidden" name="year" value="'.$p_year.'"> 00266 <br> 00267 '; 00268 return $r; @@ -248,7 +248,7 @@ 00288 return $value['result']; 00289 00290 } -
                                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                    Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                    diff --git a/doc/developper/html/stock__inc_8php.html b/doc/developper/html/stock__inc_8php.html index 5b8fad931..bfede742f 100644 --- a/doc/developper/html/stock__inc_8php.html +++ b/doc/developper/html/stock__inc_8php.html @@ -80,7 +80,7 @@ parm :

                                      Definition at line 259 of file stock_inc.php.

                                      -References $r, name, and value. +References $r, name, and value.

                                      @@ -132,7 +132,7 @@ return an array of f_id and f_name

                                      Definition at line 111 of file stock_inc.php.

                                      -References $a, $i, $r, $Res, $result, $sql, ExecSql(), and f_id. +References $a, $i, $r, $Res, $result, $sql, ExecSql(), and f_id.

                                      Referenced by ViewDetailStock(), and ViewStock(). @@ -300,10 +300,10 @@ show the listing of all goods

                                      Definition at line 35 of file stock_inc.php.

                                      -References $diff, $r, $Res, $result, $sql, ExecSql(), getFicheNameCode(), and GetQuantity(). +References $diff, $r, $Res, $result, $sql, ExecSql(), getFicheNameCode(), and GetQuantity(). -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/test_8php-source.html b/doc/developper/html/test_8php-source.html index ff9408ab3..75cd4fba1 100644 --- a/doc/developper/html/test_8php-source.html +++ b/doc/developper/html/test_8php-source.html @@ -43,7 +43,7 @@ 00034 include_once("ac_common.php"); 00035 include_once("postgres.php"); 00036 // Test the connection -00037 $a=DbConnect(); +00037 $a=DbConnect(); 00038 if ( $a==false) { 00039 exit ("<h2 class=\"error\">__LINE__ test has failed !!!</h2>"); 00040 @@ -61,7 +61,7 @@ 00052 // register_global 00053 foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { 00054 -00055 if ( ini_get($a) == false ) print $a.': Ok <br>'; +00055 if ( ini_get($a) == false ) print $a.': Ok <br>'; 00056 else { 00057 print ("<h2 class=\"error\">$a has a bad value !!!</h2>"); 00058 } @@ -75,7 +75,7 @@ 00066 echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>"; 00067 00068 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/test_8php.html b/doc/developper/html/test_8php.html index 9ef547bfd..a6d9be60b 100644 --- a/doc/developper/html/test_8php.html +++ b/doc/developper/html/test_8php.html @@ -68,7 +68,7 @@ Definition at line 37 of f Definition at line 45 of file test.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/test__smarty_8php-source.html b/doc/developper/html/test__smarty_8php-source.html index f134c7bb4..8bee424eb 100644 --- a/doc/developper/html/test__smarty_8php-source.html +++ b/doc/developper/html/test__smarty_8php-source.html @@ -17,12 +17,12 @@ 00008 $smarty->cache_dir = '../cache'; 00009 $smarty->config_dir = '../configs'; 00010 -00011 $smarty->assign('name', 'Stan'); +00011 $smarty->assign('name', 'Stan'); 00012 $smarty->display('index.tpl'); 00013 00014 ?> 00015 -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/test__smarty_8php.html b/doc/developper/html/test__smarty_8php.html index b67ee1e88..6fd6e2b3b 100644 --- a/doc/developper/html/test__smarty_8php.html +++ b/doc/developper/html/test__smarty_8php.html @@ -149,7 +149,7 @@ Definition at line 96 of file test_smarty.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/todo.html b/doc/developper/html/todo.html index 79c80df4e..51ed7c5fe 100644 --- a/doc/developper/html/todo.html +++ b/doc/developper/html/todo.html @@ -6,42 +6,47 @@

                                      Todo List

                                      +
                                      Global action::Confirm ()
                                      +
                                      add the hour
                                      +
                                      +

                                      +

                                      Global Customer::VatListing ($p_year)
                                      optimize SQL

                                      -

                                      +
                                      Global Document::Generate ()
                                      Carefull : the slash is not windows compliant

                                      -

                                      -
                                      Global Document::Replace ($p_tag)
                                      +
                                      +
                                      Global Document::Replace ($p_tag)
                                      verify that price and quant are numeric

                                      -

                                      -
                                      Global Document::Replace ($p_tag)
                                      +
                                      +
                                      Global Document::Replace ($p_tag)
                                      carefull round problem ?

                                      -

                                      -
                                      Global Document::Replace ($p_tag)
                                      +
                                      +
                                      Global Document::Replace ($p_tag)
                                      verify that price and quant are numeric

                                      -

                                      -
                                      Global Document::Replace ($p_tag)
                                      +
                                      +
                                      Global Document::Replace ($p_tag)
                                      carefull round problem ?

                                      -

                                      +
                                      Global fiche::update ()
                                      add a check to return an error and rollback operation

                                      -

                                      +
                                      File user_advanced.php
                                      Obsolete ?
                                      @@ -51,32 +56,32 @@
                                      some of those tools are redundant with the class user and should be cleaned

                                      -

                                      +
                                      File fiche_inc.php
                                      remove this file but adapt first the pages which needs those function and complete the class_fiche.php

                                      -

                                      +
                                      File periode.inc.php
                                      check if obsolete

                                      -

                                      +
                                      Global GetNumberLine
                                      obsolete ?

                                      -

                                      +
                                      Global ShowMenuCompta
                                      clean param p_dossier

                                      -

                                      +
                                      Global ShowMenuFiche
                                      Only for developper A test must be added
                                      -
                                      Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:38 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/tva_8inc_8php-source.html b/doc/developper/html/tva_8inc_8php-source.html index fd96b8c04..dbaffd803 100644 --- a/doc/developper/html/tva_8inc_8php-source.html +++ b/doc/developper/html/tva_8inc_8php-source.html @@ -130,8 +130,8 @@ 00127 echo "</TD>"; 00128 00129 echo "<TD>"; -00130 echo '<input type="submit" name="rm" value="Efface">'; -00131 echo '<input type="submit" name="mod" value="Modifie">'; +00130 echo '<input type="submit" name="rm" value="Efface">'; +00131 echo '<input type="submit" name="mod" value="Modifie">'; 00132 $w=new widget("hidden"); 00133 $w->name="tva_id"; 00134 $w->value=$row['tva_id']; @@ -155,8 +155,8 @@ 00152 00153 ) { ?> 00154 <form method="post"> -00155 <input type="submit" name="add" value="Ajouter un taux de tva"> -00156 <input type="hidden" name="p_action" value="tva"> +00155 <input type="submit" name="add" value="Ajouter un taux de tva"> +00156 <input type="hidden" name="p_action" value="tva"> 00157 </form> 00158 <? 00159 } @@ -178,7 +178,7 @@ 00176 <th>Poste</th> 00177 </tr> 00178 <tr> -00179 <td> <? echo $a[$index]['tva_label']; ?></td> +00179 <td> <? echo $a[$index]['tva_label']; ?></td> 00180 <td> <? echo $a[$index]['tva_rate']; ?></td> 00181 <td> <? echo $a[$index]['tva_comment']; ?></td> 00182 <td> <? echo $a[$index]['tva_poste']; ?></td> @@ -186,9 +186,9 @@ 00184 </table> 00185 <? 00186 echo '<FORM method="post">'; -00187 echo '<input type="hidden" name="tva_id" value="'.$index.'">'; -00188 echo '<input type="submit" name="confirm_rm" value="Confirme">'; -00189 echo '<input type="submit" value="Cancel" name="no">'; +00187 echo '<input type="hidden" name="tva_id" value="'.$index.'">'; +00188 echo '<input type="submit" name="confirm_rm" value="Confirme">'; +00189 echo '<input type="submit" value="Cancel" name="no">'; 00190 echo "</form>"; 00191 00192 } @@ -217,8 +217,8 @@ 00216 <td> <? $w=new widget("text"); $w->size=10;echo $w->IOValue('tva_poste','') ?></td> 00217 </Tr> 00218 </table> -00219 <input type="submit" value="Confirme" name="confirm_add"> -00220 <input type="submit" value="Cancel" name="no"> +00219 <input type="submit" value="Confirme" name="confirm_add"> +00220 <input type="submit" value="Cancel" name="no"> 00221 00222 </FORM> 00223 <? } @@ -232,7 +232,7 @@ 00232 $index=$_POST['tva_id']; 00233 00234 echo '<FORM method="post">'; -00235 echo '<input type="hidden" name="tva_id" value="'.$index.'">'; +00235 echo '<input type="hidden" name="tva_id" value="'.$index.'">'; 00236 ?> 00237 <table> 00238 <TR> @@ -249,14 +249,14 @@ 00249 <td> <? $w=new widget("text");$w->size=5; echo $w->IOValue('tva_poste',$a[$index]['tva_poste']) ?></td> 00250 </Tr> 00251 </table> -00252 <input type="submit" value="Confirme" name="confirm_mod"> -00253 <input type="submit" value="Cancel" name="no"> +00252 <input type="submit" value="Confirme" name="confirm_mod"> +00253 <input type="submit" value="Cancel" name="no"> 00254 </FORM> 00255 <? 00256 } 00257 00258 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/tva_8inc_8php.html b/doc/developper/html/tva_8inc_8php.html index d10cf520b..a0b7f0a96 100644 --- a/doc/developper/html/tva_8inc_8php.html +++ b/doc/developper/html/tva_8inc_8php.html @@ -412,7 +412,7 @@ Definition at line 132

                                      Definition at line 215 of file tva.inc.php.

                                      -Referenced by widget::widget(). +Referenced by widget::widget().

                                      @@ -464,7 +464,7 @@ Definition at line 133

                                      Definition at line 212 of file tva.inc.php.

                                      -Referenced by Cezpdf::Cezpdf(), Creport::dots(), EncodeForm(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezPrvtGetTextWidth(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezText(), jrn_navigation_bar(), ShowFormTransfert(), u_ShowMenuRecherche(), VerifImport(), and widget::widget(). +Referenced by Cezpdf::Cezpdf(), Creport::dots(), EncodeForm(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezPrvtGetTextWidth(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezText(), jrn_navigation_bar(), ShowFormTransfert(), u_ShowMenuRecherche(), VerifImport(), and widget::widget().

                                      @@ -516,10 +516,10 @@ Definition at line 134

                                      Definition at line 215 of file tva.inc.php.

                                      -Referenced by Cezpdf::ezColumnsStart(), Cezpdf::ezImage(), Cezpdf::ezNewPage(), Cezpdf::ezTable(), Cpdf::filledRectangle(), Cpdf::rectangle(), Cpdf::selectFont(), Cpdf::setLineStyle(), ShowMenuCompta(), ShowMenuParam(), VerifImport(), and widget::widget(). +Referenced by Cezpdf::ezColumnsStart(), Cezpdf::ezImage(), Cezpdf::ezNewPage(), Cezpdf::ezTable(), Cpdf::filledRectangle(), Cpdf::rectangle(), Cpdf::selectFont(), Cpdf::setLineStyle(), ShowMenuCompta(), ShowMenuParam(), VerifImport(), and widget::widget(). -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ach_8php-source.html b/doc/developper/html/user__action__ach_8php-source.html index e909554b7..8f2276d76 100644 --- a/doc/developper/html/user__action__ach_8php-source.html +++ b/doc/developper/html/user__action__ach_8php-source.html @@ -103,8 +103,8 @@ 00097 if ( isset ($_POST['view_invoice']) and 00098 ! isset ($_POST['save'])) { 00099 $nb_number=$_POST["nb_item"]; -00100 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; -00101 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; +00100 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; +00101 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; 00102 if ( form_verify_input ($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true ) { 00103 // Should use a read only view instead of FormAch 00104 // where we can check @@ -166,7 +166,7 @@ 00160 00161 $w=new widget("select"); 00162 $w->name="p_periode"; -00163 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00163 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00164 $User=new cl_user($cn); 00165 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00166 $w->selected=$current; @@ -180,21 +180,21 @@ 00174 { 00175 // reset all the paid flag because the checkbox is post only 00176 // when checked -00177 foreach ($_POST as $name=>$paid) +00177 foreach ($_POST as $name=>$paid) 00178 { -00179 list($ad) = sscanf($name,"set_jr_id%d"); +00179 list($ad) = sscanf($name,"set_jr_id%d"); 00180 if ( $ad == null ) continue; 00181 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00182 $Res=ExecSql($cn,$sql); 00183 00184 } 00185 // set a paid flag for the checked box -00186 foreach ($_POST as $name=>$paid) +00186 foreach ($_POST as $name=>$paid) 00187 { -00188 list ($id) = sscanf ($name,"rd_paid%d"); +00188 list ($id) = sscanf ($name,"rd_paid%d"); 00189 00190 if ( $id == null ) continue; -00191 echo "Mise à jour $id"; +00191 00192 $paid=($paid=='on')?'paid':''; 00193 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00194 $Res=ExecSql($cn,$sql); @@ -205,7 +205,7 @@ 00199 // Show list of sell 00200 echo_debug ("user_action_ach.php"); 00201 // Date - date of payment - Customer - amount -00202 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; +00202 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; 00203 00204 $step=$_SESSION['g_pagesize']; 00205 $page=(isset($_GET['offset']))?$_GET['page']:1; @@ -235,18 +235,18 @@ 00229 { 00230 // reset all the paid flag because the checkbox is post only 00231 // when checked -00232 foreach ($_POST as $name=>$paid) +00232 foreach ($_POST as $name=>$paid) 00233 { -00234 list($ad) = sscanf($name,"set_jr_id%d"); +00234 list($ad) = sscanf($name,"set_jr_id%d"); 00235 if ( $ad == null ) continue; 00236 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00237 $Res=ExecSql($cn,$sql); 00238 00239 } 00240 // set a paid flag for the checked box -00241 foreach ($_POST as $name=>$paid) +00241 foreach ($_POST as $name=>$paid) 00242 { -00243 list ($id) = sscanf ($name,"rd_paid%d"); +00243 list ($id) = sscanf ($name,"rd_paid%d"); 00244 00245 if ( $id == null ) continue; 00246 echo "Mise à jour $id"; @@ -259,7 +259,7 @@ 00253 00254 // Show list of unpaid sell 00255 // Date - date of payment - Customer - amount -00256 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; +00256 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; 00257 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00258 $step=$_SESSION['g_pagesize']; 00259 $page=(isset($_GET['offset']))?$_GET['page']:1; @@ -268,7 +268,7 @@ 00262 // $bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); 00263 00264 -00265 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; +00265 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; 00266 list ($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); 00267 00268 // Get the max line @@ -315,13 +315,13 @@ 00309 // if nofirst is set then show result 00310 if ( isset ($_GET['nofirst'] ) ) { 00311 list ($max_line,$a)=ListJrn($cn,$_GET['p_jrn'],"",$_POST); -00312 echo $a; +00312 echo $a; 00313 } 00314 echo '</DIV>'; 00315 } 00316 include("user_update.php"); 00317 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ach_8php.html b/doc/developper/html/user__action__ach_8php.html index 372b8f2c0..c8e3a6174 100644 --- a/doc/developper/html/user__action__ach_8php.html +++ b/doc/developper/html/user__action__ach_8php.html @@ -341,7 +341,7 @@ Definition at line 52 of file user_action_ach.php.

                                      -Referenced by Document::a_ref(), fiche::blank(), ChangeStock(), cl_user::Check(), ComputeTotalVat(), action::Confirm(), Document_modele::Delete(), parm_code::Display(), fiche_def_ref::Display(), fiche::Display(), fiche_def::Display(), action::Display(), Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), fiche_def_ref::Get(), Document_type::get(), GetArray(), fiche::GetByQCode(), GetConcerned(), jrn::GetDefLine(), GetDossierName(), getFicheNameCode(), GetGrpt(), poste::GetName(), fiche::getName(), Balance::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaRate(), parm_code::Input(), fiche_def_ref::Input(), InsertStockGoods(), widget::IOValue(), jrn_navigation_bar(), ListJrn(), parm_code::LoadAll(), make_array(), Document_modele::myList(), action::myList(), new_fiche(), RecordInvoice(), RecordSell(), Document::Replace(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), ShowActionList(), ShowMenuAdvanced(), ShowMenuCompta(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), TransferCSV(), u_ShowMenuRecherche(), UpdateJrn(), Document::Upload(), ViewDetailStock(), and ViewStock(). +Referenced by Document::a_ref(), fiche::blank(), ChangeStock(), cl_user::Check(), ComputeTotalVat(), action::Confirm(), Document_modele::Delete(), parm_code::Display(), fiche_def_ref::Display(), fiche::Display(), fiche_def::Display(), action::Display(), Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), poste::get(), fiche_def_ref::Get(), Document_type::get(), action::get(), GetArray(), fiche::GetByQCode(), GetConcerned(), jrn::GetDefLine(), GetDossierName(), cl_user::getExercice(), getFicheNameCode(), GetGrpt(), poste::GetName(), fiche::getName(), Balance::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaRate(), parm_code::Input(), fiche_def_ref::Input(), InsertStockGoods(), widget::IOValue(), jrn_navigation_bar(), ListJrn(), parm_code::LoadAll(), make_array(), Document_modele::myList(), action::myList(), new_fiche(), RecordInvoice(), RecordSell(), Document::Replace(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), ShowActionList(), ShowMenuAdvanced(), ShowMenuCompta(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), TransferCSV(), u_ShowMenuRecherche(), UpdateJrn(), Document::Upload(), ViewDetailStock(), and ViewStock().

                                      @@ -648,7 +648,7 @@ Definition at line 149 of file user_action_ach.php. -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__fin_8php-source.html b/doc/developper/html/user__action__fin_8php-source.html index a13f222dc..1469ea94d 100644 --- a/doc/developper/html/user__action__fin_8php-source.html +++ b/doc/developper/html/user__action__fin_8php-source.html @@ -107,8 +107,8 @@ 00104 // View the charge and show a submit button to save it 00105 if ( isset ($_POST['view_invoice']) ) { 00106 $nb_number=$_POST["nb_item"]; -00107 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; -00108 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; +00107 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; +00108 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; 00109 $r=form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); 00110 // if something goes wrong correct it 00111 if ( $r == null ) @@ -178,7 +178,7 @@ 00177 00178 $w=new widget("select"); 00179 -00180 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00180 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00181 $User=new cl_user($cn); 00182 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00183 $w->selected=$current; @@ -191,7 +191,7 @@ 00190 // Show list of sell 00191 echo_debug ("user_action_jrn.php"); 00192 // Date - date of payment - Customer - amount -00193 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; +00193 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; 00194 00195 // Nav. bar 00196 $step=$_SESSION['g_pagesize']; @@ -249,7 +249,7 @@ 00251 00252 00253 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__fin_8php.html b/doc/developper/html/user__action__fin_8php.html index 1855f1ebf..1235f8e93 100644 --- a/doc/developper/html/user__action__fin_8php.html +++ b/doc/developper/html/user__action__fin_8php.html @@ -701,7 +701,7 @@ Definition at line 165 of file user_action_fin.php. -
                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__gl_8php-source.html b/doc/developper/html/user__action__gl_8php-source.html index a6da55e5d..03f872a80 100644 --- a/doc/developper/html/user__action__gl_8php-source.html +++ b/doc/developper/html/user__action__gl_8php-source.html @@ -55,7 +55,7 @@ 00050 00051 $w=new widget("select"); 00052 -00053 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00053 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00054 $User=new cl_user($cn); 00055 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00056 $w->selected=$current; @@ -64,7 +64,7 @@ 00059 </form> 00060 <? 00061 -00062 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current; +00062 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current; 00063 // Nav. bar 00064 $step=$_SESSION['g_pagesize']; 00065 $page=(isset($_GET['offset']))?$_GET['page']:1; @@ -80,7 +80,7 @@ 00075 00076 ?> 00077 </div> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__gl_8php.html b/doc/developper/html/user__action__gl_8php.html index 40ac053f9..9127aef3c 100644 --- a/doc/developper/html/user__action__gl_8php.html +++ b/doc/developper/html/user__action__gl_8php.html @@ -426,7 +426,7 @@ Definition at line 44 of file user_action_gl.php. -
                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ods_8php-source.html b/doc/developper/html/user__action__ods_8php-source.html index d63b1be41..fb40a75ab 100644 --- a/doc/developper/html/user__action__ods_8php-source.html +++ b/doc/developper/html/user__action__ods_8php-source.html @@ -107,8 +107,8 @@ 00102 // 'submit_od', no? 00103 if ( isset ($_POST['view_invoice']) ) { 00104 $nb_number=$_POST["nb_item"]; -00105 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; -00106 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; +00105 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; +00106 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; 00107 00108 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number); 00109 @@ -178,7 +178,7 @@ 00173 00174 $w=new widget("select"); 00175 -00176 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00176 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00177 $User=new cl_user($cn); 00178 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00179 $w->selected=$current; @@ -187,7 +187,7 @@ 00182 ?> 00183 </form> 00184 <? -00185 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; +00185 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; 00186 $step=$_SESSION['g_pagesize']; 00187 $page=(isset($_GET['offset']))?$_GET['page']:1; 00188 $offset=(isset($_GET['offset']))?$_GET['offset']:0; @@ -217,13 +217,13 @@ 00212 // if nofirst is set then show result 00213 if ( isset ($_GET['nofirst'] ) ) { 00214 list ($max_line,$a)=ListJrn($cn,$_GET['p_jrn'],"",$HTTP_POST_VARS); -00215 echo $a; +00215 echo $a; 00216 } 00217 echo '</DIV>'; 00218 } 00219 include("user_update.php"); 00220 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ods_8php.html b/doc/developper/html/user__action__ods_8php.html index e93be03e5..893f0e904 100644 --- a/doc/developper/html/user__action__ods_8php.html +++ b/doc/developper/html/user__action__ods_8php.html @@ -588,7 +588,7 @@ Definition at line 160 of file user_action_ods.php. -
                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ven_8php-source.html b/doc/developper/html/user__action__ven_8php-source.html index fe515392b..d6e4b69d1 100644 --- a/doc/developper/html/user__action__ven_8php-source.html +++ b/doc/developper/html/user__action__ven_8php-source.html @@ -172,7 +172,7 @@ 00166 00167 $w=new widget("select"); 00168 -00169 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00169 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00170 // User is already set User=new cl_user($cn); 00171 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); 00172 $w->selected=$current; @@ -186,21 +186,21 @@ 00180 { 00181 // reset all the paid flag because the checkbox is post only 00182 // when checked -00183 foreach ($_POST as $name=>$paid) +00183 foreach ($_POST as $name=>$paid) 00184 { -00185 list($ad) = sscanf($name,"set_jr_id%d"); +00185 list($ad) = sscanf($name,"set_jr_id%d"); 00186 if ( $ad == null ) continue; 00187 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00188 $Res=ExecSql($cn,$sql); 00189 00190 } 00191 // set a paid flag for the checked box -00192 foreach ($_POST as $name=>$paid) +00192 foreach ($_POST as $name=>$paid) 00193 { -00194 list ($id) = sscanf ($name,"rd_paid%d"); +00194 list ($id) = sscanf ($name,"rd_paid%d"); 00195 00196 if ( $id == null ) continue; -00197 echo "Mise à jour $id"; +00197 00198 $paid=($paid=='on')?'paid':''; 00199 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00200 $Res=ExecSql($cn,$sql); @@ -209,7 +209,7 @@ 00203 } 00204 // Show list of sell 00205 // Date - date of payment - Customer - amount -00206 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; +00206 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; 00207 $step=$_SESSION['g_pagesize']; 00208 $page=(isset($_GET['offset']))?$_GET['page']:1; 00209 $offset=(isset($_GET['offset']))?$_GET['offset']:0; @@ -254,18 +254,18 @@ 00248 { 00249 // reset all the paid flag because the checkbox is post only 00250 // when checked -00251 foreach ($_POST as $name=>$paid) +00251 foreach ($_POST as $name=>$paid) 00252 { -00253 list($ad) = sscanf($name,"set_jr_id%d"); +00253 list($ad) = sscanf($name,"set_jr_id%d"); 00254 if ( $ad == null ) continue; 00255 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00256 $Res=ExecSql($cn,$sql); 00257 00258 } 00259 // set a paid flag for the checked box -00260 foreach ($_POST as $name=>$paid) +00260 foreach ($_POST as $name=>$paid) 00261 { -00262 list ($id) = sscanf ($name,"rd_paid%d"); +00262 list ($id) = sscanf ($name,"rd_paid%d"); 00263 00264 if ( $id == null ) continue; 00265 echo "Mise à jour $id"; @@ -283,9 +283,9 @@ 00277 $page=(isset($_GET['offset']))?$_GET['page']:1; 00278 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00279 -00280 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; +00280 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; 00281 list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); -00282 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; +00282 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; 00283 list($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); 00284 00285 // Get the max line @@ -317,7 +317,7 @@ 00311 echo $hid->IOValue(); 00312 00313 -00314 echo $list; +00314 00315 if ( $m != 0 ) 00316 echo $hid->Submit('paid','Mise à jour paiement'); 00317 @@ -327,7 +327,7 @@ 00321 00322 include("user_update.php"); 00323 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__action__ven_8php.html b/doc/developper/html/user__action__ven_8php.html index 551885ca2..64fa62f76 100644 --- a/doc/developper/html/user__action__ven_8php.html +++ b/doc/developper/html/user__action__ven_8php.html @@ -644,7 +644,7 @@ Definition at line 153 of file user_action_ven.php. -
                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__advanced_8php-source.html b/doc/developper/html/user__advanced_8php-source.html index 369498286..5b6689fad 100644 --- a/doc/developper/html/user__advanced_8php-source.html +++ b/doc/developper/html/user__advanced_8php-source.html @@ -71,7 +71,7 @@ 00067 00068 html_page_stop(); 00069 ?> -
                                      Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__advanced_8php.html b/doc/developper/html/user__advanced_8php.html index 7de6353cd..e37ac2a4c 100644 --- a/doc/developper/html/user__advanced_8php.html +++ b/doc/developper/html/user__advanced_8php.html @@ -22,7 +22,7 @@

                                      Detailed Description

                                      Obsolete.

                                      -

                                      Todo:
                                      Obsolete ?
                                      +
                                      Todo:
                                      Obsolete ?

                                      Definition in file user_advanced.php.


                                      Variable Documentation

                                      @@ -76,7 +76,7 @@ Definition at line 3 Definition at line 36 of file user_advanced.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__common_8php-source.html b/doc/developper/html/user__common_8php-source.html index 2ee3ad94f..ba71b3c59 100644 --- a/doc/developper/html/user__common_8php-source.html +++ b/doc/developper/html/user__common_8php-source.html @@ -65,7 +65,7 @@ 00089 } 00090 else 00091 { -00092 $tva_id=GetFicheAttribut($p_cn,$element,ATTR_DEF_TVA); +00092 $tva_id=GetFicheAttribut($p_cn,$element,ATTR_DEF_TVA); 00093 echo_debug('user_common',__LINE__,'retrieve tva_id'); 00094 } 00095 echo_debug('user_common',__LINE__,"tva id $tva_id"); @@ -77,7 +77,7 @@ 00101 if ( $a_vat != null and $a_vat['tva_id'] != "" ) 00102 { 00103 $flag=true; -00104 $a=$a_vat['tva_id']; +00104 $a=$a_vat['tva_id']; 00105 // Compute vat for this item 00106 $vat_amount=round($a_price[$idx]*$a_vat['tva_rate']*$a_quant[$idx],2); 00107 @@ -88,7 +88,7 @@ 00112 // used when a card has both special rule for vat 00113 $nd1=0; 00114 // if a part is not deductible then reduce vat_amount -00115 $nd=GetFicheAttribut($p_cn,$a_fiche[$idx],ATTR_DEF_TVA_NON_DEDUCTIBLE); +00115 $nd=GetFicheAttribut($p_cn,$a_fiche[$idx],ATTR_DEF_TVA_NON_DEDUCTIBLE); 00116 if ( $nd != null && strlen(trim($nd)) != 0 && $nd != 0 ) 00117 { 00118 $nd_amount=round($a_price[$idx]*$a_vat['tva_rate']*$a_quant[$idx]*$nd,2); @@ -102,7 +102,7 @@ 00126 $nd1=$nd; 00127 } 00128 // if a part is not deductible then reduce vat_amount -00129 $nd=GetFicheAttribut($p_cn,$a_fiche[$idx],ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); +00129 $nd=GetFicheAttribut($p_cn,$a_fiche[$idx],ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); 00130 if ( $nd != null && strlen(trim($nd)) != 0 && $nd != 0 ) 00131 { 00132 $nd_amount2=round($a_price[$idx]*$a_vat['tva_rate']*$a_quant[$idx]*$nd,2); @@ -119,7 +119,7 @@ 00143 } 00144 } 00145 -00146 $r[$a]=isset ( $r[$a] )?$r[$a]+$vat_amount:$vat_amount; +00146 $r[$a]=isset ( $r[$a] )?$r[$a]+$vat_amount:$vat_amount; 00147 } 00148 00149 } @@ -136,7 +136,7 @@ 00176 if ( $p_vat != null and isNumber($p_vat)== 1 and $p_vat != -1) 00177 $tva_id=$p_vat; 00178 else -00179 $tva_id=GetFicheAttribut($p_cn,$p_fiche,ATTR_DEF_TVA); +00179 $tva_id=GetFicheAttribut($p_cn,$p_fiche,ATTR_DEF_TVA); 00180 00181 echo_debug('user_common',__LINE__,"ComputeVat tva id = $tva_id"); 00182 if ( $tva_id == null ) return -1; @@ -146,7 +146,7 @@ 00186 // Get the attribut price of the card(fiche) 00187 if ( $a_vat != null and $a_vat['tva_id'] != "" ) 00188 { -00189 $a=$a_vat['tva_id']; +00189 $a=$a_vat['tva_id']; 00190 $vat_amount=$p_price*$a_vat['tva_rate']*$p_quant; 00191 } 00192 echo_debug('user_common',__LINE__,'return '.round($vat_amount,2)); @@ -159,7 +159,7 @@ 00211 function GetTvaPoste($p_cn,$p_tva_id,$p_cred) { 00212 $Res=ExecSql($p_cn,"select tva_poste from tva_rate where tva_id=$p_tva_id"); 00213 if ( pg_NumRows($Res) == 0 ) return null; -00214 $a=pg_fetch_array($Res,0); +00214 $a=pg_fetch_array($Res,0); 00215 list ($deb,$cred)=split(",",$a['tva_poste']); 00216 if ( $p_cred=='c' ) return $cred; 00217 if ($p_cred=='d') return $deb; @@ -345,9 +345,9 @@ 00448 //this function returns a tree structure. 00449 00450 $r=""; -00451 $r.=JS_VIEW_JRN_DETAIL; -00452 $r.=JS_VIEW_JRN_CANCEL; -00453 $r.=JS_VIEW_JRN_MODIFY; +00451 $r.=JS_VIEW_JRN_DETAIL; +00452 $r.=JS_VIEW_JRN_CANCEL; +00453 $r.=JS_VIEW_JRN_MODIFY; 00454 00455 $Max=pg_NumRows($Res); 00456 @@ -377,9 +377,9 @@ 00480 00481 $row=pg_fetch_array($Res,$i); 00482 -00483 if ( $i % 2 == 0 ) $tr='<TR class="odd">'; -00484 else $tr='<TR class="even">'; -00485 $r.=$tr; +00483 if ( $i % 2 == 0 ) $tr='<TR class="odd">'; +00484 else $tr='<TR class="even">'; +00485 $r.=$tr; 00486 //internal code 00487 // button modify 00488 $r.="<TD>"; @@ -434,7 +434,7 @@ 00537 } 00538 00539 // Rapprochement -00540 $a=GetConcerned($p_cn,$row['jr_id']); +00540 $a=GetConcerned($p_cn,$row['jr_id']); 00541 $r.="<TD>"; 00542 if ( $a != null ) { 00543 // $r.="operation concernée "; @@ -478,7 +478,7 @@ 00597 { 00598 echo_debug('user_common.php',__LINE__,"function InsertStockGoods($p_cn,$p_j_id,$p_good,$p_quant,$p_type)"); 00599 // Retrieve the good account for stock -00600 $code_marchandise=GetFicheAttribut($p_cn,$p_good,ATTR_DEF_STOCK); +00600 $code_marchandise=GetFicheAttribut($p_cn,$p_good,ATTR_DEF_STOCK); 00601 $sql="select f_id from vw_poste_qcode where j_qcode='$p_good'"; 00602 $Res=ExecSql($p_cn,$sql); 00603 $r=pg_fetch_array($Res,0); @@ -498,7 +498,7 @@ 00617 } 00631 function withStock($p_cn,$p_f_id) 00632 { -00633 $a=getFicheAttribut($p_cn,$p_f_id, ATTR_DEF_STOCK); +00633 $a=getFicheAttribut($p_cn,$p_f_id, ATTR_DEF_STOCK); 00634 if ( $a == "1" ) return true; 00635 return false; 00636 @@ -520,7 +520,7 @@ 00668 if ( cmpDate($p_date,$l_date_start)<0 || 00669 cmpDate($p_date,$l_date_end)>0 ) 00670 { -00671 $msg="Not in the active periode please change your preference"; +00671 $msg="Not in the active periode please change your preference"; 00672 echo_error($msg); echo_error($msg); 00673 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00674 return null; @@ -528,7 +528,7 @@ 00676 // Periode fermée 00677 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) 00678 { -00679 $msg="This periode is closed please change your preference"; +00679 $msg="This periode is closed please change your preference"; 00680 echo_error($msg); echo_error($msg); 00681 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00682 return null; @@ -536,169 +536,168 @@ 00684 return $p_date; 00685 } 00686 -00700 function InsertRapt($p_cn,$jr_id,$jr_id2) { -00701 if ( isNumber($jr_id) == 0 or -00702 isNumber($jr_id2) == 0 ) -00703 { -00704 echo_error(" InsertRapt : invalid jr_id $jr_id, jr_id2 $jr_id2"); -00705 echo_debug('user_common.php',__LINE__," InsertRapt : invalid jr_id $jr_id, jr_id2 $jr_id2"); -00706 return false; -00707 } -00708 // verify if exists -00709 if ( CountSql($p_cn,"select jra_id from jrn_rapt where jra_concerned=$jr_id and jr_id=$jr_id2 -00710 union -00711 select jra_id from jrn_rapt where jra_concerned=$jr_id2 and jr_id=$jr_id ") ==0) -00712 { -00713 // Ok we can insert -00714 $Res=ExecSql($p_cn,"insert into jrn_rapt(jr_id,jra_concerned) values ($jr_id,$jr_id2)"); -00715 } -00716 return true; -00717 } -00731 function DeleteRapt($p_cn,$jr_id,$jr_id2) { -00732 echo_debug('user_common.php',__LINE__,"DeleteRapt($p_cn,$jr_id,$jr_id2) "); -00733 if ( isNumber($jr_id) == 0 or -00734 isNumber($jr_id2) == 0 ) -00735 { -00736 echo_error(" InsertRapt : invalid jr_id jr_id = $jr_id jr_id2 = $jr_id2"); -00737 return; -00738 } -00739 // verify if exists -00740 if ( CountSql($p_cn,"select jra_id from jrn_rapt where jra_concerned=$jr_id and jr_id=$jr_id2 -00741 union -00742 select jra_id from jrn_rapt where jra_concerned=$jr_id2 and jr_id=$jr_id ") !=0) -00743 { -00744 // Ok we can insert -00745 $Res=ExecSql($p_cn,"delete from jrn_rapt where (jra_concerned=$jr_id2 and jr_id=$jr_id) or -00746 (jra_concerned=$jr_id and jr_id=$jr_id2) "); -00747 } -00748 } -00749 -00762 function GetConcerned ($p_cn, $jr_id) { -00763 $sql=" select jr_id as cn from jrn_rapt where jra_concerned=$jr_id -00764 union -00765 select jra_concerned as cn from jrn_rapt where jr_id=$jr_id"; -00766 $Res=ExecSql($p_cn,$sql); -00767 -00768 // If nothing is found return null -00769 $n=pg_NumRows($Res); -00770 -00771 if ($n ==0 ) return null; -00772 -00773 // put everything in an array -00774 for ($i=0;$i<$n;$i++) { -00775 $l=pg_fetch_array($Res,$i); -00776 $r[$i]=$l['cn']; -00777 } -00778 return $r; -00779 } -00793 function GetGrpt($p_cn,$p_jr_id) -00794 { -00795 $Res=ExecSql($p_cn,"select jr_grpt_id from jrn where jr_id=".$p_jr_id); -00796 if ( pg_NumRows($Res) == 0 ) { -00797 return null; -00798 } -00799 $r=pg_fetch_array($Res,0); -00800 return $r['jr_grpt_id']; -00801 } -00815 function UpdateComment ($p_cn,$p_jr_id,$p_comment) { -00816 $p_comment=FormatString($p_comment); -00817 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$p_comment."' -00818 where jr_id = $p_jr_id"); -00819 -00820 } -00821 -00835 function isValid ($p_cn,$p_grpt_id) { -00836 $Res=ExecSql($p_cn,"select jr_valid from jrn where jr_grpt_id=$p_grpt_id"); +00699 function InsertRapt($p_cn,$jr_id,$jr_id2) { +00700 if ( isNumber($jr_id) == 0 || isNumber($jr_id2) == 0 ) +00701 { +00702 echo_error(" InsertRapt : invalid jr_id $jr_id, jr_id2 $jr_id2"); +00703 echo_debug('user_common.php',__LINE__," InsertRapt : invalid jr_id $jr_id, jr_id2 $jr_id2"); +00704 return false; +00705 } +00706 // verify if exists +00707 if ( CountSql($p_cn,"select jra_id from jrn_rapt where jra_concerned=$jr_id and jr_id=$jr_id2 +00708 union +00709 select jra_id from jrn_rapt where jra_concerned=$jr_id2 and jr_id=$jr_id ") ==0) +00710 { +00711 // Ok we can insert +00712 $Res=ExecSql($p_cn,"insert into jrn_rapt(jr_id,jra_concerned) values ($jr_id,$jr_id2)"); +00713 } +00714 return true; +00715 } +00727 function DeleteRapt($p_cn,$jr_id,$jr_id2) { +00728 echo_debug('user_common.php',__LINE__,"DeleteRapt($p_cn,$jr_id,$jr_id2) "); +00729 if ( isNumber($jr_id) == 0 or +00730 isNumber($jr_id2) == 0 ) +00731 { +00732 echo_error(" InsertRapt : invalid jr_id jr_id = $jr_id jr_id2 = $jr_id2"); +00733 return; +00734 } +00735 // verify if exists +00736 if ( CountSql($p_cn,"select jra_id from jrn_rapt where jra_concerned=$jr_id and jr_id=$jr_id2 +00737 union +00738 select jra_id from jrn_rapt where jra_concerned=$jr_id2 and jr_id=$jr_id ") !=0) +00739 { +00740 // Ok we can insert +00741 $Res=ExecSql($p_cn,"delete from jrn_rapt where (jra_concerned=$jr_id2 and jr_id=$jr_id) or +00742 (jra_concerned=$jr_id and jr_id=$jr_id2) "); +00743 } +00744 } +00745 +00758 function GetConcerned ($p_cn, $jr_id) { +00759 $sql=" select jr_id as cn from jrn_rapt where jra_concerned=$jr_id +00760 union +00761 select jra_concerned as cn from jrn_rapt where jr_id=$jr_id"; +00762 $Res=ExecSql($p_cn,$sql); +00763 +00764 // If nothing is found return null +00765 $n=pg_NumRows($Res); +00766 +00767 if ($n ==0 ) return null; +00768 +00769 // put everything in an array +00770 for ($i=0;$i<$n;$i++) { +00771 $l=pg_fetch_array($Res,$i); +00772 $r[$i]=$l['cn']; +00773 } +00774 return $r; +00775 } +00789 function GetGrpt($p_cn,$p_jr_id) +00790 { +00791 $Res=ExecSql($p_cn,"select jr_grpt_id from jrn where jr_id=".$p_jr_id); +00792 if ( pg_NumRows($Res) == 0 ) { +00793 return null; +00794 } +00795 $r=pg_fetch_array($Res,0); +00796 return $r['jr_grpt_id']; +00797 } +00811 function UpdateComment ($p_cn,$p_jr_id,$p_comment) { +00812 $p_comment=FormatString($p_comment); +00813 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$p_comment."' +00814 where jr_id = $p_jr_id"); +00815 +00816 } +00817 +00831 function isValid ($p_cn,$p_grpt_id) { +00832 $Res=ExecSql($p_cn,"select jr_valid from jrn where jr_grpt_id=$p_grpt_id"); +00833 +00834 if ( ( $M = pg_NumRows($Res)) == 0 ) return 0; +00835 +00836 $a=pg_fetch_array($Res,0); 00837 -00838 if ( ( $M = pg_NumRows($Res)) == 0 ) return 0; -00839 -00840 $a=pg_fetch_array($Res,0); -00841 -00842 if ( $a['jr_valid'] == 't') return 1; -00843 if ( $a['jr_valid'] == 'f') return 0; -00844 -00845 echo_error ("Invalid result = ".$a['result']); -00846 -00847 -00848 } -00849 -00862 function jrn_navigation_bar($p_offset,$p_line,$p_size=0,$p_page=1) -00863 { -00864 // if the pagesize is unlimited return "" -00865 // in that case there is no nav. bar -00866 if ( $_SESSION['g_pagesize'] == -1 ) return ""; -00867 if ( $p_size==0) { -00868 $p_size= $_SESSION['g_pagesize']; -00869 } -00870 // if there is no row return an empty string -00871 if ( $p_line == 0 ) return ""; -00872 -00873 // Compute the url -00874 $url=""; -00875 $and=""; -00876 $get=$_GET; -00877 if ( isset ($get) ) { -00878 foreach ($get as $name=>$value ) { -00879 // we clean the parameter offset, step, page and size -00880 if ( ! in_array($name,array('offset','step','page','size'))) { -00881 $url.=$and.$name."=".$value; -00882 $and="&"; -00883 }// if -00884 }//foreach -00885 }// if -00886 // compute max of page -00887 $nb_page=($p_line-($p_line%$p_size))/$p_size; -00888 -00889 // if something remains -00890 if ( $p_line % $p_size != 0 ) $nb_page+=1; -00891 -00892 // if max page == 1 then return a empty string -00893 if ( $nb_page == 1) return ""; -00894 -00895 $r=""; -00896 // previous -00897 if ($p_page !=1) { -00898 $e=$p_page-1; -00899 $step=$_SESSION['g_pagesize']; -00900 $offset=($e-1)*$step; -00901 -00902 $r='<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; -00903 $r.="Pr&eacute;c&eacute;dent"; -00904 $r.="</A>&nbsp;&nbsp;"; -00905 } -00906 -00907 // Create the bar -00908 for ($e=1;$e<=$nb_page;$e++) { -00909 // do not included current page -00910 if ( $e != $p_page ) { -00911 $step=$_SESSION['g_pagesize']; -00912 $offset=($e-1)*$step; -00913 $go=sprintf($_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step"); -00914 $r.=sprintf('<A HREF="%s" CLASS="one">%d</A>&nbsp;',$go,$e); -00915 } else { -00916 $r.="<b> $e </b>"; -00917 } //else -00918 // add a break if e > 80 -00919 if ( $e % 57 == 0 ) { -00920 $r.="<br>"; -00921 } -00922 } //for -00923 // next -00924 if ($p_page !=$nb_page) { -00925 $e=$p_page+1; -00926 $step=$_SESSION['g_pagesize']; -00927 $offset=($e-1)*$step; -00928 -00929 $r.='&nbsp;<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; -00930 $r.="Suivant"; -00931 $r.="</A>"; -00932 } +00838 if ( $a['jr_valid'] == 't') return 1; +00839 if ( $a['jr_valid'] == 'f') return 0; +00840 +00841 echo_error ("Invalid result = ".$a['result']); +00842 +00843 +00844 } +00845 +00858 function jrn_navigation_bar($p_offset,$p_line,$p_size=0,$p_page=1) +00859 { +00860 // if the pagesize is unlimited return "" +00861 // in that case there is no nav. bar +00862 if ( $_SESSION['g_pagesize'] == -1 ) return ""; +00863 if ( $p_size==0) { +00864 $p_size= $_SESSION['g_pagesize']; +00865 } +00866 // if there is no row return an empty string +00867 if ( $p_line == 0 ) return ""; +00868 +00869 // Compute the url +00870 $url=""; +00871 $and=""; +00872 $get=$_GET; +00873 if ( isset ($get) ) { +00874 foreach ($get as $name=>$value ) { +00875 // we clean the parameter offset, step, page and size +00876 if ( ! in_array($name,array('offset','step','page','size'))) { +00877 $url.=$and.$name."=".$value; +00878 $and="&"; +00879 }// if +00880 }//foreach +00881 }// if +00882 // compute max of page +00883 $nb_page=($p_line-($p_line%$p_size))/$p_size; +00884 +00885 // if something remains +00886 if ( $p_line % $p_size != 0 ) $nb_page+=1; +00887 +00888 // if max page == 1 then return a empty string +00889 if ( $nb_page == 1) return ""; +00890 +00891 $r=""; +00892 // previous +00893 if ($p_page !=1) { +00894 $e=$p_page-1; +00895 $step=$_SESSION['g_pagesize']; +00896 $offset=($e-1)*$step; +00897 +00898 $r='<A class="mtitle" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; +00899 $r.="Pr&eacute;c&eacute;dent"; +00900 $r.="</A>&nbsp;&nbsp;"; +00901 } +00902 +00903 // Create the bar +00904 for ($e=1;$e<=$nb_page;$e++) { +00905 // do not included current page +00906 if ( $e != $p_page ) { +00907 $step=$_SESSION['g_pagesize']; +00908 $offset=($e-1)*$step; +00909 $go=sprintf($_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step"); +00910 $r.=sprintf('<A class="mtitle" HREF="%s" CLASS="one">%d</A>&nbsp;',$go,$e); +00911 } else { +00912 $r.="<b> $e </b>"; +00913 } //else +00914 // add a break if e > 80 +00915 if ( $e % 57 == 0 ) { +00916 $r.="<br>"; +00917 } +00918 } //for +00919 // next +00920 if ($p_page !=$nb_page) { +00921 $e=$p_page+1; +00922 $step=$_SESSION['g_pagesize']; +00923 $offset=($e-1)*$step; +00924 +00925 $r.='&nbsp;<A class="mtitle" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; +00926 $r.="Suivant"; +00927 $r.="</A>"; +00928 } +00929 +00930 +00931 return $r; +00932 } 00933 -00934 -00935 return $r; -00936 } -00937 -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__common_8php.html b/doc/developper/html/user__common_8php.html index 0fb8dfc8e..90c915413 100644 --- a/doc/developper/html/user__common_8php.html +++ b/doc/developper/html/user__common_8php.html @@ -147,7 +147,7 @@ Compute the vat, the fiche.f_id<

                                      Definition at line 69 of file user_common.php.

                                      -References $a, $flag, $idx, $r, $tva_id, echo_debug(), GetTvaRate(), and isNumber(). +References $a, $flag, $idx, $r, $tva_id, echo_debug(), GetTvaRate(), and isNumber().

                                      Referenced by RecordInvoice(), and RecordSell(). @@ -222,7 +222,7 @@ Compute the vat for only one elt, the 172 of file user_common.php.

                                      -References $a, $tva_id, echo_debug(), GetTvaRate(), and isNumber(). +References $a, $tva_id, echo_debug(), GetTvaRate(), and isNumber().

                                      Referenced by RecordInvoice(), and RecordSell(). @@ -270,16 +270,17 @@ Referenced by Recor Insert into jrn_rapt the concerned operations.

                                      DeleteRapt($p_cn,$jr_id,$jr_id2)

                                      -parm :

                                      -

                                      -jr_id (jrn.jr_id) => jrn_rapt.jr_id

                                        -
                                      • jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned gen :
                                          -
                                        • none return:
                                        -
                                      • none
                                      +parm :
                                      Parameters:
                                      + + + + +
                                      $p_cn database connection
                                      $jr_id (jrn.jr_id) => jrn_rapt.jr_id
                                      $jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned
                                      +
                                      +
                                      Returns:
                                      none

                                      -Definition at line 731 of file user_common.php. +Definition at line 727 of file user_common.php.

                                      References $Res, CountSql(), echo_debug(), echo_error(), ExecSql(), and isNumber(). @@ -329,9 +330,9 @@ jrn.jr_id gen :

                                        array if something is found

                                        -Definition at line 762 of file user_common.php. +Definition at line 758 of file user_common.php.

                                        -References $i, $l, $n, $r, $Res, $sql, and ExecSql(). +References $i, $l, $n, $r, $Res, $sql, and ExecSql().

                                        Referenced by ListJrn(), and UpdateJrn(). @@ -381,7 +382,7 @@ $p_cn database connection gen :

                                          return the jrn.jr_grpt_id or null

                                          -Definition at line 793 of file user_common.php. +Definition at line 789 of file user_common.php.

                                          References $r, $Res, and ExecSql().

                                          @@ -442,7 +443,7 @@ Get the account of tva_rate.tva_poste return the credit or the debit account.

                                          Definition at line 211 of file user_common.php.

                                          -References $a, $Res, echo_error(), and ExecSql(). +References $a, $Res, echo_error(), and ExecSql().

                                          Referenced by RecordInvoice(), and RecordSell(). @@ -496,7 +497,7 @@ Definition at line 40<

                                          References $r, $Res, and ExecSql().

                                          -Referenced by ComputeTotalVat(), ComputeVat(), FormAchView(), FormVenteView(), and Document::Replace(). +Referenced by ComputeTotalVat(), ComputeVat(), FormAchView(), FormVenteView(), and Document::Replace().

                                          @@ -584,7 +585,7 @@ nothing

                                          Definition at line 288 of file user_common.php.

                                          -References $Res, $sql, echo_debug(), ExecSql(), FormatString(), GetSequence(), and p_comment. +References $Res, $sql, echo_debug(), ExecSql(), FormatString(), GetSequence(), and p_comment.

                                          Referenced by RecordFin(), RecordInvoice(), RecordSell(), and TransferCSV(). @@ -733,17 +734,17 @@ Referenced by Recor

                                          Insert into jrn_rapt the concerned operations.

                                          -InsertRapt($p_cn,$jr_id,$jr_id2)

                                          -parm :

                                          -

                                          -jr_id (jrn.jr_id) => jrn_rapt.jr_id

                                            -
                                          • jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned gen :
                                              -
                                            • none return:
                                            -
                                          • none
                                          +
                                          Parameters:
                                          + + + + +
                                          $p_cn database connection
                                          $jr_id (jrn.jr_id) => jrn_rapt.jr_id
                                          $jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned
                                          +
                                          +
                                          Returns:
                                          none

                                          -Definition at line 700 of file user_common.php. +Definition at line 699 of file user_common.php.

                                          References $Res, CountSql(), echo_debug(), echo_error(), ExecSql(), and isNumber().

                                          @@ -865,9 +866,9 @@ p_grpt_id gen :

                                          • none return: 1 is valid 0 is not valid

                                          -Definition at line 835 of file user_common.php. +Definition at line 831 of file user_common.php.

                                          -References $a, $Res, echo_error(), and ExecSql(). +References $a, $Res, echo_error(), and ExecSql().

                                          Referenced by cl_user::cl_user(). @@ -931,11 +932,11 @@ jrn_navigation_bar

                                          Returns:
                                          string

                                          -Definition at line 862 of file user_common.php. +Definition at line 858 of file user_common.php.

                                          -References $_SESSION, $e, $offset, $r, $step, $url, name, size, and value. +References $_SESSION, $e, $offset, $r, $step, $url, name, size, and value.

                                          -Referenced by action::myList(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), and ViewFiche(). +Referenced by action::myList(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), and ViewFiche().

                                          @@ -1014,7 +1015,7 @@ ListJrn($p_cn,$p_jrn,$p_wherel)

                                          Definition at line 322 of file user_common.php.

                                          -References $_SESSION, $a, $count, $h, $limit, $Max, $offset, $p_jrn, $r, $Res, $row, $sql, $tr, $User, $w, CountSql(), DbConnect(), ExecSql(), FormatString(), GetConcerned(), GetInternal(), GetJrnProp(), isDate(), and table. +References $_SESSION, $a, $count, $h, $limit, $Max, $offset, $p_jrn, $r, $Res, $row, $sql, $tr, $User, $w, CountSql(), DbConnect(), ExecSql(), FormatString(), GetConcerned(), GetInternal(), GetJrnProp(), isDate(), and table.

                                          @@ -1068,9 +1069,9 @@ parm :

                                          -Definition at line 815 of file user_common.php. +Definition at line 811 of file user_common.php.

                                          -References $Res, ExecSql(), FormatString(), and p_comment. +References $Res, ExecSql(), FormatString(), and p_comment.

                                          @@ -1128,7 +1129,7 @@ null if error or date if ok

                                          Definition at line 654 of file user_common.php.

                                          -References cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), and PeriodeClosed(). +References $msg, cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), and PeriodeClosed().

                                          Referenced by FormODS(). @@ -1179,10 +1180,10 @@ $p_f_id fiche.f_id gen :

                                            Definition at line 631 of file user_common.php.

                                            -References $a, and getFicheAttribut(). +References $a, and getFicheAttribut(). -


                                            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__compta_8php-source.html b/doc/developper/html/user__compta_8php-source.html index 37320d73d..9351177c4 100644 --- a/doc/developper/html/user__compta_8php-source.html +++ b/doc/developper/html/user__compta_8php-source.html @@ -74,7 +74,7 @@ 00069 html_page_stop(); 00070 00071 ?> -
                                            Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__compta_8php.html b/doc/developper/html/user__compta_8php.html index 089a06960..5df8df65e 100644 --- a/doc/developper/html/user__compta_8php.html +++ b/doc/developper/html/user__compta_8php.html @@ -129,7 +129,7 @@ Definition at line 28< Definition at line 30 of file user_compta.php. -
                                            Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ach_8php-source.html b/doc/developper/html/user__form__ach_8php-source.html index cfe65da63..1bc0487ad 100644 --- a/doc/developper/html/user__form__ach_8php-source.html +++ b/doc/developper/html/user__form__ach_8php-source.html @@ -50,9 +50,9 @@ 00058 echo_debug('user_form_ach.php',__LINE__,"form_input.php.FormSell_op_date is $op_date"); 00059 $r=""; 00060 if ( $pview_only == false) { -00061 $r.=JS_SEARCH_CARD; -00062 $r.=JS_SHOW_TVA; -00063 $r.=JS_TVA; +00061 $r.=JS_SEARCH_CARD; +00062 $r.=JS_SHOW_TVA; +00063 $r.=JS_TVA; 00064 // Compute href 00065 $href=$_SERVER['SCRIPT_NAME']; 00066 switch ($href) @@ -115,7 +115,7 @@ 00123 // retrieve e_client_label 00124 if ( isNumber($e_client) == 1 ) { 00125 if ( isFicheOfJrn($p_cn,$p_jrn,$e_client,'cred') == 0 ) { -00126 $msg="Fiche inexistante !!! "; +00126 $msg="Fiche inexistante !!! "; 00127 echo_error($msg); echo_error($msg); 00128 // echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00129 $e_client=""; @@ -126,15 +126,15 @@ 00134 } 00135 } 00136 // widget search -00137 $W1=new widget("js_search"); -00138 $W1->label="Fournisseur"; -00139 $W1->name="e_client"; -00140 $W1->value=$e_client; -00141 $W1->extra=$fiche; // list of card -00142 $W1->extra2=$p_jrn; +00137 $W1=new widget("js_search"); +00138 $W1->label="Fournisseur"; +00139 $W1->name="e_client"; +00140 $W1->value=$e_client; +00141 $W1->extra=$fiche; // list of card +00142 $W1->extra2=$p_jrn; 00143 $r.="<TR>".$W1->IOValue(); -00144 $client_label=new widget("span"); -00145 $r.= $client_label->IOValue("e_client_label",$e_client_label)."</TD></TR>"; +00144 $client_label=new widget("span"); +00145 $r.= $client_label->IOValue("e_client_label",$e_client_label)."</TD></TR>"; 00146 $r.="</TABLE>"; 00147 // Set correctly the REQUEST param for jrn_type 00148 $h=new widget('hidden'); @@ -176,7 +176,7 @@ 00184 00185 // If $march has a value 00186 if ( isFicheOfJrn($p_cn,$p_jrn,$march,'deb') == 0 ) { -00187 $msg="Fiche inexistante !!! "; +00187 $msg="Fiche inexistante !!! "; 00188 echo_error($msg); echo_error($msg); 00189 $march=""; 00190 } else { @@ -193,13 +193,13 @@ 00201 00202 // Show input 00203 -00204 $W1=new widget("js_search"); -00205 $W1->label=""; -00206 $W1->name="e_march".$i; -00207 $W1->value=$march; -00208 $W1->extra='deb'; // credits -00209 $W1->extra2=$p_jrn; -00210 $W1->readonly=$pview_only; +00204 $W1=new widget("js_search"); +00205 $W1->label=""; +00206 $W1->name="e_march".$i; +00207 $W1->value=$march; +00208 $W1->extra='deb'; // credits +00209 $W1->extra2=$p_jrn; +00210 $W1->readonly=$pview_only; 00211 $r.="<TR>".$W1->IOValue()."</TD>"; 00212 $Span=new widget ("span"); 00213 $Span->SetReadOnly($pview_only); @@ -249,7 +249,7 @@ 00269 function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) 00270 { 00271 echo_debug('user_form_ach.php',__LINE__,"Enter form_verify_input $p_cn,$p_jrn,$p_periode,".var_export($p_array,true).",$p_number"); -00272 foreach ($p_array as $name=>$content) { +00272 foreach ($p_array as $name=>$content) { 00273 ${"$name"}=$content; 00274 } 00275 // Verify the date @@ -279,7 +279,7 @@ 00299 if (isNumber(${"e_march$o"."_tva_id"}) == 0 00300 or CountSql($p_cn,"select tva_id from tva_rate where tva_id=".${"e_march$o"."_tva_id"}) ==0) 00301 { -00302 $msg="Invalid TVA !!! e_march".$o."_tva_id = ".${"e_march".$o."_tva_id"}; +00302 $msg="Invalid TVA !!! e_march".$o."_tva_id = ".${"e_march".$o."_tva_id"}; 00303 echo_error($msg); echo_error($msg); 00304 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00305 return null; @@ -292,7 +292,7 @@ 00312 // Verify the ech 00313 if (strlen($e_ech) != 0 and isNumber($e_ech) == 0 and isDate ($e_ech) == null ) 00314 { -00315 $msg="Echeance invalide"; +00315 $msg="Echeance invalide"; 00316 echo_error($msg); echo_error($msg); 00317 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00318 return null; @@ -322,7 +322,7 @@ 00342 // Check if the fiche is in the jrn 00343 if (IsFicheOfJrn($p_cn , $p_jrn, $e_client,'cred') == 0 ) 00344 { -00345 $msg="Client invalid please recheck"; +00345 $msg="Client invalid please recheck"; 00346 echo_error($msg); 00347 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00348 return null; @@ -345,17 +345,17 @@ 00365 // } 00366 // Check 00367 if ( isFicheOfJrn($p_cn,$p_jrn,${"e_march$i"},'deb') == 0 ) { -00368 $msg="Fiche inexistante !!! "; +00368 $msg="Fiche inexistante !!! "; 00369 echo_error($msg); echo_error($msg); 00370 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00371 return null; 00372 } 00373 // check if the ATTR_DEF_ACCOUNT is set -00374 $poste=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_ACCOUNT); +00374 $poste=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_ACCOUNT); 00375 echo_debug('user_form_ach.php',__LINE__,"poste value = ".$poste."size = ".strlen(trim($poste))); 00376 if ( $poste == null ) 00377 { -00378 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; +00378 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; 00379 echo_error($msg); echo_debug('user_form_ach.php',__LINE__,$msg); 00380 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00381 return null; @@ -363,19 +363,19 @@ 00383 } 00384 if ( strlen(trim($poste))==0 ) 00385 { -00386 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; +00386 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; 00387 echo_error($msg); echo_debug('user_form_ach.php',__LINE__,$msg); 00388 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00389 return null; 00390 } 00391 00392 // Check if the percentage indicated in this field is valid -00393 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_DEPENSE_NON_DEDUCTIBLE); +00393 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_DEPENSE_NON_DEDUCTIBLE); 00394 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0 ) 00395 { 00396 if ( isNumber($non_dedu) == 0 || $non_dedu > 1.00 ) 00397 { -00398 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide,il doit être compris entre 0 et 1"; +00398 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide,il doit être compris entre 0 et 1"; 00399 echo_error($msg); echo_debug('user_form_ach.php',__LINE__,$msg); 00400 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00401 return null; @@ -383,24 +383,24 @@ 00403 } 00404 } 00405 // Check if the percentage indicated in this field is valid -00406 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA_NON_DEDUCTIBLE); +00406 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA_NON_DEDUCTIBLE); 00407 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0 ) 00408 { 00409 if ( isNumber($non_dedu) == 0 || $non_dedu > 1.00 ) 00410 { -00411 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide, il doit être compris entre 0 et 1"; +00411 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide, il doit être compris entre 0 et 1"; 00412 echo_error($msg); echo_debug('user_form_ach.php',__LINE__,$msg); 00413 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00414 return null; 00415 00416 } 00417 } // Check if the percentage indicated in this field is valid -00418 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); +00418 $non_dedu=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); 00419 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0 ) 00420 { 00421 if ( isNumber($non_dedu) == 0 || $non_dedu > 1.00 ) 00422 { -00423 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide, il doit être compris entre 0 et 1"; +00423 $msg="La fiche ".${"e_march$i"}." a un pourcentage invalide, il doit être compris entre 0 et 1"; 00424 echo_error($msg); echo_debug('user_form_ach.php',__LINE__,$msg); 00425 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00426 return null; @@ -419,7 +419,7 @@ 00439 if ( cmpDate($e_date,$l_date_start)<0 || 00440 cmpDate($e_date,$l_date_end)>0 ) 00441 { -00442 $msg="Not in the active periode please change your preference"; +00442 $msg="Not in the active periode please change your preference"; 00443 echo_error($msg); echo_error($msg); 00444 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00445 return null; @@ -427,7 +427,7 @@ 00447 // Periode fermé 00448 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) 00449 { -00450 $msg="This periode is closed please change your preference"; +00450 $msg="This periode is closed please change your preference"; 00451 echo_error($msg); echo_error($msg); 00452 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00453 return null; @@ -441,8 +441,8 @@ 00475 // Keep all the data if hidden 00476 // and store the array in variables 00477 $hidden=new widget("hidden"); -00478 foreach ($p_array as $name=>$content) { -00479 $data.=$hidden->IOValue($name,$content); +00478 foreach ($p_array as $name=>$content) { +00479 $data.=$hidden->IOValue($name,$content); 00480 ${"$name"}=$content; 00481 } 00482 @@ -498,14 +498,14 @@ 00532 00533 // If the price is not a number, retrieve the price from the database 00534 if ( isNumber(${"e_march$i"."_sell"}) == 0 ) { -00535 $fiche_price=getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_PRIX_VENTE); +00535 $fiche_price=getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_PRIX_VENTE); 00536 } else { 00537 $fiche_price=${"e_march$i"."_sell"}; 00538 } 00539 00540 00541 // VAT -00542 $vat=(isNumber(${"e_march$i"."_tva_id"})==0 || ${"e_march$i"."_tva_id"}==-1 )?getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA):${"e_march$i"."_tva_id"}; +00542 $vat=(isNumber(${"e_march$i"."_tva_id"})==0 || ${"e_march$i"."_tva_id"}==-1 )?getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA):${"e_march$i"."_tva_id"}; 00543 00544 // vat label 00545 // vat rate @@ -611,21 +611,21 @@ 00674 // Computing total customer 00675 for ($i=0;$i<$nb_item;$i++) { 00676 // store quantity & goods in array -00677 $a_good[$i]=${"e_march$i"}; -00678 $a_quant[$i]=${"e_quant$i"}; -00679 $a_price[$i]=0; -00680 $a_vat_good[$i]=${"e_march$i"."_tva_id"}; +00677 $a_good[$i]=${"e_march$i"}; +00678 $a_quant[$i]=${"e_quant$i"}; +00679 $a_price[$i]=0; +00680 $a_vat_good[$i]=${"e_march$i"."_tva_id"}; 00681 // check wether the price is set or no 00682 if ( isNumber(${"e_march$i"."_sell"}) == 0 ) { 00683 if ( $a_good[$i] !="" ) { 00684 // If the price is not set we have to find it from the database -00685 $a_price[$i]=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_PRIX_VENTE); +00685 $a_price[$i]=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_PRIX_VENTE); 00686 } 00687 } else { 00688 // The price is valid -00689 $a_price[$i]=${"e_march$i"."_sell"}; +00689 $a_price[$i]=${"e_march$i"."_sell"}; 00690 } -00691 $cost=$a_price[$i]*$a_quant[$i]; +00691 $cost=$a_price[$i]*$a_quant[$i]; 00692 $amount+=$cost; 00693 $amount_jrn+=$cost; 00694 echo_debug('user_form_ach.php',__LINE__,'Total customer:'.$amount_jrn); @@ -647,14 +647,14 @@ 00710 // Credit = goods 00711 for ( $i = 0; $i < $nb_item;$i++) { 00712 -00713 $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT); +00713 $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT); 00714 00715 // don't record operation of 0 00716 if ( $a_price[$i]*$a_quant[$i] == 0 ) continue; 00717 -00718 $amount=$a_price[$i]*$a_quant[$i]; +00718 $amount=$a_price[$i]*$a_quant[$i]; 00719 // Put the non deductible part into a special account -00720 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_DEPENSE_NON_DEDUCTIBLE); +00720 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_DEPENSE_NON_DEDUCTIBLE); 00721 echo_debug('user_form_ach.php',__LINE__,"value non ded : $non_dedu"); 00722 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0) 00723 { @@ -668,7 +668,7 @@ 00731 $amount=$amount-$nd_amount; 00732 } 00733 // Put the non deductible part into a special account -00734 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_TVA_NON_DEDUCTIBLE); +00734 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_TVA_NON_DEDUCTIBLE); 00735 echo_debug('user_form_ach.php',__LINE__,"TVA value non ded : $non_dedu"); 00736 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0) 00737 { @@ -688,7 +688,7 @@ 00751 } 00752 00753 // Put the non deductible part into a special account -00754 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); +00754 $non_dedu=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP); 00755 echo_debug('user_form_ach.php',__LINE__,"TVA value non ded : $non_dedu"); 00756 if ( $non_dedu != null && strlen(trim($non_dedu)) != 0 ) 00757 { @@ -746,7 +746,7 @@ 00809 echo_debug('user_form_ach.php',__LINE__,"sum_tva_nd = $sum_tva_nd"); 00810 00811 // Debit = client -00812 $poste=GetFicheAttribut($p_cn,$e_client,ATTR_DEF_ACCOUNT); +00812 $poste=GetFicheAttribut($p_cn,$e_client,ATTR_DEF_ACCOUNT); 00813 echo_debug('user_form_achat.php',__LINE__,"get e_client $e_client poste $poste"); 00814 echo_debug('user_form_achat.php',__LINE__,"insert client"); 00815 @@ -757,7 +757,7 @@ 00820 if ( $r == false ) { Rollback($p_cn); exit(" Error 'user_form_ach.php' __LINE__");} 00821 // Set Internal code and Comment 00822 $internal=SetInternalCode($p_cn,$seq,$p_jrn); -00823 $comment=(FormatString($e_comm) == null )?$internal." client : ".GetFicheName($p_cn,$e_client):FormatString($e_comm); +00823 $comment=(FormatString($e_comm) == null )?$internal." Fournisseur : ".GetFicheName($p_cn,$e_client):FormatString($e_comm); 00824 00825 // Update and set the invoice's comment 00826 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$comment."' where jr_grpt_id=".$seq); @@ -773,7 +773,7 @@ 00836 } 00837 00838 ?> -
                                            Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ach_8php.html b/doc/developper/html/user__form__ach_8php.html index aa7633909..c52e3729d 100644 --- a/doc/developper/html/user__form__ach_8php.html +++ b/doc/developper/html/user__form__ach_8php.html @@ -101,7 +101,7 @@ verify if the data to insert are valid

                                            Definition at line 269 of file user_form_ach.php.

                                            -References CountSql(), echo_debug(), echo_error(), isDate(), isNumber(), and name. +References $msg, CountSql(), echo_debug(), echo_error(), isDate(), isNumber(), and name.

                                            @@ -184,7 +184,7 @@ Display the form for a sell Used to show detail, encode a new invoice or update

                                            Definition at line 44 of file user_form_ach.php.

                                            -References $client_label, $fiche, $h, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array(). +References $client_label, $fiche, $h, $list, $msg, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array().

                                            @@ -267,7 +267,7 @@ Show the invoice before inserting it the database.

                                            Definition at line 471 of file user_form_ach.php.

                                            -References $data, $file, $h, $r, echo_error(), exit, getFicheAttribut(), getFicheName(), GetTvaRate(), isNumber(), METHOD, and name. +References $data, $file, $h, $r, echo_error(), exit, getFicheAttribut(), getFicheName(), GetTvaRate(), isNumber(), METHOD, and name.

                                            @@ -329,10 +329,10 @@ $p_array contains all the invoice data e_date => e : 01.01.2003 e_client =>

                                            Definition at line 661 of file user_form_ach.php.

                                            -References $comment, $e, $i, $poste, $r, $Res, $seq, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). +References $comment, $e, $i, $poste, $r, $Res, $seq, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). -


                                            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__fin_8php-source.html b/doc/developper/html/user__form__fin_8php-source.html index c232c84bc..896bf23a9 100644 --- a/doc/developper/html/user__form__fin_8php-source.html +++ b/doc/developper/html/user__form__fin_8php-source.html @@ -34,7 +34,7 @@ 00025 require_once("user_common.php"); 00042 function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) 00043 { -00044 foreach ($p_array as $name=>$content) { +00044 foreach ($p_array as $name=>$content) { 00045 ${"$name"}=$content; 00046 } 00047 // Verify the date @@ -49,7 +49,7 @@ 00056 // Check if the fiche is in the jrn 00057 if (IsFicheOfJrn($p_cn , $p_jrn, $e_bank_account,'deb') == 0 ) 00058 { -00059 $msg="Mauvais compte en banque"; +00059 $msg="Mauvais compte en banque"; 00060 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); 00061 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00062 return null; @@ -63,23 +63,23 @@ 00070 } 00071 // Check amount 00072 if ( isNumber(${"e_other".$i."_amount"}) == 0) { -00073 $msg="Montant invalide !!! "; +00073 $msg="Montant invalide !!! "; 00074 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); 00075 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00076 return null; 00077 } 00078 // Check 00079 if ( isFicheOfJrn($p_cn,$p_jrn,${"e_other$i"},'cred') == 0 ) { -00080 $msg="Fiche inexistante !!! "; +00080 $msg="Fiche inexistante !!! "; 00081 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); 00082 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00083 return null; 00084 } 00085 // check if the ATTR_DEF_ACCOUNT is set -00086 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); +00086 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); 00087 if ( $poste == null ) 00088 { -00089 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; +00089 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; 00090 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); 00091 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00092 return null; @@ -87,7 +87,7 @@ 00094 } 00095 if ( strlen(trim($poste))==0 ) 00096 { -00097 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; +00097 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; 00098 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); 00099 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00100 } @@ -103,7 +103,7 @@ 00110 if ( cmpDate($e_date,$l_date_start)<0 || 00111 cmpDate($e_date,$l_date_end)>0 ) 00112 { -00113 $msg="Not in the active periode please change your preference"; +00113 $msg="Not in the active periode please change your preference"; 00114 echo_error($msg); echo_error($msg); 00115 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00116 return null; @@ -111,7 +111,7 @@ 00118 // Periode ferm� 00119 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) 00120 { -00121 $msg="This periode is closed please change your preference"; +00121 $msg="This periode is closed please change your preference"; 00122 echo_error($msg); echo_error($msg); 00123 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00124 return null; @@ -139,8 +139,8 @@ 00162 00163 $r=""; 00164 if ( $pview_only == false) { -00165 $r.=JS_SEARCH_CARD; -00166 $r.=JS_CONCERNED_OP; +00165 $r.=JS_SEARCH_CARD; +00166 $r.=JS_CONCERNED_OP; 00167 } 00168 // Compute href 00169 $href=$_SERVER['SCRIPT_NAME']; @@ -170,7 +170,7 @@ 00193 00194 00195 include_once("fiche_inc.php"); -00196 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_item.'">'; +00196 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_item.'">'; 00197 00198 // bank_account operation 00199 // Save old value and set a new one @@ -184,13 +184,13 @@ 00207 $e_bank_account_label=$a_client['vw_name']." adresse ".$a_client['vw_addr']." ".$a_client['vw_cp']; 00208 } 00209 // search widget -00210 $W1=new widget("js_search"); -00211 $W1->readonly=$pview_only; -00212 $W1->label="Banque"; -00213 $W1->name="e_bank_account"; -00214 $W1->value=$e_bank_account; -00215 $W1->extra=FICHE_TYPE_FIN; // credits -00216 $W1->extra2=$p_jrn; +00210 $W1=new widget("js_search"); +00211 $W1->readonly=$pview_only; +00212 $W1->label="Banque"; +00213 $W1->name="e_bank_account"; +00214 $W1->value=$e_bank_account; +00215 $W1->extra=FICHE_TYPE_FIN; // credits +00216 $W1->extra2=$p_jrn; 00217 $r.="<TR>".$W1->IOValue()."</TD>"; 00218 00219 $r.="</TABLE>"; @@ -203,7 +203,7 @@ 00226 // ComputeBanqueSaldo 00227 // 00228 if ( $pview_only == true ) { -00229 $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT)); +00229 $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT)); 00230 $r.=" <b> Solde = ".$solde." </b>"; 00231 $new_solde=$solde; 00232 } @@ -223,7 +223,7 @@ 00246 // Parse each " tiers" 00247 for ($i=0; $i < $p_item; $i++) { 00248 $tiers=(isset(${"e_other".$i}))?${"e_other".$i}:""; -00249 $tiers_label=""; +00249 $tiers_label=""; 00250 $tiers_amount=(isset(${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; 00251 00252 $tiers_comment=(isset (${"e_other$i"."_comment"}))?${"e_other$i"."_comment"}:""; @@ -233,18 +233,18 @@ 00256 // retrieve the tva label and name 00257 $a_fiche=GetFicheAttribut($p_cn, $tiers); 00258 if ( $a_fiche != null ) { -00259 $tiers_label=$a_fiche['vw_name']; +00259 $tiers_label=$a_fiche['vw_name']; 00260 } 00261 } 00262 ${"e_other$i"."_amount"}=(isset (${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; 00263 -00264 $W1=new widget("js_search"); -00265 $W1->label=""; -00266 $W1->name="e_other".$i; -00267 $W1->value=$tiers; -00268 $W1->extra='cred'; // credits -00269 $W1->extra2=$p_jrn; -00270 $W1->readonly=$pview_only; +00264 $W1=new widget("js_search"); +00265 $W1->label=""; +00266 $W1->name="e_other".$i; +00267 $W1->value=$tiers; +00268 $W1->extra='cred'; // credits +00269 $W1->extra2=$p_jrn; +00270 $W1->readonly=$pview_only; 00271 $r.="<TR>".$W1->IOValue()."</TD>"; 00272 // label 00273 $other=new widget("span"); @@ -325,7 +325,7 @@ 00365 $periode=$p_user->GetPeriode(); 00366 00367 // Debit = banque -00368 $poste_bq=GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT); +00368 $poste_bq=GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT); 00369 StartSql($p_cn); 00370 $amount=0.0; 00371 // Credit = goods @@ -333,7 +333,7 @@ 00373 // if tiers is set and amount != 0 insert it into the database 00374 // and quit the loop ? 00375 if ( ${"e_other$i"."_amount"} == 0 ) continue; -00376 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); +00376 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); 00377 00378 $amount+=${"e_other$i"."_amount"}; 00379 // Record a line for the bank @@ -363,7 +363,7 @@ 00403 00404 // Set Internal code and Comment 00405 $internal_code=SetInternalCode($p_cn,$seq,$p_jrn); -00406 $comment=$internal_code." client : ".GetFicheName($p_cn,$e_bank_account); +00406 $comment=$internal_code." compte : ".GetFicheName($p_cn,$e_bank_account); 00407 if ( FormatString(${"e_other$i"."_comment"}) == null ) { 00408 // Update comment if comment is blank 00409 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$comment."' where jr_grpt_id=".$seq); @@ -378,7 +378,7 @@ 00418 } else { 00419 if ( sizeof($_FILES) != 0 ) 00420 { -00421 ExecSql($p_cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". +00421 ExecSql($p_cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". 00422 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); 00423 } 00424 } @@ -389,7 +389,7 @@ 00429 return $internal_code; 00430 } 00431 ?> -
                                            Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__fin_8php.html b/doc/developper/html/user__form__fin_8php.html index 6256cca63..b7d43c823 100644 --- a/doc/developper/html/user__form__fin_8php.html +++ b/doc/developper/html/user__form__fin_8php.html @@ -98,7 +98,7 @@ verify if the data to insert are valid

                                            Definition at line 42 of file user_form_fin.php.

                                            -References $poste, echo_debug(), echo_error(), isDate(), IsFicheOfJrn(), isNumber(), and name. +References $msg, $poste, echo_debug(), echo_error(), isDate(), IsFicheOfJrn(), isNumber(), and name.

                                            @@ -189,7 +189,7 @@ Display the form for financial Used to show detail, encode a new fin op or updat

                                            Definition at line 146 of file user_form_fin.php.

                                            -References $file, $flag, $h, $p_jrn, $r, $solde, $tiers_label, $W1, echo_error(), exit, GetPeriode(), GetSolde(), name, and value. +References $file, $flag, $h, $p_jrn, $r, $solde, $tiers_label, $W1, echo_error(), exit, GetPeriode(), GetSolde(), name, and value.

                                            @@ -254,10 +254,10 @@ Record an invoice in the table jrn & jrnx.

                                            Definition at line 358 of file user_form_fin.php.

                                            -References $e, $poste, $seq, echo_debug(), ExecSql(), exit, FormatString(), InsertJrn(), InsertJrnx(), InsertRapt(), isNumber(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). +References $e, $poste, $seq, echo_debug(), ExecSql(), exit, FormatString(), InsertJrn(), InsertJrnx(), InsertRapt(), isNumber(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). -


                                            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ods_8php-source.html b/doc/developper/html/user__form__ods_8php-source.html index 6ff7b3a56..0930a9a18 100644 --- a/doc/developper/html/user__form__ods_8php-source.html +++ b/doc/developper/html/user__form__ods_8php-source.html @@ -59,7 +59,7 @@ 00069 00070 $r=""; 00071 if ( $pview_only == false) { -00072 $r.=JS_SEARCH_POSTE; +00072 $r.=JS_SEARCH_POSTE; 00073 } 00074 $r.="<FORM NAME=\"form_detail\" enctype=\"multipart/form-data\" ACTION=\"user_jrn.php?action=new&p_jrn=$p_jrn\" METHOD=\"POST\">"; 00075 $r.='<TABLE>'; @@ -81,7 +81,7 @@ 00091 include_once("fiche_inc.php"); 00092 00093 // Record the current number of article -00094 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_article.'">'; +00094 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_article.'">'; 00095 $e_comment=(isset($e_comment))?$e_comment:""; 00096 00097 @@ -108,7 +108,7 @@ 00118 // If $account has a value 00119 if ( isNumber($account) == 1 ) { 00120 if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=$account") == 0 ) { -00121 $msg="Poste comptable inexistant !!! "; +00121 $msg="Poste comptable inexistant !!! "; 00122 echo_error($msg); echo_error($msg); 00123 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00124 $account=""; @@ -122,7 +122,7 @@ 00132 ${"e_account$i"."_amount"}=(isset(${"e_account$i"."_amount"}))?${"e_account$i"."_amount"}:0; 00133 if ( isNumber(${"e_account$i"."_amount"}) == 0 ) { 00134 if ( $pview_only==true) { -00135 $msg="Montant invalide !!! "; +00135 $msg="Montant invalide !!! "; 00136 echo_error($msg); echo_error($msg); 00137 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00138 return null; @@ -160,11 +160,11 @@ 00170 $d_check=( ${"e_account$i"."_type"} == 'd' )?"CHECKED":""; 00171 $r.='<td>'; 00172 if ( $pview_only == false ) { -00173 $r.=' <input type="radio" name="'."e_account"."$i"."_type".'" value="d" '.$d_check.'> D&eacute;bit ou '; -00174 $r.=' <input type="radio" name="'."e_account"."$i"."_type".'" value="c" '.$c_check.'> Cr&eacute;dit '; +00173 $r.=' <input type="radio" name="'."e_account"."$i"."_type".'" value="d" '.$d_check.'> D&eacute;bit ou '; +00174 $r.=' <input type="radio" name="'."e_account"."$i"."_type".'" value="c" '.$c_check.'> Cr&eacute;dit '; 00175 }else { 00176 $r.=(${"e_account$i"."_type"} == 'c' )?"Cr&eacute;dit":"D&eacute;dit"; -00177 $r.='<input type="hidden" name="e_account'.$i.'_type" value="'.${"e_account$i"."_type"}.'">'; +00177 $r.='<input type="hidden" name="e_account'.$i.'_type" value="'.${"e_account$i"."_type"}.'">'; 00178 } 00179 $r.='</td>'; 00180 $r.='</TR>'; @@ -187,7 +187,7 @@ 00197 // Set correctly the REQUEST param for jrn_type 00198 $h=new widget('hidden'); 00199 $h->name='jrn_type'; -00200 $h->value=$_REQUEST['jrn_type']; +00200 $h->value='OD'; 00201 $r.=$h->IOValue(); 00202 00203 $r.=$p_submit; @@ -197,7 +197,7 @@ 00207 $tmp= abs($sum_deb-$sum_cred); 00208 echo_debug('user_form_ods.php',__LINE__,"Diff = ".$tmp); 00209 if ( abs($sum_deb-$sum_cred) > 0.0001 and $pview_only==true) { -00210 $msg=sprintf("Montant non correspondant credit = %.5f debit = %.5f diff = %.5f", +00210 $msg=sprintf("Montant non correspondant credit = %.5f debit = %.5f diff = %.5f", 00211 $sum_cred,$sum_deb,$sum_cred-$sum_deb); 00212 echo "<script> alert('$msg'); </script>"; 00213 return null; @@ -206,7 +206,7 @@ 00216 // Verify that we have a non-null operation 00217 if ($pview_only==true and $sum_cred == 0) 00218 { -00219 $msg=sprintf("Montant null"); +00219 $msg=sprintf("Montant null"); 00220 echo "<script> alert('$msg'); </script>"; 00221 return null; 00222 } @@ -263,7 +263,7 @@ 00291 00292 00293 ?> -
                                            Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ods_8php.html b/doc/developper/html/user__form__ods_8php.html index f730a840a..c9c81300f 100644 --- a/doc/developper/html/user__form__ods_8php.html +++ b/doc/developper/html/user__form__ods_8php.html @@ -117,7 +117,7 @@ Display the miscellaneous operation Used to show detail, encode a new oper or up

                                            Definition at line 45 of file user_form_ods.php.

                                            -References $filter, $flag, $i, $l_line, $p_jrn, $r, CountSql(), echo_error(), GetJrnProperty(), GetPeriode(), GetPosteLibelle(), isNumber(), name, value, and VerifyOperationDate(). +References $filter, $flag, $i, $l_line, $msg, $p_jrn, $r, CountSql(), echo_error(), GetJrnProperty(), GetPeriode(), GetPosteLibelle(), isNumber(), name, value, and VerifyOperationDate().

                                            @@ -181,10 +181,10 @@ Record an buy in the table jrn & jrnx.

                                            Definition at line 247 of file user_form_ods.php.

                                            -References $e, $seq, exit, InsertJrnx(), isNumber(), NextSequence(), and StartSql(). +References $e, $seq, exit, InsertJrnx(), isNumber(), NextSequence(), and StartSql(). -


                                            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ven_8php-source.html b/doc/developper/html/user__form__ven_8php-source.html index 5d831aa54..fe3d903f2 100644 --- a/doc/developper/html/user__form__ven_8php-source.html +++ b/doc/developper/html/user__form__ven_8php-source.html @@ -51,9 +51,9 @@ 00059 echo_debug('user_form_ven.php',__LINE__,"form_input.php.FormVentep_op_date is $op_date"); 00060 $r=""; 00061 if ( $pview_only == false) { -00062 $r.=JS_SEARCH_CARD; -00063 $r.=JS_SHOW_TVA; -00064 $r.=JS_TVA; +00062 $r.=JS_SEARCH_CARD; +00063 $r.=JS_SHOW_TVA; +00064 $r.=JS_TVA; 00065 // Compute href 00066 $href=$_SERVER['SCRIPT_NAME']; 00067 switch ($href) @@ -119,7 +119,7 @@ 00127 //-- 00128 if ( isNumber($e_client) == 1 ) { 00129 if ( isFicheOfJrn($p_cn,$p_jrn,$e_client,'deb') == 0 ) { -00130 $msg="Fiche inexistante !!! "; +00130 $msg="Fiche inexistante !!! "; 00131 echo_error($msg); echo_error($msg); 00132 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00133 $e_client=""; @@ -130,16 +130,16 @@ 00138 } 00139 } 00140 -00141 $W1=new widget("js_search"); -00142 $W1->label="Client"; -00143 $W1->name="e_client"; -00144 $W1->tabindex=3; -00145 $W1->value=$e_client; -00146 $W1->extra=$fiche; // list of card -00147 $W1->extra2=$p_jrn; +00141 $W1=new widget("js_search"); +00142 $W1->label="Client"; +00143 $W1->name="e_client"; +00144 $W1->tabindex=3; +00145 $W1->value=$e_client; +00146 $W1->extra=$fiche; // list of card +00147 $W1->extra2=$p_jrn; 00148 $r.="<TR>".$W1->IOValue(); -00149 $client_label=new widget("span"); -00150 $r.= $client_label->IOValue("e_client_label",$e_client_label)."</TD></TR>"; +00149 $client_label=new widget("span"); +00150 $r.= $client_label->IOValue("e_client_label",$e_client_label)."</TD></TR>"; 00151 $r.="</TABLE>"; 00152 00153 // Record the current number of article @@ -176,7 +176,7 @@ 00184 //-- 00185 if ( isNumber($march) == 1 ) { 00186 if ( isFicheOfJrn($p_cn,$p_jrn,$march,'cred') == 0 ) { -00187 $msg="Fiche inexistante !!! "; +00187 $msg="Fiche inexistante !!! "; 00188 echo_error($msg); echo_error($msg); 00189 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00190 $march=""; @@ -195,13 +195,13 @@ 00203 } 00204 // Show input 00205 //-- -00206 $W1=new widget("js_search"); -00207 $W1->label=""; -00208 $W1->name="e_march".$i; -00209 $W1->value=$march; -00210 $W1->extra='cred'; // credits -00211 $W1->extra2=$p_jrn; -00212 $W1->readonly=$pview_only; +00206 $W1=new widget("js_search"); +00207 $W1->label=""; +00208 $W1->name="e_march".$i; +00209 $W1->value=$march; +00210 $W1->extra='cred'; // credits +00211 $W1->extra2=$p_jrn; +00212 $W1->readonly=$pview_only; 00213 $r.="<TR>".$W1->IOValue()."</TD>"; 00214 $Span=new widget ("span"); 00215 $Span->SetReadOnly($pview_only); @@ -247,7 +247,7 @@ 00255 $r.='<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer" TABINDEX="32767" ID="SubmitButton">'; 00256 $r.="</DIV>"; 00257 $r.="</FORM>"; -00258 $r.=JS_CALC_LINE; +00258 $r.=JS_CALC_LINE; 00259 } else { 00260 $r.="</div>"; 00261 @@ -261,7 +261,7 @@ 00269 } 00284 function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) 00285 { -00286 foreach ($p_array as $name=>$content) { +00286 foreach ($p_array as $name=>$content) { 00287 ${"$name"}=$content; 00288 } 00289 // Verify the date @@ -288,7 +288,7 @@ 00310 if (isNumber(${"e_march$o"."_tva_id"}) == 0 00311 or CountSql($p_cn,"select tva_id from tva_rate where tva_id=".${"e_march$o"."_tva_id"}) ==0) 00312 { -00313 $msg="Invalid TVA !!! e_march".$o."_tva_id = ".${"e_march".$o."_tva_id"}; +00313 $msg="Invalid TVA !!! e_march".$o."_tva_id = ".${"e_march".$o."_tva_id"}; 00314 echo_error($msg); echo_error($msg); 00315 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00316 return null; @@ -300,7 +300,7 @@ 00322 00323 // Verify the ech 00324 if (strlen($e_ech) != 0 and isNumber($e_ech) == 0 and isDate ($e_ech) == null ) { -00325 $msg="Echeance invalide"; +00325 $msg="Echeance invalide"; 00326 echo_error($msg); echo_error($msg); 00327 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00328 return null; @@ -320,7 +320,7 @@ 00342 // Check if the fiche is in the jrn 00343 if (IsFicheOfJrn($p_cn , $p_jrn, $e_client,'deb') == 0 ) 00344 { -00345 $msg="Client invalid please recheck"; +00345 $msg="Client invalid please recheck"; 00346 echo_error($msg); 00347 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00348 return null; @@ -336,16 +336,16 @@ 00358 00359 // Check 00360 if ( isFicheOfJrn($p_cn,$p_jrn,${"e_march$i"},'cred') == 0 ) { -00361 $msg="Fiche inexistante !!! "; +00361 $msg="Fiche inexistante !!! "; 00362 echo_error($msg); echo_error($msg); 00363 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00364 return null; 00365 } 00366 // check if the ATTR_DEF_ACCOUNT is set -00367 $poste=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_ACCOUNT); +00367 $poste=GetFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_ACCOUNT); 00368 if ( $poste == null ) 00369 { -00370 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; +00370 $msg="La fiche ".${"e_march$i"}." n\'a pas de poste comptable"; 00371 echo_error($msg); echo_debug('user_form_ven.php',__LINE__,$msg); 00372 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00373 return null; @@ -353,7 +353,7 @@ 00375 } 00376 if ( strlen(trim($poste))==0 ) 00377 { -00378 $msg="La fiche ".$tiers." n\'a pas de poste comptable"; +00378 $msg="La fiche ".$tiers." n\'a pas de poste comptable"; 00379 echo_error($msg); echo_debug('user_form_ven.php',__LINE__,$msg); 00380 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00381 } @@ -369,7 +369,7 @@ 00391 if ( cmpDate($e_date,$l_date_start)<0 || 00392 cmpDate($e_date,$l_date_end)>0 ) 00393 { -00394 $msg="Not in the active periode please change your preference"; +00394 $msg="Not in the active periode please change your preference"; 00395 echo_error($msg); echo_error($msg); 00396 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00397 return null; @@ -377,7 +377,7 @@ 00399 // Periode ferme 00400 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) 00401 { -00402 $msg="This periode is closed please change your preference"; +00402 $msg="This periode is closed please change your preference"; 00403 echo_error($msg); echo_error($msg); 00404 echo "<SCRIPT>alert('$msg');</SCRIPT>"; 00405 return null; @@ -391,8 +391,8 @@ 00429 // Keep all the data if hidden 00430 // and store the array in variables 00431 $hidden=new widget("hidden"); -00432 foreach ($p_array as $name=>$content) { -00433 $data.=$hidden->IOValue($name,$content); +00432 foreach ($p_array as $name=>$content) { +00433 $data.=$hidden->IOValue($name,$content); 00434 ${"$name"}=$content; 00435 } 00436 @@ -446,14 +446,14 @@ 00484 00485 // If the price is not a number, retrieve the price from the database 00486 if ( isNumber(${"e_march$i"."_sell"}) == 0 ) { -00487 $fiche_price=getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_PRIX_VENTE); +00487 $fiche_price=getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_PRIX_VENTE); 00488 } else { 00489 $fiche_price=${"e_march$i"."_sell"}; 00490 } 00491 00492 00493 // VAT -00494 $vat=(isNumber(${"e_march$i"."_tva_id"})==0)?getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA):${"e_march$i"."_tva_id"}; +00494 $vat=(isNumber(${"e_march$i"."_tva_id"})==0)?getFicheAttribut($p_cn,${"e_march$i"},ATTR_DEF_TVA):${"e_march$i"."_tva_id"}; 00495 00496 // vat label 00497 // vat rate @@ -535,7 +535,7 @@ 00573 if ( CountSql($p_cn, 00574 "select md_id,md_name from document_modele where md_type=4") > 0 ) 00575 { -00576 $r.='G&eacute;n&eacute;rer une facture <input type="checkbox" name="gen_invoice" CHECKED>'; +00576 $r.='G&eacute;n&eacute;rer une facture <input type="checkbox" name="gen_invoice" CHECKED>'; 00577 // We propose to generate the invoice and some template 00578 $doc_gen=new widget("select"); 00579 $doc_gen->name="gen_doc"; @@ -550,9 +550,9 @@ 00588 00589 $r.=$data; 00590 if ( $sum_with_vat != 0 ) { -00591 $r.='<INPUT TYPE="SUBMIT" name="record_and_print_invoice" value="Sauver" >'; +00591 $r.='<INPUT TYPE="SUBMIT" name="record_and_print_invoice" value="Sauver" >'; 00592 } -00593 $r.='<INPUT TYPE="SUBMIT" name="correct_new_invoice" value="Corriger">'; +00593 $r.='<INPUT TYPE="SUBMIT" name="correct_new_invoice" value="Corriger">'; 00594 00595 $r.='</FORM>'; 00596 } @@ -575,21 +575,21 @@ 00639 //-- 00640 for ($i=0;$i<$nb_item;$i++) { 00641 // store quantity & goods in array -00642 $a_good[$i]=${"e_march$i"}; -00643 $a_quant[$i]=${"e_quant$i"}; -00644 $a_price[$i]=0; -00645 $a_vat[$i]=${"e_march$i"."_tva_id"}; +00642 $a_good[$i]=${"e_march$i"}; +00643 $a_quant[$i]=${"e_quant$i"}; +00644 $a_price[$i]=0; +00645 $a_vat[$i]=${"e_march$i"."_tva_id"}; 00646 // check whether the price is set or no 00647 if ( isNumber(${"e_march$i"."_sell"}) == 0 ) { 00648 if ( $a_good[$i] != "" ) { 00649 // If the price is not set we have to find it from the database -00650 $a_price[$i]=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_PRIX_VENTE); +00650 $a_price[$i]=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_PRIX_VENTE); 00651 } 00652 } else { 00653 // The price is valid -00654 $a_price[$i]=${"e_march$i"."_sell"}; +00654 $a_price[$i]=${"e_march$i"."_sell"}; 00655 } -00656 $cost=$a_price[$i]*$a_quant[$i]; +00656 $cost=$a_price[$i]*$a_quant[$i]; 00657 $amount+=$cost; 00658 $amount_jrn+=$cost; 00659 }// for @@ -613,7 +613,7 @@ 00677 00678 00679 // Debit = client -00680 $poste=GetFicheAttribut($p_cn,$e_client,ATTR_DEF_ACCOUNT); +00680 $poste=GetFicheAttribut($p_cn,$e_client,ATTR_DEF_ACCOUNT); 00681 StartSql($p_cn); 00682 $r=InsertJrnx($p_cn,'d',$p_user->id,$p_jrn,$poste,$e_date,round($amount,2)+round($sum_vat,2),$seq,$periode); 00683 if ( $r == false) { $Rollback($p_cn);exit("error 'user_form_ven.php' __LINE__");} @@ -621,7 +621,7 @@ 00685 // Credit = goods 00686 for ( $i = 0; $i < $nb_item;$i++) { 00687 if ( $a_good[$i] == "" ) continue; -00688 $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT); +00688 $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT); 00689 00690 // don't record operation of 0 00691 if ( $a_price[$i]*$a_quant[$i] == 0 ) continue; @@ -676,7 +676,7 @@ 00740 $vat_code="null"; 00741 } else { 00742 $computed_vat=ComputeVat($p_cn,$a_good[$i],$a_quant[$i],$a_price[$i],$a_vat[$i]); -00743 $vat_code=$a_vat[$i]; +00743 $vat_code=$a_vat[$i]; 00744 } 00745 $r=ExecSql($p_cn,"select insert_quant_sold ". 00746 "('".$internal."','".$a_good[$i]."',".$a_quant[$i].",".$a_price[$i]*$a_quant[$i]. @@ -689,7 +689,7 @@ 00753 } 00754 00755 ?> -
                                            Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                            Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                            diff --git a/doc/developper/html/user__form__ven_8php.html b/doc/developper/html/user__form__ven_8php.html index 9db2b24ab..4f85360fd 100644 --- a/doc/developper/html/user__form__ven_8php.html +++ b/doc/developper/html/user__form__ven_8php.html @@ -99,7 +99,7 @@ p_jrn concerned ledger

                                              Definition at line 284 of file user_form_ven.php.

                                              -References CountSql(), echo_debug(), echo_error(), isDate(), isNumber(), and name. +References $msg, CountSql(), echo_debug(), echo_error(), isDate(), isNumber(), and name.

                                              @@ -175,7 +175,7 @@ FormVenInput

                                              Definition at line 43 of file user_form_ven.php.

                                              -References $client_label, $fiche, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array(). +References $client_label, $fiche, $list, $msg, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array().

                                              @@ -260,7 +260,7 @@ FormVenteView ($p_cn,$p_jrn,$p_periode,$p_array,$p_number,$p_doc='html',$p_comme

                                              Definition at line 425 of file user_form_ven.php.

                                              -References $data, $file, $r, CountSql(), echo_error(), exit, getFicheAttribut(), getFicheName(), GetTvaRate(), isNumber(), make_array(), METHOD, name, and value. +References $data, $file, $r, CountSql(), echo_error(), exit, getFicheAttribut(), getFicheName(), GetTvaRate(), isNumber(), make_array(), METHOD, name, and value.

                                              @@ -327,10 +327,10 @@ RecordInvoice($p_cn,$p_array,$p_user,$p_jrn)

                                              Definition at line 627 of file user_form_ven.php.

                                              -References $comment, $e, $i, $poste, $r, $Res, $seq, $t, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). +References $comment, $e, $i, $poste, $r, $Res, $seq, $t, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). -


                                              Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__impress_8php-source.html b/doc/developper/html/user__impress_8php-source.html index dd5f98690..b74c484ee 100644 --- a/doc/developper/html/user__impress_8php-source.html +++ b/doc/developper/html/user__impress_8php-source.html @@ -62,8 +62,8 @@ 00057 array("user_impress.php?type=list_client","Liste Clients Assujettis") 00058 ); 00059 $default=( isset ($_GET['type']))?"user_impress.php?type=".$_GET['type']:""; -00060 $result=ShowItem($p_array,'H',"cell","mtitle",$default); -00061 echo $result; +00060 $result=ShowItem($p_array,'H',"cell","mtitle",$default); +00061 echo $result; 00062 00063 echo "</DIV>"; 00064 @@ -107,7 +107,7 @@ 00102 00103 html_page_stop(); 00104 ?> -
                                              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__impress_8php.html b/doc/developper/html/user__impress_8php.html index ba2909f64..677ab188e 100644 --- a/doc/developper/html/user__impress_8php.html +++ b/doc/developper/html/user__impress_8php.html @@ -129,7 +129,7 @@ Referenced by ShowMenuCo

                                              Definition at line 51 of file user_impress.php.

                                              -Referenced by ShowJrn(), ShowMenuCompta(), and u_ShowDossier(). +Referenced by ShowJrn(), ShowMenuCompta(), and u_ShowDossier().

                                              @@ -281,7 +281,7 @@ Definition at line 80

                                              Definition at line 95 of file user_impress.php.

                                              -Referenced by action::Confirm(), action::Display(), action::myList(), Document::Replace(), and action::SaveStage2(). +Referenced by action::Confirm(), action::Display(), action::get(), action::myList(), Document::Replace(), and action::SaveStage2().

                                              @@ -361,7 +361,7 @@ Referenced by ParseFor Definition at line 85 of file user_impress.php. -


                                              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__jrn_8php-source.html b/doc/developper/html/user__jrn_8php-source.html index d04ba7775..1dd6e28d3 100644 --- a/doc/developper/html/user__jrn_8php-source.html +++ b/doc/developper/html/user__jrn_8php-source.html @@ -75,9 +75,9 @@ 00070 } 00071 00072 // Show the available jrn -00073 $result=ShowJrn("user_jrn.php?jrn_type=".$jrn_type); +00073 $result=ShowJrn("user_jrn.php?jrn_type=".$jrn_type); 00074 echo "<div class=\"u_subtmenu\">"; -00075 echo $result; +00075 echo $result; 00076 echo "</div>"; 00077 00078 @@ -136,7 +136,7 @@ 00131 html_page_stop(); 00132 00133 ?> -
                                              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__jrn_8php.html b/doc/developper/html/user__jrn_8php.html index 77431cadd..b4ffbe3f9 100644 --- a/doc/developper/html/user__jrn_8php.html +++ b/doc/developper/html/user__jrn_8php.html @@ -210,7 +210,7 @@ Definition at line 35 Definition at line 66 of file user_jrn.php. -
                                              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__login_8php-source.html b/doc/developper/html/user__login_8php-source.html index 797948107..313cd728a 100644 --- a/doc/developper/html/user__login_8php-source.html +++ b/doc/developper/html/user__login_8php-source.html @@ -55,7 +55,7 @@ 00050 <? 00051 html_page_stop(); 00052 ?> -
                                              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__login_8php.html b/doc/developper/html/user__login_8php.html index fb9d91a85..d08648504 100644 --- a/doc/developper/html/user__login_8php.html +++ b/doc/developper/html/user__login_8php.html @@ -129,7 +129,7 @@ Definition at line 4431 of file user_login.php. -
                                              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__menu_8php-source.html b/doc/developper/html/user__menu_8php-source.html index b9093db3f..c613e2f15 100644 --- a/doc/developper/html/user__menu_8php-source.html +++ b/doc/developper/html/user__menu_8php-source.html @@ -33,42 +33,42 @@ 00038 { 00039 $p_array=GetAvailableFolder($p_user,$p_admin); 00040 if ( $p_array == 0 ) return " * Aucun dossier *"; -00041 $result=""; -00042 $result.="<table>"; -00043 $result.='<TR>'; +00041 $result=""; +00042 $result.="<table border=\"0\">"; +00043 $result.='<TR>'; 00044 if ( $p_admin == 1 ) { -00045 $result.="<TD><A class=\"mtitle\" HREF=\"admin_repo.php\"> Administration : </A></TD>"; +00045 $result.="<TD class=\"mtitle\" ><A class=\"mtitle\" HREF=\"admin_repo.php\"> Administration </A></TD>"; 00046 } -00047 $result.='<TD><A HREF="logout.php" CLASS="mtitle">: Sortir</a></TD>'; -00048 $result.="</TR>"; -00049 $result.="</table>"; -00050 $result.="<TABLE>"; +00047 $result.='<TD class="mtitle" ><A class="mtitle" HREF="logout.php" > Sortir</a></TD>'; +00048 $result.="</TR>"; +00049 $result.="</table>"; +00050 $result.="<TABLE>"; 00051 for ($i=0;$i<sizeof($p_array);$i++) { -00052 $id=$p_array[$i]['dos_id']; -00053 $name= $p_array[$i]['dos_name']; -00054 $desc=$p_array[$i]['dos_description']; +00052 $id=$p_array[$i]['dos_id']; +00053 $name= $p_array[$i]['dos_name']; +00054 $desc=$p_array[$i]['dos_description']; 00055 if ( $i%2 == 0) -00056 $tr="odd"; -00057 else $tr="even"; +00056 $tr="odd"; +00057 else $tr="even"; 00058 -00059 $result.="<TR class=\"$tr\"><TD class=\"$tr\">"; -00060 $result.=$id." <B>$name</B>"; -00061 $result.="</TD><TD class=\"$tr\">"; -00062 $result.=$desc; -00063 $result.="</TD><TD class=\"mtitle\">"; -00064 $result.="<A class=\"mtitle\" HREF=\"user_compta.php?dos=$id\">Comptabilité</A>"; -00065 $result.="</TD>"; -00066 $result.="<TD class=\"mtitle\">"; -00067 $result.="<A class=\"mtitle\" HREF=\"commercial.php?dos=$id\">Gestion</A>"; -00068 $result.="</TD>"; -00069 $result.="<TD class=\"mtitle\">"; -00070 $result.="<A class=\"mtitle\" HREF=\"parametre.php?dos=$id\">Paramètres</A>"; -00071 $result.="</TD>"; +00059 $result.="<TR class=\"$tr\"><TD class=\"$tr\">"; +00060 $result.=$id." <B>$name</B>"; +00061 $result.="</TD><TD class=\"$tr\">"; +00062 $result.=$desc; +00063 $result.="</TD><TD class=\"mtitle\">"; +00064 $result.="<A class=\"mtitle\" HREF=\"user_compta.php?dos=$id\">Comptabilité</A>"; +00065 $result.="</TD>"; +00066 $result.="<TD class=\"mtitle\">"; +00067 $result.="<A class=\"mtitle\" HREF=\"commercial.php?dos=$id\">Gestion</A>"; +00068 $result.="</TD>"; +00069 $result.="<TD class=\"mtitle\">"; +00070 $result.="<A class=\"mtitle\" HREF=\"parametre.php?dos=$id\">Paramètres</A>"; +00071 $result.="</TD>"; 00072 -00073 $result.="</TR>"; +00073 $result.="</TR>"; 00074 } -00075 $result.="</TABLE>"; -00076 return $result; +00075 $result.="</TABLE>"; +00076 return $result; 00077 } 00090 function GetAvailableFolder($p_user,$p_admin) 00091 { @@ -135,10 +135,10 @@ 00163 array('logout.php','logout',"Sortie") 00164 ); 00165 -00166 $result=ShowItem($p_array,'H',"mtitle","mtitle",$default,' width="100%"'); +00166 $result=ShowItem($p_array,'H',"mtitle","mtitle",$default,' width="100%"'); 00167 00168 $r="<H2 class=\"info\">Comptabilit&eacute; ".$_SESSION['g_name']." </H2>"; -00169 $r.=$result; +00169 $r.=$result; 00170 return $r; 00171 00172 @@ -266,7 +266,7 @@ 00329 00341 function get_quick_key($title,&$access_key_list) 00342 { -00343 $quick = $title[0]; +00343 $quick = $title[0]; 00344 if(array_key_exists($quick, $access_key_list)) 00345 { 00346 echo_debug(" key exists: " . $quick); @@ -308,223 +308,235 @@ 00396 if ( ! isset ($p_qcode)) $p_qcode=""; 00397 00398 -00399 if ( $p_mont_sel != "" ) $opt.='<OPTION value="'.$p_mont_sel.'" SELECTED> '.$p_mont_sel; +00399 if ( $p_mont_sel != "" ) $opt.='<OPTION value="'.$p_mont_sel.'" SELECTED> '.$p_mont_sel; 00400 $r=""; 00401 00402 // $r.= '<div style="border-style:outset;border-width:1pt;">'; 00403 -00404 $r.=JS_SEARCH_POSTE; -00405 $r.= "<B>Recherche</B>"; -00406 $r.= '<FORM ACTION="recherche.php" METHOD="GET">'; -00407 $r.="<table><tr><TD>"; -00408 $r.= '<TABLE>'; -00409 $r.= "<TR>"; -00410 $r.= '<TD COLSPAN="3"> Date compris entre</TD> '; -00411 $r.= "</TR> <TR>"; -00412 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_start" SIZE="10" VALUE="'.$p_date_start.'"></TD>'; -00413 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_end" size="10" Value="'.$p_date_end.'"></TD>'; -00414 $r.= '</TD><TD>'; -00415 $r.= "</TR> <TR>"; -00416 $r.= "<TD> Montant "; -00417 $r.= ' <SELECT NAME="mont_sel">'.$opt.' </SELECT></TD><TD>'; -00418 $r.= ' <INPUT TYPE="TEXT" NAME="s_montant" SIZE="10" VALUE="'.$p_s_montant.'"></TD>'; -00419 $r.= "</TR><TR>"; -00420 $r.="<TD> Internal code</td>"; -00421 $r.='<TD><input type="text" name="s_internal" value="'.$p_s_internal.'"></td>'; -00422 -00423 $r.="</TD></TR></TABLE></td><TD><table>"; -00424 -00425 $r.= "</TR>"; -00426 $r.= "<TR>"; -00427 $W=new widget("js_search_poste"); -00428 $W->label="Numéro de poste"; -00429 $W->name="poste"; -00430 $W->value=$p_poste; -00431 $r.="<TR>".$W->IOValue(); -00432 $r.= "</TR>"; -00433 $r.= "<TR>"; -00434 $A=new widget("TEXT"); -00435 $A->label="Quick Code"; -00436 $A->name="qcode"; -00437 $A->value=$p_qcode; -00438 $r.="<TD> Quick Code</TD><TD>".$A->IOValue()."</TD>"; -00439 $r.= "</TR>"; -00440 -00441 -00442 $r.= '<TD colspan="3"> Le commentaire contient </TD>'; -00443 $r.= "</TR><TR>"; -00444 $r.= '<TD COLSPAN="3"> <INPUT TYPE="TEXT" NAME="s_comment" VALUE="'.$p_s_comment.'"></TD>'; -00445 $r.= "</TR><TR>"; -00446 $r.= '<TD COLSPAN="3"><INPUT TYPE="SUBMIT" VALUE="Recherche" NAME="viewsearch"></TD>'; -00447 $r.= "</TR>"; -00448 $r.= "</TABLE>"; -00449 $r.="</TR></TABLE>"; -00450 $r.= "</FORM>"; -00451 -00452 -00453 return $r; -00454 -00455 } -00464 function ShowMenuAdvanced($default="") { -00465 // Show the left menu -00466 $left_menu=ShowItem(array( -00467 //('rapprt.php','Rapprochement'), -00468 array('jrn_update.php','Journaux'), -00469 array('user_advanced.php?p_action=periode','Periode'), -00470 array('central.php','Centralise'), -00471 array('pcmn_update.php?p_start=1','Plan Comptable'), -00472 array('stock.php','Stock'), -00473 array('form.php','Rapport'), -00474 array('import.php','Import Banque'), -00475 array('ecrit_ouv.php','Ecriture ouverture') -00476 -00477 ), -00478 'H',"cell","mtitle",$default); -00479 $r='<div class="u_subtmenu">'.$left_menu."</div>"; -00480 return $r; -00481 } -00490 function ShowJrn($p_menu="") -00491 { -00492 -00493 $p_array=array( -00494 array("user_jrn.php?jrn_type=NONE" ,"Grand Livre"), -00495 array("user_jrn.php?jrn_type=VEN" ,"Entrée"), -00496 array("user_jrn.php?jrn_type=ACH","Dépense"), -00497 array("user_jrn.php?jrn_type=FIN","Financier"), -00498 array("user_jrn.php?jrn_type=OD","Op. Diverses") -00499 ); -00500 $result=ShowItem($p_array,'H',"cell","mtitle",$p_menu); -00501 return $result; -00502 } -00503 -00514 function ShowMenuFiche($p_dossier) -00515 { -00516 $cn=DbConnect($p_dossier); -00517 echo '<div class="lmenu">'; -00518 echo '<TABLE>'; -00521 echo '<TR><TD colspan="3" class="mtitle"> -00522 <A class="mtitle" HREF="fiche.php?action=add_modele&fiche=modele">Creation</A></TD></TR>'; -00523 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); -00524 $Max=pg_NumRows($Res); -00525 for ( $i=0; $i < $Max;$i++) { -00526 $l_line=pg_fetch_array($Res,$i); -00527 printf('<TR><TD class="cell">%s</TD><TD class="mshort"><A class="mtitle" HREF="fiche.php?action=vue&fiche=%d">Voir</A> -00528 </TD> -00529 <TD class="mshort"><A class="mtitle" HREF="fiche.php?action=modifier&fiche=%d">Modifier</A></TD> -00530 </TR>', -00531 $l_line['fd_label'], -00532 $l_line['fd_id'], -00533 $l_line['fd_id']); -00534 } -00535 echo "</TABLE>"; -00536 echo '</div>'; -00537 } -00539 /* \brief show the menu for user/database management -00540 /* -00541 /* \return HTML code with the menu -00542 */ -00543 -00544 function MenuAdmin() -00545 { -00546 $item=array (array("admin_repo.php?action=user_mgt","Utilisateurs"), -00547 array("admin_repo.php?action=dossier_mgt","Dossiers"), -00548 array("admin_repo.php?action=modele_mgt","Modèles"), -00549 array("login.php","Accueil"), -00550 array("logout.php","Logout") -00551 ); -00552 -00553 $menu=ShowItem($item,'H'); -00554 return $menu; -00555 } -00564 function ShowMenuDocument() -00565 { -00566 $base="parametre.php?p_action=document&sa="; -00567 $sub_menu=ShowItem( -00568 array(array($base."add_document","Ajout")) -00569 ,'V',"cell","mtitle"); -00570 return $sub_menu; -00571 -00572 } -00584 function ShowMenuParam($p_action="") -00585 { -00586 $sub_menu=ShowItem(array( -00587 -00588 array('parametre.php?p_action=company','Sociétés'), -00589 array('parametre.php?p_action=devise','Devises'), -00590 array('parametre.php?p_action=tva','Tva'), -00591 array('parametre.php?p_action=poste','Poste Comptable'), -00592 array('parametre.php?p_action=fiche','Fiche'), -00593 array('user_sec.php','Sécurité'), -00594 array('parametre.php?p_action=document','Document'), -00595 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), -00596 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), -00597 -00598 array('login.php','Accueil',"Accueil"), -00599 array('logout.php','logout',"Sortie") -00600 ), -00601 'H',"mtitle","mtitle",$p_action,' width="100%"'); -00602 return $sub_menu; -00603 -00604 } -00617 function MenuJrn($p_dossier) -00618 { -00619 echo '<TABLE>'; -00620 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>'; -00621 include_once("postgres.php"); -00622 $Cn=DbConnect($p_dossier); -00623 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_name, -00624 jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc -00625 from jrn_def join jrn_type on jrn_def_type=jrn_type_id"); -00626 $Max=pg_NumRows($Ret); -00627 for ($i=0;$i<$Max;$i++) { -00628 $l_line=pg_fetch_array($Ret,$i); -00629 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>', -00630 $l_line['jrn_def_id'],$l_line['jrn_def_name']); -00631 -00632 } -00633 echo "</TABLE>"; -00634 } -00647 function ShowMenuPcmn($p_start=1) -00648 { -00649 echo '<TABLE>'; -00650 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>'; -00651 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>'; -00652 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>'; -00653 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>'; -00654 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>'; -00655 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>'; -00656 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>'; -00657 echo "</TABLE>"; -00658 } -00670 function ShowMenuComptaForm($p_dossier) { -00671 $cn=DbConnect($p_dossier); -00672 echo '<div class="lmenu">'; -00673 echo '<TABLE>'; -00674 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=add">Ajout</A></TD></TR>'; -00675 $Ret=ExecSql($cn,"select fr_id, fr_label -00676 from formdef order by fr_label"); -00677 $Max=pg_NumRows($Ret); -00678 for ($i=0;$i<$Max;$i++) { -00679 $l_line=pg_fetch_array($Ret,$i); -00680 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=view&fr_id=%s">%s</A></TD></TR>', -00681 $l_line['fr_id'],$l_line['fr_label']); -00682 -00683 } -00684 echo "</TABLE>"; -00685 echo '</div>'; -00686 } -00687 -00693 function ShowMenuImport(){ -00694 echo '<TABLE>'; -00695 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=import">Importer CSV</A></TD></TR>'; -00696 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=verif">Verif CSV</A></TD></TR>'; -00697 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=transfer">Transfert CSV</A></TD></TR>'; -00698 -00699 echo "</TABLE>"; -00700 } -00701 -00702 ?> -
                                              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +00404 $r.=JS_SEARCH_POSTE; +00405 $r.=JS_SEARCH_CARD; +00406 $r.= "<B>Recherche</B>"; +00407 $r.= '<FORM ACTION="recherche.php" METHOD="GET">'; +00408 $r.="<table><tr><TD>"; +00409 $r.= '<TABLE>'; +00410 $r.= "<TR>"; +00411 $r.= '<TD COLSPAN="3"> Date compris entre</TD> '; +00412 $r.= "</TR> <TR>"; +00413 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_start" SIZE="10" VALUE="'.$p_date_start.'"></TD>'; +00414 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_end" size="10" Value="'.$p_date_end.'"></TD>'; +00415 $r.= '</TD><TD>'; +00416 $r.= "</TR> <TR>"; +00417 $r.= "<TD> Montant "; +00418 $r.= ' <SELECT NAME="mont_sel">'.$opt.' </SELECT></TD><TD>'; +00419 $r.= ' <INPUT TYPE="TEXT" NAME="s_montant" SIZE="10" VALUE="'.$p_s_montant.'"></TD>'; +00420 $r.= "</TR><TR>"; +00421 $r.="<TD> Internal code</td>"; +00422 $r.='<TD><input type="text" name="s_internal" value="'.$p_s_internal.'"></td>'; +00423 +00424 $r.="</TD></TR></TABLE></td><TD><table>"; +00425 +00426 $r.= "</TR>"; +00427 $r.= "<TR>"; +00428 $W=new widget("js_search_poste"); +00429 $W->label="Numéro de poste"; +00430 $W->name="poste"; +00431 $W->value=$p_poste; +00432 $r.="<TR>".$W->IOValue(); +00433 $r.= "</TR>"; +00434 $r.= "<TR>"; +00435 +00436 $A=new widget('js_search_only'); +00437 $A->name='qcode'; +00438 $A->value=$p_qcode; +00439 $A->extra=""; +00440 $A->table=1; +00441 // $r.=$sp->IOValue("p_qcode_label")."</TD></TR>"; +00442 +00443 // $A=new widget("TEXT"); +00444 $A->label="Quick Code"; +00445 $A->extra='all'; +00446 //$A->name="qcode"; +00447 // $A->value=$p_qcode; +00448 $sp= new widget("span"); +00449 $sp->table=0; +00450 $r.=$A->IOValue().'</TD>'.$sp->IOValue("qcode_label"); +00451 $r.= "</TR>"; +00452 echo_debug('user_menu.php',__LINE__,"<TD>".$A->IOValue().'</TD><TD>'.$sp->IOValue("p_qcode_label")."</TD>"); +00453 +00454 $r.= '<TD colspan="3"> Le commentaire contient </TD>'; +00455 $r.= "</TR><TR>"; +00456 $r.= '<TD COLSPAN="3"> <INPUT TYPE="TEXT" NAME="s_comment" VALUE="'.$p_s_comment.'"></TD>'; +00457 $r.= "</TR><TR>"; +00458 $r.= '<TD COLSPAN="3"><INPUT TYPE="SUBMIT" VALUE="Recherche" NAME="viewsearch"></TD>'; +00459 $r.= "</TR>"; +00460 $r.= "</TABLE>"; +00461 $r.="</TR></TABLE>"; +00462 $r.= "</FORM>"; +00463 +00464 +00465 return $r; +00466 +00467 } +00476 function ShowMenuAdvanced($default="") { +00477 // Show the left menu +00478 $left_menu=ShowItem(array( +00479 //('rapprt.php','Rapprochement'), +00480 array('jrn_update.php','Journaux'), +00481 array('user_advanced.php?p_action=periode','Periode'), +00482 array('central.php','Centralise'), +00483 array('pcmn_update.php?p_start=1','Plan Comptable'), +00484 array('stock.php','Stock'), +00485 array('form.php','Rapport'), +00486 array('import.php','Import Banque'), +00487 array('ecrit_ouv.php','Ecriture ouverture') +00488 +00489 ), +00490 'H',"cell","mtitle",$default); +00491 $r='<div class="u_subtmenu">'.$left_menu."</div>"; +00492 return $r; +00493 } +00502 function ShowJrn($p_menu="") +00503 { +00504 +00505 $p_array=array( +00506 array("user_jrn.php?jrn_type=NONE" ,"Grand Livre"), +00507 array("user_jrn.php?jrn_type=VEN" ,"Entrée"), +00508 array("user_jrn.php?jrn_type=ACH","Dépense"), +00509 array("user_jrn.php?jrn_type=FIN","Financier"), +00510 array("user_jrn.php?jrn_type=OD","Op. Diverses") +00511 ); +00512 $result=ShowItem($p_array,'H',"cell","mtitle",$p_menu); +00513 return $result; +00514 } +00515 +00526 function ShowMenuFiche($p_dossier) +00527 { +00528 $cn=DbConnect($p_dossier); +00529 echo '<div class="lmenu">'; +00530 echo '<TABLE>'; +00533 echo '<TR><TD colspan="3" class="mtitle"> +00534 <A class="mtitle" HREF="fiche.php?action=add_modele&fiche=modele">Creation</A></TD></TR>'; +00535 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); +00536 $Max=pg_NumRows($Res); +00537 for ( $i=0; $i < $Max;$i++) { +00538 $l_line=pg_fetch_array($Res,$i); +00539 printf('<TR><TD class="cell">%s</TD><TD class="mshort"><A class="mtitle" HREF="fiche.php?action=vue&fiche=%d">Voir</A> +00540 </TD> +00541 <TD class="mshort"><A class="mtitle" HREF="fiche.php?action=modifier&fiche=%d">Modifier</A></TD> +00542 </TR>', +00543 $l_line['fd_label'], +00544 $l_line['fd_id'], +00545 $l_line['fd_id']); +00546 } +00547 echo "</TABLE>"; +00548 echo '</div>'; +00549 } +00551 /* \brief show the menu for user/database management +00552 /* +00553 /* \return HTML code with the menu +00554 */ +00555 +00556 function MenuAdmin() +00557 { +00558 $item=array (array("admin_repo.php?action=user_mgt","Utilisateurs"), +00559 array("admin_repo.php?action=dossier_mgt","Dossiers"), +00560 array("admin_repo.php?action=modele_mgt","Modèles"), +00561 array("login.php","Accueil"), +00562 array("logout.php","Logout") +00563 ); +00564 +00565 $menu=ShowItem($item,'H'); +00566 return $menu; +00567 } +00576 function ShowMenuDocument() +00577 { +00578 $base="parametre.php?p_action=document&sa="; +00579 $sub_menu=ShowItem( +00580 array(array($base."add_document","Ajout")) +00581 ,'V',"cell","mtitle"); +00582 return $sub_menu; +00583 +00584 } +00596 function ShowMenuParam($p_action="") +00597 { +00598 $sub_menu=ShowItem(array( +00599 +00600 array('parametre.php?p_action=company','Sociétés'), +00601 array('parametre.php?p_action=devise','Devises'), +00602 array('parametre.php?p_action=tva','Tva'), +00603 array('parametre.php?p_action=poste','Poste Comptable'), +00604 array('parametre.php?p_action=fiche','Fiche'), +00605 array('user_sec.php','Sécurité'), +00606 array('parametre.php?p_action=document','Document'), +00607 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), +00608 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), +00609 +00610 array('login.php','Accueil',"Accueil"), +00611 array('logout.php','logout',"Sortie") +00612 ), +00613 'H',"mtitle","mtitle",$p_action,' width="100%"'); +00614 return $sub_menu; +00615 +00616 } +00629 function MenuJrn($p_dossier) +00630 { +00631 echo '<TABLE>'; +00632 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>'; +00633 include_once("postgres.php"); +00634 $Cn=DbConnect($p_dossier); +00635 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_name, +00636 jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc +00637 from jrn_def join jrn_type on jrn_def_type=jrn_type_id"); +00638 $Max=pg_NumRows($Ret); +00639 for ($i=0;$i<$Max;$i++) { +00640 $l_line=pg_fetch_array($Ret,$i); +00641 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>', +00642 $l_line['jrn_def_id'],$l_line['jrn_def_name']); +00643 +00644 } +00645 echo "</TABLE>"; +00646 } +00659 function ShowMenuPcmn($p_start=1) +00660 { +00661 echo '<TABLE>'; +00662 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>'; +00663 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>'; +00664 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>'; +00665 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>'; +00666 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>'; +00667 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>'; +00668 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>'; +00669 echo "</TABLE>"; +00670 } +00682 function ShowMenuComptaForm($p_dossier) { +00683 $cn=DbConnect($p_dossier); +00684 echo '<div class="lmenu">'; +00685 echo '<TABLE>'; +00686 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=add">Ajout</A></TD></TR>'; +00687 $Ret=ExecSql($cn,"select fr_id, fr_label +00688 from formdef order by fr_label"); +00689 $Max=pg_NumRows($Ret); +00690 for ($i=0;$i<$Max;$i++) { +00691 $l_line=pg_fetch_array($Ret,$i); +00692 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=view&fr_id=%s">%s</A></TD></TR>', +00693 $l_line['fr_id'],$l_line['fr_label']); +00694 +00695 } +00696 echo "</TABLE>"; +00697 echo '</div>'; +00698 } +00699 +00705 function ShowMenuImport(){ +00706 echo '<TABLE>'; +00707 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=import">Importer CSV</A></TD></TR>'; +00708 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=verif">Verif CSV</A></TD></TR>'; +00709 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=transfer">Transfert CSV</A></TD></TR>'; +00710 +00711 echo "</TABLE>"; +00712 } +00713 +00714 ?> +
                                              Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                              diff --git a/doc/developper/html/user__menu_8php.html b/doc/developper/html/user__menu_8php.html index f945d340b..2f3c67367 100644 --- a/doc/developper/html/user__menu_8php.html +++ b/doc/developper/html/user__menu_8php.html @@ -124,7 +124,7 @@ get_quick_key

                                              Definition at line 341 of file user_menu.php.

                                              -References $title, and echo_debug(). +References $title, and echo_debug().

                                              Referenced by ShowMenuJrn(). @@ -259,9 +259,9 @@ References $l_line,

                                              MenuAdmin

                                              -Definition at line 544 of file user_menu.php. +Definition at line 556 of file user_menu.php.

                                              -References ShowItem(). +References ShowItem().

                                              @@ -299,9 +299,9 @@ Show the menu in the jrn page.

                                              Returns:
                                              nothing

                                              -Definition at line 617 of file user_menu.php. +Definition at line 629 of file user_menu.php.

                                              -References $l_line, $Max, $Ret, DbConnect(), and ExecSql(). +References $l_line, $Max, $Ret, DbConnect(), and ExecSql().

                                              @@ -339,9 +339,9 @@ Return a string containing the menu main menu when you click on Journaux.

                                              Returns:
                                              HTML Code

                                              -Definition at line 490 of file user_menu.php. +Definition at line 502 of file user_menu.php.

                                              -References $p_array, $result, and ShowItem(). +References $p_array, $result, and ShowItem().

                                              @@ -379,9 +379,9 @@ build the menu of user_advanced.ph

                                              Returns:
                                              the menu

                                              -Definition at line 464 of file user_menu.php. +Definition at line 476 of file user_menu.php.

                                              -References $left_menu, $r, Centralise(), and ShowItem(). +References $left_menu, $r, Centralise(), and ShowItem().

                                              @@ -426,13 +426,13 @@ show the top menu for the user profile and highight the selected one p_high what to hightlight, by default it is autodetected but sometimes it must be given. Default value=""

                                      -
                                      Todo:
                                      clean param p_dossier
                                      +
                                      Todo:
                                      clean param p_dossier
                                      Returns:
                                      none

                                      Definition at line 132 of file user_menu.php.

                                      -References $default, $p_array, $r, $result, echo_debug(), ShowItem(), and width. +References $default, $p_array, $r, $result, echo_debug(), ShowItem(), and width.

                                      @@ -470,9 +470,9 @@ Show the left menu for the report (add a report, view it).

                                      Returns:
                                      nothing

                                      -Definition at line 670 of file user_menu.php. +Definition at line 682 of file user_menu.php.

                                      -References $cn, $l_line, $Max, $Ret, DbConnect(), and ExecSql(). +References $cn, $l_line, $Max, $Ret, DbConnect(), and ExecSql().

                                      @@ -509,9 +509,9 @@ References $cn,

                                      Returns:
                                      string

                                      -Definition at line 564 of file user_menu.php. +Definition at line 576 of file user_menu.php.

                                      -References ShowItem(). +References ShowItem().

                                      @@ -547,12 +547,12 @@ Show the menu for the card management.

                                      Returns:
                                      nothing
                                      -
                                      Todo:
                                      Only for developper A test must be added
                                      +
                                      Todo:
                                      Only for developper A test must be added

                                      -Definition at line 514 of file user_menu.php. +Definition at line 526 of file user_menu.php.

                                      -References $cn, $l_line, $Max, $Res, DbConnect(), and ExecSql(). +References $cn, $l_line, $Max, $Res, DbConnect(), and ExecSql().

                                      @@ -584,7 +584,7 @@ Show the menu for importing, verify and transfert Bank CSV.

                                      Returns:
                                      nothing

                                      -Definition at line 693 of file user_menu.php. +Definition at line 705 of file user_menu.php.

                                      @@ -641,7 +641,7 @@ Show the menu of the jrn depending of its type, check with the security.

                                      Definition at line 299 of file user_menu.php.

                                      -References $action, $num, $Res, $ret, ExecSql(), and get_quick_key(). +References $action, $num, $Res, $ret, ExecSql(), and get_quick_key().

                                      @@ -707,7 +707,7 @@ ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)

                                      Definition at line 212 of file user_menu.php.

                                      -References $l_line, $Max, $Ret, $right, $User, CheckJrn(), DbConnect(), echo_debug(), and ExecSql(). +References $l_line, $Max, $Ret, $right, $User, CheckJrn(), DbConnect(), echo_debug(), and ExecSql().

                                      @@ -745,9 +745,9 @@ Show the parameter menu.

                                      Returns:
                                      HTML Code

                                      -Definition at line 584 of file user_menu.php. +Definition at line 596 of file user_menu.php.

                                      -References ShowItem(), and width. +References ShowItem(), and width.

                                      @@ -785,7 +785,7 @@ Show the menu from the pcmn page.

                                      Returns:
                                      nothing

                                      -Definition at line 647 of file user_menu.php. +Definition at line 659 of file user_menu.php.

                                      @@ -835,7 +835,7 @@ Show all the available folder for the users at the login page.

                                      Definition at line 37 of file user_menu.php.

                                      -References $desc, $i, $p_array, $result, $tr, and GetAvailableFolder(). +References $desc, $i, $p_array, $result, $tr, and GetAvailableFolder().

                                      @@ -899,10 +899,10 @@ Returns the form for the search (module accountancy).

                                      Definition at line 371 of file user_menu.php.

                                      -References $opt, $r, echo_debug(), METHOD, name, size, and value. +References $opt, $r, $sp, echo_debug(), METHOD, name, qcode, size, and value. -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__pref_8php-source.html b/doc/developper/html/user__pref_8php-source.html index a1cd3d7fb..5e75433a2 100644 --- a/doc/developper/html/user__pref_8php-source.html +++ b/doc/developper/html/user__pref_8php-source.html @@ -66,7 +66,7 @@ 00061 require_once("pref.inc.php"); 00062 html_page_stop(); 00063 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__pref_8php.html b/doc/developper/html/user__pref_8php.html index 52b59676b..6702b29a7 100644 --- a/doc/developper/html/user__pref_8php.html +++ b/doc/developper/html/user__pref_8php.html @@ -129,7 +129,7 @@ Definition at line 2932 of file user_pref.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__sec_8php-source.html b/doc/developper/html/user__sec_8php-source.html index f1870d5b2..233c08763 100644 --- a/doc/developper/html/user__sec_8php-source.html +++ b/doc/developper/html/user__sec_8php-source.html @@ -86,7 +86,7 @@ 00081 } 00082 00083 // session_register set to off, so variable are undefined -00084 foreach ($HTTP_GET_VARS as $name=>$value) +00084 foreach ($HTTP_GET_VARS as $name=>$value) 00085 ${"$name"}=$value; 00086 00087 if ( $action == "change_jrn" ) { @@ -269,7 +269,7 @@ 00264 echo "</DIV>"; 00265 html_page_stop(); 00266 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:35 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__sec_8php.html b/doc/developper/html/user__sec_8php.html index 312209943..939682698 100644 --- a/doc/developper/html/user__sec_8php.html +++ b/doc/developper/html/user__sec_8php.html @@ -463,7 +463,7 @@ Definition at line 16746 of file user_sec.php. -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__update_8php-source.html b/doc/developper/html/user__update_8php-source.html index 47a571221..5d320f88a 100644 --- a/doc/developper/html/user__update_8php-source.html +++ b/doc/developper/html/user__update_8php-source.html @@ -36,12 +36,12 @@ 00031 // p_id is jrn.jr_id 00032 $p_id=$_GET["line"]; 00033 echo_debug('user_update.php',__LINE__," action = update p_id = $p_id"); -00034 echo JS_VIEW_JRN_DETAIL; -00035 echo JS_CONCERNED_OP; +00034 echo JS_VIEW_JRN_DETAIL; +00035 echo JS_CONCERNED_OP; 00036 $r ='<FORM METHOD="POST" ACTION="user_jrn.php">'; 00037 $r.=UpdateJrn($cn,$p_id); -00038 $r.='<INPUT TYPE="Hidden" name="action" value="update_record">'; -00039 $r.='<input type="SUBMIT" name="update_record" value="Enregistre">'; +00038 $r.='<INPUT TYPE="Hidden" name="action" value="update_record">'; +00039 $r.='<input type="SUBMIT" name="update_record" value="Enregistre">'; 00040 $r.='</FORM>'; 00041 echo '<div class="redcontent">'; 00042 echo $r; @@ -57,7 +57,7 @@ 00052 00053 } // if update_record 00054 ?> -
                                      Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4
                                      diff --git a/doc/developper/html/user__update_8php.html b/doc/developper/html/user__update_8php.html index 8ee24d998..90ff437f1 100644 --- a/doc/developper/html/user__update_8php.html +++ b/doc/developper/html/user__update_8php.html @@ -51,7 +51,7 @@ Definition in file user_updat

                                      Definition at line 32 of file user_update.php.

                                      -Referenced by cl_user::cl_user(), Document_modele::Document_modele(), fiche::fiche(), fiche_def::fiche_def(), GetDataForm(), jrn::jrn(), parm_code::parm_code(), poste::poste(), and rapport::rapport(). +Referenced by cl_user::cl_user(), Document_modele::Document_modele(), fiche::fiche(), fiche_def::fiche_def(), GetDataForm(), jrn::jrn(), parm_code::parm_code(), poste::poste(), and rapport::rapport().

                                      @@ -104,7 +104,7 @@ Definition at line 36< Definition at line 28 of file user_update.php. -


                                      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  +
                                      Generated on Sun Jun 25 23:05:36 2006 for phpcompta by  doxygen 1.4.4