100 lines
5.0 KiB
PHP
100 lines
5.0 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2020-02-04 16:24:19
|
|
compiled from "C:\inetpub\wwwroot\sophalcrm\includes\runtime/../../layouts/v7\modules\Vtiger\dashboards\CalendarActivitiesContents.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:15312366955e399ab38a5800-71391717%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'0c2e40fc56e542de8faa5d69db8d21021828fd42' =>
|
|
array (
|
|
0 => 'C:\\inetpub\\wwwroot\\sophalcrm\\includes\\runtime/../../layouts/v7\\modules\\Vtiger\\dashboards\\CalendarActivitiesContents.tpl',
|
|
1 => 1520586670,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '15312366955e399ab38a5800-71391717',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'ACTIVITIES' => 0,
|
|
'ACTIVITY' => 0,
|
|
'PARENT_ID' => 0,
|
|
'CONTACT_ID' => 0,
|
|
'PAGING' => 0,
|
|
'MODULE_NAME' => 0,
|
|
'WIDGET' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_5e399ab38ecda',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_5e399ab38ecda')) {function content_5e399ab38ecda($_smarty_tpl) {?>
|
|
|
|
<div class="dashboardWidgetData">
|
|
<?php $_smarty_tpl->tpl_vars['ACTIVITY'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ACTIVITY']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['INDEX'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['ACTIVITIES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['ACTIVITY']->key => $_smarty_tpl->tpl_vars['ACTIVITY']->value){
|
|
$_smarty_tpl->tpl_vars['ACTIVITY']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['INDEX']->value = $_smarty_tpl->tpl_vars['ACTIVITY']->key;
|
|
?>
|
|
<div>
|
|
<div class='pull-left'>
|
|
<?php if ($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('activitytype')=='Task'){?>
|
|
<span><i class="entryIcon vicon-task"></i></span>
|
|
<?php }else{ ?>
|
|
<span><i class="entryIcon vicon-meeting"></i></span>
|
|
<?php }?>
|
|
</div>
|
|
<div>
|
|
<div class='pull-left'>
|
|
<?php $_smarty_tpl->tpl_vars['PARENT_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('parent_id'), null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['CONTACT_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('contact_id'), null, 0);?>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDetailViewUrl();?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->get('subject');?>
|
|
</a><?php if ($_smarty_tpl->tpl_vars['PARENT_ID']->value){?> <?php echo vtranslate('LBL_FOR');?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDisplayValue('parent_id');?>
|
|
<?php }elseif($_smarty_tpl->tpl_vars['CONTACT_ID']->value){?> <?php echo vtranslate('LBL_FOR');?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDisplayValue('contact_id');?>
|
|
<?php }?>
|
|
</div>
|
|
<?php $_smarty_tpl->tpl_vars['START_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('date_start'), null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['START_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_start'), null, 0);?>
|
|
|
|
<?php $_smarty_tpl->tpl_vars['DUE_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('due_date'), null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['DUE_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_end'), null, 0);?>
|
|
<p class='pull-right muted' style='margin-top:5px;padding-right:5px;'><small title="<?php echo Vtiger_Util_Helper::formatDateTimeIntoDayString(($_smarty_tpl->tpl_vars['START_DATE']->value)." ".($_smarty_tpl->tpl_vars['START_TIME']->value));?>
|
|
<?php echo vtranslate('LBL_TO');?>
|
|
<?php echo Vtiger_Util_Helper::formatDateTimeIntoDayString(($_smarty_tpl->tpl_vars['DUE_DATE']->value)." ".($_smarty_tpl->tpl_vars['DUE_TIME']->value));?>
|
|
"><?php echo Vtiger_Util_Helper::formatDateDiffInStrings(($_smarty_tpl->tpl_vars['START_DATE']->value)." ".($_smarty_tpl->tpl_vars['START_TIME']->value));?>
|
|
</small></p>
|
|
<div class='clearfix'></div>
|
|
</div>
|
|
<div class='clearfix'></div>
|
|
</div>
|
|
<?php }
|
|
if (!$_smarty_tpl->tpl_vars['ACTIVITY']->_loop) {
|
|
?>
|
|
<?php if ($_smarty_tpl->tpl_vars['PAGING']->value->get('nextPageExists')!='true'){?>
|
|
<div class="noDataMsg">
|
|
<?php if ($_REQUEST['name']=='OverdueActivities'){?>
|
|
<?php echo vtranslate('LBL_NO_OVERDUE_ACTIVITIES',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
|
|
|
|
<?php }else{ ?>
|
|
<?php echo vtranslate('LBL_NO_SCHEDULED_ACTIVITIES',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
|
|
|
|
<?php }?>
|
|
</div>
|
|
<?php }?>
|
|
<?php } ?>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['PAGING']->value->get('nextPageExists')=='true'){?>
|
|
<div class='pull-right' style='margin-top:5px;padding-right:5px;'>
|
|
<a href="javascript:;" name="history_more" data-url="<?php echo $_smarty_tpl->tpl_vars['WIDGET']->value->getUrl();?>
|
|
&page=<?php echo $_smarty_tpl->tpl_vars['PAGING']->value->getNextPage();?>
|
|
"><?php echo vtranslate('LBL_MORE');?>
|
|
...</a>
|
|
</div>
|
|
<?php }?>
|
|
</div><?php }} ?>
|