dolibarr
x.y.z
|
Library for file eldy menus. More...
Go to the source code of this file.
Functions | |
print_eldy_menu ($db, $atarget, $type_user, &$tabMenu, &$menu, $noout=0, $mode='') | |
Core function to output top menu eldy. More... | |
print_start_menu_array () | |
Output start menu array. More... | |
print_start_menu_entry ($idsel, $classname, $showmode) | |
Output start menu entry. More... | |
print_text_menu_entry ($text, $showmode, $url, $id, $idsel, $classname, $atarget) | |
Output menu entry. More... | |
print_end_menu_entry ($showmode) | |
Output end menu entry. More... | |
print_end_menu_array () | |
Output menu array. More... | |
print_left_eldy_menu ($db, $menu_array_before, $menu_array_after, &$tabMenu, &$menu, $noout=0, $forcemainmenu='', $forceleftmenu='', $moredata=null, $type_user=0) | |
Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home) More... | |
get_left_menu_home ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu HOME. More... | |
get_left_menu_thridparties ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu THIRDPARTIES. More... | |
get_left_menu_commercial ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu COMMERCIAL (propal, commande, supplier_proposal, supplier_order, contrat, ficheinter) More... | |
get_left_menu_billing ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left COMPTA-FINANCIAL. More... | |
get_left_menu_accountancy ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left COMPTA-FINANCIAL (accountancy) More... | |
get_left_menu_bank ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu BANK. More... | |
get_left_menu_products ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PRODUCTS-SERVICES. More... | |
get_left_menu_mrp ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PRODUCTS-SERVICES MRP - GPAO. More... | |
get_left_menu_projects ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PROJECTS. More... | |
get_left_menu_hrm ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu HRM. More... | |
get_left_menu_tools ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu TOOLS. More... | |
get_left_menu_members ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu MEMBERS. More... | |
Library for file eldy menus.
Definition in file eldy.lib.php.
get_left_menu_accountancy | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left COMPTA-FINANCIAL (accountancy)
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1597 of file eldy.lib.php.
get_left_menu_bank | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu BANK.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1920 of file eldy.lib.php.
get_left_menu_billing | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left COMPTA-FINANCIAL.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1416 of file eldy.lib.php.
get_left_menu_commercial | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu COMMERCIAL (propal, commande, supplier_proposal, supplier_order, contrat, ficheinter)
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1300 of file eldy.lib.php.
get_left_menu_home | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu HOME.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of user |
Definition at line 1076 of file eldy.lib.php.
get_left_menu_hrm | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu HRM.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2249 of file eldy.lib.php.
get_left_menu_members | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu MEMBERS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2398 of file eldy.lib.php.
get_left_menu_mrp | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu PRODUCTS-SERVICES MRP - GPAO.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2140 of file eldy.lib.php.
get_left_menu_products | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu PRODUCTS-SERVICES.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2003 of file eldy.lib.php.
get_left_menu_projects | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu PROJECTS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2174 of file eldy.lib.php.
get_left_menu_thridparties | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu THIRDPARTIES.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1195 of file eldy.lib.php.
get_left_menu_tools | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1 , |
|||
$leftmenu = 'none' , |
|||
$type_user = 0 |
|||
) |
Get left Menu TOOLS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
string | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2357 of file eldy.lib.php.
print_eldy_menu | ( | $db, | |
$atarget, | |||
$type_user, | |||
& | $tabMenu, | ||
& | $menu, | ||
$noout = 0 , |
|||
$mode = '' |
|||
) |
Core function to output top menu eldy.
DoliDB | $db | Database handler |
string | $atarget | Target (Example: '' or '_top') |
int | $type_user | 0=Menu for backoffice, 1=Menu for front office |
array | $tabMenu | If array with menu entries already loaded, we put this array here (in most cases, it's empty). For eldy menu, it contains menu entries loaded from database. |
Menu | $menu | Object Menu to return back list of menu entries |
int | $noout | 1=Disable output (Initialise &$menu only). |
string | $mode | 'top', 'topnb', 'left', 'jmobile' |
Definition at line 45 of file eldy.lib.php.
print_end_menu_array | ( | ) |
print_end_menu_entry | ( | $showmode | ) |
Output end menu entry.
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
Definition at line 678 of file eldy.lib.php.
print_left_eldy_menu | ( | $db, | |
$menu_array_before, | |||
$menu_array_after, | |||
& | $tabMenu, | ||
& | $menu, | ||
$noout = 0 , |
|||
$forcemainmenu = '' , |
|||
$forceleftmenu = '' , |
|||
$moredata = null , |
|||
$type_user = 0 |
|||
) |
Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home)
DoliDB | $db | Database handler |
array | $menu_array_before | Table of menu entries to show before entries of menu handler (menu->liste filled with menu->add) |
array | $menu_array_after | Table of menu entries to show after entries of menu handler (menu->liste filled with menu->add) |
array | $tabMenu | If array with menu entries already loaded, we put this array here (in most cases, it's empty) |
Menu | $menu | Object Menu to return back list of menu entries |
int | $noout | Disable output (Initialise &$menu only). |
string | $forcemainmenu | 'x'=Force mainmenu to mainmenu='x' |
string | $forceleftmenu | 'all'=Force leftmenu to '' (= all). If value come being '', we change it to value in session and 'none' if not defined in session. |
array | $moredata | An array with more data to output |
int | $type_user | 0=Menu for backoffice, 1=Menu for front office |
Definition at line 714 of file eldy.lib.php.
print_start_menu_array | ( | ) |
print_start_menu_entry | ( | $idsel, | |
$classname, | |||
$showmode | |||
) |
Output start menu entry.
string | $idsel | Text |
string | $classname | String to add a css class |
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
Definition at line 618 of file eldy.lib.php.
print_text_menu_entry | ( | $text, | |
$showmode, | |||
$url, | |||
$id, | |||
$idsel, | |||
$classname, | |||
$atarget | |||
) |
Output menu entry.
string | $text | Text |
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
string | $url | Url |
string | $id | Id |
string | $idsel | Id sel |
string | $classname | Class name |
string | $atarget | Target |
Definition at line 639 of file eldy.lib.php.