]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/MySugar/tpls/MySugar.tpl
Release 6.1.4
[Github/sugarcrm.git] / include / MySugar / tpls / MySugar.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM 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 </style>
58 {/literal}
59
60 <!-- begin includes for overlib -->
61 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}"></script>
62 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>
63 <!-- end includes for overlib -->
64
65 <script type="text/javascript">
66 var activePage = {$activePage};
67 var theme = '{$theme}';
68 current_user_id = '{$current_user}';
69 jsChartsArray = new Array();
70 var moduleName = '{$module}';
71 document.body.setAttribute("class", "yui-skin-sam");
72 </script>
73
74 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
75 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/dashlets.js'}"></script>
76 <script type="text/javascript" src='{sugar_getjspath file='include/JSON.js'}'></script>
77 <script type='text/javascript' src='{sugar_getjspath file='include/MySugar/javascript/MySugar.js'}'></script>
78 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/swfobject.js'}"></script>
79 <link rel='stylesheet' href='{sugar_getjspath file='include/ytree/TreeView/css/folders/tree.css'}'>
80
81 <div class="clear"></div>
82 <div id="pageContainer" class="yui-skin-sam">
83 <div id="pageNum_{$activePage}_div">
84 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
85         <tr>
86                 <td>
87                 
88                 </td>
89         
90                 <td rowspan="3">
91                                 <img src='{sugar_getimagepath file='blank.gif'}' width='40' height='1' border='0'>
92                 </td>
93                 <td align='right'>
94                         {if !$lock_homepage}<input id="add_dashlets" class="button" type="button" value="{$lblAddDashlets}" onclick="return SUGAR.mySugar.showDashletsDialog();"/>{/if}
95                 </td>
96         </tr>
97         <tr>
98                 {counter assign=hiddenCounter start=0 print=false}
99                 {foreach from=$columns key=colNum item=data}
100                 <td valign='top' width='{$data.width}'>
101                         <ul class='noBullet' id='col_{$activePage}_{$colNum}'>
102                                 <li id='page_{$activePage}_hidden{$hiddenCounter}b' style='height: 5px; margin-top: 12px\9;' class='noBullet'>&nbsp;&nbsp;&nbsp;</li>
103                         {foreach from=$data.dashlets key=id item=dashlet}               
104                                 <li class='noBullet' id='dashlet_{$id}'>
105                                         <div id='dashlet_entire_{$id}' class='dashletPanel'>
106                                                 {$dashlet.script}
107                         {$dashlet.displayHeader}
108                                                 {$dashlet.display}
109                         {$dashlet.displayFooter}
110                   </div> 
111                                 </li>
112                                 {/foreach}
113                                 <li id='page_{$activePage}_hidden{$hiddenCounter}' style='height: 5px' class='noBullet'>&nbsp;&nbsp;&nbsp;</li>
114                         </ul>
115                 </td>
116                 {counter}
117                 {/foreach}
118         </tr>
119 </table>
120         </div>
121         
122         {foreach from=$divPages key=divPageIndex item=divPageNum}
123         <div id="pageNum_{$divPageNum}_div" style="display:none;">
124         </div>
125         {/foreach}
126
127         
128         
129         <div id="dashletsDialog" style="display:none;">
130                 <div class="hd" id="dashletsDialogHeader"><a href="#" onClick="javascript:SUGAR.mySugar.closeDashletsDialog();">
131                         <div class="container-close">&nbsp;</div></a>{$lblAdd}
132                 </div>  
133                 <div class="bd" id="dashletsList">
134                         <form></form>
135                 </div>
136                 
137         </div>
138                                 
139         
140 </div>
141
142 {literal}
143 <script type="text/javascript">
144 SUGAR.mySugar.maxCount =        {/literal}{$maxCount}{literal};
145 SUGAR.mySugar.homepage_dd = new Array();
146 SUGAR.mySugar.init = function () {
147         j = 0;
148         
149         {/literal}
150         dashletIds = {$dashletIds};
151         
152         {if !$lock_homepage}
153         {literal}
154         for(i in dashletIds) {
155                 SUGAR.mySugar.homepage_dd[j] = new ygDDList('dashlet_' + dashletIds[i]);
156                 SUGAR.mySugar.homepage_dd[j].setHandleElId('dashlet_header_' + dashletIds[i]);
157                 SUGAR.mySugar.homepage_dd[j].onMouseDown = SUGAR.mySugar.onDrag;  
158                 SUGAR.mySugar.homepage_dd[j].afterEndDrag = SUGAR.mySugar.onDrop;
159                 j++;
160         }
161         for(var wp = 0; wp <= {/literal}{$hiddenCounter}{literal}; wp++) {
162             SUGAR.mySugar.homepage_dd[j++] = new ygDDListBoundary('page_'+activePage+'_hidden' + wp);
163         }
164
165         YAHOO.util.DDM.mode = 1;
166         {/literal}
167         {/if}
168         {literal}
169         SUGAR.mySugar.renderDashletsDialog();
170
171         SUGAR.mySugar.loadSugarCharts();
172 }
173
174 </script>
175 {/literal}
176
177 <script type="text/javascript">
178         YAHOO.util.Event.addListener(window, 'load', SUGAR.mySugar.init); 
179 </script>