12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="tabs-container">
- <ul class="nav nav-tabs">
- {volist name="type" id="v"}
- <li {if condition="$key eq $id"}class="active"{/if}>
- <a href="{:url('group',['id'=>$key])}">{$v}配置</a>
- </li>
- {/volist}
- </ul>
- <div class="tab-content">
- <div id="tab-1" class="tab-pane active">
- <div class="panel-body">
- <div class="col-sm-6">
- <form method="post" action="{:url('save')}" class="form-config">
- {volist name="list" id="config"}
- <div class="form-group">
- <label class="control-label">{$config.title}<span class="text-muted">{if condition="$config['remark']"}({$config.remark}){/if}</span></label>
- {switch name="config.type" }
- {case value="0"}
- <input type="number" class="form-control " name="{$config.name}" value="{$config.value}">
- {/case}
- {case value="1"}
- <input type="text" class="form-control " name="{$config.name}" value="{$config.value}">
- {/case}
- {case value="2|3"}
- <textarea name="{$config.name}" class="form-control" rows="3">{$config.value}</textarea>
- {/case}
- {case value="4"}
- <select name="{$config.name}" class="form-control">
- {volist name=":model('Config')->parseConfigAttr($config['extra'])" id="vo"}
- <option value="{$key}" {eq name="config.value" value="$key"}selected{/eq}>{$vo}</option>
- {/volist}
- </select>
- {/case}
- {case value="7"}
- {:widget_view('common/upimg',['name'=>$config['name'],'multi'=>0,'val'=>$config['value']?$config['value']:''])}
- {/case}
- {/switch}
- </div>
- {/volist}
- <div class="form-group">
- <button class="btn btn-primary ajax-post" target-form="form-config" type="submit">保 存</button>
- <a href="" class="btn btn-default">刷新</a>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- {/block}
|