模板admin/index.html

子枫 [Rainy]
发布于 2023-12-14
336 浏览
参考代码
修改对应的tag和name …
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>管理系统</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="__STATIC__/style/layui/css/layui.css" media="all">
<link rel="stylesheet" href="__STATIC__/system/style/admin.css" media="all">
<script type="text/javascript" src="__STATIC__/style/jquery-1.8.3.min.js"></script>
<script src="__STATIC__/style/layui/layui.js"></script>
<script type="text/javascript" src="__STATIC__/system/common.js"></script>
</head>
<body>
<?php $form_widget = new \app\common\widget\FormPro(); ?>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header layuiadmin-card-header-auto">
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("系统站点配置","{:url('admin/config/index')}")' >系统站点配置</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("菜单管理","{:url('admin/rests/menu',['type'=>'child','tag'=>'site001_top_menu'])}")' >顶部菜单</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'home_banner'])}")' >广告管理(banner)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'home_four'])}")' >广告管理(4格)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'right_menu'])}")' >广告管理(right_menu)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv1'])}")' >广告管理(单广告right_adv1)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv2'])}")' >广告管理(单广告right_adv2)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'right_adv3'])}")' >广告管理(单广告right_adv3)</a>
<!-- <a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert_edit',['tag'=>'yss_adv2'])}")' >广告管理(单广告)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("广告管理","{:url('admin/rests/advert',['type'=>'child','tag'=>'yss_adv1'])}")' >广告管理(多广告)</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("菜单管理","{:url('admin/rests/menu',['type'=>'child','tag'=>'yss_menu'])}")' >菜单管理</a>
<a class="layui-btn layui-btn-sm" onclick='zfAdminShow("超链管理","{:url('admin/rests/link')}")' >超链管理</a> -->
</div>
<div class="layui-card-body" pad15>
<form class="info_tj" >
<div class="layui-form" wid100 lay-filter="">
{$form_widget->form_textarea(['title'=>'首页主关键词','name'=>'keywords_main','data'=>(isset($config['keywords_main'])? $config['keywords_main']:''),'theme'=>2])}
{$form_widget->form_input(['title'=>'QQ','name'=>'qq','data'=>(isset($config['qq'])? $config['qq']:''),'theme'=>2])}
{$form_widget->form_input(['title'=>'反馈地址','name'=>'fkdz','data'=>(isset($config['fkdz'])? $config['fkdz']:''),'theme'=>2])}
{$form_widget->form_input(['title'=>'邮箱','name'=>'email','data'=>(isset($config['email'])? $config['email']:''),'theme'=>2])}
{$form_widget->form_input(['title'=>'icp','name'=>'icp','data'=>(isset($config['icp'])? $config['icp']:''),'theme'=>2])}
{$form_widget->form_input(['title'=>'版权','name'=>'copyright','data'=>(isset($config['copyright'])? $config['copyright']:''),'theme'=>2])}
{$form_widget->filesystem_pic(['title'=>'logo','name'=>'logo','data'=>(isset($config['logo'])? $config['logo']:''),'theme'=>3])}
{$form_widget->form_input(['title'=>'百度推送接口','name'=>'bd_tsjk','data'=>(isset($config['bd_tsjk'])? $config['bd_tsjk']:''),'theme'=>2])}
{$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])}
{$form_widget->form_textarea(['title'=>'统计代码','name'=>'tongji','data'=>(isset($config['tongji'])? $config['tongji']:''),'theme'=>2])}
{$form_widget->form_textarea(['title'=>'oss图片域名(多个用,隔开)','name'=>'cms_oss_sites','data'=>(isset($config['cms_oss_sites'])? $config['cms_oss_sites']:''),'theme'=>2])}
{$form_widget->form_textarea(['title'=>'文章版权声明','name'=>'cms_post_copyright','data'=>(isset($config['cms_post_copyright'])? $config['cms_post_copyright']:''),'theme'=>2])}
<div class="layui-form-item">
<label class="layui-form-label">管理系统模板</label>
<div class="layui-input-inline" style="width: 500px;">
<select name="template_home">
<?php if(isset($config['template_home'])){ $config['template_home'] = $config['template_home']; ?>
<option value="index" {$config['template_home']=='index'?'selected':''}> Index模板</option>
<option value="index_cms" {$config['template_home']=='index_cms'?'selected':''}> cms模板</option>
<option value="index_blog" {$config['template_home']=='index_blog'?'selected':''}> 博客模板</option>
<option value="index_page" {$config['template_home']=='index_page'?'selected':''}> 单页模板</option>
<?php }else{ ?>
<option value="index" selected> Index模板</option>
<?php } ?>
</select>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
{$form_widget->form_input(['title'=>'管理系统单页模板CID','name'=>'template_home_cid','data'=>(isset($config['template_home_cid'])? $config['template_home_cid']:''),'theme'=>2])}
<div class="layui-form-item">
<div class="layui-input-block">
<a href="javascript:;" class="layui-btn layui-btn-sm" onclick="tijiao_data2('/i_admin',0)" >确认保存</a>
</div>
</div>
</div>
</form>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
</div>
</div>
<script>
layui.define(['form', 'upload'], function(exports){
var $ = layui.$
,layer = layui.layer
,laytpl = layui.laytpl
,setter = layui.setter
,view = layui.view
,admin = layui.admin
,form = layui.form
,upload = layui.upload;
window.tijiao_data2 = function(role,type=1){
var index = layer.load(2);
var data = $(".info_tj input,.info_tj select,.info_tj textarea,.info_tj radio").serialize();
$.ajax({
type:'post',
url:role,
data:data,
dataType:'json',
success:function(res){
console.log(res)
if(res.result==1){
layer.msg(res.msg, {icon: 1});
layer.close(index)
setTimeout(function() {
if(type==1){
parent.location.reload();
}else{
// location.reload();
}
}, 2000);
}else{
layer.msg(res.msg, {icon: 2});
layer.close(index)
}
}
})
}
})
</script>
</body>
</html>
评论 (56)
评论输入框评论列表
没有任何评论