]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - themes/Sugar5/tpls/_headerModuleList.tpl
Release 6.5.0
[Github/sugarcrm.git] / themes / Sugar5 / tpls / _headerModuleList.tpl
1 {*
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
37 *}
38 {if $USE_GROUP_TABS}
39 <div id="moduleList">
40 <ul>
41     <li class="noBorder">&nbsp;</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)}
46     <li class="noBorder">
47         <span class="currentTabLeft">&nbsp;</span><span class="currentTab">
48             <a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
49         </span><span class="currentTabRight">&nbsp;</span>
50         {assign var="groupSelected" value=true}
51     {else}
52     <li>
53         <span class="notCurrentTabLeft">&nbsp;</span><span class="notCurrentTab">
54         <a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
55         </span><span class="notCurrentTabRight">&nbsp;</span>
56     {/if}
57     </li>
58     {/foreach}
59 </ul>
60 </div>
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}>
67         <ul>
68                 {foreach from=$modules.modules item=module key=modulekey}
69                 <li>
70                         {capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
71                         {sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
72                 </li>
73                 {/foreach}
74                 {if !empty($modules.extra)}
75                 <li class="subTabMore">
76                         <a>>></a>      
77                         <ul class="cssmenu">
78                         {foreach from=$modules.extra item=submodulename key=submodule}
79                                         <li>
80                                                 <a href="{sugar_link module=$submodule link_only=1 extraparams=$extraparams}">{$submodulename}
81                                                 </a>
82                                         </li>
83                         {/foreach}
84                         </ul> 
85                 </li>
86                 {/if}           
87         </ul>
88     </span>
89     {/foreach}    
90 </div>
91 {else}
92 <div id="moduleList">
93 <ul>
94     <li class="noBorder">&nbsp;</li>
95     {foreach from=$moduleTopMenu item=module key=name name=moduleList}
96     {if $name == $MODULE_TAB}
97     <li class="noBorder">
98         <span class="currentTabLeft">&nbsp;</span><span class="currentTab">{sugar_link id="moduleTab_$name" module=$name}</span><span class="currentTabRight">&nbsp;</span>
99     {else}
100     <li>
101         <span class="notCurrentTabLeft">&nbsp;</span><span class="notCurrentTab">{sugar_link id="moduleTab_$name" module=$name data=$module}</span><span class="notCurrentTabRight">&nbsp;</span>
102     {/if}
103     </li>
104     {/foreach}
105     {if count($moduleExtraMenu) > 0}
106     <li id="moduleTabExtraMenu">
107         <a href="#">&gt;&gt;</a><br />
108         <ul class="cssmenu">
109             {foreach from=$moduleExtraMenu item=module key=name name=moduleList}
110             <li>{sugar_link id="moduleTab_$name" module=$name data=$module}
111             {/foreach}
112         </ul>        
113     </li>
114     {/if}
115 </ul>
116 </div>
117 {/if}
118
119     {if $AUTHENTICATED}
120     {include file="_headerLastViewed.tpl" theme_template=true}
121     {include file="_headerShortcuts.tpl" theme_template=true}
122     {/if}