]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/MySugar/tpls/addDashletsDialog.tpl
Release 6.4.0
[Github/sugarcrm.git] / include / MySugar / tpls / addDashletsDialog.tpl
1 {*
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 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 <div align="right" id="dashletSearch">
39         <table>
40                 <tr>
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);"  title="{sugar_translate label='LBL_DASHLET_SEARCH' module='Home'}"/>
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" />
46                         {else}
47                         <input type="hidden" id="search_category" value="chart" />
48                         {/if}
49                         </td>
50                 </tr>
51         </table>
52         <br>
53 </div>
54
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>       
61 </ul>
62 {/if}
63
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" style="height:394px;overflow:auto;display:;">
68         <table width="95%">
69                 {counter assign=rowCounter start=0 print=false}
70                 {foreach from=$modules item=module}
71                 {if $rowCounter % 2 == 0}
72                 <tr>
73                 {/if}
74                         <td width="50%" align="left"><a id="{$module.id}_icon" href="javascript:void(0)" onclick="{$module.onclick}" style="text-decoration:none">{$module.icon}&nbsp;<span id="mbLBLL" class="mbLBLL">{$module.title}</span></a><br /></td>
75                 {if $rowCounter % 2 == 1}
76                 </tr>
77                 {/if}
78                 {counter}
79                 {/foreach}
80         </table>
81         </div>
82 </div>
83 {/if}
84 <div id="chartDashlets" style="{if $moduleName == 'Home'}height:400px;display:none;{else}height:425px;display:;{/if}">
85         {if $charts != false}
86         <h3><span id="basicChartDashletsExpCol"><a href="javascript:void(0)" onClick="javascript:SUGAR.mySugar.collapseList('basicChartDashlets');">{sugar_getimage alt=$app_strings.LBL_BASIC_SEARCH name="basic_search" ext=".gif" other_attributes='align="absmiddle" border="0" '}</span></a>&nbsp;{sugar_translate label='LBL_BASIC_CHARTS' module='Home'}</h3>
87         <div id="basicChartDashletsList">
88         <table width="100%">
89                 {foreach from=$charts item=chart}
90                 <tr>
91                         <td align="left"><a href="javascript:void(0)" onclick="{$chart.onclick}">{$chart.icon}</a>&nbsp;<a class="mbLBLL" href="#" onclick="{$chart.onclick}">{$chart.title}</a><br /></td>
92                 </tr>
93                 {/foreach}
94         </table>
95         </div>
96         {/if}
97 </div>
98
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">
103         <table width="95%">
104                 {counter assign=rowCounter start=0 print=false}
105                 {foreach from=$tools item=tool}
106                 {if $rowCounter % 2 == 0}
107                 <tr>
108                 {/if}
109                         <td align="left"><a href="javascript:void(0)" onclick="{$tool.onclick}">{$tool.icon}</a>&nbsp;<a class="mbLBLL" href="#" onclick="{$tool.onclick}">{$tool.title}</a><br /></td>
110                 {if $rowCounter % 2 == 1}
111                 </tr>
112                 {/if}
113                 {counter}
114                 {/foreach}
115         </table>
116         </div>
117 </div>
118 {/if}
119
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">
124         <table width="95%">
125             <tr>
126                 <td scope="row"></td>
127                 <td><input type="text" id="web_address" value="http://" style="width: 400px"   title="{sugar_translate label='LBL_WEBSITE_TITLE' module='Home'}"/></td>
128         </tr>
129         <tr>
130             <td colspan="2">
131                 <input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}" 
132                     onclick="return SUGAR.mySugar.addDashlet('iFrameDashlet', 'web', document.getElementById('web_address').value);" />
133             </td>
134         </tr>
135     </table>
136     <h3>{sugar_translate label='LBL_RSS_TITLE' module='Home'}</h3>
137         <table width="95%">
138         <tr>
139                 <td scope="row"></td>
140                 <td><input type="text" id="rss_address" value="http://" style="width: 400px"  title="{sugar_translate label='LBL_RSS_TITLE' module='Home'}" /></td>
141         </tr>
142         <tr>
143             <td colspan="2">
144                 <input type="button" name="create" value="{$APP.LBL_ADD_BUTTON}" 
145                     onclick="return SUGAR.mySugar.addDashlet('RSSDashlet', 'web', document.getElementById('rss_address').value);" />
146             </td>
147         </tr>
148         </table>
149         </div>
150 </div>
151 {/if}
152
153 <div id="searchResults" style="display:none;{if $moduleName == 'Home'}height:400px;{else}height:425px;{/if}">
154 </div>