1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .layui-laydate-content>.layui-laydate-list {
- padding-bottom: 0px;
- overflow: hidden;
- }
- .layui-laydate-content>.layui-laydate-list>li{
- width:50%
- }
- .merge-box .scrollbox .merge-list {
- padding-bottom: 5px;
- }
- .laydate-time-list ol li{
- padding-left:55px !important;
- }
- </style>
- <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('org',['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('orgSave')}" 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="6"}
- <input type="text" class="form-control config_time" readonly value="{$config.value}" name="{$config.name}">
- {/case}
- {case value="5"}
- {:widget_view('common/multiselect',['name'=>$config['name'],'lists' => $config['user'], 'val' => $config['value']])}
- {/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}
- {block name="script"}
- <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
- <script>
- laydate.render({
- elem: '.config_time',
- type: 'time',
- trigger: 'click' ,
- format:'HH:mm',
- theme:'#284a94'
- });
- </script>
- {/block}
|