61 lines
2.4 KiB
PHP
61 lines
2.4 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2020-03-04 16:47:50
|
|
compiled from "/home/sophalnexs/www/sophalcrm/includes/runtime/../../layouts/v7/modules/HelpDesk/dashboards/OpenTickets.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:6723818395e5fdbb6737436-47645330%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'0e2579882c7b8a67190e0eb11a76ebb4d3a47eac' =>
|
|
array (
|
|
0 => '/home/sophalnexs/www/sophalcrm/includes/runtime/../../layouts/v7/modules/HelpDesk/dashboards/OpenTickets.tpl',
|
|
1 => 1583050784,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '6723818395e5fdbb6737436-47645330',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'MODULE_NAME' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_5e5fdbb67c91f',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_5e5fdbb67c91f')) {function content_5e5fdbb67c91f($_smarty_tpl) {?>
|
|
<div class="dashboardWidgetHeader">
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/WidgetHeader.tpl",$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
</div>
|
|
<div class="dashboardWidgetContent">
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/DashBoardWidgetContents.tpl",$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
</div>
|
|
<div class="widgeticons dashBoardWidgetFooter">
|
|
<div class="footerIcons pull-right">
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/DashboardFooterIcons.tpl",$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
Vtiger_Pie_Widget_Js('Vtiger_OpenTickets_Widget_Js',{},{
|
|
/**
|
|
* Function which will give chart related Data
|
|
*/
|
|
generateData : function() {
|
|
var container = this.getContainer();
|
|
var jData = container.find('.widgetData').val();
|
|
var data = JSON.parse(jData);
|
|
var chartData = [];
|
|
for(var index in data) {
|
|
var row = data[index];
|
|
var rowData = [row.name, parseInt(row.count), row.id];
|
|
chartData.push(rowData);
|
|
}
|
|
return {'chartData':chartData};
|
|
}
|
|
});
|
|
</script><?php }} ?>
|