{extend name="public/container"} {block name="head"} {/block} {block name="content"}
配置
{volist name="list" id="vo"} {eq name="$vo['config_tab_id']" value="$tab_id"}
{switch name="$vo['type']" } {case value="text" break="1"} {/case} {case value="textarea" break="1"} {/case} {case value="checkbox" break="1"} $v){ $option[$k] = explode('=>',$v); } // dump($option); // exit(); } $checkbox_value = $vo['value']; if(!is_array($checkbox_value)) $checkbox_value = explode("\n",$checkbox_value); // dump($checkbox_value); // exit(); ?> {volist name="option" id="son" key="k"} {if condition="in_array($son[0],$checkbox_value)"} {else/} {/if} {/volist} {/case} {case value="radio" break="1"} $v){ $option[$k] = explode('=>',$v); } } ?> {volist name="option" id="son"} {if condition="$son[0] eq $vo['value']"}
{else /}
{/if} {/volist} {/case} {case value="upload" break="1"} {if condition="$vo['upload_type'] EQ 3"}
点击上传 {if condition="$num_img < 1"}
{else/} {volist name="$vo['value']" id="img"}
删除
{/volist} {/if}
{elseif condition="$vo['upload_type'] EQ 2"/}
点击上传
{volist name="$vo['value']" id="img"}
image
删除
{/volist}
{else/}
{if condition="$num_img LT 1"}
{else/} {volist name="$vo['value']" id="img"}
image
删除
{/volist}
{/if}
{/if} {/case} {/switch}
{$vo.desc}
{/eq} {/volist}
{/block} {block name="script"} {/block}