模板admin/index.html

子枫

子枫 [Rainy]

发布于 2023-12-14

336 浏览

参考代码

修改对应的tag和name …

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>管理系统</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  9. <link rel="stylesheet" href="__STATIC__/style/layui/css/layui.css" media="all">
  10. <link rel="stylesheet" href="__STATIC__/system/style/admin.css" media="all">
  11. <script type="text/javascript" src="__STATIC__/style/jquery-1.8.3.min.js"></script>
  12. <script src="__STATIC__/style/layui/layui.js"></script>
  13. <script type="text/javascript" src="__STATIC__/system/common.js"></script>
  14. </head>
  15. <body>
  16. <?php $form_widget = new \app\common\widget\FormPro(); ?>
  17. <div class="layui-fluid">
  18. <div class="layui-row layui-col-space15">
  19. <div class="layui-col-md12">
  20. <div class="layui-card">
  21. <div class="layui-card-header layuiadmin-card-header-auto">
  22. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("系统站点配置","{:url('admin/config/index')}")' >系统站点配置</a>
  23. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("菜单管理","{:url('admin/rests/menu',['type'=>'child','tag'=>'site001_top_menu'])}")' >顶部菜单</a>
  24. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'home_banner'])}")' >广告管理(banner)</a>
  25. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'home_four'])}")' >广告管理(4格)</a>
  26. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'right_menu'])}")' >广告管理(right_menu)</a>
  27. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv1'])}")' >广告管理(单广告right_adv1)</a>
  28. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv2'])}")' >广告管理(单广告right_adv2)</a>
  29. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv3'])}")' >广告管理(单广告right_adv3)</a>
  30. <!-- <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'yss_adv2'])}")' >广告管理(单广告)</a>
  31. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'yss_adv1'])}")' >广告管理(多广告)</a>
  32. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("菜单管理","{:url('admin/rests/menu',['type'=>'child','tag'=>'yss_menu'])}")' >菜单管理</a>
  33. <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("超链管理","{:url('admin/rests/link')}")' >超链管理</a> -->
  34. </div>
  35. <div class="layui-card-body" pad15>
  36. <form class="info_tj" >
  37. <div class="layui-form" wid100 lay-filter="">
  38. {$form_widget->form_textarea(['title'=>'首页主关键词','name'=>'keywords_main','data'=>(isset($config['keywords_main'])? $config['keywords_main']:''),'theme'=>2])}
  39. {$form_widget->form_input(['title'=>'QQ','name'=>'qq','data'=>(isset($config['qq'])? $config['qq']:''),'theme'=>2])}
  40. {$form_widget->form_input(['title'=>'反馈地址','name'=>'fkdz','data'=>(isset($config['fkdz'])? $config['fkdz']:''),'theme'=>2])}
  41. {$form_widget->form_input(['title'=>'邮箱','name'=>'email','data'=>(isset($config['email'])? $config['email']:''),'theme'=>2])}
  42. {$form_widget->form_input(['title'=>'icp','name'=>'icp','data'=>(isset($config['icp'])? $config['icp']:''),'theme'=>2])}
  43. {$form_widget->form_input(['title'=>'版权','name'=>'copyright','data'=>(isset($config['copyright'])? $config['copyright']:''),'theme'=>2])}
  44. {$form_widget->filesystem_pic(['title'=>'logo','name'=>'logo','data'=>(isset($config['logo'])? $config['logo']:''),'theme'=>3])}
  45. {$form_widget->form_input(['title'=>'百度推送接口','name'=>'bd_tsjk','data'=>(isset($config['bd_tsjk'])? $config['bd_tsjk']:''),'theme'=>2])}
  46. {$form_widget->filesystem_pic(['title'=>'默认图','name'=>'pic','data'=>(isset($config['pic'])?$config['pic']:'http://oss002.wangmingchang.com/uploads/f12daa2e867d88c943bd4a8fc5460e3a/20210326_50559src%3Dhttp___wxjidi.com_images_defaultpic.gif%26refer%3Dhttp___wxjidi.jpg'),'theme'=>3])}
  47. {$form_widget->form_textarea(['title'=>'统计代码','name'=>'tongji','data'=>(isset($config['tongji'])? $config['tongji']:''),'theme'=>2])}
  48. {$form_widget->form_textarea(['title'=>'oss图片域名(多个用,隔开)','name'=>'cms_oss_sites','data'=>(isset($config['cms_oss_sites'])? $config['cms_oss_sites']:''),'theme'=>2])}
  49. {$form_widget->form_textarea(['title'=>'文章版权声明','name'=>'cms_post_copyright','data'=>(isset($config['cms_post_copyright'])? $config['cms_post_copyright']:''),'theme'=>2])}
  50. <div class="layui-form-item">
  51. <label class="layui-form-label">管理系统模板</label>
  52. <div class="layui-input-inline" style="width: 500px;">
  53. <select name="template_home">
  54. <?php if(isset($config['template_home'])){ $config['template_home'] = $config['template_home']; ?>
  55. <option value="index" {$config['template_home']=='index'?'selected':''}> Index模板</option>
  56. <option value="index_cms" {$config['template_home']=='index_cms'?'selected':''}> cms模板</option>
  57. <option value="index_blog" {$config['template_home']=='index_blog'?'selected':''}> 博客模板</option>
  58. <option value="index_page" {$config['template_home']=='index_page'?'selected':''}> 单页模板</option>
  59. <?php }else{ ?>
  60. <option value="index" selected> Index模板</option>
  61. <?php } ?>
  62. </select>
  63. </div>
  64. <div class="layui-form-mid layui-word-aux"></div>
  65. </div>
  66. {$form_widget->form_input(['title'=>'管理系统单页模板CID','name'=>'template_home_cid','data'=>(isset($config['template_home_cid'])? $config['template_home_cid']:''),'theme'=>2])}
  67. <div class="layui-form-item">
  68. <div class="layui-input-block">
  69. <a href="javascript:;" class="layui-btn layui-btn-sm" onclick="tijiao_data2('/i_admin',0)" >确认保存</a>
  70. </div>
  71. </div>
  72. </div>
  73. </form>
  74. </div>
  75. <br>
  76. <br>
  77. <br>
  78. <br>
  79. <br>
  80. <br>
  81. <br>
  82. <br>
  83. <br>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <script>
  89. layui.define(['form', 'upload'], function(exports){
  90. var $ = layui.$
  91. ,layer = layui.layer
  92. ,laytpl = layui.laytpl
  93. ,setter = layui.setter
  94. ,view = layui.view
  95. ,admin = layui.admin
  96. ,form = layui.form
  97. ,upload = layui.upload;
  98. window.tijiao_data2 = function(role,type=1){
  99. var index = layer.load(2);
  100. var data = $(".info_tj input,.info_tj select,.info_tj textarea,.info_tj radio").serialize();
  101. $.ajax({
  102. type:'post',
  103. url:role,
  104. data:data,
  105. dataType:'json',
  106. success:function(res){
  107. console.log(res)
  108. if(res.result==1){
  109. layer.msg(res.msg, {icon: 1});
  110. layer.close(index)
  111. setTimeout(function() {
  112. if(type==1){
  113. parent.location.reload();
  114. }else{
  115. // location.reload();
  116. }
  117. }, 2000);
  118. }else{
  119. layer.msg(res.msg, {icon: 2});
  120. layer.close(index)
  121. }
  122. }
  123. })
  124. }
  125. })
  126. </script>
  127. </body>
  128. </html>

评论 (56)

评论输入框
发表评论


评论列表
没有任何评论

© 2025 简奢兔论坛. 保留所有权利.