2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
41 <li class="noBorder"> </li>
42 {assign var="groupSelected" value=false}
43 {foreach from=$groupTabs item=modules key=group name=groupList}
44 {capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
45 {if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.modules)) ) && !$groupSelected ) || ($smarty.foreach.groupList.index == 0 && $defaultFirst)}
47 <span class="currentTabLeft"> </span><span class="currentTab">
48 <a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
49 </span><span class="currentTabRight"> </span>
50 {assign var="groupSelected" value=true}
53 <span class="notCurrentTabLeft"> </span><span class="notCurrentTab">
54 <a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
55 </span><span class="notCurrentTabRight"> </span>
61 <div class="clear"></div>
62 <div id="subModuleList">
63 {assign var="groupSelected" value=false}
64 {foreach from=$groupTabs item=modules key=group name=moduleList}
65 {capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
66 <span id="moduleLink_{$smarty.foreach.moduleList.index}" {if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.modules)) ) && !$groupSelected ) || ($smarty.foreach.moduleList.index == 0 && $defaultFirst)}class="selected" {assign var="groupSelected" value=true}{/if}>
68 {foreach from=$modules.modules item=module key=modulekey}
70 {capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
71 {sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
74 {if !empty($modules.extra)}
75 <li class="subTabMore">
78 {foreach from=$modules.extra item=submodulename key=submodule}
80 <a href="{sugar_link module=$submodule link_only=1 extraparams=$extraparams}">{$submodulename}
94 <li class="noBorder"> </li>
95 {foreach from=$moduleTopMenu item=module key=name name=moduleList}
96 {if $name == $MODULE_TAB}
98 <span class="currentTabLeft"> </span><span class="currentTab">{sugar_link id="moduleTab_$name" module=$name}</span><span class="currentTabRight"> </span>
101 <span class="notCurrentTabLeft"> </span><span class="notCurrentTab">{sugar_link id="moduleTab_$name" module=$name data=$module}</span><span class="notCurrentTabRight"> </span>
105 {if count($moduleExtraMenu) > 0}
106 <li id="moduleTabExtraMenu">
107 <a href="#">>></a><br />
109 {foreach from=$moduleExtraMenu item=module key=name name=moduleList}
110 <li>{sugar_link id="moduleTab_$name" module=$name data=$module}
120 {include file="_headerLastViewed.tpl" theme_template=true}
121 {include file="_headerShortcuts.tpl" theme_template=true}