diff --git a/doc/developper/html/ac__common_8php-source.html b/doc/developper/html/ac__common_8php-source.html index d7632abd2..0fa2dcf78 100644 --- a/doc/developper/html/ac__common_8php-source.html +++ b/doc/developper/html/ac__common_8php-source.html @@ -247,7 +247,7 @@ 00364 } 00365 00366 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/ac__common_8php.html b/doc/developper/html/ac__common_8php.html index 6ba928c82..86fe65954 100644 --- a/doc/developper/html/ac__common_8php.html +++ b/doc/developper/html/ac__common_8php.html @@ -161,7 +161,7 @@ Definition at line 36 References echo_debug().

-Referenced by AddFiche(), AddForm(), AddModele(), DeleteRapt(), ExecSql(), form_verify_input(), FormAchInput(), FormAchView(), FormatString(), FormODS(), FormVenInput(), FormVenteView(), GetFicheJrn(), getPeriodeName(), GetTvaPoste(), Imp(), InsertRapt(), isValid(), RecordFin(), Remove(), Document_modele::Save(), save_upload_document(), fiche::update(), UpdateFiche(), UpdateJrn(), UpdateModele(), VerifData(), and VerifyOperationDate(). +Referenced by AddFiche(), AddForm(), AddModele(), DeleteRapt(), ExecSql(), form_verify_input(), FormAchInput(), FormAchView(), FormatString(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), GetFicheJrn(), getPeriodeName(), GetTvaPoste(), Imp(), InsertRapt(), isValid(), Remove(), Document_modele::Save(), save_upload_document(), fiche::update(), UpdateFiche(), UpdateJrn(), UpdateModele(), VerifData(), and VerifyOperationDate().

@@ -282,7 +282,7 @@ Definition at line 207 References echo_error().

-Referenced by AddFiche(), AddForm(), AddModele(), action::Confirm(), fiche::CountByDef(), action::Display(), fiche::GetByQCode(), fiche::insert(), InsertJrn(), ListJrn(), RecordFin(), RecordInvoice(), RecordSell(), Remove(), parm_code::Save(), Document_modele::Save(), action::SaveStage2(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), fiche::update(), UpdateComment(), UpdateFiche(), UpdateForm(), Own::UpdateRow(), and ViewJrn(). +Referenced by AddFiche(), AddForm(), AddModele(), action::Confirm(), fiche::CountByDef(), action::Display(), fiche::GetByQCode(), fiche::insert(), InsertJrn(), ListJrn(), RecordFin(), RecordInvoice(), RecordSell(), Remove(), parm_code::Save(), Document_modele::Save(), action::SaveStage2(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), fiche::update(), UpdateComment(), UpdateFiche(), UpdateForm(), Own::UpdateRow(), and ViewJrn().

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

Returns:
nothing

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

-Referenced by u_ShowMenu(). +Definition at line 181 of file ac_common.php.

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

Definition at line 97 of file ac_common.php.

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

@@ -642,7 +640,7 @@ Referenced by cmpDate()<

Definition at line 76 of file ac_common.php.

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

@@ -803,10 +801,10 @@ Definition at line 227 References $ret, and $title.

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


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/action_8inc_8php-source.html b/doc/developper/html/action_8inc_8php-source.html index d64bd508e..ed9065de7 100644 --- a/doc/developper/html/action_8inc_8php-source.html +++ b/doc/developper/html/action_8inc_8php-source.html @@ -42,7 +42,7 @@ 00045 $a=(isset($_GET['query']))?$_GET['query']:""; 00046 printf ('<span>Titre : <input type="text" name="query" value="%s"></span>', 00047 $a); -00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; 00049 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', 00050 $qcode); 00051 @@ -261,7 +261,7 @@ 00273 00274 } 00275 -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/action_8inc_8php.html b/doc/developper/html/action_8inc_8php.html index a7ca56fd9..e434a0736 100644 --- a/doc/developper/html/action_8inc_8php.html +++ b/doc/developper/html/action_8inc_8php.html @@ -133,7 +133,7 @@ Show the list of action, this code should be common to several webpage. But for

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

-References $a, $act, $fiche, $h_url, $qcode, $r, $retour, name, qcode, and value. +References $a, $act, $fiche, $h_url, $qcode, $r, $retour, name, qcode, and value.


Variable Documentation

@@ -400,7 +400,7 @@ Definition at line 100<

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

-Referenced by FormFin(). +Referenced by FormFin().

@@ -427,7 +427,7 @@ Referenced by FormF

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

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

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

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

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

@@ -776,7 +776,7 @@ Referenced by 137 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().

@@ -857,10 +857,10 @@ Referenced by widget:

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


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/admin__repo_8php-source.html b/doc/developper/html/admin__repo_8php-source.html index 36bca3841..e23069704 100644 --- a/doc/developper/html/admin__repo_8php-source.html +++ b/doc/developper/html/admin__repo_8php-source.html @@ -229,15 +229,15 @@ 00225 // Reset Sequence 00226 $a_seq=array('s_jrn','s_jrn_op','s_centralized','s_stock_goods'); 00227 foreach ($a_seq as $seq ) { -00228 $sql=sprintf("select setval('%s',1,false)",$seq); +00228 $sql=sprintf("select setval('%s',1,false)",$seq); 00229 $Res=ExecSql($cn_mod,$sql); 00230 } -00231 $sql="select jrn_def_id from jrn_def "; +00231 $sql="select jrn_def_id from jrn_def "; 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); -00236 $sql=sprintf ("select setval('s_jrn_%d',1,false)",$row['jrn_def_id']); +00236 $sql=sprintf ("select setval('s_jrn_%d',1,false)",$row['jrn_def_id']); 00237 ExecSql($cn_mod,$sql); 00238 } 00239 @@ -318,7 +318,7 @@ 00314 00315 html_page_stop(); 00316 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/admin__repo_8php.html b/doc/developper/html/admin__repo_8php.html index 871c78066..f2aed5135 100644 --- a/doc/developper/html/admin__repo_8php.html +++ b/doc/developper/html/admin__repo_8php.html @@ -571,7 +571,7 @@ Definition at line 117< Definition at line 42 of file admin_repo.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annotated.html b/doc/developper/html/annotated.html index b7f158a43..63cbbb558 100644 --- a/doc/developper/html/annotated.html +++ b/doc/developper/html/annotated.html @@ -32,7 +32,7 @@ SupplierClass Supplier are a specific kind of card widgetClass widget This class is used to create all the HTML INPUT TYPE and some specials which works with javascript like js_search -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annulation_8php-source.html b/doc/developper/html/annulation_8php-source.html index 2ded74e5e..29f6c4695 100644 --- a/doc/developper/html/annulation_8php-source.html +++ b/doc/developper/html/annulation_8php-source.html @@ -142,7 +142,7 @@ 00136 $seq=NextSequence($cn,"s_jrn"); 00137 $p_internal=SetInternalCode($cn,$seq,$l_array['jr_def_id']); 00138 -00139 $sql= "insert into jrn ( +00139 $sql= "insert into jrn ( 00140 jr_id,jr_def_id,jr_montant,jr_comment, 00141 jr_date,jr_grpt_id,jr_internal 00142 ,jr_tech_per, jr_valid @@ -157,7 +157,7 @@ 00151 if ( $Res == false ) { Rollback($cn);exit(-1);} 00152 00153 // Make also the change into jrnx -00154 $sql= "insert into jrnx ( +00154 $sql= "insert into jrnx ( 00155 j_date,j_montant,j_poste,j_grpt, 00156 j_jrn_def,j_debit,j_text,j_internal,j_tech_user,j_tech_per 00157 ) select now(),j_montant,j_poste,$grp_new, @@ -172,7 +172,7 @@ 00166 00167 // Mark the operation invalid into the ledger 00168 // to avoid to nullify twice the same op. -00169 $sql="update jrn set jr_comment='Annule : '||jr_comment where jr_grpt_id=".$_POST['p_id']; +00169 $sql="update jrn set jr_comment='Annule : '||jr_comment where jr_grpt_id=".$_POST['p_id']; 00170 $Res=ExecSql($cn,$sql); 00171 // Check return code 00172 if ( $Res == false ) { Rollback($cn);exit(-1);} @@ -186,7 +186,7 @@ 00180 00181 // the table stock must updated 00182 // also in the stock table -00183 $sql="delete from stock_goods where sg_id = any ( select sg_id +00183 $sql="delete from stock_goods where sg_id = any ( select sg_id 00184 from stock_goods natural join jrnx where j_grpt=".$_POST['p_id'].")"; 00185 $Res=ExecSql($cn,$sql); 00186 // Check return code @@ -210,20 +210,20 @@ 00204 StartSql($cn); 00205 00206 // delete from the stock table -00207 $sql="delete from stock_goods where sg_id = any ( select sg_id +00207 $sql="delete from stock_goods where sg_id = any ( select sg_id 00208 from stock_goods natural join jrnx where j_grpt=".$_POST['p_id'].")"; 00209 $Res=ExecSql($cn,$sql); 00210 00211 if ( $Res == false ) { Rollback($cn);exit(-1);} 00212 // delete from jrnx & jrn -00213 $sql="update jrnx set j_montant = 0 where j_grpt=".$_POST['p_id']; +00213 $sql="update jrnx set j_montant = 0 where j_grpt=".$_POST['p_id']; 00214 00215 $Res=ExecSql($cn,$sql); 00216 00217 if ( $Res == false ) { Rollback($cn);exit(-1);} 00218 00219 // build the sql stmt for jrn -00220 $sql= "update jrn set jr_montant=0,jr_valid='f',jr_comment='Erreur:'||jr_comment where jr_grpt_id=".$_POST['p_id']; +00220 $sql= "update jrn set jr_montant=0,jr_valid='f',jr_comment='Erreur:'||jr_comment where jr_grpt_id=".$_POST['p_id']; 00221 $Res=ExecSql($cn,$sql); 00222 00223 if ( $Res == false ) { Rollback($cn);exit(-1);} @@ -294,7 +294,7 @@ 00288 00289 html_page_stop(); 00290 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/annulation_8php.html b/doc/developper/html/annulation_8php.html index 389b8c44a..850aaee85 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().

@@ -303,7 +303,7 @@ Definition at line 55251 of file annulation.php. -


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bal__csv_8php-source.html b/doc/developper/html/bal__csv_8php-source.html index d2889e8e0..425a9912b 100644 --- a/doc/developper/html/bal__csv_8php-source.html +++ b/doc/developper/html/bal__csv_8php-source.html @@ -71,7 +71,7 @@ 00065 00066 00067 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bal__csv_8php.html b/doc/developper/html/bal__csv_8php.html index c982aaec0..97bfc492a 100644 --- a/doc/developper/html/bal__csv_8php.html +++ b/doc/developper/html/bal__csv_8php.html @@ -156,7 +156,7 @@ Definition at line 35 Definition at line 40 of file bal_csv.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/balance_8php-source.html b/doc/developper/html/balance_8php-source.html index 331c6f3e3..64c63b559 100644 --- a/doc/developper/html/balance_8php-source.html +++ b/doc/developper/html/balance_8php-source.html @@ -42,19 +42,19 @@ 00038 // Form 00040 // Show the export button 00041 if ( isset ($_POST['view'] ) ) { -00042 $submit=new widget(); +00042 $submit=new widget(); 00043 $hid=new widget("hidden"); 00044 00045 echo "<table>"; 00046 echo '<TR>'; 00047 echo '<TD><form method="POST" ACTION="print_balance.php">'. -00048 $submit->Submit('bt_pdf',"Export PDF"). +00048 $submit->Submit('bt_pdf',"Export PDF"). 00049 $hid->IOValue("from_periode",$_POST['from_periode']). 00050 $hid->IOValue("to_periode",$_POST['to_periode']); 00051 00052 echo "</form></TD>"; 00053 echo '<TD><form method="POST" ACTION="bal_csv.php">'. -00054 $submit->Submit('bt_csv',"Export CSV"). +00054 $submit->Submit('bt_csv',"Export CSV"). 00055 $hid->IOValue("from_periode",$_POST['from_periode']). 00056 $hid->IOValue("to_periode",$_POST['to_periode']); 00057 @@ -133,7 +133,7 @@ 00132 }// end submit 00133 echo "</div>"; 00134 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/balance_8php.html b/doc/developper/html/balance_8php.html index 51608f9c6..2645b2f30 100644 --- a/doc/developper/html/balance_8php.html +++ b/doc/developper/html/balance_8php.html @@ -327,7 +327,7 @@ Definition at line 67 o

Definition at line 33 of file balance.php.

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

@@ -382,7 +382,7 @@ Definition at line 68 o Referenced by fiche::blank(), ListJrn(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), VerifImport(), ViewRecord(), and widget::widget(). -


Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bilan_8php-source.html b/doc/developper/html/bilan_8php-source.html index 4b73771bf..013a2ea07 100644 --- a/doc/developper/html/bilan_8php-source.html +++ b/doc/developper/html/bilan_8php-source.html @@ -142,7 +142,7 @@ 00137 00138 }// rtf file is read 00139 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/bilan_8php.html b/doc/developper/html/bilan_8php.html index 81cab9d2d..0ed256e7e 100644 --- a/doc/developper/html/bilan_8php.html +++ b/doc/developper/html/bilan_8php.html @@ -324,7 +324,7 @@ Referenced by Cezpdf:: Definition at line 33 of file bilan.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/cbc__be_8inc_8php-source.html b/doc/developper/html/cbc__be_8inc_8php-source.html index 389f2e73a..93e9f2db1 100644 --- a/doc/developper/html/cbc__be_8inc_8php-source.html +++ b/doc/developper/html/cbc__be_8inc_8php-source.html @@ -64,7 +64,7 @@ 00064 fclose($handle); 00065 echo "Encore rien désolé"; 00066 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/cbc__be_8inc_8php.html b/doc/developper/html/cbc__be_8inc_8php.html index ccfcb84d2..e8a64ee3c 100644 --- a/doc/developper/html/cbc__be_8inc_8php.html +++ b/doc/developper/html/cbc__be_8inc_8php.html @@ -50,7 +50,7 @@ Definition at line 28< Referenced by Centralise(), cl_user::cl_user(), Cezpdf::ezTable(), Document::Generate(), parm_code::Get(), fiche_def::Get(), Document_modele::Get(), Document::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), cl_user::GetPreferences(), ListJrn(), fiche_def_ref::LoadAll(), make_array(), Document_modele::myList(), action::myList(), Cpdf::openFont(), Own::Own(), ShowDossier(), and fiche::strAttribut(). -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central_8php-source.html b/doc/developper/html/central_8php-source.html index 4d4d03fe1..d6689ce70 100644 --- a/doc/developper/html/central_8php-source.html +++ b/doc/developper/html/central_8php-source.html @@ -47,7 +47,7 @@ 00041 00042 00043 include_once ("user_menu.php"); -00044 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00044 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00045 00046 $cn=DbConnect($_SESSION['g_dossier']); 00047 if ( $User->CheckAction($cn,CENTRALIZE)==0 ) { @@ -58,7 +58,7 @@ 00052 include_once("central_inc.php"); 00053 00054 echo '<div class="u_subtmenu">'; -00055 echo ShowMenuAdvanced("central.php"); +00055 echo ShowMenuAdvanced("central.php"); 00056 echo '</div>'; 00057 00058 @@ -90,7 +90,7 @@ 00084 echo "</DIV>"; 00085 html_page_stop(); 00086 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central_8php.html b/doc/developper/html/central_8php.html index ce61f9614..af3d885d6 100644 --- a/doc/developper/html/central_8php.html +++ b/doc/developper/html/central_8php.html @@ -102,7 +102,7 @@ Definition at line 35 o Definition at line 37 of file central.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central__inc_8php-source.html b/doc/developper/html/central__inc_8php-source.html index 4482dd072..6471cbc89 100644 --- a/doc/developper/html/central__inc_8php-source.html +++ b/doc/developper/html/central__inc_8php-source.html @@ -28,7 +28,7 @@ 00019 00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00036 function Centralise($p_cn,$p_periode) { -00037 $sql="insert into centralized( c_j_id, +00037 $sql="insert into centralized( c_j_id, 00038 c_date , 00039 c_internal, 00040 c_montant, @@ -69,7 +69,7 @@ 00075 for ( $i=0; $i < $MaxJrn;$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 +00078 $sql=sprintf("select jr_id from jrn 00079 where 00080 jr_tech_per=%d 00081 and jr_def_id = %d @@ -84,7 +84,7 @@ 00090 // each line is updated with a sequence 00091 $line=pg_fetch_array($Res2,$e); 00092 $jr_id=$line['jr_id']; -00093 $sql=sprintf ("update jrn set +00093 $sql=sprintf ("update jrn set 00094 jr_opid = (select nextval('s_jrn_%d')) 00095 where jr_id =%d", 00096 $row['jrn_def_id'], @@ -96,7 +96,7 @@ 00102 // Put jr_c_opid in centralized 00103 // for each jrn_def_id 00104 // get the op related to that jrn_def_id -00105 $sql=sprintf("select jr_id from jrn +00105 $sql=sprintf("select jr_id from jrn 00106 where 00107 jr_tech_per=%d 00108 order by jr_date,jr_grpt_id desc", @@ -109,7 +109,7 @@ 00115 // each line is updated with a sequence 00116 $line=pg_fetch_array($Res2,$e); 00117 $jr_id=$line['jr_id']; -00118 $sql=sprintf ("update jrn set +00118 $sql=sprintf ("update jrn set 00119 jr_c_opid = (select nextval('s_central')) 00120 where jr_id =%d", 00121 $jr_id); @@ -122,7 +122,7 @@ 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); -00131 $sql=sprintf ("update centralized set +00131 $sql=sprintf ("update centralized set 00132 c_order = (select nextval('s_central_order')) 00133 where c_id = %d",$row['c_id']); 00134 $Res2=ExecSql($p_cn,$sql); @@ -145,7 +145,7 @@ 00162 } 00163 00164 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/central__inc_8php.html b/doc/developper/html/central__inc_8php.html index 03864b9ee..407709deb 100644 --- a/doc/developper/html/central__inc_8php.html +++ b/doc/developper/html/central__inc_8php.html @@ -74,9 +74,9 @@ Met les donnees centralisees dans la table centralize.

Definition at line 36 of file central_inc.php.

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

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

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


Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/check__priv_8php-source.html b/doc/developper/html/check__priv_8php-source.html index aff3f5c2f..3a9c4a447 100644 --- a/doc/developper/html/check__priv_8php-source.html +++ b/doc/developper/html/check__priv_8php-source.html @@ -131,7 +131,7 @@ 00167 function CheckIsAdmin($p_user) 00168 { 00169 if ( $p_user == 'phpcompta') return 1; -00170 $sql="select use_id from ac_users where use_login='$p_user' +00170 $sql="select use_id from ac_users where use_login='$p_user' 00171 and use_active=1 and use_admin=1 "; 00172 $cn=DbConnect(); 00173 @@ -145,7 +145,7 @@ 00193 { 00194 if ( CheckIsAdmin ($p_user) ) return 1; 00195 $cn=DbConnect(); -00196 $sql="select dos_id from ac_users +00196 $sql="select dos_id from ac_users 00197 natural join jnt_use_dos 00198 natural join ac_dossier 00199 join priv_user on ( priv_jnt=jnt_id) @@ -158,7 +158,7 @@ 00206 } 00207 00208 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/check__priv_8php.html b/doc/developper/html/check__priv_8php.html index c3a8ce8b8..59f9378a2 100644 --- a/doc/developper/html/check__priv_8php.html +++ b/doc/developper/html/check__priv_8php.html @@ -142,7 +142,7 @@ Check if an user has acces to a folder.

Definition at line 192 of file check_priv.php.

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

@@ -186,7 +186,7 @@ Check if an user is an administrator.

Definition at line 167 of file check_priv.php.

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

Referenced by CheckAction(), CheckDossier(), and CheckJrn(). @@ -252,10 +252,10 @@ Definition at line 46 References $cn, $Res, $Res2, CheckIsAdmin(), CountSql(), DbConnect(), echo_debug(), and ExecSql().

-Referenced by ShowMenuJrnUser(). +Referenced by ShowMenuJrnUser(). -


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

Definition at line 53 of file class_balance.php.

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


Field Documentation

@@ -191,7 +191,7 @@ Definition at line 3
The documentation for this class was generated from the following file:
-
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classCezpdf.html b/doc/developper/html/classCezpdf.html index 18f16fa10..7f42a5f58 100644 --- a/doc/developper/html/classCezpdf.html +++ b/doc/developper/html/classCezpdf.html @@ -549,7 +549,7 @@ Referenced by ezTable(

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

-References $l, $num, $tmp, $w, Cpdf::addText(), Cpdf::closeObject(), ezPRVTpageNumberSearch(), Cpdf::getTextWidth(), Cpdf::reopenObject(), and size. +References $l, $num, $tmp, $w, Cpdf::addText(), Cpdf::closeObject(), ezPRVTpageNumberSearch(), Cpdf::getTextWidth(), Cpdf::reopenObject(), and size.

Referenced by ezPRVTcleanUp(). @@ -1522,7 +1522,7 @@ Referenced by ezPrvtTa


The documentation for this class was generated from the following file: -
Generated on Sat Jun 24 00:05:15 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classCpdf.html b/doc/developper/html/classCpdf.html index d263f3b1b..de7fb4dff 100644 --- a/doc/developper/html/classCpdf.html +++ b/doc/developper/html/classCpdf.html @@ -4717,7 +4717,7 @@ Definition at line 134
The documentation for this class was generated from the following file:
-
Generated on Sat Jun 24 00:05:15 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classCreport.html b/doc/developper/html/classCreport.html index 4d10a7fa6..aee748205 100644 --- a/doc/developper/html/classCreport.html +++ b/doc/developper/html/classCreport.html @@ -164,7 +164,7 @@ Definition at line 26 of
The documentation for this class was generated from the following file:
  • /home/dany/developpement/phpcompta-dev/phpcompta/html/addon/readme.php
-
Generated on Sat Jun 24 00:05:15 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classCustomer.html b/doc/developper/html/classCustomer.html index 2b72d2201..ec11d5fb9 100644 --- a/doc/developper/html/classCustomer.html +++ b/doc/developper/html/classCustomer.html @@ -122,7 +122,7 @@ Get all info contains in the view thanks to the poste elt (account).

Definition at line 57 of file class_customer.php.

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

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

-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classDocument__type.html b/doc/developper/html/classDocument__type.html index 135ac5d12..2cbb2ee97 100644 --- a/doc/developper/html/classDocument__type.html +++ b/doc/developper/html/classDocument__type.html @@ -90,12 +90,12 @@ Get all the data for this dt_id.

Definition at line 43 of file class_document_type.php.

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


The documentation for this class was generated from the following file: -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classOwn.html b/doc/developper/html/classOwn.html index 6aeed0ed6..9f29ee52b 100644 --- a/doc/developper/html/classOwn.html +++ b/doc/developper/html/classOwn.html @@ -162,7 +162,7 @@ Definition at line 29
The documentation for this class was generated from the following file:
  • /home/dany/developpement/phpcompta-dev/phpcompta/include/class_own.php
-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class_8ezpdf_8php-source.html b/doc/developper/html/class_8ezpdf_8php-source.html index e92ba53b7..368ce7c92 100644 --- a/doc/developper/html/class_8ezpdf_8php-source.html +++ b/doc/developper/html/class_8ezpdf_8php-source.html @@ -396,9 +396,9 @@ 00387 if ($k && $k>0){ 00388 $totalPages = $k-1; 00389 } else { -00390 $l = $this->ezPRVTpageNumberSearch('stoptn',$tmp); +00390 $l = $this->ezPRVTpageNumberSearch('stoptn',$tmp); 00391 if ($l && $l>0){ -00392 $totalPages = $l; +00392 $totalPages = $l; 00393 } else { 00394 $totalPages = $totalPages1; 00395 } @@ -1377,17 +1377,17 @@ 01368 //center if justification=center 01369 if ($just == 'center') 01370 { -01371 $offset = ($bigwidth - $width) / 2; +01371 $offset = ($bigwidth - $width) / 2; 01372 } 01373 //move to right if justification=right 01374 if ($just == 'right') 01375 { -01376 $offset = ($bigwidth - $width); +01376 $offset = ($bigwidth - $width); 01377 } 01378 //leave at left if justification=left 01379 if ($just == 'left') 01380 { -01381 $offset = 0; +01381 $offset = 0; 01382 } 01383 } 01384 @@ -1562,7 +1562,7 @@ 01553 01554 } 01555 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class_8ezpdf_8php.html b/doc/developper/html/class_8ezpdf_8php.html index a36a037c3..856944024 100644 --- a/doc/developper/html/class_8ezpdf_8php.html +++ b/doc/developper/html/class_8ezpdf_8php.html @@ -15,7 +15,7 @@ class  Cezpdf -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class_8pdf_8php-source.html b/doc/developper/html/class_8pdf_8php-source.html index 1b5b682cd..74280af48 100644 --- a/doc/developper/html/class_8pdf_8php-source.html +++ b/doc/developper/html/class_8pdf_8php-source.html @@ -2597,7 +2597,7 @@ 03073 } // end of class 03074 03075 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class_8pdf_8php.html b/doc/developper/html/class_8pdf_8php.html index f232e3f16..4ecd0ad4d 100644 --- a/doc/developper/html/class_8pdf_8php.html +++ b/doc/developper/html/class_8pdf_8php.html @@ -18,7 +18,7 @@ class  Cpdf -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class__action_8php-source.html b/doc/developper/html/class__action_8php-source.html index 0345f2572..4d74e3c44 100644 --- a/doc/developper/html/class__action_8php-source.html +++ b/doc/developper/html/class__action_8php-source.html @@ -207,7 +207,7 @@ 00254 $this->ag_title=$doc_mod->dt_value; 00255 } 00256 echo_debug('class_action',__LINE__," tiers->id ".$tiers->id); -00257 $sql=sprintf("insert into action_gestion(ag_type,ag_title,f_id,ag_comment) values ('%s','%s',%d,'%s')", $this->dt_id, +00257 $sql=sprintf("insert into action_gestion(ag_type,ag_title,f_id,ag_comment) values ('%s','%s',%d,'%s')", $this->dt_id, 00258 FormatString($this->ag_title), 00259 $tiers->id, 00260 FormatString(urlencode($this->ag_desc))); @@ -268,7 +268,7 @@ 00320 } 00329 function myList($p_filter="",$p_search="") 00330 { -00331 $sql=" +00331 $sql=" 00332 select ag_id,to_char(ag_timestamp,'DD-MM-YYYY HH:MI') as my_date,f_id,ag_title,d_id,md_type,dt_value 00333 from action_gestion 00334 left outer join document using (ag_id) @@ -276,16 +276,16 @@ 00336 join document_type on (ag_type=dt_id) 00337 where dt_id in ($p_filter) $p_search"; 00338 $max_line=CountSql($this->db,$sql); -00339 $step=$_SESSION['g_pagesize']; -00340 $page=(isset($_GET['offset']))?$_GET['page']:1; -00341 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00339 $step=$_SESSION['g_pagesize']; +00340 $page=(isset($_GET['offset']))?$_GET['page']:1; +00341 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00342 $limit=" LIMIT $step OFFSET $offset "; -00343 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00343 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00344 00345 $Res=ExecSql($this->db,$sql.$limit); 00346 $a_row=pg_fetch_all($Res); 00347 $r='<div class="u_redcontent">'; -00348 $r.=$bar; +00348 $r.=$bar; 00349 $r.="<table>"; 00350 $r.="<tr>"; 00351 $r.="<th>Date</th>"; @@ -320,7 +320,7 @@ 00380 00381 } 00382 $r.="</table>"; -00383 $r.=$bar; +00383 $r.=$bar; 00384 $r.="</div>"; 00385 return $r; 00386 } @@ -328,7 +328,7 @@ 00388 00389 00390 } -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/class__action_8php.html b/doc/developper/html/class__action_8php.html index 2245738f3..58d7ecce3 100644 --- a/doc/developper/html/class__action_8php.html +++ b/doc/developper/html/class__action_8php.html @@ -29,7 +29,7 @@ class_action for manipulating actions action can be :

    The table document_type are the possible actions

    -Definition in file class_action.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_action.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__attribut_8php-source.html b/doc/developper/html/class__attribut_8php-source.html index 271e42058..8c66a3c64 100644 --- a/doc/developper/html/class__attribut_8php-source.html +++ b/doc/developper/html/class__attribut_8php-source.html @@ -52,7 +52,7 @@ 00060 00061 return $p_attribut; 00062 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__attribut_8php.html b/doc/developper/html/class__attribut_8php.html index 07eb546ca..27e63d0d1 100644 --- a/doc/developper/html/class__attribut_8php.html +++ b/doc/developper/html/class__attribut_8php.html @@ -70,7 +70,7 @@ References $i, and fiche::getAttribut(). -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__balance_8php-source.html b/doc/developper/html/class__balance_8php-source.html index 20c6fed59..de46b46aa 100644 --- a/doc/developper/html/class__balance_8php-source.html +++ b/doc/developper/html/class__balance_8php-source.html @@ -53,7 +53,7 @@ 00065 if ( $this->central=='Y' ) { $cent="j_centralized = true and "; } 00066 00067 // build query -00068 $sql="select j_poste,sum(deb) as sum_deb, sum(cred) as sum_cred from +00068 $sql="select j_poste,sum(deb) as sum_deb, sum(cred) as sum_cred from 00069 ( select j_poste, 00070 case when j_debit='t' then j_montant else 0 end as deb, 00071 case when j_debit='f' then j_montant else 0 end as cred @@ -100,7 +100,7 @@ 00112 00113 } 00114 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__balance_8php.html b/doc/developper/html/class__balance_8php.html index 2160d9e79..6cec0bcb7 100644 --- a/doc/developper/html/class__balance_8php.html +++ b/doc/developper/html/class__balance_8php.html @@ -23,7 +23,7 @@ Class for manipulating data to print the balance of account.

    -Definition in file class_balance.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_balance.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__contact_8php-source.html b/doc/developper/html/class__contact_8php-source.html index 0f91f6b3b..06b81738b 100644 --- a/doc/developper/html/class__contact_8php-source.html +++ b/doc/developper/html/class__contact_8php-source.html @@ -54,9 +54,9 @@ 00062 // Get the max numberRow 00063 $all_contact=$this->CountByDef($this->fiche_def_ref,$p_search,$extra_sql); 00064 // Get offset and page variable -00065 $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; -00066 $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; -00067 $bar=jrn_navigation_bar($offset,$all_contact,$_SESSION['g_pagesize'],$page); +00065 $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; +00066 $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; +00067 $bar=jrn_navigation_bar($offset,$all_contact,$_SESSION['g_pagesize'],$page); 00068 // set a filter ? 00069 $search=""; 00070 if ( trim($p_search) != "" ) @@ -71,7 +71,7 @@ 00079 // Get The result Array 00080 $step_contact=$this->GetAll($offset,$search.$extra_sql); 00081 if ( $all_contact == 0 ) return ""; -00082 $r=$bar; +00082 $r=$bar; 00083 $r.='<table> 00084 <TR style="background-color:lightgrey;"> 00085 <th>Nom</th> @@ -114,12 +114,12 @@ 00122 00123 } 00124 $r.="</TABLE>"; -00125 $r.=$bar; +00125 $r.=$bar; 00126 return $r; 00127 } 00128 00129 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__contact_8php.html b/doc/developper/html/class__contact_8php.html index 5c1342939..a16c4df87 100644 --- a/doc/developper/html/class__contact_8php.html +++ b/doc/developper/html/class__contact_8php.html @@ -23,7 +23,7 @@ class for the contact, contact are derived from ficheContact are a card which ar

    -Definition in file class_contact.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_contact.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__customer_8php-source.html b/doc/developper/html/class__customer_8php-source.html index 781cf13fe..3c4de70eb 100644 --- a/doc/developper/html/class__customer_8php-source.html +++ b/doc/developper/html/class__customer_8php-source.html @@ -52,7 +52,7 @@ 00053 } 00057 function GetFromPoste($p_poste=0) { 00058 $this->poste=($p_poste==0)?$this->poste:$p_poste; -00059 $sql="select * from vw_client where poste_comptable=".$this->poste; +00059 $sql="select * from vw_client where poste_comptable=".$this->poste; 00060 $Res=ExecSql($this->cn,$sql); 00061 if ( pg_NumRows($Res) == 0) return null; 00062 // There is only _one_ row by customer @@ -84,7 +84,7 @@ 00100 $TVA=$t->p_value; 00101 // Get all the sell operation 00102 //---- -00103 $sql="select j_grpt +00103 $sql="select j_grpt 00104 from 00105 jrnx as A 00106 join jrnx as B using (j_grpt) @@ -175,9 +175,9 @@ 00201 // Get the max numberRow 00202 $all_client=$this->CountByDef($this->fiche_def_ref,$p_search); 00203 // Get offset and page variable -00204 $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; -00205 $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; -00206 $bar=jrn_navigation_bar($offset,$all_client,$_SESSION['g_pagesize'],$page); +00204 $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; +00205 $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; +00206 $bar=jrn_navigation_bar($offset,$all_client,$_SESSION['g_pagesize'],$page); 00207 // set a filter ? 00208 $search=""; 00209 if ( trim($p_search) != "" ) @@ -192,7 +192,7 @@ 00218 // Get The result Array 00219 $step_client=$this->GetAll($offset,$search); 00220 if ( $all_client == 0 ) return ""; -00221 $r=$bar; +00221 $r=$bar; 00222 $r.='<table> 00223 <TR style="background-color:lightgrey;"> 00224 <TH>Quick Code</TH> @@ -235,14 +235,14 @@ 00261 00262 } 00263 $r.="</TABLE>"; -00264 $r.=$bar; +00264 $r.=$bar; 00265 return $r; 00266 } 00267 00268 } 00269 00270 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__customer_8php.html b/doc/developper/html/class__customer_8php.html index 56b43495d..e966445a0 100644 --- a/doc/developper/html/class__customer_8php.html +++ b/doc/developper/html/class__customer_8php.html @@ -23,7 +23,7 @@ Derived from class fiche Customer ar

    -Definition in file class_customer.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_customer.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document_8php-source.html b/doc/developper/html/class__document_8php-source.html index 76834f001..1f1eb87ee 100644 --- a/doc/developper/html/class__document_8php-source.html +++ b/doc/developper/html/class__document_8php-source.html @@ -177,7 +177,7 @@ 00207 Rollback($this->db); echo_debug('class_document',__LINE__,"can't save file $p_file"); 00208 return 1; } 00209 -00210 $sql=sprintf("insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) +00210 $sql=sprintf("insert into document(ag_id,d_lob,d_number,d_filename,d_mimetype) 00211 values (%d,%s,%d,'%s','%s')", 00212 $this->ag_id, 00213 $this->d_lob, @@ -220,7 +220,7 @@ 00257 $this->d_mimetype=$_FILES['file_upload']['type']; 00258 // now we have to update the col. 00259 // We retrieve the row to remove a possible existing lob (replace) -00260 $sql="select d_lob from document where d_id=".$this->d_id; +00260 $sql="select d_lob from document where d_id=".$this->d_id; 00261 $ret=ExecSql($this->db,$sql); 00262 00263 if (pg_num_rows($ret) != 0) @@ -232,7 +232,7 @@ 00269 if (strlen($old_oid) != 0) { pg_lo_unlink ($this->db,$old_oid);} 00270 } 00271 // Update the table -00272 $sql=sprintf("update document set d_lob=%s,d_filename='%s',d_mimetype='%s' where d_id=%d", +00272 $sql=sprintf("update document set d_lob=%s,d_filename='%s',d_mimetype='%s' where d_id=%d", 00273 $this->d_lob,$this->d_filename,$this->d_mimetype,$this->d_id); 00274 ExecSql($this->db,$sql); 00275 Commit($this->db); @@ -335,34 +335,34 @@ 00409 */ 00410 case 'CUST_NAME': 00411 $tiers=new fiche($this->db); -00412 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00412 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; 00413 $tiers->getByQcode($qcode,false); 00414 $r=$tiers->strAttribut(ATTR_DEF_NAME); 00415 break; 00416 case 'CUST_ADDR_1': 00417 $tiers=new fiche($this->db); -00418 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00418 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; 00419 $tiers->getByQcode($qcode,false); 00420 $r=$tiers->strAttribut(ATTR_DEF_ADRESS); 00421 00422 break ; 00423 case 'CUST_CP': 00424 $tiers=new fiche($this->db); -00425 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00425 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; 00426 $tiers->getByQcode($qcode,false); 00427 $r=$tiers->strAttribut(ATTR_DEF_CP); 00428 00429 break; 00430 case 'CUST_CO': 00431 $tiers=new fiche($this->db); -00432 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00432 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; 00433 $tiers->getByQcode($qcode,false); 00434 $r=$tiers->strAttribut(ATTR_DEF_PAYS); 00435 00436 break; 00437 case 'CUST_VAT': 00438 $tiers=new fiche($this->db); -00439 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; +00439 $qcode=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:$_REQUEST['e_client']; 00440 $tiers->getByQcode($qcode,false); 00441 $r=$tiers->strAttribut(ATTR_DEF_NUMTVA); 00442 break; @@ -504,13 +504,13 @@ 00587 } 00591 function remove() 00592 { -00593 $sql='delete from document where d_id='.$this->d_id; +00593 $sql='delete from document where d_id='.$this->d_id; 00594 ExecSql($this->db,$sql); 00595 } 00602 function MoveDocumentPj($p_internal) 00603 { 00604 -00605 $sql=sprintf("update jrn set jr_pj=%s,jr_pj_name='%s',jr_pj_type='%s' where jr_internal='%s'", +00605 $sql=sprintf("update jrn set jr_pj=%s,jr_pj_name='%s',jr_pj_type='%s' where jr_internal='%s'", 00606 $this->d_lob,$this->d_filename,$this->d_mimetype,$p_internal); 00607 ExecSql($this->db,$sql); 00608 // clean the table document @@ -519,7 +519,7 @@ 00611 00612 00613 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document_8php.html b/doc/developper/html/class__document_8php.html index 40b294f46..28bbd878d 100644 --- a/doc/developper/html/class__document_8php.html +++ b/doc/developper/html/class__document_8php.html @@ -23,7 +23,7 @@ Class Document corresponds to the ta

    -Definition in file class_document.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_document.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document__modele_8php-source.html b/doc/developper/html/class__document__modele_8php-source.html index 94f055ce5..3e55c4dde 100644 --- a/doc/developper/html/class__document__modele_8php-source.html +++ b/doc/developper/html/class__document__modele_8php-source.html @@ -42,7 +42,7 @@ 00040 } 00041 00049 function myList() { -00050 $sql="select md_id,md_name,dt_value from document_modele join document_type on(dt_id=md_type)"; +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); 00053 if ( pg_NumRows($Res) == 0 ) return ""; @@ -96,7 +96,7 @@ 00117 // insert into the table document_modele 00118 $this->name=FormatString($this->md_name); 00119 $this->md_id=NextSequence($this->cn,'document_modele_md_id_seq'); -00120 $sql=sprintf("insert into document_modele(md_id,md_name,md_type) +00120 $sql=sprintf("insert into document_modele(md_id,md_name,md_type) 00121 values (%d,'%s',%d)", 00122 $this->md_id,$this->name,$this->md_type); 00123 $Ret=ExecSql($this->cn,$sql); @@ -106,7 +106,7 @@ 00127 // request a number change 00128 if ( $this->start != 0 && isNumber($this->start) == 1 ) 00129 { -00130 $sql="alter sequence seq_doc_type_".$this->md_type." start with ".$this->start; +00130 $sql="alter sequence seq_doc_type_".$this->md_type." start with ".$this->start; 00131 ExecSql($this->cn,$sql); 00132 } 00133 @@ -154,7 +154,7 @@ 00179 { 00180 StartSql($this->cn); 00181 // first we unlink the document -00182 $sql="select md_lob from document_modele where md_id=".$this->md_id; +00182 $sql="select md_lob from document_modele where md_id=".$this->md_id; 00183 $res=ExecSql($this->cn,$sql); 00184 $r=pg_fetch_array($res,0); 00185 // if a lob is found @@ -164,8 +164,8 @@ 00189 pg_lo_unlink($r['md_lob']); 00190 } 00191 // now we can delete the row -00192 $sql="delete from document_modele where md_id =".$this->md_id; -00193 $sql=ExecSql($this->cn,$sql); +00192 $sql="delete from document_modele where md_id =".$this->md_id; +00193 $sql=ExecSql($this->cn,$sql); 00194 Commit($this->cn); 00195 } 00196 @@ -241,7 +241,7 @@ 00281 00282 } 00283 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document__modele_8php.html b/doc/developper/html/class__document__modele_8php.html index f18c3dae2..0d21647f9 100644 --- a/doc/developper/html/class__document__modele_8php.html +++ b/doc/developper/html/class__document__modele_8php.html @@ -23,7 +23,7 @@ Class for the document template.

    -Definition in file class_document_modele.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_document_modele.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document__type_8php-source.html b/doc/developper/html/class__document__type_8php-source.html index d2ede66c8..702c52019 100644 --- a/doc/developper/html/class__document__type_8php-source.html +++ b/doc/developper/html/class__document__type_8php-source.html @@ -36,7 +36,7 @@ 00039 } 00043 function get() 00044 { -00045 $sql="select * from document_type where dt_id=".$this->dt_id; +00045 $sql="select * from document_type where dt_id=".$this->dt_id; 00046 $R=ExecSql($this->db,$sql); 00047 $r=pg_fetch_array($R,0); 00048 $this->dt_id=$r['dt_id']; @@ -44,7 +44,7 @@ 00050 } 00051 00052 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__document__type_8php.html b/doc/developper/html/class__document__type_8php.html index 29d65ef90..f800d1718 100644 --- a/doc/developper/html/class__document__type_8php.html +++ b/doc/developper/html/class__document__type_8php.html @@ -22,7 +22,7 @@ class for the table document_type

    -Definition in file class_document_type.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_document_type.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__fiche_8php-source.html b/doc/developper/html/class__fiche_8php-source.html index 5351b914e..fd6e7c7f9 100644 --- a/doc/developper/html/class__fiche_8php-source.html +++ b/doc/developper/html/class__fiche_8php-source.html @@ -43,7 +43,7 @@ 00042 } 00043 00051 function GetAttribut() { -00052 $sql="select * from jnt_fic_attr ". +00052 $sql="select * from jnt_fic_attr ". 00053 " natural join attr_def where fd_id=".$this->id. 00054 " order by ad_id"; 00055 @@ -63,7 +63,7 @@ 00074 function Get() { 00075 if ( $this->id == 0 ) 00076 return 0; -00077 $sql="select * from fiche_def ". +00077 $sql="select * from fiche_def ". 00078 " where fd_id=".$this->id; 00079 $Ret=ExecSql($this->cn,$sql); 00080 if ( ($Max=pg_NumRows($Ret)) == 0 ) @@ -75,7 +75,7 @@ 00086 $this->create_account=$row['fd_create_account']; 00087 } 00094 function GetAll() { -00095 $sql="select * from fiche_def "; +00095 $sql="select * from fiche_def "; 00096 00097 $Ret=ExecSql($this->cn,$sql); 00098 if ( ($Max=pg_NumRows($Ret)) == 0 ) @@ -120,7 +120,7 @@ 00167 function GetByQCode($p_qcode,$p_all=true) 00168 { 00169 $p_qcode=FormatString($p_qcode); -00170 $sql="select f_id from jnt_fic_att_value join attr_value +00170 $sql="select f_id from jnt_fic_att_value join attr_value 00171 using (jft_id) where ad_id=23 and av_text='".$p_qcode."'"; 00172 $Res=ExecSql($this->cn,$sql); 00173 $r=pg_fetch_all($Res); @@ -137,7 +137,7 @@ 00189 if ( $this->id == 0){ 00190 return; 00191 } -00192 $sql="select * +00192 $sql="select * 00193 from jnt_fic_att_value 00194 natural join fiche 00195 natural join attr_value @@ -193,7 +193,7 @@ 00250 00251 00258 function GetByType($p_fd_id) { -00259 $sql="select * +00259 $sql="select * 00260 from 00261 fiche 00262 where fd_id=".$p_fd_id; @@ -214,14 +214,14 @@ 00277 return $all; 00278 } 00289 function CountByDef($p_frd_id,$p_search="",$p_sql="") { -00290 $sql="select * +00290 $sql="select * 00291 from 00292 fiche join fiche_Def using (fd_id) 00293 where frd_id=".$p_frd_id; 00294 if ( $p_search != "" ) 00295 { 00296 $a=FormatString($p_search); -00297 $sql="select * from vw_fiche_attr where frd_id=".$p_frd_id. +00297 $sql="select * from vw_fiche_attr where frd_id=".$p_frd_id. 00298 " and vw_name ~* '$p_search'"; 00299 } 00300 @@ -232,7 +232,7 @@ 00315 function GetByDef($p_frd_id,$p_offset=-1,$p_search="") { 00316 if ( $p_offset == -1 ) 00317 { -00318 $sql="select * +00318 $sql="select * 00319 from 00320 fiche join fiche_Def using (fd_id) 00321 where frd_id=".$p_frd_id." $p_search order by f_id"; @@ -240,7 +240,7 @@ 00323 else 00324 { 00325 $limit=$_SESSION['g_pagesize']; -00326 $sql="select * +00326 $sql="select * 00327 from 00328 fiche join fiche_Def using (fd_id) 00329 where frd_id=".$p_frd_id." $p_search order by f_id @@ -276,7 +276,7 @@ 00367 { 00368 if ($this->id==0) return '- ERROR -'; 00369 // object is not in memory we need to look into the database -00370 $sql="select av_text from attr_value join jnt_fic_att_value using(jft_id) +00370 $sql="select av_text from attr_value join jnt_fic_att_value using(jft_id) 00371 where f_id=".$this->id." and ad_id=".$p_ad_id; 00372 $Res=ExecSql($this->cn,$sql); 00373 $row=pg_fetch_all($Res); @@ -308,7 +308,7 @@ 00408 $r.=JS_SEARCH_POSTE; 00409 $w=new widget("js_search_poste"); 00410 // account created automatically -00411 $sql="select account_auto($p_fiche_def)"; +00411 $sql="select account_auto($p_fiche_def)"; 00412 echo_debug("class_fiche",__LINE__,$sql); 00413 $ret_sql=ExecSql($this->cn,$sql); 00414 $a=pg_fetch_array($ret_sql,0); @@ -362,7 +362,7 @@ 00471 $ret.=JS_SEARCH_POSTE; 00472 $w=new widget("js_search_poste"); 00473 // account created automatically -00474 $sql="select account_auto($this->fiche_def)"; +00474 $sql="select account_auto($this->fiche_def)"; 00475 echo_debug("class_fiche",__LINE__,$sql); 00476 $ret_sql=ExecSql($this->cn,$sql); 00477 $a=pg_fetch_array($ret_sql,0); @@ -415,7 +415,7 @@ 00536 $this->id=$fiche_id; 00537 // first we create the card 00538 StartSql($this->cn); -00539 $sql=sprintf("insert into fiche(f_id,fd_id)". +00539 $sql=sprintf("insert into fiche(f_id,fd_id)". 00540 " values (%d,%d)", 00541 $fiche_id,$p_fiche_def); 00542 $Ret=ExecSql($this->cn,$sql); @@ -432,7 +432,7 @@ 00553 if ( $id == ATTR_DEF_QUICKCODE) 00554 { 00555 echo_debug("Modify ATTR_DEF_QUICKCODE"); -00556 $sql=sprintf("select insert_quick_code(%d,'%s')", +00556 $sql=sprintf("select insert_quick_code(%d,'%s')", 00557 $fiche_id,FormatString($value)); 00558 ExecSql($this->cn,$sql); 00559 continue; @@ -452,13 +452,13 @@ 00573 $v=FormatString($value); 00574 if ( isNumber($v) == 1 ) 00575 { -00576 $sql=sprintf("select account_insert(%d,%d)", +00576 $sql=sprintf("select account_insert(%d,%d)", 00577 $this->id,$v); 00578 $Ret=ExecSql($this->cn,$sql); 00579 } 00580 if ( strlen(trim($v))==0 ) 00581 { -00582 $sql=sprintf("select account_insert(%d,null)", +00582 $sql=sprintf("select account_insert(%d,null)", 00583 $this->id); 00584 $Ret=ExecSql($this->cn,$sql); 00585 } @@ -494,7 +494,7 @@ 00615 // Normal traitement 00616 $value2=FormatString($value); 00617 -00618 $sql=sprintf("select attribut_insert(%d,%d,'%s')", +00618 $sql=sprintf("select attribut_insert(%d,%d,'%s')", 00619 $fiche_id,$id,$value2); 00620 ExecSql($this->cn,$sql); 00621 } @@ -517,7 +517,7 @@ 00641 echo_debug("class_fiche",__LINE__,"modify $id"); 00642 00643 // retrieve jft_id to update table attr_value -00644 $sql=" select jft_id from jnt_fic_att_value where ad_id=$id and f_id=$this->id"; +00644 $sql=" select jft_id from jnt_fic_att_value where ad_id=$id and f_id=$this->id"; 00645 $Ret=ExecSql($this->cn,$sql); 00646 if ( pg_NumRows($Ret) != 1 ) { 00647 echo_error ("class_fiche ".__LINE__." INVALID ID !!! "); @@ -531,7 +531,7 @@ 00655 if ( $id == ATTR_DEF_QUICKCODE) 00656 { 00657 echo_debug("Modify ATTR_DEF_QUICKCODE"); -00658 $sql=sprintf("select update_quick_code(%d,'%s')", +00658 $sql=sprintf("select update_quick_code(%d,'%s')", 00659 $jft_id,FormatString($value)); 00660 ExecSql($this->cn,$sql); 00661 continue; @@ -551,13 +551,13 @@ 00675 $v=FormatString($value); 00676 if ( isNumber($v) == 1 ) 00677 { -00678 $sql=sprintf("select account_update(%d,%d)", +00678 $sql=sprintf("select account_update(%d,%d)", 00679 $this->id,$v); 00680 $Ret=ExecSql($this->cn,$sql); 00681 } 00682 if ( strlen (trim($v)) == 0 ) 00683 { -00684 $sql=sprintf("select account_update(%d,null)", +00684 $sql=sprintf("select account_update(%d,null)", 00685 $this->id); 00686 $Ret=ExecSql($this->cn,$sql); 00687 continue; @@ -593,7 +593,7 @@ 00717 00718 // Normal traitement 00719 $value2=FormatString($value); -00720 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", +00720 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", 00721 $value2,$jft_id); 00722 ExecSql($this->cn,$sql); 00723 } @@ -604,7 +604,7 @@ 00730 { 00731 if ( $this->id==0 ) return; 00732 // verify if that card has not been used is a ledger -00733 $sql="select fiche_used(".$this->id.") as result"; +00733 $sql="select fiche_used(".$this->id.") as result"; 00734 $Res=ExecSql($this->cn,$sql); 00735 00736 // fetch the result @@ -612,7 +612,7 @@ 00738 00739 if ( $result == 0 ) 00740 { -00741 $sql="select fiche_delete (".$this->id.")"; +00741 $sql="select fiche_delete (".$this->id.")"; 00742 $Res=ExecSql($this->cn,$sql); 00743 return 0; 00744 } @@ -620,7 +620,7 @@ 00746 } 00749 function getName() 00750 { -00751 $sql="select av_text from jnt_fic_att_value join attr_value +00751 $sql="select av_text from jnt_fic_att_value join attr_value 00752 using (jft_id) where ad_id=1 and f_id=".$this->id; 00753 $Res=ExecSql($this->cn,$sql); 00754 $r=pg_fetch_all($Res); @@ -639,7 +639,7 @@ 00774 } 00775 } 00776 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__fiche_8php.html b/doc/developper/html/class__fiche_8php.html index 4de283f43..94e7e4f12 100644 --- a/doc/developper/html/class__fiche_8php.html +++ b/doc/developper/html/class__fiche_8php.html @@ -26,7 +26,7 @@ define Class fiche and fiche def, those class are using class attribut

    -Definition in file class_fiche.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_fiche.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__fiche__def_8php-source.html b/doc/developper/html/class__fiche__def_8php-source.html index 2dcf9c13b..53318eeda 100644 --- a/doc/developper/html/class__fiche__def_8php-source.html +++ b/doc/developper/html/class__fiche__def_8php-source.html @@ -43,7 +43,7 @@ 00043 } 00051 function LoadAll() 00052 { -00053 $sql="select * from fiche_def_ref order by frd_id"; +00053 $sql="select * from fiche_def_ref order by frd_id"; 00054 $Res=ExecSql($this->db,$sql); 00055 $all=pg_fetch_all($Res); 00056 if ( $Res == false ) return array(); @@ -85,14 +85,14 @@ 00108 } 00117 function Save() 00118 { -00119 $sql="update fiche_def_ref set frd_text='". +00119 $sql="update fiche_def_ref set frd_text='". 00120 $this->frd_text."' , frd_class_base='".$this->frd_class_base."'". 00121 " where frd_id=".$this->frd_id; 00122 $Res=ExecSql($this->db,$sql); 00123 } 00131 function Get() 00132 { -00133 $sql="select * from fiche_def_ref ". +00133 $sql="select * from fiche_def_ref ". 00134 " where frd_id=".$this->frd_id; 00135 $Res=ExecSql($this->db,$sql); 00136 if ( pg_NumRows($Res) == 0 ) return null; @@ -103,7 +103,7 @@ 00141 00142 } 00143 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__fiche__def_8php.html b/doc/developper/html/class__fiche__def_8php.html index c5ccc94f6..201aeac9d 100644 --- a/doc/developper/html/class__fiche__def_8php.html +++ b/doc/developper/html/class__fiche__def_8php.html @@ -23,7 +23,7 @@

    -Definition in file class_fiche_def.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_fiche_def.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__jrn_8php-source.html b/doc/developper/html/class__jrn_8php-source.html index 530b3822c..0b4f717de 100644 --- a/doc/developper/html/class__jrn_8php-source.html +++ b/doc/developper/html/class__jrn_8php-source.html @@ -233,7 +233,7 @@ 00259 if ($cent=='off') 00260 {// Non centralisé 00261 //--- -00262 $sql=" +00262 $sql=" 00263 SELECT jrn.jr_id as jr_id , 00264 jrn.jr_id as num , 00265 jrn.jr_def_id as jr_def_id, @@ -255,7 +255,7 @@ 00281 //Centralisé 00282 //--- 00283 $id=($this->id == 0 ) ?"jr_c_opid as num":"jr_opid as num"; -00284 $sql=" +00284 $sql=" 00285 SELECT jrn.jr_id as jr_id , 00286 $id , 00287 jrn.jr_def_id as jr_def_id, @@ -289,7 +289,7 @@ 00321 function GetDefLine($p_cred) 00322 { 00323 $sql_cred=($p_cred=='cred')?'jrn_cred_max_line':'jrn_deb_max_line'; -00324 $sql="select $sql_cred as value from jrn_def where jrn_def_id=".$this->id; +00324 $sql="select $sql_cred as value from jrn_def where jrn_def_id=".$this->id; 00325 $r=ExecSql($this->db,$sql); 00326 $Res=pg_fetch_all($r); 00327 echo_debug('class_jrn',__LINE__,$Res); @@ -297,7 +297,7 @@ 00329 return $Res[0]['value']; 00330 } 00331 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__jrn_8php.html b/doc/developper/html/class__jrn_8php.html index 0e000bb22..538ff3e32 100644 --- a/doc/developper/html/class__jrn_8php.html +++ b/doc/developper/html/class__jrn_8php.html @@ -16,7 +16,7 @@  Class for jrn. More...
    -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__own_8php-source.html b/doc/developper/html/class__own_8php-source.html index aa1454e63..b4da77145 100644 --- a/doc/developper/html/class__own_8php-source.html +++ b/doc/developper/html/class__own_8php-source.html @@ -58,7 +58,7 @@ 00070 } 00071 00072 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__own_8php.html b/doc/developper/html/class__own_8php.html index 937742864..315471b95 100644 --- a/doc/developper/html/class__own_8php.html +++ b/doc/developper/html/class__own_8php.html @@ -23,7 +23,7 @@ Class to manage the company parameter (address, name...).

    -Definition in file class_own.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_own.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__parm__code_8php-source.html b/doc/developper/html/class__parm__code_8php-source.html index 485e67132..c5fa5f754 100644 --- a/doc/developper/html/class__parm__code_8php-source.html +++ b/doc/developper/html/class__parm__code_8php-source.html @@ -41,7 +41,7 @@ 00041 $this->Get(); 00042 } 00052 function LoadAll() { -00053 $sql="select * from parm_code order by p_code"; +00053 $sql="select * from parm_code order by p_code"; 00054 $Res=ExecSql($this->db,$sql); 00055 $r= pg_fetch_all($Res); 00056 $idx=0; @@ -64,7 +64,7 @@ 00080 $this->p_comment=FormatString($this->p_comment); 00081 $this->p_value=FormatString($this->p_value); 00082 $this->p_code=FormatString($this->p_code); -00083 $sql="update parm_code set ". +00083 $sql="update parm_code set ". 00084 "p_comment='".$this->p_comment."' ". 00085 ",p_value='".$this->p_value."' ". 00086 "where p_code='".$this->p_code."'"; @@ -102,7 +102,7 @@ 00132 00141 function Get() { 00142 if ( $this->p_code == -1 ) return "p_code non initialisé"; -00143 $sql=sprintf("select * from parm_code where p_code='%s' ", +00143 $sql=sprintf("select * from parm_code where p_code='%s' ", 00144 $this->p_code); 00145 $Res=ExecSql($this->db,$sql); 00146 @@ -114,7 +114,7 @@ 00152 } 00153 00154 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__parm__code_8php.html b/doc/developper/html/class__parm__code_8php.html index f029e0d3f..47eee41da 100644 --- a/doc/developper/html/class__parm__code_8php.html +++ b/doc/developper/html/class__parm__code_8php.html @@ -23,7 +23,7 @@ Manage the table parm_code which c

    -Definition in file class_parm_code.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_parm_code.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__poste_8php-source.html b/doc/developper/html/class__poste_8php-source.html index 1a898b09c..e9368ec07 100644 --- a/doc/developper/html/class__poste_8php-source.html +++ b/doc/developper/html/class__poste_8php-source.html @@ -116,7 +116,7 @@ 00138 'solde'=>abs($r['sum_deb']-$r['sum_cred'])); 00139 } 00140 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__poste_8php.html b/doc/developper/html/class__poste_8php.html index 545637639..679d53d85 100644 --- a/doc/developper/html/class__poste_8php.html +++ b/doc/developper/html/class__poste_8php.html @@ -23,7 +23,7 @@ Manage the account.

    -Definition in file class_poste.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_poste.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__rapport_8php-source.html b/doc/developper/html/class__rapport_8php-source.html index 0e5fba1d4..8f25b1288 100644 --- a/doc/developper/html/class__rapport_8php-source.html +++ b/doc/developper/html/class__rapport_8php-source.html @@ -72,7 +72,7 @@ 00079 } 00080 } 00081 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__rapport_8php.html b/doc/developper/html/class__rapport_8php.html index 490ca1693..46118dde9 100644 --- a/doc/developper/html/class__rapport_8php.html +++ b/doc/developper/html/class__rapport_8php.html @@ -23,7 +23,7 @@ Create, view, modify and parse report.

    -Definition in file class_rapport.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_rapport.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__user_8php-source.html b/doc/developper/html/class__user_8php-source.html index a5a738b67..14e8dcd78 100644 --- a/doc/developper/html/class__user_8php-source.html +++ b/doc/developper/html/class__user_8php-source.html @@ -84,7 +84,7 @@ 00090 if ( $this->valid == 1 ) { return; } 00091 $cn=DbConnect(); 00092 if ( $cn != false ) { -00093 $sql="select ac_users.use_login,ac_users.use_active, ac_users.use_pass, +00093 $sql="select ac_users.use_login,ac_users.use_active, ac_users.use_pass, 00094 use_admin,use_first_name,use_name 00095 from ac_users 00096 where ac_users.use_login='$this->id' @@ -133,7 +133,7 @@ 00145 00146 if ( $this->id != 'phpcompta') { 00147 $pass5=md5($this->pass); -00148 $sql="select use_id from ac_users where use_login='$this->id' +00148 $sql="select use_id from ac_users where use_login='$this->id' 00149 and use_active=1 and use_admin=1 and use_pass='$pass5'"; 00150 00151 $cn=DbConnect(); @@ -146,7 +146,7 @@ 00158 function AccessJrn($p_cn,$p_jrn_id) { 00159 $this->Admin(); 00160 if ( $this->admin==1) return true; -00161 $sql=CountSql($p_cn,"select uj_id +00161 $sql=CountSql($p_cn,"select uj_id 00162 from user_sec_jrn 00163 where 00164 uj_priv in ('R','W') @@ -157,7 +157,7 @@ 00169 00170 } 00178 function SetPeriode($p_periode) { -00179 $sql="update user_local_pref set parameter_value='$p_periode' where user_id='$this->id' and parameter_type='PERIODE'"; +00179 $sql="update user_local_pref set parameter_value='$p_periode' where user_id='$this->id' and parameter_type='PERIODE'"; 00180 $Res=ExecSql($this->db,$sql); 00181 } 00192 function GetPeriode() { @@ -167,11 +167,11 @@ 00204 function GetPreferences () 00205 { 00206 // si preference n'existe pas, les créer -00207 $sql="select parameter_type,parameter_value from user_local_pref where user_id='".$this->id."'"; +00207 $sql="select parameter_type,parameter_value from user_local_pref where user_id='".$this->id."'"; 00208 $Res=ExecSql($this->db,$sql); 00209 if (pg_NumRows($Res) == 0 ) { 00210 // default periode -00211 $sql=sprintf("insert into user_local_pref (user_id,parameter_value,parameter_type) +00211 $sql=sprintf("insert into user_local_pref (user_id,parameter_value,parameter_type) 00212 select '%s',min(p_id),'PERIODE' from parm_periode where p_closed=false", 00213 $this->id); 00214 $Res=ExecSql($this->db,$sql); @@ -269,7 +269,7 @@ 00342 }//end function 00343 } 00344 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__user_8php.html b/doc/developper/html/class__user_8php.html index f7013d75f..dd5b779bb 100644 --- a/doc/developper/html/class__user_8php.html +++ b/doc/developper/html/class__user_8php.html @@ -23,7 +23,7 @@ Data & function about connected users.

    -Definition in file class_user.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_user.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__widget_8php-source.html b/doc/developper/html/class__widget_8php-source.html index dcb4abb11..df8935296 100644 --- a/doc/developper/html/class__widget_8php-source.html +++ b/doc/developper/html/class__widget_8php-source.html @@ -170,195 +170,196 @@ 00194 //textarea 00195 if (strtoupper($this->type)=="TEXTAREA") { 00196 if ( $this->readonly == false ) { -00197 $r.='<TEXTAREA name="'.$this->name.'"'; -00198 $r.=" rows=\"$this->heigh\" "; -00199 $r.=" cols=\"$this->width\" "; -00200 $r.=' '.$disabled.'>'; -00201 $r.=$this->value; -00202 -00203 $r.="</TEXTAREA>"; -00204 } else { -00205 $r='<p>'; -00206 $r.=$this->value; -00207 $r.=sprintf('<input type="hidden" name="%s" value="%s">', -00208 $this->name,urlencode($this->value)); -00209 $r.='</p>'; -00210 -00211 } -00212 if ($this->table==1) { -00213 $r="<TD> $this->label </TD><TD> $r </TD>"; -00214 } -00215 return $r; -00216 } -00217 -00218 //file -00219 if (strtoupper($this->type)=="FILE") { -00220 if ( $this->readonly == false ) { -00221 $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">'; -00222 -00223 } -00224 if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; -00225 return $r; -00226 } -00227 // input type == js_search_poste => button search for the account -00228 if ( strtolower($this->type)=="js_search_poste") { -00229 -00230 $l_sessid=$_REQUEST['PHPSESSID']; -00231 if ( $this->readonly == false ) { -00232 // Do we need to filter ?? -00233 if ( $this->extra2 == null ) { -00234 $r=sprintf('<TD> -00235 <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search"> -00236 %s</TD><TD> -00237 -00238 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00239 </TD>', -00240 $l_sessid, -00241 $this->name, -00242 $this->extra, -00243 $this->label, -00244 $this->name, -00245 $this->value -00246 ); -00247 -00248 } else { // $p_list is not null, so we have a filter -00249 $r=sprintf('<TD> -00250 <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> -00251 %s</TD><TD> -00252 -00253 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00254 </TD>', -00255 $l_sessid, -00256 $this->name, -00257 $this->extra2, -00258 $this->extra, -00259 $this->label, -00260 $this->name, -00261 $this->value -00262 ); -00263 -00264 } //else -00265 } else { -00266 $r=sprintf('<TD><input type="hidden" name="%s" value="%s"> -00267 %s -00268 -00269 </TD>', -00270 $this->name, -00271 $this->value , -00272 $this->value -00273 ); -00274 -00275 } //else if readonly == true -00276 return $r; -00277 -00278 } // end js_search_poste -00279 -00280 // input type == js_search => button search for card -00281 if ( strtolower($this->type)=="js_search") { -00282 $l_sessid=$_REQUEST['PHPSESSID']; -00283 if ( $this->readonly == false ) { -00284 $r=sprintf('<TD> -00285 <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New"> -00286 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> -00287 %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> -00288 ', -00289 $l_sessid, -00290 $this->extra, // deb or cred -00291 $this->name, -00292 $this->extra2, //jrn -00293 $l_sessid, -00294 $this->extra, -00295 $this->name, -00296 $this->extra2, -00297 $this->label, -00298 $this->name, -00299 $this->value, -00300 $this->tabindex -00301 ); -00302 } else { -00303 // readonly == true -00304 $r=sprintf('<TD> %s</TD> -00305 <TD> -00306 <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8"> -00307 </TD>', -00308 $this->label, -00309 $this->name, -00310 $this->value -00311 ); -00312 -00313 } -00314 return $r; -00315 }// poste==js_search -00316 +00197 $r=""; +00198 $r.='<TEXTAREA name="'.$this->name.'"'; +00199 $r.=" rows=\"$this->heigh\" "; +00200 $r.=" cols=\"$this->width\" "; +00201 $r.=' '.$disabled.'>'; +00202 $r.=$this->value; +00203 +00204 $r.="</TEXTAREA>"; +00205 } else { +00206 $r='<p>'; +00207 $r.=$this->value; +00208 $r.=sprintf('<input type="hidden" name="%s" value="%s">', +00209 $this->name,urlencode($this->value)); +00210 $r.='</p>'; +00211 +00212 } +00213 if ($this->table==1) { +00214 $r="<TD> $this->label </TD><TD> $r </TD>"; +00215 } +00216 return $r; +00217 } +00218 +00219 //file +00220 if (strtoupper($this->type)=="FILE") { +00221 if ( $this->readonly == false ) { +00222 $r='<INPUT TYPE="file" name="'.$this->name.'" VALUE="'.$this->value.'">'; +00223 +00224 } +00225 if ( $this->table==1) $r="<TD>$this->label</TD><TD>$r</TD>"; +00226 return $r; +00227 } +00228 // input type == js_search_poste => button search for the account +00229 if ( strtolower($this->type)=="js_search_poste") { +00230 +00231 $l_sessid=$_REQUEST['PHPSESSID']; +00232 if ( $this->readonly == false ) { +00233 // Do we need to filter ?? +00234 if ( $this->extra2 == null ) { +00235 $r=sprintf('<TD> +00236 <INPUT TYPE="button" onClick=SearchPoste(\'%s\',\'%s\',\'%s\') value="Search"> +00237 %s</TD><TD> +00238 +00239 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00240 </TD>', +00241 $l_sessid, +00242 $this->name, +00243 $this->extra, +00244 $this->label, +00245 $this->name, +00246 $this->value +00247 ); +00248 +00249 } else { // $p_list is not null, so we have a filter +00250 $r=sprintf('<TD> +00251 <INPUT TYPE="button" onClick=SearchPosteFilter(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00252 %s</TD><TD> +00253 +00254 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00255 </TD>', +00256 $l_sessid, +00257 $this->name, +00258 $this->extra2, +00259 $this->extra, +00260 $this->label, +00261 $this->name, +00262 $this->value +00263 ); +00264 +00265 } //else +00266 } else { +00267 $r=sprintf('<TD><input type="hidden" name="%s" value="%s"> +00268 %s +00269 +00270 </TD>', +00271 $this->name, +00272 $this->value , +00273 $this->value +00274 ); +00275 +00276 } //else if readonly == true +00277 return $r; +00278 +00279 } // end js_search_poste +00280 +00281 // input type == js_search => button search for card +00282 if ( strtolower($this->type)=="js_search") { +00283 $l_sessid=$_REQUEST['PHPSESSID']; +00284 if ( $this->readonly == false ) { +00285 $r=sprintf('<TD> +00286 <INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New"> +00287 <INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search"> +00288 %s</TD><TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> +00289 ', +00290 $l_sessid, +00291 $this->extra, // deb or cred +00292 $this->name, +00293 $this->extra2, //jrn +00294 $l_sessid, +00295 $this->extra, +00296 $this->name, +00297 $this->extra2, +00298 $this->label, +00299 $this->name, +00300 $this->value, +00301 $this->tabindex +00302 ); +00303 } else { +00304 // readonly == true +00305 $r=sprintf('<TD> %s</TD> +00306 <TD> +00307 <INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8"> +00308 </TD>', +00309 $this->label, +00310 $this->name, +00311 $this->value +00312 ); +00313 +00314 } +00315 return $r; +00316 }// poste==js_search 00317 -00318 // type=span -00319 if ( strtolower($this->type)=="span") { -00320 $r=sprintf('<span id="%s" >%s</span>', -00321 $this->name, -00322 $this->value); -00323 return $r; -00324 }// end type = span -00325 -00326 // input type == js_tva -00327 if ( strtolower($this->type)=="js_tva") { -00328 $id=sprintf("<span id=%s></span>",$this->label); -00329 $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', -00330 $id, -00331 $this->name, -00332 $this->value, -00333 $this->label, -00334 $this->name); -00335 $l_sessid=$_REQUEST['PHPSESSID']; -00336 $r.=sprintf("<input type=\"button\" value=\"Tva\" -00337 onClick=\" -00338 ShowTva('%s','%s');\"></TD>", -00339 $l_sessid,$this->name); -00340 return $r; -00341 } -00342 -00343 // input type == js_concerned => button search for the concerned operations -00344 if ( strtolower($this->type)=="js_concerned") { -00345 if ( $this->readonly == false) { -00346 $l_sessid=$_REQUEST['PHPSESSID']; -00347 $r=sprintf('<TD> -00348 <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search"> -00349 %s</TD><TD> -00350 -00351 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> -00352 </TD>', -00353 $l_sessid, -00354 $this->name, -00355 $this->label, -00356 $this->name, -00357 $this->value -00358 ); -00359 } else { -00360 $r=sprintf("<TD><span>%s</span>",$this->value); -00361 $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value); -00362 } -00363 -00364 return $r; -00365 }// end js_concerned -00366 return "INVALID WIDGET "; -00367 } //end function -00368 /* Debug -00369 */ -00370 function debug() { -00371 echo "Type ".$this->type."<br>"; -00372 echo "name ".$this->name."<br>"; -00373 echo "value". $this->value."<br>"; -00374 $readonly=($this->readonly==false)?"false":"true"; -00375 echo "read only".$readonly."<br>"; -00376 } -00377 function Submit ($p_name,$p_value) { -00378 return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">'; -00379 } -00380 function Reset ($p_value) { -00381 return '<INPUT TYPE="SUBMIT" VALUE="'.$p_value.'">'; -00382 } -00383 -00384 } -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00318 +00319 // type=span +00320 if ( strtolower($this->type)=="span") { +00321 $r=sprintf('<span id="%s" >%s</span>', +00322 $this->name, +00323 $this->value); +00324 return $r; +00325 }// end type = span +00326 +00327 // input type == js_tva +00328 if ( strtolower($this->type)=="js_tva") { +00329 $id=sprintf("<span id=%s></span>",$this->label); +00330 $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', +00331 $id, +00332 $this->name, +00333 $this->value, +00334 $this->label, +00335 $this->name); +00336 $l_sessid=$_REQUEST['PHPSESSID']; +00337 $r.=sprintf("<input type=\"button\" value=\"Tva\" +00338 onClick=\" +00339 ShowTva('%s','%s');\"></TD>", +00340 $l_sessid,$this->name); +00341 return $r; +00342 } +00343 +00344 // input type == js_concerned => button search for the concerned operations +00345 if ( strtolower($this->type)=="js_concerned") { +00346 if ( $this->readonly == false) { +00347 $l_sessid=$_REQUEST['PHPSESSID']; +00348 $r=sprintf('<TD> +00349 <INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search"> +00350 %s</TD><TD> +00351 +00352 <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> +00353 </TD>', +00354 $l_sessid, +00355 $this->name, +00356 $this->label, +00357 $this->name, +00358 $this->value +00359 ); +00360 } else { +00361 $r=sprintf("<TD><span>%s</span>",$this->value); +00362 $r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value); +00363 } +00364 +00365 return $r; +00366 }// end js_concerned +00367 return "INVALID WIDGET "; +00368 } //end function +00369 /* Debug +00370 */ +00371 function debug() { +00372 echo "Type ".$this->type."<br>"; +00373 echo "name ".$this->name."<br>"; +00374 echo "value". $this->value."<br>"; +00375 $readonly=($this->readonly==false)?"false":"true"; +00376 echo "read only".$readonly."<br>"; +00377 } +00378 function Submit ($p_name,$p_value) { +00379 return '<INPUT TYPE="SUBMIT" NAME="'.$p_name.'" VALUE="'.$p_value.'">'; +00380 } +00381 function Reset ($p_value) { +00382 return '<INPUT TYPE="SUBMIT" VALUE="'.$p_value.'">'; +00383 } +00384 +00385 } +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/class__widget_8php.html b/doc/developper/html/class__widget_8php.html index 404dae3fd..4726b3359 100644 --- a/doc/developper/html/class__widget_8php.html +++ b/doc/developper/html/class__widget_8php.html @@ -23,7 +23,7 @@ This class is used to create all the HTML INPUT TYPE.

    -Definition in file class_widget.php.


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +Definition in file class_widget.php.
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classaction.html b/doc/developper/html/classaction.html index b28747704..45391f03c 100644 --- a/doc/developper/html/classaction.html +++ b/doc/developper/html/classaction.html @@ -101,7 +101,7 @@ constructor
    Parameters:

    Definition at line 75 of file class_action.php.

    -References f_id. +References f_id.


    Member Function Documentation

    @@ -224,7 +224,7 @@ myList($p_filter="")
    Parameters:

    Definition at line 329 of file class_action.php.

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

    @@ -259,7 +259,7 @@ SaveStage2

    Definition at line 241 of file class_action.php.

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

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


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classcl__user.html b/doc/developper/html/classcl__user.html index c9ff51bad..91aa50b82 100644 --- a/doc/developper/html/classcl__user.html +++ b/doc/developper/html/classcl__user.html @@ -142,7 +142,7 @@ References $_SESSION

    Definition at line 158 of file class_user.php.

    -References $sql, Admin(), and CountSql(). +References $sql, Admin(), and CountSql().

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

    Definition at line 143 of file class_user.php.

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

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

    Definition at line 85 of file class_user.php.

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

    @@ -415,7 +415,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(). @@ -507,7 +507,7 @@ Set the selected periode in the user's preferences.

    Definition at line 178 of file class_user.php.

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

    @@ -687,7 +687,7 @@ Definition at line 38


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 00:05:15 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classcontact.html b/doc/developper/html/classcontact.html index cb14c2b0b..0037ae902 100644 --- a/doc/developper/html/classcontact.html +++ b/doc/developper/html/classcontact.html @@ -114,7 +114,7 @@ Summary

    Definition at line 50 of file class_contact.php.

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


    Field Documentation

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

    Definition at line 397 of file class_fiche.php.

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

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

    Definition at line 289 of file class_fiche.php.

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

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

    Definition at line 459 of file class_fiche.php.

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

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

    Definition at line 188 of file class_fiche.php.

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

    Referenced by Get(), and GetByQCode(). @@ -445,7 +445,7 @@ Return array of card from the frd family.

    Definition at line 315 of file class_fiche.php.

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

    Referenced by GetAll(). @@ -497,7 +497,7 @@ GetByQCode($p_qcode)

    Parameters:

    Definition at line 167 of file class_fiche.php.

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

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

    Definition at line 258 of file class_fiche.php.

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

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

    Definition at line 749 of file class_fiche.php.

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

    @@ -609,7 +609,7 @@ insert a new record

    Definition at line 533 of file class_fiche.php.

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

    Referenced by Save(). @@ -644,7 +644,7 @@ remove a card

    Definition at line 729 of file class_fiche.php.

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

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

    Definition at line 364 of file class_fiche.php.

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

    @@ -819,7 +819,7 @@ update a card

    Definition at line 633 of file class_fiche.php.

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

    Referenced by Save(). @@ -952,7 +952,7 @@ Definition at line 150


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classfiche__def.html b/doc/developper/html/classfiche__def.html index 7b0366c1a..ad3f8652e 100644 --- a/doc/developper/html/classfiche__def.html +++ b/doc/developper/html/classfiche__def.html @@ -160,7 +160,7 @@ Get attribut of the fiche_def.

    Definition at line 74 of file class_fiche.php.

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

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

    Definition at line 94 of file class_fiche.php.

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

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

    Definition at line 51 of file class_fiche.php.

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

    @@ -474,7 +474,7 @@ Definition at line 33<


    The documentation for this class was generated from the following file: -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/classfiche__def__ref.html b/doc/developper/html/classfiche__def__ref.html index a9797fa93..c65844011 100644 --- a/doc/developper/html/classfiche__def__ref.html +++ b/doc/developper/html/classfiche__def__ref.html @@ -156,7 +156,7 @@ Get the data with the p_code and complete the current object.

    Definition at line 131 of file class_fiche_def.php.

    -References $r, $Res, $sql, ExecSql(), frd_class_base, and frd_text. +References $r, $Res, $sql, ExecSql(), frd_class_base, and frd_text.

    @@ -227,7 +227,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. +References $all, $array, $idx, $o, $Res, $row, $sql, ExecSql(), fiche_def_ref(), and value.

    @@ -263,7 +263,7 @@ Store data into the database: update the record.

    Definition at line 117 of file class_fiche_def.php.

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


    Field Documentation

    @@ -369,7 +369,7 @@ Definition at line class_fiche_def.php
-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classjrn.html b/doc/developper/html/classjrn.html index 603c9796e..c13217571 100644 --- a/doc/developper/html/classjrn.html +++ b/doc/developper/html/classjrn.html @@ -114,7 +114,7 @@ GetDefLine Get the number of lines of a journal
Parameters:<

Definition at line 321 of file class_jrn.php.

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

@@ -290,7 +290,7 @@ gen :

-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classposte.html b/doc/developper/html/classposte.html index 2c02cd1f2..05983147d 100644 --- a/doc/developper/html/classposte.html +++ b/doc/developper/html/classposte.html @@ -312,7 +312,7 @@ Definition at line 31<
The documentation for this class was generated from the following file:
-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classrapport.html b/doc/developper/html/classrapport.html index 932b2ba63..1cef72acc 100644 --- a/doc/developper/html/classrapport.html +++ b/doc/developper/html/classrapport.html @@ -157,7 +157,7 @@ return all the row and parse formula from a report

Definition at line 53 of file class_rapport.php.

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


Field Documentation

@@ -238,7 +238,7 @@ Definition at line 3
The documentation for this class was generated from the following file:
-
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/classwidget.html b/doc/developper/html/classwidget.html index 2d528881b..af776561a 100644 --- a/doc/developper/html/classwidget.html +++ b/doc/developper/html/classwidget.html @@ -115,7 +115,7 @@ References disabled<

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

References $readonly, readonly, and value. @@ -205,7 +205,7 @@ References $check

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

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

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


Field Documentation

@@ -431,7 +431,7 @@ if set to false cannot modify

Definition at line 50 of file class_widget.php.

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

@@ -586,7 +586,7 @@ Definition at line 49


The documentation for this class was generated from the following file: -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/client_8inc_8php-source.html b/doc/developper/html/client_8inc_8php-source.html index bd642348e..4ed0ad427 100644 --- a/doc/developper/html/client_8inc_8php-source.html +++ b/doc/developper/html/client_8inc_8php-source.html @@ -171,7 +171,7 @@ 00171 } 00172 html_page_stop(); 00173 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/client_8inc_8php.html b/doc/developper/html/client_8inc_8php.html index 2ae30a487..85b912d64 100644 --- a/doc/developper/html/client_8inc_8php.html +++ b/doc/developper/html/client_8inc_8php.html @@ -299,7 +299,7 @@ Definition at line 116< Definition at line 117 of file client.inc.php. -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/commercial_8php-source.html b/doc/developper/html/commercial_8php-source.html index f3c5179dd..5fbc2d389 100644 --- a/doc/developper/html/commercial_8php-source.html +++ b/doc/developper/html/commercial_8php-source.html @@ -77,63 +77,69 @@ 00077 array('?p_action=facture','Facture'), 00078 array('?p_action=fournisseur','Fournisseur'), 00079 array('?p_action=depense','D&eacute;pense'), -00080 array('?p_action=contact','Contact'), -00081 array('?p_action=admin','Administration'), -00082 array('?p_action=suivi_courrier','Suivi courrier'), -00083 array('?p_action=pref','Préférence'), -00084 array('parametre.php?dos='.$_SESSION['g_dossier'],"Paramètre"), -00085 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), -00086 array('login.php','Accueil',"Accueil"), -00087 array('logout.php','logout',"Sortie") -00088 ), -00089 'H',"mtitle","mtitle","?p_action=$p_action",' width="100%"'); -00090 +00080 array('?p_action=bank','Banque'), +00081 array('?p_action=contact','Contact'), +00082 array('?p_action=admin','Administration'), +00083 array('?p_action=suivi_courrier','Suivi courrier'), +00084 array('?p_action=pref','Préférence'), +00085 array('parametre.php?dos='.$_SESSION['g_dossier'],"Paramètre"), +00086 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), +00087 array('login.php','Accueil',"Accueil"), +00088 array('logout.php','logout',"Sortie") +00089 ), +00090 'H',"mtitle","mtitle","?p_action=$p_action",' width="100%"'); 00091 -00092 // -00093 echo '</div>'; -00094 -00095 $cn=DbConnect($_SESSION['g_dossier']); -00097 // p_action == pref -00099 if ( $p_action == "pref" ) -00100 { -00101 require_once("pref.inc.php"); -00102 } -00104 // p_action == client -00106 if ( $p_action == "client" ) -00107 { -00108 require_once("client.inc.php"); -00109 }// $p_action == fournisseur -00111 // Fournisseur -00112 if ( $p_action == 'fournisseur') -00113 { -00114 require_once("supplier.inc.php"); -00115 } -00117 // action -00118 if ( $p_action == 'suivi_courrier') -00119 { -00120 require_once("action.inc.php"); -00121 } -00123 // p_action == facture -00125 if ( $p_action == "facture" ) -00126 { -00127 require_once("facture.inc.php"); -00128 } -00130 // Contact -00131 if ( $p_action == 'contact') -00132 { -00133 require_once("contact.inc.php"); -00134 } -00136 // Expense -00137 if ( $p_action == 'depense') -00138 { -00139 require_once("depense.inc.php"); -00140 } -00142 // Administration -00143 if ( $p_action == 'admin') -00144 { -00145 require_once("admin.inc.php"); -00146 } -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +00092 +00093 // +00094 echo '</div>'; +00095 +00096 $cn=DbConnect($_SESSION['g_dossier']); +00098 // p_action == pref +00100 if ( $p_action == "pref" ) +00101 { +00102 require_once("pref.inc.php"); +00103 } +00105 // p_action == client +00107 if ( $p_action == "client" ) +00108 { +00109 require_once("client.inc.php"); +00110 }// $p_action == fournisseur +00112 // Fournisseur +00113 if ( $p_action == 'fournisseur') +00114 { +00115 require_once("supplier.inc.php"); +00116 } +00118 // action +00119 if ( $p_action == 'suivi_courrier') +00120 { +00121 require_once("action.inc.php"); +00122 } +00124 // p_action == facture +00126 if ( $p_action == "facture" ) +00127 { +00128 require_once("facture.inc.php"); +00129 } +00131 // Contact +00132 if ( $p_action == 'contact') +00133 { +00134 require_once("contact.inc.php"); +00135 } +00137 // Expense +00138 if ( $p_action == 'depense') +00139 { +00140 require_once("depense.inc.php"); +00141 } +00143 // Administration +00144 if ( $p_action == 'admin') +00145 { +00146 require_once("admin.inc.php"); +00147 } +00149 // Banque +00150 if ( $p_action == 'bank') +00151 { +00152 require_once("bank.inc.php"); +00153 } +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/commercial_8php.html b/doc/developper/html/commercial_8php.html index 5d752f6a1..ce0fbbc63 100644 --- a/doc/developper/html/commercial_8php.html +++ b/doc/developper/html/commercial_8php.html @@ -80,7 +80,7 @@ Referenced by cl_user::

-Definition at line 95 of file commercial.php. +Definition at line 96 of file commercial.php.

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


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/constant_8php-source.html b/doc/developper/html/constant_8php-source.html index 7028fa112..1f7de5898 100644 --- a/doc/developper/html/constant_8php-source.html +++ b/doc/developper/html/constant_8php-source.html @@ -381,7 +381,7 @@ 00377 define ("SQL_LIST_UNPAID_INVOICE_DATE_LIMIT" ," where (jr_rapt is null or jr_rapt = '') 00378 and to_date(to_char(jr_ech,'DD.MM.YYYY'),'DD.MM.YYYY') < to_date(to_char(now(),'DD.MM.YYYY'),'DD.MM.YYYY') and jr_valid = true" ); 00379 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/constant_8php.html b/doc/developper/html/constant_8php.html index 9866bf993..b41804801 100644 --- a/doc/developper/html/constant_8php.html +++ b/doc/developper/html/constant_8php.html @@ -2343,7 +2343,7 @@ Definition at line 59 Definition at line 89 of file constant.php. -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/contact_8inc_8php-source.html b/doc/developper/html/contact_8inc_8php-source.html index 7b1a59293..f32b32cc6 100644 --- a/doc/developper/html/contact_8inc_8php-source.html +++ b/doc/developper/html/contact_8inc_8php-source.html @@ -138,7 +138,7 @@ 00140 00141 <form> 00142 <? -00143 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00143 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; 00144 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', 00145 $qcode); 00146 ?> @@ -152,7 +152,7 @@ 00154 // check if a company is asked if yes, add a condition 00155 if ( $qcode != "" ) 00156 { -00157 $contact->company=$qcode; +00157 $contact->company=$qcode; 00158 } 00159 echo '<div class="u_redcontent">'; 00160 echo $contact->Summary($search); @@ -187,7 +187,7 @@ 00190 html_page_stop(); 00191 00192 -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/contact_8inc_8php.html b/doc/developper/html/contact_8inc_8php.html index 4e2eccf87..feb8d57da 100644 --- a/doc/developper/html/contact_8inc_8php.html +++ b/doc/developper/html/contact_8inc_8php.html @@ -138,9 +138,7 @@ Definition at line 38<

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

-Referenced by Document::Replace(), and ShowActionList(). +Definition at line 143 of file contact.inc.php.

@@ -295,7 +293,7 @@ Definition at line 130 Definition at line 131 of file contact.inc.php. -


Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/debug_8php-source.html b/doc/developper/html/debug_8php-source.html index 4dd495e85..1992453a8 100644 --- a/doc/developper/html/debug_8php-source.html +++ b/doc/developper/html/debug_8php-source.html @@ -40,7 +40,7 @@ 00040 } 00041 00042 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/debug_8php.html b/doc/developper/html/debug_8php.html index 56255e4c5..7c17e322c 100644 --- a/doc/developper/html/debug_8php.html +++ b/doc/developper/html/debug_8php.html @@ -77,10 +77,10 @@ print debug

Definition at line 34 of file debug.php.

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


Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/decla_8BE_8inc_8php-source.html b/doc/developper/html/decla_8BE_8inc_8php-source.html index 5a7cb70fa..57ffa9dcf 100644 --- a/doc/developper/html/decla_8BE_8inc_8php-source.html +++ b/doc/developper/html/decla_8BE_8inc_8php-source.html @@ -78,7 +78,7 @@ 00084 $a.="\r\n"; 00085 return $a; 00086 } -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/decla_8BE_8inc_8php.html b/doc/developper/html/decla_8BE_8inc_8php.html index 77da78f81..0714a5874 100644 --- a/doc/developper/html/decla_8BE_8inc_8php.html +++ b/doc/developper/html/decla_8BE_8inc_8php.html @@ -68,7 +68,7 @@ Definition at line 3 References $a, $b, $client, $my, and name. -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000000.html b/doc/developper/html/dir_000000.html index 2b3c31e3a..0cb18f0c0 100644 --- a/doc/developper/html/dir_000000.html +++ b/doc/developper/html/dir_000000.html @@ -13,7 +13,7 @@ directory  phpcompta-dev -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000001.html b/doc/developper/html/dir_000001.html index a783a8886..3aeb60e20 100644 --- a/doc/developper/html/dir_000001.html +++ b/doc/developper/html/dir_000001.html @@ -13,7 +13,7 @@ directory  phpcompta -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000002.html b/doc/developper/html/dir_000002.html index 72e798c99..7672e17dd 100644 --- a/doc/developper/html/dir_000002.html +++ b/doc/developper/html/dir_000002.html @@ -15,7 +15,7 @@ directory  include -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000003.html b/doc/developper/html/dir_000003.html index 2265fdf99..302aecc07 100644 --- a/doc/developper/html/dir_000003.html +++ b/doc/developper/html/dir_000003.html @@ -281,7 +281,7 @@

-


Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000004.html b/doc/developper/html/dir_000004.html index e81dd4a17..cd5e63c34 100644 --- a/doc/developper/html/dir_000004.html +++ b/doc/developper/html/dir_000004.html @@ -17,7 +17,7 @@ file  readme.php [code] -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000005.html b/doc/developper/html/dir_000005.html index 85e0b2f04..73b0e61c7 100644 --- a/doc/developper/html/dir_000005.html +++ b/doc/developper/html/dir_000005.html @@ -13,7 +13,7 @@ file  setup.php [code] -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dir_000006.html b/doc/developper/html/dir_000006.html index 927d83a25..5a8116670 100644 --- a/doc/developper/html/dir_000006.html +++ b/doc/developper/html/dir_000006.html @@ -30,6 +30,8 @@  Show the balance and let you print it or export to PDF.

+file  bank.inc.php [code] + file  cbc_be.inc.php [code]  This file must be included to parse the CVS from the CBC Bank.
@@ -180,6 +182,9 @@

file  facture.inc.php [code] + the purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database
+ +

file  fiche_def.inc.php [code]  Let customise the fiche_def_ref for the user.
@@ -338,7 +343,7 @@

-


Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/dirs.html b/doc/developper/html/dirs.html index 6fa5b9b8b..4b5f695d8 100644 --- a/doc/developper/html/dirs.html +++ b/doc/developper/html/dirs.html @@ -22,7 +22,7 @@ -
Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/document__modele_8inc_8php-source.html b/doc/developper/html/document__modele_8inc_8php-source.html index 3247ebcfb..fdcd172d9 100644 --- a/doc/developper/html/document__modele_8inc_8php-source.html +++ b/doc/developper/html/document__modele_8inc_8php-source.html @@ -75,7 +75,7 @@ 00075 // Default action : Show the list 00077 echo $doc->myList(); 00078 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/document__modele_8inc_8php.html b/doc/developper/html/document__modele_8inc_8php.html index 2420cdbe7..220e6a1bd 100644 --- a/doc/developper/html/document__modele_8inc_8php.html +++ b/doc/developper/html/document__modele_8inc_8php.html @@ -189,7 +189,7 @@ Definition at line Cezpdf::alink(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezTable(), Cezpdf::ezText(), Document_modele::Save(), and Cezpdf::uline(). -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/ecrit__ouv_8php-source.html b/doc/developper/html/ecrit__ouv_8php-source.html index 5a53ff9c2..8880c7b35 100644 --- a/doc/developper/html/ecrit__ouv_8php-source.html +++ b/doc/developper/html/ecrit__ouv_8php-source.html @@ -45,7 +45,7 @@ 00040 00041 include_once ("user_menu.php"); 00042 echo '<div class="u_tmenu">'; -00043 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00043 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00044 echo '</div>'; 00045 // TODO : add a check for permission 00046 if ( $User->CheckAction($cn,EXP_IMP_ECR) == 0 ) { @@ -54,7 +54,7 @@ 00049 exit -1; 00050 } 00051 -00052 echo ShowMenuAdvanced("ecrit_ouv.php"); +00052 echo ShowMenuAdvanced("ecrit_ouv.php"); 00053 echo '<div class="lmenu">'; 00054 00055 echo ShowItem ( array ( @@ -147,9 +147,9 @@ 00144 } 00145 00146 // submit button in the form -00147 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> +00147 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> 00148 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00149 $r=FormODS($cn,$_POST['p_jrn'],$User->GetPeriode(),$submit, +00149 $r=FormODS($cn,$_POST['p_jrn'],$User->GetPeriode(),$submit, 00150 $array_ods,false,$idx,$p_saved=false); 00151 00152 echo $r; @@ -163,7 +163,7 @@ 00160 echo '</div>'; 00161 html_page_stop(); 00162 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/ecrit__ouv_8php.html b/doc/developper/html/ecrit__ouv_8php.html index 717742237..463240ea4 100644 --- a/doc/developper/html/ecrit__ouv_8php.html +++ b/doc/developper/html/ecrit__ouv_8php.html @@ -242,7 +242,7 @@ Definition at line 72 Definition at line 70 of file ecrit_ouv.php.

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

@@ -295,7 +295,7 @@ Definition at line 6871 of file ecrit_ouv.php. -


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/error_8php-source.html b/doc/developper/html/error_8php-source.html index 75c43ab1f..e118342dc 100644 --- a/doc/developper/html/error_8php-source.html +++ b/doc/developper/html/error_8php-source.html @@ -63,7 +63,7 @@ 00065 } 00066 00067 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/error_8php.html b/doc/developper/html/error_8php.html index 4fdb41907..472c162c0 100644 --- a/doc/developper/html/error_8php.html +++ b/doc/developper/html/error_8php.html @@ -61,7 +61,7 @@ Following the error code show adialog box. Definition at line 33 of file error.php. -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/eub__be_8inc_8php-source.html b/doc/developper/html/eub__be_8inc_8php-source.html index cf8629012..6f88bdb1b 100644 --- a/doc/developper/html/eub__be_8inc_8php-source.html +++ b/doc/developper/html/eub__be_8inc_8php-source.html @@ -82,7 +82,7 @@ 00078 } // file is read 00079 fclose($handle); 00080 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/eub__be_8inc_8php.html b/doc/developper/html/eub__be_8inc_8php.html index 9fe04571d..37849fee7 100644 --- a/doc/developper/html/eub__be_8inc_8php.html +++ b/doc/developper/html/eub__be_8inc_8php.html @@ -210,7 +210,7 @@ Definition at line 55< Referenced by AddFiche(), cl_user::cl_user(), Get_attr_def(), Get_attr_min(), GetCreateAccount(), GetDataJrnPdf(), jrn::GetRow(), cl_user::insert_default_global_pref(), RecordJrn(), and cl_user::update_global_pref(). -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/export__ouv_8php-source.html b/doc/developper/html/export__ouv_8php-source.html index dff257778..47d45b1af 100644 --- a/doc/developper/html/export__ouv_8php-source.html +++ b/doc/developper/html/export__ouv_8php-source.html @@ -73,7 +73,7 @@ 00068 foreach ($ret as $poste_id) { 00069 //var_dump($poste_id); echo "<br>"; 00070 $Poste=new poste($cn,$poste_id['j_poste']); -00071 $sql="j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max']; +00071 $sql="j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max']; 00072 $result=$Poste->GetSoldeDetail($sql ); 00073 if ( $result['solde'] == 0 ) continue; 00074 if ( $result['debit'] > $result ['credit'] ) { @@ -84,7 +84,7 @@ 00079 } 00080 00081 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/export__ouv_8php.html b/doc/developper/html/export__ouv_8php.html index d5e7400f9..a2b4d2f49 100644 --- a/doc/developper/html/export__ouv_8php.html +++ b/doc/developper/html/export__ouv_8php.html @@ -113,7 +113,7 @@ Definition at line 35 Definition at line 72 of file export_ouv.php.

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

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


Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/facture_8inc_8php-source.html b/doc/developper/html/facture_8inc_8php-source.html index 7584f8abf..e21b621c0 100644 --- a/doc/developper/html/facture_8inc_8php-source.html +++ b/doc/developper/html/facture_8inc_8php-source.html @@ -32,14 +32,13 @@ 00023 require_once('jrn.php'); 00024 require_once("class_document.php"); 00025 require_once("class_fiche.php"); -00031 var_dump($_REQUEST); -00032 // First we show the menu -00033 // If nothing is asked the propose a blank form -00034 // to enter a new invoice -00035 if ( ! isset ($_REQUEST['p_jrn'])) { -00036 // no journal are selected so we select the first one -00037 $p_jrn=GetFirstJrnIdForJrnType($_SESSION['g_dossier'],'VEN'); -00038 // $p_jrn=-1; +00032 var_dump($_REQUEST); +00033 // First we show the menu +00034 // If nothing is asked the propose a blank form +00035 // to enter a new invoice +00036 if ( ! isset ($_REQUEST['p_jrn'])) { +00037 // no journal are selected so we select the first one +00038 $p_jrn=GetFirstJrnIdForJrnType($_SESSION['g_dossier'],'VEN'); 00039 } else 00040 { 00041 $p_jrn=$_REQUEST['p_jrn']; @@ -62,7 +61,7 @@ 00059 00060 // show the menu with the list item selected 00061 echo '<div class="u_subtmenu">'; -00062 echo ShowMenuJrnUser($_SESSION['g_dossier'],'VEN',0,'<td class="selectedcell">Liste</td>'); +00062 echo ShowMenuJrnUser($_SESSION['g_dossier'],'VEN',0,'<td class="selectedcell">Liste</td>'); 00063 echo '</div>'; 00064 // Ask to update payment 00065 if ( isset ( $_GET['paid'])) @@ -73,7 +72,7 @@ 00070 { 00071 list($ad) = sscanf($name,"set_jr_id%d"); 00072 if ( $ad == null ) continue; -00073 $sql="update jrn set jr_rapt='' where jr_id=$ad"; +00073 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00074 $Res=ExecSql($cn,$sql); 00075 00076 } @@ -85,7 +84,7 @@ 00082 if ( $id == null ) continue; 00083 // echo "Mise à jour $id"; 00084 $paid=($paid=='on')?'paid':''; -00085 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; +00085 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00086 $Res=ExecSql($cn,$sql); 00087 } 00088 @@ -114,32 +113,32 @@ 00111 00112 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00113 // User is already set User=new cl_user($cn); -00114 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00115 $w->selected=$current; +00114 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00115 $w->selected=$current; 00116 00117 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); -00118 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; +00118 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; 00119 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>', 00120 $qcode); 00121 00122 // Show list of sell 00123 // Date - date of payment - Customer - amount -00124 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_type='VEN'" ; -00125 $step=$_SESSION['g_pagesize']; -00126 $page=(isset($_GET['offset']))?$_GET['page']:1; -00127 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00124 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_type='VEN'" ; +00125 $step=$_SESSION['g_pagesize']; +00126 $page=(isset($_GET['offset']))?$_GET['page']:1; +00127 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00128 -00129 $l=""; +00129 $l=""; 00130 // check if qcode contains something 00131 if ( $qcode != "" ) 00132 { 00133 // add a condition to filter on the quick code -00134 $l=" and jr_grpt_id in (select j_grpt from jrnx where j_qcode='$qcode') "; +00134 $l=" and jr_grpt_id in (select j_grpt from jrnx where j_qcode='$qcode') "; 00135 } 00136 00137 list($max_line,$list)=ListJrn($cn,0,"where jrn_def_type='VEN' and jr_tech_per=$current $l " 00138 ,null,$offset,1); -00139 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00139 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00140 00141 echo "<hr> $bar"; 00142 echo $list; @@ -154,7 +153,7 @@ 00151 exit(); 00152 } 00154 echo '<div class="u_subtmenu">'; -00155 echo ShowMenuJrnUser($_SESSION['g_dossier'],'VEN',$p_jrn,'<td class="cell"><A class="mtitle" HREF="commercial.php?liste&p_action=facture&sa=list">Liste</A></td>'); +00155 echo ShowMenuJrnUser($_SESSION['g_dossier'],'VEN',$p_jrn,'<td class="cell"><A class="mtitle" HREF="commercial.php?liste&p_action=facture&sa=list">Liste</A></td>'); 00156 echo '</div>'; 00158 // if we request to add an item 00159 // the $_POST['add_item'] is set @@ -162,80 +161,85 @@ 00161 if ( isset ($_POST['add_item']) || isset ($_POST["correct_new_invoice"]) ) 00162 { 00163 $nb_item=$_POST['nb_item']; -00164 $nb_item++; -00165 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_item); -00166 echo '<div class="u_redcontent">'; -00167 echo $form; -00168 echo '</div>'; -00169 exit(); -00170 } -00172 // we want to save the invoice and to generate a invoice -00173 // -00174 if ( isset($_POST['record_and_print_invoice'])) -00175 { -00176 // First we save the invoice, the internal code will be used to change the description -00177 // and upload the file -00178 list ($internal,$e)=RecordInvoice($cn,$_POST,$User,$p_jrn); -00179 -00180 -00181 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$_POST['nb_item'],'noform',''); -00182 -00183 echo '<div class="u_redcontent">'; -00184 echo '<h2 class="info"> Op&eacute;ration '.$internal.' enregistr&eacute;</h2>'; -00185 echo $form; -00186 echo '<hr>'; -00187 // Show the details of the encoded invoice -00188 // and the url of the invoice -00189 if ( isset($_POST['gen_invoice'])) -00190 { -00191 $doc=new Document($cn); -00192 $doc->f_id=$_POST['e_client']; -00193 $doc->md_id=$_POST['gen_doc']; -00194 $doc->ag_id=0; -00195 $str_file=$doc->Generate(); -00196 // Move the document to the jrn -00197 $doc->MoveDocumentPj($internal); -00198 echo $str_file; -00199 } -00200 echo '</form>'; -00201 exit(); -00202 } -00204 // we show the confirmation screen it is proposed here to generate the -00205 // invoice -00206 if ( isset ($_POST['view_invoice']) ) -00207 { -00208 $nb_number=$_POST["nb_item"]; -00209 if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true) -00210 { -00211 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); -00212 -00213 } else { -00214 // Check failed : invalid date or quantity -00215 echo_error("Cannot validate "); -00216 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); -00217 } -00218 -00219 echo '<div class="u_redcontent">'; -00220 echo $form; -00221 echo '</div>'; -00222 exit(); +00164 if ( isset ($_POST['add_item'])) +00165 $nb_item++; +00166 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_item); +00167 echo '<div class="u_redcontent">'; +00168 echo $form; +00169 echo '</div>'; +00170 exit(); +00171 } +00173 // we want to save the invoice and to generate a invoice +00174 // +00175 if ( isset($_POST['record_and_print_invoice'])) +00176 { +00177 // First we save the invoice, the internal code will be used to change the description +00178 // and upload the file +00179 list ($internal,$e)=RecordInvoice($cn,$_POST,$User,$p_jrn); +00180 +00181 +00182 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$_POST['nb_item'],'noform',''); +00183 +00184 echo '<div class="u_redcontent">'; +00185 echo '<h2 class="info"> Op&eacute;ration '.$internal.' enregistr&eacute;</h2>'; +00186 echo $form; +00187 echo '<hr>'; +00188 +00189 // Show the details of the encoded invoice +00190 // and the url of the invoice +00191 if ( isset($_POST['gen_invoice'])) +00192 { +00193 $doc=new Document($cn); +00194 $doc->f_id=$_POST['e_client']; +00195 $doc->md_id=$_POST['gen_doc']; +00196 $doc->ag_id=0; +00197 $str_file=$doc->Generate(); +00198 // Move the document to the jrn +00199 $doc->MoveDocumentPj($internal); +00200 // Update the comment with invoice number +00201 $sql="update jrn set jr_comment='Facture ".$doc->d_number."' where jr_internal='$internal'"; +00202 ExecSql($cn,$sql); +00203 echo $str_file; +00204 } +00205 echo '</form>'; +00206 exit(); +00207 } +00209 // we show the confirmation screen it is proposed here to generate the +00210 // invoice +00211 if ( isset ($_POST['view_invoice']) ) +00212 { +00213 $nb_number=$_POST["nb_item"]; +00214 if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true) +00215 { +00216 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); +00217 +00218 } else { +00219 // Check failed : invalid date or quantity +00220 echo_error("Cannot validate "); +00221 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); +00222 } 00223 -00224 } -00225 -00226 -00227 -00229 // By default we add a new invoice -00230 if ( $p_jrn != -1 ) -00231 { -00232 $jrn=new jrn($cn, $p_jrn); -00233 echo_debug('facture.inc.php.php',__LINE__,"Blank form"); -00234 // Show an empty form of invoice -00235 $form=FormVenInput($cn,$p_jrn,$User->GetPeriode(),null,false,$jrn->GetDefLine('cred')); -00236 echo '<div class="u_redcontent">'; -00237 echo $form; -00238 echo '</div>'; -00239 } -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00224 echo '<div class="u_redcontent">'; +00225 echo $form; +00226 echo '</div>'; +00227 exit(); +00228 +00229 } +00230 +00231 +00232 +00234 // By default we add a new invoice +00235 if ( $p_jrn != -1 ) +00236 { +00237 $jrn=new jrn($cn, $p_jrn); +00238 echo_debug('facture.inc.php.php',__LINE__,"Blank form"); +00239 // Show an empty form of invoice +00240 $form=FormVenInput($cn,$p_jrn,$User->GetPeriode(),null,false,$jrn->GetDefLine('cred')); +00241 echo '<div class="u_redcontent">'; +00242 echo $form; +00243 echo '</div>'; +00244 } +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/facture_8inc_8php.html b/doc/developper/html/facture_8inc_8php.html index c96f40236..363fe1342 100644 --- a/doc/developper/html/facture_8inc_8php.html +++ b/doc/developper/html/facture_8inc_8php.html @@ -7,7 +7,9 @@ -

facture.inc.php File Reference

+

facture.inc.php File Reference

the purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database More... +

+

Go to the source code of this file. @@ -48,7 +50,7 @@ - + @@ -59,7 +61,12 @@
 $bar = jrn_navigation_bar($offset,$max_line,$step,$page)
 $form = FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$_POST['nb_item'],'noform','')
 $form = FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_item)
$doc f_id = $_POST['e_client']
 $str_file = $doc->Generate()
-


Variable Documentation

+

Detailed Description

+the purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database +

+ +

+Definition in file facture.inc.php.


Variable Documentation

@@ -116,7 +123,7 @@ Definition at line 114 @@ -132,7 +139,7 @@ Definition at line 114

-Definition at line 181 of file facture.inc.php. +Definition at line 166 of file facture.inc.php.

- +
$form = FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$_POST['nb_item'],'noform','') $form = FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_item)

@@ -432,7 +439,7 @@ Definition at line 125

-Definition at line 195 of file facture.inc.php. +Definition at line 197 of file facture.inc.php.

Referenced by action::SaveStage2(). @@ -509,7 +516,7 @@ Definition at line 110

-Definition at line 194 of file facture.inc.php. +Definition at line 196 of file facture.inc.php.

@@ -534,7 +541,7 @@ Definition at line 194

-Definition at line 192 of file facture.inc.php. +Definition at line 194 of file facture.inc.php.

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

-Definition at line 193 of file facture.inc.php. +Definition at line 195 of file facture.inc.php.

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


Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche_8php-source.html b/doc/developper/html/fiche_8php-source.html index 5095cf899..70bc1f306 100644 --- a/doc/developper/html/fiche_8php-source.html +++ b/doc/developper/html/fiche_8php-source.html @@ -44,7 +44,7 @@ 00038 $User->Check(); 00039 include ("check_priv.php"); 00040 echo '<div class="u_tmenu">'; -00041 echo ShowMenuCompta($_SESSION['g_dossier']); +00041 echo ShowMenuCompta($_SESSION['g_dossier']); 00042 echo '</div>'; 00043 echo JS_SEARCH_POSTE; 00044 @@ -74,7 +74,7 @@ 00068 AddModele($cn,$HTTP_POST_VARS); 00069 } 00070 -00071 ShowMenuFiche($_SESSION['g_dossier']); +00071 ShowMenuFiche($_SESSION['g_dossier']); 00072 00073 if ( isset ( $_GET["action"]) ) { 00074 $action=$_GET["action"]; @@ -185,7 +185,7 @@ 00179 } 00180 html_page_stop(); 00181 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche_8php.html b/doc/developper/html/fiche_8php.html index 1df0c87f0..6051e9904 100644 --- a/doc/developper/html/fiche_8php.html +++ b/doc/developper/html/fiche_8php.html @@ -75,7 +75,7 @@ Definition at line 35 of Definition at line 37 of file fiche.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__csv_8php-source.html b/doc/developper/html/fiche__csv_8php-source.html index 08aac3a5e..69d2e388a 100644 --- a/doc/developper/html/fiche__csv_8php-source.html +++ b/doc/developper/html/fiche__csv_8php-source.html @@ -103,7 +103,7 @@ 00098 } 00099 exit; 00100 ?> -
Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__csv_8php.html b/doc/developper/html/fiche__csv_8php.html index da43fd658..0431b4d84 100644 --- a/doc/developper/html/fiche__csv_8php.html +++ b/doc/developper/html/fiche__csv_8php.html @@ -212,7 +212,7 @@ Definition at line 3699 of file fiche_csv.php. -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__def_8inc_8php-source.html b/doc/developper/html/fiche__def_8inc_8php-source.html index e22bd67e9..cf07ee78f 100644 --- a/doc/developper/html/fiche__def_8inc_8php-source.html +++ b/doc/developper/html/fiche__def_8inc_8php-source.html @@ -80,7 +80,7 @@ 00075 echo '</form>'; 00076 echo '</div>'; 00077 } -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__def_8inc_8php.html b/doc/developper/html/fiche__def_8inc_8php.html index 7c74ae3b5..67b5d2c14 100644 --- a/doc/developper/html/fiche__def_8inc_8php.html +++ b/doc/developper/html/fiche__def_8inc_8php.html @@ -274,7 +274,7 @@ Definition at line Referenced by fiche_def_ref::fiche_def_ref(), fiche_def_ref::Get(), Get_fiche_def_ref(), fiche_def_ref::Input(), and fiche_def_ref::Save(). -
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__inc_8php-source.html b/doc/developper/html/fiche__inc_8php-source.html index 89172ca97..aefb9e9de 100644 --- a/doc/developper/html/fiche__inc_8php-source.html +++ b/doc/developper/html/fiche__inc_8php-source.html @@ -85,7 +85,7 @@ 00092 00093 } // if $len == 0 00094 $lib=FormatString($p_av_text0); -00095 $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) +00095 $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) 00096 values (%s,'%s',%d)", 00097 ${"p_av_text$i"}, 00098 $lib, @@ -127,7 +127,7 @@ 00134 $num=GetNextFiche($p_cn,$base); 00135 00136 $lib=FormatString($p_av_text0); -00137 $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) +00137 $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) 00138 values (%s,'%s',%d)", 00139 $num, 00140 $lib, @@ -159,7 +159,7 @@ 00166 00167 // Special treatment for QuickCode 00168 if ( ${"p_ad_id$i"} == ATTR_DEF_QUICKCODE ) { -00169 $sql=sprintf("select insert_quick_code(%d,'%s')", +00169 $sql=sprintf("select insert_quick_code(%d,'%s')", 00170 $l_f_id,FormatString(${"p_av_text$i"})); 00171 $Res=ExecSql($p_cn,$sql); 00172 continue; @@ -219,7 +219,7 @@ 00242 echo_debug('fiche_inc.php',__LINE__,"Array is null"); 00243 // Find all the attribute of the existing cards 00244 // --> Get_attr_def -00245 $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) +00245 $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) 00246 join attr_def using (ad_id) where fd_id=".$p_type." order by ad_id"; 00247 00248 $Res=ExecSql($p_cn,$sql); @@ -261,7 +261,7 @@ 00284 echo '<H2 class="info">'.$label.'</H2>'; 00285 00286 // Find all the data related to the card -00287 $sql="select av_text,ad_id,ad_text,jft_id from attr_value +00287 $sql="select av_text,ad_id,ad_text,jft_id from attr_value 00288 natural join attr_def 00289 natural join jnt_fic_att_value 00290 natural join fiche where f_id=$p_type order by ad_id"; @@ -332,19 +332,19 @@ 00395 require_once("user_common.php"); 00396 echo '<H2 class="info">'.getFicheDefName($p_cn,$p_type).'</H2>'; 00397 -00398 $step=$_SESSION['g_pagesize']; +00398 $step=$_SESSION['g_pagesize']; 00399 $sql_limit=""; 00400 $sql_offset=""; 00401 if ( $step != -1 ) { -00402 $page=(isset($_GET['page']))?$_GET['page']:1; -00403 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00402 $page=(isset($_GET['page']))?$_GET['page']:1; +00403 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00404 $max_line=CountSql($p_cn,"select f_id,av_text from 00405 fiche join jnt_fic_att_value using (f_id) 00406 join attr_value using (jft_id) 00407 where fd_id='".$p_type."' and ad_id=".ATTR_DEF_NAME." order by f_id"); 00408 $sql_limit=" limit ".$step; 00409 $sql_offset=" offset ".$offset; -00410 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00410 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00411 } 00412 00413 // Get all name the cards of the select category @@ -356,7 +356,7 @@ 00419 where fd_id='".$p_type. 00420 "' and ad_id=".ATTR_DEF_NAME." order by f_id $sql_offset $sql_limit "); 00421 $Max=pg_NumRows($Res); -00422 echo $bar; +00422 echo $bar; 00423 00424 for ( $i = 0; $i < $Max; $i++) { 00425 $l_line=pg_fetch_array($Res,$i); @@ -399,7 +399,7 @@ 00491 $fd_id=GetFicheDef($p_cn,$p_id); 00492 00493 //Update the default attribute of a card if is model has changed -00494 $sql="insert into jnt_fic_att_value (f_id,ad_id) +00494 $sql="insert into jnt_fic_att_value (f_id,ad_id) 00495 select $p_id, ad_id 00496 from jnt_fic_attr 00497 where fd_id=$fd_id and @@ -409,7 +409,7 @@ 00501 $Res=ExecSql($p_cn,$sql); 00502 00503 // add a empty string to attr_value -00504 $sql="insert into attr_value select jft_id,'' from jnt_fic_att_value +00504 $sql="insert into attr_value select jft_id,'' from jnt_fic_att_value 00505 where f_id=$p_id and jft_id not in (select jft_id from attr_value natural join jnt_fic_att_value where 00506 f_id = $p_id)"; 00507 $Res=ExecSql($p_cn,$sql); @@ -460,13 +460,13 @@ 00567 $a=pg_fetch_array($Res,0); 00568 if ( $a['ad_id'] != ATTR_DEF_QUICKCODE) 00569 { -00570 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", +00570 $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", 00571 $text, 00572 ${"jft_id$i"}); 00573 } 00574 else 00575 { -00576 $sql=sprintf("select update_quick_code(%d,'%s')", +00576 $sql=sprintf("select update_quick_code(%d,'%s')", 00577 ${"jft_id$i"}, 00578 $text); 00579 } @@ -475,14 +475,14 @@ 00582 } 00583 // Update tva to his default value 00584 if ( $tva_error == true ) { -00585 $sql="update attr_value set av_text=1 where jft_id = ( select jft_id from jnt_fic_att_value +00585 $sql="update attr_value set av_text=1 where jft_id = ( select jft_id from jnt_fic_att_value 00586 natural join fiche natural join attr_def 00587 where ad_id=".ATTR_DEF_TVA." and f_id=$fiche)"; 00588 $Res=ExecSql($p_cn,$sql); 00589 } 00590 00591 // Update the PCMN if needed -00592 $sql="select av_text from attr_value natural join jnt_fic_att_value +00592 $sql="select av_text from attr_value natural join jnt_fic_att_value 00593 where f_id=$fiche and ad_id=".ATTR_DEF_ACCOUNT; 00594 $Res=ExecSql($p_cn,$sql); 00595 @@ -649,13 +649,13 @@ 00798 if ( FormatString($p_class_base) != null) { 00799 00800 // p_class is a valid number -00801 $sql=sprintf("insert into fiche_def(fd_label,fd_class_base,frd_id,fd_create_account) +00801 $sql=sprintf("insert into fiche_def(fd_label,fd_class_base,frd_id,fd_create_account) 00802 values ('%s',%s,%d,'%s')", 00803 $p_nom_mod,$p_class_base,$p_FICHE_REF,$p_create); 00804 $Res=ExecSql($p_cn,$sql); 00805 00806 // p_class must be added to tmp_pcmn -00807 $sql=sprintf("select account_add(%d,'%s')", +00807 $sql=sprintf("select account_add(%d,'%s')", 00808 $p_class_base,$p_nom_mod); 00809 00810 $Res=ExecSql($p_cn,$sql); @@ -666,13 +666,13 @@ 00815 // Add the class_base if needed 00816 00817 if ( $p_create=='true' ) { -00818 $sql=sprintf("insert into jnt_fic_attr(fd_id,ad_id) +00818 $sql=sprintf("insert into jnt_fic_attr(fd_id,ad_id) 00819 values (%d,%d)",$fd_id,ATTR_DEF_ACCOUNT); 00820 $Res=ExecSql($p_cn,$sql); 00821 } 00822 } else { 00823 //There is no class base not even as default -00824 $sql=sprintf("insert into fiche_def(fd_label,frd_id,fd_create_account) values ('%s',%d,'%s')", +00824 $sql=sprintf("insert into fiche_def(fd_label,frd_id,fd_create_account) values ('%s',%d,'%s')", 00825 $p_nom_mod,$p_FICHE_REF,$p_create); 00826 00827 $Res=ExecSql($p_cn,$sql); @@ -690,7 +690,7 @@ 00839 if (sizeof($def_attr) != 0 ) { 00840 // insert all the mandatory fields into jnt_fiche_attr 00841 foreach ( $def_attr as $i=>$v) { -00842 $sql=sprintf("insert into jnt_fic_Attr(fd_id,ad_id) +00842 $sql=sprintf("insert into jnt_fic_Attr(fd_id,ad_id) 00843 values (%d,%s)", 00844 $fd_id,$v['ad_id']); 00845 ExecSql($p_cn,$sql); @@ -837,7 +837,7 @@ 01077 return null; 01078 } 01079 -01080 $sql="select f_id,av_text as f_label +01080 $sql="select f_id,av_text as f_label 01081 from fiche natural join jnt_fic_att_value 01082 natural join attr_def 01083 natural join attr_value @@ -947,7 +947,7 @@ 01248 function GetFicheDefRef($p_cn,$p_f_id) 01249 { 01250 // Sql stmt -01251 $sql="select frd_id from fiche_def join fiche using (fd_id) +01251 $sql="select frd_id from fiche_def join fiche using (fd_id) 01252 where f_id=$p_f_id"; 01253 // Execute it 01254 $Res=ExecSql($p_cn,$sql); @@ -965,7 +965,7 @@ 01279 function GetFicheDef($p_cn,$p_f_id) 01280 { 01281 // Sql stmt -01282 $sql="select fd_id from fiche_def join fiche using (fd_id) +01282 $sql="select fd_id from fiche_def join fiche using (fd_id) 01283 where f_id=$p_f_id"; 01284 // Execute it 01285 $Res=ExecSql($p_cn,$sql); @@ -986,7 +986,7 @@ 01312 01313 // the account class is in the av_text with the ad_id=5 in 01314 // attr_Def -01315 $sql="select av_text from attr_value +01315 $sql="select av_text from attr_value 01316 natural join jnt_fic_att_value 01317 natural join attr_def 01318 where @@ -1003,7 +1003,7 @@ 01341 { 01342 // Insert a new attribute for the model 01343 // it means insert a row in jnt_fic_attr -01344 $sql=sprintf("insert into jnt_fic_attr (fd_id,ad_id) values (%d,%d)", +01344 $sql=sprintf("insert into jnt_fic_attr (fd_id,ad_id) values (%d,%d)", 01345 $p_fid,$p_adid); 01346 $Res=ExecSql($p_cn,$sql); 01347 @@ -1012,7 +1012,7 @@ 01362 { 01363 // Insert a new attribute for the model 01364 // it means insert a row in jnt_fic_attr -01365 $sql=sprintf("update fiche_def set fd_label='%s' where +01365 $sql=sprintf("update fiche_def set fd_label='%s' where 01366 fd_id=%d", 01367 $p_label,$p_fid); 01368 $Res=ExecSql($p_cn,$sql); @@ -1058,7 +1058,7 @@ 01423 echo '<TR> <TD>'; 01424 echo '<SELECT NAME="ad_id">'; 01425 for ($i=0;$i<$M;$i++) { -01426 $l=pg_fetch_array($Res,$i); +01426 $l=pg_fetch_array($Res,$i); 01427 printf('<OPTION VALUE="%s"> %s', 01428 $l['ad_id'],$l['ad_text']); 01429 } @@ -1133,7 +1133,7 @@ 01540 return null; 01541 } 01542 -01543 $sql="select * +01543 $sql="select * 01544 from vw_fiche_attr 01545 where 01546 fd_id in (".$list['fiche'].") and quick_code='$p_fiche'"; @@ -1146,7 +1146,7 @@ 01553 return 1; 01554 } 01555 ?> -
Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/fiche__inc_8php.html b/doc/developper/html/fiche__inc_8php.html index ce7163169..68af828f4 100644 --- a/doc/developper/html/fiche__inc_8php.html +++ b/doc/developper/html/fiche__inc_8php.html @@ -190,7 +190,7 @@ ajoute une nouvelle fiche

Definition at line 38 of file fiche_inc.php.

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

@@ -239,7 +239,7 @@ array gen :

Definition at line 225 of file fiche_inc.php.

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

Referenced by ViewFicheDetail(). @@ -746,7 +746,7 @@ card id (fiche.f_id) gen : Definition at line 1310 of file fiche_inc.php.

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

Referenced by Remove(). @@ -959,7 +959,7 @@ the fiche_def.fd_id or null if nothing has been found

Definition at line 1279 of file fiche_inc.php.

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

Referenced by Remove(), and ViewFicheDetail(). @@ -1061,7 +1061,7 @@ the fiche_def.frd_id or nu

Definition at line 1248 of file fiche_inc.php.

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

Referenced by UpdateFiche(). @@ -1120,7 +1120,7 @@ j_jrn journal_id

    Definition at line 1054 of file fiche_inc.php.

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

    @@ -1273,7 +1273,7 @@ p_base gen :

      Definition at line 458 of file fiche_inc.php.

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

      Referenced by AddFiche(). @@ -1382,7 +1382,7 @@ InsertModeleLine

      Definition at line 1340 of file fiche_inc.php.

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

      @@ -1446,9 +1446,9 @@ return 1 if the fiche is in the range otherwise 0

      Definition at line 1511 of file fiche_inc.php.

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

      -Referenced by form_verify_input(). +Referenced by form_verify_input().

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

        Definition at line 1361 of file fiche_inc.php.

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

        @@ -1603,7 +1603,7 @@ p_array gen :

          Definition at line 526 of file fiche_inc.php.

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

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

            Definition at line 394 of file fiche_inc.php.

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

            @@ -1750,10 +1750,10 @@ id de la fiche fiche(f_id) gen :

              Definition at line 488 of file fiche_inc.php.

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


              Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fiche__new_8php-source.html b/doc/developper/html/fiche__new_8php-source.html index 87403d447..05234d891 100644 --- a/doc/developper/html/fiche__new_8php-source.html +++ b/doc/developper/html/fiche__new_8php-source.html @@ -77,7 +77,7 @@ 00072 echo_debug('fiche_new.php',__LINE__,"Array is null"); 00073 // Find all the attribute of the existing cards 00074 // --> Get_attr_def -00075 $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) +00075 $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) 00076 join attr_def using (ad_id) where fd_id=".$p_type." order by ad_id"; 00077 00078 $Res=ExecSql($p_cn,$sql); @@ -125,7 +125,7 @@ 00120 // if e_type contains a list of value 00121 if ( $e_type != 'cred' and $e_type != 'deb') { 00122 // $list['fiche']=$e_type; -00123 $sql="select fd_id from fiche_def where frd_id in ($e_type)"; +00123 $sql="select fd_id from fiche_def where frd_id in ($e_type)"; 00124 $Res=ExecSql($cn,$sql); 00125 // fetch it 00126 $Max=pg_NumRows($Res); @@ -142,11 +142,11 @@ 00137 } else { // We have to find it from the database 00138 if ( $e_type == 'deb' ) { 00139 $get='jrn_def_fiche_deb'; -00140 $sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn']; +00140 $sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn']; 00141 } 00142 if ( $e_type == 'cred' ) { 00143 $get='jrn_def_fiche_cred'; -00144 $sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn']; +00144 $sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn']; 00145 } 00146 00147 @@ -200,7 +200,7 @@ 00195 echo "<FORM>"; 00196 } 00197 ?> -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fiche__new_8php.html b/doc/developper/html/fiche__new_8php.html index 67e6f360b..04d55816b 100644 --- a/doc/developper/html/fiche__new_8php.html +++ b/doc/developper/html/fiche__new_8php.html @@ -78,7 +78,7 @@ Definition in file fiche_new.ph

              Definition at line 60 of file fiche_new.php.

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


              Variable Documentation

              @@ -286,7 +286,7 @@ Definition at line 31116 of file fiche_new.php. -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fiche__search_8php-source.html b/doc/developper/html/fiche__search_8php-source.html index 061e4f5cc..f8736260d 100644 --- a/doc/developper/html/fiche__search_8php-source.html +++ b/doc/developper/html/fiche__search_8php-source.html @@ -64,7 +64,7 @@ 00059 00060 function get_list_fiche($p_cn,$get,$p_jrn) 00061 { -00062 $sql="select $get as fiche from jrn_def where jrn_def_id=$p_jrn"; +00062 $sql="select $get as fiche from jrn_def where jrn_def_id=$p_jrn"; 00063 $Res=ExecSql($p_cn,$sql); 00064 00065 // fetch it @@ -116,19 +116,19 @@ 00111 if ( $e_type == 'deb' ) { 00112 $get='jrn_def_fiche_deb'; 00113 $list_fiche=get_list_fiche($cn,$get,$_GET['p_jrn']); -00114 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; +00114 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; 00115 } 00116 if ( $e_type == 'cred' ) { 00117 $get='jrn_def_fiche_cred'; 00118 $list_fiche=get_list_fiche($cn,$get,$_GET['p_jrn']); -00119 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; +00119 $sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )"; 00120 } 00121 00122 00123 // if e_type contains a list of value 00124 if ( $e_type != 'cred' and $e_type != 'deb') { 00125 $list_fiche=$e_type; -00126 $sql="select * from vw_fiche_attr where frd_id in ( $list_fiche )"; +00126 $sql="select * from vw_fiche_attr where frd_id in ( $list_fiche )"; 00127 // $sql="select * from vw_fiche_attr "; 00128 } 00129 // e_fic_search contains the pattern @@ -183,7 +183,7 @@ 00178 00179 html_page_stop(); 00180 ?> -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fiche__search_8php.html b/doc/developper/html/fiche__search_8php.html index 07e2470dd..2c9aa112e 100644 --- a/doc/developper/html/fiche__search_8php.html +++ b/doc/developper/html/fiche__search_8php.html @@ -264,7 +264,7 @@ Definition at line 11 Definition at line 32 of file fiche_search.php. -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/files.html b/doc/developper/html/files.html index e73fe93d9..a29d80544 100644 --- a/doc/developper/html/files.html +++ b/doc/developper/html/files.html @@ -70,6 +70,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/action.inc.php [code]Page who manage the different action (meeting, letter) /home/dany/developpement/phpcompta-dev/phpcompta/include/admin.inc.php [code]Called from the module "Gestion" to manage the customer /home/dany/developpement/phpcompta-dev/phpcompta/include/balance.php [code]Show the balance and let you print it or export to PDF + /home/dany/developpement/phpcompta-dev/phpcompta/include/bank.inc.php [code] /home/dany/developpement/phpcompta-dev/phpcompta/include/cbc_be.inc.php [code]This file must be included to parse the CVS from the CBC Bank /home/dany/developpement/phpcompta-dev/phpcompta/include/central_inc.php [code]Concerns the centralization operations /home/dany/developpement/phpcompta-dev/phpcompta/include/check_priv.php [code]Tools for checking the security @@ -103,7 +104,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/document_modele.inc.php [code]Manage the document template /home/dany/developpement/phpcompta-dev/phpcompta/include/error.php [code]Obsolete ? /home/dany/developpement/phpcompta-dev/phpcompta/include/eub_be.inc.php [code]File included to parse CSV from EUB Bank - /home/dany/developpement/phpcompta-dev/phpcompta/include/facture.inc.php [code] + /home/dany/developpement/phpcompta-dev/phpcompta/include/facture.inc.php [code]Purpose off this file is to create invoices, to record them and to generate them, and of course to save them into the database /home/dany/developpement/phpcompta-dev/phpcompta/include/fiche_def.inc.php [code]Let customise the fiche_def_ref for the user /home/dany/developpement/phpcompta-dev/phpcompta/include/fiche_inc.php [code]Function for managing card, redundant with the class fiche /home/dany/developpement/phpcompta-dev/phpcompta/include/form_inc.php [code] @@ -140,7 +141,7 @@ /home/dany/developpement/phpcompta-dev/phpcompta/include/user_menu.php [code]Nearly all the menu are here, some of them returns a HTML string, others echo directly the result /home/dany/developpement/phpcompta-dev/phpcompta/include/user_update.php [code]Check if still used -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form_8php-source.html b/doc/developper/html/form_8php-source.html index c6eb91e7e..1ae249991 100644 --- a/doc/developper/html/form_8php-source.html +++ b/doc/developper/html/form_8php-source.html @@ -47,7 +47,7 @@ 00041 00042 include_once ("user_menu.php"); 00043 echo '<div class="u_tmenu">'; -00044 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00044 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00045 echo '</div>'; 00046 00047 include ("check_priv.php"); @@ -57,7 +57,7 @@ 00051 /* Cannot Access */ 00052 NoAccess(); 00053 } -00054 echo ShowMenuAdvanced("form.php"); +00054 echo ShowMenuAdvanced("form.php"); 00055 if ( isset ($_POST["record"] )) { 00056 echo '<DIV class="u_redcontent">'; 00057 AddForm($cn,$HTTP_POST_VARS); @@ -69,7 +69,7 @@ 00063 echo "</DIV>"; 00064 } 00065 -00066 ShowMenuComptaForm($_SESSION['g_dossier']); +00066 ShowMenuComptaForm($_SESSION['g_dossier']); 00067 00068 if ( isset($_GET["PHPSESSID"] )) { 00069 $sessid=$_GET["PHPSESSID"]; @@ -118,7 +118,7 @@ 00112 //echo "</DIV>"; 00113 html_page_stop(); 00114 ?> -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form_8php.html b/doc/developper/html/form_8php.html index 0b3db66d0..026aa80d1 100644 --- a/doc/developper/html/form_8php.html +++ b/doc/developper/html/form_8php.html @@ -129,7 +129,7 @@ Definition at line 37 of f Definition at line 91 of file form.php. -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__csv_8php-source.html b/doc/developper/html/form__csv_8php-source.html index 6deb0413f..ae67e5122 100644 --- a/doc/developper/html/form__csv_8php-source.html +++ b/doc/developper/html/form__csv_8php-source.html @@ -104,7 +104,7 @@ 00098 } 00099 exit; 00100 ?> -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__csv_8php.html b/doc/developper/html/form__csv_8php.html index 4bac5eca7..e9e48242a 100644 --- a/doc/developper/html/form__csv_8php.html +++ b/doc/developper/html/form__csv_8php.html @@ -102,7 +102,7 @@ Definition at line 40 Definition at line 36 of file form_csv.php. -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__inc_8php-source.html b/doc/developper/html/form__inc_8php-source.html index df5b3f814..fa528c538 100644 --- a/doc/developper/html/form__inc_8php-source.html +++ b/doc/developper/html/form__inc_8php-source.html @@ -185,7 +185,7 @@ 00239 ${"form$i"}="!!!!!!! FORMULE INVALIDE ".${"form$i"}; 00240 00241 ${"form$i"}=(${"form$i"}==null)?"null":"'".${"form$i"}."'"; -00242 $sql=sprintf("insert into form (fo_fr_id, +00242 $sql=sprintf("insert into form (fo_fr_id, 00243 fo_pos, 00244 fo_label, 00245 fo_formula) values @@ -215,7 +215,7 @@ 00276 return; 00277 } 00278 $form_nom=(FormatString($form_nom)==null)?"NoName":FormatString($form_nom); -00279 $sql="insert into formdef (fr_label) values ('".$form_nom."')"; +00279 $sql="insert into formdef (fr_label) values ('".$form_nom."')"; 00280 $Res=ExecSql($p_cn,$sql); 00281 $n=GetSequence($p_cn,"s_formdef"); 00282 @@ -226,7 +226,7 @@ 00287 // ${"form$i"}=(${"form$i"}==null)?${"form$i"}:"'".${"form$i"}."'"; 00288 ${"form$i"}=(${"form$i"}==null)?"null":"'".${"form$i"}."'"; 00289 CheckFormula(${"form$i"}); -00290 $sql=sprintf("insert into form (fo_fr_id, +00290 $sql=sprintf("insert into form (fo_fr_id, 00291 fo_pos, 00292 fo_label, 00293 fo_formula) values @@ -242,7 +242,7 @@ 00303 } 00304 00305 ?> -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__inc_8php.html b/doc/developper/html/form__inc_8php.html index f56d04b82..d68f9068e 100644 --- a/doc/developper/html/form__inc_8php.html +++ b/doc/developper/html/form__inc_8php.html @@ -84,7 +84,7 @@ Add a report.

              Definition at line 267 of file form_inc.php.

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

              @@ -243,7 +243,7 @@ Get data from a form.

              Definition at line 149 of file form_inc.php.

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

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

              Definition at line 208 of file form_inc.php.

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

              @@ -454,10 +454,10 @@ parm :

              Parameters:

              Definition at line 117 of file form_inc.php.

              -References $array, $l_line, EncodeForm(), GetDataForm(), GetFormName(), and GetNumberLine(). +References $array, $l_line, EncodeForm(), GetDataForm(), GetFormName(), and GetNumberLine(). -


              Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__pdf_8php-source.html b/doc/developper/html/form__pdf_8php-source.html index bc6c16877..948b73c06 100644 --- a/doc/developper/html/form__pdf_8php-source.html +++ b/doc/developper/html/form__pdf_8php-source.html @@ -111,7 +111,7 @@ 00106 $pdf->ezStream(); 00107 00108 ?> -
              Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/form__pdf_8php.html b/doc/developper/html/form__pdf_8php.html index 52d926cb9..eafe86db6 100644 --- a/doc/developper/html/form__pdf_8php.html +++ b/doc/developper/html/form__pdf_8php.html @@ -75,7 +75,7 @@ Definition at line 33 Definition at line 42 of file form_pdf.php. -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fortis__be_8inc_8php-source.html b/doc/developper/html/fortis__be_8inc_8php-source.html index d39697d2c..178350e1c 100644 --- a/doc/developper/html/fortis__be_8inc_8php-source.html +++ b/doc/developper/html/fortis__be_8inc_8php-source.html @@ -72,7 +72,7 @@ 00068 00069 $detail=str_replace("\"","",$detail); 00070 -00071 $sql = "select * from import_tmp +00071 $sql = "select * from import_tmp 00072 where 00073 code='".$code."' and 00074 num_compte='".$num_compte."'"; @@ -115,7 +115,7 @@ 00111 } // file is read 00112 fclose($handle); 00113 ?> -
              Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/fortis__be_8inc_8php.html b/doc/developper/html/fortis__be_8inc_8php.html index d37863a2d..5b00789b6 100644 --- a/doc/developper/html/fortis__be_8inc_8php.html +++ b/doc/developper/html/fortis__be_8inc_8php.html @@ -301,7 +301,7 @@ Definition at line Definition at line 71 of file fortis_be.inc.php. -
              Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
              Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
              diff --git a/doc/developper/html/functions.html b/doc/developper/html/functions.html index d1eee54a3..24b4a27a0 100644 --- a/doc/developper/html/functions.html +++ b/doc/developper/html/functions.html @@ -115,7 +115,7 @@ Here is a list of all struct and union fields with links to the structures/union : Supplier, Customer, Admin
            • $wordSpaceAdjust : Cpdf
            • $y : Cezpdf
            -
            Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
            Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
            diff --git a/doc/developper/html/functions_0x61.html b/doc/developper/html/functions_0x61.html index 957714449..c8ed8116b 100644 --- a/doc/developper/html/functions_0x61.html +++ b/doc/developper/html/functions_0x61.html @@ -34,7 +34,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
          • ARC4_init() : Cpdf
          • Attribut() : Attribut
          -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/functions_0x62.html b/doc/developper/html/functions_0x62.html index 318a6254a..6480d4e90 100644 --- a/doc/developper/html/functions_0x62.html +++ b/doc/developper/html/functions_0x62.html @@ -15,7 +15,7 @@ Here is a list of all struct and union fields with links to the structures/union
        • Balance() : Balance
        • blank() : fiche
        -
        Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
        Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
        diff --git a/doc/developper/html/functions_0x63.html b/doc/developper/html/functions_0x63.html index b75b5f304..094983174 100644 --- a/doc/developper/html/functions_0x63.html +++ b/doc/developper/html/functions_0x63.html @@ -26,7 +26,7 @@ Here is a list of all struct and union fields with links to the structures/union : Creport
      • curve() : Cpdf
      • Customer() : Customer
      -
      Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
      Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
      diff --git a/doc/developper/html/functions_0x64.html b/doc/developper/html/functions_0x64.html index d10833c38..9e389139f 100644 --- a/doc/developper/html/functions_0x64.html +++ b/doc/developper/html/functions_0x64.html @@ -20,7 +20,7 @@ Here is a list of all struct and union fields with links to the structures/union : Document_modele
    • document_type() : Document_type
    • dots() : Creport
    -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x65.html b/doc/developper/html/functions_0x65.html index c1d07a412..10ed59145 100644 --- a/doc/developper/html/functions_0x65.html +++ b/doc/developper/html/functions_0x65.html @@ -40,7 +40,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cezpdf
  • ezText() : Cezpdf
  • ezWhatPageNumber() : Cezpdf
-
Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
diff --git a/doc/developper/html/functions_0x66.html b/doc/developper/html/functions_0x66.html index 320bbdb63..f244db9c7 100644 --- a/doc/developper/html/functions_0x66.html +++ b/doc/developper/html/functions_0x66.html @@ -20,7 +20,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • filterText() : Cpdf
  • form() : Document_modele -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x67.html b/doc/developper/html/functions_0x67.html index c635862a6..8630d1259 100644 --- a/doc/developper/html/functions_0x67.html +++ b/doc/developper/html/functions_0x67.html @@ -38,7 +38,7 @@ Here is a list of all struct and union fields with links to the structures/union : poste
  • GetSoldeDetail() : poste
  • getTextWidth() : Cpdf -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x68.html b/doc/developper/html/functions_0x68.html index 5ee285cf5..938191188 100644 --- a/doc/developper/html/functions_0x68.html +++ b/doc/developper/html/functions_0x68.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

    - h -

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

    - j -

    -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x6c.html b/doc/developper/html/functions_0x6c.html index d376b14f3..d4b26c564 100644 --- a/doc/developper/html/functions_0x6c.html +++ b/doc/developper/html/functions_0x6c.html @@ -16,7 +16,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • LoadAll() : parm_code, fiche_def_ref
  • loadTemplate() : Cezpdf -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x6d.html b/doc/developper/html/functions_0x6d.html index 88eeb1096..a3f234a4e 100644 --- a/doc/developper/html/functions_0x6d.html +++ b/doc/developper/html/functions_0x6d.html @@ -16,7 +16,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • MoveDocumentPj() : Document
  • myList() : Document_modele, action -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x6e.html b/doc/developper/html/functions_0x6e.html index 2d2111744..5b72695b0 100644 --- a/doc/developper/html/functions_0x6e.html +++ b/doc/developper/html/functions_0x6e.html @@ -15,7 +15,7 @@ Here is a list of all struct and union fields with links to the structures/union
  • newDocument() : Cpdf
  • newPage() : Cpdf -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x6f.html b/doc/developper/html/functions_0x6f.html index 55f093c34..df2af352c 100644 --- a/doc/developper/html/functions_0x6f.html +++ b/doc/developper/html/functions_0x6f.html @@ -34,7 +34,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • output() : Cpdf
  • Own() : Own -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x70.html b/doc/developper/html/functions_0x70.html index 99d70bc96..08ce62c2b 100644 --- a/doc/developper/html/functions_0x70.html +++ b/doc/developper/html/functions_0x70.html @@ -23,7 +23,7 @@ Here is a list of all struct and union fields with links to the structures/union : Cpdf
  • PRVTcheckTextDirective1() : Cpdf
  • PRVTgetTextPosition() : Cpdf -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x72.html b/doc/developper/html/functions_0x72.html index 8169cb542..628c633fc 100644 --- a/doc/developper/html/functions_0x72.html +++ b/doc/developper/html/functions_0x72.html @@ -21,7 +21,7 @@ Here is a list of all struct and union fields with links to the structures/union : widget
  • restoreState() : Cpdf
  • rf() : Creport -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x73.html b/doc/developper/html/functions_0x73.html index 8879771c5..5664d1fa3 100644 --- a/doc/developper/html/functions_0x73.html +++ b/doc/developper/html/functions_0x73.html @@ -36,7 +36,7 @@ Here is a list of all struct and union fields with links to the structures/union : widget
  • Summary() : Supplier, Customer, contact, Admin
  • Supplier() : Supplier -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_0x74.html b/doc/developper/html/functions_0x74.html index 97183f983..fd11a2f6a 100644 --- a/doc/developper/html/functions_0x74.html +++ b/doc/developper/html/functions_0x74.html @@ -14,7 +14,7 @@ Here is a list of all struct and union fields with links to the structures/union

    - t -

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

    - v -

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

    - w -

    -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_func.html b/doc/developper/html/functions_func.html index e3c8863ce..8ef280aa9 100644 --- a/doc/developper/html/functions_func.html +++ b/doc/developper/html/functions_func.html @@ -240,7 +240,7 @@

    - w -

    -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/functions_vars.html b/doc/developper/html/functions_vars.html index 37bb13209..d93bea1c9 100644 --- a/doc/developper/html/functions_vars.html +++ b/doc/developper/html/functions_vars.html @@ -115,7 +115,7 @@ : Supplier, Customer, Admin
  • $wordSpaceAdjust : Cpdf
  • $y : Cezpdf -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals.html b/doc/developper/html/globals.html index 5f8d7402d..43a8f9011 100644 --- a/doc/developper/html/globals.html +++ b/doc/developper/html/globals.html @@ -30,7 +30,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : print_balance.php, bilan.php, balance.php
  • $bal : print_balance.php, bal_csv.php
  • $banque : user_action_fin.php
  • $bar -: recherche.php, jrn_search.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $bar2 +: recherche.php, jrn_search.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $bar2 : user_action_ven.php, user_action_ach.php
  • $bits : readme.php
  • $bnb_form : bilan.php
  • $bnb_rtf @@ -66,7 +66,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : contact.inc.php
  • $contents : readme.php
  • $count : send_jrn_pdf.php, jrn_pdf.php, admin_repo.php
  • $current -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $customer +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $customer : listing_client.php, impress_listing_client.php, client.inc.php
  • $d : impress_jrn.php
  • $d_id : action.inc.php
  • $data @@ -103,16 +103,16 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : setup.php
  • $flag_php : setup.php
  • $Form : form_pdf.php, form_csv.php, impress_rapport.php
  • $form -: user_action_ven.php, facture.inc.php, depense.inc.php
  • $g_dossier +: user_action_ven.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $g_dossier : user_jrn.php
  • $g_name : user_compta.php
  • $g_pass : login.php
  • $g_user : user_jrn.php, login.php
  • $grp_new : annulation.php
  • $h : poste.inc.php
  • $h_url -: facture.inc.php, depense.inc.php, contact.inc.php, action.inc.php
  • $height +: facture.inc.php, depense.inc.php, contact.inc.php, bank.inc.php, action.inc.php
  • $height : readme.php
  • $hid -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, balance.php
  • $i +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, bank.inc.php, balance.php
  • $i : balance.php
  • $idx : fiche_def.inc.php
  • $inc_path : setup.php
  • $index @@ -122,7 +122,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : show_pj.php
  • $Jrn : jrn_csv.php, impress_jrn.php
  • $jrn_op : jrn_op_detail.php
  • $l -: line_update.php, impress_fiche.php, facture.inc.php, depense.inc.php
  • $l2_count +: line_update.php, impress_fiche.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $l2_count : user_sec.php
  • $l2_line : user_sec.php
  • $l2_Res : user_sec.php
  • $l_centr @@ -164,13 +164,13 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : parametre.php
  • $n : line_update.php, fiche_new.php
  • $nb : user_action_ven.php
  • $nb_number -: user_action_ven.php, user_action_ods.php, user_action_fin.php
  • $nPoste +: user_action_ven.php, user_action_ods.php, user_action_fin.php, bank.inc.php
  • $nPoste : send_poste_pdf.php
  • $Num : ing_be.inc.php, fortis_be.inc.php
  • $num : jrn_detail.php, jrn_add.php
  • $o : fiche_csv.php
  • $object : poste.inc.php
  • $offset -: send_jrn_pdf.php, jrn_search.php, jrn_pdf.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $ok +: send_jrn_pdf.php, jrn_search.php, jrn_pdf.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $ok : readme.php
  • $old : impress_fiche.php
  • $old_line : line_update.php
  • $old_oid @@ -194,7 +194,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : line_update.php
  • $p_parent : line_update.php
  • $p_val : line_update.php
  • $page -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $paid +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $paid : user_action_ven.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $part : jrn_search.php
  • $pass5 : admin_repo.php
  • $pdf @@ -202,22 +202,22 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : readme.php
  • $per_text : print_balance.php
  • $periode_end : impress_rapport.php, impress_poste.php, impress_jrn.php, impress_fiche.php, impress_bilan.php, balance.php
  • $periode_start -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_bilan.php, facture.inc.php, depense.inc.php, balance.php
  • $poste +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_bilan.php, facture.inc.php, depense.inc.php, bank.inc.php, balance.php
  • $poste : send_poste_pdf.php
  • $Poste : poste_pdf.php, poste_csv.php, impress_poste.php
  • $poste_comptable : ing_be.inc.php, fortis_be.inc.php
  • $priv : user_login.php, sec_pdf.php, priv_user.php
  • $qcode -: facture.inc.php, depense.inc.php, contact.inc.php
  • $r -: stock.php, show_pj.php, show_document_modele.php, modify_op.php, fiche_search.php, readme.php, user_update.php, user_action_ods.php, user_action_fin.php, user_action_ach.php
  • $r_UID +: facture.inc.php, depense.inc.php, contact.inc.php, bank.inc.php
  • $r +: stock.php, show_pj.php, show_document_modele.php, modify_op.php, fiche_search.php, readme.php, user_update.php, user_action_ods.php, user_action_fin.php, user_action_ach.php
  • $r_UID : priv_user.php
  • $rap_cred : send_jrn_pdf.php, jrn_pdf.php
  • $rap_deb : send_jrn_pdf.php, jrn_pdf.php
  • $rcred : jrn_detail.php
  • $rdeb : jrn_detail.php
  • $Rep : user_pref.php
  • $rep -: user_sec.php, user_login.php, user_compta.php, user_advanced.php, show_tva.php, sec_pdf.php, priv_user.php, print_balance.php, poste_search.php, pcmn_update.php, parametre.php, modify_op.php, login.php, line_update.php, jrn_update.php, jrn_search.php, jrn_op_detail.php, jrn_detail.php, jrn_csv.php, jrn_add.php, form.php, fiche_search.php, fiche_new.php, fiche_csv.php, fiche.php, export_ouv.php, commercial.php, central.php, admin_repo.php, impress_poste.php
  • $Res -: user_sec.php, stock.php, show_tva.php, sec_pdf.php, priv_user.php, jrn_search.php, jrn_detail.php, jrn_add.php, fiche_new.php, annulation.php, admin_repo.php, setup.php, user_action_ven.php, user_action_ach.php, tva.inc.php, periode.inc.php, ing_be.inc.php, fortis_be.inc.php, facture.inc.php, eub_be.inc.php, depense.inc.php
  • $res -: user_login.php, pref.inc.php
  • $Res2 +: user_sec.php, user_login.php, user_compta.php, user_advanced.php, show_tva.php, sec_pdf.php, priv_user.php, print_balance.php, poste_search.php, pcmn_update.php, parametre.php, modify_op.php, login.php, line_update.php, jrn_update.php, jrn_search.php, jrn_op_detail.php, jrn_detail.php, jrn_csv.php, jrn_add.php, form.php, fiche_search.php, fiche_new.php, fiche_csv.php, fiche.php, export_ouv.php, commercial.php, central.php, admin_repo.php, impress_poste.php
  • $res +: user_login.php, pref.inc.php
  • $Res +: user_sec.php, stock.php, show_tva.php, sec_pdf.php, priv_user.php, jrn_search.php, jrn_detail.php, jrn_add.php, fiche_new.php, annulation.php, admin_repo.php, setup.php, user_action_ven.php, user_action_ach.php, tva.inc.php, periode.inc.php, ing_be.inc.php, fortis_be.inc.php, facture.inc.php, eub_be.inc.php, depense.inc.php
  • $Res2 : setup.php
  • $ResAccount : user_action_fin.php
  • $Resdossier : setup.php
  • $result @@ -239,13 +239,13 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : impress_fiche.php
  • $solde_type : poste_csv.php
  • $Sql : priv_user.php, poste_search.php, jrn_detail.php, jrn_add.php, eub_be.inc.php
  • $sql -: jrn_search.php, fiche_search.php, export_ouv.php, annulation.php, admin_repo.php, setup.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, ing_be.inc.php, fortis_be.inc.php, facture.inc.php, depense.inc.php
  • $sql_from +: jrn_search.php, fiche_search.php, export_ouv.php, annulation.php, admin_repo.php, setup.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, ing_be.inc.php, fortis_be.inc.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $sql_from : export_ouv.php
  • $sql_limit : jrn_search.php
  • $sql_offset : jrn_search.php
  • $sql_to : export_ouv.php
  • $start : bilan.php
  • $step -: send_jrn_pdf.php, jrn_pdf.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php
  • $str_cred +: send_jrn_pdf.php, jrn_pdf.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, facture.inc.php, depense.inc.php, bank.inc.php
  • $str_cred : send_poste_pdf.php, poste_pdf.php
  • $str_credit : send_jrn_pdf.php, jrn_pdf.php
  • $str_debit : send_poste_pdf.php, send_jrn_pdf.php, poste_pdf.php, jrn_pdf.php
  • $str_err @@ -253,8 +253,8 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : facture.inc.php
  • $str_user : sec_pdf.php
  • $style : pref.inc.php
  • $sub_action -: supplier.inc.php, facture.inc.php, document_modele.inc.php, depense.inc.php, contact.inc.php, client.inc.php, admin.inc.php, action.inc.php
  • $submit -: parametre.php, user_action_ods.php, user_action_fin.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_fiche.php, depense.inc.php
  • $sup +: supplier.inc.php, facture.inc.php, document_modele.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, admin.inc.php, action.inc.php
  • $submit +: parametre.php, user_action_ods.php, user_action_fin.php, impress_rapport.php, impress_poste.php, impress_jrn.php, impress_fiche.php, depense.inc.php, bank.inc.php
  • $sup : supplier.inc.php, admin.inc.php
  • $supplier : supplier.inc.php
  • $t : impress_rapport.php
  • $t_cent @@ -277,12 +277,12 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_sec.php, user_pref.php, user_login.php, user_jrn.php, user_impress.php, user_compta.php, user_advanced.php, stock.php, show_tva.php, show_pj.php, show_document_modele.php, show_document.php, sec_pdf.php, recherche.php, priv_user.php, print_balance.php, poste_search.php, poste_csv.php, pcmn_update.php, parametre.php, modify_op.php, login.php, listing_client.php, line_update.php, jrn_update.php, jrn_search.php, jrn_pdf.php, jrn_op_detail.php, jrn_detail.php, jrn_csv.php, jrn_add.php, import.php, form_csv.php, form.php, fiche_search.php, fiche_new.php, fiche_csv.php, fiche.php, export_ouv.php, ecrit_ouv.php, commercial.php, central.php, bilan.php, bal_csv.php, annulation.php, admin_repo.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php
  • $val : tva.inc.php
  • $vir_interne : user_action_fin.php
  • $w -: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_fiche.php, impress_bilan.php, fiche_def.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, balance.php, admin.inc.php
  • $W1 +: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_fiche.php, impress_bilan.php, fiche_def.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, balance.php, admin.inc.php
  • $W1 : action.inc.php
  • $x : ecrit_ouv.php
  • $xpos : readme.php
  • $year : impress_listing_client.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x5f.html b/doc/developper/html/globals_0x5f.html index 100eb6161..f3350a0f4 100644 --- a/doc/developper/html/globals_0x5f.html +++ b/doc/developper/html/globals_0x5f.html @@ -19,7 +19,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : readme.php
  • __pad4__ : readme.php
  • __pad5__ : readme.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x61.html b/doc/developper/html/globals_0x61.html index 32ff45c92..597b3f5b0 100644 --- a/doc/developper/html/globals_0x61.html +++ b/doc/developper/html/globals_0x61.html @@ -42,7 +42,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE : constant.php
  • ATTR_DEF_TVA_NON_DEDUCTIBLE_RECUP : constant.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x62.html b/doc/developper/html/globals_0x62.html index a5b9128df..d873631b6 100644 --- a/doc/developper/html/globals_0x62.html +++ b/doc/developper/html/globals_0x62.html @@ -20,7 +20,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_impress.php
  • BQE : constant.php
  • break : user_impress.php, readme.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x63.html b/doc/developper/html/globals_0x63.html index b6784747b..f947b4c1e 100644 --- a/doc/developper/html/globals_0x63.html +++ b/doc/developper/html/globals_0x63.html @@ -32,7 +32,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : jrn.php
  • CountSql() : postgres.php
  • CreatePeriodeCond() : impress_inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x64.html b/doc/developper/html/globals_0x64.html index 4df91a703..d2025e97d 100644 --- a/doc/developper/html/globals_0x64.html +++ b/doc/developper/html/globals_0x64.html @@ -25,7 +25,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_inc.php
  • domaine : constant.php
  • dt_id : action.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x65.html b/doc/developper/html/globals_0x65.html index f072eed4b..f094ee1c4 100644 --- a/doc/developper/html/globals_0x65.html +++ b/doc/developper/html/globals_0x65.html @@ -31,7 +31,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • extra : action.inc.php
  • extra2 : action.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x66.html b/doc/developper/html/globals_0x66.html index 4753edc97..fa084b8eb 100644 --- a/doc/developper/html/globals_0x66.html +++ b/doc/developper/html/globals_0x66.html @@ -40,7 +40,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_def.inc.php
  • frd_id : fiche_def.inc.php
  • frd_text : fiche_def.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x67.html b/doc/developper/html/globals_0x67.html index 2cb0fdf42..423d4c027 100644 --- a/doc/developper/html/globals_0x67.html +++ b/doc/developper/html/globals_0x67.html @@ -17,7 +17,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_inc.php
  • Get_attr_min() : fiche_inc.php
  • Get_fiche_def_ref() : fiche_inc.php
  • get_quick_key() -: user_menu.php
  • GetAllUser() +: user_menu.php
  • GetAllUser() : postgres.php
  • GetAmount() : jrn.php
  • GetArray() : postgres.php
  • GetAvailableFolder() @@ -46,7 +46,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : fiche_inc.php
  • getFicheNameById() : fiche_inc.php
  • getFicheNameCode() : stock_inc.php
  • GetFirstJrnIdForJrnType() -: user_menu.php
  • GetFormName() +: user_menu.php
  • GetFormName() : form_inc.php
  • GetFormulaValue() : impress_inc.php
  • GetGrpt() : user_common.php
  • GetInternal() @@ -76,7 +76,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : postgres.php
  • GetVersion() : setup.php
  • GJRN : constant.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x68.html b/doc/developper/html/globals_0x68.html index 98e4d2a6e..1862bb876 100644 --- a/doc/developper/html/globals_0x68.html +++ b/doc/developper/html/globals_0x68.html @@ -17,7 +17,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : ac_common.php
  • html_page_start() : ac_common.php
  • html_page_stop() : ac_common.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x69.html b/doc/developper/html/globals_0x69.html index b03cf4ebb..547d5b793 100644 --- a/doc/developper/html/globals_0x69.html +++ b/doc/developper/html/globals_0x69.html @@ -13,9 +13,9 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - i -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6a.html b/doc/developper/html/globals_0x6a.html index 4ff027a89..fbe9b2663 100644 --- a/doc/developper/html/globals_0x6a.html +++ b/doc/developper/html/globals_0x6a.html @@ -24,7 +24,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • JS_VIEW_JRN_DETAIL : constant.php
  • JS_VIEW_JRN_MODIFY : constant.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6c.html b/doc/developper/html/globals_0x6c.html index bf8a6c622..5362c44bf 100644 --- a/doc/developper/html/globals_0x6c.html +++ b/doc/developper/html/globals_0x6c.html @@ -17,7 +17,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • list_client : user_impress.php
  • ListJrn() : user_common.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6d.html b/doc/developper/html/globals_0x6d.html index 5e30e809b..2be19540b 100644 --- a/doc/developper/html/globals_0x6d.html +++ b/doc/developper/html/globals_0x6d.html @@ -21,8 +21,8 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • MENU_FICHE : constant.php
  • MENU_PARAM : constant.php
  • MenuAdmin() -: user_menu.php
  • MenuJrn() -: user_menu.php
  • METHOD +: user_menu.php
  • MenuJrn() +: user_menu.php
  • METHOD : pref.inc.php
  • MPCMN : constant.php
  • MY_COMMUNE : parametre.php
  • MY_CP @@ -31,7 +31,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : parametre.php
  • MY_STREET : parametre.php
  • MY_TVA : parametre.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6e.html b/doc/developper/html/globals_0x6e.html index 90a311a55..c08ef1f47 100644 --- a/doc/developper/html/globals_0x6e.html +++ b/doc/developper/html/globals_0x6e.html @@ -13,7 +13,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - n -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x6f.html b/doc/developper/html/globals_0x6f.html index ed04bcc2c..134867c24 100644 --- a/doc/developper/html/globals_0x6f.html +++ b/doc/developper/html/globals_0x6f.html @@ -15,7 +15,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li
  • ODS : constant.php
  • OPEN : constant.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x70.html b/doc/developper/html/globals_0x70.html index 9ea92fe98..9caee2fc2 100644 --- a/doc/developper/html/globals_0x70.html +++ b/doc/developper/html/globals_0x70.html @@ -24,7 +24,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : user_impress.php
  • PosteForm() : poste.php
  • print : impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x72.html b/doc/developper/html/globals_0x72.html index a916d4945..9d599644b 100644 --- a/doc/developper/html/globals_0x72.html +++ b/doc/developper/html/globals_0x72.html @@ -27,7 +27,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : priv_user.php, parametre.php, listing_client.php, jrn_search.php, form.php, fiche_new.php, admin_repo.php, user_action_ach.php, periode.inc.php, impress_listing_client.php
  • Rollback() : postgres.php
  • ros_logo() : readme.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x73.html b/doc/developper/html/globals_0x73.html index 50683940e..c8f4e2842 100644 --- a/doc/developper/html/globals_0x73.html +++ b/doc/developper/html/globals_0x73.html @@ -16,24 +16,24 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : postgres.php
  • SaveModeleName() : fiche_inc.php
  • SECU : constant.php
  • selected -: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, action.inc.php
  • SetInternalCode() +: user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_jrn.php, impress_fiche.php, facture.inc.php, depense.inc.php, bank.inc.php, action.inc.php
  • SetInternalCode() : jrn.php
  • ShowActionList() : action.inc.php
  • ShowDevise() : preference.php
  • ShowDossier() : postgres.php
  • ShowFormTransfert() : import_inc.php
  • ShowItem() : ac_common.php
  • ShowJrn() -: user_menu.php
  • ShowMenuAdvanced() -: user_menu.php
  • ShowMenuCompta() -: user_menu.php
  • ShowMenuComptaForm() -: user_menu.php
  • ShowMenuDocument() -: user_menu.php
  • ShowMenuFiche() -: user_menu.php
  • ShowMenuImport() -: user_menu.php
  • ShowMenuJrn() -: user_menu.php
  • ShowMenuJrnUser() -: user_menu.php
  • ShowMenuParam() -: user_menu.php
  • ShowMenuPcmn() -: user_menu.php
  • ShowPeriode() +: user_menu.php
  • ShowMenuAdvanced() +: user_menu.php
  • ShowMenuCompta() +: user_menu.php
  • ShowMenuComptaForm() +: user_menu.php
  • ShowMenuDocument() +: user_menu.php
  • ShowMenuFiche() +: user_menu.php
  • ShowMenuImport() +: user_menu.php
  • ShowMenuJrn() +: user_menu.php
  • ShowMenuJrnUser() +: user_menu.php
  • ShowMenuParam() +: user_menu.php
  • ShowMenuPcmn() +: user_menu.php
  • ShowPeriode() : preference.php
  • ShowReportResult() : impress_rapport.php
  • size : annulation.php, tva.inc.php
  • SortAttributeById() @@ -47,7 +47,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : constant.php
  • success< br > : test.php, setup.php
  • SyncRight() : postgres.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x74.html b/doc/developper/html/globals_0x74.html index 2f7b937b6..29395a7a4 100644 --- a/doc/developper/html/globals_0x74.html +++ b/doc/developper/html/globals_0x74.html @@ -16,7 +16,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li : parametre.php, ecrit_ouv.php, impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php, balance.php
  • template_dir : test_smarty.php
  • TransferCSV() : import_inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x75.html b/doc/developper/html/globals_0x75.html index 1779d90c3..fe7c41bb9 100644 --- a/doc/developper/html/globals_0x75.html +++ b/doc/developper/html/globals_0x75.html @@ -13,16 +13,15 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - u -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_0x76.html b/doc/developper/html/globals_0x76.html index 43e9d67b0..d80742011 100644 --- a/doc/developper/html/globals_0x76.html +++ b/doc/developper/html/globals_0x76.html @@ -13,7 +13,7 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li

    - v -

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

    - y -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_enum.html b/doc/developper/html/globals_enum.html index 931261030..652043ed8 100644 --- a/doc/developper/html/globals_enum.html +++ b/doc/developper/html/globals_enum.html @@ -133,7 +133,7 @@

    - y -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_func.html b/doc/developper/html/globals_func.html index 273754938..e53b36209 100644 --- a/doc/developper/html/globals_func.html +++ b/doc/developper/html/globals_func.html @@ -72,7 +72,7 @@ : fiche_inc.php
  • Get_attr_min() : fiche_inc.php
  • Get_fiche_def_ref() : fiche_inc.php
  • get_quick_key() -: user_menu.php
  • GetAllUser() +: user_menu.php
  • GetAllUser() : postgres.php
  • GetAmount() : jrn.php
  • GetArray() : postgres.php
  • GetAvailableFolder() @@ -101,7 +101,7 @@ : fiche_inc.php
  • getFicheNameById() : fiche_inc.php
  • getFicheNameCode() : stock_inc.php
  • GetFirstJrnIdForJrnType() -: user_menu.php
  • GetFormName() +: user_menu.php
  • GetFormName() : form_inc.php
  • GetFormulaValue() : impress_inc.php
  • GetGrpt() : user_common.php
  • GetInternal() @@ -160,8 +160,8 @@
  • make_array() : ac_common.php
  • MakeListingVat() : decla.BE.inc.php
  • MenuAdmin() -: user_menu.php
  • MenuJrn() -: user_menu.php +: user_menu.php
  • MenuJrn() +: user_menu.php

    - n -

    - u -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x5f.html b/doc/developper/html/globals_vars_0x5f.html index bab38e036..f6f8efd80 100644 --- a/doc/developper/html/globals_vars_0x5f.html +++ b/doc/developper/html/globals_vars_0x5f.html @@ -19,7 +19,7 @@ : readme.php
  • __pad4__ : readme.php
  • __pad5__ : readme.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x61.html b/doc/developper/html/globals_vars_0x61.html index a75cc6a79..5d6732f72 100644 --- a/doc/developper/html/globals_vars_0x61.html +++ b/doc/developper/html/globals_vars_0x61.html @@ -17,7 +17,7 @@ : action.inc.php
  • ag_id : facture.inc.php, action.inc.php
  • ag_title : action.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x62.html b/doc/developper/html/globals_vars_0x62.html index 83dfcdaac..c5ddba224 100644 --- a/doc/developper/html/globals_vars_0x62.html +++ b/doc/developper/html/globals_vars_0x62.html @@ -16,7 +16,7 @@ : user_impress.php
  • bilan : user_impress.php
  • break : user_impress.php, readme.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x63.html b/doc/developper/html/globals_vars_0x63.html index 30f3d6887..c0e165dd7 100644 --- a/doc/developper/html/globals_vars_0x63.html +++ b/doc/developper/html/globals_vars_0x63.html @@ -16,7 +16,7 @@ : test_smarty.php
  • compile_dir : test_smarty.php
  • config_dir : test_smarty.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x64.html b/doc/developper/html/globals_vars_0x64.html index fdee7f77c..356244134 100644 --- a/doc/developper/html/globals_vars_0x64.html +++ b/doc/developper/html/globals_vars_0x64.html @@ -16,7 +16,7 @@ : action.inc.php
  • disabled : impress_poste.php
  • dt_id : action.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x65.html b/doc/developper/html/globals_vars_0x65.html index 5ee4044ae..791d9b5dc 100644 --- a/doc/developper/html/globals_vars_0x65.html +++ b/doc/developper/html/globals_vars_0x65.html @@ -17,7 +17,7 @@ : user_sec.php, user_jrn.php, show_tva.php, show_pj.php, show_document_modele.php, sec_pdf.php, print_balance.php, poste_csv.php, pcmn_update.php, parametre.php, modify_op.php, line_update.php, jrn_update.php, jrn_search.php, jrn_detail.php, jrn_csv.php, jrn_add.php, fiche_csv.php, export_ouv.php, ecrit_ouv.php, bal_csv.php, annulation.php, admin_repo.php, user_update.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, impress_rapport.php, impress_poste.php, impress_jrn.php, balance.php
  • extra : action.inc.php
  • extra2 : action.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x66.html b/doc/developper/html/globals_vars_0x66.html index 8f6e88123..22dad7b5d 100644 --- a/doc/developper/html/globals_vars_0x66.html +++ b/doc/developper/html/globals_vars_0x66.html @@ -18,7 +18,7 @@ : fiche_def.inc.php
  • frd_id : fiche_def.inc.php
  • frd_text : fiche_def.inc.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x68.html b/doc/developper/html/globals_vars_0x68.html index 5e8a8fce7..f7ded1235 100644 --- a/doc/developper/html/globals_vars_0x68.html +++ b/doc/developper/html/globals_vars_0x68.html @@ -14,7 +14,7 @@

    - h -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x69.html b/doc/developper/html/globals_vars_0x69.html index 5d541ccbe..f2916c762 100644 --- a/doc/developper/html/globals_vars_0x69.html +++ b/doc/developper/html/globals_vars_0x69.html @@ -14,7 +14,7 @@

    - i -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6c.html b/doc/developper/html/globals_vars_0x6c.html index 09ef5ba00..26ee5837e 100644 --- a/doc/developper/html/globals_vars_0x6c.html +++ b/doc/developper/html/globals_vars_0x6c.html @@ -15,7 +15,7 @@
  • label : ecrit_ouv.php, impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php, balance.php, action.inc.php
  • list_client : user_impress.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6d.html b/doc/developper/html/globals_vars_0x6d.html index 7ba391c75..a141f5efa 100644 --- a/doc/developper/html/globals_vars_0x6d.html +++ b/doc/developper/html/globals_vars_0x6d.html @@ -23,7 +23,7 @@ : parametre.php
  • MY_STREET : parametre.php
  • MY_TVA : parametre.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x6e.html b/doc/developper/html/globals_vars_0x6e.html index 1f123935e..75075a587 100644 --- a/doc/developper/html/globals_vars_0x6e.html +++ b/doc/developper/html/globals_vars_0x6e.html @@ -13,8 +13,8 @@

    - n -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, admin.inc.php, action.inc.php +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x70.html b/doc/developper/html/globals_vars_0x70.html index 31e987dc5..effeb319d 100644 --- a/doc/developper/html/globals_vars_0x70.html +++ b/doc/developper/html/globals_vars_0x70.html @@ -17,7 +17,7 @@ : poste.inc.php
  • poste : user_impress.php
  • print : impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x72.html b/doc/developper/html/globals_vars_0x72.html index 866c9b0b9..ab81a179f 100644 --- a/doc/developper/html/globals_vars_0x72.html +++ b/doc/developper/html/globals_vars_0x72.html @@ -16,7 +16,7 @@ : user_impress.php
  • readonly : ecrit_ouv.php
  • return : priv_user.php, parametre.php, listing_client.php, jrn_search.php, form.php, fiche_new.php, admin_repo.php, user_action_ach.php, periode.inc.php, impress_listing_client.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x73.html b/doc/developper/html/globals_vars_0x73.html index a6552a59a..2ece18544 100644 --- a/doc/developper/html/globals_vars_0x73.html +++ b/doc/developper/html/globals_vars_0x73.html @@ -13,11 +13,11 @@

    - s -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x74.html b/doc/developper/html/globals_vars_0x74.html index 858463cfe..c01e72034 100644 --- a/doc/developper/html/globals_vars_0x74.html +++ b/doc/developper/html/globals_vars_0x74.html @@ -15,7 +15,7 @@
  • table : parametre.php, ecrit_ouv.php, impress_rapport.php, impress_poste.php, impress_listing_client.php, impress_jrn.php, impress_bilan.php, balance.php
  • template_dir : test_smarty.php -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x76.html b/doc/developper/html/globals_vars_0x76.html index 70216f30c..0df995884 100644 --- a/doc/developper/html/globals_vars_0x76.html +++ b/doc/developper/html/globals_vars_0x76.html @@ -13,8 +13,8 @@

    - v -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +: ecrit_ouv.php, user_action_ven.php, user_action_ods.php, user_action_gl.php, user_action_fin.php, user_action_ach.php, tva.inc.php, supplier.inc.php, poste.inc.php, facture.inc.php, depense.inc.php, contact.inc.php, client.inc.php, bank.inc.php, admin.inc.php, action.inc.php +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/globals_vars_0x77.html b/doc/developper/html/globals_vars_0x77.html index d6e5e47f3..8d170ef6a 100644 --- a/doc/developper/html/globals_vars_0x77.html +++ b/doc/developper/html/globals_vars_0x77.html @@ -14,7 +14,7 @@

    - w -

    -
    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/hierarchy.html b/doc/developper/html/hierarchy.html index 6b0aa4fee..fd41a9de9 100644 --- a/doc/developper/html/hierarchy.html +++ b/doc/developper/html/hierarchy.html @@ -36,7 +36,7 @@
  • rapport
  • widget -
    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import_8php-source.html b/doc/developper/html/import_8php-source.html index 6b9eeaf4e..64bbd4906 100644 --- a/doc/developper/html/import_8php-source.html +++ b/doc/developper/html/import_8php-source.html @@ -52,17 +52,17 @@ 00047 00048 include_once ("user_menu.php"); 00049 echo '<div class="u_tmenu">'; -00050 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00050 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00051 echo '</div>'; 00052 $cn=DbConnect($_SESSION['g_dossier']); 00053 if ( $User->CheckAction($cn,IMP_BQE)==0){ 00054 /* Cannot Access */ 00055 NoAccess(); 00056 } -00057 echo ShowMenuAdvanced("import.php"); +00057 echo ShowMenuAdvanced("import.php"); 00058 00059 echo '<div class="lmenu">'; -00060 ShowMenuImport(); +00060 ShowMenuImport(); 00061 echo '</div>'; 00062 if ( isset( $_REQUEST['PHPSESSID'])) { 00063 $sessid = $_REQUEST['PHPSESSID']; @@ -102,7 +102,7 @@ 00097 00098 html_page_stop(); 00099 ?> -
    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import_8php.html b/doc/developper/html/import_8php.html index 3899b22f3..b9e91e5fc 100644 --- a/doc/developper/html/import_8php.html +++ b/doc/developper/html/import_8php.html @@ -75,7 +75,7 @@ Definition at line 52 of Definition at line 38 of file import.php. -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import__inc_8php-source.html b/doc/developper/html/import__inc_8php-source.html index 15d0361d6..2502aed3f 100644 --- a/doc/developper/html/import__inc_8php-source.html +++ b/doc/developper/html/import__inc_8php-source.html @@ -52,11 +52,11 @@ 00055 00056 } 00060 function UpdateCSV($p_cn, $code, $poste){ -00061 $sql = "update import_tmp set poste_comptable='".$poste."' where code='".$code."'"; +00061 $sql = "update import_tmp set poste_comptable='".$poste."' where code='".$code."'"; 00062 $Res=ExecSql($p_cn,$sql); 00063 } 00067 function VerifImport($p_cn){ -00068 $sql = "select * from import_tmp where poste_comptable='' or poste_comptable is null"; +00068 $sql = "select * from import_tmp where poste_comptable='' or poste_comptable is null"; 00069 $Res=ExecSql($p_cn,$sql); 00070 $Num=pg_NumRows($Res); 00071 echo $Num." opérations à complèter.<br/><br/>"; @@ -81,12 +81,12 @@ 00093 //$periode = GetUserPeriode($p_cn,$p_user); 00094 //$periode = $p_user->GetPeriode(); 00095 // on trouve les dates frontières de cette période -00096 $sql = "select p_start,p_end from parm_periode where p_id = '".$periode."'"; +00096 $sql = "select p_start,p_end from parm_periode where p_id = '".$periode."'"; 00097 $Res=ExecSql($p_cn,$sql); 00098 $val = pg_fetch_array($Res); 00099 $start = $val['p_start']; $end = $val['p_end']; 00100 -00101 $sql = "select * from import_tmp where poste_comptable is not null and poste_comptable <> '' +00101 $sql = "select * from import_tmp where poste_comptable is not null and poste_comptable <> '' 00102 AND ok <> TRUE AND date_exec BETWEEN '".$start."' and '".$end."'"; 00103 $Res=ExecSql($p_cn,$sql); 00104 //echo "boucle: ".sizeof($Res)."<br/>"; @@ -166,7 +166,7 @@ 00190 echo '</FORM>'; 00191 } 00192 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/import__inc_8php.html b/doc/developper/html/import__inc_8php.html index de43e8527..d0cab941d 100644 --- a/doc/developper/html/import__inc_8php.html +++ b/doc/developper/html/import__inc_8php.html @@ -174,7 +174,7 @@ Transfert data into the ledger.

    Definition at line 90 of file import_inc.php.

    -References $_SESSION, $code, $date_exec, $end, $jrn, $Max, $montant, $poste_comptable, $r, $Res, $Res2, $seq, $sql, $start, $val, Commit(), ExecSql(), exit, InsertJrn(), InsertJrnx(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). +References $_SESSION, $code, $date_exec, $end, $jrn, $Max, $montant, $poste_comptable, $r, $Res, $Res2, $seq, $sql, $start, $val, Commit(), ExecSql(), exit, InsertJrn(), InsertJrnx(), NextSequence(), Rollback(), SetInternalCode(), and StartSql().

    @@ -224,7 +224,7 @@ Update import_tmp with the bank account.

    Definition at line 60 of file import_inc.php.

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

    @@ -258,10 +258,10 @@ Verify the import.

    Definition at line 67 of file import_inc.php.

    -References $i, $Num, $Res, $sql, $val, ExecSql(), METHOD, name, size, table, value, and width. +References $i, $Num, $Res, $sql, $val, ExecSql(), METHOD, name, size, table, value, and width. -


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__bilan_8php-source.html b/doc/developper/html/impress__bilan_8php-source.html index 35b8c868c..f705b9007 100644 --- a/doc/developper/html/impress__bilan_8php-source.html +++ b/doc/developper/html/impress__bilan_8php-source.html @@ -55,7 +55,7 @@ 00053 echo '</FORM>'; 00054 echo '</div>'; 00055 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__bilan_8php.html b/doc/developper/html/impress__bilan_8php.html index ed4666d51..54afe76bb 100644 --- a/doc/developper/html/impress__bilan_8php.html +++ b/doc/developper/html/impress__bilan_8php.html @@ -112,7 +112,7 @@ Definition at line 4

    Definition at line 29 of file impress_bilan.php.

    -Referenced by cl_user::Check(), fiche::Display(), ExecSql(), FormPeriode(), FormPeriodeMult(), Document::Generate(), Document_modele::Get(), Document::Get(), GetJrnName(), rapport::GetName(), poste::GetName(), jrn::GetName(), GetNextFiche(), getPeriodeName(), ImpHtml(), PosteForm(), Document_modele::Save(), save_upload_document(), ShowItem(), ShowMenuJrn(), and Document::Upload(). +Referenced by cl_user::Check(), fiche::Display(), ExecSql(), FormPeriode(), FormPeriodeMult(), Document::Generate(), Document_modele::Get(), Document::Get(), GetJrnName(), rapport::GetName(), poste::GetName(), jrn::GetName(), GetNextFiche(), getPeriodeName(), ImpHtml(), PosteForm(), Document_modele::Save(), save_upload_document(), ShowItem(), ShowMenuJrn(), and Document::Upload().

    @@ -217,7 +217,7 @@ Referenced by ExecuteScript() Definition at line 36 of file impress_bilan.php. -


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__fiche_8php-source.html b/doc/developper/html/impress__fiche_8php-source.html index 2d09f24a1..7e9fce636 100644 --- a/doc/developper/html/impress__fiche_8php-source.html +++ b/doc/developper/html/impress__fiche_8php-source.html @@ -41,14 +41,14 @@ 00033 include_once("class_poste.php"); 00034 00035 echo '<div class="u_content">'; -00036 $submit=new widget(); +00036 $submit=new widget(); 00037 $hid=new widget("hidden"); 00038 $fiche_id=new widget("hidden"); 00039 $w=new widget("select"); 00040 $fiche_def=new fiche_def($cn); 00041 00042 echo '<form method="POST" ACTION="fiche_csv.php">'. -00043 $submit->Submit('bt_csv',"Export CSV"). +00043 $submit->Submit('bt_csv',"Export CSV"). 00044 $hid->IOValue("type","fiche"). 00045 $fiche_id->IOValue("fd_id",$_REQUEST['fd_id']); 00046 if ($with_amount) { @@ -75,7 +75,7 @@ 00067 print " Jusque ".$w->IOValue('to_periode',$periode_end); 00068 00069 -00070 print $submit->Submit('bt_solde',"Avec solde"). +00070 print $submit->Submit('bt_solde',"Avec solde"). 00071 $hid->IOValue("type","fiche"). 00072 $fiche_id->IOValue("fd_id",$_REQUEST['fd_id']). 00073 $hid->IOValue("with_amount"); @@ -85,7 +85,7 @@ 00077 00078 $fiche=new fiche($cn); 00079 $e=$fiche->GetByType($fiche_def->id); -00080 $l=var_export($e,true); +00080 $l=var_export($e,true); 00081 echo_debug('impress_fiche.php',__LINE__,$l); 00082 $old=-1; 00083 echo "<TABLE class=\"result\">"; @@ -147,7 +147,7 @@ 00139 } 00140 00141 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__fiche_8php.html b/doc/developper/html/impress__fiche_8php.html index e1b91c169..a988bd8bd 100644 --- a/doc/developper/html/impress__fiche_8php.html +++ b/doc/developper/html/impress__fiche_8php.html @@ -66,7 +66,7 @@

    Definition at line 26 of file impress_fiche.php.

    -Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), cl_user::GetGlobalPref(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), cl_user::insert_default_global_pref(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), SyncRight(), cl_user::update_global_pref(), and ViewJrn(). +Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), cl_user::GetGlobalPref(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), cl_user::insert_default_global_pref(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), SyncRight(), cl_user::update_global_pref(), and ViewJrn().

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

    Definition at line 79 of file impress_fiche.php.

    -Referenced by fiche::getAttribut(), jrn_navigation_bar(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordODS(), RecordSell(), fiche::strAttribut(), Supplier::Summary(), Customer::Summary(), Admin::Summary(), and Customer::VatListing(). +Referenced by fiche::getAttribut(), jrn_navigation_bar(), ParseFormula(), RecordFin(), RecordInvoice(), RecordJrn(), RecordODS(), RecordSell(), fiche::strAttribut(), Supplier::Summary(), Customer::Summary(), Admin::Summary(), and Customer::VatListing().

    @@ -304,7 +304,7 @@ Definition at line 6

    Definition at line 110 of file impress_fiche.php.

    -Referenced by FormFin(), and ImpHtml(). +Referenced by FormFin(), and ImpHtml().

    @@ -407,7 +407,7 @@ Definition at line 5 Definition at line 63 of file impress_fiche.php. -


    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__inc_8php-source.html b/doc/developper/html/impress__inc_8php-source.html index 9ccf2e2a6..ebbf24b95 100644 --- a/doc/developper/html/impress__inc_8php-source.html +++ b/doc/developper/html/impress__inc_8php-source.html @@ -522,7 +522,7 @@ 00633 " and c_order $cmp $p_jrnx_id "); 00634 00635 if ($c_line == 0 ) { return array (0,0); } -00636 $sql="select sum(c_montant) as tot_amount ". +00636 $sql="select sum(c_montant) as tot_amount ". 00637 " from centralized ". 00638 " left join parm_periode on c_periode=p_id ". 00639 " inner join jrn on jr_grpt_id=c_grp ". @@ -558,7 +558,7 @@ 00669 " and c_id $cmp $p_jrnx_id "); 00670 00671 if ($c_line == 0 ) { return array (0,0); } -00672 $sql="select sum(c_montant) as tot_amount ". +00672 $sql="select sum(c_montant) as tot_amount ". 00673 " from centralized ". 00674 " left join parm_periode on c_periode=p_id ". 00675 " where ". @@ -663,8 +663,8 @@ 00805 if (pg_NumRows($Res)==0){ 00806 $l_debit=0; 00807 } else { -00808 $l=pg_fetch_array($Res,0); -00809 $l_debit=$l['montant']; +00808 $l=pg_fetch_array($Res,0); +00809 $l_debit=$l['montant']; 00810 } 00811 // somme credit 00812 $Res=ExecSql($p_cn,"select sum (j_montant) as montant from @@ -672,8 +672,8 @@ 00814 if (pg_NumRows($Res)==0) { 00815 $l_credit=0; 00816 } else { -00817 $l=pg_fetch_array($Res,0); -00818 $l_credit=$l['montant']; +00817 $l=pg_fetch_array($Res,0); +00818 $l_credit=$l['montant']; 00819 } 00820 00821 if ( $l_credit==$l_debit) { @@ -723,7 +723,7 @@ 00876 } 00877 00878 ?> -
    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
    diff --git a/doc/developper/html/impress__inc_8php.html b/doc/developper/html/impress__inc_8php.html index 82bf01b1e..4580983b6 100644 --- a/doc/developper/html/impress__inc_8php.html +++ b/doc/developper/html/impress__inc_8php.html @@ -397,7 +397,7 @@ $p_label

      Definition at line 797 of file impress_inc.php.

      -References $l, $Res, and ExecSql(). +References $l, $Res, and ExecSql().

      Referenced by ImpHtml(). @@ -478,7 +478,7 @@ $p_jrnx_id jrnx.j_id

        Definition at line 614 of file impress_inc.php.

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

        @@ -572,7 +572,7 @@ connection gen :

          Definition at line 117 of file impress_inc.php.

          -References $array, $c, $col, $cond, $i, $l_line, $Max, $nPoste, $poste, $Res, $ret, $solde, CreatePeriodeCond(), echo_debug(), ExecSql(), GetDataJrn(), GetDataPoste(), GetFormulaValue(), and GetPosteLibelle(). +References $array, $c, $col, $cond, $i, $l_line, $Max, $nPoste, $poste, $Res, $ret, $solde, CreatePeriodeCond(), echo_debug(), ExecSql(), GetDataJrn(), GetDataPoste(), GetFormulaValue(), and GetPosteLibelle().

          Referenced by Imp(). @@ -699,7 +699,7 @@ Definition at line 36< References $centr, echo_debug(), FormPeriodeMult(), METHOD, name, PosteForm(), and value. -


          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__jrn_8php-source.html b/doc/developper/html/impress__jrn_8php-source.html index e616b0089..1d2647d30 100644 --- a/doc/developper/html/impress__jrn_8php-source.html +++ b/doc/developper/html/impress__jrn_8php-source.html @@ -53,18 +53,18 @@ 00050 // var_dump($Row); 00051 } 00052 $rep=""; -00053 $submit=new widget(); +00053 $submit=new widget(); 00054 $hid=new widget("hidden"); 00055 echo '<div class="u_content">'; 00056 echo '<h2 class="info">'.$Jrn->name.'</h2>'; 00057 echo "<table>"; 00058 echo '<TR>'; 00059 echo '<TD><form method="GET" ACTION="user_impress.php">'. -00060 $submit->Submit('bt_other',"Autre journal"). +00060 $submit->Submit('bt_other',"Autre journal"). 00061 $hid->IOValue("type","jrn")."</form></TD>"; 00062 00063 echo '<TD><form method="GET" ACTION="jrn_pdf.php">'. -00064 $submit->Submit('bt_pdf',"Export PDF"). +00064 $submit->Submit('bt_pdf',"Export PDF"). 00065 $hid->IOValue("type","jrn"). 00066 $hid->IOValue("central",$p_cent). 00067 $hid->IOValue("jrn_id",$Jrn->id). @@ -74,7 +74,7 @@ 00071 00072 echo "</form></TD>"; 00073 echo '<TD><form method="GET" ACTION="jrn_csv.php">'. -00074 $submit->Submit('bt_csv',"Export CSV"). +00074 $submit->Submit('bt_csv',"Export CSV"). 00075 $hid->IOValue("type","jrn"). 00076 $hid->IOValue("central",$p_cent). 00077 $hid->IOValue("jrn_id",$Jrn->id). @@ -228,7 +228,7 @@ 00229 echo '</FORM>'; 00230 echo '</div>'; 00231 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__jrn_8php.html b/doc/developper/html/impress__jrn_8php.html index 37e2491df..0ecf15c60 100644 --- a/doc/developper/html/impress__jrn_8php.html +++ b/doc/developper/html/impress__jrn_8php.html @@ -486,7 +486,7 @@ Definition at line 223 Definition at line 203 of file impress_jrn.php. -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__listing__client_8php-source.html b/doc/developper/html/impress__listing__client_8php-source.html index b835a896d..3d9adc238 100644 --- a/doc/developper/html/impress__listing__client_8php-source.html +++ b/doc/developper/html/impress__listing__client_8php-source.html @@ -84,7 +84,7 @@ 00084 echo '</div>'; 00085 00086 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__listing__client_8php.html b/doc/developper/html/impress__listing__client_8php.html index e11f7ccf7..24112ff17 100644 --- a/doc/developper/html/impress__listing__client_8php.html +++ b/doc/developper/html/impress__listing__client_8php.html @@ -241,7 +241,7 @@ Referenced by fiche_de Definition at line 68 of file impress_listing_client.php. -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__poste_8php-source.html b/doc/developper/html/impress__poste_8php-source.html index 92c9692dd..d6a9c3338 100644 --- a/doc/developper/html/impress__poste_8php-source.html +++ b/doc/developper/html/impress__poste_8php-source.html @@ -41,18 +41,18 @@ 00037 ); 00038 00039 $rep=""; -00040 $submit=new widget(); +00040 $submit=new widget(); 00041 $hid=new widget("hidden"); 00042 echo '<div class="u_content">'; 00043 echo '<h2 class="info">'.$Poste->id." ".$Poste->name.'</h2>'; 00044 echo "<table >"; 00045 echo '<TR>'; 00046 echo '<TD><form method="GET" ACTION="user_impress.php">'. -00047 $submit->Submit('bt_other',"Autre poste"). +00047 $submit->Submit('bt_other',"Autre poste"). 00048 $hid->IOValue("type","poste")."</form></TD>"; 00049 00050 echo '<TD><form method="POST" ACTION="poste_pdf.php">'. -00051 $submit->Submit('bt_pdf',"Export PDF"). +00051 $submit->Submit('bt_pdf',"Export PDF"). 00052 $hid->IOValue("type","poste"). 00053 $hid->IOValue("poste_id",$Poste->id). 00054 $hid->IOValue("from_periode",$_POST['from_periode']). @@ -60,7 +60,7 @@ 00056 00057 echo "</form></TD>"; 00058 echo '<TD><form method="POST" ACTION="poste_csv.php">'. -00059 $submit->Submit('bt_csv',"Export CSV"). +00059 $submit->Submit('bt_csv',"Export CSV"). 00060 $hid->IOValue("type","poste"). 00061 $hid->IOValue("poste_id",$Poste->id). 00062 $hid->IOValue("from_periode",$_POST['from_periode']). @@ -141,7 +141,7 @@ 00141 echo '</FORM>'; 00142 echo '</div>'; 00143 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__poste_8php.html b/doc/developper/html/impress__poste_8php.html index bc3fad094..c16463880 100644 --- a/doc/developper/html/impress__poste_8php.html +++ b/doc/developper/html/impress__poste_8php.html @@ -404,7 +404,7 @@ Definition at line 1 Definition at line 121 of file impress_poste.php. -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__rapport_8php-source.html b/doc/developper/html/impress__rapport_8php-source.html index b2d1755b8..e89fa014e 100644 --- a/doc/developper/html/impress__rapport_8php-source.html +++ b/doc/developper/html/impress__rapport_8php-source.html @@ -56,7 +56,7 @@ 00052 00053 00054 $rep=""; -00055 $submit=new widget(); +00055 $submit=new widget(); 00056 $hid=new widget("hidden"); 00057 echo '<div class="u_content">'; 00058 $t=($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end'); @@ -67,11 +67,11 @@ 00063 echo '<table >'; 00064 echo '<TR>'; 00065 echo '<TD><form method="GET" ACTION="user_impress.php">'. -00066 $submit->Submit('bt_other',"Autre Rapport"). +00066 $submit->Submit('bt_other',"Autre Rapport"). 00067 $hid->IOValue("type","rapport")."</form></TD>"; 00068 00069 echo '<TD><form method="POST" ACTION="form_pdf.php">'. -00070 $submit->Submit('bt_pdf',"Export PDF"). +00070 $submit->Submit('bt_pdf',"Export PDF"). 00071 $hid->IOValue("type","rapport"). 00072 $hid->IOValue("form_id",$Form->id). 00073 $hid->IOValue("from_periode",$_POST['from_periode']). @@ -81,7 +81,7 @@ 00077 00078 echo "</form></TD>"; 00079 echo '<TD><form method="POST" ACTION="form_csv.php">'. -00080 $submit->Submit('bt_csv',"Export CSV"). +00080 $submit->Submit('bt_csv',"Export CSV"). 00081 $hid->IOValue("type","form"). 00082 $hid->IOValue("form_id",$Form->id). 00083 $hid->IOValue("from_periode",$_POST['from_periode']). @@ -177,7 +177,7 @@ 00179 } 00180 00181 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/impress__rapport_8php.html b/doc/developper/html/impress__rapport_8php.html index e5d6de498..38aaf40df 100644 --- a/doc/developper/html/impress__rapport_8php.html +++ b/doc/developper/html/impress__rapport_8php.html @@ -390,7 +390,7 @@ Definition at line 132 of file impress_rapport.php. -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/index.html b/doc/developper/html/index.html index 352f0ac56..2de174285 100644 --- a/doc/developper/html/index.html +++ b/doc/developper/html/index.html @@ -13,17 +13,21 @@ Cette partie contient de la documentation pour les d Convention de codage Quelques conventions de codage pour avoir un code plus ou moins homogène
          1. -Tant que ce peut réutiliser ce qui existe déjà,
          2. +Tant que possible réutiliser ce qui existe déjà, +
          3. +Améliorer ce qui existe déjà et vérifier que cela fonctionne toujours
          4. Documenter avec les tags doxygen votre nouveau code,
          5. -Les noms de fichiers sont *.inc.php pour les fichiers à include
          6. +Les noms de fichiers sont *.inc.php pour les fichiers à éxécuter +
          7. +Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement
          8. Les noms de fichier sont class_*.php pour les fichiers contenant des classes.
          9. -Faire de la doc c'est bien
          10. +Faire de la doc
          -
          Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/index_8php-source.html b/doc/developper/html/index_8php-source.html index df22737f2..e374a69e1 100644 --- a/doc/developper/html/index_8php-source.html +++ b/doc/developper/html/index_8php-source.html @@ -9,76 +9,76 @@ developpement » phpcompta-dev » phpcompta » html

          index.php

          Go to the documentation of this file.
          00001 
           00002 <?
          -00028 echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
          -00029 
          -00030 <HTML>
          -00031 <head>
          -00032 <TITLE> PhpCompta </TITLE>
          -00033 <style>
          -00034 BODY {
          -00035   background-color:white;
          -00036   font-size:12px;
          -00037   font-family:sans-serif;
          -00038   color:blue;
          -00039 }
          -00040 .remark {
          -00041         border: solid black 1px;
          -00042         font-family:sans-serif;
          -00043         font-size: 9px;
          -00044         color:blue;
          -00045         width:200px;
          -00046         padding:3px;
          -00047 }
          -00048 .gras {
          -00049   font-size:12px;
          -00050   font-family:sans-serif;
          -00051   color:red;
          -00052 
          -00053 }
          -00054 </style>
          -00055 <script src="scripts.js" type="text/javascript"></script>
          -00056 </head>
          -00057 <BODY onLoad="SetFocus(\'login\',0)">
          -00058 Version  developpement 1.2.2 patch 5
          -00059 <div class="remark">
          -00060  <p class="gras">Il est conseill&eacute; de ne PAS utiliser Internet Explorer.
          -00061  </p><p>
          -00062  Vous pouvez utiliser un autre browser: firefox, mozilla, netscape, Konqueror, opera...
          -00063  </p>
          -00064  <p>
          -00065  <a href="https://savannah.nongnu.org/projects/phpcompta">
          -00066  Si vous avez envie de nous rejoindre, vous êtes les bienvenus
          -00067  </a>   .
          -00068  </p>
          -00069 </div>
          -00070 
          -00071 <center>
          -00072         <IMG SRC="image/logo7.jpg" alt="Logo">
          -00073 <BR>
          -00074 
          -00075 <form action="login.php" method="post" name="loginform">
          -00076 <TABLE><TR><TD>
          -00077 <TABLE  BORDER=0 CELLSPACING=0>
          -00078 <TR>
          -00079 <TD class="cell">Login</TD>
          -00080 <TD><input type="text" name="p_user" tabindex="1"></TD>
          -00081 </TR>
          -00082 <TR>
          -00083 <TD> Password</TD>
          -00084 <TD><INPUT TYPE="PASSWORD" NAME="p_pass" tabindex="2"></TD>
          -00085 </TR>
          -00086 <TR>
          -00087 <TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT  NAME="login" value="Log in"></TD>
          -00088 </TR>
          -00089 </table>
          -00090 </TD></TR></TABLE>
          -00091 </form> 
          -00092 </Center>
          -00093 </body>
          -00094 </html>';
          -00095 
          -00096 ?>
          -

          Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +00030 echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN"> +00031 +00032 <HTML> +00033 <head> +00034 <TITLE> PhpCompta </TITLE> +00035 <style> +00036 BODY { +00037 background-color:white; +00038 font-size:12px; +00039 font-family:sans-serif; +00040 color:blue; +00041 } +00042 .remark { +00043 border: solid black 1px; +00044 font-family:sans-serif; +00045 font-size: 9px; +00046 color:blue; +00047 width:200px; +00048 padding:3px; +00049 } +00050 .gras { +00051 font-size:12px; +00052 font-family:sans-serif; +00053 color:red; +00054 +00055 } +00056 </style> +00057 <script src="scripts.js" type="text/javascript"></script> +00058 </head> +00059 <BODY onLoad="SetFocus(\'login\',0)"> +00060 Version developpement 1.2.2 patch 5 +00061 <div class="remark"> +00062 <p class="gras">Il est conseill&eacute; de ne PAS utiliser Internet Explorer. +00063 </p><p> +00064 Vous pouvez utiliser un autre browser: firefox, mozilla, netscape, Konqueror, opera... +00065 </p> +00066 <p> +00067 <a href="https://savannah.nongnu.org/projects/phpcompta"> +00068 Si vous avez envie de nous rejoindre, vous êtes les bienvenus +00069 </a> . +00070 </p> +00071 </div> +00072 +00073 <center> +00074 <IMG SRC="image/logo7.jpg" alt="Logo"> +00075 <BR> +00076 +00077 <form action="login.php" method="post" name="loginform"> +00078 <TABLE><TR><TD> +00079 <TABLE BORDER=0 CELLSPACING=0> +00080 <TR> +00081 <TD class="cell">Login</TD> +00082 <TD><input type="text" name="p_user" tabindex="1"></TD> +00083 </TR> +00084 <TR> +00085 <TD> Password</TD> +00086 <TD><INPUT TYPE="PASSWORD" NAME="p_pass" tabindex="2"></TD> +00087 </TR> +00088 <TR> +00089 <TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME="login" value="Log in"></TD> +00090 </TR> +00091 </table> +00092 </TD></TR></TABLE> +00093 </form> +00094 </Center> +00095 </body> +00096 </html>'; +00097 +00098 ?> +
          Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/index_8php.html b/doc/developper/html/index_8php.html index 543505574..3cc11b010 100644 --- a/doc/developper/html/index_8php.html +++ b/doc/developper/html/index_8php.html @@ -19,7 +19,7 @@ default page where user access

          -Definition in file index.php.


          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +Definition in file index.php.
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/info_8php-source.html b/doc/developper/html/info_8php-source.html index 06d32e145..0900bffa6 100644 --- a/doc/developper/html/info_8php-source.html +++ b/doc/developper/html/info_8php-source.html @@ -10,7 +10,7 @@

          info.php

          Go to the documentation of this file.
          00001 <?
           00002 phpinfo();
           00003 ?>
          -

          Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/info_8php.html b/doc/developper/html/info_8php.html index 317dfa8fe..76272ba93 100644 --- a/doc/developper/html/info_8php.html +++ b/doc/developper/html/info_8php.html @@ -12,7 +12,7 @@ Go to the source code of this file.
          -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/ing__be_8inc_8php-source.html b/doc/developper/html/ing__be_8inc_8php-source.html index d4656e02d..728190c11 100644 --- a/doc/developper/html/ing__be_8inc_8php-source.html +++ b/doc/developper/html/ing__be_8inc_8php-source.html @@ -84,7 +84,7 @@ 00080 00081 $code = $annee."-".$code; 00082 -00083 $sql = "select * from import_tmp where code='".$code."' and num_compte='".$num_compte."'"; +00083 $sql = "select * from import_tmp where code='".$code."' and num_compte='".$num_compte."'"; 00084 $Res=ExecSql($p_cn,$sql); 00085 $Num=pg_NumRows($Res); 00086 @@ -113,7 +113,7 @@ 00109 '$p_bq_account', 00110 $p_jrn, 00111 false)"; -00112 echo $sql; +00112 echo $sql; 00113 $Res=ExecSql($p_cn,$Sql); 00114 } 00115 } @@ -123,7 +123,7 @@ 00119 } // file is read 00120 fclose($handle); 00121 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/ing__be_8inc_8php.html b/doc/developper/html/ing__be_8inc_8php.html index 65bd56c38..ea9772688 100644 --- a/doc/developper/html/ing__be_8inc_8php.html +++ b/doc/developper/html/ing__be_8inc_8php.html @@ -318,7 +318,7 @@ Definition at line 29< Definition at line 83 of file ing_be.inc.php. -
          Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/jrn_8php-source.html b/doc/developper/html/jrn_8php-source.html index c6e06f344..9d3d7db5e 100644 --- a/doc/developper/html/jrn_8php-source.html +++ b/doc/developper/html/jrn_8php-source.html @@ -503,7 +503,7 @@ 00604 ${"l_$key"}=$element; 00605 echo_debug ("l_$key $element"); 00606 } -00607 $sql="select j_id,to_char(j_date,'DD.MM.YYYY') as j_date,j_montant,j_poste, +00607 $sql="select j_id,to_char(j_date,'DD.MM.YYYY') as j_date,j_montant,j_poste, 00608 pcm_lib,j_grpt,jr_id,j_debit,j_centralized,j_tech_per,jr_internal 00609 from jrnx inner join tmp_pcmn on j_poste=pcm_val 00610 inner join jrn on jr_grpt_id=j_grpt @@ -511,20 +511,20 @@ 00612 j_jrn_def=$p_jrn"; 00613 $l_and="and "; 00614 if ( ereg("^[0-9]+$", $l_s_montant) || ereg ("^[0-9]+\.[0-9]+$", $l_s_montant) ) { -00615 $sql.=" and jr_montant $l_mont_sel $l_s_montant"; +00615 $sql.=" and jr_montant $l_mont_sel $l_s_montant"; 00616 } 00617 if ( isDate($l_date_start) != null ) { -00618 $sql.=$l_and." j_date >= to_date('".$l_date_start."','DD.MM.YYYY')"; +00618 $sql.=$l_and." j_date >= to_date('".$l_date_start."','DD.MM.YYYY')"; 00619 } 00620 if ( isDate($l_date_end) != null ) { -00621 $sql.=$l_and." j_date <= to_date('".$l_date_end."','DD.MM.YYYY')"; +00621 $sql.=$l_and." j_date <= to_date('".$l_date_end."','DD.MM.YYYY')"; 00622 } 00623 $l_s_comment=FormatString($l_s_comment); 00624 if ( $l_s_comment != null ) { -00625 $sql.=$l_and." upper(jr_comment) like upper('%".$l_s_comment."%') "; +00625 $sql.=$l_and." upper(jr_comment) like upper('%".$l_s_comment."%') "; 00626 } 00627 -00628 $sql.=" order by j_id,j_grpt,j_debit desc"; +00628 $sql.=" order by j_id,j_grpt,j_debit desc"; 00629 echo_debug ("search query is $sql"); 00630 $Res=ExecSql($cn,$sql); 00631 } @@ -805,7 +805,7 @@ 01020 return $ret_array; 01021 } 01022 ?> -
          Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
          Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
          diff --git a/doc/developper/html/jrn_8php.html b/doc/developper/html/jrn_8php.html index 87bff0a89..090dbee59 100644 --- a/doc/developper/html/jrn_8php.html +++ b/doc/developper/html/jrn_8php.html @@ -192,7 +192,7 @@ p_id = jrn.jr_internal gen :

            Definition at line 814 of file jrn.php.

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

            @@ -240,7 +240,7 @@ p_grpt gen :

              Definition at line 711 of file jrn.php.

              -References $l_id, $l_line, $MaxLine, $Res, echo_debug(), and ExecSql(). +References $l_id, $l_line, $MaxLine, $Res, echo_debug(), and ExecSql().

              @@ -340,7 +340,7 @@ p_id : jrn.jr_id gen :

                Definition at line 793 of file jrn.php.

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

                Referenced by ListJrn(), and UpdateJrn(). @@ -624,7 +624,7 @@ p_user user id

                  Definition at line 38 of file jrn.php.

                  -References $a, $cn, $e, $l2_line, $l_line, $poste, $Res, $search, $sessid, $Sql, DbConnect(), echo_debug(), ExecSql(), GetJrnProperty(), GetPeriode(), METHOD, name, selected, and value. +References $a, $cn, $e, $l2_line, $l_line, $poste, $Res, $search, $sessid, $Sql, DbConnect(), echo_debug(), ExecSql(), GetJrnProperty(), GetPeriode(), METHOD, name, selected, and value.

                  Referenced by CorrectRecord(). @@ -684,7 +684,7 @@ Definition at line 949 of f

                  References $num, $Res, ExecSql(), GetJrnProperty(), and NextSequence().

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

                  @@ -858,7 +858,7 @@ p_user,

                    Definition at line 583 of file jrn.php.

                    -References $cn, $col_vide, $db, $l_id, $l_line, $MaxLine, $Res, $sessid, $sql, DbConnect(), echo_debug(), ExecSql(), FormatString(), GetJrnProp(), and isDate(). +References $cn, $col_vide, $db, $l_id, $l_line, $MaxLine, $Res, $sessid, $sql, DbConnect(), echo_debug(), ExecSql(), FormatString(), GetJrnProp(), and isDate().

                    @@ -971,7 +971,7 @@ Definition at line 457 of f References $col_vide, echo_debug(), GetJrnProp(), GetPosteLibelle(), and table. -


                    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__add_8php-source.html b/doc/developper/html/jrn__add_8php-source.html index b79cea2c2..35d97e053 100644 --- a/doc/developper/html/jrn__add_8php-source.html +++ b/doc/developper/html/jrn__add_8php-source.html @@ -45,7 +45,7 @@ 00040 include_once ("user_menu.php"); 00041 00042 echo '<div class="u_tmenu">'; -00043 echo ShowMenuCompta($_SESSION['g_dossier']); +00043 echo ShowMenuCompta($_SESSION['g_dossier']); 00044 echo '</div>'; 00045 00046 @@ -113,9 +113,9 @@ 00108 $Res=ExecSql($cn,$Sql); 00109 } 00110 } -00111 echo ShowMenuAdvanced(); +00111 echo ShowMenuAdvanced(); 00112 echo '<div class="lmenu">'; -00113 MenuJrn($_SESSION['g_dossier']); +00113 MenuJrn($_SESSION['g_dossier']); 00114 echo '</div>'; 00115 00116 $sessid=$_REQUEST['PHPSESSID']; @@ -208,7 +208,7 @@ 00203 echo "</DIV>"; 00204 html_page_stop(); 00205 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__add_8php.html b/doc/developper/html/jrn__add_8php.html index d25784c3d..f34522276 100644 --- a/doc/developper/html/jrn__add_8php.html +++ b/doc/developper/html/jrn__add_8php.html @@ -181,7 +181,7 @@ Definition at line 167

                    Definition at line 181 of file jrn_add.php.

                    -Referenced by AddFiche(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezWhatPageNumber(), GetDbId(), Cpdf::o_fontEncoding(), Creport::rf(), Cpdf::selectFont(), SetInternalCode(), and ShowMenuJrn(). +Referenced by AddFiche(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezWhatPageNumber(), GetDbId(), Cpdf::o_fontEncoding(), Creport::rf(), Cpdf::selectFont(), SetInternalCode(), and ShowMenuJrn().

                    @@ -517,7 +517,7 @@ Definition at line 37 Definition at line 52 of file jrn_add.php. -


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__csv_8php-source.html b/doc/developper/html/jrn__csv_8php-source.html index d15d997bf..9abf840d2 100644 --- a/doc/developper/html/jrn__csv_8php-source.html +++ b/doc/developper/html/jrn__csv_8php-source.html @@ -124,7 +124,7 @@ 00120 00122 } 00123 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__csv_8php.html b/doc/developper/html/jrn__csv_8php.html index 42469b66b..ed8becdfb 100644 --- a/doc/developper/html/jrn__csv_8php.html +++ b/doc/developper/html/jrn__csv_8php.html @@ -210,7 +210,7 @@ Definition at line 36 Definition at line 80 of file jrn_csv.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__detail_8php-source.html b/doc/developper/html/jrn__detail_8php-source.html index 6917c9aae..085eff0f7 100644 --- a/doc/developper/html/jrn__detail_8php-source.html +++ b/doc/developper/html/jrn__detail_8php-source.html @@ -45,7 +45,7 @@ 00040 00041 00042 echo '<div class="u_tmenu">'; -00043 echo ShowMenuCompta($_SESSION['g_dossier']); +00043 echo ShowMenuCompta($_SESSION['g_dossier']); 00044 echo '</div>'; 00045 00046 include_once("check_priv.php"); @@ -79,177 +79,181 @@ 00074 $p_ech='true'; 00075 $p_ech_lib="'".$_POST['p_ech_lib']."'"; 00076 } -00077 if (strlen(trim($_POST['p_jrn_deb_max_line'])) == 0 || -00078 (string) (int)$_POST['p_jrn_deb_max_line'] != (string)$_POST['p_jrn_deb_max_line'] ) -00079 $l_deb_max_line=1; -00080 else -00081 $l_deb_max_line=$_POST['p_jrn_deb_max_line']; -00082 -00083 if ( strlen(trim($_POST['p_jrn_cred_max_line'])) == 0 || -00084 (string) (int)$_POST['p_jrn_cred_max_line'] != (string)$_POST['p_jrn_cred_max_line'] ) -00085 $l_cred_max_line=1; -00086 else -00087 $l_cred_max_line=$_POST['p_jrn_cred_max_line']; -00088 $p_jrn_name=$_POST['p_jrn_name']; -00089 if (strlen(trim($p_jrn_name))==0) return; -00090 $p_jrn_name=FormatString($p_jrn_name); -00091 $p_jrn_fiche_deb=""; -00092 $p_jrn_fiche_cred=""; -00093 -00094 if ( isset ($_POST["FICHEDEB"])) { -00095 $p_jrn_fiche_deb=join(",",$_POST["FICHEDEB"]); -00096 } -00097 if ( isset ($_POST["FICHECRED"])) { -00098 $p_jrn_fiche_cred=join(",",$_POST["FICHECRED"]); -00099 } -00100 $Sql=sprintf("update jrn_def set jrn_def_name='%s',jrn_def_class_deb='%s',jrn_def_class_cred='%s', -00101 jrn_deb_max_line=%s,jrn_cred_max_line=%s,jrn_def_ech=%s,jrn_def_ech_lib=%s,jrn_def_fiche_deb='%s', -00102 jrn_def_fiche_cred='%s' -00103 where jrn_def_id=%s", -00104 $p_jrn_name,$_POST['p_jrn_class_deb'],$_POST['p_jrn_class_cred'], -00105 $l_deb_max_line,$l_cred_max_line, -00106 $p_ech,$p_ech_lib, -00107 $p_jrn_fiche_deb,$p_jrn_fiche_cred, -00108 $_GET['p_jrn'] -00109 ); -00110 echo_debug($Sql); -00111 $Res=ExecSql($cn,$Sql); -00112 } -00113 } -00114 echo ShowMenuAdvanced(); -00115 echo '<div class="lmenu">'; -00116 MenuJrn($_SESSION['g_dossier']); -00117 echo '</div>'; -00118 -00119 $Res=ExecSql($cn,"select jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,". -00120 "jrn_deb_max_line,jrn_cred_max_line,jrn_def_code". -00121 ",jrn_def_type,jrn_def_ech, jrn_def_ech_lib,jrn_def_fiche_deb,jrn_def_fiche_cred". -00122 " from jrn_def where". -00123 " jrn_def_id=".$_GET['p_jrn']); -00124 $l_line=pg_fetch_array($Res,0); -00125 $sessid = $_REQUEST['PHPSESSID']; -00126 $search='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$sessid."','not','".$_GET['p_jrn']."')\">"; -00127 echo '<DIV CLASS="u_redcontent">'; -00128 echo '<H2 class="info">'.$l_line['jrn_def_name'].'</H2>'; -00129 echo '<FORM ACTION="jrn_detail.php?p_jrn='.$_GET['p_jrn'].'" METHOD="POST">'; -00130 echo '<INPUT TYPE="HIDDEN" NAME="JRN_UPD">'; -00131 echo '<TABLE>'; -00132 -00133 echo '<TR>'; -00134 echo '<TD> Nom journal </TD>'; -00135 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_name" VALUE="'.$l_line['jrn_def_name'].'"></TD>'; -00136 echo '</TR>'; -00137 -00138 echo '<TR>'; -00139 echo '<TD> Postes utilisables journal (débit) </TD>'; -00140 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_class_deb" VALUE="'.$l_line['jrn_def_class_deb'].'">'.$search.'</TD>'; -00141 echo '</TR>'; -00142 -00143 echo '<TR>'; -00144 echo '<TD> Nombre de lignes par défaut (débit) </TD>'; -00145 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_deb_max_line" VALUE="'.$l_line['jrn_deb_max_line'].'"></TD>'; -00146 echo '</TR>'; -00147 -00148 echo '<TR>'; -00149 echo '<TD> Postes utilisables journal (crédit) </TD>'; -00150 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_class_cred" VALUE="'.$l_line['jrn_def_class_cred'].'">'.$search.'</TD>'; -00151 echo '</TR>'; -00152 -00153 -00154 echo '<TR>'; -00155 echo '<TD> Nombre de lignes par défaut (crédit) </TD>'; -00156 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_cred_max_line" VALUE="'.$l_line['jrn_cred_max_line'].'"></TD>'; -00157 echo '</TR>'; -00158 -00159 echo '<TR>'; -00160 echo '<TD> Date d\'échéance </TD>'; -00161 if ( $l_line['jrn_def_ech'] == 't' ) { -00162 echo '<TD> <INPUT TYPE="radio" NAME="p_ech" VALUE="yes" checked> Oui'; -00163 echo '<INPUT TYPE="radio" NAME="p_ech" VALUE="no">Non </TD>'; -00164 } -00165 if ( $l_line['jrn_def_ech'] == 'f' ) { -00166 echo '<TD> <INPUT TYPE="radio" NAME="p_ech" VALUE="yes" >Oui'; -00167 echo '<INPUT TYPE="radio" NAME="p_ech" VALUE="no" CHECKED>Non</TD>'; +00077 echo $_POST['p_jrn_deb_max_line']; +00078 if ( strlen(trim($_POST['p_jrn_deb_max_line'])) == 0 || +00079 (string) (int)$_POST['p_jrn_deb_max_line'] != (string)$_POST['p_jrn_deb_max_line'] || +00080 $_POST['p_jrn_deb_max_line'] <= 0 +00081 ) +00082 $l_deb_max_line=1; +00083 else +00084 $l_deb_max_line=$_POST['p_jrn_deb_max_line']; +00085 +00086 if ( (int) strlen(trim($_POST['p_jrn_cred_max_line'])) == 0 || +00087 (string) (int)$_POST['p_jrn_cred_max_line'] != (string)$_POST['p_jrn_cred_max_line'] || +00088 $_POST['p_jrn_cred_max_line'] <=0 ) +00089 $l_cred_max_line=1; +00090 else +00091 $l_cred_max_line=$_POST['p_jrn_cred_max_line']; +00092 $p_jrn_name=$_POST['p_jrn_name']; +00093 if (strlen(trim($p_jrn_name))==0) return; +00094 $p_jrn_name=FormatString($p_jrn_name); +00095 $p_jrn_fiche_deb=""; +00096 $p_jrn_fiche_cred=""; +00097 +00098 if ( isset ($_POST["FICHEDEB"])) { +00099 $p_jrn_fiche_deb=join(",",$_POST["FICHEDEB"]); +00100 } +00101 if ( isset ($_POST["FICHECRED"])) { +00102 $p_jrn_fiche_cred=join(",",$_POST["FICHECRED"]); +00103 } +00104 $Sql=sprintf("update jrn_def set jrn_def_name='%s',jrn_def_class_deb='%s',jrn_def_class_cred='%s', +00105 jrn_deb_max_line=%s,jrn_cred_max_line=%s,jrn_def_ech=%s,jrn_def_ech_lib=%s,jrn_def_fiche_deb='%s', +00106 jrn_def_fiche_cred='%s' +00107 where jrn_def_id=%s", +00108 $p_jrn_name,$_POST['p_jrn_class_deb'],$_POST['p_jrn_class_cred'], +00109 $l_deb_max_line,$l_cred_max_line, +00110 $p_ech,$p_ech_lib, +00111 $p_jrn_fiche_deb,$p_jrn_fiche_cred, +00112 $_GET['p_jrn'] +00113 ); +00114 echo_debug($Sql); +00115 $Res=ExecSql($cn,$Sql); +00116 } +00117 } +00118 echo ShowMenuAdvanced(); +00119 echo '<div class="lmenu">'; +00120 MenuJrn($_SESSION['g_dossier']); +00121 echo '</div>'; +00122 +00123 $Res=ExecSql($cn,"select jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,". +00124 "jrn_deb_max_line,jrn_cred_max_line,jrn_def_code". +00125 ",jrn_def_type,jrn_def_ech, jrn_def_ech_lib,jrn_def_fiche_deb,jrn_def_fiche_cred". +00126 " from jrn_def where". +00127 " jrn_def_id=".$_GET['p_jrn']); +00128 $l_line=pg_fetch_array($Res,0); +00129 $sessid = $_REQUEST['PHPSESSID']; +00130 $search='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$sessid."','not','".$_GET['p_jrn']."')\">"; +00131 echo '<DIV CLASS="u_redcontent">'; +00132 echo '<H2 class="info">'.$l_line['jrn_def_name'].'</H2>'; +00133 echo '<FORM ACTION="jrn_detail.php?p_jrn='.$_GET['p_jrn'].'" METHOD="POST">'; +00134 echo '<INPUT TYPE="HIDDEN" NAME="JRN_UPD">'; +00135 echo '<TABLE>'; +00136 +00137 echo '<TR>'; +00138 echo '<TD> Nom journal </TD>'; +00139 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_name" VALUE="'.$l_line['jrn_def_name'].'"></TD>'; +00140 echo '</TR>'; +00141 +00142 echo '<TR>'; +00143 echo '<TD> Postes utilisables journal (débit) </TD>'; +00144 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_class_deb" VALUE="'.$l_line['jrn_def_class_deb'].'">'.$search.'</TD>'; +00145 echo '</TR>'; +00146 +00147 echo '<TR>'; +00148 echo '<TD> Nombre de lignes par défaut (débit) </TD>'; +00149 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_deb_max_line" VALUE="'.$l_line['jrn_deb_max_line'].'"></TD>'; +00150 echo '</TR>'; +00151 +00152 echo '<TR>'; +00153 echo '<TD> Postes utilisables journal (crédit) </TD>'; +00154 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_class_cred" VALUE="'.$l_line['jrn_def_class_cred'].'">'.$search.'</TD>'; +00155 echo '</TR>'; +00156 +00157 +00158 echo '<TR>'; +00159 echo '<TD> Nombre de lignes par défaut (crédit) </TD>'; +00160 echo '<TD> <INPUT TYPE="text" NAME="p_jrn_cred_max_line" VALUE="'.$l_line['jrn_cred_max_line'].'"></TD>'; +00161 echo '</TR>'; +00162 +00163 echo '<TR>'; +00164 echo '<TD> Date d\'échéance </TD>'; +00165 if ( $l_line['jrn_def_ech'] == 't' ) { +00166 echo '<TD> <INPUT TYPE="radio" NAME="p_ech" VALUE="yes" checked> Oui'; +00167 echo '<INPUT TYPE="radio" NAME="p_ech" VALUE="no">Non </TD>'; 00168 } -00169 echo '</TR>'; -00170 -00171 echo '<TR>'; -00172 echo '<TD> Libellé echéance </TD>'; -00173 echo '<TD> <INPUT TYPE="text" NAME="p_ech_lib" VALUE="'.$l_line['jrn_def_ech_lib'].'"></TD>'; -00174 echo '</TR>'; -00175 -00176 echo '<TR>'; -00177 echo '<TD> Type de journal </TD>'; -00178 echo '<TD> '; -00179 $Res=ExecSql($cn,"select jrn_type_id,jrn_desc from jrn_type where ". -00180 "trim(jrn_type_id)=trim('".$l_line['jrn_def_type']."')"); -00181 $Max=pg_NumRows($Res); -00182 -00183 for ($i=0;$i<$Max;$i++) { -00184 $Line=pg_fetch_array($Res,$i); -00185 -00186 echo_debug('jrn_detail.php',__LINE__,"jrn type !".$Line['jrn_type_id']."!,!".$l_line['jrn_def_type']."!"); -00187 printf (' %s',$Line['jrn_desc']); -00188 } -00189 echo '</TD>'; -00190 echo '</TR>'; -00191 echo "<TR><TD> Code </TD><TD>".$l_line['jrn_def_code']."</TD></TR>"; -00192 -00193 -00194 ?> -00195 -00196 <? +00169 if ( $l_line['jrn_def_ech'] == 'f' ) { +00170 echo '<TD> <INPUT TYPE="radio" NAME="p_ech" VALUE="yes" >Oui'; +00171 echo '<INPUT TYPE="radio" NAME="p_ech" VALUE="no" CHECKED>Non</TD>'; +00172 } +00173 echo '</TR>'; +00174 +00175 echo '<TR>'; +00176 echo '<TD> Libellé echéance </TD>'; +00177 echo '<TD> <INPUT TYPE="text" NAME="p_ech_lib" VALUE="'.$l_line['jrn_def_ech_lib'].'"></TD>'; +00178 echo '</TR>'; +00179 +00180 echo '<TR>'; +00181 echo '<TD> Type de journal </TD>'; +00182 echo '<TD> '; +00183 $Res=ExecSql($cn,"select jrn_type_id,jrn_desc from jrn_type where ". +00184 "trim(jrn_type_id)=trim('".$l_line['jrn_def_type']."')"); +00185 $Max=pg_NumRows($Res); +00186 +00187 for ($i=0;$i<$Max;$i++) { +00188 $Line=pg_fetch_array($Res,$i); +00189 +00190 echo_debug('jrn_detail.php',__LINE__,"jrn type !".$Line['jrn_type_id']."!,!".$l_line['jrn_def_type']."!"); +00191 printf (' %s',$Line['jrn_desc']); +00192 } +00193 echo '</TD>'; +00194 echo '</TR>'; +00195 echo "<TR><TD> Code </TD><TD>".$l_line['jrn_def_code']."</TD></TR>"; +00196 00197 -00198 echo '</TABLE>'; -00199 // Get all the fiches -00200 echo '<H2 class="info"> Fiches </H2>'; -00201 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); -00202 $num=pg_NumRows($Res); -00203 -00204 $rdeb=split(',',$l_line['jrn_def_fiche_deb']); -00205 -00206 $rcred=split(',',$l_line['jrn_def_fiche_cred']); -00207 echo '<TABLE>'; -00208 echo '<TR>'; -00209 echo '<th> Fiches Débit</TH>'; -00210 echo '<th> Fiches Crédit</TH>'; -00211 echo '</TR>'; -00212 // Show the fiche in deb section -00213 for ($i=0;$i<$num;$i++) { -00214 $res=pg_fetch_array($Res,$i); -00215 $CHECKED=" unchecked"; -00216 foreach ( $rdeb as $element) { -00217 if ( $element == $res['fd_id'] ) { -00218 $CHECKED="CHECKED"; -00219 break; -00220 } -00221 } -00222 echo '<TR>'; -00223 printf ('<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="FICHEDEB[]" %s>%s</TD>', -00224 $res['fd_id'],$CHECKED,$res['fd_label']); -00225 $CHECKED=" unchecked"; -00226 foreach ( $rcred as $element) { -00227 if ( $element == $res['fd_id'] ) { -00228 $CHECKED="CHECKED"; -00229 break; -00230 } -00231 } -00232 -00233 printf ('<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="FICHECRED[]" %s>%s</TD>', -00234 $res['fd_id'],$CHECKED,$res['fd_label']); -00235 echo '</TR>'; -00236 } -00237 -00238 -00239 ?> -00240 -00241 <TABLE><TR><TD><INPUT TYPE="SUBMIT" VALUE="Sauve"></TD><TD><INPUT TYPE="RESET" VALUE="Reset"></TD></TR></TABLE> -00242 <? -00243 echo '</FORM>'; -00244 echo "</DIV>"; -00245 html_page_stop(); -00246 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +00198 ?> +00199 +00200 <? +00201 +00202 echo '</TABLE>'; +00203 // Get all the fiches +00204 echo '<H2 class="info"> Fiches </H2>'; +00205 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); +00206 $num=pg_NumRows($Res); +00207 +00208 $rdeb=split(',',$l_line['jrn_def_fiche_deb']); +00209 +00210 $rcred=split(',',$l_line['jrn_def_fiche_cred']); +00211 echo '<TABLE>'; +00212 echo '<TR>'; +00213 echo '<th> Fiches Débit</TH>'; +00214 echo '<th> Fiches Crédit</TH>'; +00215 echo '</TR>'; +00216 // Show the fiche in deb section +00217 for ($i=0;$i<$num;$i++) { +00218 $res=pg_fetch_array($Res,$i); +00219 $CHECKED=" unchecked"; +00220 foreach ( $rdeb as $element) { +00221 if ( $element == $res['fd_id'] ) { +00222 $CHECKED="CHECKED"; +00223 break; +00224 } +00225 } +00226 echo '<TR>'; +00227 printf ('<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="FICHEDEB[]" %s>%s</TD>', +00228 $res['fd_id'],$CHECKED,$res['fd_label']); +00229 $CHECKED=" unchecked"; +00230 foreach ( $rcred as $element) { +00231 if ( $element == $res['fd_id'] ) { +00232 $CHECKED="CHECKED"; +00233 break; +00234 } +00235 } +00236 +00237 printf ('<TD> <INPUT TYPE="CHECKBOX" VALUE="%s" NAME="FICHECRED[]" %s>%s</TD>', +00238 $res['fd_id'],$CHECKED,$res['fd_label']); +00239 echo '</TR>'; +00240 } +00241 +00242 +00243 ?> +00244 +00245 <TABLE><TR><TD><INPUT TYPE="SUBMIT" VALUE="Sauve"></TD><TD><INPUT TYPE="RESET" VALUE="Reset"></TD></TR></TABLE> +00246 <? +00247 echo '</FORM>'; +00248 echo "</DIV>"; +00249 html_page_stop(); +00250 ?> +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__detail_8php.html b/doc/developper/html/jrn__detail_8php.html index ec6343a56..0eaaca291 100644 --- a/doc/developper/html/jrn__detail_8php.html +++ b/doc/developper/html/jrn__detail_8php.html @@ -81,7 +81,7 @@ Definition in file jrn_detail.

                    -Definition at line 215 of file jrn_detail.php. +Definition at line 219 of file jrn_detail.php.

                    @@ -131,7 +131,7 @@ Definition at line 48

                    -Definition at line 87 of file jrn_detail.php. +Definition at line 91 of file jrn_detail.php.

                    @@ -156,7 +156,7 @@ Definition at line 87

                    -Definition at line 81 of file jrn_detail.php. +Definition at line 84 of file jrn_detail.php.

                    @@ -181,9 +181,9 @@ Definition at line 81

                    -Definition at line 124 of file jrn_detail.php. +Definition at line 128 of file jrn_detail.php.

                    -Referenced by EncodeFiche(), FormODS(), FormPeriode(), FormPeriodeMult(), GetAmount(), GetData(), GetDataForm(), GetFirstJrnIdForJrnType(), GetInternal(), GetNextFiche(), GetNumberLine(), rapport::GetRow(), ImpHtml(), MenuJrn(), new_fiche(), PeriodeClosed(), RecordJrn(), ShowDevise(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), ViewFiche(), ViewForm(), and ViewJrn(). +Referenced by EncodeFiche(), FormODS(), FormPeriode(), FormPeriodeMult(), GetAmount(), GetData(), GetDataForm(), GetFirstJrnIdForJrnType(), GetInternal(), GetNextFiche(), GetNumberLine(), rapport::GetRow(), ImpHtml(), MenuJrn(), new_fiche(), PeriodeClosed(), RecordJrn(), ShowDevise(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), ViewFiche(), ViewForm(), and ViewJrn().

                    @@ -208,7 +208,7 @@ Referenced by EncodeFich

                    -Definition at line 181 of file jrn_detail.php. +Definition at line 185 of file jrn_detail.php.

                    @@ -233,7 +233,7 @@ Definition at line 181<

                    -Definition at line 202 of file jrn_detail.php. +Definition at line 206 of file jrn_detail.php.

                    @@ -258,7 +258,7 @@ Definition at line 202<

                    -Definition at line 92 of file jrn_detail.php. +Definition at line 96 of file jrn_detail.php.

                    @@ -283,7 +283,7 @@ Definition at line 92

                    -Definition at line 91 of file jrn_detail.php. +Definition at line 95 of file jrn_detail.php.

                    @@ -308,7 +308,7 @@ Definition at line 91

                    -Definition at line 88 of file jrn_detail.php. +Definition at line 92 of file jrn_detail.php.

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

                    -Definition at line 206 of file jrn_detail.php. +Definition at line 210 of file jrn_detail.php.

                    @@ -358,7 +358,7 @@ Definition at line 206<

                    -Definition at line 204 of file jrn_detail.php. +Definition at line 208 of file jrn_detail.php.

                    @@ -408,7 +408,7 @@ Definition at line 33

                    -Definition at line 111 of file jrn_detail.php. +Definition at line 115 of file jrn_detail.php.

                    @@ -433,7 +433,7 @@ Definition at line 111<

                    -Definition at line 126 of file jrn_detail.php. +Definition at line 130 of file jrn_detail.php.

                    @@ -458,7 +458,7 @@ Definition at line 126<

                    -Definition at line 125 of file jrn_detail.php. +Definition at line 129 of file jrn_detail.php.

                    @@ -493,7 +493,7 @@ Definition at line 125< )

                    -Definition at line 100 of file jrn_detail.php. +Definition at line 104 of file jrn_detail.php.

                    @@ -546,7 +546,7 @@ Definition at line 3552 of file jrn_detail.php. -


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__op__detail_8php-source.html b/doc/developper/html/jrn__op__detail_8php-source.html index 087157afb..cd9ef2205 100644 --- a/doc/developper/html/jrn__op__detail_8php-source.html +++ b/doc/developper/html/jrn__op__detail_8php-source.html @@ -98,7 +98,7 @@ 00093 <? 00094 html_page_stop(); 00095 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__op__detail_8php.html b/doc/developper/html/jrn__op__detail_8php.html index e94b3f483..e2aaf6b39 100644 --- a/doc/developper/html/jrn__op__detail_8php.html +++ b/doc/developper/html/jrn__op__detail_8php.html @@ -129,7 +129,7 @@ Definition at line Definition at line 38 of file jrn_op_detail.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__pdf_8php-source.html b/doc/developper/html/jrn__pdf_8php-source.html index a98faee0c..145fb259e 100644 --- a/doc/developper/html/jrn__pdf_8php-source.html +++ b/doc/developper/html/jrn__pdf_8php-source.html @@ -73,7 +73,7 @@ 00068 // filter : 0 for Grand Livre otherwise 1 00069 $filter=( $Jrn->id == 0)?0:1; 00070 -00071 $offset=0;$limit=22;$step=22; +00071 $offset=0;$limit=22;$step=22; 00072 $rap_deb=0;$rap_cred=0; 00073 while (1) { 00074 $a=0; @@ -84,7 +84,7 @@ 00079 echo_debug('jrn_pdf.php',__LINE__,"Total debit $tot_deb,credit $tot_cred"); 00080 00081 if ( $a_jrn==null) break; -00082 $offset+=$step; +00082 $offset+=$step; 00083 $first_id=$a_jrn[0]['int_j_id']; 00084 $Exercice=GetExercice($cn,$a_jrn[0]['periode']); 00085 @@ -165,7 +165,7 @@ 00160 $pdf->ezStream(); 00161 00162 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__pdf_8php.html b/doc/developper/html/jrn__pdf_8php.html index 2703ad29b..9a77ced48 100644 --- a/doc/developper/html/jrn__pdf_8php.html +++ b/doc/developper/html/jrn__pdf_8php.html @@ -594,7 +594,7 @@ Definition at line 132 Definition at line 54 of file jrn_pdf.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__search_8php-source.html b/doc/developper/html/jrn__search_8php-source.html index a2e5ef9b4..043374749 100644 --- a/doc/developper/html/jrn__search_8php-source.html +++ b/doc/developper/html/jrn__search_8php-source.html @@ -142,7 +142,7 @@ 00137 00138 // if a search is asked otherwise don't show all the rows 00139 if ( isset ($_GET["search"]) ) { -00140 $sql="select j_id,to_char(j_date,'DD.MM.YYYY') as j_date, +00140 $sql="select j_id,to_char(j_date,'DD.MM.YYYY') as j_date, 00141 j_montant,j_poste,j_debit,j_tech_per,jr_id,jr_comment,j_grpt,pcm_lib,jr_internal from jrnx inner join 00142 jrn on jr_grpt_id=j_grpt inner join tmp_pcmn on j_poste=pcm_val ". 00143 " inner join user_sec_jrn on uj_jrn_id=j_jrn_def". @@ -150,19 +150,19 @@ 00145 $Res=ExecSql($cn,$sql); 00146 00147 $MaxLine=pg_NumRows($Res); -00148 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00148 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00149 $limit=$_SESSION['g_pagesize']; 00150 $sql_limit=""; 00151 $sql_offset=""; -00152 $bar=""; +00152 $bar=""; 00153 if ( $limit != -1) { -00154 $page=(isset($_GET['page']))?$_GET['page']:0; +00154 $page=(isset($_GET['page']))?$_GET['page']:0; 00155 $sql_limit=" LIMIT $limit "; 00156 $sql_offset=" OFFSET $offset "; -00157 $bar=jrn_navigation_bar($offset,$MaxLine,$limit,$page); +00157 $bar=jrn_navigation_bar($offset,$MaxLine,$limit,$page); 00158 00159 } -00160 $sql.=$sql_limit.$sql_offset; +00160 $sql.=$sql_limit.$sql_offset; 00161 if ( $MaxLine==0) { 00162 html_page_stop(); 00163 return; @@ -171,7 +171,7 @@ 00166 $MaxLine=pg_NumRows($Res); 00167 00168 $col_vide="<TD></TD>"; -00169 echo $bar; +00169 echo $bar; 00170 echo '<TABLE ALIGN="center" BORDER="0" CELLSPACING="O">'; 00171 $l_id=""; 00172 // if ( $MaxLine > 250 ) { @@ -238,7 +238,7 @@ 00233 <? 00234 html_page_stop(); 00235 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__search_8php.html b/doc/developper/html/jrn__search_8php.html index 7974d9f43..ade2df298 100644 --- a/doc/developper/html/jrn__search_8php.html +++ b/doc/developper/html/jrn__search_8php.html @@ -397,7 +397,7 @@ Definition at line 148<

                    Definition at line 50 of file jrn_search.php.

                    -Referenced by Cpdf::newPage(), and u_ShowMenuRecherche(). +Referenced by Cpdf::newPage(), and u_ShowMenuRecherche().

                    @@ -679,7 +679,7 @@ Definition at line 39163 of file jrn_search.php. -


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__update_8php-source.html b/doc/developper/html/jrn__update_8php-source.html index f62961a7c..e1a90fd5e 100644 --- a/doc/developper/html/jrn__update_8php-source.html +++ b/doc/developper/html/jrn__update_8php-source.html @@ -45,7 +45,7 @@ 00039 include_once ("user_menu.php"); 00040 00041 echo '<div class="u_tmenu">'; -00042 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00042 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00043 echo '</div>'; 00044 00045 @@ -57,14 +57,14 @@ 00051 } 00052 00053 echo '<div class="u_subtmenu">'; -00054 echo ShowMenuAdvanced("jrn_update.php"); +00054 echo ShowMenuAdvanced("jrn_update.php"); 00055 echo '</div>'; 00056 echo '<div class="lmenu">'; -00057 MenuJrn($_SESSION['g_dossier']); +00057 MenuJrn($_SESSION['g_dossier']); 00058 echo '</div>'; 00059 html_page_stop(); 00060 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/jrn__update_8php.html b/doc/developper/html/jrn__update_8php.html index 88462f8b5..8d87543c4 100644 --- a/doc/developper/html/jrn__update_8php.html +++ b/doc/developper/html/jrn__update_8php.html @@ -129,7 +129,7 @@ Definition at line 3450 of file jrn_update.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/line__update_8php-source.html b/doc/developper/html/line__update_8php-source.html index b6e2f7b04..b93c9db59 100644 --- a/doc/developper/html/line__update_8php-source.html +++ b/doc/developper/html/line__update_8php-source.html @@ -97,7 +97,7 @@ 00091 <TABLE> 00092 <TR> 00093 <? -00094 $l=$_GET['l']; +00094 $l=$_GET['l']; 00095 $p=$_GET['p']; 00096 $n=$_GET['n']; 00097 @@ -122,7 +122,7 @@ 00116 <? 00117 html_page_stop(); 00118 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/line__update_8php.html b/doc/developper/html/line__update_8php.html index 907e0740a..ad688804a 100644 --- a/doc/developper/html/line__update_8php.html +++ b/doc/developper/html/line__update_8php.html @@ -298,7 +298,7 @@ Definition at line 34<

                    Definition at line 70 of file line_update.php.

                    -Referenced by Centralise(), fiche::CountByDef(), fiche_def::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetDossierName(), GetFirstJrnIdForJrnType(), GetUserProperty(), fiche::insert(), MenuJrn(), NextJrn(), Document_modele::Save(), ShowMenuComptaForm(), ShowMenuJrnUser(), and fiche::update(). +Referenced by Centralise(), fiche::CountByDef(), fiche_def::Get(), fiche_def::GetAll(), fiche::getAttribut(), fiche_def::GetAttribut(), fiche::GetByDef(), fiche::GetByType(), GetDossierName(), GetFirstJrnIdForJrnType(), GetUserProperty(), fiche::insert(), MenuJrn(), NextJrn(), Document_modele::Save(), ShowMenuComptaForm(), ShowMenuJrnUser(), and fiche::update().

                    @@ -351,7 +351,7 @@ Definition at line 36< Definition at line 43 of file line_update.php. -


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/listing__client_8php-source.html b/doc/developper/html/listing__client_8php-source.html index 81ebb2eed..1a2e20229 100644 --- a/doc/developper/html/listing__client_8php-source.html +++ b/doc/developper/html/listing__client_8php-source.html @@ -61,7 +61,7 @@ 00057 return; 00058 } 00059 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/listing__client_8php.html b/doc/developper/html/listing__client_8php.html index b6ca17fea..610fa9335 100644 --- a/doc/developper/html/listing__client_8php.html +++ b/doc/developper/html/listing__client_8php.html @@ -183,7 +183,7 @@ Definition at line Definition at line 56 of file listing_client.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/login_8php-source.html b/doc/developper/html/login_8php-source.html index dc7490745..e08bdf2aa 100644 --- a/doc/developper/html/login_8php-source.html +++ b/doc/developper/html/login_8php-source.html @@ -61,7 +61,7 @@ 00055 } 00056 html_page_stop(); 00057 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/login_8php.html b/doc/developper/html/login_8php.html index c52bd487f..0929672b5 100644 --- a/doc/developper/html/login_8php.html +++ b/doc/developper/html/login_8php.html @@ -156,7 +156,7 @@ Definition at line 39 of Definition at line 41 of file login.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/logout_8php-source.html b/doc/developper/html/logout_8php-source.html index 5723812a7..5ae4536b7 100644 --- a/doc/developper/html/logout_8php-source.html +++ b/doc/developper/html/logout_8php-source.html @@ -36,7 +36,7 @@ 00030 00031 html_page_stop(); 00032 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/logout_8php.html b/doc/developper/html/logout_8php.html index b5fce54f2..344394938 100644 --- a/doc/developper/html/logout_8php.html +++ b/doc/developper/html/logout_8php.html @@ -19,7 +19,7 @@ Logout.

                    -Definition in file logout.php.


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +Definition in file logout.php.
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/modify__op_8php-source.html b/doc/developper/html/modify__op_8php-source.html index 5a9f501e6..a81c6ed13 100644 --- a/doc/developper/html/modify__op_8php-source.html +++ b/doc/developper/html/modify__op_8php-source.html @@ -155,7 +155,7 @@ 00154 } 00155 html_page_stop(); 00156 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/modify__op_8php.html b/doc/developper/html/modify__op_8php.html index ae94e9612..ec8d30d81 100644 --- a/doc/developper/html/modify__op_8php.html +++ b/doc/developper/html/modify__op_8php.html @@ -59,7 +59,7 @@ Definition in file modify_op.ph

                    Definition at line 125 of file modify_op.php.

                    -Referenced by Document_modele::Save(), save_upload_document(), and Document::Upload(). +Referenced by Document_modele::Save(), save_upload_document(), and Document::Upload().

                    @@ -111,7 +111,7 @@ Definition at line 80 Definition at line 54 of file modify_op.php.

                    -Referenced by FormAchInput(), FormFin(), FormODS(), FormVenInput(), and ListJrn(). +Referenced by FormAchInput(), FormFin(), FormODS(), FormVenInput(), and ListJrn().

                    @@ -214,7 +214,7 @@ Definition at line 3776 of file modify_op.php. -


                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/namespaceCpdf.html b/doc/developper/html/namespaceCpdf.html index 0f1ca3010..f020ca7c7 100644 --- a/doc/developper/html/namespaceCpdf.html +++ b/doc/developper/html/namespaceCpdf.html @@ -21,7 +21,7 @@ LICENCE This code has been placed in the Public Domain for all to enjoy.

                    Version:
                    009

                    -


                    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/namespaces.html b/doc/developper/html/namespaces.html index 5c14d05d5..0e47fb5cd 100644 --- a/doc/developper/html/namespaces.html +++ b/doc/developper/html/namespaces.html @@ -8,7 +8,7 @@

                    phpcompta Namespace List

                    Here is a list of all namespaces with brief descriptions:
                    Cpdf
                    -
                    Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/not__implemented_8php-source.html b/doc/developper/html/not__implemented_8php-source.html index b0c64f723..7712c2507 100644 --- a/doc/developper/html/not__implemented_8php-source.html +++ b/doc/developper/html/not__implemented_8php-source.html @@ -32,7 +32,7 @@ 00023 echo '<H1 class="info"> Not Implemented</H1>'; 00024 html_page_stop(); 00025 ?> -
                    Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/not__implemented_8php.html b/doc/developper/html/not__implemented_8php.html index d40767dc2..fdf14630f 100644 --- a/doc/developper/html/not__implemented_8php.html +++ b/doc/developper/html/not__implemented_8php.html @@ -12,7 +12,7 @@ Go to the source code of this file.
                    -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/pages.html b/doc/developper/html/pages.html index 0976ea1a2..2fb576ff6 100644 --- a/doc/developper/html/pages.html +++ b/doc/developper/html/pages.html @@ -9,7 +9,7 @@
                  • Todo List
                  -
                  Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/parametre_8php-source.html b/doc/developper/html/parametre_8php-source.html index 336cf488d..d892f7c48 100644 --- a/doc/developper/html/parametre_8php-source.html +++ b/doc/developper/html/parametre_8php-source.html @@ -72,7 +72,7 @@ 00067 if ( isset($_REQUEST["p_action"]) ) { 00068 $p_action=$_REQUEST["p_action"]; 00069 } -00070 echo ShowMenuParam("parametre.php?p_action=".$p_action); +00070 echo ShowMenuParam("parametre.php?p_action=".$p_action); 00071 00072 00073 // sub action @@ -169,8 +169,8 @@ 00174 echo "<tr>".$all->IOValue("p_cp",$my->MY_CP,"Code Postal")."</tr>"; 00175 echo "<tr>".$all->IOValue("p_Commune",$my->MY_COMMUNE,"Commune")."</tr>"; 00176 echo "</table>"; -00177 $submit=new widget("submit"); -00178 echo $submit->Submit("record_company","Enregistre"); +00177 $submit=new widget("submit"); +00178 echo $submit->Submit("record_company","Enregistre"); 00179 echo "</form>"; 00180 } 00182 // Document @@ -184,7 +184,7 @@ 00191 00192 html_page_stop(); 00193 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/parametre_8php.html b/doc/developper/html/parametre_8php.html index a6eb6da46..6c5cfbd2d 100644 --- a/doc/developper/html/parametre_8php.html +++ b/doc/developper/html/parametre_8php.html @@ -521,7 +521,7 @@ Definition at line 101166 of file parametre.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/pcmn__update_8php-source.html b/doc/developper/html/pcmn__update_8php-source.html index 02eb50ae3..3bc9bfd37 100644 --- a/doc/developper/html/pcmn__update_8php-source.html +++ b/doc/developper/html/pcmn__update_8php-source.html @@ -46,7 +46,7 @@ 00040 include_once ("user_menu.php"); 00041 include_once ("check_priv.php"); 00042 -00043 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00043 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00044 00045 $cn=DbConnect($_SESSION['g_dossier']); 00046 if ( $User->CheckAction($cn,MPCMN) == 0 ) { @@ -67,10 +67,10 @@ 00061 } 00062 00063 echo '<div class="u_subtmenu">'; -00064 echo ShowMenuAdvanced("pcmn_update.php?p_start=1"); +00064 echo ShowMenuAdvanced("pcmn_update.php?p_start=1"); 00065 echo '</div>'; 00066 echo '<div class="lmenu">'; -00067 ShowMenuPcmn($_SESSION['g_start']); +00067 ShowMenuPcmn($_SESSION['g_start']); 00068 echo '</div>'; 00069 echo '<DIV CLASS="u_redcontent">'; 00070 /* Analyse ce qui est demandé */ @@ -201,7 +201,7 @@ 00197 echo "</DIV>"; 00198 html_page_stop(); 00199 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/pcmn__update_8php.html b/doc/developper/html/pcmn__update_8php.html index c25cace0f..d92f55157 100644 --- a/doc/developper/html/pcmn__update_8php.html +++ b/doc/developper/html/pcmn__update_8php.html @@ -156,7 +156,7 @@ Definition at line 36< Definition at line 49 of file pcmn_update.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/periode_8inc_8php-source.html b/doc/developper/html/periode_8inc_8php-source.html index d55ebda81..ff1842b81 100644 --- a/doc/developper/html/periode_8inc_8php-source.html +++ b/doc/developper/html/periode_8inc_8php-source.html @@ -112,7 +112,7 @@ 00110 ShowPeriode($cn); 00111 00112 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/periode_8inc_8php.html b/doc/developper/html/periode_8inc_8php.html index e49b4914d..fc78dc08d 100644 --- a/doc/developper/html/periode_8inc_8php.html +++ b/doc/developper/html/periode_8inc_8php.html @@ -54,7 +54,7 @@ Definition in file periode.in

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

                  -Referenced by Cpdf::o_catalog(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_image(), and ShowMenuJrn(). +Referenced by Cpdf::o_catalog(), Cpdf::o_destination(), Cpdf::o_encryption(), Cpdf::o_image(), and ShowMenuJrn().

                  @@ -137,7 +137,7 @@ Definition at line 61< Definition at line 59 of file periode.inc.php. -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste_8inc_8php-source.html b/doc/developper/html/poste_8inc_8php-source.html index f8ab4249f..e31132983 100644 --- a/doc/developper/html/poste_8inc_8php-source.html +++ b/doc/developper/html/poste_8inc_8php-source.html @@ -79,7 +79,7 @@ 00076 echo "</div>"; 00077 00078 } -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste_8inc_8php.html b/doc/developper/html/poste_8inc_8php.html index 6b355492c..510d4a73a 100644 --- a/doc/developper/html/poste_8inc_8php.html +++ b/doc/developper/html/poste_8inc_8php.html @@ -88,7 +88,7 @@ Definition at line 39 Definition at line 69 of file poste.inc.php.

                  -Referenced by Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), fiche_def_ref::Input(), ListJrn(), Document::ParseDocument(), and ros_logo(). +Referenced by Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), Cpdf::getFontDecender(), Cpdf::getFontHeight(), fiche_def_ref::Input(), ListJrn(), Document::ParseDocument(), and ros_logo().

                  @@ -270,7 +270,7 @@ Referenced by par Definition at line 48 of file poste.inc.php. -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste_8php-source.html b/doc/developper/html/poste_8php-source.html index c36a958c7..2dc2bdc1e 100644 --- a/doc/developper/html/poste_8php-source.html +++ b/doc/developper/html/poste_8php-source.html @@ -91,7 +91,7 @@ 00128 } 00129 00130 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste_8php.html b/doc/developper/html/poste_8php.html index cd29b6d26..cb5a572e0 100644 --- a/doc/developper/html/poste_8php.html +++ b/doc/developper/html/poste_8php.html @@ -75,7 +75,7 @@ Max of ligne definie dans le journal.

                  Definition at line 62 of file poste.php.

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

                  @@ -193,7 +193,7 @@ Definition at line 114 of

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

                  -Referenced by FormFin(). +Referenced by FormFin().

                  @@ -238,7 +238,7 @@ References $Max, ViewImp(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__csv_8php-source.html b/doc/developper/html/poste__csv_8php-source.html index 2cd7be265..37a42748c 100644 --- a/doc/developper/html/poste__csv_8php-source.html +++ b/doc/developper/html/poste__csv_8php-source.html @@ -78,7 +78,7 @@ 00072 00073 exit; 00074 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__csv_8php.html b/doc/developper/html/poste__csv_8php.html index 577b521f1..9988e0a35 100644 --- a/doc/developper/html/poste__csv_8php.html +++ b/doc/developper/html/poste__csv_8php.html @@ -185,7 +185,7 @@ Definition at line 3573 of file poste_csv.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__pdf_8php-source.html b/doc/developper/html/poste__pdf_8php-source.html index 8f690b669..5e5773071 100644 --- a/doc/developper/html/poste__pdf_8php-source.html +++ b/doc/developper/html/poste__pdf_8php-source.html @@ -100,7 +100,7 @@ 00094 $pdf->ezStream(); 00095 00096 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__pdf_8php.html b/doc/developper/html/poste__pdf_8php.html index 1dfab0523..040db9372 100644 --- a/doc/developper/html/poste__pdf_8php.html +++ b/doc/developper/html/poste__pdf_8php.html @@ -183,7 +183,7 @@ Definition at line 7574 of file poste_pdf.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__search_8php-source.html b/doc/developper/html/poste__search_8php-source.html index 9a1d64c8c..546159834 100644 --- a/doc/developper/html/poste__search_8php-source.html +++ b/doc/developper/html/poste__search_8php-source.html @@ -189,7 +189,7 @@ 00183 echo '<INPUT TYPE="BUTTON" Value="Close" onClick=\'GetIt()\'>'; 00184 html_page_stop(); 00185 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/poste__search_8php.html b/doc/developper/html/poste__search_8php.html index daadd8b97..1ce903e35 100644 --- a/doc/developper/html/poste__search_8php.html +++ b/doc/developper/html/poste__search_8php.html @@ -239,7 +239,7 @@ Definition at line 68 Definition at line 31 of file poste_search.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/postgres_8php-source.html b/doc/developper/html/postgres_8php-source.html index 1c5650c68..451493add 100644 --- a/doc/developper/html/postgres_8php-source.html +++ b/doc/developper/html/postgres_8php-source.html @@ -101,7 +101,7 @@ 00117 function GetAllUser() { 00118 echo_debug('postgres.php',__LINE__,"GetUser"); 00119 $cn=DbConnect(); -00120 $sql="select * from ac_users where use_login!='phpcompta'"; +00120 $sql="select * from ac_users where use_login!='phpcompta'"; 00121 echo_debug('postgres.php',__LINE__,"ExecSql"); 00122 $Res=ExecSql($cn,$sql); 00123 $Num=pg_NumRows($Res); @@ -249,7 +249,7 @@ 00292 00293 $cn=DbConnect($p_dossier); 00294 -00295 $sql="insert into user_sec_jrn(uj_login,uj_jrn_id,uj_priv) ". +00295 $sql="insert into user_sec_jrn(uj_login,uj_jrn_id,uj_priv) ". 00296 "select '".$p_user."',jrn_def_id,'".$right."' from jrn_def ". 00297 "where jrn_def_id not in ". 00298 "(select uj_jrn_id from user_sec_jrn where uj_login='".$p_user."')"; @@ -257,7 +257,7 @@ 00300 } 00315 function GetUserProperty($p_cn,$p_user) 00316 { -00317 $sql="select use_login,use_first_name,use_name,use_admin,use_usertype,g_theme +00317 $sql="select use_login,use_first_name,use_name,use_admin,use_usertype,g_theme 00318 from ac_users where use_login='$p_user'"; 00319 $Ret=ExecSql($p_cn,$sql); 00320 if ( pg_NumRows($Ret) == 0) @@ -287,47 +287,48 @@ 00358 echo_debug('postgres.php',__LINE__,var_export($array,true)); 00359 return $array; 00360 } -00369 function save_upload_document ($cn,$seq) { -00370 -00371 $new_name=tempnam('/tmp','pj'); -00372 echo_debug('postgres.php',__LINE__,"new name=".$new_name); -00373 if ( strlen ($_FILES['pj']['tmp_name']) != 0 ) { -00374 if (move_uploaded_file($_FILES['pj']['tmp_name'], -00375 $new_name)) { -00376 // echo "Image saved"; -00377 -00378 $oid= pg_lo_import($cn,$new_name); -00379 if ( $oid == false ) { -00380 echo_error('postgres.php',__LINE__,"cannot upload document"); -00381 Rollback($cn); -00382 return; -00383 } -00384 echo_debug('postgres.php',__LINE__,"Loading document"); -00385 // Remove old document -00386 $ret=ExecSql($cn,"select jr_pj from jrn where jr_grpt_id=$seq"); -00387 if (pg_num_rows($ret) != 0) { -00388 $r=pg_fetch_array($ret,0); -00389 $old_oid=$r['jr_pj']; -00390 if (strlen($old_oid) != 0) -00391 pg_lo_unlink($cn,$old_oid); -00392 } -00393 // Load new document -00394 ExecSql($cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". -00395 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); -00396 -00397 } else { -00398 echo "<H1>Error</H1>"; -00399 Rollback($cn); -00400 exit; -00401 } -00402 } -00403 return $oid; -00404 } -00405 +00371 function save_upload_document ($cn,$seq) { +00372 +00373 $new_name=tempnam('/tmp','pj'); +00374 echo_debug('postgres.php',__LINE__,"new name=".$new_name); +00375 if ( strlen ($_FILES['pj']['tmp_name']) != 0 ) { +00376 if (move_uploaded_file($_FILES['pj']['tmp_name'], +00377 $new_name)) { +00378 // echo "Image saved"; +00379 +00380 $oid= pg_lo_import($cn,$new_name); +00381 if ( $oid == false ) { +00382 echo_error('postgres.php',__LINE__,"cannot upload document"); +00383 Rollback($cn); +00384 return; +00385 } +00386 echo_debug('postgres.php',__LINE__,"Loading document"); +00387 // Remove old document +00388 $ret=ExecSql($cn,"select jr_pj from jrn where jr_grpt_id=$seq"); +00389 if (pg_num_rows($ret) != 0) { +00390 $r=pg_fetch_array($ret,0); +00391 $old_oid=$r['jr_pj']; +00392 if (strlen($old_oid) != 0) +00393 pg_lo_unlink($cn,$old_oid); +00394 } +00395 // Load new document +00396 ExecSql($cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". +00397 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); +00398 return $oid; +00399 +00400 } else { +00401 echo "<H1>Error</H1>"; +00402 Rollback($cn); +00403 return null; +00404 } +00405 } 00406 -00407 -00408 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00407 } +00408 +00409 +00410 +00411 ?> +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/postgres_8php.html b/doc/developper/html/postgres_8php.html index 4ac737685..fff171e45 100644 --- a/doc/developper/html/postgres_8php.html +++ b/doc/developper/html/postgres_8php.html @@ -256,7 +256,7 @@ Definition at line 72

                  References $a, and echo_debug().

                  -Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), GetFirstJrnIdForJrnType(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), ListJrn(), MenuJrn(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), SyncRight(), and ViewJrn(). +Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), GetFirstJrnIdForJrnType(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), ListJrn(), MenuJrn(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), SyncRight(), and ViewJrn().

                  @@ -342,7 +342,7 @@ Definition at line 99

                  References $ret, echo_debug(), echo_error(), and exit.

                  -Referenced by AddFiche(), AddForm(), AddModele(), AlterSequence(), fiche::blank(), Centralise(), cl_user::CheckAction(), CheckAction(), CheckJrn(), Commit(), action::Confirm(), fiche::CountByDef(), CountSql(), Document_modele::Delete(), DeleteForm(), DeleteRapt(), fiche::Display(), action::Display(), DisplayDetailModele(), EncodeFiche(), EndSql(), ExecuteScript(), ExisteJnt(), ExistePriv(), FormPeriode(), FormPeriodeMult(), Document::Generate(), parm_code::Get(), fiche_def_ref::Get(), fiche_def::Get(), Document_type::get(), Document_modele::Get(), Document::Get(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), GetAllUser(), GetAmount(), GetArray(), fiche::getAttribut(), fiche_def::GetAttribut(), GetAvailableFolder(), GetBaseFiche(), GetBaseFicheDefault(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetClass(), GetConcerned(), GetCreateAccount(), GetData(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetDbId(), jrn::GetDefLine(), GetDossierName(), GetExercice(), getFicheAttribut(), GetFicheDef(), getFicheDefName(), GetFicheDefRef(), GetFicheJrn(), getFicheName(), getFicheNameById(), getFicheNameCode(), GetFirstJrnIdForJrnType(), GetFormName(), GetFormulaValue(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), GetGrpt(), GetInternal(), GetJnt(), GetJrnName(), GetJrnProp(), GetJrnProperty(), GetLogin(), GetModeleId(), jrn::GetName(), fiche::getName(), GetNextFiche(), GetNumberLine(), GetPeriode(), getPeriodeFromDate(), getPeriodeFromMonth(), GetPosteLibelle(), cl_user::GetPreferences(), GetPriv(), GetQuantity(), GetRappel(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), GetSequence(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaPoste(), GetTvaRate(), GetUid(), GetUserProperty(), GetVersion(), html_page_start(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertModeleLine(), InsertRapt(), InsertStockGoods(), isCentralize(), IsFicheOfJrn(), isValid(), ListJrn(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), MenuJrn(), Document::MoveDocumentPj(), Document_modele::myList(), action::myList(), new_fiche(), NextSequence(), Own::Own(), PeriodeClosed(), PosteForm(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Remove(), fiche::remove(), Document::remove(), Rollback(), parm_code::Save(), fiche_def_ref::Save(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), SaveModeleName(), action::SaveStage2(), SetInternalCode(), cl_user::SetPeriode(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrn(), ShowMenuJrnUser(), ShowPeriode(), StartSql(), fiche::strAttribut(), SyncRight(), TransferCSV(), fiche::update(), cl_user::update_global_pref(), UpdateComment(), UpdateCSV(), UpdateFiche(), UpdateForm(), Document::Upload(), Customer::VatListing(), VerifImport(), ViewDetailStock(), ViewFiche(), ViewFicheDetail(), ViewJrn(), and ViewStock(). +Referenced by AddFiche(), AddForm(), AddModele(), AlterSequence(), fiche::blank(), Centralise(), cl_user::CheckAction(), CheckAction(), CheckJrn(), Commit(), action::Confirm(), fiche::CountByDef(), CountSql(), Document_modele::Delete(), DeleteForm(), DeleteRapt(), fiche::Display(), action::Display(), DisplayDetailModele(), EncodeFiche(), EndSql(), ExecuteScript(), ExisteJnt(), ExistePriv(), FormPeriode(), FormPeriodeMult(), Document::Generate(), parm_code::Get(), fiche_def_ref::Get(), fiche_def::Get(), Document_type::get(), Document_modele::Get(), Document::Get(), Get_attr_def(), Get_attr_min(), Get_fiche_def_ref(), fiche_def::GetAll(), GetAllUser(), GetAmount(), GetArray(), fiche::getAttribut(), fiche_def::GetAttribut(), GetAvailableFolder(), GetBaseFiche(), GetBaseFicheDefault(), fiche::GetByDef(), fiche::GetByQCode(), fiche::GetByType(), GetClass(), GetConcerned(), GetCreateAccount(), GetData(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnJrId(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetDbId(), jrn::GetDefLine(), GetDossierName(), GetExercice(), getFicheAttribut(), GetFicheDef(), getFicheDefName(), GetFicheDefRef(), GetFicheJrn(), getFicheName(), getFicheNameById(), getFicheNameCode(), GetFirstJrnIdForJrnType(), GetFormName(), GetFormulaValue(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), GetGrpt(), GetInternal(), GetJnt(), GetJrnName(), GetJrnProp(), GetJrnProperty(), GetLogin(), GetModeleId(), jrn::GetName(), fiche::getName(), GetNextFiche(), GetNumberLine(), GetPeriode(), getPeriodeFromDate(), getPeriodeFromMonth(), GetPosteLibelle(), cl_user::GetPreferences(), GetPriv(), GetQuantity(), GetRappel(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), Balance::GetRow(), jrn::GetRowSimple(), GetSequence(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaPoste(), GetTvaRate(), GetUid(), GetUserProperty(), GetVersion(), html_page_start(), ImpHtml(), fiche::insert(), cl_user::insert_default_global_pref(), InsertJrn(), InsertJrnx(), InsertModeleLine(), InsertRapt(), InsertStockGoods(), isCentralize(), IsFicheOfJrn(), isValid(), ListJrn(), parm_code::LoadAll(), fiche_def_ref::LoadAll(), MenuJrn(), Document::MoveDocumentPj(), Document_modele::myList(), action::myList(), new_fiche(), NextSequence(), Own::Own(), PeriodeClosed(), PosteForm(), RecordFin(), RecordInvoice(), RecordJrn(), RecordSell(), Remove(), fiche::remove(), Document::remove(), Rollback(), parm_code::Save(), fiche_def_ref::Save(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), SaveModeleName(), action::SaveStage2(), SetInternalCode(), cl_user::SetPeriode(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrn(), ShowMenuJrnUser(), ShowPeriode(), StartSql(), fiche::strAttribut(), SyncRight(), TransferCSV(), fiche::update(), cl_user::update_global_pref(), UpdateComment(), UpdateCSV(), UpdateFiche(), UpdateForm(), Document::Upload(), Customer::VatListing(), VerifImport(), ViewDetailStock(), ViewFiche(), ViewFicheDetail(), ViewJrn(), and ViewStock().

                  @@ -450,7 +450,7 @@ Return all the users as an array.

                  Definition at line 117 of file postgres.php.

                  -References $cn, $Num, $Res, $sql, $User, DbConnect(), echo_debug(), and ExecSql(). +References $cn, $Num, $Res, $sql, $User, DbConnect(), echo_debug(), and ExecSql().

                  @@ -870,7 +870,7 @@ Get the properties of an user it means theme, profile, admin...

                  Definition at line 315 of file postgres.php.

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

                  @@ -915,7 +915,7 @@ Definition at line 251

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

                  -Referenced by Document::Generate(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), SetInternalCode(), and TransferCSV(). +Referenced by Document::Generate(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), SetInternalCode(), and TransferCSV().

                  @@ -949,7 +949,7 @@ Definition at line 266

                  References $Res, and ExecSql().

                  -Referenced by ExecuteScript(), RecordFin(), RecordInvoice(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). +Referenced by ExecuteScript(), RecordFin(), RecordInvoice(), RecordSell(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), TransferCSV(), and Document::Upload().

                  @@ -995,12 +995,12 @@ save_upload_document

                  $seq jr_grpt_id -

                  Returns:
                  $oid of the lob file
                  +
                  Returns:
                  $oid of the lob file if success null if a error occurs

                  -Definition at line 369 of file postgres.php. +Definition at line 371 of file postgres.php.

                  -References $old_oid, $r, $ret, echo_debug(), echo_error(), ExecSql(), exit, name, and Rollback(). +References $old_oid, $r, $ret, echo_debug(), echo_error(), ExecSql(), name, and Rollback().

                  Referenced by RecordInvoice(), and RecordSell(). @@ -1094,7 +1094,7 @@ Definition at line 257

                  References $Res, and ExecSql().

                  -Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). +Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload().

                  @@ -1143,10 +1143,10 @@ SyncRight

                  Parameters:

                  Definition at line 289 of file postgres.php.

                  -References $cn, $priv, $Res, $right, $sql, DbConnect(), ExecSql(), and GetPriv(). +References $cn, $priv, $Res, $right, $sql, DbConnect(), ExecSql(), and GetPriv(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/pref_8inc_8php-source.html b/doc/developper/html/pref_8inc_8php-source.html index d595b5c45..537bf80cb 100644 --- a/doc/developper/html/pref_8inc_8php-source.html +++ b/doc/developper/html/pref_8inc_8php-source.html @@ -149,7 +149,7 @@ 00140 00141 echo "</DIV>"; 00142 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/pref_8inc_8php.html b/doc/developper/html/pref_8inc_8php.html index c1678392c..6c7a092ac 100644 --- a/doc/developper/html/pref_8inc_8php.html +++ b/doc/developper/html/pref_8inc_8php.html @@ -219,10 +219,10 @@ Referenced by html_page_

                  Definition at line 45 of file pref.inc.php.

                  -Referenced by DefModele(), EncodeModele(), FormAchView(), FormVenteView(), RecordJrn(), ShowDevise(), ShowFormTransfert(), ShowPeriode(), u_ShowMenuRecherche(), VerifImport(), ViewFiche(), and ViewImp(). +Referenced by DefModele(), EncodeModele(), FormAchView(), FormVenteView(), RecordJrn(), ShowDevise(), ShowFormTransfert(), ShowPeriode(), u_ShowMenuRecherche(), VerifImport(), ViewFiche(), and ViewImp(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/preference_8php-source.html b/doc/developper/html/preference_8php-source.html index fce60d7aa..ad069d4e5 100644 --- a/doc/developper/html/preference_8php-source.html +++ b/doc/developper/html/preference_8php-source.html @@ -31,7 +31,7 @@ 00022 /* $Revision$ */ 00037 function FormPeriodeMult($p_cn) 00038 { -00039 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start, +00039 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start, 00040 to_char(p_end,'DD.MM.YYYY') as p_end 00041 from parm_periode 00042 order by p_exercice,p_start"; @@ -64,7 +64,7 @@ 00083 default: 00084 error("invalide p_type in 'preference.php'#__LINE__"); 00085 } -00086 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start_string, +00086 $sql="select p_id,to_char(p_start,'DD.MM.YYYY') as p_start_string, 00087 to_char(p_end,'DD.MM.YYYY') as p_end_string 00088 from parm_periode where 00089 $sql_closed @@ -92,7 +92,7 @@ 00111 } 00122 function GetPeriode($p_cn,$p_periode) 00123 { -00124 $sql="select to_char(p_start,'DD.MM.YYYY') as p_start, +00124 $sql="select to_char(p_start,'DD.MM.YYYY') as p_start, 00125 to_char(p_end,'DD.MM.YYYY') as p_end 00126 from parm_periode 00127 where p_id=".$p_periode; @@ -103,7 +103,7 @@ 00132 } 00143 function PeriodeClosed($p_cn,$p_periode) 00144 { -00145 $sql="select p_closed +00145 $sql="select p_closed 00146 from parm_periode 00147 where p_id=".$p_periode; 00148 $Res=ExecSql($p_cn,$sql); @@ -208,7 +208,7 @@ 00276 } 00277 00278 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/preference_8php.html b/doc/developper/html/preference_8php.html index 6830fa41e..a392087c7 100644 --- a/doc/developper/html/preference_8php.html +++ b/doc/developper/html/preference_8php.html @@ -103,7 +103,7 @@ Generate the form for the periode.

                  Definition at line 71 of file preference.php.

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

                  @@ -144,7 +144,7 @@ FormPeriodeMult

                  Definition at line 37 of file preference.php.

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

                  Referenced by ViewImp(). @@ -247,9 +247,9 @@ GetPeriode

                  Definition at line 122 of file preference.php.

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

                  -Referenced by FormAchInput(), FormFin(), FormODS(), FormVenInput(), RecordJrn(), VerifData(), and VerifyOperationDate(). +Referenced by FormAchInput(), FormFin(), FormODS(), FormVenInput(), RecordJrn(), VerifData(), and VerifyOperationDate().

                  @@ -299,7 +299,7 @@ get the status of a periode

                  Definition at line 143 of file preference.php.

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

                  Referenced by VerifData(), and VerifyOperationDate(). @@ -341,7 +341,7 @@ Show all the currency encoded.

                  Definition at line 182 of file preference.php.

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

                  @@ -381,10 +381,10 @@ Show all the periode and their status.

                  Definition at line 221 of file preference.php.

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


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/print__balance_8php-source.html b/doc/developper/html/print__balance_8php-source.html index b392af8e4..2646b5530 100644 --- a/doc/developper/html/print__balance_8php-source.html +++ b/doc/developper/html/print__balance_8php-source.html @@ -87,7 +87,7 @@ 00090 00091 00092 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/print__balance_8php.html b/doc/developper/html/print__balance_8php.html index 3665aa001..381251459 100644 --- a/doc/developper/html/print__balance_8php.html +++ b/doc/developper/html/print__balance_8php.html @@ -304,7 +304,7 @@ Definition at line 4 Definition at line 52 of file print_balance.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/priv__user_8php-source.html b/doc/developper/html/priv__user_8php-source.html index 2f9980435..f0344f991 100644 --- a/doc/developper/html/priv__user_8php-source.html +++ b/doc/developper/html/priv__user_8php-source.html @@ -248,7 +248,7 @@ 00242 ?> 00243 00244 -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/priv__user_8php.html b/doc/developper/html/priv__user_8php.html index 62fd45870..406b96a9d 100644 --- a/doc/developper/html/priv__user_8php.html +++ b/doc/developper/html/priv__user_8php.html @@ -404,7 +404,7 @@ Definition at line 3338 of file priv_user.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/readme_8php-source.html b/doc/developper/html/readme_8php-source.html index fbd53b4dd..08518e842 100644 --- a/doc/developper/html/readme_8php-source.html +++ b/doc/developper/html/readme_8php-source.html @@ -303,7 +303,7 @@ 00294 $pdf->ezStream(); 00295 } 00296 ?> -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/readme_8php.html b/doc/developper/html/readme_8php.html index 6c51a576b..7935948c0 100644 --- a/doc/developper/html/readme_8php.html +++ b/doc/developper/html/readme_8php.html @@ -777,7 +777,7 @@ Definition at line 200 o Referenced by Document::Replace(). -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/recherche_8php-source.html b/doc/developper/html/recherche_8php-source.html index cd2886e82..597f7583c 100644 --- a/doc/developper/html/recherche_8php-source.html +++ b/doc/developper/html/recherche_8php-source.html @@ -47,32 +47,32 @@ 00042 $User=new cl_user($cn); 00043 $User->Check(); 00044 echo '<div class="u_tmenu">'; -00045 echo ShowMenuCompta($_SESSION['g_dossier']); +00045 echo ShowMenuCompta($_SESSION['g_dossier']); 00046 echo '</div>'; 00047 // PhpSessid 00048 $sessid=$_REQUEST['PHPSESSID']; 00049 00050 // display a search box -00051 $search_box=u_ShowMenuRecherche($cn,0,$sessid,$_GET); +00051 $search_box=u_ShowMenuRecherche($cn,0,$sessid,$_GET); 00052 echo '<DIV class="lextmenu">'; // class="recherche_form">'; 00053 echo $search_box; 00054 echo "</div>"; 00056 // Display search result 00058 if ( isset ($_GET['viewsearch'])) { 00059 // Navigation bar -00060 $step=$_SESSION['g_pagesize']; -00061 $page=(isset($_GET['offset']))?$_GET['page']:1; -00062 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00060 $step=$_SESSION['g_pagesize']; +00061 $page=(isset($_GET['offset']))?$_GET['page']:1; +00062 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00063 if (count ($_GET) == 0) 00064 $array=null; 00065 else 00066 $array=$_GET; 00067 00068 list($max_line,$a)=ListJrn($cn,0,"",$array,$offset,2); -00069 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00069 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00070 00071 echo '<div class="u_redcontent">'; -00072 echo $bar; +00072 echo $bar; 00073 echo $a; 00074 echo $bar; 00075 echo '</div>'; @@ -80,7 +80,7 @@ 00077 echo '</DIV>'; 00078 00079 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/recherche_8php.html b/doc/developper/html/recherche_8php.html index a4b50b165..f0c96720c 100644 --- a/doc/developper/html/recherche_8php.html +++ b/doc/developper/html/recherche_8php.html @@ -185,7 +185,7 @@ Definition at line 48 Definition at line 42 of file recherche.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/sec__pdf_8php-source.html b/doc/developper/html/sec__pdf_8php-source.html index a59ba43bf..2f478fffb 100644 --- a/doc/developper/html/sec__pdf_8php-source.html +++ b/doc/developper/html/sec__pdf_8php-source.html @@ -131,7 +131,7 @@ 00131 $pdf->ezStream(); 00132 00133 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/sec__pdf_8php.html b/doc/developper/html/sec__pdf_8php.html index b3ebcea6b..3a7377fff 100644 --- a/doc/developper/html/sec__pdf_8php.html +++ b/doc/developper/html/sec__pdf_8php.html @@ -296,7 +296,7 @@ Definition at line 43 Definition at line 49 of file sec_pdf.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/send__jrn__pdf_8php-source.html b/doc/developper/html/send__jrn__pdf_8php-source.html index 1c5379410..07d3a08e6 100644 --- a/doc/developper/html/send__jrn__pdf_8php-source.html +++ b/doc/developper/html/send__jrn__pdf_8php-source.html @@ -61,7 +61,7 @@ 00056 $pdf=& new Cezpdf("A4"); 00057 $pdf->selectFont('./addon/fonts/Helvetica.afm'); 00058 -00059 $offset=0;$limit=25;$step=25; +00059 $offset=0;$limit=25;$step=25; 00060 $rap_deb=0;$rap_cred=0; 00061 while (1) { 00062 $a=0; @@ -69,7 +69,7 @@ 00064 echo_debug('send_jrn_pdf.php',__LINE__,"Total debit $tot_deb,credit $tot_cred"); 00065 00066 if ( $a_jrn==null) break; -00067 $offset+=$step; +00067 $offset+=$step; 00068 foreach ($a_jrn as $key=>$element) { 00069 echo_debug('send_jrn_pdf.php',__LINE__,"$key => $element"); 00070 foreach ($element as $c1=>$c2) @@ -155,7 +155,7 @@ 00150 $pdf->ezStream(); 00151 00152 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/send__jrn__pdf_8php.html b/doc/developper/html/send__jrn__pdf_8php.html index 49b47f5cc..7ea4f1108 100644 --- a/doc/developper/html/send__jrn__pdf_8php.html +++ b/doc/developper/html/send__jrn__pdf_8php.html @@ -507,7 +507,7 @@ Definition at line 8 Definition at line 122 of file send_jrn_pdf.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/send__poste__pdf_8php-source.html b/doc/developper/html/send__poste__pdf_8php-source.html index 6cb192e5d..6c733e50a 100644 --- a/doc/developper/html/send__poste__pdf_8php-source.html +++ b/doc/developper/html/send__poste__pdf_8php-source.html @@ -100,7 +100,7 @@ 00095 $pdf->ezStream(); 00096 00097 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/send__poste__pdf_8php.html b/doc/developper/html/send__poste__pdf_8php.html index b9229a3e0..cd9882944 100644 --- a/doc/developper/html/send__poste__pdf_8php.html +++ b/doc/developper/html/send__poste__pdf_8php.html @@ -192,7 +192,7 @@ Definition at line Definition at line 44 of file send_poste_pdf.php.

                  -Referenced by form_verify_input(), ImpHtml(), parm_code::Input(), RecordFin(), RecordInvoice(), RecordJrn(), and RecordSell(). +Referenced by form_verify_input(), ImpHtml(), parm_code::Input(), RecordFin(), RecordInvoice(), RecordJrn(), and RecordSell().

                  @@ -270,7 +270,7 @@ Definition at line 75 of file send_poste_pdf.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/setup_8php-source.html b/doc/developper/html/setup_8php-source.html index 6a50f64c1..449f7ba89 100644 --- a/doc/developper/html/setup_8php-source.html +++ b/doc/developper/html/setup_8php-source.html @@ -105,7 +105,7 @@ 00096 */ 00097 function ExecuteScript($p_cn,$script) { 00098 $hf=fopen($script,'r'); -00099 $sql=""; +00099 $sql=""; 00100 $flag_function=false; 00101 while (!feof($hf)) { 00102 $buffer=fgets($hf); @@ -124,37 +124,37 @@ 00115 if ( strpos(strtolower($buffer),"create function")===0 ) { 00116 echo "found a function"; 00117 $flag_function=true; -00118 $sql=$buffer; +00118 $sql=$buffer; 00119 continue; 00120 } 00121 if ( strpos(strtolower($buffer),"create or replace function")===0 ) { 00122 echo "found a function"; 00123 $flag_function=true; -00124 $sql=$buffer; +00124 $sql=$buffer; 00125 continue; 00126 } 00127 // No semi colon -> multiline command 00128 if ( $flag_function== false && strpos($buffer,';') == false ) { -00129 $sql.=$buffer; +00129 $sql.=$buffer; 00130 continue; 00131 } 00132 if ( $flag_function ) { 00133 if ( strpos(strtolower($buffer), "language plpgsql") === false ) { -00134 $sql.=$buffer; +00134 $sql.=$buffer; 00135 continue; 00136 } 00137 } else { 00138 // cut the semi colon 00139 $buffer=str_replace (';','',$buffer); 00140 } -00141 $sql.=$buffer; +00141 $sql.=$buffer; 00142 if ( ExecSql($p_cn,$sql) == false ) { 00143 Rollback($p_cn); 00144 if ( DEBUG=='false' ) ob_end_flush(); 00145 print "ERROR : $sql"; 00146 exit(); 00147 } -00148 $sql=""; +00148 $sql=""; 00149 $flag_function=false; 00150 print "<hr>"; 00151 } // while (feof) @@ -225,7 +225,7 @@ 00216 <? 00217 // Verify Psql version 00218 //-- -00219 $sql="select setting from pg_settings where name='server_version'"; +00219 $sql="select setting from pg_settings where name='server_version'"; 00220 $Res=ExecSql($cn,$sql); 00221 $row=pg_fetch_array($Res,0); 00222 $version=$row[0]; @@ -431,93 +431,111 @@ 00422 if ( GetVersion($db) == 11 ) { 00423 ExecuteScript($db,'sql/patch/upgrade11.sql'); 00424 } // version -00425 -00426 if ( DEBUG == 'false') ob_end_clean(); -00427 }//for +00425 if ( GetVersion($db) == 12 ) { +00426 ExecuteScript($db,'sql/patch/upgrade12.sql'); +00427 } // version 00428 -00429 $Resdossier=ExecSql($cn,"select mod_id, mod_name from modeledef"); -00430 $MaxDossier=pg_NumRows($Resdossier); -00431 echo "Upgrading Dossier"; -00432 for ($e=0;$e < $MaxDossier;$e++) { -00433 $db_row=pg_fetch_array($Resdossier,$e); -00434 echo "Patching ".$db_row['mod_name']."<hr>"; -00435 $db=DbConnect($db_row['mod_id'],'mod'); -00436 if (DEBUG == 'false' ) ob_start(); -00437 if ( GetVersion($db) <= 4 ) { -00438 ExecuteScript($db,'sql/patch/upgrade4.sql'); -00439 -00440 $sql="select jrn_def_id from jrn_def "; -00441 $Res=ExecSql($db,$sql); -00442 $Max=pg_NumRows($Res); -00443 for ($seq=0;$seq<$Max;$seq++) { -00444 $row=pg_fetch_array($Res,$seq); -00445 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); -00446 ExecSql($db,$sql); -00447 } -00448 } // version == 4 -00449 if ( GetVersion($db) == 5 ) { -00450 ExecuteScript($db,'sql/patch/upgrade5.sql'); -00451 } // version == 5 -00452 -00453 -00454 //-- -00455 // update to the version 7 -00456 //-- -00457 if ( GetVersion($db) == 6 ) { -00458 ExecuteScript($db,'sql/patch/upgrade6.sql'); -00459 } // version == 6 +00429 if ( GetVersion($db) == 13 ) { +00430 ExecuteScript($db,'sql/patch/upgrade13.sql'); +00431 } // version +00432 +00433 +00434 if ( DEBUG == 'false') ob_end_clean(); +00435 }//for +00436 +00437 $Resdossier=ExecSql($cn,"select mod_id, mod_name from modeledef"); +00438 $MaxDossier=pg_NumRows($Resdossier); +00439 echo "Upgrading Dossier"; +00440 for ($e=0;$e < $MaxDossier;$e++) { +00441 $db_row=pg_fetch_array($Resdossier,$e); +00442 echo "Patching ".$db_row['mod_name']."<hr>"; +00443 $db=DbConnect($db_row['mod_id'],'mod'); +00444 if (DEBUG == 'false' ) ob_start(); +00445 if ( GetVersion($db) <= 4 ) { +00446 ExecuteScript($db,'sql/patch/upgrade4.sql'); +00447 +00448 $sql="select jrn_def_id from jrn_def "; +00449 $Res=ExecSql($db,$sql); +00450 $Max=pg_NumRows($Res); +00451 for ($seq=0;$seq<$Max;$seq++) { +00452 $row=pg_fetch_array($Res,$seq); +00453 $sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']); +00454 ExecSql($db,$sql); +00455 } +00456 } // version == 4 +00457 if ( GetVersion($db) == 5 ) { +00458 ExecuteScript($db,'sql/patch/upgrade5.sql'); +00459 } // version == 5 00460 -00461 //-- -00462 // update to the version 8 -00463 //-- -00464 if ( GetVersion($db) == 7 ) { -00465 ExecuteScript($db,'sql/patch/upgrade7.sql'); -00466 // now we use sequence instead of computing a max -00467 // -00468 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); -00469 $Max2= pg_NumRows($Res2) ; -00470 if ( $Max2 == 1) { -00471 $Row=pg_fetch_array($Res2,0); -00472 $M=$Row['l']; -00473 ExecSql($db,"select setval('s_grpt',$M,true)"); -00474 } -00475 } // version == 8 -00476 //-- -00477 // update to the version 9 -00478 //-- -00479 if ( GetVersion($db) == 8 ) { -00480 ExecuteScript($db,'sql/patch/upgrade8.sql'); -00481 } // version == 9 -00482 // update to the version 10 -00483 //-- -00484 if ( GetVersion($db) == 9 ) { -00485 ExecuteScript($db,'sql/patch/upgrade9.sql'); -00486 } // version == 9 -00487 if ( GetVersion($db) == 10 ) { -00488 ExecuteScript($db,'sql/patch/upgrade10.sql'); -00489 } // version -00490 if ( GetVersion($db) == 11 ) { -00491 ExecuteScript($db,'sql/patch/upgrade11.sql'); -00492 } // version -00493 -00494 if ( DEBUG == 'false') ob_end_clean(); -00495 } -00496 -00497 echo "Upgrading Repository"; -00498 $cn=DbConnect(); -00499 if ( DEBUG == 'false') ob_start(); -00500 if ( GetVersion($cn) <= 4 ) { -00501 ExecuteScript($cn,'sql/patch/ac-upgrade4.sql'); -00502 } -00503 if ( GetVersion($cn) == 5 ) { -00504 ExecuteScript($cn,'sql/patch/ac-upgrade5.sql'); -00505 } -00506 if ( GetVersion($cn) == 6 ) { -00507 ExecuteScript($cn,'sql/patch/ac-upgrade6.sql'); -00508 } -00509 if (DEBUG=='false') ob_end_clean(); -00510 echo "<h2 class=\"info\">Voilà tout est installé ;-)</h2>"; -
                  Generated on Sat Jun 24 00:05:12 2006 for phpcompta by  +00461 +00462 //-- +00463 // update to the version 7 +00464 //-- +00465 if ( GetVersion($db) == 6 ) { +00466 ExecuteScript($db,'sql/patch/upgrade6.sql'); +00467 } // version == 6 +00468 +00469 //-- +00470 // update to the version 8 +00471 //-- +00472 if ( GetVersion($db) == 7 ) { +00473 ExecuteScript($db,'sql/patch/upgrade7.sql'); +00474 // now we use sequence instead of computing a max +00475 // +00476 $Res2=ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from jrn'); +00477 $Max2= pg_NumRows($Res2) ; +00478 if ( $Max2 == 1) { +00479 $Row=pg_fetch_array($Res2,0); +00480 $M=$Row['l']; +00481 ExecSql($db,"select setval('s_grpt',$M,true)"); +00482 } +00483 } // version == 8 +00484 //-- +00485 // update to the version 9 +00486 //-- +00487 if ( GetVersion($db) == 8 ) { +00488 ExecuteScript($db,'sql/patch/upgrade8.sql'); +00489 } // version == 9 +00490 // update to the version 10 +00491 //-- +00492 if ( GetVersion($db) == 9 ) { +00493 ExecuteScript($db,'sql/patch/upgrade9.sql'); +00494 } // version == 9 +00495 if ( GetVersion($db) == 10 ) { +00496 ExecuteScript($db,'sql/patch/upgrade10.sql'); +00497 } // version +00498 if ( GetVersion($db) == 11 ) { +00499 ExecuteScript($db,'sql/patch/upgrade11.sql'); +00500 } // version +00501 if ( GetVersion($db) == 12 ) { +00502 ExecuteScript($db,'sql/patch/upgrade12.sql'); +00503 } // version +00504 if ( GetVersion($db) == 13 ) { +00505 ExecuteScript($db,'sql/patch/upgrade13.sql'); +00506 } // version +00507 +00508 if ( DEBUG == 'false') ob_end_clean(); +00509 } +00510 +00511 echo "Upgrading Repository"; +00512 $cn=DbConnect(); +00513 if ( DEBUG == 'false') ob_start(); +00514 if ( GetVersion($cn) <= 4 ) { +00515 ExecuteScript($cn,'sql/patch/ac-upgrade4.sql'); +00516 } +00517 if ( GetVersion($cn) == 5 ) { +00518 ExecuteScript($cn,'sql/patch/ac-upgrade5.sql'); +00519 } +00520 if ( GetVersion($cn) == 6 ) { +00521 ExecuteScript($cn,'sql/patch/ac-upgrade6.sql'); +00522 } +00523 if ( GetVersion($cn) == 7 ) { +00524 ExecuteScript($cn,'sql/patch/ac-upgrade7.sql'); +00525 } +00526 +00527 if (DEBUG=='false') ob_end_clean(); +00528 echo "<h2 class=\"info\">Voilà tout est installé ;-)</h2>"; +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/setup_8php.html b/doc/developper/html/setup_8php.html index 4223cb64c..a0fbc957b 100644 --- a/doc/developper/html/setup_8php.html +++ b/doc/developper/html/setup_8php.html @@ -87,7 +87,7 @@

                  Definition at line 97 of file setup.php.

                  -References $sql, ExecSql(), exit, print, and Rollback(). +References $sql, ExecSql(), exit, print, and Rollback().

                  @@ -224,7 +224,7 @@ Referenced by ViewJrn().

                  Definition at line 255 of file setup.php.

                  -Referenced by AddFiche(), ComputeTotalVat(), FormFin(), FormODS(), and fiche::getAttribut(). +Referenced by AddFiche(), ComputeTotalVat(), FormFin(), FormODS(), and fiche::getAttribut().

                  @@ -328,7 +328,7 @@ Referenced by DisplayDet

                  Definition at line 374 of file setup.php.

                  -Referenced by EncodeFiche(), FormPeriode(), FormPeriodeMult(), Get_fiche_def_ref(), fiche::getAttribut(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetFicheJrn(), cl_user::GetGlobalPref(), GetJrnName(), jrn::GetName(), GetNextFiche(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), ImpHtml(), IsFicheOfJrn(), ListJrn(), MenuJrn(), new_fiche(), PosteForm(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), TransferCSV(), and ViewFiche(). +Referenced by EncodeFiche(), FormPeriode(), FormPeriodeMult(), Get_fiche_def_ref(), fiche::getAttribut(), GetDataForm(), GetDataGrpt(), GetDataJrn(), GetDataJrnPdf(), GetDataModele(), GetDataPoste(), GetFicheJrn(), cl_user::GetGlobalPref(), GetJrnName(), jrn::GetName(), GetNextFiche(), rapport::GetRow(), poste::GetRow(), jrn::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), ImpHtml(), IsFicheOfJrn(), ListJrn(), MenuJrn(), new_fiche(), PosteForm(), ShowDevise(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), ShowPeriode(), TransferCSV(), and ViewFiche().

                  @@ -508,7 +508,7 @@ Definition at line 238 of Definition at line 355 of file setup.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__document_8php-source.html b/doc/developper/html/show__document_8php-source.html index 2eaee110d..6e0512888 100644 --- a/doc/developper/html/show__document_8php-source.html +++ b/doc/developper/html/show__document_8php-source.html @@ -41,7 +41,7 @@ 00038 // retrieve the document 00039 $doc=new Document($cn,$_REQUEST['d_id']); 00040 $doc->Get(); -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__document_8php.html b/doc/developper/html/show__document_8php.html index 994ef7323..a63e067ad 100644 --- a/doc/developper/html/show__document_8php.html +++ b/doc/developper/html/show__document_8php.html @@ -102,7 +102,7 @@ Definition at line 3 Definition at line 34 of file show_document.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__document__modele_8php-source.html b/doc/developper/html/show__document__modele_8php-source.html index 17b2f6059..e6e13c423 100644 --- a/doc/developper/html/show__document__modele_8php-source.html +++ b/doc/developper/html/show__document__modele_8php-source.html @@ -69,7 +69,7 @@ 00066 unlink ($tmp); 00067 00068 Commit($cn); -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__document__modele_8php.html b/doc/developper/html/show__document__modele_8php.html index 19c6b2df4..bbca1b47c 100644 --- a/doc/developper/html/show__document__modele_8php.html +++ b/doc/developper/html/show__document__modele_8php.html @@ -84,7 +84,7 @@ Definition at line 60 of file show_document_modele.php.

                  -Referenced by FormAchView(), FormFin(), FormVenteView(), Document_modele::Get(), Document::Get(), Cpdf::openFont(), and UpdateJrn(). +Referenced by FormAchView(), FormFin(), FormVenteView(), Document_modele::Get(), Document::Get(), Cpdf::openFont(), and UpdateJrn().

                  @@ -216,7 +216,7 @@ Definition at line 43 of file show_document_modele.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__pj_8php-source.html b/doc/developper/html/show__pj_8php-source.html index 57cab0a5a..0e0ff348d 100644 --- a/doc/developper/html/show__pj_8php-source.html +++ b/doc/developper/html/show__pj_8php-source.html @@ -84,7 +84,7 @@ 00075 unlink ($tmp); 00076 00077 Commit($cn); -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__pj_8php.html b/doc/developper/html/show__pj_8php.html index 8882551de..eb4731c75 100644 --- a/doc/developper/html/show__pj_8php.html +++ b/doc/developper/html/show__pj_8php.html @@ -313,7 +313,7 @@ Definition at line 37 Definition at line 43 of file show_pj.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__tva_8php-source.html b/doc/developper/html/show__tva_8php-source.html index 6e66303d0..e91715de6 100644 --- a/doc/developper/html/show__tva_8php-source.html +++ b/doc/developper/html/show__tva_8php-source.html @@ -72,7 +72,7 @@ 00067 <? 00068 html_page_stop(); 00069 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/show__tva_8php.html b/doc/developper/html/show__tva_8php.html index 07d53feea..fa43d2160 100644 --- a/doc/developper/html/show__tva_8php.html +++ b/doc/developper/html/show__tva_8php.html @@ -239,7 +239,7 @@ Definition at line 30 Definition at line 38 of file show_tva.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/stock_8php-source.html b/doc/developper/html/stock_8php-source.html index 0d385434c..ec149205e 100644 --- a/doc/developper/html/stock_8php-source.html +++ b/doc/developper/html/stock_8php-source.html @@ -66,10 +66,10 @@ 00061 //Show the top menu 00062 include_once ("user_menu.php"); 00063 -00064 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); +00064 echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); 00065 00066 // Show Menu Left -00067 $left_menu=ShowMenuAdvanced("stock.php"); +00067 $left_menu=ShowMenuAdvanced("stock.php"); 00068 //echo '<div class="lmenu">'; 00069 echo $left_menu; 00070 //echo '</DIV>'; @@ -154,11 +154,11 @@ 00149 } 00150 00151 // Show the possible years -00152 $sql="select distinct (p_exercice) as exercice from parm_periode "; +00152 $sql="select distinct (p_exercice) as exercice from parm_periode "; 00153 $Res=ExecSql($cn,$sql); 00154 $r=""; 00155 for ( $i = 0; $i < pg_NumRows($Res);$i++) { -00156 $l=pg_fetch_array($Res,$i); +00156 $l=pg_fetch_array($Res,$i); 00157 $r.=sprintf('<A class="one" HREF="stock.php?year=%d">%d</a> - ', 00158 $l['exercice'], 00159 $l['exercice']); @@ -180,7 +180,7 @@ 00175 echo '</div>'; 00176 html_page_stop(); 00177 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/stock_8php.html b/doc/developper/html/stock_8php.html index 568e1b3ff..cd68b47bd 100644 --- a/doc/developper/html/stock_8php.html +++ b/doc/developper/html/stock_8php.html @@ -134,7 +134,7 @@ Definition at line 41 of

                  Definition at line 67 of file stock.php.

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

                  @@ -212,7 +212,7 @@ Definition at line 153 of Definition at line 43 of file stock.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/stock__inc_8php-source.html b/doc/developper/html/stock__inc_8php-source.html index 9d3ff6588..be37ba883 100644 --- a/doc/developper/html/stock__inc_8php-source.html +++ b/doc/developper/html/stock__inc_8php-source.html @@ -30,7 +30,7 @@ 00035 function ViewStock($p_cn,$p_year) { 00036 // build sql -- get the different merchandise sold or bought 00037 // during the p_year -00038 $sql=" select distinct sg_code +00038 $sql=" select distinct sg_code 00039 from stock_goods 00040 join jrnx on (stock_goods.j_id=jrnx.j_id) 00041 join parm_periode on (parm_periode.p_id=jrnx.j_tech_per) @@ -95,7 +95,7 @@ 00100 } 00111 function getFicheNameCode ($p_cn,$p_sg_code) { 00112 // Sql stmt -00113 $sql="select distinct f_id,av_text +00113 $sql="select distinct f_id,av_text 00114 from stock_goods 00115 join jnt_fic_att_value using (f_id ) 00116 join attr_value using (jft_id) @@ -120,7 +120,7 @@ 00135 00136 } 00147 function ViewDetailStock($p_cn,$p_sg_code,$p_year) { -00148 $sql="select sg_code, +00148 $sql="select sg_code, 00149 j_montant, 00150 j_date, 00151 sg_quantity, @@ -173,17 +173,17 @@ 00198 $l_sessid=$_REQUEST['PHPSESSID']; 00199 00200 for ( $i=0; $i < $M;$i++) { -00201 $l=pg_fetch_array($Res,$i); +00201 $l=pg_fetch_array($Res,$i); 00202 $r.="<tR>"; 00203 00204 // date 00205 $r.="<TD>"; -00206 $r.=$l['j_date']; +00206 $r.=$l['j_date']; 00207 $r.="</TD>"; 00208 00209 //type (deb = out cred=in) 00210 $r.="<TD>"; -00211 $r.=($l['sg_type']=='c')?'OUT':'IN'; +00211 $r.=($l['sg_type']=='c')?'OUT':'IN'; 00212 $r.="</TD>"; 00213 00214 // jr_internal @@ -193,22 +193,22 @@ 00218 00219 // comment 00220 $r.="<TD>"; -00221 $r.=$l['jr_comment']; +00221 $r.=$l['jr_comment']; 00222 $r.="</TD>"; 00223 00224 //amount 00225 $r.="<TD>"; -00226 $r.=$l['j_montant']; +00226 $r.=$l['j_montant']; 00227 $r.="</TD>"; 00228 00229 //quantity 00230 $r.="<TD>"; -00231 $r.=$l['sg_quantity']; +00231 $r.=$l['sg_quantity']; 00232 $r.="</TD>"; 00233 00234 // Unit Price 00235 $r.="<TD>"; -00236 $up=$l['j_montant']/$l['sg_quantity']; +00236 $up=$l['j_montant']/$l['sg_quantity']; 00237 $r.=$up; 00238 $r.="</TD>"; 00239 @@ -234,7 +234,7 @@ 00269 00270 } 00276 function GetQuantity($p_cn,$p_sg_code,$p_year,$p_type) { -00277 $sql="select sum(sg_quantity) as result +00277 $sql="select sum(sg_quantity) as result 00278 from stock_goods 00279 join jrnx on (stock_goods.j_id=jrnx.j_id) 00280 join parm_periode on (parm_periode.p_id=jrnx.j_tech_per) @@ -248,7 +248,7 @@ 00288 return $value['result']; 00289 00290 } -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/stock__inc_8php.html b/doc/developper/html/stock__inc_8php.html index 827ebdf3b..5b8fad931 100644 --- a/doc/developper/html/stock__inc_8php.html +++ b/doc/developper/html/stock__inc_8php.html @@ -132,7 +132,7 @@ return an array of f_id and f_name

                  Definition at line 111 of file stock_inc.php.

                  -References $a, $i, $r, $Res, $result, $sql, ExecSql(), and f_id. +References $a, $i, $r, $Res, $result, $sql, ExecSql(), and f_id.

                  Referenced by ViewDetailStock(), and ViewStock(). @@ -190,7 +190,7 @@ return the quantity of a sg_code for the period

                  Definition at line 276 of file stock_inc.php.

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

                  Referenced by ViewStock(). @@ -249,7 +249,7 @@ View the details of a stock.

                  Definition at line 147 of file stock_inc.php.

                  -References $l, $r, $Res, $sql, ExecSql(), and getFicheNameCode(). +References $l, $r, $Res, $sql, ExecSql(), and getFicheNameCode().

                  @@ -300,10 +300,10 @@ show the listing of all goods

                  Definition at line 35 of file stock_inc.php.

                  -References $diff, $r, $Res, $result, $sql, ExecSql(), getFicheNameCode(), and GetQuantity(). +References $diff, $r, $Res, $result, $sql, ExecSql(), getFicheNameCode(), and GetQuantity(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/test_8php-source.html b/doc/developper/html/test_8php-source.html index 735f5af22..ff9408ab3 100644 --- a/doc/developper/html/test_8php-source.html +++ b/doc/developper/html/test_8php-source.html @@ -75,7 +75,7 @@ 00066 echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>"; 00067 00068 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/test_8php.html b/doc/developper/html/test_8php.html index bb0f381f6..9ef547bfd 100644 --- a/doc/developper/html/test_8php.html +++ b/doc/developper/html/test_8php.html @@ -68,7 +68,7 @@ Definition at line 37 of f Definition at line 45 of file test.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/test__smarty_8php-source.html b/doc/developper/html/test__smarty_8php-source.html index 12e4f93d3..f134c7bb4 100644 --- a/doc/developper/html/test__smarty_8php-source.html +++ b/doc/developper/html/test__smarty_8php-source.html @@ -22,7 +22,7 @@ 00013 00014 ?> 00015 -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/test__smarty_8php.html b/doc/developper/html/test__smarty_8php.html index f89f96443..b67ee1e88 100644 --- a/doc/developper/html/test__smarty_8php.html +++ b/doc/developper/html/test__smarty_8php.html @@ -149,7 +149,7 @@ Definition at line 96 of file test_smarty.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/todo.html b/doc/developper/html/todo.html index fc604cc3c..79c80df4e 100644 --- a/doc/developper/html/todo.html +++ b/doc/developper/html/todo.html @@ -41,7 +41,7 @@
                  add a check to return an error and rollback operation

                  -

                  +
                  File user_advanced.php
                  Obsolete ?
                  @@ -66,23 +66,17 @@
                  obsolete ?

                  -

                  -
                  Global ShowMenuCompta
                  +
                  +
                  Global ShowMenuCompta
                  clean param p_dossier

                  -

                  -
                  Global ShowMenuFiche
                  +
                  +
                  Global ShowMenuFiche
                  Only for developper A test must be added
                  -

                  -

                  -
                  Global u_ShowMenu
                  -
                  clean $p_check

                  -

                  -
                  -
                  Generated on Sat Jun 24 00:05:16 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:36 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/tva_8inc_8php-source.html b/doc/developper/html/tva_8inc_8php-source.html index 18eb1035b..fd96b8c04 100644 --- a/doc/developper/html/tva_8inc_8php-source.html +++ b/doc/developper/html/tva_8inc_8php-source.html @@ -256,7 +256,7 @@ 00256 } 00257 00258 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/tva_8inc_8php.html b/doc/developper/html/tva_8inc_8php.html index 8fe53e603..d10cf520b 100644 --- a/doc/developper/html/tva_8inc_8php.html +++ b/doc/developper/html/tva_8inc_8php.html @@ -464,7 +464,7 @@ Definition at line 133

                  Definition at line 212 of file tva.inc.php.

                  -Referenced by Cezpdf::Cezpdf(), Creport::dots(), EncodeForm(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezPrvtGetTextWidth(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezText(), jrn_navigation_bar(), ShowFormTransfert(), u_ShowMenuRecherche(), VerifImport(), and widget::widget(). +Referenced by Cezpdf::Cezpdf(), Creport::dots(), EncodeForm(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezPrvtGetTextWidth(), Cezpdf::ezPrvtTableColumnHeadings(), Cezpdf::ezStartPageNumbers(), Cezpdf::ezText(), jrn_navigation_bar(), ShowFormTransfert(), u_ShowMenuRecherche(), VerifImport(), and widget::widget().

                  @@ -516,10 +516,10 @@ Definition at line 134

                  Definition at line 215 of file tva.inc.php.

                  -Referenced by Cezpdf::ezColumnsStart(), Cezpdf::ezImage(), Cezpdf::ezNewPage(), Cezpdf::ezTable(), Cpdf::filledRectangle(), Cpdf::rectangle(), Cpdf::selectFont(), Cpdf::setLineStyle(), ShowMenuCompta(), ShowMenuParam(), VerifImport(), and widget::widget(). +Referenced by Cezpdf::ezColumnsStart(), Cezpdf::ezImage(), Cezpdf::ezNewPage(), Cezpdf::ezTable(), Cpdf::filledRectangle(), Cpdf::rectangle(), Cpdf::selectFont(), Cpdf::setLineStyle(), ShowMenuCompta(), ShowMenuParam(), VerifImport(), and widget::widget(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ach_8php-source.html b/doc/developper/html/user__action__ach_8php-source.html index d1b9c0cb0..e909554b7 100644 --- a/doc/developper/html/user__action__ach_8php-source.html +++ b/doc/developper/html/user__action__ach_8php-source.html @@ -52,10 +52,10 @@ 00046 00047 if ( isset($_GET['blank'] )) { 00048 // Submit button in the form -00049 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> +00049 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> 00050 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver" ID="SubmitButton">'; 00051 $jrn=new jrn($cn, $_GET['p_jrn']); -00052 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,false,$jrn->getDefLine('cred')); +00052 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,false,$jrn->getDefLine('cred')); 00053 echo '<div class="u_redcontent">'; 00054 echo $r; 00055 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -67,15 +67,15 @@ 00061 // Add an item 00062 if ( isset ($_POST['add_item'])) { 00063 // Add a line -00064 $nb_number=$_POST["nb_item"]; -00065 $nb_number++; +00064 $nb_number=$_POST["nb_item"]; +00065 $nb_number++; 00066 00067 // submit button in the form 00068 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> 00069 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00070 00071 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,false, -00072 $nb_number); +00072 $nb_number); 00073 echo '<div class="u_redcontent">'; 00074 echo $r; 00075 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -84,13 +84,13 @@ 00078 // Correct it 00079 if ( isset ($_POST['correct'])) { 00080 // Get number of lines -00081 $nb_number=$_POST["nb_item"]; +00081 $nb_number=$_POST["nb_item"]; 00082 00083 // submit button in the form 00084 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> 00085 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00086 -00087 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,false, $nb_number); +00087 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,false, $nb_number); 00088 echo '<div class="u_redcontent">'; 00089 echo $r; 00090 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -102,18 +102,18 @@ 00096 // View the charge and show a submit button to save it 00097 if ( isset ($_POST['view_invoice']) and 00098 ! isset ($_POST['save'])) { -00099 $nb_number=$_POST["nb_item"]; +00099 $nb_number=$_POST["nb_item"]; 00100 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; 00101 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; -00102 if ( form_verify_input ($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true ) { +00102 if ( form_verify_input ($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true ) { 00103 // Should use a read only view instead of FormAch 00104 // where we can check -00105 $r=FormAchView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,$nb_number); +00105 $r=FormAchView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit,$nb_number); 00106 } else { 00107 // if something goes wrong, correct it 00108 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> 00109 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00110 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit, false, $nb_number); +00110 $r=FormAchInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$submit, false, $nb_number); 00111 } 00112 echo '<div class="u_redcontent">'; 00113 echo $r; @@ -123,12 +123,12 @@ 00117 // Save the charge into database 00118 if ( isset($_POST['save'] )) { 00119 // Get number of lines -00120 $nb_number=$_POST["nb_item"]; +00120 $nb_number=$_POST["nb_item"]; 00121 00122 // submit button in the form 00123 $submit='<h2 class="info">Recorded</h2>'; 00124 $r=RecordSell($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']); -00125 $r=FormAchView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,"",$nb_number,false); +00125 $r=FormAchView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,"",$nb_number,false); 00126 echo '<div class="u_redcontent">'; 00127 echo $submit; 00128 echo $r; @@ -168,8 +168,8 @@ 00162 $w->name="p_periode"; 00163 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00164 $User=new cl_user($cn); -00165 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00166 $w->selected=$current; +00165 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00166 $w->selected=$current; 00167 00168 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); 00169 ?> @@ -184,7 +184,7 @@ 00178 { 00179 list($ad) = sscanf($name,"set_jr_id%d"); 00180 if ( $ad == null ) continue; -00181 $sql="update jrn set jr_rapt='' where jr_id=$ad"; +00181 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00182 $Res=ExecSql($cn,$sql); 00183 00184 } @@ -196,7 +196,7 @@ 00190 if ( $id == null ) continue; 00191 echo "Mise à jour $id"; 00192 $paid=($paid=='on')?'paid':''; -00193 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; +00193 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00194 $Res=ExecSql($cn,$sql); 00195 } 00196 @@ -205,14 +205,14 @@ 00199 // Show list of sell 00200 echo_debug ("user_action_ach.php"); 00201 // Date - date of payment - Customer - amount -00202 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; +00202 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; 00203 -00204 $step=$_SESSION['g_pagesize']; -00205 $page=(isset($_GET['offset']))?$_GET['page']:1; -00206 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00204 $step=$_SESSION['g_pagesize']; +00205 $page=(isset($_GET['offset']))?$_GET['page']:1; +00206 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00207 00208 list ($max_ligne,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); -00209 $bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); +00209 $bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); 00210 echo '<form method="POST">'; 00211 00212 echo "<hr> $bar"; @@ -239,7 +239,7 @@ 00233 { 00234 list($ad) = sscanf($name,"set_jr_id%d"); 00235 if ( $ad == null ) continue; -00236 $sql="update jrn set jr_rapt='' where jr_id=$ad"; +00236 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00237 $Res=ExecSql($cn,$sql); 00238 00239 } @@ -251,7 +251,7 @@ 00245 if ( $id == null ) continue; 00246 echo "Mise à jour $id"; 00247 $paid=($paid=='on')?'paid':''; -00248 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; +00248 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00249 $Res=ExecSql($cn,$sql); 00250 } 00251 @@ -259,16 +259,16 @@ 00253 00254 // Show list of unpaid sell 00255 // Date - date of payment - Customer - amount -00256 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; -00257 $offset=(isset($_GET['offset']))?$_GET['offset']:0; -00258 $step=$_SESSION['g_pagesize']; -00259 $page=(isset($_GET['offset']))?$_GET['page']:1; +00256 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; +00257 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00258 $step=$_SESSION['g_pagesize']; +00259 $page=(isset($_GET['offset']))?$_GET['page']:1; 00260 00261 list ($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); 00262 // $bar=jrn_navigation_bar($offset,$max_ligne,$step,$page); 00263 00264 -00265 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; +00265 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; 00266 list ($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); 00267 00268 // Get the max line @@ -304,12 +304,12 @@ 00298 // PhpSessid 00299 $sessid=$_REQUEST['PHPSESSID']; 00300 // Search modules -00301 $offset=(isset($_GET['offset']))?$_GET['offset']:0; -00302 $step=$_SESSION['g_pagesize']; -00303 $page=(isset($_GET['offset']))?$_GET['page']:1; +00301 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00302 $step=$_SESSION['g_pagesize']; +00303 $page=(isset($_GET['offset']))?$_GET['page']:1; 00304 00305 // display a search box -00306 $search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$_POST); +00306 $search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$_POST); 00307 echo '<DIV class="u_redcontent">'; 00308 echo $search_box; 00309 // if nofirst is set then show result @@ -321,7 +321,7 @@ 00315 } 00316 include("user_update.php"); 00317 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ach_8php.html b/doc/developper/html/user__action__ach_8php.html index 6320628c0..372b8f2c0 100644 --- a/doc/developper/html/user__action__ach_8php.html +++ b/doc/developper/html/user__action__ach_8php.html @@ -341,7 +341,7 @@ Definition at line 52 of file user_action_ach.php.

                  -Referenced by Document::a_ref(), fiche::blank(), ChangeStock(), cl_user::Check(), ComputeTotalVat(), action::Confirm(), Document_modele::Delete(), parm_code::Display(), fiche_def_ref::Display(), fiche::Display(), fiche_def::Display(), action::Display(), Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), fiche_def_ref::Get(), Document_type::get(), GetArray(), fiche::GetByQCode(), GetConcerned(), jrn::GetDefLine(), GetDossierName(), getFicheNameCode(), GetGrpt(), poste::GetName(), fiche::getName(), Balance::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaRate(), parm_code::Input(), fiche_def_ref::Input(), InsertStockGoods(), widget::IOValue(), jrn_navigation_bar(), ListJrn(), parm_code::LoadAll(), make_array(), Document_modele::myList(), action::myList(), new_fiche(), RecordInvoice(), RecordSell(), Document::Replace(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), ShowActionList(), ShowMenuAdvanced(), ShowMenuCompta(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), TransferCSV(), u_ShowMenuRecherche(), UpdateJrn(), Document::Upload(), ViewDetailStock(), and ViewStock(). +Referenced by Document::a_ref(), fiche::blank(), ChangeStock(), cl_user::Check(), ComputeTotalVat(), action::Confirm(), Document_modele::Delete(), parm_code::Display(), fiche_def_ref::Display(), fiche::Display(), fiche_def::Display(), action::Display(), Document_modele::form(), FormAchInput(), FormAchView(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), fiche_def_ref::Get(), Document_type::get(), GetArray(), fiche::GetByQCode(), GetConcerned(), jrn::GetDefLine(), GetDossierName(), getFicheNameCode(), GetGrpt(), poste::GetName(), fiche::getName(), Balance::GetRow(), GetSolde(), poste::GetSolde(), poste::GetSoldeDetail(), GetTvaRate(), parm_code::Input(), fiche_def_ref::Input(), InsertStockGoods(), widget::IOValue(), jrn_navigation_bar(), ListJrn(), parm_code::LoadAll(), make_array(), Document_modele::myList(), action::myList(), new_fiche(), RecordInvoice(), RecordSell(), Document::Replace(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), ShowActionList(), ShowMenuAdvanced(), ShowMenuCompta(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), TransferCSV(), u_ShowMenuRecherche(), UpdateJrn(), Document::Upload(), ViewDetailStock(), and ViewStock().

                  @@ -495,7 +495,7 @@ Definition at line 164 of file user_action_ach.php.

                  -Referenced by GetAllUser(), ListJrn(), and ShowMenuJrnUser(). +Referenced by GetAllUser(), ListJrn(), and ShowMenuJrnUser().

                  @@ -648,7 +648,7 @@ Definition at line 149 of file user_action_ach.php. -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__fin_8php-source.html b/doc/developper/html/user__action__fin_8php-source.html index c3ba1d8f5..a13f222dc 100644 --- a/doc/developper/html/user__action__fin_8php-source.html +++ b/doc/developper/html/user__action__fin_8php-source.html @@ -32,7 +32,7 @@ 00027 require_once("user_form_fin.php"); 00028 include_once("class_widget.php"); 00029 require_once("class_parm_code.php"); -00030 +00030 require_once("class_jrn.php"); 00031 $cn=DbConnect($_SESSION['g_dossier']); 00032 00033 if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) { @@ -53,202 +53,203 @@ 00050 // We request a new form 00051 if ( isset($_GET['blank'] )) { 00052 // Submit button in the form -00053 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> +00053 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> 00054 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00055 // add a one-line calculator -00056 -00057 -00058 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,null,false); -00059 echo '<div class="u_redcontent">'; -00060 echo $r; -00061 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; -00062 -00063 echo "</div>"; -00064 +00056 $p_jrn=$_GET['p_jrn']; +00057 $jrn=new jrn($cn, $p_jrn); +00058 +00059 $r=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb')); +00060 echo '<div class="u_redcontent">'; +00061 echo $r; +00062 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; +00063 +00064 echo "</div>"; 00065 -00066 } -00067 -00068 // Add an item -00069 if ( isset ($_POST['add_item'])) { -00070 // Add a line -00071 $nb_number=$_POST["nb_item"]; -00072 $nb_number++; -00073 -00074 // submit button in the form -00075 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> -00076 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00077 -00078 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); -00079 echo '<div class="u_redcontent">'; -00080 echo $r; -00081 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; -00082 -00083 echo "</div>"; -00084 } -00085 // Correct it -00086 if ( isset ($_POST['correct'])) { -00087 // Get number of lines -00088 $nb_number=$_POST["nb_item"]; -00089 -00090 // submit button in the form -00091 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> -00092 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00093 -00094 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); -00095 echo '<div class="u_redcontent">'; -00096 echo $r; -00097 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; -00098 -00099 echo "</div>"; -00100 } -00101 +00066 +00067 } +00068 +00069 // Add an item +00070 if ( isset ($_POST['add_item'])) { +00071 // Add a line +00072 $nb_number=$_POST["nb_item"]; +00073 $nb_number++; +00074 +00075 // submit button in the form +00076 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> +00077 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; +00078 +00079 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00080 echo '<div class="u_redcontent">'; +00081 echo $r; +00082 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; +00083 +00084 echo "</div>"; +00085 } +00086 // Correct it +00087 if ( isset ($_POST['correct'])) { +00088 // Get number of lines +00089 $nb_number=$_POST["nb_item"]; +00090 +00091 // submit button in the form +00092 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> +00093 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; +00094 +00095 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00096 echo '<div class="u_redcontent">'; +00097 echo $r; +00098 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; +00099 +00100 echo "</div>"; +00101 } 00102 -00103 // View the charge and show a submit button to save it -00104 if ( isset ($_POST['view_invoice']) ) { -00105 $nb_number=$_POST["nb_item"]; -00106 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; -00107 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; -00108 $r=form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); -00109 // if something goes wrong correct it -00110 if ( $r == null ) -00111 { -00112 // submit button in the form -00113 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> -00114 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; -00115 -00116 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); -00117 } -00118 else -00119 { -00120 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number); -00121 } -00122 -00123 echo '<div class="u_redcontent">'; -00124 echo $r; -00125 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; -00126 echo "</div>"; -00127 } -00128 // Save the charge into database -00129 if ( isset($_POST['save'] )) { -00130 $r=RecordFin($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']); -00131 // Get number of lines -00132 $nb_number=$_POST["nb_item"]; -00133 -00134 // submit button in the form -00135 $submit='<h2 class="info">Recorded '.$r.'</h2>'; -00136 -00137 $r.=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true); -00138 echo '<div class="u_redcontent">'; -00139 echo $r; -00140 echo "</div>"; -00141 -00142 } -00143 -00144 -00145 } -00147 // see jrn -00149 if ( $action == 'voir_jrn' ) { -00150 // Check privilege -00151 if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_GET['p_jrn']) < 1 ) { -00152 NoAccess(); -00153 exit -1; -00154 } -00155 ?> -00156 <div class="u_redcontent"> -00157 -00158 <form method= "get" action="user_jrn.php"> -00159 -00160 <? -00161 $hid=new widget("hidden"); -00162 -00163 $hid->name="p_jrn"; -00164 $hid->value=$p_jrn; -00165 echo $hid->IOValue(); -00166 -00167 $hid->name="action"; -00168 $hid->value="voir_jrn"; -00169 echo $hid->IOValue(); -00170 +00103 +00104 // View the charge and show a submit button to save it +00105 if ( isset ($_POST['view_invoice']) ) { +00106 $nb_number=$_POST["nb_item"]; +00107 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; +00108 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; +00109 $r=form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); +00110 // if something goes wrong correct it +00111 if ( $r == null ) +00112 { +00113 // submit button in the form +00114 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article"> +00115 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; +00116 +00117 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00118 } +00119 else +00120 { +00121 $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number); +00122 } +00123 +00124 echo '<div class="u_redcontent">'; +00125 echo $r; +00126 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>"; +00127 echo "</div>"; +00128 } +00129 // Save the charge into database +00130 if ( isset($_POST['save'] )) { +00131 $r=RecordFin($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']); +00132 // Get number of lines +00133 $nb_number=$_POST["nb_item"]; +00134 +00135 // submit button in the form +00136 $submit='<h2 class="info">Recorded '.$r.'</h2>'; +00137 +00138 $r.=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true); +00139 echo '<div class="u_redcontent">'; +00140 echo $r; +00141 echo "</div>"; +00142 +00143 } +00144 +00145 +00146 } +00148 // see jrn +00150 if ( $action == 'voir_jrn' ) { +00151 // Check privilege +00152 if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_GET['p_jrn']) < 1 ) { +00153 NoAccess(); +00154 exit -1; +00155 } +00156 ?> +00157 <div class="u_redcontent"> +00158 +00159 <form method= "get" action="user_jrn.php"> +00160 +00161 <? +00162 $hid=new widget("hidden"); +00163 +00164 $hid->name="p_jrn"; +00165 $hid->value=$p_jrn; +00166 echo $hid->IOValue(); +00167 +00168 $hid->name="action"; +00169 $hid->value="voir_jrn"; +00170 echo $hid->IOValue(); 00171 -00172 $hid->name="jrn_type"; -00173 $hid->value=$jrn_type; -00174 echo $hid->IOValue(); -00175 +00172 +00173 $hid->name="jrn_type"; +00174 $hid->value=$jrn_type; +00175 echo $hid->IOValue(); 00176 -00177 $w=new widget("select"); -00178 -00179 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); -00180 $User=new cl_user($cn); -00181 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00182 $w->selected=$current; -00183 -00184 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); -00185 ?> -00186 </form> -00187 <? -00188 -00189 // Show list of sell -00190 echo_debug ("user_action_jrn.php"); -00191 // Date - date of payment - Customer - amount -00192 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; -00193 -00194 // Nav. bar -00195 $step=$_SESSION['g_pagesize']; -00196 $page=(isset($_GET['offset']))?$_GET['page']:1; -00197 $offset=(isset($_GET['offset']))?$_GET['offset']:0; -00198 // SQL -00199 list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); -00200 -00201 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); -00202 -00203 echo $bar; -00204 echo $list; -00205 echo $bar; -00206 echo '</div>'; -00207 } -00209 // balance -00211 if ( $action == 'solde' ) { -00212 require_once("poste.php"); -00213 // find the bank account -00214 // TODO : those values should be in a table because -00215 // they are _national_ parameters -00216 $banque=new parm_code($cn,'BANQUE'); -00217 $caisse=new parm_code($cn,'CAISSE'); -00218 $vir_interne=new parm_code($cn,'VIREMENT_INTERNE'); -00219 $accountSql="select distinct pcm_val::text,pcm_lib from -00220 tmp_pcmn -00221 where pcm_val like '".$banque->p_value."%' or pcm_val like '".$vir_interne->p_value."%' -00222 or pcm_val like '".$caisse->p_value."%' -00223 order by pcm_val::text"; -00224 $ResAccount=ExecSql($cn,$accountSql); -00225 echo '<div class="u_redcontent">'; -00226 echo "<table>"; -00227 // for each account -00228 for ( $i = 0; $i < pg_NumRows($ResAccount);$i++) { -00229 // get the saldo -00230 $l=pg_fetch_array($ResAccount,$i); -00231 $m=GetSolde($cn,$l['pcm_val']); -00232 // print the result if the saldo is not equal to 0 -00233 if ( $m != 0.0 ) { -00234 echo "<tr>"; -00235 echo "<TD>". -00236 $l['pcm_val']. -00237 "</TD>". -00238 "<TD>". -00239 $l['pcm_lib']. -00240 "</TD>"."<TD>". -00241 $m. -00242 "</TD>"."</TR>"; -00243 } -00244 }// for -00245 echo "</table>"; -00246 echo "</div>"; -00247 } -00249 include("user_update.php"); -00250 +00177 +00178 $w=new widget("select"); +00179 +00180 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); +00181 $User=new cl_user($cn); +00182 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00183 $w->selected=$current; +00184 +00185 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); +00186 ?> +00187 </form> +00188 <? +00189 +00190 // Show list of sell +00191 echo_debug ("user_action_jrn.php"); +00192 // Date - date of payment - Customer - amount +00193 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn']; +00194 +00195 // Nav. bar +00196 $step=$_SESSION['g_pagesize']; +00197 $page=(isset($_GET['offset']))?$_GET['page']:1; +00198 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00199 // SQL +00200 list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); +00201 +00202 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00203 +00204 echo $bar; +00205 echo $list; +00206 echo $bar; +00207 echo '</div>'; +00208 } +00210 // balance +00212 if ( $action == 'solde' ) { +00213 require_once("poste.php"); +00214 // find the bank account +00215 // TODO : those values should be in a table because +00216 // they are _national_ parameters +00217 $banque=new parm_code($cn,'BANQUE'); +00218 $caisse=new parm_code($cn,'CAISSE'); +00219 $vir_interne=new parm_code($cn,'VIREMENT_INTERNE'); +00220 $accountSql="select distinct pcm_val::text,pcm_lib from +00221 tmp_pcmn +00222 where pcm_val like '".$banque->p_value."%' or pcm_val like '".$vir_interne->p_value."%' +00223 or pcm_val like '".$caisse->p_value."%' +00224 order by pcm_val::text"; +00225 $ResAccount=ExecSql($cn,$accountSql); +00226 echo '<div class="u_redcontent">'; +00227 echo "<table>"; +00228 // for each account +00229 for ( $i = 0; $i < pg_NumRows($ResAccount);$i++) { +00230 // get the saldo +00231 $l=pg_fetch_array($ResAccount,$i); +00232 $m=GetSolde($cn,$l['pcm_val']); +00233 // print the result if the saldo is not equal to 0 +00234 if ( $m != 0.0 ) { +00235 echo "<tr>"; +00236 echo "<TD>". +00237 $l['pcm_val']. +00238 "</TD>". +00239 "<TD>". +00240 $l['pcm_lib']. +00241 "</TD>"."<TD>". +00242 $m. +00243 "</TD>"."</TR>"; +00244 } +00245 }// for +00246 echo "</table>"; +00247 echo "</div>"; +00248 } +00250 include("user_update.php"); 00251 -00252 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00252 +00253 ?> +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__fin_8php.html b/doc/developper/html/user__action__fin_8php.html index 726bce3d1..1855f1ebf 100644 --- a/doc/developper/html/user__action__fin_8php.html +++ b/doc/developper/html/user__action__fin_8php.html @@ -20,11 +20,11 @@  exit$nb_number = $_POST["nb_item"] + $r = FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb')) - $submit = '<h2 class="info">Recorded '.$r.'</h2>' + $nb_number = $_POST["nb_item"] - $r = FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true) + $submit = '<h2 class="info">Recorded '.$r.'</h2>'  $hid = new widget("hidden") @@ -98,7 +98,7 @@ Definition in file user_ order by pcm_val::text"

                  -Definition at line 219 of file user_action_fin.php. +Definition at line 220 of file user_action_fin.php.

                  @@ -148,7 +148,7 @@ Definition at line 216 of file user_action_fin.php. +Definition at line 217 of file user_action_fin.php.

                  @@ -173,7 +173,7 @@ Definition at line 201 of file user_action_fin.php. +Definition at line 202 of file user_action_fin.php.

                  @@ -198,7 +198,7 @@ Definition at line 217 of file user_action_fin.php. +Definition at line 218 of file user_action_fin.php.

                  @@ -248,7 +248,7 @@ Definition at line 181 of file user_action_fin.php. +Definition at line 182 of file user_action_fin.php.

                  @@ -273,7 +273,7 @@ Definition at line 161 of file user_action_fin.php. +Definition at line 162 of file user_action_fin.php.

                  @@ -298,10 +298,10 @@ Definition at line 231 of file user_action_fin.php. +Definition at line 232 of file user_action_fin.php. -

                  +

                  +Definition at line 133 of file user_action_fin.php.
                  @@ -323,7 +323,7 @@ Definition at line 132 of file user_action_fin.php.

                  @@ -348,7 +348,7 @@ Definition at line 197 of file user_action_fin.php. +Definition at line 198 of file user_action_fin.php.

                  @@ -373,7 +373,7 @@ Definition at line 196 of file user_action_fin.php. +Definition at line 197 of file user_action_fin.php.

                  @@ -398,16 +398,16 @@ Definition at line 179 of file user_action_fin.php. +Definition at line 180 of file user_action_fin.php. -

                  +

                  @@ -423,7 +423,7 @@ Definition at line 137 of file user_action_fin.php. +Definition at line 59 of file user_action_fin.php.
                  - +
                  $r = FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true) $r = FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb'))

                  @@ -448,7 +448,7 @@ Definition at line 224 of file user_action_fin.php. +Definition at line 225 of file user_action_fin.php.

                  @@ -473,7 +473,7 @@ Definition at line 192 of file user_action_fin.php. +Definition at line 193 of file user_action_fin.php.

                  @@ -498,10 +498,10 @@ Definition at line 195 of file user_action_fin.php. +Definition at line 196 of file user_action_fin.php. -

                  +

                  +Definition at line 136 of file user_action_fin.php.
                  @@ -523,7 +523,7 @@ Definition at line 135 of file user_action_fin.php.

                  @@ -548,7 +548,7 @@ Definition at line 180 of file user_action_fin.php. +Definition at line 181 of file user_action_fin.php.

                  @@ -573,7 +573,7 @@ Definition at line 218 of file user_action_fin.php. +Definition at line 219 of file user_action_fin.php.

                  @@ -598,7 +598,7 @@ Definition at line 177 of file user_action_fin.php. +Definition at line 178 of file user_action_fin.php.

                  @@ -648,7 +648,7 @@ Definition at line 163 of file user_action_fin.php. +Definition at line 164 of file user_action_fin.php.

                  @@ -673,7 +673,7 @@ Definition at line 182 of file user_action_fin.php. +Definition at line 183 of file user_action_fin.php.

                  @@ -698,10 +698,10 @@ Definition at line 164 of file user_action_fin.php. +Definition at line 165 of file user_action_fin.php. -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__gl_8php-source.html b/doc/developper/html/user__action__gl_8php-source.html index 5d41a88a7..a6da55e5d 100644 --- a/doc/developper/html/user__action__gl_8php-source.html +++ b/doc/developper/html/user__action__gl_8php-source.html @@ -57,30 +57,30 @@ 00052 00053 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00054 $User=new cl_user($cn); -00055 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00056 $w->selected=$current; +00055 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00056 $w->selected=$current; 00057 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); 00058 ?> 00059 </form> 00060 <? 00061 -00062 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current; +00062 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current; 00063 // Nav. bar -00064 $step=$_SESSION['g_pagesize']; -00065 $page=(isset($_GET['offset']))?$_GET['page']:1; -00066 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00064 $step=$_SESSION['g_pagesize']; +00065 $page=(isset($_GET['offset']))?$_GET['page']:1; +00066 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00067 00068 list ($max_line,$list)=ListJrn($cn,0,$sql,null,$offset); 00069 -00070 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00070 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00071 -00072 echo $bar; +00072 echo $bar; 00073 echo $list; 00074 echo $bar; 00075 00076 ?> 00077 </div> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__gl_8php.html b/doc/developper/html/user__action__gl_8php.html index fdda4a63d..40ac053f9 100644 --- a/doc/developper/html/user__action__gl_8php.html +++ b/doc/developper/html/user__action__gl_8php.html @@ -426,7 +426,7 @@ Definition at line 44 of file user_action_gl.php. -
                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ods_8php-source.html b/doc/developper/html/user__action__ods_8php-source.html index 333444d12..d63b1be41 100644 --- a/doc/developper/html/user__action__ods_8php-source.html +++ b/doc/developper/html/user__action__ods_8php-source.html @@ -55,12 +55,12 @@ 00050 // We request a new form 00051 if ( isset($_GET['blank'] )) { 00052 // Submit button in the form -00053 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout poste"> +00053 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout poste"> 00054 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Confirmer">'; 00055 // add a one-line calculator 00056 00057 -00058 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,null,false); +00058 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,null,false); 00059 echo '<div class="u_redcontent">'; 00060 echo $r; 00061 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -72,14 +72,14 @@ 00067 // Add an item 00068 if ( isset ($_POST['add_item'])) { 00069 // Add a line -00070 $nb_number=$_POST["nb_item"]; -00071 $nb_number++; +00070 $nb_number=$_POST["nb_item"]; +00071 $nb_number++; 00072 00073 // submit button in the form -00074 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> +00074 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> 00075 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00076 -00077 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00077 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); 00078 echo '<div class="u_redcontent">'; 00079 echo $r; 00080 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -88,13 +88,13 @@ 00083 // Correct it 00084 if ( isset ($_POST['correct'])) { 00085 // Get number of lines -00086 $nb_number=$_POST["nb_item"]; +00086 $nb_number=$_POST["nb_item"]; 00087 00088 // submit button in the form -00089 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> +00089 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> 00090 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00091 -00092 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00092 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); 00093 echo '<div class="u_redcontent">'; 00094 echo $r; 00095 echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>"; @@ -106,19 +106,19 @@ 00101 // TODO: the name 'view_invoice' should be changed to something more self-explaining, like 00102 // 'submit_od', no? 00103 if ( isset ($_POST['view_invoice']) ) { -00104 $nb_number=$_POST["nb_item"]; -00105 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; -00106 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; +00104 $nb_number=$_POST["nb_item"]; +00105 $submit='<INPUT TYPE="SUBMIT" name="save" value="Confirmer">'; +00106 $submit.='<INPUT TYPE="SUBMIT" name="correct" value="Corriger">'; 00107 -00108 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number); +00108 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number); 00109 00110 // if something goes wrong, correct it 00111 if ( $r == null ) { 00112 // submit button in the form -00113 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> +00113 $submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste"> 00114 <INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">'; 00115 -00116 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); +00116 $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number); 00117 } 00118 echo '<div class="u_redcontent">'; 00119 echo $r; @@ -129,12 +129,12 @@ 00124 if ( isset($_POST['save'] )) { 00125 $r=RecordODS($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']); 00126 // Get number of lines -00127 $nb_number=$_POST["nb_item"]; +00127 $nb_number=$_POST["nb_item"]; 00128 00129 // submit button in the form -00130 $submit='<h2 class="info">Recorded</h2>'; +00130 $submit='<h2 class="info">Recorded</h2>'; 00131 -00132 $r.=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true); +00132 $r.=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true, $nb_number,true); 00133 echo '<div class="u_redcontent">'; 00134 echo $r; 00135 echo "</div>"; @@ -180,20 +180,20 @@ 00175 00176 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00177 $User=new cl_user($cn); -00178 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00179 $w->selected=$current; +00178 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00179 $w->selected=$current; 00180 00181 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); 00182 ?> 00183 </form> 00184 <? -00185 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; -00186 $step=$_SESSION['g_pagesize']; -00187 $page=(isset($_GET['offset']))?$_GET['page']:1; -00188 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00185 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; +00186 $step=$_SESSION['g_pagesize']; +00187 $page=(isset($_GET['offset']))?$_GET['page']:1; +00188 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00189 list ($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); -00190 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); -00191 echo $bar; +00190 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00191 echo $bar; 00192 echo $list; 00193 echo $bar; 00194 echo '</div>'; @@ -211,7 +211,7 @@ 00206 $sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID']; 00207 00208 // display a search box -00209 $search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$HTTP_POST_VARS); +00209 $search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$HTTP_POST_VARS); 00210 echo '<DIV class="u_redcontent">'; 00211 echo $search_box; 00212 // if nofirst is set then show result @@ -223,7 +223,7 @@ 00218 } 00219 include("user_update.php"); 00220 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ods_8php.html b/doc/developper/html/user__action__ods_8php.html index 3adac077e..e93be03e5 100644 --- a/doc/developper/html/user__action__ods_8php.html +++ b/doc/developper/html/user__action__ods_8php.html @@ -588,7 +588,7 @@ Definition at line 160 of file user_action_ods.php. -
                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ven_8php-source.html b/doc/developper/html/user__action__ven_8php-source.html index 82be6b67c..fe515392b 100644 --- a/doc/developper/html/user__action__ven_8php-source.html +++ b/doc/developper/html/user__action__ven_8php-source.html @@ -45,29 +45,29 @@ 00039 // Add item 00040 if (isset($_POST["add_item"]) ) { 00041 echo_debug('user_action_ven.php',__LINE__,"Add an item"); -00042 $nb_number=$_POST["nb_item"]; -00043 $nb_number++; +00042 $nb_number=$_POST["nb_item"]; +00043 $nb_number++; 00044 -00045 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); +00045 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); 00046 echo '<div class="u_redcontent">'; -00047 echo $form; +00047 echo $form; 00048 echo '</div>'; 00049 00050 } // add an item 00051 00052 // We want to see the encoded invoice 00053 if ( isset ($_POST["view_invoice"])) { -00054 $nb_number=$_POST["nb_item"]; -00055 if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true) +00054 $nb_number=$_POST["nb_item"]; +00055 if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true) 00056 { -00057 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); +00057 $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number); 00058 // Check failed : invalid date or quantity 00059 } else { 00060 echo_error("Cannot validate "); -00061 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); +00061 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number); 00062 } 00063 echo '<div class="u_redcontent">'; -00064 echo $form; +00064 echo $form; 00065 echo '</div>'; 00066 00067 } @@ -78,9 +78,9 @@ 00072 $jrn=new jrn($cn, $_GET['p_jrn']); 00073 echo_debug('user_action_ven.php',__LINE__,"Blank form"); 00074 // Show an empty form of invoice -00075 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),null,false,$jrn->GetDefLine('deb')); +00075 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),null,false,$jrn->GetDefLine('deb')); 00076 echo '<div class="u_redcontent">'; -00077 echo $form; +00077 echo $form; 00078 echo '</div>'; 00079 } 00080 @@ -106,9 +106,9 @@ 00100 } 00101 00102 $nb=$_POST['nb_item']; -00103 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb); +00103 $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb); 00104 echo '<div class="u_redcontent">'; -00105 echo $form; +00105 echo $form; 00106 echo '</div>'; 00107 } 00108 // Save and print the invoice @@ -123,16 +123,16 @@ 00117 00118 $comment=RecordInvoice($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']); 00119 -00120 $nb_number=$_POST["nb_item"]; -00121 if ( form_verify_input($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number)== true) { -00122 $form=FormVenteView($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number,'noform',$comment); +00120 $nb_number=$_POST["nb_item"]; +00121 if ( form_verify_input($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number)== true) { +00122 $form=FormVenteView($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number,'noform',$comment); 00123 } else { 00124 echo_error("Cannot validate "); -00125 $form=FormVenInput($cn,$_GET['p_jrn'],$User,$HTTP_POST_VARS,false,$nb_number); +00125 $form=FormVenInput($cn,$_GET['p_jrn'],$User,$HTTP_POST_VARS,false,$nb_number); 00126 } 00127 00128 echo '<div class="u_redcontent">'; -00129 echo $form; +00129 echo $form; 00130 echo "</div> "; 00131 } 00132 @@ -174,8 +174,8 @@ 00168 00169 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); 00170 // User is already set User=new cl_user($cn); -00171 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); -00172 $w->selected=$current; +00171 $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); +00172 $w->selected=$current; 00173 00174 echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); 00175 ?> @@ -190,7 +190,7 @@ 00184 { 00185 list($ad) = sscanf($name,"set_jr_id%d"); 00186 if ( $ad == null ) continue; -00187 $sql="update jrn set jr_rapt='' where jr_id=$ad"; +00187 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00188 $Res=ExecSql($cn,$sql); 00189 00190 } @@ -202,20 +202,20 @@ 00196 if ( $id == null ) continue; 00197 echo "Mise à jour $id"; 00198 $paid=($paid=='on')?'paid':''; -00199 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; +00199 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00200 $Res=ExecSql($cn,$sql); 00201 } 00202 00203 } 00204 // Show list of sell 00205 // Date - date of payment - Customer - amount -00206 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; -00207 $step=$_SESSION['g_pagesize']; -00208 $page=(isset($_GET['offset']))?$_GET['page']:1; -00209 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00206 $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; +00207 $step=$_SESSION['g_pagesize']; +00208 $page=(isset($_GET['offset']))?$_GET['page']:1; +00209 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00210 00211 list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); -00212 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); +00212 $bar=jrn_navigation_bar($offset,$max_line,$step,$page); 00213 00214 echo "<hr>$bar"; 00215 echo '<form method="POST">'; @@ -258,7 +258,7 @@ 00252 { 00253 list($ad) = sscanf($name,"set_jr_id%d"); 00254 if ( $ad == null ) continue; -00255 $sql="update jrn set jr_rapt='' where jr_id=$ad"; +00255 $sql="update jrn set jr_rapt='' where jr_id=$ad"; 00256 $Res=ExecSql($cn,$sql); 00257 00258 } @@ -270,7 +270,7 @@ 00264 if ( $id == null ) continue; 00265 echo "Mise à jour $id"; 00266 $paid=($paid=='on')?'paid':''; -00267 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; +00267 $sql="update jrn set jr_rapt='$paid' where jr_id=$id"; 00268 $Res=ExecSql($cn,$sql); 00269 } 00270 @@ -279,13 +279,13 @@ 00273 // Show list of unpaid sell 00274 // Date - date of payment - Customer - amount 00275 // Nav. bar -00276 $step=$_SESSION['g_pagesize']; -00277 $page=(isset($_GET['offset']))?$_GET['page']:1; -00278 $offset=(isset($_GET['offset']))?$_GET['offset']:0; +00276 $step=$_SESSION['g_pagesize']; +00277 $page=(isset($_GET['offset']))?$_GET['page']:1; +00278 $offset=(isset($_GET['offset']))?$_GET['offset']:0; 00279 -00280 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; +00280 $sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; 00281 list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); -00282 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; +00282 $sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; 00283 list($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset,1); 00284 00285 // Get the max line @@ -327,7 +327,7 @@ 00321 00322 include("user_update.php"); 00323 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__action__ven_8php.html b/doc/developper/html/user__action__ven_8php.html index b4a60b261..551885ca2 100644 --- a/doc/developper/html/user__action__ven_8php.html +++ b/doc/developper/html/user__action__ven_8php.html @@ -644,7 +644,7 @@ Definition at line 153 of file user_action_ven.php. -
                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__advanced_8php-source.html b/doc/developper/html/user__advanced_8php-source.html index df5c0d1cd..369498286 100644 --- a/doc/developper/html/user__advanced_8php-source.html +++ b/doc/developper/html/user__advanced_8php-source.html @@ -58,10 +58,10 @@ 00054 include_once ("user_menu.php"); 00055 echo '<div class="u_tmenu">'; 00056 -00057 echo ShowMenuCompta($_SESSION['g_dossier']); +00057 echo ShowMenuCompta($_SESSION['g_dossier']); 00058 echo '</div>'; 00059 -00060 echo ShowMenuAdvanced(); +00060 echo ShowMenuAdvanced(); 00061 00062 00063 if ( isset($_REQUEST['p_action']) && $_REQUEST['p_action'] == "periode" ) { @@ -71,7 +71,7 @@ 00067 00068 html_page_stop(); 00069 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__advanced_8php.html b/doc/developper/html/user__advanced_8php.html index 96c619a83..7de6353cd 100644 --- a/doc/developper/html/user__advanced_8php.html +++ b/doc/developper/html/user__advanced_8php.html @@ -22,7 +22,7 @@

                  Detailed Description

                  Obsolete.

                  -

                  Todo:
                  Obsolete ?
                  +
                  Todo:
                  Obsolete ?

                  Definition in file user_advanced.php.


                  Variable Documentation

                  @@ -76,7 +76,7 @@ Definition at line 3 Definition at line 36 of file user_advanced.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__common_8php-source.html b/doc/developper/html/user__common_8php-source.html index 219d8bd76..2ee3ad94f 100644 --- a/doc/developper/html/user__common_8php-source.html +++ b/doc/developper/html/user__common_8php-source.html @@ -186,7 +186,7 @@ 00257 $debit=($debit=='false')?'true':'false'; 00258 } 00259 -00260 $sql=sprintf("select insert_jrnx +00260 $sql=sprintf("select insert_jrnx 00261 ('%s',abs(%.2f),%d,%d,%d,%s,'%s',%d,'%s')", 00262 $p_date,round($p_amount,2),$p_poste,$p_grpt,$p_jrn,$debit,$p_user,$p_periode,$p_qcode); 00263 @@ -208,7 +208,7 @@ 00297 } else { 00298 $p_echeance=sprintf("to_date('%s','DD.MM.YYYY')",$p_echeance); 00299 } -00300 $sql=sprintf("insert into jrn (jr_def_id,jr_montant,jr_comment,jr_date,jr_ech,jr_grpt_id,jr_tech_per) +00300 $sql=sprintf("insert into jrn (jr_def_id,jr_montant,jr_comment,jr_date,jr_ech,jr_grpt_id,jr_tech_per) 00301 values ( %d,abs(%.2f),'%s',to_date('%s','DD.MM.YYYY'),%s,%d,%d)", 00302 $p_jrn, round($p_amount,2),$p_comment,$p_date,$p_echeance,$p_grpt,$p_periode); 00303 echo_debug('user_common.php',__LINE__,"InsertJrn $sql"); @@ -221,12 +221,12 @@ 00324 00325 include_once("central_inc.php"); 00326 $limit=($_SESSION['g_pagesize']!=-1)?" LIMIT ".$_SESSION['g_pagesize']:""; -00327 $offset=($_SESSION['g_pagesize']!=-1)?" OFFSET ".$p_value:""; +00327 $offset=($_SESSION['g_pagesize']!=-1)?" OFFSET ".$p_value:""; 00328 if ( $p_array == null ) { 00329 00330 //que fait cette requête??? 00331 -00332 $sql="select jr_id , +00332 $sql="select jr_id , 00333 jr_montant, 00334 jr_comment, 00335 jr_ech, @@ -255,7 +255,7 @@ 00358 foreach ( $p_array as $key=>$element) { 00359 ${"l_$key"}=$element; 00360 } -00361 $sql="select jr_id , +00361 $sql="select jr_id , 00362 jr_montant, 00363 jr_comment, 00364 jr_ech, @@ -281,43 +281,43 @@ 00384 // amount 00385 if ( ereg("^[0-9]+$", $l_s_montant) || ereg ("^[0-9]+\.[0-9]+$", $l_s_montant) ) 00386 { -00387 $sql.=$l_and." jr_montant $l_mont_sel $l_s_montant"; +00387 $sql.=$l_and." jr_montant $l_mont_sel $l_s_montant"; 00388 $l_and=" and "; 00389 } 00390 // date 00391 if ( isDate($l_date_start) != null ) 00392 { -00393 $sql.=$l_and." jr_date >= to_date('".$l_date_start."','DD.MM.YYYY')"; +00393 $sql.=$l_and." jr_date >= to_date('".$l_date_start."','DD.MM.YYYY')"; 00394 $l_and=" and "; 00395 } 00396 if ( isDate($l_date_end) != null ) { -00397 $sql.=$l_and." jr_date <= to_date('".$l_date_end."','DD.MM.YYYY')"; +00397 $sql.=$l_and." jr_date <= to_date('".$l_date_end."','DD.MM.YYYY')"; 00398 $l_and=" and "; 00399 } 00400 // comment 00401 $l_s_comment=FormatString($l_s_comment); 00402 if ( $l_s_comment != null ) 00403 { -00404 $sql.=$l_and." upper(jr_comment) like upper('%".$l_s_comment."%') "; +00404 $sql.=$l_and." upper(jr_comment) like upper('%".$l_s_comment."%') "; 00405 $l_and=" and "; 00406 } 00407 // internal 00408 $l_s_internal=FormatString($l_s_internal); 00409 if ( $l_s_internal != null ) { -00410 $sql.=$l_and." jr_internal like ('%$l_s_internal%') "; +00410 $sql.=$l_and." jr_internal like ('%$l_s_internal%') "; 00411 $l_and=" and "; 00412 } 00413 // Poste 00414 $l_poste=FormatString($l_poste); 00415 if ( $l_poste != null ) { -00416 $sql.=$l_and." jr_grpt_id in (select j_grpt +00416 $sql.=$l_and." jr_grpt_id in (select j_grpt 00417 from jrnx where j_poste = $l_poste) "; 00418 $l_and=" and "; 00419 } 00420 // Quick Code 00421 if ( $l_qcode != null ) 00422 { -00423 $sql.=$l_and." jr_grpt_id in ( select j_grpt from +00423 $sql.=$l_and." jr_grpt_id in ( select j_grpt from 00424 jrnx where j_qcode = '$l_qcode')"; 00425 $l_and=" and "; 00426 } @@ -326,17 +326,17 @@ 00429 $User->Check(); 00430 if ( $User->admin == 0 ) 00431 { -00432 $sql.=$l_and." jr_def_id in ( select uj_jrn_id ". +00432 $sql.=$l_and." jr_def_id in ( select uj_jrn_id ". 00433 " from user_sec_jrn where ". 00434 " uj_login='".$_SESSION['g_user']."'". 00435 " and uj_priv in ('R','W'))"; 00436 } -00437 $sql.=" order by jr_date_order asc"; +00437 $sql.=" order by jr_date_order asc"; 00438 }// p_array != null 00439 // Count 00440 $count=CountSql($p_cn,$sql); 00441 // Add the limit -00442 $sql.=$limit.$offset; +00442 $sql.=$limit.$offset; 00443 00444 // Execute SQL stmt 00445 $Res=ExecSql($p_cn,$sql); @@ -479,7 +479,7 @@ 00598 echo_debug('user_common.php',__LINE__,"function InsertStockGoods($p_cn,$p_j_id,$p_good,$p_quant,$p_type)"); 00599 // Retrieve the good account for stock 00600 $code_marchandise=GetFicheAttribut($p_cn,$p_good,ATTR_DEF_STOCK); -00601 $sql="select f_id from vw_poste_qcode where j_qcode='$p_good'"; +00601 $sql="select f_id from vw_poste_qcode where j_qcode='$p_good'"; 00602 $Res=ExecSql($p_cn,$sql); 00603 $r=pg_fetch_array($Res,0); 00604 $f_id=$r['f_id']; @@ -574,7 +574,7 @@ 00748 } 00749 00762 function GetConcerned ($p_cn, $jr_id) { -00763 $sql=" select jr_id as cn from jrn_rapt where jra_concerned=$jr_id +00763 $sql=" select jr_id as cn from jrn_rapt where jra_concerned=$jr_id 00764 union 00765 select jra_concerned as cn from jrn_rapt where jr_id=$jr_id"; 00766 $Res=ExecSql($p_cn,$sql); @@ -586,8 +586,8 @@ 00772 00773 // put everything in an array 00774 for ($i=0;$i<$n;$i++) { -00775 $l=pg_fetch_array($Res,$i); -00776 $r[$i]=$l['cn']; +00775 $l=pg_fetch_array($Res,$i); +00776 $r[$i]=$l['cn']; 00777 } 00778 return $r; 00779 } @@ -659,10 +659,10 @@ 00896 // previous 00897 if ($p_page !=1) { 00898 $e=$p_page-1; -00899 $step=$_SESSION['g_pagesize']; -00900 $offset=($e-1)*$step; +00899 $step=$_SESSION['g_pagesize']; +00900 $offset=($e-1)*$step; 00901 -00902 $r='<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; +00902 $r='<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; 00903 $r.="Pr&eacute;c&eacute;dent"; 00904 $r.="</A>&nbsp;&nbsp;"; 00905 } @@ -671,8 +671,8 @@ 00908 for ($e=1;$e<=$nb_page;$e++) { 00909 // do not included current page 00910 if ( $e != $p_page ) { -00911 $step=$_SESSION['g_pagesize']; -00912 $offset=($e-1)*$step; +00911 $step=$_SESSION['g_pagesize']; +00912 $offset=($e-1)*$step; 00913 $go=sprintf($_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step"); 00914 $r.=sprintf('<A HREF="%s" CLASS="one">%d</A>&nbsp;',$go,$e); 00915 } else { @@ -686,10 +686,10 @@ 00923 // next 00924 if ($p_page !=$nb_page) { 00925 $e=$p_page+1; -00926 $step=$_SESSION['g_pagesize']; -00927 $offset=($e-1)*$step; +00926 $step=$_SESSION['g_pagesize']; +00927 $offset=($e-1)*$step; 00928 -00929 $r.='&nbsp;<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; +00929 $r.='&nbsp;<A class="one" href="'.$_SERVER['PHP_SELF']."?".$url."&offset=$offset&step=$step&page=$e&size=$step".'">'; 00930 $r.="Suivant"; 00931 $r.="</A>"; 00932 } @@ -698,7 +698,7 @@ 00935 return $r; 00936 } 00937 -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__common_8php.html b/doc/developper/html/user__common_8php.html index 7a249b16c..0fb8dfc8e 100644 --- a/doc/developper/html/user__common_8php.html +++ b/doc/developper/html/user__common_8php.html @@ -331,7 +331,7 @@ array if something is found

                  Definition at line 762 of file user_common.php.

                  -References $i, $l, $n, $r, $Res, $sql, and ExecSql(). +References $i, $l, $n, $r, $Res, $sql, and ExecSql().

                  Referenced by ListJrn(), and UpdateJrn(). @@ -584,9 +584,9 @@ nothing

                  Definition at line 288 of file user_common.php.

                  -References $Res, $sql, echo_debug(), ExecSql(), FormatString(), GetSequence(), and p_comment. +References $Res, $sql, echo_debug(), ExecSql(), FormatString(), GetSequence(), and p_comment.

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

                  @@ -686,9 +686,9 @@ nothing

                  Definition at line 244 of file user_common.php.

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

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

                  @@ -747,7 +747,7 @@ Definition at line 700

                  References $Res, CountSql(), echo_debug(), echo_error(), ExecSql(), and isNumber().

                  -Referenced by RecordFin(). +Referenced by RecordFin().

                  @@ -816,7 +816,7 @@ $p_j_id the j_id

                    Definition at line 596 of file user_common.php.

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

                    Referenced by RecordInvoice(), and RecordSell(). @@ -933,7 +933,7 @@ jrn_navigation_bar

                    Definition at line 862 of file user_common.php.

                    -References $_SESSION, $e, $offset, $r, $step, $url, name, size, and value. +References $_SESSION, $e, $offset, $r, $step, $url, name, size, and value.

                    Referenced by action::myList(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), and ViewFiche(). @@ -999,16 +999,22 @@ Referenced by action: show all the lines of the asked jrn

                    ListJrn($p_cn,$p_jrn,$p_wherel)

                    -parm :

                    -

                    -$p_jrn jrn_id jrn.jrn_def_id

                      -
                    • $p_where the sql query where clause
                    • $p_array param. for a search
                    • $p_value offset
                    • $p_paid value : 0 nothing is shown, 1 check box; 2 check_box disable return: array (entryCount,generatedHTML);
                    +
                    Parameters:
                    + + + + + + + +
                    $p_cn database connection
                    $p_jrn jrn_id jrn.jrn_def_id
                    $p_where the sql query where clause
                    $p_array param. for a search
                    $p_value offset
                    $p_paid value : 0 nothing is shown, 1 check box; 2 check_box disable
                    +
                    +
                    Returns:
                    array (entryCount,generatedHTML);

                    Definition at line 322 of file user_common.php.

                    -References $_SESSION, $a, $count, $h, $limit, $Max, $offset, $p_jrn, $r, $Res, $row, $sql, $tr, $User, $w, CountSql(), DbConnect(), ExecSql(), FormatString(), GetConcerned(), GetInternal(), GetJrnProp(), isDate(), and table. +References $_SESSION, $a, $count, $h, $limit, $Max, $offset, $p_jrn, $r, $Res, $row, $sql, $tr, $User, $w, CountSql(), DbConnect(), ExecSql(), FormatString(), GetConcerned(), GetInternal(), GetJrnProp(), isDate(), and table.

                    @@ -1124,7 +1130,7 @@ Definition at line 654

                    References cmpDate(), echo_debug(), echo_error(), GetPeriode(), isDate(), and PeriodeClosed().

                    -Referenced by FormFin(), and FormODS(). +Referenced by FormODS().

                    @@ -1176,7 +1182,7 @@ Definition at line 631 References $a, and getFicheAttribut(). -


                    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__compta_8php-source.html b/doc/developper/html/user__compta_8php-source.html index 0e041b7f3..37320d73d 100644 --- a/doc/developper/html/user__compta_8php-source.html +++ b/doc/developper/html/user__compta_8php-source.html @@ -69,12 +69,12 @@ 00064 include_once ("user_menu.php"); 00065 echo '<div class="u_tmenu">'; 00066 -00067 echo ShowMenuCompta($g_dossier); +00067 echo ShowMenuCompta($g_dossier); 00068 echo '</div>'; 00069 html_page_stop(); 00070 00071 ?> -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__compta_8php.html b/doc/developper/html/user__compta_8php.html index 0c4e35a88..089a06960 100644 --- a/doc/developper/html/user__compta_8php.html +++ b/doc/developper/html/user__compta_8php.html @@ -129,7 +129,7 @@ Definition at line 28< Definition at line 30 of file user_compta.php. -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__form__ach_8php-source.html b/doc/developper/html/user__form__ach_8php-source.html index d74d2e56e..cfe65da63 100644 --- a/doc/developper/html/user__form__ach_8php-source.html +++ b/doc/developper/html/user__form__ach_8php-source.html @@ -74,7 +74,7 @@ 00082 $r.="<FORM NAME=\"form_detail\" enctype=\"multipart/form-data\" ACTION=\"$href\" METHOD=\"POST\">"; 00083 } 00084 -00085 $sql="select jrn_def_id as value,jrn_def_name as label from jrn_def where jrn_def_type='VEN'"; +00085 $sql="select jrn_def_id as value,jrn_def_name as label from jrn_def where jrn_def_type='VEN'"; 00086 $list=GetArray($p_cn,$sql); 00087 $r.='<TABLE>'; 00088 // Date widget @@ -773,7 +773,7 @@ 00836 } 00837 00838 ?> -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__form__ach_8php.html b/doc/developper/html/user__form__ach_8php.html index aae703db8..aa7633909 100644 --- a/doc/developper/html/user__form__ach_8php.html +++ b/doc/developper/html/user__form__ach_8php.html @@ -184,7 +184,7 @@ Display the form for a sell Used to show detail, encode a new invoice or update

                    Definition at line 44 of file user_form_ach.php.

                    -References $client_label, $fiche, $h, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array(). +References $client_label, $fiche, $h, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array().

                    @@ -329,10 +329,10 @@ $p_array contains all the invoice data e_date => e : 01.01.2003 e_client =>

                    Definition at line 661 of file user_form_ach.php.

                    -References $comment, $e, $i, $poste, $r, $Res, $seq, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). +References $comment, $e, $i, $poste, $r, $Res, $seq, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). -


                    Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                    Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__form__fin_8php-source.html b/doc/developper/html/user__form__fin_8php-source.html index 409fb0cdc..c232c84bc 100644 --- a/doc/developper/html/user__form__fin_8php-source.html +++ b/doc/developper/html/user__form__fin_8php-source.html @@ -32,362 +32,364 @@ 00023 require_once("preference.php"); 00024 require_once("fiche_inc.php"); 00025 require_once("user_common.php"); -00043 function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) -00044 { -00045 foreach ($p_array as $name=>$content) { -00046 ${"$name"}=$content; -00047 } -00048 // Verify the date -00049 if ( isDate($e_date) == null ) { -00050 echo_error("Invalid date $e_date"); -00051 echo_debug('user_form_fin.php',__LINE__,"Invalid date $e_date"); -00052 echo "<SCRIPT> alert('INVALID DATE $e_date !!!!');</SCRIPT>"; -00053 return null; -00054 } +00042 function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) +00043 { +00044 foreach ($p_array as $name=>$content) { +00045 ${"$name"}=$content; +00046 } +00047 // Verify the date +00048 if ( isDate($e_date) == null ) { +00049 echo_error("Invalid date $e_date"); +00050 echo_debug('user_form_fin.php',__LINE__,"Invalid date $e_date"); +00051 echo "<SCRIPT> alert('INVALID DATE $e_date !!!!');</SCRIPT>"; +00052 return null; +00053 } +00054 00055 -00056 -00057 // Check if the fiche is in the jrn -00058 if (IsFicheOfJrn($p_cn , $p_jrn, $e_bank_account,'deb') == 0 ) -00059 { -00060 $msg="Mauvais compte en banque"; -00061 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); -00062 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00063 return null; -00064 } -00065 -00066 // check if all e_march are in fiche -00067 for ($i=0;$i<$p_number;$i++) { -00068 if ( trim(${"e_other$i"}) == "" ) { -00069 // nothing to do -00070 continue; -00071 } -00072 // Check amount -00073 if ( isNumber(${"e_other".$i."_amount"}) == 0) { -00074 $msg="Montant invalide !!! "; -00075 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); -00076 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00077 return null; -00078 } -00079 // Check -00080 if ( isFicheOfJrn($p_cn,$p_jrn,${"e_other$i"},'cred') == 0 ) { -00081 $msg="Fiche inexistante !!! "; -00082 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); -00083 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00084 return null; -00085 } -00086 // check if the ATTR_DEF_ACCOUNT is set -00087 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); -00088 if ( $poste == null ) -00089 { -00090 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; -00091 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); -00092 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00093 return null; -00094 -00095 } -00096 if ( strlen(trim($poste))==0 ) -00097 { -00098 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; -00099 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); -00100 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00101 } -00102 -00103 } -00104 // Verify the userperiode -00105 -00106 // p_periode contient la periode par default -00107 list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$p_periode); -00108 -00109 // Date dans la periode active -00110 echo_debug ('user_form_fin',__LINE__,"date start periode $l_date_start date fin periode $l_date_end date demande $e_date"); -00111 if ( cmpDate($e_date,$l_date_start)<0 || -00112 cmpDate($e_date,$l_date_end)>0 ) -00113 { -00114 $msg="Not in the active periode please change your preference"; -00115 echo_error($msg); echo_error($msg); -00116 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00117 return null; -00118 } -00119 // Periode ferm� -00120 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) -00121 { -00122 $msg="This periode is closed please change your preference"; -00123 echo_error($msg); echo_error($msg); -00124 echo "<SCRIPT>alert('$msg');</SCRIPT>"; -00125 return null; -00126 } -00127 return true; -00128 } +00056 // Check if the fiche is in the jrn +00057 if (IsFicheOfJrn($p_cn , $p_jrn, $e_bank_account,'deb') == 0 ) +00058 { +00059 $msg="Mauvais compte en banque"; +00060 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); +00061 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00062 return null; +00063 } +00064 +00065 // check if all e_march are in fiche +00066 for ($i=0;$i<$p_number;$i++) { +00067 if ( trim(${"e_other$i"}) == "" ) { +00068 // nothing to do +00069 continue; +00070 } +00071 // Check amount +00072 if ( isNumber(${"e_other".$i."_amount"}) == 0) { +00073 $msg="Montant invalide !!! "; +00074 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); +00075 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00076 return null; +00077 } +00078 // Check +00079 if ( isFicheOfJrn($p_cn,$p_jrn,${"e_other$i"},'cred') == 0 ) { +00080 $msg="Fiche inexistante !!! "; +00081 echo_error($msg);echo_debug('user_form_fin.php',__LINE__,$msg); +00082 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00083 return null; +00084 } +00085 // check if the ATTR_DEF_ACCOUNT is set +00086 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); +00087 if ( $poste == null ) +00088 { +00089 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; +00090 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); +00091 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00092 return null; +00093 +00094 } +00095 if ( strlen(trim($poste))==0 ) +00096 { +00097 $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; +00098 echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); +00099 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00100 } +00101 +00102 } +00103 // Verify the userperiode +00104 +00105 // p_periode contient la periode par default +00106 list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$p_periode); +00107 +00108 // Date dans la periode active +00109 echo_debug ('user_form_fin',__LINE__,"date start periode $l_date_start date fin periode $l_date_end date demande $e_date"); +00110 if ( cmpDate($e_date,$l_date_start)<0 || +00111 cmpDate($e_date,$l_date_end)>0 ) +00112 { +00113 $msg="Not in the active periode please change your preference"; +00114 echo_error($msg); echo_error($msg); +00115 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00116 return null; +00117 } +00118 // Periode ferm� +00119 if ( PeriodeClosed ($p_cn,$p_periode)=='t' ) +00120 { +00121 $msg="This periode is closed please change your preference"; +00122 echo_error($msg); echo_error($msg); +00123 echo "<SCRIPT>alert('$msg');</SCRIPT>"; +00124 return null; +00125 } +00126 return true; +00127 } +00128 00129 -00130 -00147 function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=true,$p_item=4,$p_save=false) -00148 { -00149 include_once("poste.php"); -00150 if ( $p_array != null ) { -00151 // array contains old value -00152 foreach ( $p_array as $a=>$v) { -00153 ${"$a"}=$v; -00154 } -00155 } -00156 // The date -00157 list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$p_periode); -00158 $flag=(isset($e_date))?1:0; -00159 $e_date=( ! isset($e_date) ) ? substr($l_date_start,2,8):$e_date; -00160 -00161 // Verify if valid date -00162 if ($flag ==1 and VerifyOperationDate($p_cn,$p_periode,$e_date) == null) { -00163 $e_date=substr($l_date_start,2,8); -00164 } -00165 -00166 -00167 $e_comment=(isset($e_comment))?$e_comment:""; -00168 -00169 $r=""; -00170 if ( $pview_only == false) { -00171 $r.=JS_SEARCH_CARD; -00172 $r.=JS_CONCERNED_OP; -00173 } -00174 -00175 $r.="<FORM NAME=\"form_detail\" enctype=\"multipart/form-data\" ACTION=\"user_jrn.php?action=new&p_jrn=$p_jrn\" METHOD=\"POST\">"; -00176 $r.='<TABLE>'; -00177 $Date=new widget("text"); -00178 $Date->SetReadOnly($pview_only); -00179 $Date->table=1; -00180 $r.="<tr>"; -00181 $r.=$Date->IOValue("e_date",$e_date,"Date"); -00182 $r.="</tr>"; -00183 +00146 function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=true,$p_item=4,$p_save=false) +00147 { +00148 include_once("poste.php"); +00149 if ( $p_array != null ) { +00150 // array contains old value +00151 foreach ( $p_array as $a=>$v) { +00152 ${"$a"}=$v; +00153 } +00154 } +00155 // The date +00156 list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$p_periode); +00157 $flag=(isset($e_date))?1:0; +00158 $e_date=( ! isset($e_date) ) ? substr($l_date_start,2,8):$e_date; +00159 +00160 // Comment +00161 $e_comment=(isset($e_comment))?$e_comment:""; +00162 +00163 $r=""; +00164 if ( $pview_only == false) { +00165 $r.=JS_SEARCH_CARD; +00166 $r.=JS_CONCERNED_OP; +00167 } +00168 // Compute href +00169 $href=$_SERVER['SCRIPT_NAME']; +00170 switch ($href) +00171 { +00172 // user_jrn.php module "Comptable" +00173 case '/user_jrn.php': +00174 $href="user_jrn.php?action=new&p_jrn=$p_jrn"; +00175 break; +00176 // commercial.php module "Gestion" +00177 case '/commercial.php': +00178 $href="commercial.php?p_action=bank&p_jrn=$p_jrn"; +00179 break; +00180 default: +00181 echo_error('user_form_fin.php',__LINE__,'Erreur invalid request uri'); +00182 exit (-1); +00183 } 00184 -00185 include_once("fiche_inc.php"); -00186 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_item.'">'; -00187 -00188 // bank_account operation -00189 // Save old value and set a new one -00190 $e_bank_account=( isset ($e_bank_account) )?$e_bank_account:""; -00191 $e_bank_account_label=""; -00192 -00193 // retrieve e_bank_account_label -00194 if ( $e_bank_account != "" ) { -00195 $a_client=GetFicheAttribut($p_cn,$e_bank_account); -00196 if ( $a_client != null) -00197 $e_bank_account_label=$a_client['vw_name']." adresse ".$a_client['vw_addr']." ".$a_client['vw_cp']; -00198 } -00199 // search widget -00200 $W1=new widget("js_search"); -00201 $W1->readonly=$pview_only; -00202 $W1->label="Banque"; -00203 $W1->name="e_bank_account"; -00204 $W1->value=$e_bank_account; -00205 $W1->extra=FICHE_TYPE_FIN; // credits -00206 $W1->extra2=$p_jrn; -00207 $r.="<TR>".$W1->IOValue()."</TD>"; -00208 -00209 $r.="</TABLE>"; -00210 -00211 $Span=new widget ("span"); -00212 $Span->SetReadOnly($pview_only); -00213 $r.="<TD>".$Span->IOValue("e_bank_account_label",$e_bank_account_label)."</TD>"; -00214 -00215 -00216 // ComputeBanqueSaldo -00217 // -00218 if ( $pview_only == true ) { -00219 $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT)); -00220 $r.=" <b> Solde = ".$solde." </b>"; -00221 $new_solde=$solde; -00222 } -00223 -00224 // Start the div for item to move money -00225 $r.="<DIV>"; -00226 $r.='<H2 class="info">Actions</H2>'; -00227 $r.='<TABLE>'; -00228 $r.="<TR>"; -00229 $r.="<th></TH>"; -00230 $r.="<th>code</TH>"; -00231 $r.="<th>D&eacute;nomination</TH>"; -00232 $r.="<th>Description</TH>"; -00233 $r.="<th>Montant</TH>"; -00234 $r.='<th colspan="2"> Op. Concern&eacute;</th>'; -00235 $r.="</TR>"; -00236 // Parse each " tiers" -00237 for ($i=0; $i < $p_item; $i++) { -00238 $tiers=(isset(${"e_other".$i}))?${"e_other".$i}:""; -00239 $tiers_label=""; -00240 $tiers_amount=(isset(${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; -00241 -00242 $tiers_comment=(isset (${"e_other$i"."_comment"}))?${"e_other$i"."_comment"}:""; -00243 // If $tiers has a value -00244 if ( $tiers != "" ) -00245 { -00246 // retrieve the tva label and name -00247 $a_fiche=GetFicheAttribut($p_cn, $tiers); -00248 if ( $a_fiche != null ) { -00249 $tiers_label=$a_fiche['vw_name']; -00250 } -00251 } -00252 ${"e_other$i"."_amount"}=(isset (${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; -00253 -00254 $W1=new widget("js_search"); -00255 $W1->label=""; -00256 $W1->name="e_other".$i; -00257 $W1->value=$tiers; -00258 $W1->extra='cred'; // credits -00259 $W1->extra2=$p_jrn; -00260 $W1->readonly=$pview_only; -00261 $r.="<TR>".$W1->IOValue()."</TD>"; -00262 // label -00263 $other=new widget("span"); -00264 $r.="<TD>"; -00265 $r.=$other->IOValue("e_other$i"."_label", $tiers_label); -00266 // Comment -00267 $wComment=new widget("text"); -00268 $wComment->table=1; -00269 $wComment->SetReadOnly($pview_only); -00270 $r.=$wComment->IOValue("e_other$i"."_comment",$tiers_comment); -00271 // amount -00272 $wAmount=new widget("text"); -00273 $wAmount->table=1; -00274 $wAmount->size=7; -00275 $wAmount->SetReadOnly($pview_only); -00276 $r.=$wAmount->IOValue("e_other$i"."_amount",$tiers_amount); -00277 // concerned -00278 ${"e_concerned".$i}=(isset(${"e_concerned".$i}))?${"e_concerned".$i}:""; -00279 $wConcerned=new widget("js_concerned"); -00280 $wConcerned->SetReadOnly($pview_only); -00281 $r.=$wConcerned->IOValue("e_concerned".$i,${"e_concerned".$i}); -00282 $r.='</TR>'; -00283 // if not recorded the new amount must be recalculate -00284 // if recorded the old amount is recalculated -00285 if ( $pview_only == true) -00286 $new_solde=($p_save==false)?$new_solde+$tiers_amount:$new_solde-$tiers_amount; -00287 } -00288 -00289 $r.="</TABLE>"; -00290 -00291 if ( $pview_only==true && $p_save==false) { -00292 // check for upload piece -00293 $file=new widget("file"); -00294 $file->table=1; -00295 $r.="<hr>"; -00296 $r.= "<table>"; -00297 $r.="<TR>".$file->IOValue("pj","","Pi&egrave;ce justificative")."</TR>"; -00298 $r.="</table>"; -00299 $r.="<hr>"; -00300 } -00301 // Set correctly the REQUEST param for jrn_type -00302 $h=new widget('hidden'); -00303 $h->name='jrn_type'; -00304 $h->value=$_REQUEST['jrn_type']; -00305 $r.=$h->IOValue(); -00306 -00307 $r.=$p_submit; -00308 $r.="</DIV>"; -00309 $r.="</FORM>"; -00310 -00311 // if view_only is true -00312 //Put the new saldo here (old saldo - operation) -00313 if ( $pview_only==true) { -00314 // if not recorded the new amount must be recalculate -00315 if ( $p_save == false) { -00316 $r.=" <b> Ancien Solde = ".$solde." </b><br>"; -00317 $r.=" <b> Nouveau Solde = ".$new_solde." </b><br>"; -00318 } -00319 // if recorded the old amount is recalculated -00320 if ($p_save == true ) { -00321 $r.=" <b> Ancien Solde = ".$new_solde." </b><br>"; -00322 $r.=" <b> Nouveau Solde = ".$solde." </b><br>"; -00323 } -00324 } -00325 -00326 return $r; -00327 -00328 -00329 } -00330 -00348 function RecordFin($p_cn,$p_array,$p_user,$p_jrn) { -00349 echo_debug('user_form_fin.php',__LINE__,"RecordFin"); -00350 foreach ( $p_array as $v => $e) -00351 { -00352 ${"$v"}=$e; -00353 } -00354 // Get the default period -00355 $periode=$p_user->GetPeriode(); -00356 -00357 // Test if the data are correct -00358 // Verify the date -00359 if ( isDate($e_date) == null ) { -00360 echo_error("Invalid date $e_date"); -00361 echo_debug('user_form_fin.php',__LINE__,"Invalid date $e_date"); -00362 echo "<SCRIPT> alert('INVALID DATE $e_date !!!!');</SCRIPT>"; -00363 return null; -00364 } -00365 -00366 // Debit = banque -00367 $poste_bq=GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT); -00368 StartSql($p_cn); -00369 $amount=0.0; -00370 // Credit = goods -00371 for ( $i = 0; $i < $nb_item;$i++) { -00372 // if tiers is set and amount != 0 insert it into the database -00373 // and quit the loop ? -00374 if ( ${"e_other$i"."_amount"} == 0 ) continue; -00375 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); -00376 -00377 $amount+=${"e_other$i"."_amount"}; -00378 // Record a line for the bank -00379 // Compute the j_grpt -00380 $seq=NextSequence($p_cn,'s_grpt'); -00381 -00382 if ( InsertJrnx($p_cn,'d',$p_user->id,$p_jrn,$poste_bq,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode) == false ) { -00383 $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__"); -00384 } -00385 +00185 $r.="<FORM NAME=\"form_detail\" enctype=\"multipart/form-data\" ACTION=\"$href\" METHOD=\"POST\">"; +00186 $r.='<TABLE>'; +00187 $Date=new widget("text"); +00188 $Date->SetReadOnly($pview_only); +00189 $Date->table=1; +00190 $r.="<tr>"; +00191 $r.=$Date->IOValue("e_date",$e_date,"Date"); +00192 $r.="</tr>"; +00193 +00194 +00195 include_once("fiche_inc.php"); +00196 $r.='<INPUT TYPE="HIDDEN" name="nb_item" value="'.$p_item.'">'; +00197 +00198 // bank_account operation +00199 // Save old value and set a new one +00200 $e_bank_account=( isset ($e_bank_account) )?$e_bank_account:""; +00201 $e_bank_account_label=""; +00202 +00203 // retrieve e_bank_account_label +00204 if ( $e_bank_account != "" ) { +00205 $a_client=GetFicheAttribut($p_cn,$e_bank_account); +00206 if ( $a_client != null) +00207 $e_bank_account_label=$a_client['vw_name']." adresse ".$a_client['vw_addr']." ".$a_client['vw_cp']; +00208 } +00209 // search widget +00210 $W1=new widget("js_search"); +00211 $W1->readonly=$pview_only; +00212 $W1->label="Banque"; +00213 $W1->name="e_bank_account"; +00214 $W1->value=$e_bank_account; +00215 $W1->extra=FICHE_TYPE_FIN; // credits +00216 $W1->extra2=$p_jrn; +00217 $r.="<TR>".$W1->IOValue()."</TD>"; +00218 +00219 $r.="</TABLE>"; +00220 +00221 $Span=new widget ("span"); +00222 $Span->SetReadOnly($pview_only); +00223 $r.="<TD>".$Span->IOValue("e_bank_account_label",$e_bank_account_label)."</TD>"; +00224 +00225 +00226 // ComputeBanqueSaldo +00227 // +00228 if ( $pview_only == true ) { +00229 $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT)); +00230 $r.=" <b> Solde = ".$solde." </b>"; +00231 $new_solde=$solde; +00232 } +00233 +00234 // Start the div for item to move money +00235 $r.="<DIV>"; +00236 $r.='<H2 class="info">Actions</H2>'; +00237 $r.='<TABLE>'; +00238 $r.="<TR>"; +00239 $r.="<th></TH>"; +00240 $r.="<th>code</TH>"; +00241 $r.="<th>D&eacute;nomination</TH>"; +00242 $r.="<th>Description</TH>"; +00243 $r.="<th>Montant</TH>"; +00244 $r.='<th colspan="2"> Op. Concern&eacute;</th>'; +00245 $r.="</TR>"; +00246 // Parse each " tiers" +00247 for ($i=0; $i < $p_item; $i++) { +00248 $tiers=(isset(${"e_other".$i}))?${"e_other".$i}:""; +00249 $tiers_label=""; +00250 $tiers_amount=(isset(${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; +00251 +00252 $tiers_comment=(isset (${"e_other$i"."_comment"}))?${"e_other$i"."_comment"}:""; +00253 // If $tiers has a value +00254 if ( $tiers != "" ) +00255 { +00256 // retrieve the tva label and name +00257 $a_fiche=GetFicheAttribut($p_cn, $tiers); +00258 if ( $a_fiche != null ) { +00259 $tiers_label=$a_fiche['vw_name']; +00260 } +00261 } +00262 ${"e_other$i"."_amount"}=(isset (${"e_other$i"."_amount"}))?${"e_other$i"."_amount"}:0; +00263 +00264 $W1=new widget("js_search"); +00265 $W1->label=""; +00266 $W1->name="e_other".$i; +00267 $W1->value=$tiers; +00268 $W1->extra='cred'; // credits +00269 $W1->extra2=$p_jrn; +00270 $W1->readonly=$pview_only; +00271 $r.="<TR>".$W1->IOValue()."</TD>"; +00272 // label +00273 $other=new widget("span"); +00274 $r.="<TD>"; +00275 $r.=$other->IOValue("e_other$i"."_label", $tiers_label); +00276 // Comment +00277 $wComment=new widget("text"); +00278 $wComment->table=1; +00279 $wComment->SetReadOnly($pview_only); +00280 $r.=$wComment->IOValue("e_other$i"."_comment",$tiers_comment); +00281 // amount +00282 $wAmount=new widget("text"); +00283 $wAmount->table=1; +00284 $wAmount->size=7; +00285 $wAmount->SetReadOnly($pview_only); +00286 $r.=$wAmount->IOValue("e_other$i"."_amount",$tiers_amount); +00287 // concerned +00288 ${"e_concerned".$i}=(isset(${"e_concerned".$i}))?${"e_concerned".$i}:""; +00289 $wConcerned=new widget("js_concerned"); +00290 $wConcerned->SetReadOnly($pview_only); +00291 $r.=$wConcerned->IOValue("e_concerned".$i,${"e_concerned".$i}); +00292 $r.='</TR>'; +00293 // if not recorded the new amount must be recalculate +00294 // if recorded the old amount is recalculated +00295 if ( $pview_only == true) +00296 $new_solde=($p_save==false)?$new_solde+$tiers_amount:$new_solde-$tiers_amount; +00297 } +00298 +00299 $r.="</TABLE>"; +00300 +00301 if ( $pview_only==true && $p_save==false) { +00302 // check for upload piece +00303 $file=new widget("file"); +00304 $file->table=1; +00305 $r.="<hr>"; +00306 $r.= "<table>"; +00307 $r.="<TR>".$file->IOValue("pj","","Pi&egrave;ce justificative")."</TR>"; +00308 $r.="</table>"; +00309 $r.="<hr>"; +00310 } +00311 // Set correctly the REQUEST param for jrn_type +00312 $h=new widget('hidden'); +00313 $h->name='jrn_type'; +00314 $h->value='FIN'; +00315 $r.=$h->IOValue(); +00316 +00317 $r.=$p_submit; +00318 $r.="</DIV>"; +00319 $r.="</FORM>"; +00320 +00321 // if view_only is true +00322 //Put the new saldo here (old saldo - operation) +00323 if ( $pview_only==true) { +00324 // if not recorded the new amount must be recalculate +00325 if ( $p_save == false) { +00326 $r.=" <b> Ancien Solde = ".$solde." </b><br>"; +00327 $r.=" <b> Nouveau Solde = ".$new_solde." </b><br>"; +00328 } +00329 // if recorded the old amount is recalculated +00330 if ($p_save == true ) { +00331 $r.=" <b> Ancien Solde = ".$new_solde." </b><br>"; +00332 $r.=" <b> Nouveau Solde = ".$solde." </b><br>"; +00333 } +00334 } +00335 +00336 return $r; +00337 +00338 +00339 } +00340 +00358 function RecordFin($p_cn,$p_array,$p_user,$p_jrn) { +00359 echo_debug('user_form_fin.php',__LINE__,"RecordFin"); +00360 foreach ( $p_array as $v => $e) +00361 { +00362 ${"$v"}=$e; +00363 } +00364 // Get the default period +00365 $periode=$p_user->GetPeriode(); +00366 +00367 // Debit = banque +00368 $poste_bq=GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT); +00369 StartSql($p_cn); +00370 $amount=0.0; +00371 // Credit = goods +00372 for ( $i = 0; $i < $nb_item;$i++) { +00373 // if tiers is set and amount != 0 insert it into the database +00374 // and quit the loop ? +00375 if ( ${"e_other$i"."_amount"} == 0 ) continue; +00376 $poste=GetFicheAttribut($p_cn,${"e_other$i"},ATTR_DEF_ACCOUNT); +00377 +00378 $amount+=${"e_other$i"."_amount"}; +00379 // Record a line for the bank +00380 // Compute the j_grpt +00381 $seq=NextSequence($p_cn,'s_grpt'); +00382 +00383 if ( InsertJrnx($p_cn,'d',$p_user->id,$p_jrn,$poste_bq,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode) == false ) { +00384 $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__"); +00385 } 00386 -00387 // Record a line for the other account -00388 if ( ($j_id=InsertJrnx($p_cn,'c',$p_user->id,$p_jrn,$poste,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode)) == false ) -00389 { $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__");} -00390 -00391 echo_debug('user_form_fin.php',__LINE__," $j_id=InsertJrnx($p_cn,'d',$p_user,$p_jrn,$poste,$e_date,".${"e_other$i"}."_amount".",$seq,$periode);"); -00392 -00393 if ( ($jr_id=InsertJrn($p_cn,$e_date,'',$p_jrn,FormatString(${"e_other$i"."_comment"}), -00394 round(${"e_other$i"."_amount"},2),$seq,$periode))==false) { -00395 $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__");} -00396 -00397 if ( isNumber(${"e_concerned".$i}) == 1 ) { -00398 -00399 InsertRapt($p_cn,$jr_id,${"e_concerned$i"}); -00400 } -00401 +00387 +00388 // Record a line for the other account +00389 if ( ($j_id=InsertJrnx($p_cn,'c',$p_user->id,$p_jrn,$poste,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode)) == false ) +00390 { $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__");} +00391 +00392 echo_debug('user_form_fin.php',__LINE__," $j_id=InsertJrnx($p_cn,'d',$p_user,$p_jrn,$poste,$e_date,".${"e_other$i"}."_amount".",$seq,$periode);"); +00393 +00394 if ( ($jr_id=InsertJrn($p_cn,$e_date,'',$p_jrn,FormatString(${"e_other$i"."_comment"}), +00395 round(${"e_other$i"."_amount"},2),$seq,$periode))==false) { +00396 $Rollback($p_cn);exit("error 'user_form_fin.php' __LINE__");} +00397 +00398 if ( isNumber(${"e_concerned".$i}) == 1 ) { +00399 +00400 InsertRapt($p_cn,$jr_id,${"e_concerned$i"}); +00401 } 00402 -00403 // Set Internal code and Comment -00404 $internal_code=SetInternalCode($p_cn,$seq,$p_jrn); -00405 $comment=$internal_code." client : ".GetFicheName($p_cn,$e_bank_account); -00406 if ( FormatString(${"e_other$i"."_comment"}) == null ) { -00407 // Update comment if comment is blank -00408 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$comment."' where jr_grpt_id=".$seq); -00409 } -00410 if ( $i == 0 ) -00411 { -00412 // first record we upload the files and -00413 // keep variable to update other row of jrn -00414 if ( isset ($_FILES)) -00415 $oid=save_upload_document($p_cn,$seq); -00416 -00417 } else { -00418 if ( sizeof($_FILES) != 0 ) -00419 { -00420 ExecSql($p_cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". -00421 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); -00422 } -00423 } -00424 -00425 } // for nbitem -00426 -00427 Commit($p_cn); -00428 return $internal_code; -00429 } -00430 ?> -
                    Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00403 +00404 // Set Internal code and Comment +00405 $internal_code=SetInternalCode($p_cn,$seq,$p_jrn); +00406 $comment=$internal_code." client : ".GetFicheName($p_cn,$e_bank_account); +00407 if ( FormatString(${"e_other$i"."_comment"}) == null ) { +00408 // Update comment if comment is blank +00409 $Res=ExecSql($p_cn,"update jrn set jr_comment='".$comment."' where jr_grpt_id=".$seq); +00410 } +00411 if ( $i == 0 ) +00412 { +00413 // first record we upload the files and +00414 // keep variable to update other row of jrn +00415 if ( isset ($_FILES)) +00416 $oid=save_upload_document($p_cn,$seq); +00417 +00418 } else { +00419 if ( sizeof($_FILES) != 0 ) +00420 { +00421 ExecSql($p_cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". +00422 "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); +00423 } +00424 } +00425 +00426 } // for nbitem +00427 +00428 Commit($p_cn); +00429 return $internal_code; +00430 } +00431 ?> +
                    Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                    diff --git a/doc/developper/html/user__form__fin_8php.html b/doc/developper/html/user__form__fin_8php.html index 8d01d7040..6256cca63 100644 --- a/doc/developper/html/user__form__fin_8php.html +++ b/doc/developper/html/user__form__fin_8php.html @@ -90,14 +90,13 @@ verify if the data to insert are valid $p_jrn concerned ledger $p_periode User periode $p_array array with the post data - $p_number number of items gen :
                      -
                    • return:
                    - + $p_number number of items
                  +
                  Returns:
                  :

                  -Definition at line 43 of file user_form_fin.php. +Definition at line 42 of file user_form_fin.php.

                  References $poste, echo_debug(), echo_error(), isDate(), IsFicheOfJrn(), isNumber(), and name. @@ -174,18 +173,23 @@ References $poste<

                  Display the form for financial Used to show detail, encode a new fin op or update one.

                  -parm :

                  -

                  -the "journal"

                    -
                  • $p_user = $g_user
                  • $p_submit contains the submit string
                  • view_only if we cannot change it (no right or centralized op)
                  • $p_item number of article gen :
                      -
                    • return: string with the form
                    -
                  +
                  Parameters:
                  + + + + + + + + +
                  $p_cn database connection
                  $p_jrn ledger id (jr_id)
                  $p_submit contains the submit string
                  $p_array (default=null) containing the $_POST
                  $p_view_only (default=true) true if we cannot change it (no right or centralized op)
                  $p_item number of article (default=4)
                  $p_save (default false) if the operation is already recorded
                  +
                  +
                  Returns:
                  string with the form, in readonly or writable mode

                  -Definition at line 147 of file user_form_fin.php. +Definition at line 146 of file user_form_fin.php.

                  -References $file, $flag, $h, $p_jrn, $r, $solde, $tiers_label, $W1, GetPeriode(), GetSolde(), name, value, and VerifyOperationDate(). +References $file, $flag, $h, $p_jrn, $r, $solde, $tiers_label, $W1, echo_error(), exit, GetPeriode(), GetSolde(), name, and value.

                  @@ -248,12 +252,12 @@ Record an invoice in the table jrn & jrnx.

                  Returns:
                  true on success

                  -Definition at line 348 of file user_form_fin.php. +Definition at line 358 of file user_form_fin.php.

                  -References $e, $poste, $seq, echo_debug(), echo_error(), ExecSql(), exit, FormatString(), InsertJrn(), InsertJrnx(), InsertRapt(), isDate(), isNumber(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). +References $e, $poste, $seq, echo_debug(), ExecSql(), exit, FormatString(), InsertJrn(), InsertJrnx(), InsertRapt(), isNumber(), NextSequence(), Rollback(), SetInternalCode(), and StartSql(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__form__ods_8php-source.html b/doc/developper/html/user__form__ods_8php-source.html index c34c9b574..6ff7b3a56 100644 --- a/doc/developper/html/user__form__ods_8php-source.html +++ b/doc/developper/html/user__form__ods_8php-source.html @@ -263,7 +263,7 @@ 00291 00292 00293 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__form__ods_8php.html b/doc/developper/html/user__form__ods_8php.html index cb964d3be..f730a840a 100644 --- a/doc/developper/html/user__form__ods_8php.html +++ b/doc/developper/html/user__form__ods_8php.html @@ -117,7 +117,7 @@ Display the miscellaneous operation Used to show detail, encode a new oper or up

                  Definition at line 45 of file user_form_ods.php.

                  -References $filter, $flag, $i, $l_line, $p_jrn, $r, CountSql(), echo_error(), GetJrnProperty(), GetPeriode(), GetPosteLibelle(), isNumber(), name, value, and VerifyOperationDate(). +References $filter, $flag, $i, $l_line, $p_jrn, $r, CountSql(), echo_error(), GetJrnProperty(), GetPeriode(), GetPosteLibelle(), isNumber(), name, value, and VerifyOperationDate().

                  @@ -184,7 +184,7 @@ Definition at line References $e, $seq, exit, InsertJrnx(), isNumber(), NextSequence(), and StartSql(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__form__ven_8php-source.html b/doc/developper/html/user__form__ven_8php-source.html index e9bd56d08..5d831aa54 100644 --- a/doc/developper/html/user__form__ven_8php-source.html +++ b/doc/developper/html/user__form__ven_8php-source.html @@ -74,7 +74,7 @@ 00082 00083 00084 } -00085 $sql="select jrn_def_id as value,jrn_def_name as label from jrn_def where jrn_def_type='VEN'"; +00085 $sql="select jrn_def_id as value,jrn_def_name as label from jrn_def where jrn_def_type='VEN'"; 00086 $list=GetArray($p_cn,$sql); 00087 $r.='<TABLE>'; 00088 // Date @@ -689,7 +689,7 @@ 00753 } 00754 00755 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__form__ven_8php.html b/doc/developper/html/user__form__ven_8php.html index 799777deb..9db2b24ab 100644 --- a/doc/developper/html/user__form__ven_8php.html +++ b/doc/developper/html/user__form__ven_8php.html @@ -175,7 +175,7 @@ FormVenInput

                  Definition at line 43 of file user_form_ven.php.

                  -References $client_label, $fiche, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array(). +References $client_label, $fiche, $list, $p_jrn, $r, $sql, $W1, echo_debug(), echo_error(), exit, GetArray(), GetPeriode(), isNumber(), and make_array().

                  @@ -327,10 +327,10 @@ RecordInvoice($p_cn,$p_array,$p_user,$p_jrn)

                  Definition at line 627 of file user_form_ven.php.

                  -References $comment, $e, $i, $poste, $r, $Res, $seq, $t, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). +References $comment, $e, $i, $poste, $r, $Res, $seq, $t, Commit(), ComputeTotalVat(), ComputeVat(), echo_debug(), ExecSql(), exit, FormatString(), GetTvaPoste(), InsertJrn(), InsertJrnx(), InsertStockGoods(), isNumber(), NextSequence(), Rollback(), save_upload_document(), SetInternalCode(), and StartSql(). -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__impress_8php-source.html b/doc/developper/html/user__impress_8php-source.html index e453f08d0..dd5f98690 100644 --- a/doc/developper/html/user__impress_8php-source.html +++ b/doc/developper/html/user__impress_8php-source.html @@ -46,7 +46,7 @@ 00041 include_once ("user_menu.php"); 00042 echo '<div class="u_tmenu">'; 00043 -00044 echo ShowMenuCompta($_SESSION['g_dossier']); +00044 echo ShowMenuCompta($_SESSION['g_dossier']); 00045 echo '</div>'; 00046 // show sub menu 00047 @@ -107,7 +107,7 @@ 00102 00103 html_page_stop(); 00104 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__impress_8php.html b/doc/developper/html/user__impress_8php.html index 3736349c0..ba2909f64 100644 --- a/doc/developper/html/user__impress_8php.html +++ b/doc/developper/html/user__impress_8php.html @@ -94,7 +94,7 @@ Definition at line 33

                  Definition at line 59 of file user_impress.php.

                  -Referenced by ShowMenuCompta(). +Referenced by ShowMenuCompta().

                  @@ -129,7 +129,7 @@ Referenced by ShowMenuCo

                  Definition at line 51 of file user_impress.php.

                  -Referenced by ShowJrn(), ShowMenuCompta(), and u_ShowDossier(). +Referenced by ShowJrn(), ShowMenuCompta(), and u_ShowDossier().

                  @@ -361,7 +361,7 @@ Referenced by ParseFor Definition at line 85 of file user_impress.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__jrn_8php-source.html b/doc/developper/html/user__jrn_8php-source.html index 0960db5db..d04ba7775 100644 --- a/doc/developper/html/user__jrn_8php-source.html +++ b/doc/developper/html/user__jrn_8php-source.html @@ -54,7 +54,7 @@ 00049 00050 00051 echo '<div class="u_tmenu">'; -00052 echo ShowMenuCompta($_SESSION['g_dossier']); +00052 echo ShowMenuCompta($_SESSION['g_dossier']); 00053 echo '</div>'; 00054 00055 if ( $User->admin == 0 ) { @@ -75,7 +75,7 @@ 00070 } 00071 00072 // Show the available jrn -00073 $result=ShowJrn("user_jrn.php?jrn_type=".$jrn_type); +00073 $result=ShowJrn("user_jrn.php?jrn_type=".$jrn_type); 00074 echo "<div class=\"u_subtmenu\">"; 00075 echo $result; 00076 echo "</div>"; @@ -90,11 +90,11 @@ 00085 // echo '</DIV>'; 00086 echo '<div class="u_subt2menu">'; 00087 // show the available ledger of the type jrn_type -00088 ShowMenuJrnUser($_SESSION['g_dossier'],$jrn_type,$p_jrn); +00088 ShowMenuJrnUser($_SESSION['g_dossier'],$jrn_type,$p_jrn); 00089 echo '</div>'; 00090 echo '<div class="lmenu">'; 00091 // show the menu for this journal (Nouveau, voir,...) -00092 $menu_jrn=ShowMenuJrn($cn,$jrn_type, $p_jrn); +00092 $menu_jrn=ShowMenuJrn($cn,$jrn_type, $p_jrn); 00093 echo $menu_jrn; 00094 00095 echo '</div>'; @@ -117,15 +117,15 @@ 00112 00113 } else { 00114 // no journal are selected so we select the first one -00115 $p_jrn=GetFirstJrnIdForJrnType($_SESSION['g_dossier'],$jrn_type); +00115 $p_jrn=GetFirstJrnIdForJrnType($_SESSION['g_dossier'],$jrn_type); 00116 // display jrn's menu 00117 00118 // echo '</DIV>'; 00119 echo '<div class="u_subt2menu">'; -00120 ShowMenuJrnUser($_SESSION['g_dossier'],$jrn_type,$p_jrn); +00120 ShowMenuJrnUser($_SESSION['g_dossier'],$jrn_type,$p_jrn); 00121 echo '</div>'; 00122 echo '<div class="lmenu">'; -00123 $menu_jrn=ShowMenuJrn($cn,$jrn_type, $p_jrn); +00123 $menu_jrn=ShowMenuJrn($cn,$jrn_type, $p_jrn); 00124 00125 echo $menu_jrn; 00126 echo '</div><br>'; @@ -136,7 +136,7 @@ 00131 html_page_stop(); 00132 00133 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__jrn_8php.html b/doc/developper/html/user__jrn_8php.html index ad3cb316f..77431cadd 100644 --- a/doc/developper/html/user__jrn_8php.html +++ b/doc/developper/html/user__jrn_8php.html @@ -210,7 +210,7 @@ Definition at line 35 Definition at line 66 of file user_jrn.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__login_8php-source.html b/doc/developper/html/user__login_8php-source.html index 7671ae260..797948107 100644 --- a/doc/developper/html/user__login_8php-source.html +++ b/doc/developper/html/user__login_8php-source.html @@ -55,7 +55,7 @@ 00050 <? 00051 html_page_stop(); 00052 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:32 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__login_8php.html b/doc/developper/html/user__login_8php.html index a429f0676..fb9d91a85 100644 --- a/doc/developper/html/user__login_8php.html +++ b/doc/developper/html/user__login_8php.html @@ -129,7 +129,7 @@ Definition at line 4431 of file user_login.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__menu_8php-source.html b/doc/developper/html/user__menu_8php-source.html index 10ad0a21d..b9093db3f 100644 --- a/doc/developper/html/user__menu_8php-source.html +++ b/doc/developper/html/user__menu_8php-source.html @@ -76,7 +76,7 @@ 00093 if ($p_admin==0) { 00094 // show only available folders 00095 // if user is not an admin -00096 $sql="select distinct dos_id,dos_name,dos_description from ac_users +00096 $sql="select distinct dos_id,dos_name,dos_description from ac_users 00097 natural join jnt_use_dos 00098 natural join ac_dossier 00099 join priv_user on ( priv_jnt=jnt_id) @@ -85,7 +85,7 @@ 00102 and priv_priv != 'NO' "; 00103 00104 } else { -00105 $sql="select distinct dos_id,dos_name,dos_description from ac_users +00105 $sql="select distinct dos_id,dos_name,dos_description from ac_users 00106 natural join jnt_use_dos 00107 natural join ac_dossier 00108 where use_active=1 "; @@ -101,453 +101,430 @@ 00118 } 00119 return $array; 00120 } -00132 function u_ShowMenu($p_admin,$p_check = 1,$p_item="") +00132 function ShowMenuCompta($p_dossier,$p_high="") 00133 { -00134 /* $p_check == 1 si test sur Admin */ -00135 include_once("postgres.php"); -00136 echo '<div class="mtitle">'; -00137 echo "<TABLE align=center cellspadding=0><TR>"; -00138 if ( $p_admin !=0 ) { -00139 /* Administrator Menu */ -00140 echo '<TD class="mtitle"><A class="mtitle" HREF=admin_repo.php>Administrator Menu</A></TD>'; -00141 } -00142 -00143 if (strlen ( $p_item ) != 0 ) { -00144 echo '<TD class="mtitle">'.$p_item.'</A></TD>'; -00145 } -00146 -00147 echo ' <TD class="mtitle"> <A class="mtitle" HREF="user_pref.php">Préférence</A></TD>'; -00148 -00149 echo "<TD class=\"mtitle\">"; -00150 html_button_logout(); -00151 echo "</TD>"; -00152 echo "</TR></TABLE>"; -00153 echo "</div>"; -00154 } -00166 function ShowMenuCompta($p_dossier,$p_high="") -00167 { -00168 include_once("postgres.php"); -00169 -00170 // find our current menu -00171 $default=basename($_SERVER['SCRIPT_NAME']); -00172 switch ($default) { -00173 case "user_jrn.php": -00174 $default.="?show"; -00175 break; -00176 case "recherche.php": -00177 $default.="?p_dossier=$p_dossier"; -00178 break; -00179 case "fiche.php": -00180 $default.="?p_dossier=$p_dossier"; -00181 break; -00182 } -00183 if ( $p_high !== "" ) $default=$p_high; -00184 -00185 echo_debug('user_menu.php',__LINE__,'defaut is '.$default); -00186 -00187 $p_array=array(array("user_jrn.php?show","Journaux","Les journaux permettent d'encoder toutes les opérations"), -00188 array("recherche.php?p_dossier=$p_dossier","Recherche","Pour retrouver une opération"), -00189 array("fiche.php?p_dossier=$p_dossier","Fiche","Ajouter, modifier ou effacer des fiches"), -00190 array("user_impress.php","Impression","Impression"), -00191 array("user_advanced.php","Avancé","Opérations délicates"), -00192 -00193 array('user_pref.php','Preference',"Préférence de l'utilisateur"), -00194 array('parametre.php?dos='.$_SESSION['g_dossier'],"Paramètre"), -00195 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), -00196 array('login.php','Accueil',"Accueil"), -00197 array('logout.php','logout',"Sortie") -00198 ); -00199 -00200 $result=ShowItem($p_array,'H',"mtitle","mtitle",$default,' width="100%"'); -00201 -00202 $r="<H2 class=\"info\">Comptabilit&eacute; ".$_SESSION['g_name']." </H2>"; -00203 $r.=$result; -00204 return $r; -00205 -00206 -00207 -00208 -00209 } -00220 function GetFirstJrnIdForJrnType($p_dossier,$p_type) -00221 { -00222 include_once("postgres.php"); -00223 -00224 //get db connection -00225 $Cn=DbConnect($p_dossier); -00226 //execute query -00227 $Ret=ExecSql($Cn,"select min(jrn_def_id) from jrn_def where jrn_def_type='".$p_type."';"); -00228 $l_line=pg_fetch_array($Ret,0); -00229 return $l_line[0]; -00230 //return 0; -00231 } -00246 function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn,$p_extra="") -00247 { -00248 include_once ("debug.php"); -00249 include_once("constant.php"); -00250 include_once("class_user.php"); -00251 echo_debug('user_menu.php',__LINE__,"U_SHOWMENUJRNUSER PTYPE=$p_type"); -00252 -00253 echo '<TABLE><TR>'; -00254 include_once("postgres.php"); -00255 -00256 -00257 $Cn=DbConnect($p_dossier); -00258 -00259 $User=new cl_user($Cn); -00260 $User->Check(); -00261 if ( $User->Admin() ==0) { -00262 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_type,jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc,uj_priv, -00263 jrn_deb_max_line,jrn_cred_max_line -00264 from jrn_def join jrn_type on jrn_def_type=jrn_type_id -00265 join user_sec_jrn on uj_jrn_id=jrn_def_id -00266 where -00267 uj_login='".$User->id."' -00268 and uj_priv !='X' -00269 and jrn_def_type='$p_type' order by jrn_Def_id -00270 "); -00271 } else { -00272 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_type,jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_deb_max_line,jrn_cred_max_line, -00273 jrn_type_id,jrn_desc,'W' as uj_priv -00274 from jrn_def join jrn_type on jrn_def_type=jrn_type_id where -00275 jrn_def_type='$p_type' order by jrn_Def_id"); -00276 -00277 } -00278 $Max=pg_NumRows($Ret); -00279 include_once("check_priv.php"); -00280 -00281 for ($i=0;$i<$Max;$i++) { -00282 $l_line=pg_fetch_array($Ret,$i); -00283 // Admin have always rights -00284 if ( $User->Admin() == 0 ){ -00285 $right=CheckJrn($p_dossier,$_SESSION['g_user'],$l_line['jrn_def_id']); -00286 }else { -00287 $right=3; -00288 } -00289 -00290 if ( $right > 0 ) { -00291 // Minimum Lecture -00292 echo_debug('user_menu.php',__LINE__,"p_jrn = $p_jrn "); -00293 if ( $l_line['jrn_def_id'] != $p_jrn ) { -00294 $href=$_SERVER["SCRIPT_NAME"]; -00295 $add=""; -00296 // if the SCRIPT_NAME == commercial.php, we need to add the parameter -00297 // p_action=facture -00298 if ( $href=="/commercial.php" ) -00299 { -00300 $add='&p_action='.$_REQUEST['p_action']; -00301 } -00302 echo '<TD class="cell">'; -00303 printf ('<A class="mtitle" HREF="%s?jrn_type=%s&p_jrn=%s%s">%s</A></TD>', -00304 $href, -00305 $l_line['jrn_def_type'], -00306 $l_line['jrn_def_id'], -00307 $add, -00308 $l_line['jrn_def_name'] -00309 ); -00310 } else -00311 { -00312 echo '<TD class="selectedcell">'. $l_line['jrn_def_name'].'</TD>'; -00313 } -00314 }// if right -00315 }// for -00316 if ( $p_extra !="" ) echo $p_extra; -00317 echo '</TR>'; -00318 echo "</TABLE>"; -00319 //echo '</div>'; -00320 -00321 } -00333 function ShowMenuJrn($p_cn,$p_jrn_type,$p_jrn) -00334 { -00335 -00336 $Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action where ja_jrn_type='$p_jrn_type' -00337 order by ja_id"); -00338 $num=pg_NumRows($Res); -00339 if ($num==0) return ""; -00340 // Retrieve in the database the menu -00341 $ret="<TABLE>"; -00342 $access_key_list = array(); -00343 for ($i=0;$i<$num;$i++) { -00344 $action=pg_fetch_array($Res,$i); -00345 $access_key=get_quick_key($action['ja_name'],$access_key_list); -00346 $lib=str_replace($access_key,'<u>'.$access_key.'</u>',$action['ja_name']); -00347 -00348 $ret.=sprintf('<TR><TD class="cell"><A class="mtitle" accesskey="%s" title="%s" '. -00349 'HREF="%s?%s&p_jrn=%s&jrn_type=%s">%s</A></td></tR>', -00350 $access_key, -00351 $action['ja_desc'], -00352 $action['ja_url'], -00353 $action['ja_action'], -00354 $p_jrn, -00355 $_REQUEST['jrn_type'], -00356 $lib); -00357 -00358 } -00359 $ret.='</TABLE>'; -00360 return $ret; -00361 -00362 } -00363 -00375 function get_quick_key($title,&$access_key_list) -00376 { -00377 $quick = $title[0]; -00378 if(array_key_exists($quick, $access_key_list)) -00379 { -00380 echo_debug(" key exists: " . $quick); -00381 return get_quick_key(substr($title, 1), $access_key_list); -00382 } else -00383 { -00384 echo_debug(" new key: " . $quick); -00385 } -00386 $access_key_list[$quick] = $quick; -00387 -00388 return $quick; -00389 } -00390 -00405 function u_ShowMenuRecherche($p_cn,$p_jrn,$p_sessid,$p_array=null) -00406 { -00407 echo_debug('user_menu.php',__LINE__,"u_ShowMenuRecherche($p_cn,$p_array)"); -00408 if ( $p_array != null ) { -00409 foreach ( $p_array as $key=> $element) { -00410 ${"p_$key"}=$element; -00411 echo_debug('user_menu.php',__LINE__,"p_$key =$element;"); -00412 } -00413 } -00414 -00415 // Find the journal property -00416 // $JrnProperty=GetJrnProperty($p_cn,$p_jrn); -00417 -00418 $opt='<OPTION VALUE="="> ='; -00419 $opt.='<OPTION VALUE="<="> <='; -00420 $opt.='<OPTION VALUE="<"> <'; -00421 $opt.='<OPTION VALUE=">"> >'; -00422 $opt.='<OPTION VALUE=">="> >='; -00423 if ( ! isset ($p_date_start)) $p_date_start=""; -00424 if ( ! isset ($p_date_end)) $p_date_end=""; -00425 if ( ! isset ($p_mont_sel))$p_mont_sel=""; -00426 if ( ! isset ($p_s_comment))$p_s_comment=""; -00427 if ( ! isset ($p_s_montant)) $p_s_montant=""; -00428 if ( ! isset ($p_s_internal)) $p_s_internal=""; -00429 if ( ! isset ($p_poste)) $p_poste=""; -00430 if ( ! isset ($p_qcode)) $p_qcode=""; -00431 -00432 -00433 if ( $p_mont_sel != "" ) $opt.='<OPTION value="'.$p_mont_sel.'" SELECTED> '.$p_mont_sel; -00434 $r=""; -00435 -00436 // $r.= '<div style="border-style:outset;border-width:1pt;">'; -00437 -00438 $r.=JS_SEARCH_POSTE; -00439 $r.= "<B>Recherche</B>"; -00440 $r.= '<FORM ACTION="recherche.php" METHOD="GET">'; -00441 $r.="<table><tr><TD>"; -00442 $r.= '<TABLE>'; -00443 $r.= "<TR>"; -00444 $r.= '<TD COLSPAN="3"> Date compris entre</TD> '; -00445 $r.= "</TR> <TR>"; -00446 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_start" SIZE="10" VALUE="'.$p_date_start.'"></TD>'; -00447 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_end" size="10" Value="'.$p_date_end.'"></TD>'; -00448 $r.= '</TD><TD>'; -00449 $r.= "</TR> <TR>"; -00450 $r.= "<TD> Montant "; -00451 $r.= ' <SELECT NAME="mont_sel">'.$opt.' </SELECT></TD><TD>'; -00452 $r.= ' <INPUT TYPE="TEXT" NAME="s_montant" SIZE="10" VALUE="'.$p_s_montant.'"></TD>'; -00453 $r.= "</TR><TR>"; -00454 $r.="<TD> Internal code</td>"; -00455 $r.='<TD><input type="text" name="s_internal" value="'.$p_s_internal.'"></td>'; -00456 -00457 $r.="</TD></TR></TABLE></td><TD><table>"; -00458 -00459 $r.= "</TR>"; -00460 $r.= "<TR>"; -00461 $W=new widget("js_search_poste"); -00462 $W->label="Numéro de poste"; -00463 $W->name="poste"; -00464 $W->value=$p_poste; -00465 $r.="<TR>".$W->IOValue(); -00466 $r.= "</TR>"; -00467 $r.= "<TR>"; -00468 $A=new widget("TEXT"); -00469 $A->label="Quick Code"; -00470 $A->name="qcode"; -00471 $A->value=$p_qcode; -00472 $r.="<TD> Quick Code</TD><TD>".$A->IOValue()."</TD>"; -00473 $r.= "</TR>"; -00474 -00475 -00476 $r.= '<TD colspan="3"> Le commentaire contient </TD>'; -00477 $r.= "</TR><TR>"; -00478 $r.= '<TD COLSPAN="3"> <INPUT TYPE="TEXT" NAME="s_comment" VALUE="'.$p_s_comment.'"></TD>'; -00479 $r.= "</TR><TR>"; -00480 $r.= '<TD COLSPAN="3"><INPUT TYPE="SUBMIT" VALUE="Recherche" NAME="viewsearch"></TD>'; -00481 $r.= "</TR>"; -00482 $r.= "</TABLE>"; -00483 $r.="</TR></TABLE>"; -00484 $r.= "</FORM>"; -00485 -00486 -00487 return $r; -00488 -00489 } -00498 function ShowMenuAdvanced($default="") { -00499 // Show the left menu -00500 $left_menu=ShowItem(array( -00501 //('rapprt.php','Rapprochement'), -00502 array('jrn_update.php','Journaux'), -00503 array('user_advanced.php?p_action=periode','Periode'), -00504 array('central.php','Centralise'), -00505 array('pcmn_update.php?p_start=1','Plan Comptable'), -00506 array('stock.php','Stock'), -00507 array('form.php','Rapport'), -00508 array('import.php','Import Banque'), -00509 array('ecrit_ouv.php','Ecriture ouverture') -00510 -00511 ), -00512 'H',"cell","mtitle",$default); -00513 $r='<div class="u_subtmenu">'.$left_menu."</div>"; -00514 return $r; -00515 } -00524 function ShowJrn($p_menu="") -00525 { -00526 -00527 $p_array=array( -00528 array("user_jrn.php?jrn_type=NONE" ,"Grand Livre"), -00529 array("user_jrn.php?jrn_type=VEN" ,"Entrée"), -00530 array("user_jrn.php?jrn_type=ACH","Dépense"), -00531 array("user_jrn.php?jrn_type=FIN","Financier"), -00532 array("user_jrn.php?jrn_type=OD","Op. Diverses") -00533 ); -00534 $result=ShowItem($p_array,'H',"cell","mtitle",$p_menu); -00535 return $result; -00536 } -00537 -00548 function ShowMenuFiche($p_dossier) -00549 { -00550 $cn=DbConnect($p_dossier); -00551 echo '<div class="lmenu">'; -00552 echo '<TABLE>'; -00555 echo '<TR><TD colspan="3" class="mtitle"> -00556 <A class="mtitle" HREF="fiche.php?action=add_modele&fiche=modele">Creation</A></TD></TR>'; -00557 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); -00558 $Max=pg_NumRows($Res); -00559 for ( $i=0; $i < $Max;$i++) { -00560 $l_line=pg_fetch_array($Res,$i); -00561 printf('<TR><TD class="cell">%s</TD><TD class="mshort"><A class="mtitle" HREF="fiche.php?action=vue&fiche=%d">Voir</A> -00562 </TD> -00563 <TD class="mshort"><A class="mtitle" HREF="fiche.php?action=modifier&fiche=%d">Modifier</A></TD> -00564 </TR>', -00565 $l_line['fd_label'], -00566 $l_line['fd_id'], -00567 $l_line['fd_id']); -00568 } -00569 echo "</TABLE>"; -00570 echo '</div>'; -00571 } -00573 /* \brief show the menu for user/database management -00574 /* -00575 /* \return HTML code with the menu -00576 */ -00577 -00578 function MenuAdmin() -00579 { -00580 $item=array (array("admin_repo.php?action=user_mgt","Utilisateurs"), -00581 array("admin_repo.php?action=dossier_mgt","Dossiers"), -00582 array("admin_repo.php?action=modele_mgt","Modèles"), -00583 array("login.php","Accueil"), -00584 array("logout.php","Logout") -00585 ); -00586 -00587 $menu=ShowItem($item,'H'); -00588 return $menu; -00589 } -00598 function ShowMenuDocument() -00599 { -00600 $base="parametre.php?p_action=document&sa="; -00601 $sub_menu=ShowItem( -00602 array(array($base."add_document","Ajout")) -00603 ,'V',"cell","mtitle"); -00604 return $sub_menu; -00605 -00606 } -00618 function ShowMenuParam($p_action="") -00619 { -00620 $sub_menu=ShowItem(array( -00621 -00622 array('parametre.php?p_action=company','Sociétés'), -00623 array('parametre.php?p_action=devise','Devises'), -00624 array('parametre.php?p_action=tva','Tva'), -00625 array('parametre.php?p_action=poste','Poste Comptable'), -00626 array('parametre.php?p_action=fiche','Fiche'), -00627 array('user_sec.php','Sécurité'), -00628 array('parametre.php?p_action=document','Document'), -00629 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), -00630 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), +00134 include_once("postgres.php"); +00135 +00136 // find our current menu +00137 $default=basename($_SERVER['SCRIPT_NAME']); +00138 switch ($default) { +00139 case "user_jrn.php": +00140 $default.="?show"; +00141 break; +00142 case "recherche.php": +00143 $default.="?p_dossier=$p_dossier"; +00144 break; +00145 case "fiche.php": +00146 $default.="?p_dossier=$p_dossier"; +00147 break; +00148 } +00149 if ( $p_high !== "" ) $default=$p_high; +00150 +00151 echo_debug('user_menu.php',__LINE__,'defaut is '.$default); +00152 +00153 $p_array=array(array("user_jrn.php?show","Journaux","Les journaux permettent d'encoder toutes les opérations"), +00154 array("recherche.php?p_dossier=$p_dossier","Recherche","Pour retrouver une opération"), +00155 array("fiche.php?p_dossier=$p_dossier","Fiche","Ajouter, modifier ou effacer des fiches"), +00156 array("user_impress.php","Impression","Impression"), +00157 array("user_advanced.php","Avancé","Opérations délicates"), +00158 +00159 array('user_pref.php','Preference',"Préférence de l'utilisateur"), +00160 array('parametre.php?dos='.$_SESSION['g_dossier'],"Paramètre"), +00161 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), +00162 array('login.php','Accueil',"Accueil"), +00163 array('logout.php','logout',"Sortie") +00164 ); +00165 +00166 $result=ShowItem($p_array,'H',"mtitle","mtitle",$default,' width="100%"'); +00167 +00168 $r="<H2 class=\"info\">Comptabilit&eacute; ".$_SESSION['g_name']." </H2>"; +00169 $r.=$result; +00170 return $r; +00171 +00172 +00173 +00174 +00175 } +00186 function GetFirstJrnIdForJrnType($p_dossier,$p_type) +00187 { +00188 include_once("postgres.php"); +00189 +00190 //get db connection +00191 $Cn=DbConnect($p_dossier); +00192 //execute query +00193 $Ret=ExecSql($Cn,"select min(jrn_def_id) from jrn_def where jrn_def_type='".$p_type."';"); +00194 $l_line=pg_fetch_array($Ret,0); +00195 return $l_line[0]; +00196 //return 0; +00197 } +00212 function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn,$p_extra="") +00213 { +00214 include_once ("debug.php"); +00215 include_once("constant.php"); +00216 include_once("class_user.php"); +00217 echo_debug('user_menu.php',__LINE__,"U_SHOWMENUJRNUSER PTYPE=$p_type"); +00218 +00219 echo '<TABLE><TR>'; +00220 include_once("postgres.php"); +00221 +00222 +00223 $Cn=DbConnect($p_dossier); +00224 +00225 $User=new cl_user($Cn); +00226 $User->Check(); +00227 if ( $User->Admin() ==0) { +00228 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_type,jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc,uj_priv, +00229 jrn_deb_max_line,jrn_cred_max_line +00230 from jrn_def join jrn_type on jrn_def_type=jrn_type_id +00231 join user_sec_jrn on uj_jrn_id=jrn_def_id +00232 where +00233 uj_login='".$User->id."' +00234 and uj_priv !='X' +00235 and jrn_def_type='$p_type' order by jrn_Def_id +00236 "); +00237 } else { +00238 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_type,jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_deb_max_line,jrn_cred_max_line, +00239 jrn_type_id,jrn_desc,'W' as uj_priv +00240 from jrn_def join jrn_type on jrn_def_type=jrn_type_id where +00241 jrn_def_type='$p_type' order by jrn_Def_id"); +00242 +00243 } +00244 $Max=pg_NumRows($Ret); +00245 include_once("check_priv.php"); +00246 +00247 for ($i=0;$i<$Max;$i++) { +00248 $l_line=pg_fetch_array($Ret,$i); +00249 // Admin have always rights +00250 if ( $User->Admin() == 0 ){ +00251 $right=CheckJrn($p_dossier,$_SESSION['g_user'],$l_line['jrn_def_id']); +00252 }else { +00253 $right=3; +00254 } +00255 +00256 if ( $right > 0 ) { +00257 // Minimum Lecture +00258 echo_debug('user_menu.php',__LINE__,"p_jrn = $p_jrn "); +00259 if ( $l_line['jrn_def_id'] != $p_jrn ) { +00260 $href=$_SERVER["SCRIPT_NAME"]; +00261 $add=""; +00262 // if the SCRIPT_NAME == commercial.php, we need to add the parameter +00263 // p_action=facture +00264 if ( $href=="/commercial.php" ) +00265 { +00266 $add='&p_action='.$_REQUEST['p_action']; +00267 } +00268 echo '<TD class="cell">'; +00269 printf ('<A class="mtitle" HREF="%s?jrn_type=%s&p_jrn=%s%s">%s</A></TD>', +00270 $href, +00271 $l_line['jrn_def_type'], +00272 $l_line['jrn_def_id'], +00273 $add, +00274 $l_line['jrn_def_name'] +00275 ); +00276 } else +00277 { +00278 echo '<TD class="selectedcell">'. $l_line['jrn_def_name'].'</TD>'; +00279 } +00280 }// if right +00281 }// for +00282 if ( $p_extra !="" ) echo $p_extra; +00283 echo '</TR>'; +00284 echo "</TABLE>"; +00285 //echo '</div>'; +00286 +00287 } +00299 function ShowMenuJrn($p_cn,$p_jrn_type,$p_jrn) +00300 { +00301 +00302 $Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action where ja_jrn_type='$p_jrn_type' +00303 order by ja_id"); +00304 $num=pg_NumRows($Res); +00305 if ($num==0) return ""; +00306 // Retrieve in the database the menu +00307 $ret="<TABLE>"; +00308 $access_key_list = array(); +00309 for ($i=0;$i<$num;$i++) { +00310 $action=pg_fetch_array($Res,$i); +00311 $access_key=get_quick_key($action['ja_name'],$access_key_list); +00312 $lib=str_replace($access_key,'<u>'.$access_key.'</u>',$action['ja_name']); +00313 +00314 $ret.=sprintf('<TR><TD class="cell"><A class="mtitle" accesskey="%s" title="%s" '. +00315 'HREF="%s?%s&p_jrn=%s&jrn_type=%s">%s</A></td></tR>', +00316 $access_key, +00317 $action['ja_desc'], +00318 $action['ja_url'], +00319 $action['ja_action'], +00320 $p_jrn, +00321 $_REQUEST['jrn_type'], +00322 $lib); +00323 +00324 } +00325 $ret.='</TABLE>'; +00326 return $ret; +00327 +00328 } +00329 +00341 function get_quick_key($title,&$access_key_list) +00342 { +00343 $quick = $title[0]; +00344 if(array_key_exists($quick, $access_key_list)) +00345 { +00346 echo_debug(" key exists: " . $quick); +00347 return get_quick_key(substr($title, 1), $access_key_list); +00348 } else +00349 { +00350 echo_debug(" new key: " . $quick); +00351 } +00352 $access_key_list[$quick] = $quick; +00353 +00354 return $quick; +00355 } +00356 +00371 function u_ShowMenuRecherche($p_cn,$p_jrn,$p_sessid,$p_array=null) +00372 { +00373 echo_debug('user_menu.php',__LINE__,"u_ShowMenuRecherche($p_cn,$p_array)"); +00374 if ( $p_array != null ) { +00375 foreach ( $p_array as $key=> $element) { +00376 ${"p_$key"}=$element; +00377 echo_debug('user_menu.php',__LINE__,"p_$key =$element;"); +00378 } +00379 } +00380 +00381 // Find the journal property +00382 // $JrnProperty=GetJrnProperty($p_cn,$p_jrn); +00383 +00384 $opt='<OPTION VALUE="="> ='; +00385 $opt.='<OPTION VALUE="<="> <='; +00386 $opt.='<OPTION VALUE="<"> <'; +00387 $opt.='<OPTION VALUE=">"> >'; +00388 $opt.='<OPTION VALUE=">="> >='; +00389 if ( ! isset ($p_date_start)) $p_date_start=""; +00390 if ( ! isset ($p_date_end)) $p_date_end=""; +00391 if ( ! isset ($p_mont_sel))$p_mont_sel=""; +00392 if ( ! isset ($p_s_comment))$p_s_comment=""; +00393 if ( ! isset ($p_s_montant)) $p_s_montant=""; +00394 if ( ! isset ($p_s_internal)) $p_s_internal=""; +00395 if ( ! isset ($p_poste)) $p_poste=""; +00396 if ( ! isset ($p_qcode)) $p_qcode=""; +00397 +00398 +00399 if ( $p_mont_sel != "" ) $opt.='<OPTION value="'.$p_mont_sel.'" SELECTED> '.$p_mont_sel; +00400 $r=""; +00401 +00402 // $r.= '<div style="border-style:outset;border-width:1pt;">'; +00403 +00404 $r.=JS_SEARCH_POSTE; +00405 $r.= "<B>Recherche</B>"; +00406 $r.= '<FORM ACTION="recherche.php" METHOD="GET">'; +00407 $r.="<table><tr><TD>"; +00408 $r.= '<TABLE>'; +00409 $r.= "<TR>"; +00410 $r.= '<TD COLSPAN="3"> Date compris entre</TD> '; +00411 $r.= "</TR> <TR>"; +00412 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_start" SIZE="10" VALUE="'.$p_date_start.'"></TD>'; +00413 $r.= '<TD> <INPUT TYPE="TEXT" NAME="date_end" size="10" Value="'.$p_date_end.'"></TD>'; +00414 $r.= '</TD><TD>'; +00415 $r.= "</TR> <TR>"; +00416 $r.= "<TD> Montant "; +00417 $r.= ' <SELECT NAME="mont_sel">'.$opt.' </SELECT></TD><TD>'; +00418 $r.= ' <INPUT TYPE="TEXT" NAME="s_montant" SIZE="10" VALUE="'.$p_s_montant.'"></TD>'; +00419 $r.= "</TR><TR>"; +00420 $r.="<TD> Internal code</td>"; +00421 $r.='<TD><input type="text" name="s_internal" value="'.$p_s_internal.'"></td>'; +00422 +00423 $r.="</TD></TR></TABLE></td><TD><table>"; +00424 +00425 $r.= "</TR>"; +00426 $r.= "<TR>"; +00427 $W=new widget("js_search_poste"); +00428 $W->label="Numéro de poste"; +00429 $W->name="poste"; +00430 $W->value=$p_poste; +00431 $r.="<TR>".$W->IOValue(); +00432 $r.= "</TR>"; +00433 $r.= "<TR>"; +00434 $A=new widget("TEXT"); +00435 $A->label="Quick Code"; +00436 $A->name="qcode"; +00437 $A->value=$p_qcode; +00438 $r.="<TD> Quick Code</TD><TD>".$A->IOValue()."</TD>"; +00439 $r.= "</TR>"; +00440 +00441 +00442 $r.= '<TD colspan="3"> Le commentaire contient </TD>'; +00443 $r.= "</TR><TR>"; +00444 $r.= '<TD COLSPAN="3"> <INPUT TYPE="TEXT" NAME="s_comment" VALUE="'.$p_s_comment.'"></TD>'; +00445 $r.= "</TR><TR>"; +00446 $r.= '<TD COLSPAN="3"><INPUT TYPE="SUBMIT" VALUE="Recherche" NAME="viewsearch"></TD>'; +00447 $r.= "</TR>"; +00448 $r.= "</TABLE>"; +00449 $r.="</TR></TABLE>"; +00450 $r.= "</FORM>"; +00451 +00452 +00453 return $r; +00454 +00455 } +00464 function ShowMenuAdvanced($default="") { +00465 // Show the left menu +00466 $left_menu=ShowItem(array( +00467 //('rapprt.php','Rapprochement'), +00468 array('jrn_update.php','Journaux'), +00469 array('user_advanced.php?p_action=periode','Periode'), +00470 array('central.php','Centralise'), +00471 array('pcmn_update.php?p_start=1','Plan Comptable'), +00472 array('stock.php','Stock'), +00473 array('form.php','Rapport'), +00474 array('import.php','Import Banque'), +00475 array('ecrit_ouv.php','Ecriture ouverture') +00476 +00477 ), +00478 'H',"cell","mtitle",$default); +00479 $r='<div class="u_subtmenu">'.$left_menu."</div>"; +00480 return $r; +00481 } +00490 function ShowJrn($p_menu="") +00491 { +00492 +00493 $p_array=array( +00494 array("user_jrn.php?jrn_type=NONE" ,"Grand Livre"), +00495 array("user_jrn.php?jrn_type=VEN" ,"Entrée"), +00496 array("user_jrn.php?jrn_type=ACH","Dépense"), +00497 array("user_jrn.php?jrn_type=FIN","Financier"), +00498 array("user_jrn.php?jrn_type=OD","Op. Diverses") +00499 ); +00500 $result=ShowItem($p_array,'H',"cell","mtitle",$p_menu); +00501 return $result; +00502 } +00503 +00514 function ShowMenuFiche($p_dossier) +00515 { +00516 $cn=DbConnect($p_dossier); +00517 echo '<div class="lmenu">'; +00518 echo '<TABLE>'; +00521 echo '<TR><TD colspan="3" class="mtitle"> +00522 <A class="mtitle" HREF="fiche.php?action=add_modele&fiche=modele">Creation</A></TD></TR>'; +00523 $Res=ExecSql($cn,"select fd_id,fd_label from fiche_def order by fd_label"); +00524 $Max=pg_NumRows($Res); +00525 for ( $i=0; $i < $Max;$i++) { +00526 $l_line=pg_fetch_array($Res,$i); +00527 printf('<TR><TD class="cell">%s</TD><TD class="mshort"><A class="mtitle" HREF="fiche.php?action=vue&fiche=%d">Voir</A> +00528 </TD> +00529 <TD class="mshort"><A class="mtitle" HREF="fiche.php?action=modifier&fiche=%d">Modifier</A></TD> +00530 </TR>', +00531 $l_line['fd_label'], +00532 $l_line['fd_id'], +00533 $l_line['fd_id']); +00534 } +00535 echo "</TABLE>"; +00536 echo '</div>'; +00537 } +00539 /* \brief show the menu for user/database management +00540 /* +00541 /* \return HTML code with the menu +00542 */ +00543 +00544 function MenuAdmin() +00545 { +00546 $item=array (array("admin_repo.php?action=user_mgt","Utilisateurs"), +00547 array("admin_repo.php?action=dossier_mgt","Dossiers"), +00548 array("admin_repo.php?action=modele_mgt","Modèles"), +00549 array("login.php","Accueil"), +00550 array("logout.php","Logout") +00551 ); +00552 +00553 $menu=ShowItem($item,'H'); +00554 return $menu; +00555 } +00564 function ShowMenuDocument() +00565 { +00566 $base="parametre.php?p_action=document&sa="; +00567 $sub_menu=ShowItem( +00568 array(array($base."add_document","Ajout")) +00569 ,'V',"cell","mtitle"); +00570 return $sub_menu; +00571 +00572 } +00584 function ShowMenuParam($p_action="") +00585 { +00586 $sub_menu=ShowItem(array( +00587 +00588 array('parametre.php?p_action=company','Sociétés'), +00589 array('parametre.php?p_action=devise','Devises'), +00590 array('parametre.php?p_action=tva','Tva'), +00591 array('parametre.php?p_action=poste','Poste Comptable'), +00592 array('parametre.php?p_action=fiche','Fiche'), +00593 array('user_sec.php','Sécurité'), +00594 array('parametre.php?p_action=document','Document'), +00595 array('commercial.php?dos='.$_SESSION['g_dossier'],"Gestion"), +00596 array('user_compta.php?dos='.$_SESSION['g_dossier'],"Comptabilité"), +00597 +00598 array('login.php','Accueil',"Accueil"), +00599 array('logout.php','logout',"Sortie") +00600 ), +00601 'H',"mtitle","mtitle",$p_action,' width="100%"'); +00602 return $sub_menu; +00603 +00604 } +00617 function MenuJrn($p_dossier) +00618 { +00619 echo '<TABLE>'; +00620 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>'; +00621 include_once("postgres.php"); +00622 $Cn=DbConnect($p_dossier); +00623 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_name, +00624 jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc +00625 from jrn_def join jrn_type on jrn_def_type=jrn_type_id"); +00626 $Max=pg_NumRows($Ret); +00627 for ($i=0;$i<$Max;$i++) { +00628 $l_line=pg_fetch_array($Ret,$i); +00629 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>', +00630 $l_line['jrn_def_id'],$l_line['jrn_def_name']); 00631 -00632 array('login.php','Accueil',"Accueil"), -00633 array('logout.php','logout',"Sortie") -00634 ), -00635 'H',"mtitle","mtitle",$p_action,' width="100%"'); -00636 return $sub_menu; -00637 -00638 } -00651 function MenuJrn($p_dossier) -00652 { -00653 echo '<TABLE>'; -00654 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_add.php">Création </A></TD></TR>'; -00655 include_once("postgres.php"); -00656 $Cn=DbConnect($p_dossier); -00657 $Ret=ExecSql($Cn,"select jrn_def_id,jrn_def_name, -00658 jrn_def_class_deb,jrn_def_class_cred,jrn_type_id,jrn_desc -00659 from jrn_def join jrn_type on jrn_def_type=jrn_type_id"); -00660 $Max=pg_NumRows($Ret); -00661 for ($i=0;$i<$Max;$i++) { -00662 $l_line=pg_fetch_array($Ret,$i); -00663 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="jrn_detail.php?p_jrn=%s">%s</A></TD></TR>', -00664 $l_line['jrn_def_id'],$l_line['jrn_def_name']); -00665 -00666 } -00667 echo "</TABLE>"; -00668 } -00681 function ShowMenuPcmn($p_start=1) -00682 { -00683 echo '<TABLE>'; -00684 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>'; -00685 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>'; -00686 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>'; -00687 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>'; -00688 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>'; -00689 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>'; -00690 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>'; -00691 echo "</TABLE>"; -00692 } -00704 function ShowMenuComptaForm($p_dossier) { -00705 $cn=DbConnect($p_dossier); -00706 echo '<div class="lmenu">'; -00707 echo '<TABLE>'; -00708 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=add">Ajout</A></TD></TR>'; -00709 $Ret=ExecSql($cn,"select fr_id, fr_label -00710 from formdef order by fr_label"); -00711 $Max=pg_NumRows($Ret); -00712 for ($i=0;$i<$Max;$i++) { -00713 $l_line=pg_fetch_array($Ret,$i); -00714 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=view&fr_id=%s">%s</A></TD></TR>', -00715 $l_line['fr_id'],$l_line['fr_label']); -00716 -00717 } -00718 echo "</TABLE>"; -00719 echo '</div>'; -00720 } -00721 -00727 function ShowMenuImport(){ -00728 echo '<TABLE>'; -00729 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=import">Importer CSV</A></TD></TR>'; -00730 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=verif">Verif CSV</A></TD></TR>'; -00731 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=transfer">Transfert CSV</A></TD></TR>'; -00732 -00733 echo "</TABLE>"; -00734 } -00735 -00736 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +00632 } +00633 echo "</TABLE>"; +00634 } +00647 function ShowMenuPcmn($p_start=1) +00648 { +00649 echo '<TABLE>'; +00650 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=1">1 Immobilisé </A></TD></TR>'; +00651 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=2">2 Actif a un an au plus</A></TD></TR>'; +00652 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=3">3 Stock et commande</A></TD></TR>'; +00653 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=4">4 Compte tiers</A></TD></TR>'; +00654 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=5">5 Actif</A></TD></TR>'; +00655 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=6">6 Charges</A></TD></TR>'; +00656 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="pcmn_update.php?p_start=7">7 Produits</A></TD></TR>'; +00657 echo "</TABLE>"; +00658 } +00670 function ShowMenuComptaForm($p_dossier) { +00671 $cn=DbConnect($p_dossier); +00672 echo '<div class="lmenu">'; +00673 echo '<TABLE>'; +00674 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=add">Ajout</A></TD></TR>'; +00675 $Ret=ExecSql($cn,"select fr_id, fr_label +00676 from formdef order by fr_label"); +00677 $Max=pg_NumRows($Ret); +00678 for ($i=0;$i<$Max;$i++) { +00679 $l_line=pg_fetch_array($Ret,$i); +00680 printf ('<TR><TD class="mtitle"><A class="mtitle" HREF="form.php?action=view&fr_id=%s">%s</A></TD></TR>', +00681 $l_line['fr_id'],$l_line['fr_label']); +00682 +00683 } +00684 echo "</TABLE>"; +00685 echo '</div>'; +00686 } +00687 +00693 function ShowMenuImport(){ +00694 echo '<TABLE>'; +00695 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=import">Importer CSV</A></TD></TR>'; +00696 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=verif">Verif CSV</A></TD></TR>'; +00697 echo '<TR><TD class="mtitle"><A class="mtitle" HREF="import.php?action=transfer">Transfert CSV</A></TD></TR>'; +00698 +00699 echo "</TABLE>"; +00700 } +00701 +00702 ?> +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__menu_8php.html b/doc/developper/html/user__menu_8php.html index cf6560e89..f945d340b 100644 --- a/doc/developper/html/user__menu_8php.html +++ b/doc/developper/html/user__menu_8php.html @@ -20,56 +20,53 @@  GetAvailableFolder ($p_user, $p_admin)  Get all the available folders for the users, checked with the security.
                  u_ShowMenu ($p_admin, $p_check=1, $p_item="") + ShowMenuCompta ($p_dossier, $p_high="") - Show The login menu.
                  ShowMenuCompta ($p_dossier, $p_high="") + show the top menu for the user profile and highight the selected one
                  GetFirstJrnIdForJrnType ($p_dossier, $p_type) - show the top menu for the user profile and highight the selected one
                  GetFirstJrnIdForJrnType ($p_dossier, $p_type) + Open the first legder automaticaly.
                  ShowMenuJrnUser ($p_dossier, $p_type, $p_jrn, $p_extra="") - Open the first legder automaticaly.
                  ShowMenuJrnUser ($p_dossier, $p_type, $p_jrn, $p_extra="") + Show the Menu from the jrn encode page.
                  ShowMenuJrn ($p_cn, $p_jrn_type, $p_jrn) - Show the Menu from the jrn encode page.
                  ShowMenuJrn ($p_cn, $p_jrn_type, $p_jrn) + Show the menu of the jrn depending of its type, check with the security.
                  get_quick_key ($title, &$access_key_list) - Show the menu of the jrn depending of its type, check with the security.
                  get_quick_key ($title, &$access_key_list) + Show the menu of the jrn depending of its type return a not yet used access key. The returned key is added to $access_key_list.
                  u_ShowMenuRecherche ($p_cn, $p_jrn, $p_sessid, $p_array=null) - Show the menu of the jrn depending of its type return a not yet used access key. The returned key is added to $access_key_list.
                  u_ShowMenuRecherche ($p_cn, $p_jrn, $p_sessid, $p_array=null) + Returns the form for the search (module accountancy).
                  ShowMenuAdvanced ($default="") - Returns the form for the search (module accountancy).
                  ShowMenuAdvanced ($default="") + build the menu of user_advanced.php
                  ShowJrn ($p_menu="") - build the menu of user_advanced.php
                  ShowJrn ($p_menu="") + Return a string containing the menu main menu when you click on Journaux.
                  ShowMenuFiche ($p_dossier) - Return a string containing the menu main menu when you click on Journaux.
                  ShowMenuFiche ($p_dossier) + Show the menu for the card management.
                  MenuAdmin () - Show the menu for the card management.
                  MenuAdmin () + ShowMenuDocument () - ShowMenuDocument () + : Display Document's menu
                  ShowMenuParam ($p_action="") - : Display Document's menu
                  ShowMenuParam ($p_action="") + Show the parameter menu.
                  MenuJrn ($p_dossier) - Show the parameter menu.
                  MenuJrn ($p_dossier) + Show the menu in the jrn page.
                  ShowMenuPcmn ($p_start=1) - Show the menu in the jrn page.
                  ShowMenuPcmn ($p_start=1) + Show the menu from the pcmn page.
                  ShowMenuComptaForm ($p_dossier) - Show the menu from the pcmn page.
                  ShowMenuComptaForm ($p_dossier) + Show the left menu for the report (add a report, view it).
                  ShowMenuImport () - Show the left menu for the report (add a report, view it).
                  ShowMenuImport () - - Show the menu for importing, verify and transfert Bank CSV.
                  + Show the menu for importing, verify and transfert Bank CSV.

                  Detailed Description

                  Nearly all the menu are here, some of them returns a HTML string, others echo directly the result. @@ -77,7 +74,7 @@ Nearly all the menu are here, some of them returns a HTML string, others echo di

                  Definition in file user_menu.php.


                  Function Documentation

                  -

                  +

                  +Referenced by ShowMenuJrn().
                  @@ -125,11 +122,11 @@ get_quick_key

                  -Definition at line 375 of file user_menu.php. +Definition at line 341 of file user_menu.php.

                  References $title, and echo_debug().

                  -Referenced by ShowMenuJrn().

                  @@ -181,12 +178,12 @@ Get all the available folders for the users, checked with the security.

                  Definition at line 90 of file user_menu.php.

                  -References $array, $cn, $filter, $Res, $sql, DbConnect(), and ExecSql(). +References $array, $cn, $filter, $Res, $sql, DbConnect(), and ExecSql().

                  Referenced by u_ShowDossier(). -

                  +

                  +References $l_line, $Ret, DbConnect(), and ExecSql().
                  @@ -231,12 +228,12 @@ Open the first legder automaticaly.
                  Returns:
                  the first jrn_def_id

                  -Definition at line 220 of file user_menu.php. +Definition at line 186 of file user_menu.php.

                  -References $l_line, $Ret, DbConnect(), and ExecSql().

                  -

                  +

                  @@ -262,12 +259,12 @@ References $l_line,

                  MenuAdmin

                  -Definition at line 578 of file user_menu.php. +Definition at line 544 of file user_menu.php.

                  References ShowItem().

                  -

                  +

                  +References $l_line, $Max, $Ret, DbConnect(), and ExecSql().
                  @@ -302,12 +299,12 @@ Show the menu in the jrn page.
                  Returns:
                  nothing

                  -Definition at line 651 of file user_menu.php. +Definition at line 617 of file user_menu.php.

                  -References $l_line, $Max, $Ret, DbConnect(), and ExecSql().

                  -

                  +

                  @@ -342,12 +339,12 @@ Return a string containing the menu main menu when you click on Journaux.
                  Returns:
                  HTML Code

                  -Definition at line 524 of file user_menu.php. +Definition at line 490 of file user_menu.php.

                  References $p_array, $result, and ShowItem().

                  -

                  +

                  @@ -382,12 +379,12 @@ build the menu of user_advanced.ph
                  Returns:
                  the menu

                  -Definition at line 498 of file user_menu.php. +Definition at line 464 of file user_menu.php.

                  References $left_menu, $r, Centralise(), and ShowItem().

                  -

                  +

                  @@ -429,16 +426,16 @@ show the top menu for the user profile and highight the selected one
                  p_high what to hightlight, by default it is autodetected but sometimes it must be given. Default value=""

                  -
                  Todo:
                  clean param p_dossier
                  +
                  Todo:
                  clean param p_dossier
                  Returns:
                  none

                  -Definition at line 166 of file user_menu.php. +Definition at line 132 of file user_menu.php.

                  References $default, $p_array, $r, $result, echo_debug(), ShowItem(), and width. -

                  +

                  +References $cn, $l_line, $Max, $Ret, DbConnect(), and ExecSql().
                  @@ -473,12 +470,12 @@ Show the left menu for the report (add a report, view it).
                  Returns:
                  nothing

                  -Definition at line 704 of file user_menu.php. +Definition at line 670 of file user_menu.php.

                  -References $cn, $l_line, $Max, $Ret, DbConnect(), and ExecSql().

                  -

                  +

                  @@ -512,12 +509,12 @@ References $cn,
                  Returns:
                  string

                  -Definition at line 598 of file user_menu.php. +Definition at line 564 of file user_menu.php.

                  References ShowItem().

                  -

                  +

                  @@ -550,15 +547,15 @@ Show the menu for the card management.

                  Returns:
                  nothing
                  -
                  Todo:
                  Only for developper A test must be added
                  +
                  Todo:
                  Only for developper A test must be added

                  -Definition at line 548 of file user_menu.php. +Definition at line 514 of file user_menu.php.

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

                  +

                  +Definition at line 693 of file user_menu.php.
                  @@ -587,10 +584,10 @@ Show the menu for importing, verify and transfert Bank CSV.
                  Returns:
                  nothing

                  -Definition at line 727 of file user_menu.php.

                  -

                  +

                  +References $action, $num, $Res, $ret, ExecSql(), and get_quick_key().
                  @@ -642,12 +639,12 @@ Show the menu of the jrn depending of its type, check with the security.
                  Returns:
                  string containing the menu

                  -Definition at line 333 of file user_menu.php. +Definition at line 299 of file user_menu.php.

                  -References $action, $num, $Res, $ret, ExecSql(), and get_quick_key().

                  -

                  +

                  +References $l_line, $Max, $Ret, $right, $User, CheckJrn(), DbConnect(), echo_debug(), and ExecSql().
                  @@ -708,12 +705,12 @@ ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)

                  Note:
                  we use the SCRIPT_NAME variable to build the href value but we need to add a parameter when the REQUEST_url is commercial.php

                  -Definition at line 246 of file user_menu.php. +Definition at line 212 of file user_menu.php.

                  -References $l_line, $Max, $Ret, $right, $User, CheckJrn(), DbConnect(), echo_debug(), and ExecSql().

                  -

                  +

                  @@ -748,12 +745,12 @@ Show the parameter menu.
                  Returns:
                  HTML Code

                  -Definition at line 618 of file user_menu.php. +Definition at line 584 of file user_menu.php.

                  References ShowItem(), and width.

                  -

                  +

                  +Definition at line 647 of file user_menu.php.
                  @@ -788,7 +785,7 @@ Show the menu from the pcmn page.
                  Returns:
                  nothing

                  -Definition at line 681 of file user_menu.php.

                  @@ -841,65 +838,7 @@ Definition at line 37$desc, $i, $p_array, $result, $tr, and GetAvailableFolder(). -

                  - - - - -
                  - - - - - - - - - - - - - - - - - - - - - - - - -
                  u_ShowMenu p_admin,
                  p_check = 1,
                  p_item = ""
                  -
                  - - - - - -
                  -   - - -

                  -Show The login menu. -

                  -

                  Parameters:
                  - - - - -
                  $p_admin 1 if admin
                  $p_check not used
                  $p_item item to add (default="")
                  -
                  -
                  Returns:
                  : nothing
                  -
                  Todo:
                  clean $p_check
                  - -

                  -Definition at line 132 of file user_menu.php. -

                  -References html_button_logout().

                  -

                  +

                  @@ -958,12 +897,12 @@ Returns the form for the search (module accountancy).
                  Returns:
                  HTML Code

                  -Definition at line 405 of file user_menu.php. +Definition at line 371 of file user_menu.php.

                  References $opt, $r, echo_debug(), METHOD, name, size, and value.

                  -


                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__pref_8php-source.html b/doc/developper/html/user__pref_8php-source.html index d4357010f..a1cd3d7fb 100644 --- a/doc/developper/html/user__pref_8php-source.html +++ b/doc/developper/html/user__pref_8php-source.html @@ -60,13 +60,13 @@ 00055 if ( $_SESSION['g_dossier'] != 0 ) 00056 echo '<div class="u_tmenu">'; 00057 -00058 echo ShowMenuCompta($_SESSION['g_dossier']); +00058 echo ShowMenuCompta($_SESSION['g_dossier']); 00059 echo "</div>"; 00060 } 00061 require_once("pref.inc.php"); 00062 html_page_stop(); 00063 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__pref_8php.html b/doc/developper/html/user__pref_8php.html index 072c079e2..52b59676b 100644 --- a/doc/developper/html/user__pref_8php.html +++ b/doc/developper/html/user__pref_8php.html @@ -129,7 +129,7 @@ Definition at line 2932 of file user_pref.php. -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__sec_8php-source.html b/doc/developper/html/user__sec_8php-source.html index eeeb6c95d..f1870d5b2 100644 --- a/doc/developper/html/user__sec_8php-source.html +++ b/doc/developper/html/user__sec_8php-source.html @@ -52,7 +52,7 @@ 00047 } 00048 echo "<H2 class=\"info\">".$_SESSION['g_name']." </H2>"; 00049 -00050 echo ShowMenuParam("user_sec.php"); +00050 echo ShowMenuParam("user_sec.php"); 00051 00052 00053 $cn=DbConnect(); @@ -269,7 +269,7 @@ 00264 echo "</DIV>"; 00265 html_page_stop(); 00266 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__sec_8php.html b/doc/developper/html/user__sec_8php.html index d0a48b010..312209943 100644 --- a/doc/developper/html/user__sec_8php.html +++ b/doc/developper/html/user__sec_8php.html @@ -385,7 +385,7 @@ Definition at line 122 Definition at line 175 of file user_sec.php.

                  -Referenced by Cezpdf::ezSetCmMargins(), Cezpdf::ezSetMargins(), Cezpdf::ezText(), ShowMenuJrnUser(), and SyncRight(). +Referenced by Cezpdf::ezSetCmMargins(), Cezpdf::ezSetMargins(), Cezpdf::ezText(), ShowMenuJrnUser(), and SyncRight().

                  @@ -463,7 +463,7 @@ Definition at line 16746 of file user_sec.php. -


                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__update_8php-source.html b/doc/developper/html/user__update_8php-source.html index 872055647..47a571221 100644 --- a/doc/developper/html/user__update_8php-source.html +++ b/doc/developper/html/user__update_8php-source.html @@ -57,7 +57,7 @@ 00052 00053 } // if update_record 00054 ?> -
                  Generated on Sat Jun 24 00:05:13 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:33 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/developper/html/user__update_8php.html b/doc/developper/html/user__update_8php.html index 5fc945dde..8ee24d998 100644 --- a/doc/developper/html/user__update_8php.html +++ b/doc/developper/html/user__update_8php.html @@ -104,7 +104,7 @@ Definition at line 36< Definition at line 28 of file user_update.php. -
                  Generated on Sat Jun 24 00:05:14 2006 for phpcompta by  +
                  Generated on Sat Jun 24 20:41:34 2006 for phpcompta by  doxygen 1.4.4
                  diff --git a/doc/manuel-fr.sgml b/doc/manuel-fr.sgml index 41d92bd71..af7a3c682 100644 --- a/doc/manuel-fr.sgml +++ b/doc/manuel-fr.sgml @@ -1144,6 +1144,9 @@ la colonne, vous pourrez modifier la fiche client. F pour accèder à toutes les factures au nom de ce client +

                  Ajout de client en cliquant sur le bouton ajout + +

                  Modification d'un client en cliquant sur son quickcode Menu Facture diff --git a/html/commercial.php b/html/commercial.php index ddca68c91..174dad017 100644 --- a/html/commercial.php +++ b/html/commercial.php @@ -77,6 +77,7 @@ echo ShowItem(array( array('?p_action=facture','Facture'), array('?p_action=fournisseur','Fournisseur'), array('?p_action=depense','Dépense'), + array('?p_action=bank','Banque'), array('?p_action=contact','Contact'), array('?p_action=admin','Administration'), array('?p_action=suivi_courrier','Suivi courrier'), @@ -144,3 +145,9 @@ if ( $p_action == 'admin') { require_once("admin.inc.php"); } +//////////////////////////////////////////////////////////////////////////////// +// Banque +if ( $p_action == 'bank') +{ + require_once("bank.inc.php"); +} diff --git a/html/index.php b/html/index.php index b256ce928..1e0153f45 100644 --- a/html/index.php +++ b/html/index.php @@ -14,11 +14,13 @@ * Quelques conventions de codage pour avoir un code plus ou moins * homogène *

                    - *
                  1. Tant que ce peut réutiliser ce qui existe déjà,
                  2. + *
                  3. Tant que possible réutiliser ce qui existe déjà,
                  4. + *
                  5. Améliorer ce qui existe déjà et vérifier que cela fonctionne toujours
                  6. *
                  7. Documenter avec les tags doxygen votre nouveau code,
                  8. - *
                  9. Les noms de fichiers sont *.inc.php pour les fichiers à include
                  10. + *
                  11. Les noms de fichiers sont *.inc.php pour les fichiers à éxécuter
                  12. + *
                  13. Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement
                  14. *
                  15. Les noms de fichier sont class_*.php pour les fichiers contenant des classes.
                  16. - *
                  17. Faire de la doc c'est bien
                  18. + *
                  19. Faire de la doc
                  20. *
                  * *

                  diff --git a/html/jrn_detail.php b/html/jrn_detail.php index 033f980f1..1d577f31c 100644 --- a/html/jrn_detail.php +++ b/html/jrn_detail.php @@ -74,14 +74,18 @@ If ( isset ($_POST["JRN_UPD"] )) { $p_ech='true'; $p_ech_lib="'".$_POST['p_ech_lib']."'"; } - if (strlen(trim($_POST['p_jrn_deb_max_line'])) == 0 || - (string) (int)$_POST['p_jrn_deb_max_line'] != (string)$_POST['p_jrn_deb_max_line'] ) + echo $_POST['p_jrn_deb_max_line']; + if ( strlen(trim($_POST['p_jrn_deb_max_line'])) == 0 || + (string) (int)$_POST['p_jrn_deb_max_line'] != (string)$_POST['p_jrn_deb_max_line'] || + $_POST['p_jrn_deb_max_line'] <= 0 + ) $l_deb_max_line=1; else $l_deb_max_line=$_POST['p_jrn_deb_max_line']; - if ( strlen(trim($_POST['p_jrn_cred_max_line'])) == 0 || - (string) (int)$_POST['p_jrn_cred_max_line'] != (string)$_POST['p_jrn_cred_max_line'] ) + if ( (int) strlen(trim($_POST['p_jrn_cred_max_line'])) == 0 || + (string) (int)$_POST['p_jrn_cred_max_line'] != (string)$_POST['p_jrn_cred_max_line'] || + $_POST['p_jrn_cred_max_line'] <=0 ) $l_cred_max_line=1; else $l_cred_max_line=$_POST['p_jrn_cred_max_line']; diff --git a/include/bank.inc.php b/include/bank.inc.php new file mode 100644 index 000000000..68c012ee8 --- /dev/null +++ b/include/bank.inc.php @@ -0,0 +1,209 @@ +',urldecode($_REQUEST['url'])); + $h_url=sprintf('',urldecode($_REQUEST['url'])); +} + +$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; +//////////////////////////////////////////////////////////////////////////////// +// If a list of depense is asked +// +if ( $sub_action == "list") +{ + + // show the menu with the list item selected + echo '
                  '; + echo ShowMenuJrnUser($_SESSION['g_dossier'],'FIN',0,'Liste'); + echo '
                  '; + + echo '
                  '; + + + + $hid=new widget("hidden"); + + $hid->name="p_action"; + $hid->value="bank"; + echo $hid->IOValue(); + + + $hid->name="sa"; + $hid->value="list"; + echo $hid->IOValue(); + + + + $w=new widget("select"); + + $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); + // User is already set User=new cl_user($cn); + $current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); + $w->selected=$current; + + echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); + $qcode=(isset($_GET['qcode']))?$_GET['qcode']:""; + printf ('Tiers QuickCode: ', + $qcode); + echo $retour; + // Show list of sell + // Date - date of payment - Customer - amount + $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_type='FIN'" ; + $step=$_SESSION['g_pagesize']; + $page=(isset($_GET['offset']))?$_GET['page']:1; + $offset=(isset($_GET['offset']))?$_GET['offset']:0; + + $l=""; + // check if qcode contains something + if ( $qcode != "" ) + { + // add a condition to filter on the quick code + $l=" and jr_grpt_id in (select j_grpt from jrnx where j_qcode='$qcode') "; + } + + list($max_line,$list)=ListJrn($cn,0,"where jrn_def_type='FIN' and jr_tech_per=$current $l " + ,null,$offset,0); + $bar=jrn_navigation_bar($offset,$max_line,$step,$page); + + echo "
                  $bar"; + echo $list; + echo "$bar
                  "; + echo $retour; + + echo '
                  '; + + exit(); +} +//////////////////////////////////////////////////////////////////////////////// +echo '
                  '; +echo ShowMenuJrnUser($_SESSION['g_dossier'],'FIN',$p_jrn,'Liste'); +echo '
                  '; +//////////////////////////////////////////////////////////////////////////////// +// if we request to add an item +// the $_POST['add_item'] is set +// or if we ask to correct the invoice +if ( isset ($_POST['add_item']) || isset ($_POST['correct']) ) +{ + $nb_item=$_POST['nb_item']; + if ( isset ($_POST['add_item'])) + $nb_item++; + // Submit button in the form + $submit=' + '; + $form=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,false, $nb_item); + //$form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,false, $nb_number); + + echo '
                  '; + echo $form; + echo '
                  '; + exit(); +} +//////////////////////////////////////////////////////////////////////////////// +// Save : record +// +if ( isset($_POST['save'])) +{ + // we save the expense + $r=RecordFin($cn,$_POST,$User,$p_jrn); + $nb_number=$_POST['nb_item']; + + $submit='

                  Opération '.$r.' enregistré

                  '; + + $form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,true,$nb_number,true); + + echo '
                  '; + echo $form; + echo '
                  '; + echo ''; + echo ' + '; + exit(); +} +//////////////////////////////////////////////////////////////////////////////// +// we show the confirmation screen +// +if ( isset ($_POST['view_invoice']) ) +{ + $nb_number=$_POST["nb_item"]; + $submit=''; + $submit.=''; + if ( form_verify_input ($cn,$p_jrn,$User->GetPeriode(),$_POST,$nb_number) != null ) { + // Should use a read only view instead of FormFin + // where we can check + $form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,true, $nb_number,false); + } else { + // if something goes wrong, correct it + $submit=' + '; + $form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,false, $nb_number); + + } + + echo '
                  '; + echo $form; + echo '
                  '; + exit(); + +} + + + +//////////////////////////////////////////////////////////////////////////////// +// By default we add a new invoice +if ( $p_jrn != -1 ) +{ + $jrn=new jrn($cn, $p_jrn); + echo_debug('depense.inc.php',__LINE__,"Blank form"); + // Submit button in the form + $submit=' + '; + // Show an empty form of invoice + $form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb')); + echo '
                  '; + echo $form; + echo '
                  '; +} diff --git a/include/class_document.php b/include/class_document.php index 648ff20b6..72f5e3fc6 100644 --- a/include/class_document.php +++ b/include/class_document.php @@ -32,7 +32,7 @@ class Document var $d_mimetype; /*! \enum $d_mimetype */ var $d_filename; /*! \enum $d_filename */ var $d_lob; /*! \enum $d_lob the oid of the lob */ - var $d_number; /*! \enum $d_number seq of action */ + var $d_number; /*! \enum $d_number number of the document */ var $md_id; /*! \enum $md_id document's template */ /* Constructor * \param $p_cn Database connection diff --git a/include/depense.inc.php b/include/depense.inc.php index 283695e5e..6a0a380d6 100644 --- a/include/depense.inc.php +++ b/include/depense.inc.php @@ -160,7 +160,8 @@ echo '
                  '; if ( isset ($_POST['add_item']) || isset ($_POST["correct_new_invoice"]) ) { $nb_item=$_POST['nb_item']; - $nb_item++; + if ( isset ($_POST['add_item'])) + $nb_item++; // Submit button in the form $submit=' '; diff --git a/include/facture.inc.php b/include/facture.inc.php index b6773d820..ab6c86f99 100644 --- a/include/facture.inc.php +++ b/include/facture.inc.php @@ -23,7 +23,8 @@ require_once('user_form_ven.php'); require_once('jrn.php'); require_once("class_document.php"); require_once("class_fiche.php"); -/*!\brief the purpose off this file is to create invoices, to record them and to generate +/*!\file + * \brief the purpose off this file is to create invoices, to record them and to generate * them, and of course to save them into the database * */ @@ -35,7 +36,6 @@ var_dump($_REQUEST); if ( ! isset ($_REQUEST['p_jrn'])) { // no journal are selected so we select the first one $p_jrn=GetFirstJrnIdForJrnType($_SESSION['g_dossier'],'VEN'); - // $p_jrn=-1; } else { $p_jrn=$_REQUEST['p_jrn']; @@ -161,7 +161,8 @@ echo ''; if ( isset ($_POST['add_item']) || isset ($_POST["correct_new_invoice"]) ) { $nb_item=$_POST['nb_item']; - $nb_item++; + if ( isset ($_POST['add_item'])) + $nb_item++; $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_item); echo '
                  '; echo $form; @@ -184,6 +185,7 @@ if ( isset($_POST['record_and_print_invoice'])) echo '

                  Opération '.$internal.' enregistré

                  '; echo $form; echo '
                  '; + // Show the details of the encoded invoice // and the url of the invoice if ( isset($_POST['gen_invoice'])) @@ -195,6 +197,9 @@ if ( isset($_POST['record_and_print_invoice'])) $str_file=$doc->Generate(); // Move the document to the jrn $doc->MoveDocumentPj($internal); + // Update the comment with invoice number + $sql="update jrn set jr_comment='Facture ".$doc->d_number."' where jr_internal='$internal'"; + ExecSql($cn,$sql); echo $str_file; } echo ''; diff --git a/include/postgres.php b/include/postgres.php index 86d110732..e37bfd54d 100644 --- a/include/postgres.php +++ b/include/postgres.php @@ -363,7 +363,9 @@ function GetArray($p_cn,$p_sql) { * * \param $cn database connection * \param $seq jr_grpt_id - * \return $oid of the lob file + * \return $oid of the lob file if success + * null if a error occurs + * */ function save_upload_document ($cn,$seq) { @@ -393,14 +395,15 @@ function save_upload_document ($cn,$seq) { // Load new document ExecSql($cn,"update jrn set jr_pj=".$oid.", jr_pj_name='".$_FILES['pj']['name']."', ". "jr_pj_type='".$_FILES['pj']['type']."' where jr_grpt_id=$seq"); + return $oid; } else { echo "

                  Error

                  "; Rollback($cn); - exit; + return null; } } - return $oid; + } diff --git a/include/user_action_fin.php b/include/user_action_fin.php index c1ac91b55..f3d8eb6fb 100644 --- a/include/user_action_fin.php +++ b/include/user_action_fin.php @@ -27,7 +27,7 @@ echo_debug('user_action_fin.php',__LINE__,"include user_action_fin.php"); require_once("user_form_fin.php"); include_once("class_widget.php"); require_once("class_parm_code.php"); - +require_once("class_jrn.php"); $cn=DbConnect($_SESSION['g_dossier']); if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) { @@ -53,9 +53,10 @@ if ( $action == 'new' ) { $submit=' '; // add a one-line calculator + $p_jrn=$_GET['p_jrn']; + $jrn=new jrn($cn, $p_jrn); - - $r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,null,false); + $r=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb')); echo '
                  '; echo $r; echo "

                  On-line calculator

                  ".JS_CALC_LINE."
                  "; diff --git a/include/user_common.php b/include/user_common.php index e5cbc29d9..4a3e3fff4 100644 --- a/include/user_common.php +++ b/include/user_common.php @@ -309,14 +309,14 @@ comment = $p_comment"); ************************************************** *\brief show all the lines of the asked jrn * - * parm : - * - $p_cn database connection - * - $p_jrn jrn_id jrn.jrn_def_id - * - $p_where the sql query where clause - * - $p_array param. for a search - * - $p_value offset - * - $p_paid value : 0 nothing is shown, 1 check box; 2 check_box disable - * return: array (entryCount,generatedHTML); + * + * \param $p_cn database connection + * \param $p_jrn jrn_id jrn.jrn_def_id + * \param $p_where the sql query where clause + * \param $p_array param. for a search + * \param $p_value offset + * \param $p_paid value : 0 nothing is shown, 1 check box; 2 check_box disable + * \return array (entryCount,generatedHTML); * */ function ListJrn($p_cn,$p_jrn,$p_where="",$p_array=null,$p_value=0,$p_paid=0) diff --git a/include/user_form_fin.php b/include/user_form_fin.php index 04b93ab2f..a7db94b95 100644 --- a/include/user_form_fin.php +++ b/include/user_form_fin.php @@ -36,9 +36,8 @@ require_once("user_common.php"); * \param $p_periode User periode * \param $p_array array with the post data * \param $p_number number of items - * gen : - * - - * return: + * + * \return: */ function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) { @@ -88,9 +87,9 @@ function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) if ( $poste == null ) { $msg="La fiche ".${"e_other$i"}." n\'a pas de poste comptable"; - echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); - echo ""; - return null; + echo_error($msg); echo_debug('user_form_fin.php',__LINE__,$msg); + echo ""; + return null; } if ( strlen(trim($poste))==0 ) @@ -133,16 +132,16 @@ function form_verify_input($p_cn,$p_jrn,$p_periode,$p_array,$p_number) * Used to show detail, encode a new fin op * or update one * - * parm : - * - p_array which can be empty - * - the "journal" - * - $p_user = $g_user - * - $p_submit contains the submit string - * - view_only if we cannot change it (no right or centralized op) - * - $p_item number of article - * gen : - * - - * return: string with the form + * \param $p_cn database connection + * \param $p_jrn ledger id (jr_id) + * \param $p_submit contains the submit string + * \param $p_array (default=null) containing the $_POST + * \param $p_view_only (default=true) true if we cannot change it (no right or centralized op) + * \param $p_item number of article (default=4) + * \param $p_save (default false) if the operation is already recorded + * + * + * \return string with the form, in readonly or writable mode */ function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=true,$p_item=4,$p_save=false) { @@ -158,12 +157,7 @@ function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=tru $flag=(isset($e_date))?1:0; $e_date=( ! isset($e_date) ) ? substr($l_date_start,2,8):$e_date; - // Verify if valid date - if ($flag ==1 and VerifyOperationDate($p_cn,$p_periode,$e_date) == null) { - $e_date=substr($l_date_start,2,8); - } - - + // Comment $e_comment=(isset($e_comment))?$e_comment:""; $r=""; @@ -171,8 +165,24 @@ function FormFin($p_cn,$p_jrn,$p_periode,$p_submit,$p_array=null,$pview_only=tru $r.=JS_SEARCH_CARD; $r.=JS_CONCERNED_OP; } + // Compute href + $href=$_SERVER['SCRIPT_NAME']; + switch ($href) + { + // user_jrn.php module "Comptable" + case '/user_jrn.php': + $href="user_jrn.php?action=new&p_jrn=$p_jrn"; + break; + // commercial.php module "Gestion" + case '/commercial.php': + $href="commercial.php?p_action=bank&p_jrn=$p_jrn"; + break; + default: + echo_error('user_form_fin.php',__LINE__,'Erreur invalid request uri'); + exit (-1); + } - $r.="
                  "; + $r.=""; $r.=''; $Date=new widget("text"); $Date->SetReadOnly($pview_only); @@ -301,7 +311,7 @@ $r.="
                  "; // Set correctly the REQUEST param for jrn_type $h=new widget('hidden'); $h->name='jrn_type'; - $h->value=$_REQUEST['jrn_type']; + $h->value='FIN'; $r.=$h->IOValue(); $r.=$p_submit; @@ -353,15 +363,6 @@ function RecordFin($p_cn,$p_array,$p_user,$p_jrn) { } // Get the default period $periode=$p_user->GetPeriode(); - - // Test if the data are correct - // Verify the date - if ( isDate($e_date) == null ) { - echo_error("Invalid date $e_date"); - echo_debug('user_form_fin.php',__LINE__,"Invalid date $e_date"); - echo ""; - return null; - } // Debit = banque $poste_bq=GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT);