diff --git a/doc/function.txt b/doc/function.txt index 99df37250..9ea4022e7 100644 --- a/doc/function.txt +++ b/doc/function.txt @@ -1,6 +1,4 @@ -************************* File = admin_dossier.php **************** ************************* File = admin_repo.php **************** -************************* File = advanced.php **************** ************************* File = annulation.php **************** ************************* File = a.php **************** ************************* File = bal_csv.php **************** @@ -8,8 +6,6 @@ ************************* File = central.php **************** ************************* File = class.ezpdf.php **************** ************************* File = class.pdf.php **************** -************************* File = compta_login.php **************** -************************* File = compta.php **************** ************************* File = c.php **************** ************************* File = dossier_prefs.php **************** ************************* File = d.php **************** @@ -22,7 +18,6 @@ ************************* File = fiche_search.php **************** ************************* File = form.php **************** ************************* File = html_balance.php **************** -************************* File = impress.php **************** ************************* File = index.php **************** ************************* File = jrn_add.php **************** ************************* File = jrn_csv.php **************** @@ -44,11 +39,9 @@ ************************* File = print_invoice.php **************** ************************* File = priv_user.php **************** ************************* File = rapprochement.php **************** -************************* File = rate_chg.php **************** ************************* File = readme.php **************** ************************* File = recherche.php **************** ************************* File = send_jrn_pdf.php **************** -************************* File = send.php **************** ************************* File = send_poste_pdf.php **************** ************************* File = show_tva.php **************** ************************* File = stock.php **************** @@ -1696,6 +1689,32 @@ postgres.php * parameter p_connection db connection postgres.php * p_string sql string postgres.php * return false if error otherwise true postgres.php */ +postgres.php /* function GetAllUser +postgres.php * Return all the users +postgres.php * as an array +postgres.php */ +postgres.php /* function GetUid +postgres.php * Check if the User is valid +postgres.php * and return an array with his property +postgres.php */ +postgres.php /* function GetPriv +postgres.php * Get the privilege of an user on a folder +postgres.php */ +postgres.php /* function ExisteJnt +postgres.php * Get the number of rows +postgres.php * from table jnt_use_dos where $p_dossier = dos_id and +postgres.php * use_id=$p_user +postgres.php */ +postgres.php /* function GetDossierName +postgres.php * Param: id of a dossier +postgres.php * return : Name of the dossier +postgres.php */ +postgres.php /* function GetSequence +postgres.php * get the current sequence +postgres.php */ +postgres.php /* function NextSequence +postgres.php * get the current sequence +postgres.php */ postgres.php /* function SyncRight postgres.php * Purpose : Synchronize les droits par défaut postgres.php * avec les journaux existants @@ -1910,6 +1929,11 @@ stock_inc.php * gen : stock_inc.php * - stock_inc.php * return: stock_inc.php */ +stock_inc.php /* function GetQuantity($p_cn,$p_sg_code,$year,$p_type 'd' or 'c' +stock_inc.php * purpose return the quantity of a sg_code for the period +stock_inc.php * +stock_inc.php * Return number or NULL +stock_inc.php */ ************************* File = top_menu_compta.php **************** top_menu_compta.php /* function ShowMenu top_menu_compta.php * Purpose : Show The login menu diff --git a/doc/makedoc b/doc/makedoc index fb26a5ae1..dae0f44b2 100755 --- a/doc/makedoc +++ b/doc/makedoc @@ -8,6 +8,7 @@ ext_dir () ) >> $BASE_DIR/function.txt done } +rm -f $BASE_DIR/function.txt cd ../html diff --git a/html/central.php b/html/central.php index 19be195ca..45f2670ed 100644 --- a/html/central.php +++ b/html/central.php @@ -37,7 +37,7 @@ include ("check_priv.php"); include_once("preference.php"); -include_once ("top_menu_compta.php"); +include_once ("user_menu.php"); ShowMenuCompta($_SESSION['g_dossier']); if ( $_SESSION['use_admin']==0 ) { diff --git a/html/dossier_prefs.php b/html/dossier_prefs.php index 6c519a3e3..fb8283934 100644 --- a/html/dossier_prefs.php +++ b/html/dossier_prefs.php @@ -33,8 +33,8 @@ $User=new cl_user($rep); $User->Check(); include("preference.php"); -include_once ("top_menu_compta.php"); - +// include_once ("top_menu_compta.php"); +include_once("user_menu.php"); ShowMenuCompta($_SESSION['g_dossier']); diff --git a/html/enc_jrn.php b/html/enc_jrn.php deleted file mode 100644 index 28d685fe9..000000000 --- a/html/enc_jrn.php +++ /dev/null @@ -1,289 +0,0 @@ - -/* - * This file is part of PhpCompta. - * - * PhpCompta is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * PhpCompta is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with PhpCompta; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -/* $Revision$ */ -// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr -/* $Revision$ */ -include_once ("ac_common.php"); -include_once("jrn.php"); -include_once("preference.php"); -include_once("poste.php"); -include_once("error.php"); -include_once("user_common.php"); - -html_page_start($g_UserProperty['use_theme'],"onLoad=\"CheckTotal();\""); -if ( ! isset ( $g_dossier ) ) { - echo "You must choose a Dossier "; - exit -2; -} -include_once ("postgres.php"); -include_once ("check_priv.php"); -/* Admin. Dossier */ -$rep=DbConnect(); -include_once ("class_user.php"); -$User=new cl_user($rep); -$User->Check(); -if ( isset( $p_jrn )) { - $_SESSION["g_jrn"]; - $g_jrn=$p_jrn; -} - $cn=DbConnect($g_dossier); - -echo ''; -echo JS_CONCERNED_OP; -echo JS_VIEW_JRN_DETAIL; - -/* Get MaxLine */ -include_once("poste.php"); -include_once ("top_menu_compta.php"); -ShowMenuCompta($g_dossier,$g_UserProperty); -ShowMenuComptaRight($g_dossier,$g_UserProperty); -if ( $g_UserProperty['use_admin'] == 0 ) { - $r=CheckAction($g_dossier,$g_user,ENCJRN); - if ($r == 0 ){ - /* Cannot Access */ - NoAccess(); - } - if ( isset ($g_jrn)) { - $right=CheckJrn($g_dossier,$g_user,$g_jrn); - if ($right == 0 ){ - /* Cannot Access */ - NoAccess(); - exit -1; - } - } // if isset g_jrn - -} - -ShowMenuJrnUser($g_dossier,$g_UserProperty); - -if ( isset ( $_GET["action"] )) { - if ( $_GET["action"] == "view" ) { - - // view all the journal's operation - echo '
| Numéro de classe | ',$l); echo " | |
| Libellé | ',urldecode($n)); diff --git a/html/pcmn_update.php b/html/pcmn_update.php index 81ba968fe..a80248b38 100644 --- a/html/pcmn_update.php +++ b/html/pcmn_update.php @@ -33,7 +33,7 @@ $User=new cl_user($rep); $User->Check(); -include_once ("top_menu_compta.php"); +include_once ("user_menu.php"); include_once ("check_priv.php"); ShowMenuCompta($_SESSION['g_dossier']); diff --git a/html/recherche.php b/html/recherche.php index 5c7460293..71ee904b4 100644 --- a/html/recherche.php +++ b/html/recherche.php @@ -19,7 +19,7 @@ /* $Revision$ */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr include_once("ac_common.php"); -include("top_menu_compta.php"); +include("user_menu.php"); include_once ("constant.php"); include_once("jrn.php"); include_once("user_common.php"); diff --git a/html/stock.php b/html/stock.php index 49693429a..fcba5fb7f 100644 --- a/html/stock.php +++ b/html/stock.php @@ -56,7 +56,7 @@ $cn=DbConnect($_SESSION['g_dossier']); //Show the top menu include_once ("user_menu.php"); -include_once ("top_menu_compta.php"); + ShowMenuCompta($_SESSION['g_dossier']); // Show Menu Left diff --git a/html/user_advanced.php b/html/user_advanced.php index 354dfe46b..61e726070 100644 --- a/html/user_advanced.php +++ b/html/user_advanced.php @@ -49,7 +49,7 @@ $User->Check(); // Show the top menus include_once ("user_menu.php"); -include_once ("top_menu_compta.php"); + ShowMenuCompta($_SESSION['g_dossier']); // Show the right menus diff --git a/html/user_compta.php b/html/user_compta.php index 540969438..02b842da3 100644 --- a/html/user_compta.php +++ b/html/user_compta.php @@ -59,7 +59,7 @@ if ( $User->admin == 0 ) { include_once ("user_menu.php"); -include_once ("top_menu_compta.php"); + ShowMenuCompta($g_dossier); html_page_stop(); diff --git a/html/user_impress.php b/html/user_impress.php index 721037091..a55fe00bd 100644 --- a/html/user_impress.php +++ b/html/user_impress.php @@ -34,7 +34,7 @@ $User=new cl_user($cn); $User->Check(); include ("check_priv.php"); -include_once ("top_menu_compta.php"); +include_once ("user_menu.php"); ShowMenuCompta($_SESSION['g_dossier']); // show sub menu diff --git a/html/user_jrn.php b/html/user_jrn.php index 762fcf37c..18d5a7e46 100644 --- a/html/user_jrn.php +++ b/html/user_jrn.php @@ -19,7 +19,7 @@ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr /* $Revision$ */ include_once("ac_common.php"); -include("top_menu_compta.php"); +include_once("user_menu.php"); include_once ("constant.php"); include_once ("postgres.php"); include_once ("check_priv.php"); @@ -86,6 +86,7 @@ if ( isset ($_GET['JRN_TYPE'] ) ) { ShowMenuJrnUser($_SESSION['g_dossier'],$_GET['JRN_TYPE'],$_SESSION['g_jrn']); echo ""; if ( $jrn_type=='NONE' ) include('user_action_gl.php'); + if ( $jrn_type=='SALDO_FIN') include ('user_action_fin.php'); } else { @@ -112,8 +113,8 @@ if ( $_SESSION['g_jrn'] != -1 ) { $JrnProp=GetJrnProp($_SESSION['g_dossier'],$_SESSION['g_jrn']); $jrn_type=$JrnProp['jrn_def_type']; // display jrn's menu - include_once('user_menu.php'); - $menu_jrn=u_ShowMenuJrn($cn,$jrn_type); + + $menu_jrn=ShowMenuJrn($cn,$jrn_type); // echo ''; } -/* function u_ShowMenuJrnUser($p_dossier,$p_user) +/* function ShowMenuJrnUser($p_dossier,$p_user) * Purpose : Show the Menu from the jrn encode * page * @@ -228,7 +228,7 @@ function u_ShowMenuComptaRight($p_dossier=0,$p_admin=0) * */ -function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn) +function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn) { include_once ("debug.php"); include_once("constant.php"); @@ -272,6 +272,10 @@ function u_ShowMenuJrnUser($p_dossier,$p_type,$p_jrn) $right=3; } + // Show saldo +// echo ' | '; +// echo ('Solde | '); +// echo '