From 489b989bd31e370c7618b6db9866efa1be56bc61 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 7 Jul 2006 20:45:16 +0000 Subject: [PATCH] Change poste_comptable dans import_csv par le QuickCode et UpdateCSV utiliser avec des $_POST --- contrib/csv-tools/analyze.sh | 12 +- .../html/ac__common_8php-source.html | 6 +- doc/developper/html/ac__common_8php.html | 10 +- doc/developper/html/action_8inc_8php.html | 4 +- .../html/admin__repo_8php-source.html | 6 +- doc/developper/html/annotated.html | 4 +- doc/developper/html/annulation_8php.html | 2 +- doc/developper/html/bal__csv_8php-source.html | 2 +- doc/developper/html/balance_8php-source.html | 2 +- doc/developper/html/balance_8php.html | 8 +- doc/developper/html/bilan_8php.html | 4 +- .../html/cbc__be_8inc_8php-source.html | 105 +- doc/developper/html/cbc__be_8inc_8php.html | 216 +++++ .../html/central__inc_8php-source.html | 12 +- doc/developper/html/central__inc_8php.html | 14 +- doc/developper/html/classCezpdf.html | 32 +- doc/developper/html/classCpdf.html | 4 +- doc/developper/html/classCustomer.html | 16 +- doc/developper/html/classDocument.html | 42 +- .../html/classDocument__modele.html | 10 +- doc/developper/html/classOwn.html | 8 +- .../html/class_8ezpdf_8php-source.html | 26 +- .../html/class_8pdf_8php-source.html | 2 +- .../html/class__action_8php-source.html | 32 +- .../html/class__customer_8php-source.html | 14 +- .../html/class__document_8php-source.html | 34 +- .../class__document__modele_8php-source.html | 6 +- .../html/class__fiche_8php-source.html | 40 +- .../html/class__fiche__def_8php-source.html | 2 +- .../html/class__jrn_8php-source.html | 18 +- .../html/class__own_8php-source.html | 6 +- .../html/class__parm__code_8php-source.html | 6 +- .../html/class__user_8php-source.html | 34 +- .../html/class__widget_8php-source.html | 874 ++++++++--------- doc/developper/html/class__widget_8php.html | 4 +- doc/developper/html/classaction.html | 36 +- doc/developper/html/classcl__user.html | 44 +- doc/developper/html/classfiche.html | 24 +- doc/developper/html/classfiche__def.html | 30 +- doc/developper/html/classfiche__def__ref.html | 4 +- doc/developper/html/classjrn.html | 20 +- doc/developper/html/classparm__code.html | 8 +- doc/developper/html/classwidget.html | 896 +++++++++--------- doc/developper/html/commercial_8php.html | 2 +- doc/developper/html/debug_8php.html | 2 +- .../html/ecrit__ouv_8php-source.html | 4 +- doc/developper/html/ecrit__ouv_8php.html | 2 +- .../html/eub__be_8inc_8php-source.html | 26 +- doc/developper/html/eub__be_8inc_8php.html | 16 +- .../html/fiche__inc_8php-source.html | 34 +- doc/developper/html/fiche__inc_8php.html | 46 +- .../html/fiche__search_8php-source.html | 6 +- doc/developper/html/form_8php-source.html | 2 +- .../html/fortis__be_8inc_8php-source.html | 22 +- doc/developper/html/fortis__be_8inc_8php.html | 8 +- doc/developper/html/globals.html | 39 +- doc/developper/html/globals_0x62.html | 2 +- doc/developper/html/globals_vars.html | 39 +- doc/developper/html/globals_vars_0x62.html | 2 +- .../html/import__inc_8php-source.html | 290 +++--- doc/developper/html/import__inc_8php.html | 315 +++--- doc/developper/html/impress__bilan_8php.html | 2 +- .../html/impress__inc_8php-source.html | 34 +- doc/developper/html/impress__inc_8php.html | 38 +- doc/developper/html/impress__poste_8php.html | 2 +- .../html/ing__be_8inc_8php-source.html | 34 +- doc/developper/html/jrn_8php-source.html | 36 +- doc/developper/html/jrn_8php.html | 42 +- doc/developper/html/jrn__add_8php-source.html | 2 +- doc/developper/html/jrn__csv_8php-source.html | 8 +- .../html/jrn__detail_8php-source.html | 2 +- doc/developper/html/poste_8php-source.html | 2 +- doc/developper/html/poste_8php.html | 4 +- .../html/poste__search_8php-source.html | 8 +- doc/developper/html/postgres_8php-source.html | 4 +- doc/developper/html/postgres_8php.html | 16 +- doc/developper/html/pref_8inc_8php.html | 4 +- .../html/preference_8php-source.html | 4 +- doc/developper/html/preference_8php.html | 6 +- .../html/priv__user_8php-source.html | 2 +- doc/developper/html/readme_8php-source.html | 12 +- doc/developper/html/readme_8php.html | 4 +- doc/developper/html/sec__pdf_8php-source.html | 4 +- doc/developper/html/setup_8php-source.html | 8 +- doc/developper/html/setup_8php.html | 4 +- .../show__document__modele_8php-source.html | 2 +- doc/developper/html/show__pj_8php-source.html | 2 +- doc/developper/html/show__pj_8php.html | 2 +- .../html/show__tva_8php-source.html | 2 +- doc/developper/html/tva_8inc_8php.html | 8 +- .../html/user__action__ach_8php.html | 2 +- .../html/user__common_8php-source.html | 10 +- doc/developper/html/user__common_8php.html | 16 +- html/import.php | 4 +- include/class_widget.php | 63 +- include/import_inc.php | 98 +- 96 files changed, 2200 insertions(+), 1827 deletions(-) diff --git a/contrib/csv-tools/analyze.sh b/contrib/csv-tools/analyze.sh index 42b5da6ef..ef13ef966 100644 --- a/contrib/csv-tools/analyze.sh +++ b/contrib/csv-tools/analyze.sh @@ -4,21 +4,23 @@ # GNU Gpl Author: Dany De Bontridder ######################################################################### Help () { - echo "Usage is $0 start end < file " + echo "Usage is $0 start end " echo "or" - echo "Usage is $0 line < file " + echo "Usage is $0 line " } Help +FILE=argenta.csv + if [ $# -eq 2 ]; then START=$1 END=$2 - sed -ne "${START},${END}p" ACI20-janv.-06.csv | + sed -ne "${START},${END}p" $FILE | awk 'BEGIN {FS=";"} { for ( i=1; i"$i;}}' fi if [ $# -eq 1 ]; then START=$1 - sed -ne "${START}p" ACI20-janv.-06.csv | + sed -ne "${START}p" $FILE | awk 'BEGIN {FS=";"} { for ( i=1; i"$i;}}' -fi \ No newline at end of file +fi diff --git a/doc/developper/html/ac__common_8php-source.html b/doc/developper/html/ac__common_8php-source.html index e577e2355..ce2c07b44 100644 --- a/doc/developper/html/ac__common_8php-source.html +++ b/doc/developper/html/ac__common_8php-source.html @@ -190,9 +190,9 @@ 00283 $max=pg_NumRows($a); 00284 if ( $max==0) return null; 00285 for ($i=0;$i<$max;$i++) { -00286 $row=pg_fetch_row($a); -00287 $r[$i]['value']=$row[0]; -00288 $r[$i]['label']=$row[1]; +00286 $row=pg_fetch_row($a); +00287 $r[$i]['value']=$row[0]; +00288 $r[$i]['label']=$row[1]; 00289 } 00290 // add a blank item ? 00291 if ( $p_null == 1 ) { diff --git a/doc/developper/html/ac__common_8php.html b/doc/developper/html/ac__common_8php.html index 769b6617e..3634c49d0 100644 --- a/doc/developper/html/ac__common_8php.html +++ b/doc/developper/html/ac__common_8php.html @@ -918,17 +918,17 @@ make a array with the sql

Definition at line 280 of file ac_common.php.

-References $a, $i, $r, $row, echo_debug(), ExecSql(), label, and value. +References $a, $i, $r, $row, echo_debug(), ExecSql(), label, and value.

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

