diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c2f098157fb..ab9027395c9 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1,10 +1,10 @@ * Copyright (C) 2003 Xavier Dutoit - * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier - * Copyright (C) 2005-2010 Regis Houssin + * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2008 Matteli * * This program is free software; you can redistribute it and/or modify @@ -1066,25 +1066,8 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a $menutop = new MenuTop($db); $menutop->atarget=$target; $menutop->showmenu(); - - // Select entity - if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY)) - { - if ($user->admin && ! $user->entity) - { - $res=@dol_include_once('/multicompany/class/actions_multicompany.class.php'); - - if ($res) - { - //$mc = new ActionsMulticompany($db); - $entitytext = img_object('', 'globe','entity'); - $entityhtmltext = 'EntityName'; - print $html->textwithtooltip('',$entityhtmltext,2,1,$entitytext); - //$select_entity = '
'.$mc->select_entities($conf->entity).'
'; - //if ($mc->numEntity >= 1) print $select_entity; - } - } - } + + print "\n\n"; // Link to login card $loginhtmltext=''; $logintext=''; @@ -1140,8 +1123,29 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a $logouttext.=' alt="'.dol_escape_htmltag($langs->trans("Logout")).'" title=""'; $logouttext.='>'; } + + print '