You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_php/application/admin/view/setting/system_config/index_alone.php

1 line
23 KiB

11 months ago
{extend name="public/container"} {block name="head"} <link href="{__FRAME_PATH}css/plugins/iCheck/custom.css" rel="stylesheet"> <script src="{__ADMIN_PATH}plug/validate/jquery.validate.js"></script> <script src="{__ADMIN_PATH}frame/js/plugins/iCheck/icheck.min.js"></script> <script src="{__ADMIN_PATH}frame/js/ajaxfileupload.js"></script> <style> label.error{ color: #a94442; margin-bottom: 0; display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transform: translate(0, 0); } </style> {/block} {block name="content"} <div class="row"> <div class="col-sm-12"> <div class="ibox-title"> <h5>配置</h5> </div> <?php foreach ($list as $k=>$v){ $list[$k]['value'] = json_decode($v['value'],true); } $bool_upload_num = 0; ?> <div class="ibox float-e-margins"> <div class="ibox-content"> <form method="post" class="form-horizontal" id="signupForm" action="{:Url('save_basics_alone',array('tab_id'=>$tab_id))}"> <input type="hidden" value="{$tab_id}" name="tab_id"/> {volist name="list" id="vo"} {eq name="$vo['config_tab_id']" value="$tab_id"} <div class="form-group"> <label class="col-sm-2 control-label" {eq name="$vo['type']" value="radio"}style="padding-top: 0;"{/eq}>{$vo.info}</label> <div class="col-sm-10"> <div class="row"> <div class="col-md-6"> {switch name="$vo['type']" } {case value="text" break="1"}<!-- 文本框--> <input type="{$vo.type}" class="form-control" name="{$vo.menu_name}" value="{$vo.value}" validate="{$vo['required']}" style="width: {$vo.width}%"/> {/case} {case value="textarea" break="1"}<!--多行文本框--> <textarea name="{$vo.menu_name}" cols="{$vo.width}" rows="{$vo.high}" class="form-control" style="width: {$vo.width}%">{$vo.value}</textarea> {/case} {case value="checkbox" break="1"}<!--多选框--> <?php $parameter = array(); $option = array(); if($vo['parameter']){ $parameter = explode(',',$vo['parameter']); foreach ($parameter as $k=>$v){ $option[$k] = explode('-',$v); } } $checkbox_value = $vo['value']; if(!is_array($checkbox_value)) $checkbox_value = explode(',',$checkbox_value); ?> {volist name="option" id="son" key="k"} {if condition="in_array($son[0],$checkbox_value)"} <label class="checkbox-inline i-checks"> <input type="checkbox" value="{$son.0}" name="{$vo.menu_name}[]" checked="checked">{$son.1}</label> {else/} <label class="checkbox-inline i-checks"> <input type="checkbox" value="{$son.0}" name="{$vo.menu_name}[]">{$son.1}</label> {/