本文整理汇总了PHP中ZEND_JSON::decode方法的典型用法代码示例。如果您正苦于以下问题:PHP ZEND_JSON::decode方法的具体用法?PHP ZEND_JSON::decode怎么用?PHP ZEND_JSON::decode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZEND_JSON
的用法示例。
在下文中一共展示了ZEND_JSON::decode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_567e0a2660d1f
function content_567e0a2660d1f($_smarty_tpl)
{
?>
<div class="row-fluid"><div class="span2"><strong><?php
echo vtranslate('LBL_SET_FIELD_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</strong></div></div><br><div><button type="button" class="btn" id="addFieldBtn"><?php
echo vtranslate('LBL_ADD_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</button></div><br><div class="row-fluid conditionsContainer" id="save_fieldvaluemapping"><?php
$_smarty_tpl->tpl_vars['FIELD_VALUE_MAPPING'] = new Smarty_variable(ZEND_JSON::decode($_smarty_tpl->tpl_vars['TASK_OBJECT']->value->field_value_mapping), null, 0);
?>
<input type="hidden" id="fieldValueMapping" name="field_value_mapping" value='<?php
echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['TASK_OBJECT']->value->field_value_mapping);
?>
' /><?php
$_smarty_tpl->tpl_vars['FIELD_MAP'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MAP']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FIELD_VALUE_MAPPING']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MAP']->key => $_smarty_tpl->tpl_vars['FIELD_MAP']->value) {
$_smarty_tpl->tpl_vars['FIELD_MAP']->_loop = true;
?>
<div class="row-fluid conditionRow padding-bottom1per"><span class="span4"><select name="fieldname" class="chzn-select" style="min-width: 250px" data-placeholder="<?php
echo vtranslate('LBL_SELECT_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
"><option></option><?php
$_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference' || $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == "Documents" && in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['RESTRICTFIELDS']->value)) {
continue 1;
}
$_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);
$_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getModule(), null, 0);
?>
<option value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" <?php
if ($_smarty_tpl->tpl_vars['FIELD_MAP']->value['fieldname'] == $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name')) {
?>
selected=""<?php
}
?>
data-fieldtype="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType();
?>
" data-field-name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" data-fieldinfo='<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
?>
' ><?php
if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value != $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name')) {
?>
(<?php
echo vtranslate($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'));
?>
) <?php
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'));
} else {
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value);
}
?>
</option><?php
}
?>
</select></span><span class="fieldUiHolder span4 marginLeftZero"><input type="text" class="getPopupUi row-fluid" readonly="" name="fieldValue" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MAP']->value['value'];
?>
" /><input type="hidden" name="valuetype" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MAP']->value['valuetype'];
?>
" /></span><span class="cursorPointer span"><i class="alignMiddle deleteCondition icon-trash"></i></span></div><?php
}
echo $_smarty_tpl->getSubTemplate(vtemplate_path("FieldExpressions.tpl", $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</div><br><div class="row-fluid basicAddFieldContainer hide padding-bottom1per"><span class="span4"><select name="fieldname" data-placeholder="<?php
echo vtranslate('LBL_SELECT_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
" style="min-width: 250px"><option></option><?php
$_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference' || $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == "Documents" && in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['RESTRICTFIELDS']->value)) {
continue 1;
//.........这里部分代码省略.........
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:101,代码来源:796ba1781201d68f7c944e4e70597e927436b674.file.VTUpdateFieldsTask.tpl.php