本文整理汇总了PHP中Vtiger_Util_Helper::getCurrentInfoOfUser方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Util_Helper::getCurrentInfoOfUser方法的具体用法?PHP Vtiger_Util_Helper::getCurrentInfoOfUser怎么用?PHP Vtiger_Util_Helper::getCurrentInfoOfUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Util_Helper
的用法示例。
在下文中一共展示了Vtiger_Util_Helper::getCurrentInfoOfUser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_56853f85a58ff
function content_56853f85a58ff($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include '/var/www/html/vtigercrm/libraries/Smarty/libs/plugins/modifier.replace.php';
}
?>
<div class="contents-topscroll"><div class="topscroll-div container-fluid"> </div></div><div id="reportDetails" class="contents-bottomscroll"><div class="bottomscroll-div"><input type="hidden" id="updatedCount" value="<?php
echo $_smarty_tpl->tpl_vars['NEW_COUNT']->value;
?>
" /><?php
if (!empty($_smarty_tpl->tpl_vars['CALCULATION_FIELDS']->value)) {
?>
<table class=" table-bordered table-condensed marginBottom10px" width="100%"><thead><tr class="blockHeader"><th><?php
echo vtranslate('LBL_FIELD_NAMES', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</th><th><?php
echo vtranslate('LBL_SUM', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</th><th><?php
echo vtranslate('LBL_AVG', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</th><th><?php
echo vtranslate('LBL_MIN', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</th><th><?php
echo vtranslate('LBL_MAX', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</th></tr></thead><?php
$_smarty_tpl->tpl_vars['ESCAPE_CHAR'] = new Smarty_variable(array('_SUM', '_AVG', '_MIN', '_MAX'), null, 0);
$_smarty_tpl->tpl_vars['CALCULATION_FIELD'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELDS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key => $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value) {
$_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key;
?>
<tr><?php
$_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS'] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value), null, 0);
$_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS'] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS']->value, $_smarty_tpl->tpl_vars['ESCAPE_CHAR']->value, ''), null, 0);
$_smarty_tpl->tpl_vars['FIELD_IMPLODE'] = new Smarty_variable(explode('_', $_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEYS']->value['0']), null, 0);
$_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_IMPLODE']->value['0'], null, 0);
$_smarty_tpl->tpl_vars['FIELD_LABEL'] = new Smarty_variable(implode(" ", $_smarty_tpl->tpl_vars['FIELD_IMPLODE']->value), null, 0);
$_smarty_tpl->tpl_vars['FIELD_LABEL'] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['FIELD_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE_NAME']->value, ''), null, 0);
?>
<td><?php
echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
<?php
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</td><?php
$_smarty_tpl->tpl_vars['CALCULATION_VALUE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->key => $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value) {
$_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = true;
?>
<td width="15%"><?php
echo $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value;
?>
</td><?php
}
?>
</tr><?php
}
?>
</table><?php
if ($_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'Invoice' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'Quotes' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'SalesOrder' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'PurchaseOrder') {
$_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO'] = new Smarty_variable(Vtiger_Util_Helper::getCurrentInfoOfUser(), null, 0);
?>
<div class="alert alert-info"><?php
echo vtranslate('LBL_NOTE', 'Vtiger');
?>
: <?php
echo vtranslate('LBL_CALCULATION_CONVERSION_MESSAGE', 'Reports');
?>
- <?php
echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO']->value['currency_name'];
?>
(<?php
echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO']->value['currency_code'];
?>
)</div><?php
}
}
if ($_smarty_tpl->tpl_vars['DATA']->value != '') {
$_smarty_tpl->tpl_vars['HEADERS'] = new Smarty_variable($_smarty_tpl->tpl_vars['DATA']->value[0], null, 0);
?>
<table class="table table-bordered table-striped"><thead><tr class="blockHeader"><?php
$_smarty_tpl->tpl_vars['HEADER'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['HEADER']->_loop = false;
$_smarty_tpl->tpl_vars['NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['HEADERS']->value;
//.........这里部分代码省略.........
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:101,代码来源:6adc580c6e5028ce4ee1ecb13c44e07ec90b01d4.file.ReportContents.tpl.php
示例2: content_56755f9495a47
//.........这里部分代码省略.........
?>
<?php
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</td><?php
$_smarty_tpl->tpl_vars['CALCULATION_VALUE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = false;
$_smarty_tpl->tpl_vars['subindex'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->key => $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value) {
$_smarty_tpl->tpl_vars['CALCULATION_VALUE']->_loop = true;
$_smarty_tpl->tpl_vars['subindex']->value = $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->key;
$_smarty_tpl->tpl_vars['COLUMN'] = new Smarty_variable(substr($_smarty_tpl->tpl_vars['subindex']->value, -3, 3), null, 0);
if ($_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value != '') {
?>
<td width="15%"><?php
echo $_smarty_tpl->tpl_vars['CALCULATION_VALUE']->value;
?>
</td><?php
} elseif ($_smarty_tpl->tpl_vars['COLUMNS']->value[$_smarty_tpl->tpl_vars['COLUMN']->value]) {
?>
<td></td><?php
}
}
?>
</tr><?php
}
?>
</table><?php
if ($_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'Invoice' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'Quotes' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'SalesOrder' || $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == 'PurchaseOrder') {
$_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO'] = new Smarty_variable(Vtiger_Util_Helper::getCurrentInfoOfUser(), null, 0);
?>
<div class="alert alert-info"><?php
echo vtranslate('LBL_NOTE', 'Vtiger');
?>
: <?php
echo vtranslate('LBL_CALCULATION_CONVERSION_MESSAGE', 'Reports');
?>
- <?php
echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO']->value['currency_name'];
?>
(<?php
echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_INFO']->value['currency_code'];
?>
)</div><?php
}
}
if ($_smarty_tpl->tpl_vars['DATA']->value != '') {
$_smarty_tpl->tpl_vars['HEADERS'] = new Smarty_variable($_smarty_tpl->tpl_vars['DATA']->value[0], null, 0);
?>
<div class="container"><div class="panel panel-default"><table class="table table-bordered"><tr colspan="8" class="blockHeader panel-heading" ><?php
$_smarty_tpl->tpl_vars['HEADER'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['HEADER']->_loop = false;
$_smarty_tpl->tpl_vars['NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['HEADERS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['HEADER']->key => $_smarty_tpl->tpl_vars['HEADER']->value) {
$_smarty_tpl->tpl_vars['HEADER']->_loop = true;
$_smarty_tpl->tpl_vars['NAME']->value = $_smarty_tpl->tpl_vars['HEADER']->key;
?>
<td nowrap><?php
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:67,代码来源:b81d81f906d5e29dedb47cfca36ba4adfbdca94c.file.ReportContents.tpl.php