Add TPL files
This commit is contained in:
43
themes/Sugar5/tpls/_companyLogo.tpl
Executable file
43
themes/Sugar5/tpls/_companyLogo.tpl
Executable file
@@ -0,0 +1,43 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
<div id="companyLogo">
|
||||
<a href="index.php?module=Home&action=index" border="0">
|
||||
<img src="{$COMPANY_LOGO_URL}" height="60px"
|
||||
alt="{sugar_translate label='LBL_COMPANY_LOGO'}" border="0"/>
|
||||
</a>
|
||||
</div>
|
||||
57
themes/Sugar5/tpls/_globalLinks.tpl
Executable file
57
themes/Sugar5/tpls/_globalLinks.tpl
Executable file
@@ -0,0 +1,57 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
<div id="globalLinks" style="display:none;">
|
||||
<ul>
|
||||
{foreach from=$GCLS item=GCL name=gcl key=gcl_key}
|
||||
<li>
|
||||
{if !$smarty.foreach.gcl.first}<span>|</span>{/if}
|
||||
<a id="{$gcl_key}_link" href="{$GCL.URL}"{if !empty($GCL.ONCLICK)} onclick="{$GCL.ONCLICK}"{/if}>{$GCL.LABEL}</a>
|
||||
{foreach from=$GCL.SUBMENU item=GCL_SUBMENU name=gcl_submenu key=gcl_submenu_key}
|
||||
{if $smarty.foreach.gcl_submenu.first}
|
||||
|
||||
<ul class="cssmenu">
|
||||
{/if}
|
||||
<li><a id="{$gcl_submenu_key}_link" href="{$GCL_SUBMENU.URL}"{if !empty($GCL_SUBMENU.ONCLICK)} onclick="{$GCL_SUBMENU.ONCLICK}"{/if}>{$GCL_SUBMENU.LABEL}</a></li>
|
||||
{if $smarty.foreach.gcl_submenu.last}
|
||||
</ul>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
76
themes/Sugar5/tpls/_head.tpl
Normal file
76
themes/Sugar5/tpls/_head.tpl
Normal file
@@ -0,0 +1,76 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html {$langHeader}>
|
||||
<head>
|
||||
<link rel="SHORTCUT ICON" href="{$FAVICON_URL}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>{$SYSTEM_NAME}</title>
|
||||
{$SUGAR_CSS}
|
||||
{$SUGAR_JS}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
SUGAR.themes.theme_name = '{/literal}{$THEME}{literal}';
|
||||
SUGAR.themes.theme_ie6compat = {/literal}{$THEME_IE6COMPAT}{literal};
|
||||
SUGAR.themes.hide_image = '{/literal}{sugar_getimagepath file="hide.gif"}{literal}';
|
||||
SUGAR.themes.show_image = '{/literal}{sugar_getimagepath file="show.gif"}{literal}';
|
||||
SUGAR.themes.loading_image = '{/literal}{sugar_getimagepath file="img_loading.gif"}{literal}';
|
||||
SUGAR.themes.allThemes = eval({/literal}{$allThemes}{literal});
|
||||
if ( YAHOO.env.ua )
|
||||
UA = YAHOO.env.ua;
|
||||
-->
|
||||
</script>
|
||||
<!-- add jQuery -->
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery.appendGrid-master/jquery.appendGrid-1.5.1.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-1.11.2.min.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-mask/jquery.mask.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-ui/ui/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery.appendGrid-master/jquery.appendGrid-1.5.1.min.js"></script>
|
||||
<script type="text/javascript" src="include/ECM/EcmNumberFunctions.js"></script>
|
||||
<script type="text/javascript" src="include/JSON.js"></script>
|
||||
<script src="include/SugarFields/Fields/File/jquery.form.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery.blockUI.js"></script>
|
||||
<!-- end jQuery -->
|
||||
<!-- EcmScripts -->
|
||||
<script type="text/javascript" src="include/ECM/loadEcmJsFiles.js"></script>
|
||||
{/literal}
|
||||
{*<script type="text/javascript" src='{sugar_getjspath file="cache/include/javascript/sugar_field_grp.js"}'></script>*}
|
||||
|
||||
</head>
|
||||
54
themes/Sugar5/tpls/_headerLastViewed.tpl
Executable file
54
themes/Sugar5/tpls/_headerLastViewed.tpl
Executable file
@@ -0,0 +1,54 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
<div id="lastView" class="headerList" style="display:none">
|
||||
<b style="white-space:nowrap;">{$APP.LBL_LAST_VIEWED}: </b>
|
||||
<span>
|
||||
{foreach from=$recentRecords item=item name=lastViewed}
|
||||
<span>
|
||||
|
||||
<a title="{$item.item_summary} [{$APP.LBL_ALT_HOT_KEY}{$smarty.foreach.lastViewed.iteration}]"
|
||||
accessKey="{$smarty.foreach.lastViewed.iteration}"
|
||||
href="{sugar_link module=$item.module_name action='DetailView' record=$item.item_id link_only=1}">
|
||||
{$item.image} <span>{$item.item_summary_short}</span>
|
||||
</a>
|
||||
</span>
|
||||
{foreachelse}
|
||||
{$APP.NTC_NO_ITEMS_DISPLAY}
|
||||
{/foreach}
|
||||
</span>
|
||||
</div>
|
||||
183
themes/Sugar5/tpls/_headerModuleList.cp.tpl
Executable file
183
themes/Sugar5/tpls/_headerModuleList.cp.tpl
Executable file
@@ -0,0 +1,183 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{if $USE_GROUP_TABS}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
{if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.modules)) ) && !$groupSelected ) || ($smarty.foreach.groupList.index == 0 && $defaultFirst)}
|
||||
<li class="noBorder">
|
||||
<span class="currentTabLeft"> </span><span class="currentTab">
|
||||
<a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
|
||||
</span><span class="currentTabRight"> </span>
|
||||
{assign var="groupSelected" value=true}
|
||||
{else}
|
||||
<li>
|
||||
<span class="notCurrentTabLeft"> </span><span class="notCurrentTab">
|
||||
<a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
|
||||
</span><span class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="subModuleList">
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=moduleList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
<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}>
|
||||
<ul>
|
||||
{foreach from=$modules.modules item=module key=modulekey}
|
||||
<li>
|
||||
{capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
|
||||
{sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if !empty($modules.extra)}
|
||||
<li class="subTabMore">
|
||||
<a>>></a>
|
||||
<ul class="cssmenu">
|
||||
{foreach from=$modules.extra item=submodulename key=submodule}
|
||||
<li>
|
||||
<a href="{sugar_link module=$submodule link_only=1 extraparams=$extraparams}">{$submodulename}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{elseif $USE_MZ_TABS}
|
||||
{$MMenuDivs}
|
||||
<link rel="stylesheet" type="text/css" href="themes/Sugar5/css/MyMenu.css" />
|
||||
{literal}
|
||||
<script type="text/JavaScript" src="themes/Sugar5/js/MyMenu.js"></script>
|
||||
<script language="javascript">
|
||||
function showGroup(id) {
|
||||
{/literal}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
document.getElementById('grouptab_{$group}').parentNode.setAttribute("class", "notCurrentTab");
|
||||
document.getElementById('spanright_grouptab_{$group}').setAttribute("class", "notCurrentTabLeft");
|
||||
document.getElementById('spanleft_grouptab_{$group}').setAttribute("class", "notCurrentTabRight");
|
||||
document.getElementById('{$group}').style.display="none";
|
||||
{/foreach}
|
||||
{literal}
|
||||
document.getElementById(id).style.display="inline";
|
||||
document.getElementById('grouptab_'+id).parentNode.setAttribute("class", "currentTab");
|
||||
document.getElementById('spanleft_grouptab_'+id).setAttribute("class", "currentTabLeft");
|
||||
document.getElementById('spanright_grouptab_'+id).setAttribute("class", "currentTabRight");
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
{if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab) ) && !$groupSelected ) || ($smarty.foreach.groupList.index == 0 && $defaultFirst)}
|
||||
<li class="noBorder">
|
||||
<span id="spanleft_grouptab_{$group}" class="currentTabLeft"> </span><span class="currentTab" onclick="showGroup('{$group}')">
|
||||
<a href="#" id="grouptab_{$group}">{$group}</a>
|
||||
</span><span id="spanright_grouptab_{$group}"class="currentTabRight"> </span>
|
||||
{assign var="groupSelected" value=true}
|
||||
{else}
|
||||
<li>
|
||||
<span id="spanleft_grouptab_{$group}" class="notCurrentTabLeft"> </span><span class="notCurrentTab" onclick="showGroup('{$group}')">
|
||||
<a href="#" id="grouptab_{$group}">{$group}</a>
|
||||
</span><span id="spanright_grouptab_{$group}" class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="subModuleList">
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=moduleList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
<span id="{$group}" {if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.group)) ) && !$groupSelected ) || ($smarty.foreach.moduleList.index == 0 && $defaultFirst)}style="display:inline;"{/if}>
|
||||
<ul>
|
||||
{foreach from=$modules.modules item=module key=modulekey}
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_{$smarty.foreach.moduleList.index}_{$module}','{$modulekey}_submenu','');" onmouseout="myMenuTabMouseOut('moduleTab_{$smarty.foreach.moduleList.index}_{$module}','{$modulekey}_submenu');">
|
||||
{capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
|
||||
{sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{foreach from=$moduleTopMenu item=module key=name name=moduleList}
|
||||
{if $name == $MODULE_TAB}
|
||||
<li class="noBorder">
|
||||
<span class="currentTabLeft"> </span><span class="currentTab">{sugar_link id="moduleTab_$name" module=$name}</span><span class="currentTabRight"> </span>
|
||||
{else}
|
||||
<li>
|
||||
<span class="notCurrentTabLeft"> </span><span class="notCurrentTab">{sugar_link id="moduleTab_$name" module=$name data=$module}</span><span class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if count($moduleExtraMenu) > 0}
|
||||
<li id="moduleTabExtraMenu">
|
||||
<a href="#">>></a><br />
|
||||
<ul class="cssmenu">
|
||||
{foreach from=$moduleExtraMenu item=module key=name name=moduleList}
|
||||
<li>{sugar_link id="moduleTab_$name" module=$name data=$module}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $AUTHENTICATED}
|
||||
{include file="_headerLastViewed.tpl" theme_template=true}
|
||||
{include file="_headerShortcuts.tpl" theme_template=true}
|
||||
{/if}
|
||||
297
themes/Sugar5/tpls/_headerModuleList.tpl
Normal file
297
themes/Sugar5/tpls/_headerModuleList.tpl
Normal file
@@ -0,0 +1,297 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{if $USE_GROUP_TABS}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
{if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab) ) && !$groupSelected ) || ($smarty.foreach.groupList.index == 0 && $defaultFirst)}
|
||||
<li class="noBorder">
|
||||
<span class="currentTabLeft"> </span><span class="currentTab">
|
||||
<a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
|
||||
</span><span class="currentTabRight"> </span>
|
||||
{assign var="groupSelected" value=true}
|
||||
{else}
|
||||
<li>
|
||||
<span class="notCurrentTabLeft"> </span><span class="notCurrentTab">
|
||||
<a href="#" id="grouptab_{$smarty.foreach.groupList.index}">{$group}</a>
|
||||
</span><span class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="subModuleList">
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=moduleList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
<span id="moduleLink_{$smarty.foreach.moduleList.index}" {if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.group)) ) && !$groupSelected ) || ($smarty.foreach.moduleList.index == 0 && $defaultFirst)}class="selected" {assign var="groupSelected" value=true}{/if}>
|
||||
<ul>
|
||||
{foreach from=$modules.modules item=module key=modulekey}
|
||||
<li>
|
||||
{capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
|
||||
{sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if !empty($modules.extra)}
|
||||
<li class="subTabMore">
|
||||
<a>>></a>
|
||||
<ul class="cssmenu">
|
||||
{foreach from=$modules.extra item=submodulename key=submodule}
|
||||
<li>
|
||||
<a href="{sugar_link module=$submodule link_only=1 extraparams=$extraparams}">{$submodulename}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{elseif $USE_MZ_TABS}
|
||||
{$MMenuDivs}
|
||||
|
||||
{*****************}
|
||||
{* Menu Raportów *}
|
||||
{*****************}
|
||||
<div id="sales_submenu" class="myTabListDiv" onmouseout="myMenuTabDivMouseOut();" onmouseover="myMenuTabDivMouseOver();" style="position: absolute; left: 10px; top: 110px; display: none;">
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByProduct&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Raport ilościowy</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByContractor&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Raport wg nabywców</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByDocument&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Raport wartościowy</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesVatSales&parentTab=Raporty">Rejestr sprzedaży VAT</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=AnalysisProductSale&parentTab=Raporty">Analiza czasowa</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=AnalysisEcmQuote&parentTab=Raporty">Skuteczność ofert</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=RaportAktywnosci&parentTab=Raporty">Aktywności użytkowników</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByGroup">Raport sprzedaż w grupach</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=pkwiu">Raport PKWiU</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=importMM">Import raportów zakupowych z MSH</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=RaportMM">Ranking sprzedaży marketów </a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByProductGroups">Raport sprzedaży z podziałem na grupy produktowe</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=RewizorGT">Raport - eksport dokumentów REWIZOR GT </a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSales">Raport sprzadaży z podziałem na kategorie</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByContractor2">Raport sprzadaży z podziałem na kontrahentów</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSales2">Raport sprzadaży z podziałem na kategorie - cena produkcyjna</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportSalesByContractor3">Raport sprzadaży z podziałem na kontrahentów - cena produkcyjna</a>
|
||||
</span>
|
||||
</div>
|
||||
<div id="purchase_submenu" class="myTabListDiv" onmouseout="myMenuTabDivMouseOut();" onmouseover="myMenuTabDivMouseOver();" style="position: absolute; left: 10px; top: 110px; display: none;">
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=mzVatPurchases&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Raport ilościowy</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportBuyesByVat&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Rejestr zakupu VAT</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=AnalysisPZ&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Analiza czasowa</a>
|
||||
</span>
|
||||
</div>
|
||||
<div id="warehouse_submenu" class="myTabListDiv" onmouseout="myMenuTabDivMouseOut();" onmouseover="myMenuTabDivMouseOver();" style="position: absolute; left: 10px; top: 110px; display: none;">
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportStocksDoc&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Stany magazynowe</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportStockNew&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Stany magazynowe za okres</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=Kartoteka&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Kartoteka ruchu towarów </a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ProductOperationHistory">Operacje magazynowe</a>
|
||||
</span>
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ReportStockDocMoves">Obroty wg dokumentów</a>
|
||||
</span>
|
||||
</div>
|
||||
<div id="documents_submenu" class="myTabListDiv" onmouseout="myMenuTabDivMouseOut();" onmouseover="myMenuTabDivMouseOver();" style="position: absolute; left: 10px; top: 110px; display: none;">
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=ewkaCSV&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Eksport dokumentów csv</a>
|
||||
</span>
|
||||
</div>
|
||||
<div id="kpkw_submenu" class="myTabListDiv" onmouseout="myMenuTabDivMouseOut();" onmouseover="myMenuTabDivMouseOver();" style="position: absolute; left: 10px; top: 110px; display: none;">
|
||||
<span class="menuItem" style="" onmouseout="this.style.backgroundColor = '';" onmouseover="this.style.backgroundColor = '#DDDDDD';">
|
||||
<a style="margin-left:0px" href="index.php?module=EcmReports&action=kpkwReport&return_module=EcmReports&return_action=DetailView&parentTab=Raporty">Raport kasowy</a>
|
||||
</span>
|
||||
</div>
|
||||
{*******************}
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="themes/Sugar5/css/MyMenu.css" />
|
||||
<script type="text/JavaScript" src="themes/Sugar5/js/MyMenu.js"></script>
|
||||
{literal}
|
||||
<script language="javascript">
|
||||
function showGroup(id) {
|
||||
{/literal}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
document.getElementById('grouptab_{$group}').parentNode.setAttribute("class", "notCurrentTab");
|
||||
document.getElementById('spanright_grouptab_{$group}').setAttribute("class", "notCurrentTabLeft");
|
||||
document.getElementById('spanleft_grouptab_{$group}').setAttribute("class", "notCurrentTabRight");
|
||||
document.getElementById('{$group}').style.display = "none";
|
||||
{/foreach}
|
||||
{literal}
|
||||
document.getElementById(id).style.display = "inline";
|
||||
document.getElementById('grouptab_' + id).parentNode.setAttribute("class", "currentTab");
|
||||
document.getElementById('spanleft_grouptab_' + id).setAttribute("class", "currentTabLeft");
|
||||
document.getElementById('spanright_grouptab_' + id).setAttribute("class", "currentTabRight");
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=groupList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
{if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab) ) && !$groupSelected ) || ($smarty.foreach.groupList.index == 0 && $defaultFirst)}
|
||||
<li class="noBorder">
|
||||
<span id="spanleft_grouptab_{$group}" class="currentTabLeft"> </span><span class="currentTab" onclick="showGroup('{$group}')">
|
||||
<a href="#" id="grouptab_{$group}">{$group}</a>
|
||||
</span><span id="spanright_grouptab_{$group}"class="currentTabRight"> </span>
|
||||
{assign var="groupSelected" value=true}
|
||||
{else}
|
||||
<li>
|
||||
<span id="spanleft_grouptab_{$group}" class="notCurrentTabLeft"> </span><span class="notCurrentTab" onclick="showGroup('{$group}')">
|
||||
<a href="#" id="grouptab_{$group}">{$group}</a>
|
||||
</span><span id="spanright_grouptab_{$group}" class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="subModuleList">
|
||||
{assign var="groupSelected" value=false}
|
||||
{foreach from=$groupTabs item=modules key=group name=moduleList}
|
||||
{capture name=extraparams assign=extraparams}parentTab={$group}{/capture}
|
||||
<span id="{$group}" {if ( ( $smarty.request.parentTab == $group || (!$smarty.request.parentTab && in_array($MODULE_TAB,$modules.group)) ) && !$groupSelected ) || ($smarty.foreach.moduleList.index == 0 && $defaultFirst)}style="display:inline;"{/if}>
|
||||
<ul>
|
||||
{foreach from=$modules.modules item=module key=modulekey}
|
||||
<li {if $group eq "Raporty"}style="display: none;" {/if}onmouseover="myMenuTabMouseOver('moduleTab_{$smarty.foreach.moduleList.index}_{$module}', '{$modulekey}_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_{$smarty.foreach.moduleList.index}_{$module}', '{$modulekey}_submenu');">
|
||||
{capture name=moduleTabId assign=moduleTabId}moduleTab_{$smarty.foreach.moduleList.index}_{$module}{/capture}
|
||||
{sugar_link id=$moduleTabId module=$modulekey data=$module extraparams=$extraparams}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if $group eq "Raporty"}
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_7_{$module}', 'sales_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_7_{$module}', 'sales_submenu');">
|
||||
<a id="moduleTab_7_Rozmowy VoIP" href="#">Sprzedaż</a>
|
||||
</li>
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_8_{$module}', 'purchase_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_8_{$module}', 'purchase_submenu');">
|
||||
<a id="moduleTab_8_Rozmowy VoIP" href="#">Zakup</a>
|
||||
</li>
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_9_{$module}', 'warehouse_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_9_{$module}', 'warehouse_submenu');">
|
||||
<a id="moduleTab_9_Rozmowy VoIP" href="#">Magazyn</a>
|
||||
</li>
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_10_{$module}', 'documents_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_10_{$module}', 'documents_submenu');">
|
||||
<a id="moduleTab_10_Rozmowy VoIP" href="#">Dokumenty</a>
|
||||
</li>
|
||||
<li onmouseover="myMenuTabMouseOver('moduleTab_11_{$module}', 'kpkw_submenu', '');" onmouseout="myMenuTabMouseOut('moduleTab_11_{$module}', 'documents_submenu');">
|
||||
<a id="moduleTab_11_Rozmowy VoIP" href="#">Kasa</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<div id="moduleList">
|
||||
<ul>
|
||||
<li class="noBorder"> </li>
|
||||
{foreach from=$moduleTopMenu item=module key=name name=moduleList}
|
||||
{if $name == $MODULE_TAB}
|
||||
<li class="noBorder">
|
||||
<span class="currentTabLeft"> </span><span class="currentTab">{sugar_link id="moduleTab_$name" module=$name}</span><span class="currentTabRight"> </span>
|
||||
{else}
|
||||
<li>
|
||||
<span class="notCurrentTabLeft"> </span><span class="notCurrentTab">{sugar_link id="moduleTab_$name" module=$name data=$module}</span><span class="notCurrentTabRight"> </span>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
{if count($moduleExtraMenu) > 0}
|
||||
<li id="moduleTabExtraMenu">
|
||||
<a href="#">>></a><br />
|
||||
<ul class="cssmenu">
|
||||
{foreach from=$moduleExtraMenu item=module key=name name=moduleList}
|
||||
<li>{sugar_link id="moduleTab_$name" module=$name data=$module}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $AUTHENTICATED}
|
||||
{include file="_headerShortcuts.tpl" theme_template=true}
|
||||
{/if}
|
||||
59
themes/Sugar5/tpls/_headerSearch.tpl
Executable file
59
themes/Sugar5/tpls/_headerSearch.tpl
Executable file
@@ -0,0 +1,59 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{if $AUTHENTICATED}
|
||||
<div id="search" style="display:none;">
|
||||
<form name='UnifiedSearch' action='index.php' onsubmit='return SUGAR.unifiedSearchAdvanced.checkUsaAdvanced()'>
|
||||
<input type="hidden" name="action" value="UnifiedSearch">
|
||||
<input type="hidden" name="module" value="Home">
|
||||
<input type="hidden" name="search_form" value="false">
|
||||
<input type="hidden" name="advanced" value="false">
|
||||
|
||||
<input type="text" name="query_string" id="query_string" size="20" value="{$SEARCH}">
|
||||
<input type="submit" class="button" value="{$APP.LBL_SEARCH}">
|
||||
</form><br />
|
||||
<div id="unified_search_advanced_div"> </div>
|
||||
</div>
|
||||
<div id="sitemapLink" style="display:none;">
|
||||
<span id="sitemapLinkSpan">
|
||||
{$APP.LBL_SITEMAP}
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<br>
|
||||
<span id='sm_holder'></span>
|
||||
{/if}
|
||||
54
themes/Sugar5/tpls/_headerShortcuts.tpl
Executable file
54
themes/Sugar5/tpls/_headerShortcuts.tpl
Executable file
@@ -0,0 +1,54 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{* FG - Bug 41467 - Let Home module have Shortcuts *}
|
||||
{if count($SHORTCUT_MENU) > 0}
|
||||
<div id="shortcuts" class="headerList">
|
||||
<b style="white-space:nowrap;">{$APP.LBL_LINK_ACTIONS}: </b>
|
||||
<span>
|
||||
{foreach from=$SHORTCUT_MENU item=item}
|
||||
<span style="white-space:nowrap;">
|
||||
{if $item.URL == "-"}
|
||||
<a></a><span> </span>
|
||||
{else}
|
||||
<a href="{$item.URL}">{$item.IMAGE} <span>{$item.LABEL}</span></a>
|
||||
{/if}
|
||||
</span>
|
||||
{/foreach}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
49
themes/Sugar5/tpls/_welcome.tpl
Executable file
49
themes/Sugar5/tpls/_welcome.tpl
Executable file
@@ -0,0 +1,49 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{if $AUTHENTICATED}
|
||||
<div id="welcome">
|
||||
{$APP.NTC_WELCOME}, <strong><a id="welcome_link" href='index.php?module=Users&action=EditView&record={$CURRENT_USER_ID}'>{$CURRENT_USER}</a></strong> [ <a id="logout_link" href='{$LOGOUT_LINK}' class='utilsLink'>{$LOGOUT_LABEL}</a> ]
|
||||
<br>
|
||||
{sugar_login_google module=$module id=$fields.id.value view="EditView"}
|
||||
<br><input type="hidden" name="current_user_id" id="current_user_id" value="{$CURRENT_USER_ID}">
|
||||
<div id="notification-Div"></div>
|
||||
<div id="notification-Dialog" title=" style="display:none;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
105
themes/Sugar5/tpls/footer.tpl
Executable file
105
themes/Sugar5/tpls/footer.tpl
Executable file
@@ -0,0 +1,105 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
<!--end body panes-->
|
||||
</td></tr></table>
|
||||
</div>
|
||||
{* <div class="clear"></div>*}
|
||||
</div>
|
||||
</div>
|
||||
{*<div id="bottomLinks">
|
||||
{if $AUTHENTICATED}
|
||||
{$BOTTOMLINKS}
|
||||
{/if}
|
||||
</div>*}
|
||||
<div id="footer">
|
||||
{$STATISTICS}
|
||||
<div id="copyright">
|
||||
<img style='margin-top: 2px' border='0' width='106' height='23' src='include/images/poweredby_sugarcrm.png' alt='Powered By SugarCRM'>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
{literal}
|
||||
if(SUGAR.util.isTouchScreen()) {
|
||||
setTimeout(resizeHeader,10000);
|
||||
}
|
||||
//qe_init function sets listeners to click event on elements of 'quickEdit' class
|
||||
if(typeof(DCMenu) !='undefined'){
|
||||
DCMenu.qe_refresh = false;
|
||||
DCMenu.qe_handle;
|
||||
}
|
||||
function qe_init(){
|
||||
//do not process if YUI is undefined
|
||||
if(typeof(YUI)=='undefined' || typeof(DCMenu) == 'undefined'){
|
||||
return;
|
||||
}
|
||||
//remove all existing listeners. This will prevent adding multiple listeners per element and firing multiple events per click
|
||||
if(typeof(DCMenu.qe_handle) !='undefined'){
|
||||
DCMenu.qe_handle.detach();
|
||||
}
|
||||
//set listeners on click event, and define function to call
|
||||
YUI().use('node', function(Y) {
|
||||
var qe = Y.all('.quickEdit');
|
||||
var refreshDashletID;
|
||||
var refreshListID;
|
||||
|
||||
//store event listener handle for future use, and define function to call on click event
|
||||
DCMenu.qe_handle = qe.on('click', function(e) {
|
||||
//function will flash message, and retrieve data from element to pass on to DC.miniEditView function
|
||||
ajaxStatus.flashStatus(SUGAR.language.get('app_strings', 'LBL_LOADING'),800);
|
||||
e.preventDefault();
|
||||
if(typeof(e.currentTarget.getAttribute('data-dashlet-id'))!='undefined'){
|
||||
refreshDashletID = e.currentTarget.getAttribute('data-dashlet-id');
|
||||
}
|
||||
if(typeof(e.currentTarget.getAttribute('data-list'))!='undefined'){
|
||||
refreshListID = e.currentTarget.getAttribute('data-list');
|
||||
}
|
||||
DCMenu.miniEditView(e.currentTarget.getAttribute('data-module'), e.currentTarget.getAttribute('data-record'),refreshListID,refreshDashletID);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
qe_init();
|
||||
//SUGAR_callsInProgress++;
|
||||
SUGAR._ajax_hist_loaded = true;
|
||||
if(SUGAR.ajaxUI)
|
||||
YAHOO.util.Event.onContentReady('ajaxUI-history-field', SUGAR.ajaxUI.firstLoad);
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
79
themes/Sugar5/tpls/header.tpl
Executable file
79
themes/Sugar5/tpls/header.tpl
Executable file
@@ -0,0 +1,79 @@
|
||||
{*
|
||||
/*********************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* 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 Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
*}
|
||||
{include file="_head.tpl" theme_template=true}
|
||||
<body onMouseOut="closeMenus();">
|
||||
{$SUGAR_DCJS}
|
||||
<div id="header">
|
||||
{include file="_companyLogo.tpl" theme_template=true}
|
||||
{include file="_globalLinks.tpl" theme_template=true}
|
||||
{include file="_welcome.tpl" theme_template=true}
|
||||
<div class="clear"></div>
|
||||
{include file="_headerSearch.tpl" theme_template=true}
|
||||
<div class="clear"></div>
|
||||
{if !$AUTHENTICATED}
|
||||
<br /><br />
|
||||
{/if}
|
||||
<div id="ajaxHeader">
|
||||
{include file="_headerModuleList.tpl" theme_template=true}
|
||||
</div>
|
||||
{include file="_headerLastViewed.tpl" theme_template=true}
|
||||
<div class="clear"></div>
|
||||
<div class="line"></div>
|
||||
</div>
|
||||
{literal}
|
||||
<!-- add 2012-06-05 mz, reminder
|
||||
<script language="javascript" src="modules/EcmReminders/mintajax.js"></script>
|
||||
<script language="javascript" src="modules/EcmReminde
|
||||
rs/reminder.js"></script>
|
||||
<script>show_reminder();setInterval(function(){show_reminder();},60000);</script>
|
||||
end mz
|
||||
<iframe id='ajaxUI-history-iframe' src='index.php?entryPoint=getImage&imageName=blank.png' title='empty' style='display:none'></iframe>
|
||||
<input id='ajaxUI-history-field' type='hidden'>
|
||||
<script type='text/javascript'>
|
||||
if (SUGAR.ajaxUI && !SUGAR.ajaxUI.hist_loaded)
|
||||
{
|
||||
YAHOO.util.History.register('ajaxUILoc', "", SUGAR.ajaxUI.go);
|
||||
{/literal}{if $smarty.request.module != "ModuleBuilder"}{* Module builder will init YUI history on its own *}
|
||||
YAHOO.util.History.initialize("ajaxUI-history-field", "ajaxUI-history-iframe");
|
||||
{/if}{literal}
|
||||
}
|
||||
</script>-->
|
||||
{/literal}
|
||||
<div id="main">
|
||||
<div id="content" {if !$AUTHENTICATED}class="noLeftColumn" {/if}>
|
||||
<table style="width:100%"><tr><td>
|
||||
16
themes/Sugar5/tpls/headerQuickCreate.tpl
Executable file
16
themes/Sugar5/tpls/headerQuickCreate.tpl
Executable file
@@ -0,0 +1,16 @@
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-mask/jquery.mask.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-ui/ui/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.js"></script>
|
||||
|
||||
<script type="text/javascript" src="include/jQuery/jquery.blockUI.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/sugar_grp1.js"></script>
|
||||
<link href="cache/themes/Sugar5/css/yui.css?s=bed8cd35065048ceebdc639ebe305e2c&c=1" type="text/css" rel="stylesheet">
|
||||
<script src="cache/jsLanguage/pl_pl.js" type="text/javascript"></script>
|
||||
<script src="cache/jsLanguage/EcmProducts/pl_pl.js" type="text/javascript"></script>
|
||||
<script src="include/javascript/sugar_grp1_yui.js?" type="text/javascript"></script>
|
||||
<link href="cache/themes/Sugar5/css/deprecated.css?s=bed8cd35065048ceebdc639ebe305e2c&c=1" type="text/css" rel="stylesheet">
|
||||
<link href="cache/themes/Sugar5/css/style.css?s=bed8cd35065048ceebdc639ebe305e2c&c=1" type="text/css" rel="stylesheet">
|
||||
Reference in New Issue
Block a user