]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/MySugar/tpls/MySugar.tpl
Release 6.3.0beta2
[Github/sugarcrm.git] / include / MySugar / tpls / MySugar.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38
39
40
41 *}
42 {literal}
43 <style>
44 .menu{
45         z-index:100;
46 }
47
48 .subDmenu{
49         z-index:100;
50 }
51
52
53 li.active a img.deletePageImg {
54    display: inline !important;
55    margin-bottom: 2px;
56 }
57
58 div.moduleTitle {
59 height: 10px;
60         }
61 </style>
62 {/literal}
63
64 <!-- begin includes for overlib -->
65 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}"></script>
66 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>
67 <!-- end includes for overlib -->
68
69
70 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
71 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/dashlets.js'}"></script>
72 <link rel='stylesheet' href='{sugar_getjspath file='include/ytree/TreeView/css/folders/tree.css'}'>
73 {$chartResources}
74 {$mySugarChartResources}
75
76 <script type="text/javascript">
77 var activePage = {$activePage};
78 var theme = '{$theme}';
79 current_user_id = '{$current_user}';
80 jsChartsArray = new Array();
81 var moduleName = '{$module}';
82 document.body.setAttribute("class", "yui-skin-sam");
83 {literal}
84 var mySugarLoader = new YAHOO.util.YUILoader({
85         require : ["my_sugar", "sugar_charts"],
86         onSuccess: function(){
87                 initMySugar();
88                 initmySugarCharts();
89                 SUGAR.mySugar.maxCount =        {/literal}{$maxCount}{literal};
90                 SUGAR.mySugar.homepage_dd = new Array();
91                 var j = 0;
92
93                 {/literal}
94                 var dashletIds = {$dashletIds};
95
96                 {if !$lock_homepage}
97                         for(i in dashletIds) {ldelim}
98                                 SUGAR.mySugar.homepage_dd[j] = new ygDDList('dashlet_' + dashletIds[i]);
99                                 SUGAR.mySugar.homepage_dd[j].setHandleElId('dashlet_header_' + dashletIds[i]);
100                                 SUGAR.mySugar.homepage_dd[j].onMouseDown = SUGAR.mySugar.onDrag;
101                                 SUGAR.mySugar.homepage_dd[j].afterEndDrag = SUGAR.mySugar.onDrop;
102                                 j++;
103                         {rdelim}
104                         {if $hiddenCounter > 0}
105                         for(var wp = 0; wp <= {$hiddenCounter}; wp++) {ldelim}
106                                 SUGAR.mySugar.homepage_dd[j++] = new ygDDListBoundary('page_'+activePage+'_hidden' + wp);
107                         {rdelim}
108                         {/if}
109                         YAHOO.util.DDM.mode = 1;
110                 {/if}
111                 {literal}
112                 SUGAR.mySugar.renderDashletsDialog();
113                 SUGAR.mySugar.sugarCharts.loadSugarCharts(activePage);
114                 {/literal}
115                 {literal}
116         }
117 });
118 mySugarLoader.addModule({
119         name :"my_sugar",
120         type : "js",
121         fullpath: {/literal}"{sugar_getjspath file='include/MySugar/javascript/MySugar.js'}"{literal},
122         varName: "initMySugar",
123         requires: []
124 });
125 mySugarLoader.addModule({
126         name :"sugar_charts",
127         type : "js",
128         fullpath: {/literal}"{sugar_getjspath file="include/SugarCharts/Jit/js/mySugarCharts.js"}"{literal},
129         varName: "initmySugarCharts",
130         requires: []
131 });
132 mySugarLoader.insert();
133 {/literal}
134 </script>
135
136
137
138
139 <div class="clear"></div>
140 <div id="pageContainer" class="yui-skin-sam">
141 <div id="pageNum_{$activePage}_div">
142 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
143         <tr>
144                 <td>
145                 
146                 </td>
147         
148                 <td rowspan="3">
149                                 <img src='{sugar_getimagepath file='blank.gif'}' width='40' height='1' border='0'>
150                 </td>
151                 <td align='right'>
152                         {if !$lock_homepage}<input id="add_dashlets" class="button" type="button" value="{$lblAddDashlets}" onclick="return SUGAR.mySugar.showDashletsDialog();"/>{/if}
153                 </td>
154         </tr>
155         <tr>
156                 {counter assign=hiddenCounter start=0 print=false}
157                 {foreach from=$columns key=colNum item=data}
158                 <td valign='top' width='{$data.width}'>
159                         <ul class='noBullet' id='col_{$activePage}_{$colNum}'>
160                                 <li id='page_{$activePage}_hidden{$hiddenCounter}b' style='height: 5px; margin-top: 12px\9;' class='noBullet'>&nbsp;&nbsp;&nbsp;</li>
161                                 {foreach from=$data.dashlets key=id item=dashlet}               
162                                 <li class='noBullet' id='dashlet_{$id}'>
163                                         <div id='dashlet_entire_{$id}' class='dashletPanel'>
164                                                 {$dashlet.script}
165                                         {$dashlet.displayHeader}
166                                                 {$dashlet.display}
167                                                 {$dashlet.displayFooter}
168                                   </div> 
169                                 </li>
170                                 {/foreach}
171                                 <li id='page_{$activePage}_hidden{$hiddenCounter}' style='height: 5px' class='noBullet'>&nbsp;&nbsp;&nbsp;</li>
172                         </ul>
173                 </td>
174                 {counter}
175                 {/foreach}
176         </tr>
177 </table>
178         </div>
179         
180         {foreach from=$divPages key=divPageIndex item=divPageNum}
181         <div id="pageNum_{$divPageNum}_div" style="display:none;">
182         </div>
183         {/foreach}
184
185         
186         
187         <div id="dashletsDialog" style="display:none;">
188                 <div class="hd" id="dashletsDialogHeader"><a href="javascript:void(0)" onClick="javascript:SUGAR.mySugar.closeDashletsDialog();">
189                         <div class="container-close">&nbsp;</div></a>{$lblAdd}
190                 </div>  
191                 <div class="bd" id="dashletsList">
192                         <form></form>
193                 </div>
194                 
195         </div>
196                                 
197         
198 </div>