mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
82 lines
2.6 KiB
Smarty
82 lines
2.6 KiB
Smarty
{*
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
*}
|
|
|
|
<script language="javascript" type="text/javascript" src="modules/Home/Homestuff.js"></script>
|
|
|
|
{if $ALLOW_CHARTS eq 'yes'}
|
|
<script language="javascript" type="text/javascript" src="modules/Charts/Charts.js"></script> {* crmv@30014 *}
|
|
{/if}
|
|
|
|
<input id="homeLayout" type="hidden" value="{$LAYOUT}">
|
|
<!--Home Page Entries -->
|
|
|
|
{include file="Home/HomeButtons.tpl"}
|
|
<div id="vtbusy_homeinfo" style="display:none;">
|
|
{include file="LoadingIndicator.tpl"}
|
|
</div>
|
|
|
|
<!-- Main Contents Start Here -->
|
|
<table width="97%" class="small showPanelBg" cellpadding="0" cellspacing="0" border="0" align="center" valign="top">
|
|
<tr>
|
|
<td width="100%" align="center" valign="top" height="350">
|
|
<div id="MainMatrix" class="topMarginHomepage" style="padding:0px;width:100%"> {* crmv@30014 *}
|
|
{foreach item=tablestuff from=$HOMEFRAME name="homeframe"}
|
|
{* create divs for each widget - the contents will be loaded dynamically from javascript *}
|
|
{include file="Home/MainHomeBlock.tpl"}
|
|
{* load contents for the widget *}
|
|
<script type="text/javascript">
|
|
{* crmv@208472 *}
|
|
{if $tablestuff.Stufftype eq 'DashBoard'}
|
|
VTE.Homestuff.loadStuff({$tablestuff.Stuffid},'{$tablestuff.Stufftype}');
|
|
{/if}
|
|
</script>
|
|
{/foreach}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- Main Contents Ends Here -->
|
|
|
|
<script type="text/javascript">
|
|
var Vt_homePageWidgetInfoList = [
|
|
{foreach item=tablestuff key=index from=$HOMEFRAME_RESTRICTED name="homeframe"}
|
|
{ldelim}
|
|
'widgetId': {$tablestuff.Stuffid},
|
|
'widgetType': '{$tablestuff.Stufftype}'
|
|
{rdelim}
|
|
{if $index+1 < $HOMEFRAME_RESTRICTED|@count},{/if}
|
|
{/foreach}
|
|
];
|
|
|
|
VTE.Homestuff.loadAllWidgets(Vt_homePageWidgetInfoList, {$widgetBlockSize});
|
|
VTE.Homestuff.initHomePage();
|
|
|
|
/**
|
|
* this function is used to display the add window for different dashboard widgets
|
|
*/
|
|
{literal}
|
|
function fnAddWindow(obj, CurrObj, offsetTop) {
|
|
offsetTop = offsetTop || 0;
|
|
|
|
var tagName = document.getElementById(CurrObj);
|
|
var left_Side = findPosX(obj);
|
|
var top_Side = findPosY(obj);
|
|
tagName.style.left = left_Side + 2 + 'px';
|
|
top_Side = top_Side + 22 + offsetTop;
|
|
tagName.style.top= top_Side + 'px';
|
|
tagName.style.display = 'block';
|
|
}
|
|
{/literal}
|
|
|
|
{* crmv@146652 *}
|
|
{if $OPEN_MYNOTES_POPUP > 0}
|
|
jQuery(document).ready(function(){ldelim}
|
|
openPopup('index.php?module=MyNotes&action=SimpleView&record={$OPEN_MYNOTES_POPUP}');
|
|
{rdelim});
|
|
{/if}
|
|
{* crmv@146652e *}
|
|
</script> |