3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
53 li.active a img.deletePageImg {
54 display: inline !important;
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 -->
69 <script type="text/javascript">
70 var activePage = {$activePage};
71 var theme = '{$theme}';
72 current_user_id = '{$current_user}';
73 jsChartsArray = new Array();
74 var moduleName = '{$module}';
75 document.body.setAttribute("class", "yui-skin-sam");
78 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
79 <script type="text/javascript" src="{sugar_getjspath file='include/javascript/dashlets.js'}"></script>
80 <script type="text/javascript" src='{sugar_getjspath file='include/JSON.js'}'></script>
81 <script type='text/javascript' src='{sugar_getjspath file='include/MySugar/javascript/MySugar.js'}'></script>
82 <link rel='stylesheet' href='{sugar_getjspath file='include/ytree/TreeView/css/folders/tree.css'}'>
86 {$mySugarChartResources}
89 <div class="clear"></div>
90 <div id="pageContainer" class="yui-skin-sam">
91 <div id="pageNum_{$activePage}_div">
92 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
99 <img src='{sugar_getimagepath file='blank.gif'}' width='40' height='1' border='0'>
102 {if !$lock_homepage}<input id="add_dashlets" class="button" type="button" value="{$lblAddDashlets}" onclick="return SUGAR.mySugar.showDashletsDialog();"/>{/if}
106 {counter assign=hiddenCounter start=0 print=false}
107 {foreach from=$columns key=colNum item=data}
108 <td valign='top' width='{$data.width}'>
109 <ul class='noBullet' id='col_{$activePage}_{$colNum}'>
110 <li id='page_{$activePage}_hidden{$hiddenCounter}b' style='height: 5px; margin-top: 12px\9;' class='noBullet'> </li>
111 {foreach from=$data.dashlets key=id item=dashlet}
112 <li class='noBullet' id='dashlet_{$id}'>
113 <div id='dashlet_entire_{$id}' class='dashletPanel'>
115 {$dashlet.displayHeader}
117 {$dashlet.displayFooter}
121 <li id='page_{$activePage}_hidden{$hiddenCounter}' style='height: 5px' class='noBullet'> </li>
130 {foreach from=$divPages key=divPageIndex item=divPageNum}
131 <div id="pageNum_{$divPageNum}_div" style="display:none;">
137 <div id="dashletsDialog" style="display:none;">
138 <div class="hd" id="dashletsDialogHeader"><a href="javascript:void(0)" onClick="javascript:SUGAR.mySugar.closeDashletsDialog();">
139 <div class="container-close"> </div></a>{$lblAdd}
141 <div class="bd" id="dashletsList">
151 <script type="text/javascript">
152 SUGAR.mySugar.maxCount = {/literal}{$maxCount}{literal};
153 SUGAR.mySugar.homepage_dd = new Array();
154 SUGAR.mySugar.init = function () {
158 dashletIds = {$dashletIds};
162 for(i in dashletIds) {
163 SUGAR.mySugar.homepage_dd[j] = new ygDDList('dashlet_' + dashletIds[i]);
164 SUGAR.mySugar.homepage_dd[j].setHandleElId('dashlet_header_' + dashletIds[i]);
165 SUGAR.mySugar.homepage_dd[j].onMouseDown = SUGAR.mySugar.onDrag;
166 SUGAR.mySugar.homepage_dd[j].afterEndDrag = SUGAR.mySugar.onDrop;
169 for(var wp = 0; wp <= {/literal}{$hiddenCounter}{literal}; wp++) {
170 SUGAR.mySugar.homepage_dd[j++] = new ygDDListBoundary('page_'+activePage+'_hidden' + wp);
173 YAHOO.util.DDM.mode = 1;
177 SUGAR.mySugar.renderDashletsDialog();
178 SUGAR.mySugar.sugarCharts.loadSugarCharts(activePage);
184 <script type="text/javascript">
185 YAHOO.util.Event.addListener(window, 'load', SUGAR.mySugar.init);