Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

user_menu.php File Reference

Nearly all the menu are here, some of them returns a HTML string, others echo directly the result. More...

Go to the source code of this file.

Functions

 u_ShowDossier ($p_user, $p_admin)
 Show all the available folder for the users at the login page.
 GetAvailableFolder ($p_user, $p_admin)
 Get all the available folders for the users, checked with the security.
 ShowMenuCompta ($p_dossier, $p_high="")
 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="")
 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 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="")
 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)
 Show the menu for the card management.
 MenuAdmin ()
 ShowMenuDocument ()
 : Display Document's menu
 ShowMenuParam ($p_action="")
 Show the parameter menu.
 MenuJrn ($p_dossier)
 Show the menu in the jrn page.
 ShowMenuPcmn ($p_start=1)
 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 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.

Definition in file user_menu.php.


Function Documentation

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.

get_quick_key

Parameters:
$title 
&$access_key_list 
Returns:
string containing the menu

Definition at line 341 of file user_menu.php.

References echo_debug().

Referenced by ShowMenuJrn().

GetAvailableFolder p_user,
p_admin
 

Get all the available folders for the users, checked with the security.

Parameters:
$p_user user login
$p_admin 1 if admin
Returns:
array containing
  • ac_dossier.dos_id
  • ac_dossier.dos_name
  • ac_dossier.dos_description

Definition at line 90 of file user_menu.php.

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

Referenced by u_ShowDossier().

GetFirstJrnIdForJrnType p_dossier,
p_type
 

Open the first legder automaticaly.

Parameters:
$p_dossier ($_SESSION['g_dossier'])
$p_type type of the ledger (VEN,ACH,FIN,ODS)
Returns:
the first jrn_def_id

Definition at line 186 of file user_menu.php.

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

MenuAdmin  ) 
 

MenuAdmin

Definition at line 556 of file user_menu.php.

References ShowItem().

MenuJrn p_dossier  ) 
 

Show the menu in the jrn page.

Parameters:
$p_dossier 
Returns:
nothing

Definition at line 629 of file user_menu.php.

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

ShowJrn p_menu = ""  ) 
 

Return a string containing the menu main menu when you click on Journaux.

Parameters:
$p_menu the current menu (selected)
Returns:
HTML Code

Definition at line 502 of file user_menu.php.

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

ShowMenuAdvanced default = ""  ) 
 

build the menu of user_advanced.php

Parameters:
$default 
Returns:
the menu

Definition at line 476 of file user_menu.php.

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

ShowMenuCompta p_dossier,
p_high = ""
 

show the top menu for the user profile and highight the selected one

Parameters:
p_dossier $_SESSION['g_dossier']
p_high what to hightlight, by default it is autodetected but sometimes it must be given. Default value=""
Todo:
clean param p_dossier
Returns:
none

Definition at line 132 of file user_menu.php.

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

ShowMenuComptaForm p_dossier  ) 
 

Show the left menu for the report (add a report, view it).

Parameters:
$p_dossier dossier id
Returns:
nothing

Definition at line 682 of file user_menu.php.

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

ShowMenuDocument  ) 
 

: Display Document's menu

Parameters:
none 
Returns:
string

Definition at line 576 of file user_menu.php.

References ShowItem().

ShowMenuFiche p_dossier  ) 
 

Show the menu for the card management.

Parameters:
$p_dossier dossier 1
Returns:
nothing
Todo:
Only for developper A test must be added

Definition at line 526 of file user_menu.php.

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

ShowMenuImport  ) 
 

Show the menu for importing, verify and transfert Bank CSV.

Returns:
nothing

Definition at line 705 of file user_menu.php.

ShowMenuJrn p_cn,
p_jrn_type,
p_jrn
 

Show the menu of the jrn depending of its type, check with the security.

Parameters:
p_cn database connection
p_jrn_type type of the ledger
p_jrn jrn id
Returns:
string containing the menu

Definition at line 299 of file user_menu.php.

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

ShowMenuJrnUser p_dossier,
p_type,
p_jrn,
p_extra = ""
 

Show the Menu from the jrn encode page.

ShowMenuJrnUser($p_dossier,$p_type,$p_jrn)

Parameters:
$p_dossier number
$p_type type of journal (VEN,ACH,BQE,ODS)
$p_jrn journal
$p_extra html code to add at the return (before the </table>)
Returns:
string with table in HTML
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 212 of file user_menu.php.

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

ShowMenuParam p_action = ""  ) 
 

Show the parameter menu.

Parameters:
$p_action the last action choosed
Returns:
HTML Code

Definition at line 596 of file user_menu.php.

References ShowItem(), and width.

ShowMenuPcmn p_start = 1  ) 
 

Show the menu from the pcmn page.

Parameters:
$p_start class start default=1
Returns:
nothing

Definition at line 659 of file user_menu.php.

u_ShowDossier p_user,
p_admin
 

Show all the available folder for the users at the login page.

Parameters:
$p_user user
$p_admin 1 if admin
Returns:
table in HTML

Definition at line 37 of file user_menu.php.

References $desc, $i, $p_array, $result, $tr, and GetAvailableFolder().

u_ShowMenuRecherche p_cn,
p_jrn,
p_sessid,
p_array = null
 

Returns the form for the search (module accountancy).

Parameters:
: 
$p_cn database connection
$p_jrn jrn id
$p_array=null previous search
Returns:
HTML Code

Definition at line 371 of file user_menu.php.

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


Generated on Wed Jun 28 02:07:24 2006 for phpcompta by  doxygen 1.4.4