************************* File = admin_repo.php ****************
************************* File = central.php ****************
************************* File = compta_login.php ****************
************************* File = compta.php ****************
************************* File = dossier_prefs.php ****************
************************* File = enc_jrn.php ****************
************************* File = facturation.php ****************
************************* File = fiche.php ****************
************************* File = form.php ****************
************************* File = impress.php ****************
************************* File = index.php ****************
************************* File = jrn_add.php ****************
************************* File = jrn_detail.php ****************
************************* File = jrn_op_detail.php ****************
************************* File = jrn_search.php ****************
************************* File = jrn_update.php ****************
************************* File = line_update.php ****************
************************* File = login.php ****************
************************* File = logout.php ****************
************************* File = not_implemented.php ****************
************************* File = pcmn_update.php ****************
************************* File = poste_search.php ****************
************************* File = priv_user.php ****************
************************* File = rate_chg.php ****************
************************* File = send_jrn_pdf.php ****************
************************* File = send.php ****************
************************* File = send_poste_pdf.php ****************
************************* File = user_compta.php ****************
************************* File = user_jrn.php ****************
************************* File = user_login.php ****************
************************* File = user_pref.php ****************
************************* File = user_sec.php ****************
************************* File = ac_common.php ****************
ac_common.php /* function cmpDate
ac_common.php  * Purpose : 
ac_common.php  *         Compare 2 dates
ac_common.php  * parm : 
ac_common.php  *	- date1 date2
ac_common.php  * gen :
ac_common.php  *	- rien
ac_common.php  * return:
ac_common.php  *	- == 0 les dates sont identiques
ac_common.php  *      - > 0 date1 > date2 
ac_common.php  *      - < 0 date1 < date2
ac_common.php  */
ac_common.php /* function IsNumber
ac_common.php  * purpose : check if the argument is a number
ac_common.php  *
ac_common.php  * parm : $p_int
ac_common.php  *
ac_common.php  * gen nothing
ac_common.php  * 
ac_common.php  * return :
ac_common.php  *        1 it's a number
ac_common.php  *        0 it is not
ac_common.php  */
ac_common.php /* function isDate
ac_common.php  * Purpose : Verifie qu'une date est bien format
ac_common.php  *           en d.m.y et est valable
ac_common.php  * parm : 
ac_common.php  *	- $p_date
ac_common.php  * gen :
ac_common.php  *	- rien
ac_common.php  * return:
ac_common.php  *	- null si la date est invalide ou malformat
ac_common.php  *      - $p_date si tout est bon
ac_common.php  *
ac_common.php  */ 
ac_common.php /* function 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function html_page_start
ac_common.php  * Purpose : Default page header for each page
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *      - default theme
ac_common.php  *	- $p_script
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return:
ac_common.php  *        none
ac_common.php  */
ac_common.php /* function html_page_stop()
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function html_button_logout 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function  NoAccess 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function FormatString($p_string) 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function GetUserType
ac_common.php  * Purpose : get the type of an user (compta,developper or user)
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- param $p_user user_login
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return: the type of the user
ac_common.php  */
ac_common.php /* function Redirect
ac_common.php  * Purpose : redirect following the user's profile
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- p_profile (ac_users.use_usertype)
ac_common.php  *      - php_session PHPSESSID
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return: none
ac_common.php  */
ac_common.php /* function ShowItem($p_array) */
ac_common.php /* function echo_warning
ac_common.php  * Purpose : warns
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- string
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return:
ac_common.php  *      - none
ac_common.php  */
************************* File = central_inc.php ****************
central_inc.php /* function Centralise
central_inc.php  * Purpose :
central_inc.php  *        Met les donnees centralisees dans la table
central_inc.php  *        centralize 
central_inc.php  * 
central_inc.php  * parm : 
central_inc.php  *	- p_cn connection
central_inc.php  *      - periode a centraliser
central_inc.php  * gen :
central_inc.php  *	- none
central_inc.php  * return:
central_inc.php  *	- code error
central_inc.php  *
central_inc.php  */ 
************************* File = check_priv.php ****************
check_priv.php /* function CheckJrn
check_priv.php  * Purpose :
check_priv.php  * Vrifie les acces d'un utilisateur
check_priv.php  * sur un journal
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- $p_dossier le dossier
check_priv.php  *      - $p_user    le login user
check_priv.php  *      - $p_jrn     le journal
check_priv.php  * gen :
check_priv.php  *	- rien
check_priv.php  * return:
check_priv.php  *	- 0 pas d'acces
check_priv.php  *      - 1 Lecture
check_priv.php  *      - 2 criture
check_priv.php  *
check_priv.php  */ 
check_priv.php /* function CheckAction
check_priv.php  * Purpose : Check if an user is allowed to do an action
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- p_dossier dossier id
check_priv.php  *      - p_login   user's login
check_priv.php  *      - p_action_id 
check_priv.php  * gen :
check_priv.php  *	-
check_priv.php  * return:
check_priv.php  *	- 0 no priv
check_priv.php  *      - 1 priv granted
check_priv.php  *
check_priv.php  */ 
check_priv.php /* function CheckIsAdmin
check_priv.php  * Purpose : Check if an user is an administrator
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- $p_user  user login
check_priv.php  * gen :
check_priv.php  *	-
check_priv.php  * return:
check_priv.php  *	- 0 if no
check_priv.php  *      - 1 if yes
check_priv.php  *
check_priv.php  */ 
************************* File = compta_menu.php ****************
compta_menu.php /* function c_ShowMenuComptaRight
compta_menu.php  * Purpose : Display menu on the Right
compta_menu.php  *           (preference, logout and admin)
compta_menu.php  * parm : 
compta_menu.php  *	- $p_dossier the current dossier
compta_menu.php  *      - $p_admin   $g_UserProperty['use_admin'] 1 if admin
compta_menu.php  *      - $p_more code
compta_menu.php  * gen :
compta_menu.php  *	- none
compta_menu.php  * return:
compta_menu.php  *	- none
compta_menu.php  *
compta_menu.php  */ 
compta_menu.php /* function ShowMenuCompta
compta_menu.php  * Purpose : Montre le menu du haut
compta_menu.php  * 
compta_menu.php  * parm : 
compta_menu.php  *	- dossier
compta_menu.php  *	- $p_user	array ($g_UserProperty)
compta_menu.php  * gen :
compta_menu.php  *	- none
compta_menu.php  * return:
compta_menu.php  *	- none
compta_menu.php  *
compta_menu.php  */ 
compta_menu.php /* function c_ShowMenuJrnUser($p_dossier,$p_user)
compta_menu.php  * Purpose : Show the Menu from the jrn encode
compta_menu.php  *           page
compta_menu.php  * 
compta_menu.php  * parm : 
compta_menu.php  *	- $p_dossier
compta_menu.php  *      - $p_user
compta_menu.php  * gen :
compta_menu.php  *	- none
compta_menu.php  * return:
compta_menu.php  *	- none
compta_menu.php  *
compta_menu.php  */ 
************************* File = constant.php ****************
************************* File = debug.php ****************
************************* File = facture_inc.php ****************
facture_inc.php /* function
facture_inc.php  * Purpose :
facture_inc.php  * 
facture_inc.php  * parm : 
facture_inc.php  *	- 
facture_inc.php  * gen :
facture_inc.php  *	-
facture_inc.php  * return:
facture_inc.php  *	-
facture_inc.php  *
facture_inc.php  */ 
facture_inc.php /* function
facture_inc.php  * Purpose :
facture_inc.php  * 
facture_inc.php  * parm : 
facture_inc.php  *	- 
facture_inc.php  * gen :
facture_inc.php  *	-
facture_inc.php  * return:
facture_inc.php  *	-
facture_inc.php  *
facture_inc.php  */ 
************************* File = fiche_inc.php ****************
fiche_inc.php /* function addFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : ajoute une nouvelle fiche
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- connexion
fiche_inc.php  *      - type de la fiche
fiche_inc.php  *      - tableau
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function EncodeFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Affiche les dtails d'une fiche et propose
fiche_inc.php  *           de mettre  jour
fiche_inc.php  *           ou si array est a null, permet d'ajouter une
fiche_inc.php  *           fiche, to fill the attribute
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn connexion
fiche_inc.php  *      -  p_type id du modele fiche_def(fd_id) de la fiche SI array est null
fiche_inc.php  *         sinon correspond au id d'une fiche fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetBaseFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : donne la classe comptable de base d'une fiche
fiche_inc.php  *  
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_type fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- return la classe id ou rien
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetBaseFicheDefault
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Give the default accounts of fiche_def
fiche_inc.php  *
fiche_inc.php  *  
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_type fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- return la classe id ou rien
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function ViewFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Montre les fiches d'une rubrique
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn connexion
fiche_inc.php  *      - $p_type fiche_def.fd_id catg of card
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetNextFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Cre le poste suivant pour une fiche en fonction
fiche_inc.php  *           de la classe de base (fichedef(fd_class_base))
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_base 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function ViewFicheDetail
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Montre  le detail d'une fiche
fiche_inc.php  *           et ajoute les lignes manquantes
fiche_inc.php  *           dans le cas o le modle  changer
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn
fiche_inc.php  *      - id de la fiche fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function UpdateFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Met a jour une fiche
fiche_inc.php  *          change dans le plan comptable, fiche,et isupp
fiche_inc.php  *          
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn
fiche_inc.php  *      - p_array
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- nothing
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function EncodeModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose :
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function DefModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Creation of a model of card or correction
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *      - $p_cn  database connection 
fiche_inc.php  *	- $p_ligne number of lines
fiche_inc.php  *      - $p_array  array
fiche_inc.php  *      - $p_js class base (javascript code)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- nothing
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function AddModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Add a modele of card into the database
fiche_inc.php  *           
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection
fiche_inc.php  *      - array
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * table : insert into fiche_def
fiche_inc.php  *         insert into attr_def
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function UpdateModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Modify the model of card
fiche_inc.php  *           change some attribute (fd_label) and permit
fiche_inc.php  *           to add line
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_fiche fichedef(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetDataModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Return the info of an fiche identified by
fiche_inc.php  *           p_fiche
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection
fiche_inc.php  *      - fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- array with all the data
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function Remove
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : enleve une fiche dans attr_value, jnt_fic_att_value  et fiche
fiche_inc.php  *           a la condition que ce poste n'aie jamais
fiche_inc.php  *           t utilis
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn
fiche_inc.php  *      - p_fid fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *      - none
fiche_inc.php  */
fiche_inc.php /* function getFicheName
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retourne le nom de la fiche
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_id fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - string avec nom fiche
fiche_inc.php  */
fiche_inc.php /* function getFicheDefName
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retourne le nom de la cat. de  fiches
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_id fiche id fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - string fiche_def.fd_label
fiche_inc.php  */
fiche_inc.php /* function GetFicheJrn
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Get all the fiche related to a "journal"
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connextion
fiche_inc.php  *      - j_jrn journal_id
fiche_inc.php  *      - $p_type : deb or cred
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: array containing the fiche(f_id),fiche(f_label)
fiche_inc.php  */
fiche_inc.php /* function Get_fiche_def_ref
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : 
fiche_inc.php  *        return an array containing all the
fiche_inc.php  *        data contained in the table fiche_def_ref
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  connection to the database
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *       array if ok null otherwize
fiche_inc.php  */
fiche_inc.php /* function Get_attr_min
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the mandatory field of the card model
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      array of ad_id  (attr_min.ad_id) and  labels (attr_def.ad_text)
fiche_inc.php  */
fiche_inc.php /* function Get_attr_def
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the  fields of the card model
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      array of ad_id  (attr_def.ad_id) and  labels (attr_def.ad_text)
fiche_inc.php  */
fiche_inc.php /* function GetCreateAccount
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the  fields of the card model
fiche_inc.php  *        which indicate if each cards needs its own account
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      not null if yes, each cards has its own account
fiche_inc.php  */
fiche_inc.php /* function GetFicheDefRef
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the fiche_def.frd_id thanks the f_id 
fiche_inc.php  *           of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn connection
fiche_inc.php  *      - $p_f_id  fiche.f_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - the fiche_def.frd_id or null if nothing has been found
fiche_inc.php  */
fiche_inc.php /* function GetFicheRef
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the fiche_def.fd_id thanks the f_id 
fiche_inc.php  *           of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn connection
fiche_inc.php  *      - $p_f_id  fiche.f_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - the fiche_def.fd_id or null if nothing has been found
fiche_inc.php  */
fiche_inc.php /* function  GetClass
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Retrieve the account of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection 
fiche_inc.php  *      - card id (fiche.f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: 
fiche_inc.php  *      string if a class if found or null otherwise
fiche_inc.php  */
fiche_inc.php /* function InsertModeleLine
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Insert a new row into jnt_fic_attr
fiche_inc.php  *        for adding a new attribute to the card model
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn   connection
fiche_inc.php  *      - the fiche_def.fd_id, id of the cat of the model
fiche_inc.php  *      - the ad_id is the attr_def.ad_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: none
fiche_inc.php  */
fiche_inc.php /* function SaveModeleName
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Update the model's name
fiche_inc.php  *
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn   connection
fiche_inc.php  *      - the fiche_def.fd_id, id of the cat of the model
fiche_inc.php  *      - the label
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: none
fiche_inc.php  */
fiche_inc.php /* function DisplayDetailModele
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Show the data contained in an array of
fiche_inc.php  *           a model of card (fiche_def)
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *      - p_cn database connection
fiche_inc.php  *	- array containing 
fiche_inc.php  *                 label,class_base,fd_id,ad_textX,ad_idX
fiche_inc.php  *      - number of line
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *      none
fiche_inc.php  */
fiche_inc.php /* function GetParent
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Get the parent in tmp_pcmn
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- cn database connextion
fiche_inc.php  *      - the base we want insert
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return: the parent
fiche_inc.php  *
fiche_inc.php  */
************************* File = form_inc.php ****************
form_inc.php /* function EncodeForm
form_inc.php  * Purpose : 
form_inc.php  *          Encoding Form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- array of previous changes
form_inc.php  *      - sessid for the search window
form_inc.php  *      - p_line number of line
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function ViewForm
form_inc.php  * Purpose : Show the details of a form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *      - sessid for the search window
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return: 
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetDataForm
form_inc.php  * Purpose :
form_inc.php  *         Get data from a form 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *	- 
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- array
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetNumberLine
form_inc.php  * Purpose : Get the number of line of a form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *	- 
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- integer
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetFormName
form_inc.php  * Purpose : Get the name of the form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id formdef.fr_id
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- string name
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function UpdateForm
form_inc.php  * Purpose :
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	-  $p_cn connexion
form_inc.php  *      -  $array
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function AddForm
form_inc.php  * Purpose :
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	-  $p_cn connexion
form_inc.php  *      -  $array
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
************************* File = form_input.php ****************
form_input.php /* function InputType
form_input.php  * Purpose : Create the tag <INPUT TYPE=... Name=...>
form_input.php  *        
form_input.php  * parm : 
form_input.php  *	- Label
form_input.php  *      - The type
form_input.php  *      - Name of the variable
form_input.php  *      - Default Value
form_input.php  *      - View_only
form_input.php  *      - $p_list for the select, give the possible values item[0] is the val and item[1] 
form_input.php  *        is the label
form_input.php  *      - $p_fiche_type is the type of the fiche (fiche_def_ref.frd.id)
form_input.php  * gen :
form_input.php  *	- None
form_input.php  * return: string
form_input.php  */
form_input.php /* function FormVente
form_input.php  * Purpose : Display the form for a sell
form_input.php  *           Used to show detail, encode a new invoice 
form_input.php  *           or update one
form_input.php  *        
form_input.php  * parm : 
form_input.php  *	- p_array which can be empty
form_input.php  *      - the "journal"
form_input.php  *      - $p_user = $g_user
form_input.php  *      - view_only if we cannot change it (no right or centralized op)
form_input.php  * gen :
form_input.php  *	-
form_input.php  * return: string with the form
form_input.php  */
************************* File = impress_inc.php ****************
impress_inc.php /* function ViewImp
impress_inc.php  * Purpose : Create the form where the period
impress_inc.php  *           is asked
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- array (type,action,central,filter...)
impress_inc.php  *      - connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- none
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function Imp
impress_inc.php  * Purpose : Show the html printing result 
impress_inc.php  *           
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	-  array
impress_inc.php  *      -  db connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- ImpHtml
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function ImpHtml
impress_inc.php  * Purpose : Show the html result
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- array (type,periode,
impress_inc.php  *      - connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return: 
impress_inc.php  *	- error if something goes wrong or
impress_inc.php  *        the page result
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataPoste
impress_inc.php  * Purpose : Get dat for poste 
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *      - connection
impress_inc.php  *	- condition
impress_inc.php  *      -. position
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- none
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataJrn
impress_inc.php  * Purpose : Get data from the jrn table
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- connection
impress_inc.php  *      - array periode
impress_inc.php  *      - filter (default = YES)
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- error code if something code wrong
impress_inc.php  *       otherwise the result
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function CreatePeriodeCond
impress_inc.php  * Purpose : Create the sql query for the periode
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- p_periode
impress_inc.php  *      - p_field (default = j_tech_per)
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- a string containing the query
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataJrnPdf
impress_inc.php  * Purpose : Get The data for the pdf printing
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- connection
impress_inc.php  *      - array
impress_inc.php  *      - p_limit starting line
impress_inc.php  *      - p_offset number of lines
impress_inc.php  *
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- Array with the asked data
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function 
impress_inc.php  * Purpose : 
impress_inc.php  *        
impress_inc.php  * parm : 
impress_inc.php  *	-
impress_inc.php  * gen :
impress_inc.php  *	-
impress_inc.php  * return:
impress_inc.php  */
impress_inc.php /* function GetRappel
impress_inc.php  * Purpose : Get the amount on each page
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- $p_cn
impress_inc.php  *      - $p_jrnx_id jrnx.j_id
impress_inc.php  *      - $p_jrn_id jrn.jr_id
impress_inc.php  *      - $which LAST or FIRST
impress_inc.php  *      - $p_type valeur JRN GL-CENTRAL GL-NOCENTRAL
impress_inc.php  * gen :
impress_inc.php  *	-
impress_inc.php  * return:
impress_inc.php  *	- array sum (deb) sum(cred)
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function ParseFormula
impress_inc.php  * Purpose : Parse the formula contained in the fo_formula 
impress_inc.php  *           field and return a array containing all the columns
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- $p_cn connexion
impress_inc.php  *      - $p_label
impress_inc.php  *      - $p_formula
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- array
impress_inc.php  *
impress_inc.php  */ 
************************* File = jrn.php ****************
jrn.php /* function RecordJrn
jrn.php  * Purpose : Record an entry in the selected journal
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier dossier id
jrn.php  *      - p_user user id
jrn.php  *      - p_jrn selected journal
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function UpdateJrn
jrn.php  * Purpose : Display the form to UPDATE account operation
jrn.php  *          
jrn.php  * parm : 
jrn.php  *	- p_dossier
jrn.php  *      - p_jrn
jrn.php  *      - p_MaxDeb number of debit line
jrn.php  *      - p_MaxCred "     "  credit "
jrn.php  *"     - p_array array containing the others datas
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewRec
jrn.php  * Purpose : debug function to be dropped
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function CorrectRecord
jrn.php  * Purpose : Call the RecordJrn. In fact does nothing
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- the same as RecordJrn
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewRecord
jrn.php  * Purpose : View the added operation
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier
jrn.php  *      - p_jrn
jrn.php  *      - p_id
jrn.php  *      - p_MaxDeb
jrn.php  *      - p_MaxCred
jrn.php  *      - p_array
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function GetJrnProp
jrn.php  * Purpose : Get the properties of a journal
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier the folder id
jrn.php  *      - p_jrn the jrn id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- an array containing properties
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewJrn
jrn.php  * Purpose : Vue des critures comptables
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier,
jrn.php  *      - p_user,
jrn.php  *      - p_jrn
jrn.php  *      - array
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function GetData
jrn.php  * Purpose : Get data from jrnx where p_grpt=jrnx(j_grpt)
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- connection
jrn.php  *      - p_grpt
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- return array
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-  -1 si aucune valeur de trouve
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-  null si aucune valeur de trouve
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-  -1 si aucune valeur de trouve
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function VerifData
jrn.php  * Purpose : Verify the data before inserting or
jrn.php  *           updating
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn connection
jrn.php  *      - p_array array with all the values
jrn.php  *      - p_user
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- errorcode or ok
jrn.php  *
jrn.php  */ 
jrn.php /* function GetJrnName
jrn.php  * Purpose : Return the name of the jrn
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn connexion resource
jrn.php  *      - jrn id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- string or null if not found
jrn.php  *
jrn.php  */ 
jrn.php /* function NextJrn
jrn.php  * Purpose :
jrn.php  *         Get the number of the next jrn
jrn.php  *         from the jrn_def.jrn_code
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- $p_cn connection
jrn.php  *      - $p_type jrn type
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- string containing the next code
jrn.php  *
jrn.php  */ 
jrn.php /* function 	SetInternalCode
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- $p_cn connection
jrn.php  *      - $p_id id in jr_id
jrn.php  *      - $p_jrn jrn id jrn_def_id
jrn.php  *      - $p_dossier dossier id
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
************************* File = poste.php ****************
poste.php /* function GetPosteLibelle
poste.php  * Purpose : Return the label of a poste
poste.php  * 
poste.php  * parm : 
poste.php  *	- p_dossier
poste.php  *      - p_id tmp_pcmn (pcm_val)
poste.php  *      - is_cn conneciton
poste.php  * gen :
poste.php  *	- none
poste.php  * return:
poste.php  *	- string 
poste.php  *
poste.php  */ 
poste.php /* function GetNumberLine
poste.php  * Purpose : Max of ligne definie dans le journal
poste.php  * 
poste.php  * parm : 
poste.php  *	- p_dossier
poste.php  *      - p_jrn
poste.php  * gen :
poste.php  *	- none
poste.php  * return:
poste.php  *	- 
poste.php  *
poste.php  */ 
poste.php /* function PosteForm
poste.php  * Purpose : Cree un form pour prendre les postes
poste.php  * 
poste.php  * parm : 
poste.php  *	-  connection
poste.php  * gen :
poste.php  *	- noen
poste.php  * return:
poste.php  *	- morceau de code d'html qui contient un multiselect
poste.php  *        pour les postes
poste.php  *
poste.php  */ 
************************* File = postgres.php ****************
postgres.php /* function DbConnect
postgres.php  * purpose : connect to the database
postgres.php  * parameter : p_db : db_name
postgres.php  * return the connection
postgres.php  * todo : replace hardcoded by variable placed in
postgres.php  *        constant.php
postgres.php  */
postgres.php /* function ExecSql
postgres.php  * purpose : send a sql string to the database
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 SyncRight
postgres.php  * Purpose : Synchronize les droits par dfaut
postgres.php  *           avec  les journaux existants
postgres.php  * parm : 
postgres.php  *	- 
postgres.php  * gen :
postgres.php  *	-
postgres.php  * return:
postgres.php  *	-
postgres.php  *
postgres.php  */ 
postgres.php /* function GetUserProperty
postgres.php  * Purpose : Get the properties of an user
postgres.php  *           it means theme, profile, admin...
postgres.php  *        
postgres.php  * parm : 
postgres.php  *	- $p_user    user login
postgres.php  *      - $p_cn      connection resource
postgres.php  *      -
postgres.php  * gen :
postgres.php  *	-
postgres.php  * return: an array
postgres.php  *         containing use_admin
postgres.php  *                    use_usertype
postgres.php  *                    use_theme
postgres.php  *                    use_name
postgres.php  *                    use_login
postgres.php  */
postgres.php /* function GetModeleId
postgres.php  * Purpose :  Give the mod_id from modeledef
postgres.php  *        
postgres.php  * parm : 
postgres.php  *	- p_cn database connection (repository)
postgres.php  *      - p_modname template name
postgres.php  * gen :
postgres.php  *	- none
postgres.php  * return:
postgres.php  *        template id or 0 if not found
postgres.php  */
************************* File = preference.php ****************
preference.php /* function FormPeriodeMult
preference.php  * Purpose :
preference.php  *         Generate the form for the periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- string containing html code for the
preference.php  *        form
preference.php  *
preference.php  */ 
preference.php /* function FormPeriode
preference.php  * Purpose :
preference.php  *         Generate the form for the periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion
preference.php  *      - $p_default default periode
preference.php  *      - $p_type the type of the periode
preference.php  *      - $p_suff the suffix of the name 
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- string containing html code for the
preference.php  *        form
preference.php  *
preference.php  */ 
preference.php /* function SetUserPeriode
preference.php  * Purpose : Set the selected periode in the user's preferences
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion 
preference.php  *      - $p_periode 
preference.php  *      - $p_user
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- none
preference.php  *
preference.php  */ 
preference.php /* function GetUserPeriode
preference.php  * Purpose : Get the default periode from the user's preferences
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion 
preference.php  *      - $p_user
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- the default periode
preference.php  *
preference.php  */ 
preference.php /* function SetUserPreferences
preference.php  * Purpose : Get the default user's preferences
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion 
preference.php  *      - $p_user
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- none
preference.php  *
preference.php  */ 
preference.php /* function GetPeriode
preference.php  * Purpose :Give the start & end date of a periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- connection
preference.php  *      - p_periode
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- array containing the start date & the end date
preference.php  *
preference.php  */ 
preference.php /* function
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	- array containing the start date & the end date
preference.php  *
preference.php  */ 
preference.php /* function GetExercice
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connection
preference.php  *      - $p_periode periode
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	- Exercice of the periode
preference.php  *
preference.php  */ 
preference.php /* function ShowDevise
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	-
preference.php  *
preference.php  */ 
preference.php /* function ShowPeriode
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	-
preference.php  *
preference.php  */ 
************************* File = top_menu_compta.php ****************
top_menu_compta.php /* function ShowMenu
top_menu_compta.php  * Purpose : Show The login menu
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_admin 1 if admin
top_menu_compta.php  *      - $p_item item to add 
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- nothing
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuCompta
top_menu_compta.php  * Purpose : Montre le menu du haut
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- dossier
top_menu_compta.php  *	- $p_user	array ($g_UserProperty)
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function
top_menu_compta.php  * Purpose :
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- 
top_menu_compta.php  * gen :
top_menu_compta.php  *	-
top_menu_compta.php  * return:
top_menu_compta.php  *	-
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuComptaRight
top_menu_compta.php  * Purpose : Display menu on the Right
top_menu_compta.php  *           (preference, logout and admin)
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_dossier the current dossier
top_menu_compta.php  *      - $p_auser	array $g_UserProperty
top_menu_compta.php  *      - $p_more code
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuAdminGlobalRight($p_dossier=0)
top_menu_compta.php  * Purpose :
top_menu_compta.php  *        Same as previous : show the right menu
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- p_dossier
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuPcmn($p_start=1)
top_menu_compta.php  * Purpose : Show the menu from the pcmn page
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_start class start
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function  ShowMenuJrn($p_dossier)
top_menu_compta.php  * Purpose : Show the menu in the jrn page
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_dossier 
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuJrnUser($p_dossier,$p_user)
top_menu_compta.php  * Purpose : Display and Show the Menu from the jrn encode
top_menu_compta.php  *           page following the use_usertype (compta,user,...)
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_dossier
top_menu_compta.php  *      - $p_auser
top_menu_compta.php  *      - $p_type (ACH, BQE, VEN)
top_menu_compta.php  *      - $p_jrn  what journal
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuRecherche
top_menu_compta.php  * Purpose :
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_dossier,
top_menu_compta.php  *      - $p_jrn jrn id
top_menu_compta.php  *      - $p_array=null previous search
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function
top_menu_compta.php  * Purpose :
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- 
top_menu_compta.php  * gen :
top_menu_compta.php  *	-
top_menu_compta.php  * return:
top_menu_compta.php  *	-
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function  ShowMenuJrnUserImp(
top_menu_compta.php  *
top_menu_compta.php  * 
top_menu_compta.php  * Purpose : Show the menu of jrn to print
top_menu_compta.php  * 
top_menu_compta.php  * parm : 
top_menu_compta.php  *	- $p_cn, connection
top_menu_compta.php  *        $p_user, user
top_menu_compta.php  *         $p_dossier dossier
top_menu_compta.php  * gen :
top_menu_compta.php  *	- none
top_menu_compta.php  * return:
top_menu_compta.php  *	- none
top_menu_compta.php  *
top_menu_compta.php  */ 
top_menu_compta.php /* function ShowMenuAdminGlobal */
************************* File = user_action_ach.php ****************
************************* File = user_action_fin.php ****************
************************* File = user_action_ods.php ****************
************************* File = user_action_ven.php ****************
************************* File = user_menu.php ****************
user_menu.php /* function u_ShowDossier
user_menu.php  * Purpose :  Show all the available folder 
user_menu.php  *            for the users
user_menu.php  * parm : 
user_menu.php  *	- $p_user user login
user_menu.php  *      - $p_admin 1 if admin
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- nothing
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowDossier
user_menu.php  * Purpose :  Get all the available folders
user_menu.php  *            for the users
user_menu.php  * parm : 
user_menu.php  *	- $p_user user login
user_menu.php  *      - $p_admin 1 if admin
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- array containing ac_dossier.dos_id
user_menu.php  *                         ac_dossier.dos_name
user_menu.php  *                         ac_dossier.dos_description
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenu
user_menu.php  * Purpose : Show The login menu
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_admin 1 if admin
user_menu.php  *      - $p_item item to add 
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- nothing
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenuCompta 
user_menu.php  * purpose : show the top menu for 
user_menu.php  *           the user profile
user_menu.php  * parm : p_dossier
user_menu.php  *
user_menu.php  * return: none
user_menu.php  *
user_menu.php  * gen : none
user_menu.php  */
user_menu.php /* function ShowMenuComptaRight
user_menu.php  * Purpose : Display menu on the Right
user_menu.php  *           (preference, logout and admin)
user_menu.php  * parm : 
user_menu.php  *	- $p_dossier the current dossier
user_menu.php  *      - $p_admin   $g_UserProperty['use_admin'] 1 if admin
user_menu.php  *      - $p_more code
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- string containing the html menu
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenuJrnUser($p_dossier,$p_user)
user_menu.php  * Purpose : Show the Menu from the jrn encode
user_menu.php  *           page
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_dossier
user_menu.php  *      - $p_user
user_menu.php  *      - $p_type type of journal (VEN,ACH,BQE,ODS)
user_menu.php  *      - $p_jrn journal
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenuJrn
user_menu.php  * Purpose : Show the menu of the jrn depending of its type
user_menu.php  *        
user_menu.php  * parm : 
user_menu.php  *      - p_cn database connection
user_menu.php  *	- p_dossier
user_menu.php  *      - p_UserProperty
user_menu.php  *      - p_jrn_type
user_menu.php  *      - p_jrn
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *     - string containing the menu
user_menu.php  */
