76 lines
6.2 KiB
PHP
76 lines
6.2 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-09-26 16:22:54
|
|
compiled from "C:\xampp\htdocs\sophalcrm\includes\runtime/../../layouts/v7\modules\Vtiger\uitypes\OwnerFieldSearchView.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:115153694368d6bdde67f3d3-21614225%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'92c9e82ff041fb55aeb35533f14d633a97a7e2f1' =>
|
|
array (
|
|
0 => 'C:\\xampp\\htdocs\\sophalcrm\\includes\\runtime/../../layouts/v7\\modules\\Vtiger\\uitypes\\OwnerFieldSearchView.tpl',
|
|
1 => 1758796691,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '115153694368d6bdde67f3d3-21614225',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'FIELD_MODEL' => 0,
|
|
'USER_MODEL' => 0,
|
|
'SEARCH_INFO' => 0,
|
|
'SEARCH_VALUES' => 0,
|
|
'MODULE' => 0,
|
|
'ASSIGNED_USER_ID' => 0,
|
|
'FIELD_INFO' => 0,
|
|
'ALL_ACTIVEUSER_LIST' => 0,
|
|
'OWNER_NAME' => 0,
|
|
'OWNER_ID' => 0,
|
|
'ACCESSIBLE_USER_LIST' => 0,
|
|
'CURRENT_USER_ID' => 0,
|
|
'ALL_ACTIVEGROUP_LIST' => 0,
|
|
'ACCESSIBLE_GROUP_LIST' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_68d6bdde68e1f',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_68d6bdde68e1f')) {function content_68d6bdde68e1f($_smarty_tpl) {?>
|
|
<?php $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?><div class="select2_search_div"><?php $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsers(), null, 0);?><?php $_smarty_tpl->tpl_vars['SEARCH_VALUES'] = new Smarty_variable(explode(',',$_smarty_tpl->tpl_vars['SEARCH_INFO']->value['searchValue']), null, 0);?><?php $_smarty_tpl->tpl_vars['SEARCH_VALUES'] = new Smarty_variable(array_map("trim",$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value), null, 0);?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype')=='52'||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype')=='77'){?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable(array(), null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroups(), null, 0);?><?php }?><?php $_smarty_tpl->tpl_vars['ACCESSIBLE_USER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsersForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?><?php $_smarty_tpl->tpl_vars['ACCESSIBLE_GROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroupForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?><input type="text" class="listSearchContributor inputElement select2_input_element"/><select class="select2 listSearchContributor <?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value;?>
|
|
" name="<?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value;?>
|
|
" multiple data-fieldinfo='<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['FIELD_INFO']->value, ENT_QUOTES, 'UTF-8', true);?>
|
|
' style="display:none"><optgroup label="<?php echo vtranslate('LBL_USERS');?>
|
|
"><?php $_smarty_tpl->tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){
|
|
$_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key;
|
|
?><option value="<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
" data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
' <?php if (in_array(trim(decode_html($_smarty_tpl->tpl_vars['OWNER_NAME']->value)),$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value)){?> selected <?php }?><?php if (array_key_exists($_smarty_tpl->tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_USER_LIST']->value)){?> data-recordaccess=true <?php }else{ ?> data-recordaccess=false <?php }?>data-userId="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER_ID']->value;?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
</option><?php } ?></optgroup><?php if (count($_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value)>0){?><optgroup label="<?php echo vtranslate('LBL_GROUPS');?>
|
|
"><?php $_smarty_tpl->tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){
|
|
$_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key;
|
|
?><option value="<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
" data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
' <?php if (in_array(trim($_smarty_tpl->tpl_vars['OWNER_NAME']->value),$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value)){?> selected <?php }?><?php if (array_key_exists($_smarty_tpl->tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_GROUP_LIST']->value)){?> data-recordaccess=true <?php }else{ ?> data-recordaccess=false <?php }?> ><?php echo $_smarty_tpl->tpl_vars['OWNER_NAME']->value;?>
|
|
</option><?php } ?></optgroup><?php }?></select></div>
|
|
|
|
<script src="jscss/ResizeSensor.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
new ResizeSensor($('.select2_search_div'), function(){
|
|
|
|
$('.assigned_user_id').find(".select2-choices").css( "max-height", "50px" );
|
|
$('.assigned_user_id').find(".select2-choices").css( "min-width", "250px" );
|
|
});
|
|
|
|
</script><?php }} ?>
|