00280                                             {
+Referenced by action::Confirm(), action::Display(), Document_modele::form(), FormAchInput(), FormVenInput(), FormVenteView(), and ShowFormTransfert().
00280                                             {
 00281   echo_debug('ac_common',__LINE__,$p_sql);
 00282   $a=ExecSql($p_cn,$p_sql);
 00283   $max=pg_NumRows($a);
 00284   if ( $max==0) return null;
 00285   for ($i=0;$i<$max;$i++) {
-00286     $row=pg_fetch_row($a);
-00287     $r[$i]['value']=$row[0];
-00288     $r[$i]['label']=$row[1];
+00286     $row=pg_fetch_row($a);
+00287     $r[$i]['value']=$row[0];
+00288     $r[$i]['label']=$row[1];
 00289   }
 00290   // add a blank item ?
 00291   if ( $p_null == 1 ) {
diff --git a/doc/developper/html/action_8inc_8php.html b/doc/developper/html/action_8inc_8php.html
index 972a81034..0d1b13729 100644
--- a/doc/developper/html/action_8inc_8php.html
+++ b/doc/developper/html/action_8inc_8php.html
@@ -770,7 +770,7 @@ Referenced by 240 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().

@@ -851,7 +851,7 @@ Referenced by action:

Definition at line 241 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(). diff --git a/doc/developper/html/admin__repo_8php-source.html b/doc/developper/html/admin__repo_8php-source.html index 929186039..c22e0a9a0 100644 --- a/doc/developper/html/admin__repo_8php-source.html +++ b/doc/developper/html/admin__repo_8php-source.html @@ -127,7 +127,7 @@ 00123 // Database created 00124 $l_id=GetDbId($dos); 00125 if ( $l_id != 0) { -00126 $Sql=sprintf("CREATE DATABASE %sDOSSIER%d encoding='ISO8859-1' TEMPLATE %sMOD%d",domaine,$l_id,domaine,$_POST["FMOD_ID"]); +00126 $Sql=sprintf("CREATE DATABASE %sDOSSIER%d encoding='ISO8859-1' TEMPLATE %sMOD%d",domaine,$l_id,domaine,$_POST["FMOD_ID"]); 00127 echo_debug($Sql); 00128 ExecSql($cn,$Sql); 00129 $Res=ExecSql($cn,"insert into jnt_use_dos (use_id,dos_id) values (1,$l_id)"); @@ -213,7 +213,7 @@ 00209 // get the mod_id 00210 $l_id=GetSequence($cn,'s_modid'); 00211 if ( $l_id != 0 ) { -00212 $Sql=sprintf("CREATE DATABASE %sMOD%d encoding='ISO8859-1' TEMPLATE %sDOSSIER%s",domaine,$l_id,domaine,$_POST["FMOD_DBID"]); +00212 $Sql=sprintf("CREATE DATABASE %sMOD%d encoding='ISO8859-1' TEMPLATE %sDOSSIER%s",domaine,$l_id,domaine,$_POST["FMOD_DBID"]); 00213 ExecSql($cn,$Sql); 00214 } 00215 }// if $mod_name != null @@ -236,7 +236,7 @@ 00232 $Res=ExecSql($cn_mod,$sql); 00233 $Max=pg_NumRows($Res); 00234 for ($seq=0;$seq<$Max;$seq++) { -00235 $row=pg_fetch_array($Res,$seq); +00235 $row=pg_fetch_array($Res,$seq); 00236 $sql=sprintf ("select setval('s_jrn_%d',1,false)",$row['jrn_def_id']); 00237 ExecSql($cn_mod,$sql); 00238 } diff --git a/doc/developper/html/annotated.html b/doc/developper/html/annotated.html index dc14f4108..1cb2a3fbe 100644 --- a/doc/developper/html/annotated.html +++ b/doc/developper/html/annotated.html @@ -30,7 +30,9 @@ posteManage the account rapportClass rapport Create, view, modify and parse report 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 + widgetClass widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search. 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. Possible type $type

    +
  • TEXT
  • HIDDEN
  • SELECT
  • PASSWORD
  • CHECKBOX
  • RADIO
  • TEXTAREA
  • RICHTEXT
  • FILE
  • JS_SEARCH_POSTE call a popup window for searching the account
  • JS_SEARCH call a popup window for searching a quickcode or to add one
  • JS_SEARCH_ONLY like JS_SEARCH but without adding a quickcode
  • SPAN
  • JS_TVA open a popup window for the VAT
  • JS_CONCERNED open a popup window for search a operation
+ diff --git a/doc/developper/html/annulation_8php.html b/doc/developper/html/annulation_8php.html index 95c6c84ea..ea01537ce 100644 --- a/doc/developper/html/annulation_8php.html +++ b/doc/developper/html/annulation_8php.html @@ -190,7 +190,7 @@ Definition at line 149 Definition at line 136 of file annulation.php.

-Referenced by GetSequence(), NextSequence(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), and TransferCSV(). +Referenced by GetSequence(), NextSequence(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), and TransferCSV().

diff --git a/doc/developper/html/bal__csv_8php-source.html b/doc/developper/html/bal__csv_8php-source.html index dccbb8b77..c3b0e7e94 100644 --- a/doc/developper/html/bal__csv_8php-source.html +++ b/doc/developper/html/bal__csv_8php-source.html @@ -56,7 +56,7 @@ 00050 else 00051 $bal->central='N'; 00052 -00053 $row=$bal->GetRow($_POST['from_periode'], +00053 $row=$bal->GetRow($_POST['from_periode'], 00054 $_POST['to_periode']); 00055 foreach ($row as $r) { 00056 diff --git a/doc/developper/html/balance_8php-source.html b/doc/developper/html/balance_8php-source.html index 3d18ea7d9..789282c15 100644 --- a/doc/developper/html/balance_8php-source.html +++ b/doc/developper/html/balance_8php-source.html @@ -110,7 +110,7 @@ 00108 else 00109 $bal->central='N'; 00110 -00111 $row=$bal->GetRow($_POST['from_periode'], +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']); diff --git a/doc/developper/html/balance_8php.html b/doc/developper/html/balance_8php.html index c67528d11..0f64d14fe 100644 --- a/doc/developper/html/balance_8php.html +++ b/doc/developper/html/balance_8php.html @@ -202,7 +202,7 @@ Definition at line 46 o

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(). +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().

@@ -356,7 +356,7 @@ Definition at line 70 o

Definition at line 36 of file balance.php.

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

@@ -383,7 +383,7 @@ Referenced by cl_user::

Definition at line 76 of file balance.php.

-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(). +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().

@@ -410,7 +410,7 @@ Referenced by Cpdf::addI

Definition at line 71 of file balance.php.

-Referenced by fiche::blank(), ListJrn(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), VerifImport(), ViewFiche(), ViewRecord(), and widget::widget(). +Referenced by fiche::blank(), ListJrn(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), VerifImport(), ViewFiche(), ViewRecord(), and widget::widget(). diff --git a/doc/developper/html/bilan_8php.html b/doc/developper/html/bilan_8php.html index 39ed60af4..5d236ee73 100644 --- a/doc/developper/html/bilan_8php.html +++ b/doc/developper/html/bilan_8php.html @@ -219,7 +219,7 @@ Referenced by rappor

Definition at line 59 of file bilan.php.

-Referenced by TransferCSV(). +Referenced by TransferCSV().

@@ -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().

diff --git a/doc/developper/html/cbc__be_8inc_8php-source.html b/doc/developper/html/cbc__be_8inc_8php-source.html index ad952fcea..b94305ff3 100644 --- a/doc/developper/html/cbc__be_8inc_8php-source.html +++ b/doc/developper/html/cbc__be_8inc_8php-source.html @@ -30,44 +30,71 @@ 00025 //----------------------------------------------------- 00026 // Bank CBC 00027 //----------------------------------------------------- -00028 $row=1; -00029 while (($data = fgetcsv($handle, 2000,'!@')) !== FALSE) { -00030 $num = count($data); -00031 for ($c=0; $c < $num; $c++) { -00032 //----------------------------------------------------- -00033 // Parsing CSV comes here -00034 //----------------------------------------------------- -00035 -00036 -00037 -00038 //----------------------------------------------------- -00039 // insert into import_tmp -00040 //----------------------------------------------------- -00041 $Sql="insert into import_tmp (code, -00042 date_exec , -00043 date_valeur, -00044 montant, -00045 devise, -00046 compte_ordre, -00047 detail, -00048 bq_account , -00049 jrn, -00050 ok) -00051 values ('$code', -00052 '$date_exec', -00053 '$date_exec', -00054 $montant, -00055 '$devise', -00056 '".addslashes($compte_ordre)."', -00057 '".addslashes($detail).$num_compte." ', -00058 '$p_bq_account', -00059 $p_jrn, -00060 false)"; -00061 } // for ($c=0;$c<$num;$c++) -00062 $row++; -00063 } // file is read -00064 fclose($handle); -00065 echo "Encore rien désolé"; -00066 ?> +00028 $row=1; +00029 StartSql($p_cn); +00030 while (($data = fgetcsv($handle, 2000,'!@')) !== FALSE) { +00031 $num = count($data); +00032 echo_debug('cbc_be',__LINE__,$num); +00033 echo_debug('cbc_be',__LINE__,var_export($data,true)); +00034 for ($c=0; $c < $num; $c++) { +00035 //----------------------------------------------------- +00036 // Parsing CSV comes here +00037 //----------------------------------------------------- +00038 $row=split(';',$data[$c]); +00039 echo_debug('cbc_be',__LINE__,'$row = '.var_export($row,true)); +00040 echo_debug('cbc_be',__LINE__,'sizeof($row)'.sizeof($row)); +00041 if ( sizeof ($row) < 13 ) +00042 continue; +00043 +00044 $num_compte=$row[0]; +00045 $date_exec=$row[3]; +00046 $date_val=$row[4]; +00047 // remove first the thousand sep. +00048 $montant=str_replace('.','',$row[6]); +00049 // replace the coma by a period +00050 $montant=str_replace(',','.',$montant); +00051 // remove the sign +00052 $montant=str_replace('+','',$montant); +00053 $devise=$row[1]; +00054 $compte_ordre=$row[0]; +00055 $detail=trim($row[7]).' '.trim($row[8]).' '.trim($row[9]).' '.trim($row[10]); +00056 if ( ereg('[0-9]{3}-[0-9]{7}-[0-9]{2}',$row[7],$r) ) +00057 { +00058 $compte_ordre=$r[0]; +00059 } +00060 //----------------------------------------------------- +00061 // insert into import_tmp +00062 //----------------------------------------------------- +00063 $Sql="insert into import_tmp (code, +00064 date_exec , +00065 date_valeur, +00066 montant, +00067 devise, +00068 compte_ordre, +00069 detail, +00070 bq_account , +00071 jrn, +00072 ok) +00073 values (nextval('s_cbc'), +00074 to_date('$date_exec','YYYYMMDD'), +00075 to_date('$date_exec','YYYYMMDD'), +00076 $montant, +00077 '$devise', +00078 '".addslashes($compte_ordre)."', +00079 '".addslashes($detail).$num_compte." ', +00080 '$p_bq_account', +00081 $p_jrn, +00082 false)"; +00083 if ( ExecSql($p_cn,$Sql) == false ) +00084 { +00085 Rollback($p_cn); +00086 break; +00087 } +00088 } // for ($c=0;$c<$num;$c++) +00089 $row++; +00090 } // file is read +00091 fclose($handle); +00092 echo "Encore rien désolé"; +00093 ?>

diff --git a/doc/developper/html/cbc__be_8inc_8php.html b/doc/developper/html/cbc__be_8inc_8php.html index bd37e7e32..eef901976 100644 --- a/doc/developper/html/cbc__be_8inc_8php.html +++ b/doc/developper/html/cbc__be_8inc_8php.html @@ -16,6 +16,22 @@

Variables

 $row = 1 + $num_compte = $row[0] + + $date_exec = $row[3] + + $date_val = $row[4] + + $montant = str_replace('.','',$row[6]) + + $devise = $row[1] + + $compte_ordre = $row[0] + + $detail = trim($row[7]).' '.trim($row[8]).' '.trim($row[9]).' '.trim($row[10]) + + break +

Detailed Description

This file must be included to parse the CVS from the CBC Bank. @@ -23,6 +39,181 @@ This file must be included to parse the CVS from the CBC Bank.

Definition in file cbc_be.inc.php.


Variable Documentation

+

+ + + + +
+ + + + +
$compte_ordre = $row[0]
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$date_exec = $row[3]
+
+ + + + + +
+   + + +

+ +

+Definition at line 45 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$date_val = $row[4]
+
+ + + + + +
+   + + +

+ +

+Definition at line 46 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$detail = trim($row[7]).' '.trim($row[8]).' '.trim($row[9]).' '.trim($row[10])
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$devise = $row[1]
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$montant = str_replace('.','',$row[6])
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file cbc_be.inc.php.

+

+ + + + +
+ + + + +
$num_compte = $row[0]
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file cbc_be.inc.php.

@@ -48,5 +239,30 @@ Definition in file cbc_be.inc Definition at line 28 of file cbc_be.inc.php.
+

+ + + + +
+ + + + +
break
+
+ + + + + +
+   + + +

+ +

+Definition at line 86 of file cbc_be.inc.php.

diff --git a/doc/developper/html/central__inc_8php-source.html b/doc/developper/html/central__inc_8php-source.html index 2e3d1c782..c94d2e5e9 100644 --- a/doc/developper/html/central__inc_8php-source.html +++ b/doc/developper/html/central__inc_8php-source.html @@ -67,7 +67,7 @@ 00073 $MaxJrn=pg_NumRows($Res); 00074 // for each jrn_def_id 00075 for ( $i=0; $i < $MaxJrn;$i++) { -00076 $row=pg_fetch_array($Res,$i); +00076 $row=pg_fetch_array($Res,$i); 00077 // get the op related to that jrn_def_id 00078 $sql=sprintf("select jr_id from jrn 00079 where @@ -82,8 +82,8 @@ 00088 $MaxLine=pg_NumRows($Res2); 00089 for ($e=0;$e < $MaxLine;$e++) { 00090 // each line is updated with a sequence -00091 $line=pg_fetch_array($Res2,$e); -00092 $jr_id=$line['jr_id']; +00091 $line=pg_fetch_array($Res2,$e); +00092 $jr_id=$line['jr_id']; 00093 $sql=sprintf ("update jrn set 00094 jr_opid = (select nextval('s_jrn_%d')) 00095 where jr_id =%d", @@ -107,8 +107,8 @@ 00113 $MaxLine=pg_NumRows($Res2); 00114 for ($e=0;$e < $MaxLine;$e++) { 00115 // each line is updated with a sequence -00116 $line=pg_fetch_array($Res2,$e); -00117 $jr_id=$line['jr_id']; +00116 $line=pg_fetch_array($Res2,$e); +00117 $jr_id=$line['jr_id']; 00118 $sql=sprintf ("update jrn set 00119 jr_c_opid = (select nextval('s_central')) 00120 where jr_id =%d", @@ -121,7 +121,7 @@ 00127 inner join jrn on c_grp = jr_grpt_id 00128 order by jr_c_opid, c_debit desc"); 00129 for ( $e=0;$e < pg_NumRows($Res);$e++) { -00130 $row=pg_fetch_array($Res,$e); +00130 $row=pg_fetch_array($Res,$e); 00131 $sql=sprintf ("update centralized set 00132 c_order = (select nextval('s_central_order')) 00133 where c_id = %d",$row['c_id']); diff --git a/doc/developper/html/central__inc_8php.html b/doc/developper/html/central__inc_8php.html index fd2a84661..9cd607b50 100644 --- a/doc/developper/html/central__inc_8php.html +++ b/doc/developper/html/central__inc_8php.html @@ -74,7 +74,7 @@ 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 $line, $MaxJrn, $MaxLine, $Res, $Res2, $Ret, $row, $sql, Commit(), EndSql(), ExecSql(), and StartSql().

Referenced by ShowMenuAdvanced().

00036                                       {
 00037 $sql="insert into centralized( c_j_id,
@@ -116,7 +116,7 @@ Referenced by ShowMenuAd
 00073  $MaxJrn=pg_NumRows($Res);
 00074  // for each jrn_def_id
 00075  for ( $i=0; $i < $MaxJrn;$i++) {
-00076    $row=pg_fetch_array($Res,$i);
+00076    $row=pg_fetch_array($Res,$i);
 00077    // get the op related to that jrn_def_id
 00078    $sql=sprintf("select jr_id from jrn 
 00079          where
@@ -131,8 +131,8 @@ Referenced by ShowMenuAd
 00088    $MaxLine=pg_NumRows($Res2);
 00089    for ($e=0;$e < $MaxLine;$e++) {
 00090      // each line is updated with a sequence
-00091      $line=pg_fetch_array($Res2,$e);
-00092      $jr_id=$line['jr_id'];
+00091      $line=pg_fetch_array($Res2,$e);
+00092      $jr_id=$line['jr_id'];
 00093      $sql=sprintf ("update jrn set 
 00094                  jr_opid = (select nextval('s_jrn_%d'))
 00095                  where jr_id =%d",
@@ -156,8 +156,8 @@ Referenced by ShowMenuAd
 00113    $MaxLine=pg_NumRows($Res2);
 00114    for ($e=0;$e < $MaxLine;$e++) {
 00115      // each line is updated with a sequence
-00116      $line=pg_fetch_array($Res2,$e);
-00117      $jr_id=$line['jr_id'];
+00116      $line=pg_fetch_array($Res2,$e);
+00117      $jr_id=$line['jr_id'];
 00118      $sql=sprintf ("update jrn set 
 00119                  jr_c_opid = (select nextval('s_central'))
 00120                  where jr_id =%d",
@@ -170,7 +170,7 @@ Referenced by ShowMenuAd
 00127                  inner join jrn on c_grp = jr_grpt_id
 00128                  order by jr_c_opid, c_debit desc");
 00129    for ( $e=0;$e < pg_NumRows($Res);$e++) {
-00130      $row=pg_fetch_array($Res,$e);
+00130      $row=pg_fetch_array($Res,$e);
 00131      $sql=sprintf ("update centralized set  
 00132                  c_order = (select nextval('s_central_order'))
 00133                  where c_id = %d",$row['c_id']);
diff --git a/doc/developper/html/classCezpdf.html b/doc/developper/html/classCezpdf.html
index 527ed1914..7325b6cb2 100644
--- a/doc/developper/html/classCezpdf.html
+++ b/doc/developper/html/classCezpdf.html
@@ -1935,7 +1935,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.

00607                                                        {
+References $height, $line, $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.
00607                                                        {
 00608   // add a table of information to the pdf document
 00609   // $data is a two dimensional array
 00610   // $cols (optional) is an associative array, the keys are the names of the columns from $data
@@ -2292,7 +2292,7 @@ References $height, 00961         $columnStart = $this->ez['columns']['colNum'];
 00962       }
 00963       $this->transaction('start');
-00964       $row_orig = $row;
+00964       $row_orig = $row;
 00965       $y_orig = $y;
 00966       $y0_orig = $y0;
 00967       $y1_orig = $y1;
@@ -2385,7 +2385,7 @@ References $height, 01054         }
 01055         $this->y -= $options['rowGap'];
 01056         foreach ($lines as $line){
-01057           $line = $this->ezProcessText($line);
+01057           $line = $this->ezProcessText($line);
 01058           $start=1;
 01059 
 01060           while (strlen($line) || $start){
@@ -2402,9 +2402,9 @@ References $height, 01071               if (isset($leftOvers[$colName])){
 01072                 $leftOvers[$colName].="\n".$line;
 01073               } else {
-01074                 $leftOvers[$colName] = $line;
+01074                 $leftOvers[$colName] = $line;
 01075               }
-01076               $line='';
+01076               $line='';
 01077             } else {
 01078               if (isset($options['cols'][$colName]) && isset($options['cols'][$colName]['justification']) ){
 01079                 $just = $options['cols'][$colName]['justification'];
@@ -2412,7 +2412,7 @@ References $height, 01081                 $just='left';
 01082               }
 01083 
-01084               $line=$this->addTextWrap($pos[$colName],$this->y,$maxWidth[$colName],$options['fontSize'],$line,$just);
+01084               $line=$this->addTextWrap($pos[$colName],$this->y,$maxWidth[$colName],$options['fontSize'],$line,$just);
 01085             }
 01086           }
 01087         }
@@ -2423,7 +2423,7 @@ References $height, 01092         }
 01093       }
 01094       // set $row to $leftOvers so that they will be processed onto the new page
-01095       $row = $leftOvers;
+01095       $row = $leftOvers;
 01096       // now add the shading underneath
 01097       if ($options['shaded'] && $cnt%2==0){
 01098         $this->closeObject();
@@ -2465,7 +2465,7 @@ References $height, 01134         $newPage=1;
 01135         $secondTurn=1;
 01136         $this->transaction('rewind');
-01137         $row = $row_orig;
+01137         $row = $row_orig;
 01138         $y = $y_orig;
 01139         $y0 = $y0_orig;
 01140         $y1 = $y1_orig;
@@ -2576,7 +2576,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, $line, Cpdf::$options, $right, $size, $start, Cpdf::addTextWrap(), ezNewPage(), ezProcessText(), Cpdf::getFontHeight(), Cpdf::line(), size, and start.

Referenced by ezPrvtTableColumnHeadings().

01205                                                        {
 01206   // this will add a string of text to the document, starting at the current drawing
@@ -2660,7 +2660,7 @@ Referenced by ezPrvtTa
 01284       } else {
 01285         $right = $this->ez['pageWidth'] - $this->ez['rightMargin'] - ((is_array($options) && isset($options['right']))?$options['right']:0);
 01286       }
-01287       $line=$this->addTextWrap($left,$this->y,$right-$left,$size,$line,$just,0,$test);
+01287       $line=$this->addTextWrap($left,$this->y,$right-$left,$size,$line,$just,0,$test);
 01288     }
 01289   }
 01290 
@@ -2814,7 +2814,7 @@ Definition at line 146
 

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

-References $code.

01423                                     {
+References $code.
01423                                     {
 01424   // this function will load the requested template ($file includes full or relative pathname)
 01425   // the code for the template will be modified to make it name safe, and then stored in 
 01426   // an array for later use
@@ -2823,17 +2823,17 @@ References $code.<
 01429     return -1;
 01430   }
 01431 
-01432   $code = implode('',file($templateFile));
+01432   $code = implode('',file($templateFile));
 01433   if (!strlen($code)){
 01434     return;
 01435   }
 01436 
-01437   $code = trim($code);
+01437   $code = trim($code);
 01438   if (substr($code,0,5)=='<?php'){
-01439     $code = substr($code,5);
+01439     $code = substr($code,5);
 01440   }
 01441   if (substr($code,-2)=='?>'){
-01442     $code = substr($code,0,strlen($code)-2);
+01442     $code = substr($code,0,strlen($code)-2);
 01443   }
 01444   if (isset($this->ez['numTemplates'])){
 01445     $newNum = $this->ez['numTemplates'];
@@ -2844,7 +2844,7 @@ References $code.<
 01450     $this->ez['templates']=array();
 01451   }
 01452 
-01453   $this->ez['templates'][$newNum]['code']=$code;
+01453   $this->ez['templates'][$newNum]['code']=$code;
 01454 
 01455   return $newNum;
 01456 }
diff --git a/doc/developper/html/classCpdf.html b/doc/developper/html/classCpdf.html
index e3d259da1..7510ca44e 100644
--- a/doc/developper/html/classCpdf.html
+++ b/doc/developper/html/classCpdf.html
@@ -4339,7 +4339,7 @@ private
 

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

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

01306                         {
+References $bits, $data, $file, $i, $row, $tmp, and name.
01306                         {
 01307   // assume that $font contains both the path and perhaps the extension to the file, split them
 01308   $pos=strrpos($font,'/');
 01309   if ($pos===false){
@@ -4370,7 +4370,7 @@ References $bits, 01334     $data = array();
 01335     $file = file($dir.$name.'.afm');
 01336     foreach ($file as $rowA){
-01337       $row=trim($rowA);
+01337       $row=trim($rowA);
 01338       $pos=strpos($row,' ');
 01339       if ($pos){
 01340         // then there must be some keyword
diff --git a/doc/developper/html/classCustomer.html b/doc/developper/html/classCustomer.html
index 97b65187a..738b4baf1 100644
--- a/doc/developper/html/classCustomer.html
+++ b/doc/developper/html/classCustomer.html
@@ -129,7 +129,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().

00057                                     {
 00058     $this->poste=($p_poste==0)?$this->poste:$p_poste;
@@ -137,13 +137,13 @@ Referenced by VatLi
 00060     $Res=ExecSql($this->cn,$sql);
 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'];
-00065     $this->id=$row['f_id'];    
-00066     $this->street=$row['rue'];    
-00067     $this->cp=$row['code_postal'];
-00068     $this->country=$row['pays'];
-00069     $this->vat_number=$row['tva_num'];
+00063     $row=pg_fetch_array($Res,0);
+00064     $this->name=$row['name'];
+00065     $this->id=$row['f_id'];    
+00066     $this->street=$row['rue'];    
+00067     $this->cp=$row['code_postal'];
+00068     $this->country=$row['pays'];
+00069     $this->vat_number=$row['tva_num'];
 00070 
 00071   }
 
diff --git a/doc/developper/html/classDocument.html b/doc/developper/html/classDocument.html index f1478a0e2..f9cf339c8 100644 --- a/doc/developper/html/classDocument.html +++ b/doc/developper/html/classDocument.html @@ -251,7 +251,7 @@ Generate the document, Call $this->Replace to replace tag by value.

Definition at line 79 of file class_document.php.

-References $Res, $ret, $row, Commit(), echo_debug(), ExecSql(), md_type, NextSequence(), ParseDocument(), SaveGenerated(), and StartSql().

00080     {
+References $Res, $ret, $row, Commit(), echo_debug(), ExecSql(), md_type, NextSequence(), ParseDocument(), SaveGenerated(), and StartSql().
00080     {
 00081       // create a temp directory in /tmp to unpack file and to parse it
 00082       $dirname=tempnam('/tmp','doc_');
 00083       
@@ -265,14 +265,14 @@ References $Res, <
 00091                    from document_modele where md_id=".$this->md_id;
 00092       $Res=ExecSql($this->db,$dm_info);
 00093 
-00094       $row=pg_fetch_array($Res,0);
-00095       $this->d_lob=$row['md_lob'];
-00096       $this->d_filename=$row['md_filename'];
-00097       $this->d_mimetype=$row['md_mimetype'];
+00094       $row=pg_fetch_array($Res,0);
+00095       $this->d_lob=$row['md_lob'];
+00096       $this->d_filename=$row['md_filename'];
+00097       $this->d_mimetype=$row['md_mimetype'];
 00098 
 00099       echo_debug('class_document',__LINE__,"OID is ".$row['md_lob']);
 00101       chdir($dirname);
-00102       $filename=$row['md_filename'];
+00102       $filename=$row['md_filename'];
 00103       pg_lo_export($this->db,$row['md_lob'],$filename);
 00104       $type="n";
 00105       echo_debug('class_document',__LINE__,'The document type is '.$row['md_mimetype']);
@@ -357,19 +357,19 @@ Get complete all the data member thx info from the database.
 

Definition at line 393 of file class_document.php.

-References $ret, $row, $sql, ag_id, and d_state.

00394     {
+References $ret, $row, $sql, ag_id, and d_state.
00394     {
 00395       $sql="select * from document where d_id=".$this->d_id;
 00396       $ret=Exec($this->db,$sql);
 00397       if ( pg_num_rows($ret) == 0 )
 00398         return;
-00399       $row=pg_fetch_array($ret,0);
-00400       $this->ag_id=$row['ag_id'];
-00401       $this->d_mimetype=$row['d_mimetype'];
-00402       $this->d_filename=$row['d_filename'];
-00403       $this->d_lob=$row['d_lob'];
-00404       $this->d_number=$row[''];
-00405       $this->d_state=$row['ag_id'];
-00406       $this->d_number=$row['d_number'];
+00399       $row=pg_fetch_array($ret,0);
+00400       $this->ag_id=$row['ag_id'];
+00401       $this->d_mimetype=$row['d_mimetype'];
+00402       $this->d_filename=$row['d_filename'];
+00403       $this->d_lob=$row['d_lob'];
+00404       $this->d_number=$row[''];
+00405       $this->d_state=$row['ag_id'];
+00406       $this->d_number=$row['d_number'];
 00407 
 00408     }
 
@@ -651,7 +651,7 @@ replace the TAG by the real value, this value can be into the database or in $_P

Definition at line 441 of file class_document.php.

-References $act, $my, $p, $poste, $qcode, $r, ag_id, break, fiche, GetTvaRate(), MY_COMMUNE, MY_CP, MY_FAX, MY_NAME, MY_NUMBER, MY_PAYS, MY_STREET, MY_TEL, MY_TVA, and qcode_dest. +References $act, $my, $p, $poste, $qcode, $r, ag_id, break, fiche, GetTvaRate(), MY_COMMUNE, MY_CP, MY_FAX, MY_NAME, MY_NUMBER, MY_PAYS, MY_STREET, MY_TEL, MY_TVA, and qcode_dest.

Referenced by ParseDocument().

00442     {
 00443       $r="Tag inconnu";
@@ -732,7 +732,7 @@ Referenced by Parse
 00518           $tiers->getByQcode($qcode,false);
 00519           $r=$tiers->strAttribut(ATTR_DEF_ADRESS);
 00520           
-00521           break ;
+00521           break ;
 00522         case 'CUST_CP':
 00523           $tiers=new fiche($this->db);
 00524           $qcode=isset($_REQUEST['qcode_dest'])?$_REQUEST['qcode_dest']:$_REQUEST['e_client'];
@@ -1081,19 +1081,19 @@ Referenced by Gener
 

Definition at line 355 of file class_document.php.

-References $file, $ret, $row, $tmp, Commit(), ExecSql(), and StartSql().

00356     {
+References $file, $ret, $row, $tmp, Commit(), ExecSql(), and StartSql().
00356     {
 00357       // retrieve the template and generate document
 00358       StartSql($this->db);
 00359       $ret=ExecSql($this->db,
 00360                    "select d_id,d_lob,d_filename,d_mimetype from document where d_id=".$this->d_id );
 00361       if ( pg_num_rows ($ret) == 0 )
 00362         return;
-00363       $row=pg_fetch_array($ret,0);
+00363       $row=pg_fetch_array($ret,0);
 00364       //the document  is saved into file $tmp
 00365       $tmp=tempnam('/tmp/','document_');
 00366       pg_lo_export($this->db,$row['d_lob'],$tmp);
-00367       $this->d_mimetype=$row['d_mimetype'];
-00368       $this->d_filename=$row['d_filename'];
+00367       $this->d_mimetype=$row['d_mimetype'];
+00368       $this->d_filename=$row['d_filename'];
 00369 
 00370       // send it to stdout
 00371       ini_set('zlib.output_compression','Off');
diff --git a/doc/developper/html/classDocument__modele.html b/doc/developper/html/classDocument__modele.html
index c7c5f3bdc..135e51777 100644
--- a/doc/developper/html/classDocument__modele.html
+++ b/doc/developper/html/classDocument__modele.html
@@ -271,7 +271,7 @@ Parse and remplace the tag in the invoice By the value found in quant_sold.
 

Definition at line 204 of file class_document_modele.php.

-References $file, $ret, $row, $tmp, Commit(), ExecSql(), and StartSql().

00205     {
+References $file, $ret, $row, $tmp, Commit(), ExecSql(), and StartSql().
00205     {
 00206       // retrieve info from the table invoice
 00207       
 00208       // retrieve the template and generate document
@@ -279,7 +279,7 @@ References $
 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);
+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);
@@ -345,7 +345,7 @@ References $
 

Definition at line 49 of file class_document_modele.php.

-References $a, $all, $c, $r, $Res, $row, $sql, ExecSql(), form(), md_id, and md_name.

00049                     { 
+References $a, $all, $c, $r, $Res, $row, $sql, ExecSql(), form(), md_id, and md_name.
00049                     { 
 00050     $sql="select md_id,md_name,dt_value from document_modele join document_type on(dt_id=md_type)";
 00051     $Res=ExecSql($this->cn,$sql);
 00052     $all=pg_fetch_all($Res);
@@ -357,10 +357,10 @@ References $a, 00058     foreach ( $all as $row) {
 00059       $r.="<tr>";
 00060       $r.="<td>";
-00061       $r.=$row['md_name'];
+00061       $r.=$row['md_name'];
 00062       $r.="</td>";
 00063       $r.="<td>";
-00064       $r.=$row['dt_value'];
+00064       $r.=$row['dt_value'];
 00065       $r.="</td>";
 00066       $r.="<td>";
 00067       $r.='<A HREF="show_document_modele.php?md_id='.$row['md_id'].'">Document</a>';
diff --git a/doc/developper/html/classOwn.html b/doc/developper/html/classOwn.html
index afed58299..e3d126101 100644
--- a/doc/developper/html/classOwn.html
+++ b/doc/developper/html/classOwn.html
@@ -58,13 +58,13 @@ Definition at line 28
 Definition at line 31 of file class_own.php.
 

-References $Res, $row, and ExecSql().

00031                       {
+References $Res, $row, and ExecSql().
00031                       {
 00032     $this->db=$p_cn;
 00033     $Res=ExecSql($p_cn,"select * from parameter where pr_id like 'MY_%'");
 00034     for ($i = 0;$i < pg_NumRows($Res);$i++) {
-00035       $row=pg_fetch_array($Res,$i);
-00036       $key=$row['pr_id'];
-00037       $elt=$row['pr_value'];
+00035       $row=pg_fetch_array($Res,$i);
+00036       $key=$row['pr_id'];
+00037       $elt=$row['pr_value'];
 00038       // store value here
 00039       $this->{"$key"}=$elt;
 00040     }
diff --git a/doc/developper/html/class_8ezpdf_8php-source.html b/doc/developper/html/class_8ezpdf_8php-source.html
index 55dad9e43..63d5d575f 100644
--- a/doc/developper/html/class_8ezpdf_8php-source.html
+++ b/doc/developper/html/class_8ezpdf_8php-source.html
@@ -970,7 +970,7 @@
 00961         $columnStart = $this->ez['columns']['colNum'];
 00962       }
 00963       $this->transaction('start');
-00964       $row_orig = $row;
+00964       $row_orig = $row;
 00965       $y_orig = $y;
 00966       $y0_orig = $y0;
 00967       $y1_orig = $y1;
@@ -1063,7 +1063,7 @@
 01054         }
 01055         $this->y -= $options['rowGap'];
 01056         foreach ($lines as $line){
-01057           $line = $this->ezProcessText($line);
+01057           $line = $this->ezProcessText($line);
 01058           $start=1;
 01059 
 01060           while (strlen($line) || $start){
@@ -1080,9 +1080,9 @@
 01071               if (isset($leftOvers[$colName])){
 01072                 $leftOvers[$colName].="\n".$line;
 01073               } else {
-01074                 $leftOvers[$colName] = $line;
+01074                 $leftOvers[$colName] = $line;
 01075               }
-01076               $line='';
+01076               $line='';
 01077             } else {
 01078               if (isset($options['cols'][$colName]) && isset($options['cols'][$colName]['justification']) ){
 01079                 $just = $options['cols'][$colName]['justification'];
@@ -1090,7 +1090,7 @@
 01081                 $just='left';
 01082               }
 01083 
-01084               $line=$this->addTextWrap($pos[$colName],$this->y,$maxWidth[$colName],$options['fontSize'],$line,$just);
+01084               $line=$this->addTextWrap($pos[$colName],$this->y,$maxWidth[$colName],$options['fontSize'],$line,$just);
 01085             }
 01086           }
 01087         }
@@ -1101,7 +1101,7 @@
 01092         }
 01093       }
 01094       // set $row to $leftOvers so that they will be processed onto the new page
-01095       $row = $leftOvers;
+01095       $row = $leftOvers;
 01096       // now add the shading underneath
 01097       if ($options['shaded'] && $cnt%2==0){
 01098         $this->closeObject();
@@ -1143,7 +1143,7 @@
 01134         $newPage=1;
 01135         $secondTurn=1;
 01136         $this->transaction('rewind');
-01137         $row = $row_orig;
+01137         $row = $row_orig;
 01138         $y = $y_orig;
 01139         $y0 = $y0_orig;
 01140         $y1 = $y1_orig;
@@ -1293,7 +1293,7 @@
 01284       } else {
 01285         $right = $this->ez['pageWidth'] - $this->ez['rightMargin'] - ((is_array($options) && isset($options['right']))?$options['right']:0);
 01286       }
-01287       $line=$this->addTextWrap($left,$this->y,$right-$left,$size,$line,$just,0,$test);
+01287       $line=$this->addTextWrap($left,$this->y,$right-$left,$size,$line,$just,0,$test);
 01288     }
 01289   }
 01290 
@@ -1438,17 +1438,17 @@
 01429     return -1;
 01430   }
 01431 
-01432   $code = implode('',file($templateFile));
+01432   $code = implode('',file($templateFile));
 01433   if (!strlen($code)){
 01434     return;
 01435   }
 01436 
-01437   $code = trim($code);
+01437   $code = trim($code);
 01438   if (substr($code,0,5)=='<?php'){
-01439     $code = substr($code,5);
+01439     $code = substr($code,5);
 01440   }
 01441   if (substr($code,-2)=='?>'){
-01442     $code = substr($code,0,strlen($code)-2);
+01442     $code = substr($code,0,strlen($code)-2);
 01443   }
 01444   if (isset($this->ez['numTemplates'])){
 01445     $newNum = $this->ez['numTemplates'];
@@ -1459,7 +1459,7 @@
 01450     $this->ez['templates']=array();
 01451   }
 01452 
-01453   $this->ez['templates'][$newNum]['code']=$code;
+01453   $this->ez['templates'][$newNum]['code']=$code;
 01454 
 01455   return $newNum;
 01456 }
diff --git a/doc/developper/html/class_8pdf_8php-source.html b/doc/developper/html/class_8pdf_8php-source.html
index 410fc69be..86c01db37 100644
--- a/doc/developper/html/class_8pdf_8php-source.html
+++ b/doc/developper/html/class_8pdf_8php-source.html
@@ -1071,7 +1071,7 @@
 01334     $data = array();
 01335     $file = file($dir.$name.'.afm');
 01336     foreach ($file as $rowA){
-01337       $row=trim($rowA);
+01337       $row=trim($rowA);
 01338       $pos=strpos($row,' ');
 01339       if ($pos){
 01340         // then there must be some keyword
diff --git a/doc/developper/html/class__action_8php-source.html b/doc/developper/html/class__action_8php-source.html
index 585944458..2fea7650a 100644
--- a/doc/developper/html/class__action_8php-source.html
+++ b/doc/developper/html/class__action_8php-source.html
@@ -272,17 +272,17 @@
 00320         " ag_ref_ag_id ".
 00321         " from action_gestion left join document using (ag_id) where ag_id=".$this->ag_id;
 00322       $r=ExecSql($this->db,$sql);
-00323       $row=pg_fetch_all($r);
+00323       $row=pg_fetch_all($r);
 00324       if ( $row==false) return;
-00325       $this->ag_comment=$row[0]['ag_comment'];
-00326       $this->ag_timestamp=$row[0]['ag_timestamp'];
-00327       $this->f_id_dest=$row[0]['f_id_dest'];
-00328       $this->f_id_exp=$row[0]['f_id_exp'];
-00329       $this->ag_title=$row[0]['ag_title'];
-00330       $this->ag_type=$row[0]['ag_type'];
-00331       $this->ag_ref=$row[0]['ag_ref'];
-00332       $this->ag_ref_ag_id=$row[0]['ag_ref_ag_id'];
-00333       $this->d_id=$row[0]['d_id'];
+00325       $this->ag_comment=$row[0]['ag_comment'];
+00326       $this->ag_timestamp=$row[0]['ag_timestamp'];
+00327       $this->f_id_dest=$row[0]['f_id_dest'];
+00328       $this->f_id_exp=$row[0]['f_id_exp'];
+00329       $this->ag_title=$row[0]['ag_title'];
+00330       $this->ag_type=$row[0]['ag_type'];
+00331       $this->ag_ref=$row[0]['ag_ref'];
+00332       $this->ag_ref_ag_id=$row[0]['ag_ref_ag_id'];
+00333       $this->d_id=$row[0]['d_id'];
 00334       //
 00335       echo_debug('class_action',__LINE__,' Document id = '.$this->d_id);
 00336       // if there is no document set 0 to d_id
@@ -291,8 +291,8 @@
 00339       // if there is a document fill the object
 00340       if ($this->d_id != 0 )
 00341         {
-00342           $this->state=$row['0']['d_state'];
-00343           $this->d_state=$row[0]['d_state'];
+00342           $this->state=$row['0']['d_state'];
+00343           $this->d_state=$row[0]['d_state'];
 00344         }
 00345       echo_debug('class_action',__LINE__,' After test Document id = '.$this->d_id);
 00346       $this->dt_id=$this->ag_type;
@@ -646,7 +646,7 @@
 00725           $r.="<td>".$row['my_date']."</td>";
 00726           // Destinataire
 00727           $fdest=new fiche($this->db);
-00728           $fdest->id=$row['f_id_dest'];
+00728           $fdest->id=$row['f_id_dest'];
 00729           $qcode_dest=$fdest->strAttribut(ATTR_DEF_QUICKCODE);
 00730 
 00731           $qdest=($qcode_dest=="- ERROR -")?"Interne":$qcode_dest;
@@ -661,7 +661,7 @@
 00740 
 00741           // Expediteur
 00742           $fexp=new fiche($this->db);
-00743           $fexp->id=$row['f_id_exp'];
+00743           $fexp->id=$row['f_id_exp'];
 00744           $qcode_exp=$fexp->strAttribut(ATTR_DEF_QUICKCODE);
 00745 
 00746           $qexp=($qcode_exp=="- ERROR -")?"Interne":$qcode_exp;
@@ -687,13 +687,13 @@
 00766                   foreach ($retSql as $line) 
 00767                     {
 00768                       $ref.='<A  href="commercial.php?p_action=suivi_courrier&query='.$line['ag_ref'].'">'.
-00769                         $line['ag_ref']."<A>";
+00769                         $line['ag_ref']."<A>";
 00770                     }
 00771                 }
 00772             }
 00773 
 00774           $r.='<td><A HREF="commercial.php?p_action=suivi_courrier&sa=detail&ag_id='.$row['ag_id'].'">'.
-00775             $row['ag_title']."</A></td>";
+00775             $row['ag_title']."</A></td>";
 00776           $r.="<td>".$row['dt_value']."</td>";
 00777           $r.="<td>".$row['ag_ref']."</td>";
 00778           $r.="<td>".$ref."</td>";
diff --git a/doc/developper/html/class__customer_8php-source.html b/doc/developper/html/class__customer_8php-source.html
index c8b4b6193..83c5f07bb 100644
--- a/doc/developper/html/class__customer_8php-source.html
+++ b/doc/developper/html/class__customer_8php-source.html
@@ -56,13 +56,13 @@
 00060     $Res=ExecSql($this->cn,$sql);
 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'];
-00065     $this->id=$row['f_id'];    
-00066     $this->street=$row['rue'];    
-00067     $this->cp=$row['code_postal'];
-00068     $this->country=$row['pays'];
-00069     $this->vat_number=$row['tva_num'];
+00063     $row=pg_fetch_array($Res,0);
+00064     $this->name=$row['name'];
+00065     $this->id=$row['f_id'];    
+00066     $this->street=$row['rue'];    
+00067     $this->cp=$row['code_postal'];
+00068     $this->country=$row['pays'];
+00069     $this->vat_number=$row['tva_num'];
 00070 
 00071   }
 00084   function VatListing($p_year) {
diff --git a/doc/developper/html/class__document_8php-source.html b/doc/developper/html/class__document_8php-source.html
index edcc84ed7..c0dbae70d 100644
--- a/doc/developper/html/class__document_8php-source.html
+++ b/doc/developper/html/class__document_8php-source.html
@@ -80,14 +80,14 @@
 00091                    from document_modele where md_id=".$this->md_id;
 00092       $Res=ExecSql($this->db,$dm_info);
 00093 
-00094       $row=pg_fetch_array($Res,0);
-00095       $this->d_lob=$row['md_lob'];
-00096       $this->d_filename=$row['md_filename'];
-00097       $this->d_mimetype=$row['md_mimetype'];
+00094       $row=pg_fetch_array($Res,0);
+00095       $this->d_lob=$row['md_lob'];
+00096       $this->d_filename=$row['md_filename'];
+00097       $this->d_mimetype=$row['md_mimetype'];
 00098 
 00099       echo_debug('class_document',__LINE__,"OID is ".$row['md_lob']);
 00101       chdir($dirname);
-00102       $filename=$row['md_filename'];
+00102       $filename=$row['md_filename'];
 00103       pg_lo_export($this->db,$row['md_lob'],$filename);
 00104       $type="n";
 00105       echo_debug('class_document',__LINE__,'The document type is '.$row['md_mimetype']);
@@ -313,12 +313,12 @@
 00360                    "select d_id,d_lob,d_filename,d_mimetype from document where d_id=".$this->d_id );
 00361       if ( pg_num_rows ($ret) == 0 )
 00362         return;
-00363       $row=pg_fetch_array($ret,0);
+00363       $row=pg_fetch_array($ret,0);
 00364       //the document  is saved into file $tmp
 00365       $tmp=tempnam('/tmp/','document_');
 00366       pg_lo_export($this->db,$row['d_lob'],$tmp);
-00367       $this->d_mimetype=$row['d_mimetype'];
-00368       $this->d_filename=$row['d_filename'];
+00367       $this->d_mimetype=$row['d_mimetype'];
+00368       $this->d_filename=$row['d_filename'];
 00369 
 00370       // send it to stdout
 00371       ini_set('zlib.output_compression','Off');
@@ -347,14 +347,14 @@
 00396       $ret=Exec($this->db,$sql);
 00397       if ( pg_num_rows($ret) == 0 )
 00398         return;
-00399       $row=pg_fetch_array($ret,0);
-00400       $this->ag_id=$row['ag_id'];
-00401       $this->d_mimetype=$row['d_mimetype'];
-00402       $this->d_filename=$row['d_filename'];
-00403       $this->d_lob=$row['d_lob'];
-00404       $this->d_number=$row[''];
-00405       $this->d_state=$row['ag_id'];
-00406       $this->d_number=$row['d_number'];
+00399       $row=pg_fetch_array($ret,0);
+00400       $this->ag_id=$row['ag_id'];
+00401       $this->d_mimetype=$row['d_mimetype'];
+00402       $this->d_filename=$row['d_filename'];
+00403       $this->d_lob=$row['d_lob'];
+00404       $this->d_number=$row[''];
+00405       $this->d_state=$row['ag_id'];
+00406       $this->d_number=$row['d_number'];
 00407 
 00408     }
 00441   function Replace($p_tag)
@@ -437,7 +437,7 @@
 00518           $tiers->getByQcode($qcode,false);
 00519           $r=$tiers->strAttribut(ATTR_DEF_ADRESS);
 00520           
-00521           break ;
+00521           break ;
 00522         case 'CUST_CP':
 00523           $tiers=new fiche($this->db);
 00524           $qcode=isset($_REQUEST['qcode_dest'])?$_REQUEST['qcode_dest']:$_REQUEST['e_client'];
diff --git a/doc/developper/html/class__document__modele_8php-source.html b/doc/developper/html/class__document__modele_8php-source.html
index b3af28d3a..e8defc9e5 100644
--- a/doc/developper/html/class__document__modele_8php-source.html
+++ b/doc/developper/html/class__document__modele_8php-source.html
@@ -53,10 +53,10 @@
 00058     foreach ( $all as $row) {
 00059       $r.="<tr>";
 00060       $r.="<td>";
-00061       $r.=$row['md_name'];
+00061       $r.=$row['md_name'];
 00062       $r.="</td>";
 00063       $r.="<td>";
-00064       $r.=$row['dt_value'];
+00064       $r.=$row['dt_value'];
 00065       $r.="</td>";
 00066       $r.="<td>";
 00067       $r.='<A HREF="show_document_modele.php?md_id='.$row['md_id'].'">Document</a>';
@@ -179,7 +179,7 @@
 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);
+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);
diff --git a/doc/developper/html/class__fiche_8php-source.html b/doc/developper/html/class__fiche_8php-source.html
index 4c1849fd5..ec75ae4a8 100644
--- a/doc/developper/html/class__fiche_8php-source.html
+++ b/doc/developper/html/class__fiche_8php-source.html
@@ -52,9 +52,9 @@
 00058     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00059       return ;
 00060     for ($i=0;$i < $Max;$i++) {
-00061       $row=pg_fetch_array($Ret,$i);
+00061       $row=pg_fetch_array($Ret,$i);
 00062       $t = new Attribut($row['ad_id']);
-00063       $t->ad_text=$row['ad_text'];
+00063       $t->ad_text=$row['ad_text'];
 00064       $this->attribut[$i]=$t;
 00065     }
 00066     return $this->attribut;
@@ -68,11 +68,11 @@
 00079     $Ret=ExecSql($this->cn,$sql);
 00080     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00081       return ;
-00082     $row=pg_fetch_array($Ret,0);
-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'];
+00082     $row=pg_fetch_array($Ret,0);
+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'];
 00087   }
 00094  function GetAll() {
 00095    $sql="select * from fiche_def ";
@@ -82,12 +82,12 @@
 00099       return ;
 00100 
 00101     for ( $i = 0; $i < $Max;$i++) {
-00102       $row=pg_fetch_array($Ret,$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'];
+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) {
@@ -151,11 +151,11 @@
 00202     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00203       return ;
 00204     for ($i=0;$i<$Max;$i++) {
-00205       $row=pg_fetch_array($Ret,$i);
-00206       $this->fiche_def=$row['fd_id'];
+00205       $row=pg_fetch_array($Ret,$i);
+00206       $this->fiche_def=$row['fd_id'];
 00207       $t=new Attribut ($row['ad_id']);
-00208       $t->ad_text=$row['ad_text'];
-00209       $t->av_text=$row['av_text'];
+00208       $t->ad_text=$row['ad_text'];
+00209       $t->av_text=$row['av_text'];
 00210       $this->attribut[$i]=$t;
 00211     }
 00212     $e=new Fiche_def($this->cn,$this->fiche_def);
@@ -208,7 +208,7 @@
 00270     $all[0]=new fiche($this->cn);
 00271 
 00272     for ($i=0;$i<$Max;$i++) {
-00273       $row=pg_fetch_array($Ret,$i);
+00273       $row=pg_fetch_array($Ret,$i);
 00274       $t=new fiche($this->cn,$row['f_id']);
 00275       $t->getAttribut();
 00276       $all[$i]=$t;
@@ -257,7 +257,7 @@
 00339     $all[0]=new fiche($this->cn);
 00340 
 00341     for ($i=0;$i<$Max;$i++) {
-00342       $row=pg_fetch_array($Ret,$i);
+00342       $row=pg_fetch_array($Ret,$i);
 00343       $t=new fiche($this->cn,$row['f_id']);
 00344       $t->getAttribut();
 00345       $all[$i]=$t;
@@ -282,12 +282,12 @@
 00372           $sql="select av_text from attr_value join jnt_fic_att_value using(jft_id)
 00373                 where f_id=".$this->id." and ad_id=".$p_ad_id;
 00374           $Res=ExecSql($this->cn,$sql);
-00375           $row=pg_fetch_all($Res);
+00375           $row=pg_fetch_all($Res);
 00376           // if not found return error
 00377           if ( $row == false ) 
 00378             return ' - ERROR -';
 00379           
-00380           return $row[0]['av_text'];
+00380           return $row[0]['av_text'];
 00381         }
 00382 
 00383       foreach ($this->attribut as $e)
diff --git a/doc/developper/html/class__fiche__def_8php-source.html b/doc/developper/html/class__fiche__def_8php-source.html
index bae31cd1b..93a4221d8 100644
--- a/doc/developper/html/class__fiche__def_8php-source.html
+++ b/doc/developper/html/class__fiche__def_8php-source.html
@@ -55,7 +55,7 @@
 00062 
 00063           foreach (  $this->attribut as  $value)
 00064             {
-00065               $o->$value=$row[$value];
+00065               $o->$value=$row[$value];
 00066             }
 00067           $array[$idx]=$o;
 00068           $idx++;
diff --git a/doc/developper/html/class__jrn_8php-source.html b/doc/developper/html/class__jrn_8php-source.html
index ea8ff6c4d..7ea868c26 100644
--- a/doc/developper/html/class__jrn_8php-source.html
+++ b/doc/developper/html/class__jrn_8php-source.html
@@ -84,7 +84,7 @@
 00093     }else {
 00094       // Journaux centralisés
 00095       echo_debug('class_jrn.php',__LINE__,"journaux centralisé");
-00096       $Sql="select jr_opid as j_id,
+00096       $Sql="select jr_opid as j_id,
 00097                     c_order as int_j_id,
 00098             to_char (c_date,'DD.MM.YYYY') as j_date ,
 00099             c_internal as jr_internal,
@@ -127,7 +127,7 @@
 00136     } else {
 00137       echo_debug('class_jrn.php',__LINE__,"Grand livre  centralisé");
 00138       // Centralisé
-00139       $Sql="select jr_c_opid as j_id,
+00139       $Sql="select jr_c_opid as j_id,
 00140                    c_order as int_j_id,
 00141 
 00142             c_j_id,
@@ -159,17 +159,17 @@
 00168   $tot_deb=0;
 00169   $tot_cred=0;
 00170   for ($i=0;$i<$Max;$i++) {
-00171     $line=pg_fetch_array($Res,$i);
-00172     $mont_deb=($line['deb_montant']!=0)?sprintf("% 8.2f",$line['deb_montant']):"";
-00173     $mont_cred=($line['cred_montant']!=0)?sprintf("% 8.2f",$line['cred_montant']):"";
-00174     $jr_montant=($line['jr_montant']!=0)?sprintf("% 8.2f",$line['jr_montant']):"";
-00175     $tot_deb+=$line['deb_montant'];
-00176     $tot_cred+=$line['cred_montant'];
+00171     $line=pg_fetch_array($Res,$i);
+00172     $mont_deb=($line['deb_montant']!=0)?sprintf("% 8.2f",$line['deb_montant']):"";
+00173     $mont_cred=($line['cred_montant']!=0)?sprintf("% 8.2f",$line['cred_montant']):"";
+00174     $jr_montant=($line['jr_montant']!=0)?sprintf("% 8.2f",$line['jr_montant']):"";
+00175     $tot_deb+=$line['deb_montant'];
+00176     $tot_cred+=$line['cred_montant'];
 00177     echo_debug('class_jrn.php',__LINE__," GetRow : mont_Deb ".$mont_deb);
 00178     echo_debug('class_jrn.php',__LINE__," GetRow : mont_cred ".$mont_cred);
 00179 
 00180     if ( $case != $line['grp'] ) {
-00181       $case=$line['grp'];
+00181       $case=$line['grp'];
 00182       $array[]=array (
 00183                       'int_j_id' => $line['int_j_id'],
 00184                       'j_id'=>$line['j_id'],
diff --git a/doc/developper/html/class__own_8php-source.html b/doc/developper/html/class__own_8php-source.html
index 7f4ddffd1..e55c33f0c 100644
--- a/doc/developper/html/class__own_8php-source.html
+++ b/doc/developper/html/class__own_8php-source.html
@@ -34,9 +34,9 @@
 00032     $this->db=$p_cn;
 00033     $Res=ExecSql($p_cn,"select * from parameter where pr_id like 'MY_%'");
 00034     for ($i = 0;$i < pg_NumRows($Res);$i++) {
-00035       $row=pg_fetch_array($Res,$i);
-00036       $key=$row['pr_id'];
-00037       $elt=$row['pr_value'];
+00035       $row=pg_fetch_array($Res,$i);
+00036       $key=$row['pr_id'];
+00037       $elt=$row['pr_value'];
 00038       // store value here
 00039       $this->{"$key"}=$elt;
 00040     }
diff --git a/doc/developper/html/class__parm__code_8php-source.html b/doc/developper/html/class__parm__code_8php-source.html
index f76988f4f..9911622c5 100644
--- a/doc/developper/html/class__parm__code_8php-source.html
+++ b/doc/developper/html/class__parm__code_8php-source.html
@@ -107,9 +107,9 @@
 00145     $Res=ExecSql($this->db,$sql);
 00146 
 00147     if ( pg_NumRows($Res) == 0 ) return 'INCONNU';
-00148     $row= pg_fetch_array($Res,0);
-00149     $this->p_value=$row['p_value'];
-00150     $this->p_comment=$row['p_comment'];
+00148     $row= pg_fetch_array($Res,0);
+00149     $this->p_value=$row['p_value'];
+00150     $this->p_comment=$row['p_comment'];
 00151 
 00152   }
 00153 
diff --git a/doc/developper/html/class__user_8php-source.html b/doc/developper/html/class__user_8php-source.html
index 7c64bdc17..6af1ac98e 100644
--- a/doc/developper/html/class__user_8php-source.html
+++ b/doc/developper/html/class__user_8php-source.html
@@ -58,7 +58,7 @@
 00059       {
 00060       $this->id=$p_id;
 00061       $this->db=$p_cn;
-00062       $Sql="select use_first_name,
+00062       $Sql="select use_first_name,
 00063              use_name,
 00064              use_login,
 00065              use_active,
@@ -68,12 +68,12 @@
 00069       $cn=DbConnect(); 
 00070       $Res=pg_exec($cn,$Sql);
 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'];
-00075       $this->active=$row['use_active'];
-00076       $this->login=$row['use_login'];
-00077       $this->admin=$row['use_admin'];
+00072       $row=pg_fetch_array($Res,0);
+00073       $this->first_name=$row['use_first_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'];
 00078     } 
 00079   }
 00085   function Check()
@@ -179,9 +179,9 @@
 00216     $l_array=$this->GetPreferences();
 00217   } else {
 00218     for ( $i =0;$i < pg_NumRows($Res);$i++) {
-00219       $row= pg_fetch_array($Res,0);
-00220       $type=$row['parameter_type'];
-00221       $l_array[$type]=$row['parameter_value'];
+00219       $row= pg_fetch_array($Res,0);
+00220       $type=$row['parameter_type'];
+00221       $l_array[$type]=$row['parameter_value'];
 00222     }
 00223   }
 00224   return $l_array;
@@ -212,11 +212,11 @@
 00268           return;
 00269           }
 00270   // Load value into array
-00271   $line=array();
+00271   $line=array();
 00272   for ($i=0;$i<$Max;$i++) {
-00273     $row=pg_fetch_array($Res,$i);
-00274     $type=$row['parameter_type']; 
-00275     $line[$type]=$row['parameter_value'];;
+00273     $row=pg_fetch_array($Res,$i);
+00274     $type=$row['parameter_type']; 
+00275     $line[$type]=$row['parameter_value'];;
 00276   }
 00277   // save array into g_ variable
 00278   $array_pref=array ('g_theme'=>'THEME','g_pagesize'=>'PAGESIZE');
@@ -227,7 +227,7 @@
 00283                 $this->GetGlobalPref();
 00284                 return;
 00285                 }       
-00286     $_SESSION[$name]=$line[$parameter];
+00286     $_SESSION[$name]=$line[$parameter];
 00287   }
 00288 }
 00289 
@@ -238,7 +238,7 @@
 00302         $default_parameter= array("THEME"=>"Light",
 00303                 "PAGESIZE"=>"50");
 00304         $cn=Dbconnect();
-00305         $Sql="insert into user_global_pref(user_id,parameter_type,parameter_value) 
+00305         $Sql="insert into user_global_pref(user_id,parameter_type,parameter_value) 
 00306                                 values ('%s','%s','%s')";
 00307         if ( $p_type == "" ) {
 00308                 foreach ( $default_parameter as $name=>$value) {
@@ -259,7 +259,7 @@
 00331         $default_parameter= array("THEME"=>"Light",
 00332                 "PAGESIZE"=>"50");
 00333         $cn=Dbconnect();
-00334         $Sql="update user_global_pref set parameter_value='%s' 
+00334         $Sql="update user_global_pref set parameter_value='%s' 
 00335                         where parameter_type='%s' and 
 00336                                 user_id='%s'";
 00337         $value=($p_value=="")?$default_parameter[$p_type]:$p_value;
diff --git a/doc/developper/html/class__widget_8php-source.html b/doc/developper/html/class__widget_8php-source.html
index 17811445c..14d76a0d4 100644
--- a/doc/developper/html/class__widget_8php-source.html
+++ b/doc/developper/html/class__widget_8php-source.html
@@ -28,451 +28,451 @@
 00019 /* $Revision$ */
 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
 00021 
-00031 class widget {
-00052   var $type;
-00053   var $name;
-00054   var $value;
-00055   var $readonly;
-00056   var $size;
-00057   var $selected;
-00058   var $table;
-00059   var $label;
-00060   var $disabled;
-00061   var $extra;
-00062   var $extra2;
-00063   var $tabindex;
-00064   function widget($p_type="") {
-00065     $this->type=$p_type;
-00066     $this->readonly=false;
-00067     $this->size=20;
-00068     $this->width=50;
-00069     $this->heigh=20;
-00070     $this->value="";
-00071     $this->selected="";
-00072     $this->table=0;
-00073     $this->label="";
-00074     $this->disabled=false;
-00075     $this->tabindex=32767;
-00076   }
-00077   function SetReadOnly($p_read) {
-00078     $this->readonly=$p_read;
-00079   }
-00089   function IOValue($p_name=null,$p_value=null,$p_label="") {
-00090     
-00091     if ( $p_name != null)
-00092       $this->name=$p_name;
-00093     $this->value=($p_value===null)?$this->value:$p_value;
-00094     $this->label=($p_label == "")?$this->label:$p_label;
-00095     
-00096     // Input text type
-00097     $disabled = $this->disabled ? "DISABLED" : "";
-00098     if (strtoupper($this->type)=="TEXT") {
-00099       if ( $this->readonly==false) {
-00100         $r="<INPUT style=\"border:solid 1px blue;\" TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" TABINDEX=\"$this->tabindex\" SIZE=\"$this->size\" ".$disabled.">";} else {
-00101             $r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s">', $this->value,$this->name,$this->value);
-00102         }
-00103         
-00104       if ($this->table==1) {
-00105         if ( $this->label != "") {
-00106           $r="<TD  style=\"border:groove 1px blue;\">".$this->label."</TD><TD>".$r."</TD>";
-00107         }else {
-00108           $r="<TD>".$r."</TD>";
-00109         }
-00110       }
-00111       return $r;
-00112     }
-00113     // Hidden field
-00114     if (strtoupper($this->type)=="HIDDEN") {
-00115       $r='<INPUT TYPE="HIDDEN" name="'.$this->name.'" value="'.$this->value.'">';
-00116       if ( $this->readonly==true) return "";
-00117       return $r;
-00118     }
-00119     // Select value
-00120     if ( strtoupper($this->type) == "SELECT") {
-00121       if ($this->readonly==false )
-00122         {
-00123           //echo "<b>Selected <b>".$this->selected;
-00124           $r="<SELECT  NAME=\"$this->name\">";
-00125           for ( $i=0;$i<sizeof($this->value);$i++) 
-00126             {
-00127               $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":"";
-00128               $r.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>';
-00129               $r.=$this->value[$i]['label'];
-00130             }
-00131           $r.="</SELECT>";
-00132         } else 
-00133           {
-00134             $r="";
-00135             echo_debug('class_widget.php',__LINE__,"this->selected = ".$this->selected); 
-00136             for ( $i=0;$i<sizeof($this->value);$i++) 
-00137               {
-00138                 echo_debug('class_widget.php',__LINE__,"check for ".$this->value[$i]['value']);
-00139                 if ($this->selected==$this->value[$i]['value'] ) 
-00140                   {
-00141                     $r=$this->value[$i]['label'];
-00142         
-00143                   }
-00144               }
-00145           }
-00146       if ( $this->table==1) {
-00147         $r="<TD> $r </TD>";
-00148         if ( $this->label != "") $r="<TD> $this->label</TD>".$r;
-00149       }
-00150       return $r;
-00151     }
-00152     // Password
-00153     if (strtoupper($this->type)=="PASSWORD") {
-00154       if ( $this->readonly==true) return "";
-00155       $r='<input type="password" name="'.$this->name;
-00156       $r.='">';
-00157       if ($this->table==1) {
-00158         $r="<TD> $this->label </TD><TD> $r </TD>";
-00159       }
-00160       return $r;
-00161     }
-00162 
-00163     // Checkbox
-00164     if (strtoupper($this->type)=="CHECKBOX") {
-00165       if ( $this->readonly == true) {
-00166         $check=( $this->selected==true )?"checked":"unchecked";
-00167         $r='<input type="CHECKBOX" name="'.$this->name.'"';
-00168         $r.="  $check";
-00169         $r.=' disabled>';
-00170 
-00171       } else {
-00172         $check=( $this->selected==true )?"checked":"unchecked";
-00173         $r='<input type="CHECKBOX" name="'.$this->name.'"';
-00174         $r.="  $check";
-00175         $r.=' '.$disabled.'>';
-00176       }
-00177       if ($this->table==1) {
-00178         $r="<TD> $this->label </TD><TD> $r </TD>";
-00179       } else {
-00180         $r=$r." $this->label";
-00181       }
-00182       return $r;
-00183     }
-00184 
-00185     //radio
-00186     if (strtoupper($this->type)=="RADIO") {
-00187       if ( $this->readonly == true) {
-00188         $check=( $this->selected==true || $this->selected=='t' )?"Yes":"no";
-00189         $r=$check;
-00190       } else {
-00191         $check=( $this->selected==true||$this->selected=='t' )?"checked":"unchecked";
-00192         $r='<input type="RADIO" name="'.$this->name.'"';
-00193         $r.=" VALUE=\"$this->value\"";
-00194         $r.="  $check";
-00195         $r.=' '.$disabled.'>';
-00196       }
-00197       if ($this->table==1) {
-00198         $r="<TD> $this->label </TD><TD> $r </TD>";
-00199       } else {
-00200         $r=$this->label.$r;
+00061 class widget {
+00077   var $type;                      
+00078   var $name;                      
+00079   var $value;                     
+00080   var $readonly;                  
+00081   var $size;                      
+00082   var $selected;                  
+00083   var $table;                     
+00084   var $label;                     
+00085   var $disabled;                  
+00086   var $extra;                     
+00087   var $extra2;                    
+00088   var $tabindex; 
+00089   function widget($p_type="") {
+00090     $this->type=$p_type;
+00091     $this->readonly=false;
+00092     $this->size=20;
+00093     $this->width=50;
+00094     $this->heigh=20;
+00095     $this->value="";
+00096     $this->selected="";
+00097     $this->table=0;
+00098     $this->label="";
+00099     $this->disabled=false;
+00100     $this->tabindex=32767;
+00101   }
+00102   function SetReadOnly($p_read) {
+00103     $this->readonly=$p_read;
+00104   }
+00114   function IOValue($p_name=null,$p_value=null,$p_label="") {
+00115     
+00116     if ( $p_name != null)
+00117       $this->name=$p_name;
+00118     $this->value=($p_value===null)?$this->value:$p_value;
+00119     $this->label=($p_label == "")?$this->label:$p_label;
+00120     
+00121     // Input text type
+00122     $disabled = $this->disabled ? "DISABLED" : "";
+00123     if (strtoupper($this->type)=="TEXT") {
+00124       if ( $this->readonly==false) {
+00125         $r="<INPUT style=\"border:solid 1px blue;\" TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" TABINDEX=\"$this->tabindex\" SIZE=\"$this->size\" ".$disabled.">";} else {
+00126             $r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s">', $this->value,$this->name,$this->value);
+00127         }
+00128         
+00129       if ($this->table==1) {
+00130         if ( $this->label != "") {
+00131           $r="<TD  style=\"border:groove 1px blue;\">".$this->label."</TD><TD>".$r."</TD>";
+00132         }else {
+00133           $r="<TD>".$r."</TD>";
+00134         }
+00135       }
+00136       return $r;
+00137     }
+00138     // Hidden field
+00139     if (strtoupper($this->type)=="HIDDEN") {
+00140       $r='<INPUT TYPE="HIDDEN" name="'.$this->name.'" value="'.$this->value.'">';
+00141       if ( $this->readonly==true) return "";
+00142       return $r;
+00143     }
+00144     // Select value
+00145     if ( strtoupper($this->type) == "SELECT") {
+00146       if ($this->readonly==false )
+00147         {
+00148           //echo "<b>Selected <b>".$this->selected;
+00149           $r="<SELECT  NAME=\"$this->name\">";
+00150           for ( $i=0;$i<sizeof($this->value);$i++) 
+00151             {
+00152               $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":"";
+00153               $r.='<OPTION VALUE="'.$this->value[$i]['value'].'" '.$checked.'>';
+00154               $r.=$this->value[$i]['label'];
+00155             }
+00156           $r.="</SELECT>";
+00157         } else 
+00158           {
+00159             $r="";
+00160             echo_debug('class_widget.php',__LINE__,"this->selected = ".$this->selected); 
+00161             for ( $i=0;$i<sizeof($this->value);$i++) 
+00162               {
+00163                 echo_debug('class_widget.php',__LINE__,"check for ".$this->value[$i]['value']);
+00164                 if ($this->selected==$this->value[$i]['value'] ) 
+00165                   {
+00166                     $r=$this->value[$i]['label'];
+00167         
+00168                   }
+00169               }
+00170           }
+00171       if ( $this->table==1) {
+00172         $r="<TD> $r </TD>";
+00173         if ( $this->label != "") $r="<TD> $this->label</TD>".$r;
+00174       }
+00175       return $r;
+00176     }
+00177     // Password
+00178     if (strtoupper($this->type)=="PASSWORD") {
+00179       if ( $this->readonly==true) return "";
+00180       $r='<input type="password" name="'.$this->name;
+00181       $r.='">';
+00182       if ($this->table==1) {
+00183         $r="<TD> $this->label </TD><TD> $r </TD>";
+00184       }
+00185       return $r;
+00186     }
+00187 
+00188     // Checkbox
+00189     if (strtoupper($this->type)=="CHECKBOX") {
+00190       if ( $this->readonly == true) {
+00191         $check=( $this->selected==true )?"checked":"unchecked";
+00192         $r='<input type="CHECKBOX" name="'.$this->name.'"';
+00193         $r.="  $check";
+00194         $r.=' disabled>';
+00195 
+00196       } else {
+00197         $check=( $this->selected==true )?"checked":"unchecked";
+00198         $r='<input type="CHECKBOX" name="'.$this->name.'"';
+00199         $r.="  $check";
+00200         $r.=' '.$disabled.'>';
 00201       }
-00202       return $r;
-00203     }
-00204 
-00205     //textarea
-00206     if (strtoupper($this->type)=="TEXTAREA") {
-00207       if ( $this->readonly == false ) {
-00208         $r="";
-00209         $r.='<TEXTAREA name="'.$this->name.'"';
-00210         $r.=" rows=\"$this->heigh\" ";
-00211         $r.=" cols=\"$this->width\" ";
-00212         $r.=' '.$disabled.'>';
-00213         $r.=$this->value;
-00214 
-00215         $r.="</TEXTAREA>";
-00216       } else {
-00217         $r='<p>';
-00218         $r.=$this->value;
-00219         $r.=sprintf('<input type="hidden" name="%s" value="%s">',
-00220                     $this->name,urlencode($this->value));
-00221         $r.='</p>';
-00222 
-00223       }
-00224       if ($this->table==1) {
-00225         $r="<TD> $this->label </TD><TD> $r </TD>";
+00202       if ($this->table==1) {
+00203         $r="<TD> $this->label </TD><TD> $r </TD>";
+00204       } else {
+00205         $r=$r." $this->label";
+00206       }
+00207       return $r;
+00208     }
+00209 
+00210     //radio
+00211     if (strtoupper($this->type)=="RADIO") {
+00212       if ( $this->readonly == true) {
+00213         $check=( $this->selected==true || $this->selected=='t' )?"Yes":"no";
+00214         $r=$check;
+00215       } else {
+00216         $check=( $this->selected==true||$this->selected=='t' )?"checked":"unchecked";
+00217         $r='<input type="RADIO" name="'.$this->name.'"';
+00218         $r.=" VALUE=\"$this->value\"";
+00219         $r.="  $check";
+00220         $r.=' '.$disabled.'>';
+00221       }
+00222       if ($this->table==1) {
+00223         $r="<TD> $this->label </TD><TD> $r </TD>";
+00224       } else {
+00225         $r=$this->label.$r;
 00226       }
 00227       return $r;
 00228     }
 00229 
-00230     //----------------------------------------------------------------------
-00231 
-00232     //----------------------------------------------------------------------
-00233     // Rich Text
-00239     if ( strtoupper($this->type)=='RICHTEXT')
-00240       {
-00241             $r= ' <script language="JavaScript" type="text/javascript"> '.
-00242               '<!-- '."\n".
-00243               "\nfunction submitForm() {\n".
-00244               " updateRTE('".$this->name."');\n ".
-00245               " return true; \n".
-00246               "} \n".
-00247               'initRTE("images/", "", "");'."\n".
-00248               '//-->'."\n".
-00249               '</script>'.
-00250               '<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>'.
-00251               'Note Interne : '.
-00252               '<script language="JavaScript" type="text/javascript">'."\n".
-00253               '<!--'."\n";
-00254               //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
-00255 
-00256             echo_debug('class_widget',__LINE__,'to write is '.$this->name);
-00257             /*\! brief 
-00258              *\note the value must be urlencoded
-00259              */
-00260             //  Removing new line
-00261             
-00262             //      $msg=urlencode($this->value);
-00263             $msg=$this->value;
-00264             $msg=str_replace("%OA","",$msg);
-00265             $msg=str_replace("%OD","",$msg);
-00266             $msg=str_replace("\n","",$msg);
-00267             $msg=str_replace("\r","",$msg);
-00268 
-00269             $read=($this->readonly==false)?"false":"true";          
-00270 
-00271 
-00272             $r.=sprintf(" writeRichText('%s','%s',%d,%d,true,%s);\n",
-00273                         $this->name,
-00274                         $msg,
-00275                         $this->width,
-00276                         $this->heigh, 
-00277                         $read);
-00278             $r.= "\n//-->".
-00279               "</script>";
-00280             echo_debug ('class_widget',__LINE__,"writeRichText '$r'");
-00281 
-00282             return $r;
-00283           
-00284       }
-00285 
-00286     //----------------------------------------------------------------------
-00287     //file
-00288     if (strtoupper($this->type)=="FILE") {
-00289       if ( $this->readonly == false ) {
-00290         $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">';
-00291 
-00292       }
-00293       if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; 
-00294       return $r;
-00295     }
-00296   // input type == js_search_poste => button search for the account
-00297     if ( strtolower($this->type)=="js_search_poste") {
-00298      
-00299       $l_sessid=$_REQUEST['PHPSESSID'];
-00300       if ( $this->readonly == false ) {
-00301       // Do we need to filter ??
-00302       if ( $this->extra2 == null ) {
-00303       $r=sprintf('<TD>
-00304          <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search">
-00305             %s</TD><TD> 
+00230     //textarea
+00231     if (strtoupper($this->type)=="TEXTAREA") {
+00232       if ( $this->readonly == false ) {
+00233         $r="";
+00234         $r.='<TEXTAREA name="'.$this->name.'"';
+00235         $r.=" rows=\"$this->heigh\" ";
+00236         $r.=" cols=\"$this->width\" ";
+00237         $r.=' '.$disabled.'>';
+00238         $r.=$this->value;
+00239 
+00240         $r.="</TEXTAREA>";
+00241       } else {
+00242         $r='<p>';
+00243         $r.=$this->value;
+00244         $r.=sprintf('<input type="hidden" name="%s" value="%s">',
+00245                     $this->name,urlencode($this->value));
+00246         $r.='</p>';
+00247 
+00248       }
+00249       if ($this->table==1) {
+00250         $r="<TD> $this->label </TD><TD> $r </TD>";
+00251       }
+00252       return $r;
+00253     }
+00254 
+00255     //----------------------------------------------------------------------
+00256 
+00257     //----------------------------------------------------------------------
+00258     // Rich Text
+00264     if ( strtoupper($this->type)=='RICHTEXT')
+00265       {
+00266             $r= ' <script language="JavaScript" type="text/javascript"> '.
+00267               '<!-- '."\n".
+00268               "\nfunction submitForm() {\n".
+00269               " updateRTE('".$this->name."');\n ".
+00270               " return true; \n".
+00271               "} \n".
+00272               'initRTE("images/", "", "");'."\n".
+00273               '//-->'."\n".
+00274               '</script>'.
+00275               '<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>'.
+00276               'Note Interne : '.
+00277               '<script language="JavaScript" type="text/javascript">'."\n".
+00278               '<!--'."\n";
+00279               //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
+00280 
+00281             echo_debug('class_widget',__LINE__,'to write is '.$this->name);
+00282             /*\! brief 
+00283              *\note the value must be urlencoded
+00284              */
+00285             //  Removing new line
+00286             
+00287             //      $msg=urlencode($this->value);
+00288             $msg=$this->value;
+00289             $msg=str_replace("%OA","",$msg);
+00290             $msg=str_replace("%OD","",$msg);
+00291             $msg=str_replace("\n","",$msg);
+00292             $msg=str_replace("\r","",$msg);
+00293 
+00294             $read=($this->readonly==false)?"false":"true";          
+00295 
+00296 
+00297             $r.=sprintf(" writeRichText('%s','%s',%d,%d,true,%s);\n",
+00298                         $this->name,
+00299                         $msg,
+00300                         $this->width,
+00301                         $this->heigh, 
+00302                         $read);
+00303             $r.= "\n//-->".
+00304               "</script>";
+00305             echo_debug ('class_widget',__LINE__,"writeRichText '$r'");
 00306 
-00307              <INPUT   TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
-00308                  </TD>',
-00309                  $l_sessid,
-00310                  $this->name,
-00311                  $this->extra,
-00312                  $this->label,
-00313                  $this->name,
-00314                  $this->value 
-00315                  );
+00307             return $r;
+00308           
+00309       }
+00310 
+00311     //----------------------------------------------------------------------
+00312     //file
+00313     if (strtoupper($this->type)=="FILE") {
+00314       if ( $this->readonly == false ) {
+00315         $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">';
 00316 
-00317     } else { // $p_list is not null, so we have a filter
-00318       $r=sprintf('<TD>
-00319          <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
-00320             %s</TD><TD> 
-00321 
-00322              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
-00323                  </TD>',
-00324                  $l_sessid,
-00325                  $this->name,
-00326                  $this->extra2,
-00327                  $this->extra,
-00328                  $this->label,
-00329                  $this->name,
-00330                  $this->value 
-00331                  );
-00332 
-00333       } //else
-00334       } else {
-00335       $r=sprintf('<TD><input type="hidden" name="%s" value="%s">
-00336                   %s
-00337 
-00338                  </TD>',
-00339                  $this->name, 
-00340                  $this->value ,
-00341                  $this->value 
-00342                  );
-00343 
-00344       } //else if readonly == true
-00345       return $r;
+00317       }
+00318       if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; 
+00319       return $r;
+00320     }
+00321   // input type == js_search_poste => button search for the account
+00322     if ( strtolower($this->type)=="js_search_poste") {
+00323      
+00324       $l_sessid=$_REQUEST['PHPSESSID'];
+00325       if ( $this->readonly == false ) {
+00326       // Do we need to filter ??
+00327       if ( $this->extra2 == null ) {
+00328       $r=sprintf('<TD>
+00329          <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search">
+00330             %s</TD><TD> 
+00331 
+00332              <INPUT   TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
+00333                  </TD>',
+00334                  $l_sessid,
+00335                  $this->name,
+00336                  $this->extra,
+00337                  $this->label,
+00338                  $this->name,
+00339                  $this->value 
+00340                  );
+00341 
+00342     } else { // $p_list is not null, so we have a filter
+00343       $r=sprintf('<TD>
+00344          <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
+00345             %s</TD><TD> 
 00346 
-00347     } // end js_search_poste
-00348 
-00349   // input type == js_search => button search for card
-00350   if ( strtolower($this->type)=="js_search") {
-00351     $l_sessid=$_REQUEST['PHPSESSID'];
-00352     if  ( $this->readonly == false ) {
-00353       $r=sprintf('<TD>
-00354          <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New">
-00355          </TD><TD>
-00356          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
-00357             %s <INPUT TYPE="Text"    NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
-00358                  ',
-00359                $l_sessid,
-00360                $this->extra, // deb or cred
-00361                $this->name,
-00362                $this->extra2, //jrn
-00363                $l_sessid,
-00364                $this->extra,
-00365                $this->name,
-00366                $this->extra2,
-00367                $this->label,
-00368                $this->name,
-00369                $this->value, 
-00370          $this->tabindex
-00371                );
-00372     } else {
-00373       // readonly == true
-00374       $r=sprintf('<TD>            %s</TD>
-00375                  <TD> 
-00376                  <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8">
-00377                  </TD>',
-00378                $this->label,
-00379                $this->name,
-00380                $this->value 
-00381                  );
-00382 
-00383     }
-00384     return $r;
-00385   }// poste==js_search
-00386 
-00387 
-00388   // input type == js_search => button search for card
-00391   if ( strtolower($this->type)=="js_search_only") {
-00392     $l_sessid=$_REQUEST['PHPSESSID'];
-00393     if  ( $this->readonly == false ) {
-00394       if ( $this->table==1)
-00395         {
-00396           $r=sprintf('<TD>
-00397          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
-00398             %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
-00399                  ',
-00400                $l_sessid,
-00401                $this->extra,
-00402                $this->name,
-00403                $this->extra2,
-00404                $this->label,
-00405                $this->name,
-00406                $this->value, 
-00407          $this->tabindex
-00408                );
-00409         }
-00410       else
-00411         {
-00412           $r=sprintf('
-00413          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
-00414             %s <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">           ',
-00415                $l_sessid,
-00416                $this->extra,
-00417                $this->name,
-00418                $this->extra2,
-00419                $this->label,
-00420                $this->name,
-00421                $this->value, 
-00422                $this->tabindex
-00423                );
-00424         }
-00425     } else {
-00426       // readonly == true
-00427       $r=sprintf('<TD>            %s</TD>
-00428                  <TD> 
-00429                  <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8">
-00430                  </TD>',
-00431                $this->label,
-00432                $this->name,
-00433                $this->value 
-00434                  );
-00435 
-00436     }
-00437     return $r;
-00438   }// poste==js_search_only
-00439 
-00440 
-00441 
-00442 
-00443 
-00444   // type=span
-00445   if ( strtolower($this->type)=="span") {
-00446     $r=sprintf('<span id="%s"  >%s </span>',
-00447                $this->name,
-00448                $this->value
-00449                );
-00450 
-00451     return $r;
-00452   }// end type = span
-00453 
-00454    // input type == js_tva
-00455    if ( strtolower($this->type)=="js_tva") {
-00456      $id=sprintf("<span id=%s></span>",$this->label);
-00457         $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">',
-00458                   $id,
-00459                $this->name,
-00460                $this->value,
-00461                $this->label,
-00462                $this->name);
-00463      $l_sessid=$_REQUEST['PHPSESSID'];
-00464      $r.=sprintf("<input type=\"button\" value=\"Tva\" 
-00465         onClick=\"
-00466                            ShowTva('%s','%s');\"></TD>",
-00467                 $l_sessid,$this->name);
-00468      return $r;
-00469    }
-00470 
-00471   // input type == js_concerned => button search for the concerned operations
-00472   if ( strtolower($this->type)=="js_concerned") {
-00473     if ( $this->readonly == false) {
-00474       $l_sessid=$_REQUEST['PHPSESSID'];
-00475       $r=sprintf('<TD>
-00476          <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search">
-00477             %s</TD><TD> 
+00347              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
+00348                  </TD>',
+00349                  $l_sessid,
+00350                  $this->name,
+00351                  $this->extra2,
+00352                  $this->extra,
+00353                  $this->label,
+00354                  $this->name,
+00355                  $this->value 
+00356                  );
+00357 
+00358       } //else
+00359       } else {
+00360       $r=sprintf('<TD><input type="hidden" name="%s" value="%s">
+00361                   %s
+00362 
+00363                  </TD>',
+00364                  $this->name, 
+00365                  $this->value ,
+00366                  $this->value 
+00367                  );
+00368 
+00369       } //else if readonly == true
+00370       return $r;
+00371 
+00372     } // end js_search_poste
+00373 
+00374   // input type == js_search => button search for card
+00375   if ( strtolower($this->type)=="js_search") {
+00376     $l_sessid=$_REQUEST['PHPSESSID'];
+00377     if  ( $this->readonly == false ) {
+00378       $r=sprintf('<TD>
+00379          <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New">
+00380          </TD><TD>
+00381          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
+00382             %s <INPUT TYPE="Text"    NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
+00383                  ',
+00384                $l_sessid,
+00385                $this->extra, // deb or cred
+00386                $this->name,
+00387                $this->extra2, //jrn
+00388                $l_sessid,
+00389                $this->extra,
+00390                $this->name,
+00391                $this->extra2,
+00392                $this->label,
+00393                $this->name,
+00394                $this->value, 
+00395          $this->tabindex
+00396                );
+00397     } else {
+00398       // readonly == true
+00399       $r=sprintf('<TD>            %s</TD>
+00400                  <TD> 
+00401                  <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8">
+00402                  </TD>',
+00403                $this->label,
+00404                $this->name,
+00405                $this->value 
+00406                  );
+00407 
+00408     }
+00409     return $r;
+00410   }// poste==js_search
+00411 
+00412 
+00413   // input type == js_search => button search for card
+00416   if ( strtolower($this->type)=="js_search_only") {
+00417     $l_sessid=$_REQUEST['PHPSESSID'];
+00418     if  ( $this->readonly == false ) {
+00419       if ( $this->table==1)
+00420         {
+00421           $r=sprintf('<TD>
+00422          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
+00423             %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
+00424                  ',
+00425                $l_sessid,
+00426                $this->extra,
+00427                $this->name,
+00428                $this->extra2,
+00429                $this->label,
+00430                $this->name,
+00431                $this->value, 
+00432          $this->tabindex
+00433                );
+00434         }
+00435       else
+00436         {
+00437           $r=sprintf('
+00438          <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
+00439             %s <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">           ',
+00440                $l_sessid,
+00441                $this->extra,
+00442                $this->name,
+00443                $this->extra2,
+00444                $this->label,
+00445                $this->name,
+00446                $this->value, 
+00447                $this->tabindex
+00448                );
+00449         }
+00450     } else {
+00451       // readonly == true
+00452       $r=sprintf('<TD>            %s</TD>
+00453                  <TD> 
+00454                  <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8">
+00455                  </TD>',
+00456                $this->label,
+00457                $this->name,
+00458                $this->value 
+00459                  );
+00460 
+00461     }
+00462     return $r;
+00463   }// poste==js_search_only
+00464 
+00465 
+00466 
+00467 
+00468 
+00469   // type=span
+00470   if ( strtolower($this->type)=="span") {
+00471     $r=sprintf('<span id="%s"  >%s </span>',
+00472                $this->name,
+00473                $this->value
+00474                );
+00475 
+00476     return $r;
+00477   }// end type = span
 00478 
-00479              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
-00480                  </TD>',
-00481                  $l_sessid,
-00482                  $this->name,
-00483                  $this->label,
-00484                  $this->name,
-00485                  $this->value 
-00486                  );
-00487     } else {
-00488       $r=sprintf("<TD><span>%s</span>",$this->value);
-00489       $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value);
-00490     }
-00491 
-00492     return $r;
-00493   }// end js_concerned
-00494   return "INVALID WIDGET $this->type ";
-00495   } //end function
-00496   /* Debug
-00497    */
-00498   function debug() {
-00499     echo "Type ".$this->type."<br>";
-00500     echo "name ".$this->name."<br>";
-00501     echo "value". $this->value."<br>";
-00502     $readonly=($this->readonly==false)?"false":"true";
-00503     echo "read only".$readonly."<br>";
-00504   }
-00505   function Submit ($p_name,$p_value) {
-00506     return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">';
-00507   }
-00508   function Reset ($p_value) {
-00509     return '<INPUT TYPE="SUBMIT"  VALUE="'.$p_value.'">';
-00510   }
-00511 
-00512 }
+00479    // input type == js_tva
+00480    if ( strtolower($this->type)=="js_tva") {
+00481      $id=sprintf("<span id=%s></span>",$this->label);
+00482         $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">',
+00483                   $id,
+00484                $this->name,
+00485                $this->value,
+00486                $this->label,
+00487                $this->name);
+00488      $l_sessid=$_REQUEST['PHPSESSID'];
+00489      $r.=sprintf("<input type=\"button\" value=\"Tva\" 
+00490         onClick=\"
+00491                            ShowTva('%s','%s');\"></TD>",
+00492                 $l_sessid,$this->name);
+00493      return $r;
+00494    }
+00495 
+00496   // input type == js_concerned => button search for the concerned operations
+00497   if ( strtolower($this->type)=="js_concerned") {
+00498     if ( $this->readonly == false) {
+00499       $l_sessid=$_REQUEST['PHPSESSID'];
+00500       $r=sprintf('<TD>
+00501          <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search">
+00502             %s</TD><TD> 
+00503 
+00504              <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8">
+00505                  </TD>',
+00506                  $l_sessid,
+00507                  $this->name,
+00508                  $this->label,
+00509                  $this->name,
+00510                  $this->value 
+00511                  );
+00512     } else {
+00513       $r=sprintf("<TD><span>%s</span>",$this->value);
+00514       $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value);
+00515     }
+00516 
+00517     return $r;
+00518   }// end js_concerned
+00519   return "INVALID WIDGET $this->type ";
+00520   } //end function
+00521   /* Debug
+00522    */
+00523   function debug() {
+00524     echo "Type ".$this->type."<br>";
+00525     echo "name ".$this->name."<br>";
+00526     echo "value". $this->value."<br>";
+00527     $readonly=($this->readonly==false)?"false":"true";
+00528     echo "read only".$readonly."<br>";
+00529   }
+00530   function Submit ($p_name,$p_value) {
+00531     return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">';
+00532   }
+00533   function Reset ($p_value) {
+00534     return '<INPUT TYPE="SUBMIT"  VALUE="'.$p_value.'">';
+00535   }
+00536 
+00537 }
 
diff --git a/doc/developper/html/class__widget_8php.html b/doc/developper/html/class__widget_8php.html index 57227b0bb..1a9d12ec2 100644 --- a/doc/developper/html/class__widget_8php.html +++ b/doc/developper/html/class__widget_8php.html @@ -16,7 +16,9 @@

Data Structures

class  widget - class widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search More...
+ class widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search. 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. Possible type $type
    +
  • TEXT
  • HIDDEN
  • SELECT
  • PASSWORD
  • CHECKBOX
  • RADIO
  • TEXTAREA
  • RICHTEXT
  • FILE
  • JS_SEARCH_POSTE call a popup window for searching the account
  • JS_SEARCH call a popup window for searching a quickcode or to add one
  • JS_SEARCH_ONLY like JS_SEARCH but without adding a quickcode
  • SPAN
  • JS_TVA open a popup window for the VAT
  • JS_CONCERNED open a popup window for search a operation
+ More...

Detailed Description

This class is used to create all the HTML INPUT TYPE. diff --git a/doc/developper/html/classaction.html b/doc/developper/html/classaction.html index 58d95ffab..6f0d678f4 100644 --- a/doc/developper/html/classaction.html +++ b/doc/developper/html/classaction.html @@ -583,24 +583,24 @@ This function shows the detail of an action thanks the ag_id.

Definition at line 315 of file class_action.php.

-References $r, $row, $sql, ag_comment, ag_ref, ag_ref_ag_id, ag_timestamp, ag_title, d_id, d_state, dt_id, echo_debug(), ExecSql(), f_id_dest, f_id_exp, fiche, qcode_dest, and qcode_exp.

00316     {
+References $r, $row, $sql, ag_comment, ag_ref, ag_ref_ag_id, ag_timestamp, ag_title, d_id, d_state, dt_id, echo_debug(), ExecSql(), f_id_dest, f_id_exp, fiche, qcode_dest, and qcode_exp.
00316     {
 00317       echo_debug('class_action',__LINE__,'Action::Get() ');
 00318       $sql="select ag_id, ag_comment,to_char (ag_timestamp,'DD-MM-YYYY') as ag_timestamp,".
 00319         " f_id_dest,f_id_exp,ag_title,ag_comment,ag_ref,d_id,ag_type,d_state,  ".
 00320         " ag_ref_ag_id ".
 00321         " from action_gestion left join document using (ag_id) where ag_id=".$this->ag_id;
 00322       $r=ExecSql($this->db,$sql);
-00323       $row=pg_fetch_all($r);
+00323       $row=pg_fetch_all($r);
 00324       if ( $row==false) return;
-00325       $this->ag_comment=$row[0]['ag_comment'];
-00326       $this->ag_timestamp=$row[0]['ag_timestamp'];
-00327       $this->f_id_dest=$row[0]['f_id_dest'];
-00328       $this->f_id_exp=$row[0]['f_id_exp'];
-00329       $this->ag_title=$row[0]['ag_title'];
-00330       $this->ag_type=$row[0]['ag_type'];
-00331       $this->ag_ref=$row[0]['ag_ref'];
-00332       $this->ag_ref_ag_id=$row[0]['ag_ref_ag_id'];
-00333       $this->d_id=$row[0]['d_id'];
+00325       $this->ag_comment=$row[0]['ag_comment'];
+00326       $this->ag_timestamp=$row[0]['ag_timestamp'];
+00327       $this->f_id_dest=$row[0]['f_id_dest'];
+00328       $this->f_id_exp=$row[0]['f_id_exp'];
+00329       $this->ag_title=$row[0]['ag_title'];
+00330       $this->ag_type=$row[0]['ag_type'];
+00331       $this->ag_ref=$row[0]['ag_ref'];
+00332       $this->ag_ref_ag_id=$row[0]['ag_ref_ag_id'];
+00333       $this->d_id=$row[0]['d_id'];
 00334       //
 00335       echo_debug('class_action',__LINE__,' Document id = '.$this->d_id);
 00336       // if there is no document set 0 to d_id
@@ -609,8 +609,8 @@ References $r, 00339       // if there is a document fill the object
 00340       if ($this->d_id != 0 )
 00341         {
-00342           $this->state=$row['0']['d_state'];
-00343           $this->d_state=$row[0]['d_state'];
+00342           $this->state=$row['0']['d_state'];
+00343           $this->d_state=$row[0]['d_state'];
 00344         }
 00345       echo_debug('class_action',__LINE__,' After test Document id = '.$this->d_id);
 00346       $this->dt_id=$this->ag_type;
@@ -675,7 +675,7 @@ myList($p_filter="") 
Parameters:

Definition at line 638 of file class_action.php.

-References $_SESSION, $bar, $doc, $limit, $offset, $page, $r, $Res, $row, $sql, $step, ag_ref, ag_ref_ag_id, ag_title, CountSql(), d_id, echo_debug(), ExecSql(), f_id_dest, f_id_exp, fiche, and jrn_navigation_bar(). +References $_SESSION, $bar, $doc, $limit, $line, $offset, $page, $r, $Res, $row, $sql, $step, ag_ref, ag_ref_ag_id, ag_title, CountSql(), d_id, echo_debug(), ExecSql(), f_id_dest, f_id_exp, fiche, and jrn_navigation_bar().

Referenced by Display().

00639     {
 00640       // for the sort
@@ -766,7 +766,7 @@ Referenced by Display
 00725           $r.="<td>".$row['my_date']."</td>";
 00726           // Destinataire
 00727           $fdest=new fiche($this->db);
-00728           $fdest->id=$row['f_id_dest'];
+00728           $fdest->id=$row['f_id_dest'];
 00729           $qcode_dest=$fdest->strAttribut(ATTR_DEF_QUICKCODE);
 00730 
 00731           $qdest=($qcode_dest=="- ERROR -")?"Interne":$qcode_dest;
@@ -781,7 +781,7 @@ Referenced by Display
 00740 
 00741           // Expediteur
 00742           $fexp=new fiche($this->db);
-00743           $fexp->id=$row['f_id_exp'];
+00743           $fexp->id=$row['f_id_exp'];
 00744           $qcode_exp=$fexp->strAttribut(ATTR_DEF_QUICKCODE);
 00745 
 00746           $qexp=($qcode_exp=="- ERROR -")?"Interne":$qcode_exp;
@@ -807,13 +807,13 @@ Referenced by Display
 00766                   foreach ($retSql as $line) 
 00767                     {
 00768                       $ref.='<A  href="commercial.php?p_action=suivi_courrier&query='.$line['ag_ref'].'">'.
-00769                         $line['ag_ref']."<A>";
+00769                         $line['ag_ref']."<A>";
 00770                     }
 00771                 }
 00772             }
 00773 
 00774           $r.='<td><A HREF="commercial.php?p_action=suivi_courrier&sa=detail&ag_id='.$row['ag_id'].'">'.
-00775             $row['ag_title']."</A></td>";
+00775             $row['ag_title']."</A></td>";
 00776           $r.="<td>".$row['dt_value']."</td>";
 00777           $r.="<td>".$row['ag_ref']."</td>";
 00778           $r.="<td>".$ref."</td>";
diff --git a/doc/developper/html/classcl__user.html b/doc/developper/html/classcl__user.html
index 803d25ddd..d894e3f8c 100644
--- a/doc/developper/html/classcl__user.html
+++ b/doc/developper/html/classcl__user.html
@@ -106,7 +106,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.

00040                                    {
+References $_SESSION, $cn, $p_id, $Res, $row, $Sql, DbConnect(), echo_debug(), isValid(), and name.
00040                                    {
 00041     // if p_id is not set then check the connected user
 00042     if ( $p_id == -1 ) {
 00043           echo_debug('class_user.php',__LINE__," g_user = ".$_SESSION['g_user']);
@@ -128,7 +128,7 @@ References $_SESSION
 00059       {
 00060       $this->id=$p_id;
 00061       $this->db=$p_cn;
-00062       $Sql="select use_first_name,
+00062       $Sql="select use_first_name,
 00063              use_name,
 00064              use_login,
 00065              use_active,
@@ -138,12 +138,12 @@ References $_SESSION
 00069       $cn=DbConnect(); 
 00070       $Res=pg_exec($cn,$Sql);
 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'];
-00075       $this->active=$row['use_active'];
-00076       $this->login=$row['use_login'];
-00077       $this->admin=$row['use_admin'];
+00072       $row=pg_fetch_array($Res,0);
+00073       $this->first_name=$row['use_first_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'];
 00078     } 
 00079   }
 
@@ -547,7 +547,7 @@ Get the global preferences from user_global_pref in the account_repository db.

Definition at line 256 of file class_user.php.

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

Referenced by Check().

00257 {
 00258         echo_debug('class_user.php',__LINE__,"function GetGlobalPref");
@@ -563,11 +563,11 @@ Referenced by Check()00268           return;
 00269           }
 00270   // Load value into array
-00271   $line=array();
+00271   $line=array();
 00272   for ($i=0;$i<$Max;$i++) {
-00273     $row=pg_fetch_array($Res,$i);
-00274     $type=$row['parameter_type']; 
-00275     $line[$type]=$row['parameter_value'];;
+00273     $row=pg_fetch_array($Res,$i);
+00274     $type=$row['parameter_type']; 
+00275     $line[$type]=$row['parameter_value'];;
 00276   }
 00277   // save array into g_ variable
 00278   $array_pref=array ('g_theme'=>'THEME','g_pagesize'=>'PAGESIZE');
@@ -578,7 +578,7 @@ Referenced by Check()00283                 $this->GetGlobalPref();
 00284                 return;
 00285                 }       
-00286     $_SESSION[$name]=$line[$parameter];
+00286     $_SESSION[$name]=$line[$parameter];
 00287   }
 00288 }
 
@@ -702,7 +702,7 @@ Get the default user's preferences.

Definition at line 204 of file class_user.php.

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

Referenced by GetPeriode().

00205 {
 00206   // si preference n'existe pas, les créer
@@ -718,9 +718,9 @@ Referenced by GetPeriod
 00216     $l_array=$this->GetPreferences();
 00217   } else {
 00218     for ( $i =0;$i < pg_NumRows($Res);$i++) {
-00219       $row= pg_fetch_array($Res,0);
-00220       $type=$row['parameter_type'];
-00221       $l_array[$type]=$row['parameter_value'];
+00219       $row= pg_fetch_array($Res,0);
+00220       $type=$row['parameter_type'];
+00221       $l_array[$type]=$row['parameter_value'];
 00222     }
 00223   }
 00224   return $l_array;
@@ -775,7 +775,7 @@ insert default pref if no parameter are given insert all the existing parameter
 

Definition at line 298 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().

00298                                                             {
 00299         echo_debug('class_user.php',__LINE__,"function insert_default_global_pref");
@@ -784,7 +784,7 @@ Referenced by GetGlobal
 00302         $default_parameter= array("THEME"=>"Light",
 00303                 "PAGESIZE"=>"50");
 00304         $cn=Dbconnect();
-00305         $Sql="insert into user_global_pref(user_id,parameter_type,parameter_value) 
+00305         $Sql="insert into user_global_pref(user_id,parameter_type,parameter_value) 
 00306                                 values ('%s','%s','%s')";
 00307         if ( $p_type == "" ) {
 00308                 foreach ( $default_parameter as $name=>$value) {
@@ -897,11 +897,11 @@ update default pref if value is not given then use the default value
 

Definition at line 330 of file class_user.php.

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

00330                                                  {
+References $cn, $Sql, ExecSql(), and value.
00330                                                  {
 00331         $default_parameter= array("THEME"=>"Light",
 00332                 "PAGESIZE"=>"50");
 00333         $cn=Dbconnect();
-00334         $Sql="update user_global_pref set parameter_value='%s' 
+00334         $Sql="update user_global_pref set parameter_value='%s' 
 00335                         where parameter_type='%s' and 
 00336                                 user_id='%s'";
 00337         $value=($p_value=="")?$default_parameter[$p_type]:$p_value;
diff --git a/doc/developper/html/classfiche.html b/doc/developper/html/classfiche.html
index 1058c076b..1be2e3921 100644
--- a/doc/developper/html/classfiche.html
+++ b/doc/developper/html/classfiche.html
@@ -536,7 +536,7 @@ get all the attribute of a card, add missing ones and sort the array ($this->
 

Definition at line 190 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().

00190                          {
 00191     if ( $this->id == 0){
@@ -553,11 +553,11 @@ Referenced by Get()00202     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00203       return ;
 00204     for ($i=0;$i<$Max;$i++) {
-00205       $row=pg_fetch_array($Ret,$i);
-00206       $this->fiche_def=$row['fd_id'];
+00205       $row=pg_fetch_array($Ret,$i);
+00206       $this->fiche_def=$row['fd_id'];
 00207       $t=new Attribut ($row['ad_id']);
-00208       $t->ad_text=$row['ad_text'];
-00209       $t->av_text=$row['av_text'];
+00208       $t->ad_text=$row['ad_text'];
+00209       $t->av_text=$row['av_text'];
 00210       $this->attribut[$i]=$t;
 00211     }
 00212     $e=new Fiche_def($this->cn,$this->fiche_def);
@@ -645,7 +645,7 @@ Return array of card from the frd family.
 

Definition at line 317 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().

00317                                                          {
 00318     if ( $p_offset == -1 ) 
@@ -672,7 +672,7 @@ Referenced by GetAll()
 00339     $all[0]=new fiche($this->cn);
 00340 
 00341     for ($i=0;$i<$Max;$i++) {
-00342       $row=pg_fetch_array($Ret,$i);
+00342       $row=pg_fetch_array($Ret,$i);
 00343       $t=new fiche($this->cn,$row['f_id']);
 00344       $t->getAttribut();
 00345       $all[$i]=$t;
@@ -791,7 +791,7 @@ Get all the card where the fiche_def.fd_id is given in parameter.
 

Definition at line 260 of file class_fiche.php.

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

00260                                {
+References $all, $i, $Ret, $row, $sql, $t, ExecSql(), f_id, fiche(), and return.
00260                                {
 00261      $sql="select * 
 00262            from
 00263                fiche 
@@ -804,7 +804,7 @@ References $all
 00270     $all[0]=new fiche($this->cn);
 00271 
 00272     for ($i=0;$i<$Max;$i++) {
-00273       $row=pg_fetch_array($Ret,$i);
+00273       $row=pg_fetch_array($Ret,$i);
 00274       $t=new fiche($this->cn,$row['f_id']);
 00275       $t->getAttribut();
 00276       $all[$i]=$t;
@@ -1216,7 +1216,7 @@ return the string of the given attribute (attr_def.ad_id)
 

Definition at line 366 of file class_fiche.php.

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

00367     {
+References $e, $Res, $row, $sql, and ExecSql().
00367     {
 00368       if ( sizeof ($this->attribut) == 0 ) 
 00369         {
 00370           if ($this->id==0) return '- ERROR -';
@@ -1224,12 +1224,12 @@ References $e, <
 00372           $sql="select av_text from attr_value join jnt_fic_att_value using(jft_id)
 00373                 where f_id=".$this->id." and ad_id=".$p_ad_id;
 00374           $Res=ExecSql($this->cn,$sql);
-00375           $row=pg_fetch_all($Res);
+00375           $row=pg_fetch_all($Res);
 00376           // if not found return error
 00377           if ( $row == false ) 
 00378             return ' - ERROR -';
 00379           
-00380           return $row[0]['av_text'];
+00380           return $row[0]['av_text'];
 00381         }
 00382 
 00383       foreach ($this->attribut as $e)
diff --git a/doc/developper/html/classfiche__def.html b/doc/developper/html/classfiche__def.html
index 1c6a81b22..fab59d407 100644
--- a/doc/developper/html/classfiche__def.html
+++ b/doc/developper/html/classfiche__def.html
@@ -176,7 +176,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.

00074                  {
+References $Ret, $row, $sql, ExecSql(), frd_id, label, and return.
00074                  {
 00075     if ( $this->id == 0 ) 
 00076       return 0;
 00077     $sql="select * from fiche_def ".
@@ -184,11 +184,11 @@ References $Ret, <
 00079     $Ret=ExecSql($this->cn,$sql);
 00080     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00081       return ;
-00082     $row=pg_fetch_array($Ret,0);
-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'];
+00082     $row=pg_fetch_array($Ret,0);
+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'];
 00087   }
 

@@ -226,7 +226,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.

00094                    {
+References $i, $Ret, $row, $sql, ExecSql(), fiche_def(), frd_id, and return.
00094                    {
 00095    $sql="select * from fiche_def ";
 00096 
 00097     $Ret=ExecSql($this->cn,$sql);
@@ -234,12 +234,12 @@ References $i, 00099       return ;
 00100 
 00101     for ( $i = 0; $i < $Max;$i++) {
-00102       $row=pg_fetch_array($Ret,$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'];
+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   }
 
@@ -278,7 +278,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.

00051                          {
+References $i, $Ret, $row, $sql, $t, ExecSql(), and return.
00051                          {
 00052     $sql="select * from jnt_fic_attr ".
 00053       " natural join attr_def where fd_id=".$this->id.
 00054       " order by ad_id";
@@ -288,9 +288,9 @@ References $i, 00058     if ( ($Max=pg_NumRows($Ret)) == 0 )
 00059       return ;
 00060     for ($i=0;$i < $Max;$i++) {
-00061       $row=pg_fetch_array($Ret,$i);
+00061       $row=pg_fetch_array($Ret,$i);
 00062       $t = new Attribut($row['ad_id']);
-00063       $t->ad_text=$row['ad_text'];
+00063       $t->ad_text=$row['ad_text'];
 00064       $this->attribut[$i]=$t;
 00065     }
 00066     return $this->attribut;
diff --git a/doc/developper/html/classfiche__def__ref.html b/doc/developper/html/classfiche__def__ref.html
index cb5abf613..74dfc750b 100644
--- a/doc/developper/html/classfiche__def__ref.html
+++ b/doc/developper/html/classfiche__def__ref.html
@@ -268,7 +268,7 @@ Load all the fiche_def_ref data and return an array of fiche_def_ref objects.
 

Definition at line 51 of file class_fiche_def.php.

-References $all, $array, $idx, $o, $Res, $row, $sql, ExecSql(), fiche_def_ref(), and value.

00052     {
+References $all, $array, $idx, $o, $Res, $row, $sql, ExecSql(), fiche_def_ref(), and value.
00052     {
 00053       $sql="select * from fiche_def_ref order by frd_id";
 00054       $Res=ExecSql($this->db,$sql);
 00055       $all=pg_fetch_all($Res);
@@ -281,7 +281,7 @@ References $all
 00062 
 00063           foreach (  $this->attribut as  $value)
 00064             {
-00065               $o->$value=$row[$value];
+00065               $o->$value=$row[$value];
 00066             }
 00067           $array[$idx]=$o;
 00068           $idx++;
diff --git a/doc/developper/html/classjrn.html b/doc/developper/html/classjrn.html
index 81bf7025c..9e77d73a2 100644
--- a/doc/developper/html/classjrn.html
+++ b/doc/developper/html/classjrn.html
@@ -252,7 +252,7 @@ gen :