site.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {extend name="public:base" /}
  2. {block name="style"}
  3. <style type="text/css">
  4. .file{ border: 1px solid #D2D2D2;width: 128px;height: 128px;}
  5. </style>
  6. {/block}
  7. {block name="body"}
  8. <div class="layui-fluid">
  9. <div class="layui-card">
  10. <div class="layui-card-header">站点设置</div>
  11. <div class="layui-card-body">
  12. <form class="layui-form" lay-filter="LAY-site-edit">
  13. <input type="hidden" name="key" value="site">
  14. <div class="layui-form-item">
  15. <label class="layui-form-label">首页LOGO</label>
  16. <div class="layui-input-block">
  17. <input type="hidden" name="value[logo]" value="{$site.logo|default=''}">
  18. {if condition="empty($site['logo'])"}
  19. <img src="__STATIC__/images/default_image.gif" class="file" data-name="value[logo]">
  20. {else /}
  21. <img src="{$site.logo}" class="file" data-name="value[logo]">
  22. {/if}
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label">站点名称</label>
  27. <div class="layui-input-inline">
  28. <input type="text" name="value[cname]" value="{$site.cname}" lay-verify="required" autocomplete="off" class="layui-input">
  29. </div>
  30. </div>
  31. <div class="layui-form-item">
  32. <label class="layui-form-label">站点简称</label>
  33. <div class="layui-input-inline">
  34. <input type="text" name="value[sname]" value="{$site.sname}" lay-verify="required" autocomplete="off" class="layui-input">
  35. </div>
  36. </div>
  37. <div class="layui-form-item">
  38. <label class="layui-form-label">站点简述</label>
  39. <div class="layui-input-block">
  40. <input type="text" name="value[sdesc]" value="{$site.sdesc|default=''}" autocomplete="off" class="layui-input">
  41. </div>
  42. </div>
  43. <div class="layui-form-item layui-form-text">
  44. <label class="layui-form-label">META关键词</label>
  45. <div class="layui-input-block">
  46. <input type="text" name="value[keywords]" value="{$site.keywords}" autocomplete="off" class="layui-input">
  47. </div>
  48. </div>
  49. <div class="layui-form-item layui-form-text">
  50. <label class="layui-form-label">META描述</label>
  51. <div class="layui-input-block">
  52. <textarea name="value[description]" class="layui-textarea">{$site.description}</textarea>
  53. </div>
  54. </div>
  55. <div class="layui-form-item layui-form-text">
  56. <label class="layui-form-label">版权信息</label>
  57. <div class="layui-input-block">
  58. <input type="text" name="value[copyright]" value="{$site.copyright}" autocomplete="off" class="layui-input">
  59. </div>
  60. </div>
  61. <div class="layui-form-item layui-form-text">
  62. <label class="layui-form-label">工信部备案</label>
  63. <div class="layui-input-block">
  64. <input type="text" name="value[beian]" value="{$site.beian}" autocomplete="off" class="layui-input">
  65. </div>
  66. </div>
  67. <div class="layui-form-item layui-form-text">
  68. <label class="layui-form-label">公安部备案</label>
  69. <div class="layui-input-block">
  70. <input type="text" name="value[beian1]" value="{$site.beian1|default=''}" autocomplete="off" class="layui-input">
  71. </div>
  72. </div>
  73. <div class="layui-form-item layui-form-text">
  74. <label class="layui-form-label">隐藏代码</label>
  75. <div class="layui-input-block">
  76. <textarea name="value[hidden]" class="layui-textarea">{$site.hidden|default=''}</textarea>
  77. </div>
  78. </div>
  79. <div class="layui-form-item layui-layout-admin">
  80. <div class="layui-input-block">
  81. <div class="layui-footer" style="left: 0;">
  82. <button class="layui-btn" lay-submit lay-filter="LAY-config-save">立即提交</button>
  83. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  84. </div>
  85. </div>
  86. </div>
  87. </form>
  88. </div>
  89. </div>
  90. </div>
  91. {/block}
  92. {block name="script"}
  93. <script type="text/javascript">
  94. layui.config({
  95. base: '__JS__/'
  96. ,version:true
  97. }).extend({
  98. index: 'lib/index'
  99. }).use(['index', 'config']);
  100. </script>
  101. {/block}