{extend name="public/base" /} {block name="content"}

### {$meta_title}

{foreach name="fields" item="field"}
{$field.title|default=''} {switch name="field.type"} {case value="num"}
{/case} {case value="text"}
{/case} {case value="long_text"}
{/case} {case value="password"}
{/case} {case value="hidden"} {/case} {case value="radio"}
{php} if (isset($info[$field['name']])) { $field['value'] = $info[$field['name']]; } {/php} {foreach name="field.options" item="opt" key="opt_k"} {$opt} {/foreach}
{/case} {case value="checkbox"}
{php} if (isset($info[$field['name']])) { $field['value'] = $info[$field['name']]; } else { is_null($field["value"]) && $field["value"] = array(); } {/php} {foreach name="field.options" item="opt" key="opt_k"} {$opt} {/foreach}
{/case} {case value="select"}
{/case} {case value="server"}
{/case} {case value="textarea"}
{$info[$field['name']]|default=''}
{/case} {case value="image"}
选择文件
{:hook('file', ['wiget'=>'Uplaod', 'is_admin' => true, 'element' => ['#upload-cover']])} {/case} {/switch} {present name="field.remark"}
{$field.remark}
{/present}
{/foreach}
{/block} {block name="script"}
{/block}