commit
60a02bc241
@ -91,8 +91,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/adherents/index.php?mainmenu=members&leftmenu=',
|
'link' => '/adherents/index.php?mainmenu=members&leftmenu=',
|
||||||
'title' => "MenuMembers",
|
'title' => "MenuMembers",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled' => (! empty($conf->adherent->enabled) ) ,
|
'enabled' => (! empty($conf->adherent->enabled) ) ,
|
||||||
@ -120,8 +119,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/societe/index.php?mainmenu=companies&leftmenu=',
|
'link' => '/societe/index.php?mainmenu=companies&leftmenu=',
|
||||||
'title' => "ThirdParties",
|
'title' => "ThirdParties",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=> ( ( ! empty($conf->societe->enabled) &&
|
'enabled'=> ( ( ! empty($conf->societe->enabled) &&
|
||||||
@ -155,8 +153,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
? ( array("TMenuProducts" , " | " ,"TMenuServices") )
|
? ( array("TMenuProducts" , " | " ,"TMenuServices") )
|
||||||
: (! empty($conf->product->enabled)? "TMenuProducts" : "TMenuServices" ),
|
: (! empty($conf->product->enabled)? "TMenuProducts" : "TMenuServices" ),
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=> (( ! empty($conf->societe->enabled) &&
|
'enabled'=> (( ! empty($conf->societe->enabled) &&
|
||||||
@ -188,8 +185,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/bom/bom_list.php?mainmenu=mrp&leftmenu=',
|
'link' => '/bom/bom_list.php?mainmenu=mrp&leftmenu=',
|
||||||
'title' => $langs->trans("TMenuMRP"),
|
'title' => $langs->trans("TMenuMRP"),
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->bom->enabled) || ! empty($conf->mrp->enabled)),
|
'enabled'=>(! empty($conf->bom->enabled) || ! empty($conf->mrp->enabled)),
|
||||||
@ -219,8 +215,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
? (($conf->global->PROJECT_USE_OPPORTUNITIES == 2)?"Leads":"Projects")
|
? (($conf->global->PROJECT_USE_OPPORTUNITIES == 2)?"Leads":"Projects")
|
||||||
: "LeadsOrProjects",
|
: "LeadsOrProjects",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=> ( ! empty($conf->projet->enabled) ? 1 : 0),
|
'enabled'=> ( ! empty($conf->projet->enabled) ? 1 : 0),
|
||||||
@ -248,8 +243,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/comm/index.php?mainmenu=commercial&leftmenu=',
|
'link' => '/comm/index.php?mainmenu=commercial&leftmenu=',
|
||||||
'title' => "Commercial",
|
'title' => "Commercial",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->propal->enabled) ||
|
'enabled'=>(! empty($conf->propal->enabled) ||
|
||||||
@ -283,8 +277,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/compta/index.php?mainmenu=billing&leftmenu=',
|
'link' => '/compta/index.php?mainmenu=billing&leftmenu=',
|
||||||
'title' => "MenuFinancial",
|
'title' => "MenuFinancial",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->facture->enabled) ||
|
'enabled'=>(! empty($conf->facture->enabled) ||
|
||||||
@ -320,8 +313,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/compta/bank/list.php?mainmenu=bank&leftmenu=',
|
'link' => '/compta/bank/list.php?mainmenu=bank&leftmenu=',
|
||||||
'title' => "MenuBankCash",
|
'title' => "MenuBankCash",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->banque->enabled) || ! empty($conf->prelevement->enabled)),
|
'enabled'=>(! empty($conf->banque->enabled) || ! empty($conf->prelevement->enabled)),
|
||||||
@ -351,8 +343,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/accountancy/index.php?mainmenu=accountancy&leftmenu=',
|
'link' => '/accountancy/index.php?mainmenu=accountancy&leftmenu=',
|
||||||
'title' => "MenuAccountancy",
|
'title' => "MenuAccountancy",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->comptabilite->enabled) || ! empty($conf->accounting->enabled) || ! empty($conf->asset->enabled)),
|
'enabled'=>(! empty($conf->comptabilite->enabled) || ! empty($conf->accounting->enabled) || ! empty($conf->asset->enabled)),
|
||||||
@ -382,8 +373,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/hrm/index.php?mainmenu=hrm&leftmenu=',
|
'link' => '/hrm/index.php?mainmenu=hrm&leftmenu=',
|
||||||
'title' => "HRM",
|
'title' => "HRM",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>(! empty($conf->hrm->enabled) || ! empty($conf->holiday->enabled) || ! empty($conf->deplacement->enabled) || ! empty($conf->expensereport->enabled)),
|
'enabled'=>(! empty($conf->hrm->enabled) || ! empty($conf->holiday->enabled) || ! empty($conf->deplacement->enabled) || ! empty($conf->expensereport->enabled)),
|
||||||
@ -413,8 +403,7 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
|
|||||||
'link' => '/core/tools.php?mainmenu=tools&leftmenu=',
|
'link' => '/core/tools.php?mainmenu=tools&leftmenu=',
|
||||||
'title' => "Tools",
|
'title' => "Tools",
|
||||||
'level' => 0,
|
'level' => 0,
|
||||||
'enabled' => $showmode = isVisibleToUserType
|
'enabled' => $showmode = isVisibleToUserType(
|
||||||
(
|
|
||||||
$type_user,
|
$type_user,
|
||||||
$tmpentry = array(
|
$tmpentry = array(
|
||||||
'enabled'=>1,
|
'enabled'=>1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user