{neq name='field.type' value='hidden'}
{$field.title|htmlspecialchars}： {switch name="field.type"} {case value="string"} {/case} {case value="headline"} 显示颜色： 清除 {/case} {case value="color"} 清除 {/case} {case value="html"} {$field['options']} {/case} {case value="label"} {$field.value} {/case} {case value="password"} {/case} {case value="readonly"} {/case} {case value="amap"} {$field['value']['name']|default="暂无选择"}
{/case} {case value="integer"} {/case} {case value="spinner"} {present name='field.options'} {$field.options} {/present} {/case} {case value="textarea"} {$field.value|htmlspecialchars} {/case} {case value="default"} {/case} {case value="number"} {/case} {case value="url"} {/case} {case value="belongTo"}

清空选择
{/case} {case value="belongsToMany"} {php} $value = ''; if(!empty($field['value']) && count($field['value'])>0) { $temp_arr = []; foreach($field['value'] as $item) { $temp_arr[] = $item[$field['options']['field']]; } $value = implode(',',$temp_arr); } {/php}

清空选择
{/case} {case value="select"}
{/case} {case value="select_multiple"}
{/case} {case value="checkbox"} {php} $importCheckBox = true; {/php} {php} if(!is_array($field['value']) && !empty($field['value'])){ $field['value_array'] = explode(',', $field['value']); }elseif(empty($field['value'])){ $field['value_array'] = []; }else{ $field['value_array'] = $field['value']; } {/php} {volist name="field.options" id="option"} {php} $checked = in_array($key,$field['value_array']) ? 'checked' : ''; $inputId = "id_$field[name]_$key"; {/php} {/volist} {/case} {case value="position"} {php} //dump($field); {/php}
{/case} {case value="checkbox_link_check"} {php} //dump($field); {/php}
{/case} {case value="editor"} {$field.value} {/case} {case value="datetime"} {/case} {case value="date"} {/case} {case value="timerange"} -
{/case} {case value="city"} {php} $city_param = ['value'=>$field['value'],'admin'=>'1','name'=>$field['name']];{/php} {Yicmf:hook name='china_city' param="$city_param"} {/case} {case value="sourse"}
{/case} {case value="radio"} {php} foreach ($field['options'] as $key => $option) { $checked = $field['value']==$key ? 'checked' : ''; $inputId = "id_$field[name]_$key"; {/php} {php} } {/php} {/case} {case value='dragsort_li'}
{empty name="field.value"} 空 {else /}

{volist name=":explode(',',$field['value'])" id="addons_vo"}
- {$key+1}--{$addons_vo}
{/volist}

{/empty} {/case} {case value="hasTags"} {present name="field['value']"} {volist name="field['value']" id='vo2'} {$vo2} {/volist} {/present} {/case} {case value="tags"} {present name='field.value'} 已有标签：
{volist name='field.value' id='vo2'} {$vo2} × {/volist}
{/present}
{/case} {case value="image"} {php} $images = []; if(is_numeric($field['value']) && $field['value']>0){ $images[] = \app\file\model\Picture::find($field['value']); }elseif(is_object($field['value'])){ $images[] = $field['value']; }elseif(is_array($field['value'])){ $images = $field['value']; }else{ $images = []; } if($field['options']['limit'] <= count($images)) { $replace = 1; }else{ $replace = 0; } {/php}

- 默认

{notempty name='images' } {volist name='images' id='vo'}

- {$vo.name}

  删除
{/volist} {/notempty}

0%
{eq name='replace' value='1'}新添加图片则替换旧图片{else/}{$field.options.remark|default=''}{/eq}
添加图片
{eq name='replace' value='1'} 修改图片{else/}开始上传{/eq}
{/case} {case value="attachment"} {php} if(is_numeric($field['value']) && $field['value']>0){ $attachment = \app\file\model\Attachment::get($field['value']); }else{ $attachment = []; } {/php}
选择文件
{$attachment['name']|default=''}
文件大小：{$attachment['size_info']|default=''}
附件列表
{/case} {case value='showImg'} {/case} {case value="ias"}
{/case} {default/} 错误：未知字段类型 {$field.type} {/switch} {notempty name='field.tips'} （{$field.tips|raw}） {/notempty}
{/neq}