| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- {extend name="public:base" /}
- {block name="style"}
- <style type="text/css">
- .file{ border: 1px solid #D2D2D2;width: 128px;height: 128px;}
- </style>
- {/block}
- {block name="body"}
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header">站点设置</div>
- <div class="layui-card-body">
- <form class="layui-form" lay-filter="LAY-site-edit">
- <input type="hidden" name="key" value="site">
- <div class="layui-form-item">
- <label class="layui-form-label">首页LOGO</label>
- <div class="layui-input-block">
- <input type="hidden" name="value[logo]" value="{$site.logo|default=''}">
- {if condition="empty($site['logo'])"}
- <img src="__STATIC__/images/default_image.gif" class="file" data-name="value[logo]">
- {else /}
- <img src="{$site.logo}" class="file" data-name="value[logo]">
- {/if}
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">站点名称</label>
- <div class="layui-input-inline">
- <input type="text" name="value[cname]" value="{$site.cname}" lay-verify="required" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">站点简称</label>
- <div class="layui-input-inline">
- <input type="text" name="value[sname]" value="{$site.sname}" lay-verify="required" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">站点简述</label>
- <div class="layui-input-block">
- <input type="text" name="value[sdesc]" value="{$site.sdesc|default=''}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">META关键词</label>
- <div class="layui-input-block">
- <input type="text" name="value[keywords]" value="{$site.keywords}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">META描述</label>
- <div class="layui-input-block">
- <textarea name="value[description]" class="layui-textarea">{$site.description}</textarea>
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">版权信息</label>
- <div class="layui-input-block">
- <input type="text" name="value[copyright]" value="{$site.copyright}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">工信部备案</label>
- <div class="layui-input-block">
- <input type="text" name="value[beian]" value="{$site.beian}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">公安部备案</label>
- <div class="layui-input-block">
- <input type="text" name="value[beian1]" value="{$site.beian1|default=''}" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item layui-form-text">
- <label class="layui-form-label">隐藏代码</label>
- <div class="layui-input-block">
- <textarea name="value[hidden]" class="layui-textarea">{$site.hidden|default=''}</textarea>
- </div>
- </div>
- <div class="layui-form-item layui-layout-admin">
- <div class="layui-input-block">
- <div class="layui-footer" style="left: 0;">
- <button class="layui-btn" lay-submit lay-filter="LAY-config-save">立即提交</button>
- <button type="reset" class="layui-btn layui-btn-primary">重置</button>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript">
- layui.config({
- base: '__JS__/'
- ,version:true
- }).extend({
- index: 'lib/index'
- }).use(['index', 'config']);
- </script>
- {/block}
|