Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
755325dc
Commit
755325dc
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Qual: Removed deprecated file
parent
0383080d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/menus/standard/eldy_frontoffice.php
+0
-79
0 additions, 79 deletions
htdocs/core/menus/standard/eldy_frontoffice.php
with
0 additions
and
79 deletions
htdocs/core/menus/standard/eldy_frontoffice.php
deleted
100644 → 0
+
0
−
79
View file @
0383080d
<?php
/* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007-2009 Regis Houssin <regis.houssin@capnetworks.com>
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* \file htdocs/core/menus/standard/eldy_menu.php
* \brief Menu eldy manager
*/
/**
* Class to manage menu Eldy
*/
class
MenuManager
{
var
$db
;
var
$type_user
;
// Put 0 for internal users, 1 for external users
var
$atarget
=
""
;
// Valeur du target a utiliser dans les liens
var
$name
=
"eldy"
;
var
$menu_array
;
var
$menu_array_after
;
/**
* Constructor
*
* @param DoliDB $db Database handler
* @param int $type_user Type of user
*/
function
__construct
(
$db
,
$type_user
)
{
$this
->
type_user
=
$type_user
;
$this
->
db
=
$db
;
}
/**
* Show menu
*
* @param string $mode 'top' or 'left'
* @return int Number of menu entries shown
*/
function
showmenu
(
$mode
)
{
global
$conf
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/menus/standard/eldy.lib.php'
;
if
(
$this
->
type_user
==
1
)
{
$conf
->
global
->
MAIN_SEARCHFORM_SOCIETE
=
0
;
$conf
->
global
->
MAIN_SEARCHFORM_CONTACT
=
0
;
}
$res
=
'ErrorBadParameterForMode'
;
if
(
$mode
==
'top'
)
$res
=
print_eldy_menu
(
$this
->
db
,
$this
->
atarget
,
$this
->
type_user
);
if
(
$mode
==
'left'
)
$res
=
print_left_eldy_menu
(
$this
->
db
,
$this
->
menu_array
,
$this
->
menu_array_after
);
return
$res
;
}
}
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment