2 /*********************************************************************************
3 * SugarCRM is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 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 ********************************************************************************/
38 <div align="right" id="dashletSearch">
41 <td>{sugar_translate label='LBL_DASHLET_SEARCH' module='Home'}: <input id="search_string" type="text" length="15" onKeyPress="javascript:if(event.keyCode==13)SUGAR.mySugar.searchDashlets(this.value,document.getElementById('search_category').value);" />
42 <input type="button" class="button" value="{sugar_translate label='LBL_SEARCH' module='Home'}" onClick="javascript:SUGAR.mySugar.searchDashlets(document.getElementById('search_string').value,document.getElementById('search_category').value);" />
43 <input type="button" class="button" value="{sugar_translate label='LBL_CLEAR' module='Home'}" onClick="javascript:SUGAR.mySugar.clearSearch();" />
44 {if $moduleName == 'Home'}
45 <input type="hidden" id="search_category" value="module" />
47 <input type="hidden" id="search_category" value="chart" />
55 {if $moduleName == 'Home'}
56 <ul class="subpanelTablist" id="dashletCategories">
57 <li id="moduleCategory" class="active"><a href="javascript:SUGAR.mySugar.toggleDashletCategories('module');" class="current" id="moduleCategoryAnchor">{sugar_translate label='LBL_MODULES' module='Home'}</a></li>
58 <li id="chartCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('chart');" class="" id="chartCategoryAnchor">{sugar_translate label='LBL_CHARTS' module='Home'}</a></li>
59 <li id="toolsCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('tools');" class="" id="toolsCategoryAnchor">{sugar_translate label='LBL_TOOLS' module='Home'}</a></li>
60 <li id="webCategory" class=""><a href="javascript:SUGAR.mySugar.toggleDashletCategories('web');" class="" id="webCategoryAnchor">{sugar_translate label='LBL_WEB' module='Home'}</a></li>
64 {if $moduleName == 'Home'}
65 <div id="moduleDashlets" style="height:400px;display:;">
66 <h3>{sugar_translate label='LBL_MODULES' module='Home'}</h3>
67 <div id="moduleDashletsList">
69 {counter assign=rowCounter start=0 print=false}
70 {foreach from=$modules item=module}
71 {if $rowCounter % 2 == 0}
74 <td width="50%" align="left"><a href="#" onclick="{$module.onclick}">{$module.icon}</a> <a class="mbLBLL" href="#" onclick="{$module.onclick}">{$module.title}</a><br /></td>
75 {if $rowCounter % 2 == 1}
84 <div id="chartDashlets" style="{if $moduleName == 'Home'}height:400px;display:none;{else}height:425px;display:;{/if}">
86 <h3><span id="basicChartDashletsExpCol"><a href="#" onClick="javascript:SUGAR.mySugar.collapseList('basicChartDashlets');"><img border="0" src="{sugar_getimagepath file='basic_search.gif'}" align="absmiddle" /></span></a> {sugar_translate label='LBL_BASIC_CHARTS' module='Home'}</h3>
87 <div id="basicChartDashletsList">
89 {foreach from=$charts item=chart}
91 <td align="left"><a href="#" onclick="{$chart.onclick}">{$chart.icon}</a> <a class="mbLBLL" href="#" onclick="{$chart.onclick}">{$chart.title}</a><br /></td>
99 {if $moduleName == 'Home'}
100 <div id="toolsDashlets" style="height:400px;display:none;">
101 <h3>{sugar_translate label='LBL_TOOLS' module='Home'}</h3>
102 <div id="toolsDashletsList">
104 {counter assign=rowCounter start=0 print=false}
105 {foreach from=$tools item=tool}
106 {if $rowCounter % 2 == 0}
109 <td align="left"><a href="#" onclick="{$tool.onclick}">{$tool.icon}</a> <a class="mbLBLL" href="#" onclick="{$tool.onclick}">{$tool.title}</a><br /></td>
110 {if $rowCounter % 2 == 1}
120 {if $moduleName == 'Home'}
121 <div id="webDashlets" style="height:400px;display:none;">
122 <h3>{sugar_translate label='LBL_WEBSITE_TITLE' module='Home'}</h3>
123 <div id="webDashletsList">
126 <td scope="row"></td>
127 <td><input type="text" id="web_address" value="http://" style="width: 400px" /></td>
131 <input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}"
132 onclick="return SUGAR.mySugar.addDashlet('iFrameDashlet', 'web', document.getElementById('web_address').value);" />
136 <h3>{sugar_translate label='LBL_RSS_TITLE' module='Home'}</h3>
139 <td scope="row"></td>
140 <td><input type="text" id="rss_address" value="http://" style="width: 400px" /></td>
144 <input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}"
145 onclick="return SUGAR.mySugar.addDashlet('RSSDashlet', 'web', document.getElementById('rss_address').value);" />
153 <div id="searchResults" style="display:none;{if $moduleName == 'Home'}height:400px;{else}height:425px;{/if}">