diff --git a/app/Common/function.php b/app/Common/function.php index 474ac1c..a025759 100644 --- a/app/Common/function.php +++ b/app/Common/function.php @@ -621,7 +621,7 @@ function imgmatch($url) //将栏目列表生成数组 function get_category($modelname, $parent_id=0, $pad=0) { - $arr=array(); + $arr = array(); $temp = \DB::table($modelname)->where('pid', $parent_id)->orderBy('id', 'asc')->get(); $cats = object_to_array($temp); @@ -631,12 +631,15 @@ function get_category($modelname, $parent_id=0, $pad=0) foreach($cats as $row)//循环数组 { $row['deep'] = $pad; - if(get_category($modelname,$row["id"]))//如果子级不为空 + + if($child = get_category($modelname, $row["id"], $pad+1))//如果子级不为空 { - $row['child'] = get_category($modelname,$row["id"],$pad+1); + $row['child'] = $child; } + $arr[] = $row; } + return $arr; } } diff --git a/app/Http/Controllers/Admin/IndexController.php b/app/Http/Controllers/Admin/IndexController.php index e1aa3e9..4e291bd 100644 --- a/app/Http/Controllers/Admin/IndexController.php +++ b/app/Http/Controllers/Admin/IndexController.php @@ -12,20 +12,17 @@ class IndexController extends CommonController public function index() { - $data['menus'] = category_tree(get_category('menu',0)); - - if($_SESSION['admin_user_info']['role_id']==1) - { - - } - else - { - - } + $leftmenu = new \App\Http\Model\Menu(); + $data['menus'] = $leftmenu::getPermissionsMenu($_SESSION['admin_user_info']['role_id']); return view('admin.index.index', $data); } + public function welcome() + { + return view('admin.index.welcome'); + } + //更新配置 public function upconfig() { diff --git a/app/Http/Controllers/Admin/LoginController.php b/app/Http/Controllers/Admin/LoginController.php index fcc2eed..16a4d1d 100644 --- a/app/Http/Controllers/Admin/LoginController.php +++ b/app/Http/Controllers/Admin/LoginController.php @@ -98,4 +98,16 @@ class LoginController extends BaseController return DB::table("user")->where($map)->count(); } + + //测试 + public function test() + { + //管理员菜单 + /* for ($x=1; $x<=103; $x++) + { + DB::table('access')->insert(['role_id' => 1, 'menu_id' => $x]); + } */ + + echo '123'; + } } \ No newline at end of file diff --git a/app/Http/Controllers/Admin/MenuController.php b/app/Http/Controllers/Admin/MenuController.php index a22674f..5b75c0b 100644 --- a/app/Http/Controllers/Admin/MenuController.php +++ b/app/Http/Controllers/Admin/MenuController.php @@ -33,8 +33,12 @@ class MenuController extends CommonController public function doadd() { unset($_POST["_token"]); - if(DB::table('menu')->insert($_POST)) + + $menuid = DB::table('menu')->insertGetId($_POST); + if($menuid) { + DB::table('access')->insert(['role_id' => 1, 'menu_id' => $menuid]); + success_jump('添加成功!', route('admin_menu')); } else @@ -76,6 +80,8 @@ class MenuController extends CommonController if(DB::table('menu')->whereIn("id", explode(',', $id))->delete()) { + DB::table('access')->where('role_id', 1)->whereIn("menu_id", explode(',', $id))->delete(); + success_jump('删除成功'); } else diff --git a/app/Http/Controllers/Admin/ProducttypeController.php b/app/Http/Controllers/Admin/ProducttypeController.php index 0a01cc8..996b3d6 100644 --- a/app/Http/Controllers/Admin/ProducttypeController.php +++ b/app/Http/Controllers/Admin/ProducttypeController.php @@ -75,7 +75,7 @@ class ProductTypeController extends CommonController $data['id'] = $id; $post = object_to_array(DB::table("product_type")->where('id', $id)->first(), 1); - $reid = $post['reid']; + $reid = $post['pid']; if($reid!=0){$data['postone'] = object_to_array(DB::table("product_type")->where('id', $reid)->first(), 1);} $data['post'] = $post; diff --git a/app/Http/Model/Menu.php b/app/Http/Model/Menu.php new file mode 100644 index 0000000..15e3547 --- /dev/null +++ b/app/Http/Model/Menu.php @@ -0,0 +1,63 @@ +isValid()) { + $newName = md5(rand(1, 1000) . $pic->getClientOriginalName()) . "." . $pic->getClientOriginalExtension(); + $pic->move('uploads', $newName); + return $newName; + } + } + return ''; + } + + //获取后台管理员所具有权限的菜单列表 + public static function getPermissionsMenu($role_id, $pid=0, $pad=0) + { + $res = []; + + $where['access.role_id'] = $role_id; + $where['menu.pid'] = $pid; + $where["menu.status"] = 1; + + $menu = object_to_array(\DB::table('menu') + ->join('access', 'access.menu_id', '=', 'menu.id') + ->select('menu.*', 'access.role_id') + ->where($where) + ->orderBy('listorder', 'asc') + ->get()); + + if($menu) + { + foreach($menu as $row) + { + $row['deep'] = $pad; + + if($PermissionsMenu = self::getPermissionsMenu($role_id, $row['id'], $pad+1)) + { + $row['child'] = $PermissionsMenu; + } + + $res[] = $row; + } + } + + return $res; + } +} \ No newline at end of file diff --git a/public/css/admin.css b/public/css/admin.css index 2812c0e..bd688f3 100644 --- a/public/css/admin.css +++ b/public/css/admin.css @@ -1,96 +1,58 @@ .mauto{margin-left:auto;margin-right:auto;} .blog-masthead{background-color:#01aef0;} -.blog-nav-item{position:relative;display:inline-block;padding:10px 20px;font-weight:500;color:#fff;} +.blog-nav-item{position:relative;display:inline-block;padding:15px 20px;font-weight:500;color:#fff;font-size:16px;} .blog-nav-item:hover,.blog-nav-item:focus{background-color:#00a9e9;color:#fff;text-decoration:none;} .blog-nav .active{background-color:#00a9e9;color:#fff;} .blog-nav .active:after{position:absolute;bottom:0;left:50%;width:0;height:0;margin-left:-5px;vertical-align:middle;content:" ";border-right:5px solid transparent;border-bottom:5px solid;border-left:5px solid transparent;} -.sidebar{background-color:#fff;border-right:1px solid #e5e5e5;padding:0} +.sidebar{background-color:#fff;/* border-right:1px solid #e5e5e5; */padding:0;} .rightbox{} #mainbox{} -input[type="text"],input[type="password"]{padding:4px 5px;vertical-align:middle;border: 1px solid #DBDBDB;} +input[type="text"],input[type="password"]{padding:4px 5px;vertical-align:middle;border:1px solid #DBDBDB;} .input-error{background-color:#ffe7e7;} .inputerror{border-color:#4aaf51;} -.bline {border-bottom: 1px dotted #BCBCBC;height: 28px;background-color: #FFFFFF;} +.bline {border-bottom:1px dotted #BCBCBC;height:28px;background-color:#FFFFFF;} .lnav{} -.lnav dt{padding: 9px 20px;color: #01aef0;border-bottom: 1px solid #E5E5E5;background: #f3f3f3;color: #353735;} -.lnav dd {cursor: pointer;border-bottom: 1px solid #EEEEEE;} -.lnav dd a {display: block;padding: 9px 20px;font-size: 14px;color: #625C5C;} +.lnav dt{padding:9px 20px;color:#01aef0;border-bottom:1px solid #E5E5E5;background:#f3f3f3;color:#353735;} +.lnav dd {cursor:pointer;border-bottom:1px solid #EEEEEE;} +.lnav dd a {display:block;padding:9px 20px;font-size:14px;color:#625C5C;} .mask{z-index:5;position:fixed;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.5);} -.login-outer{ - width: 400px; - margin-left: auto; - margin-right: auto; - margin-top: 200px; - background-color:#ffffff ; - -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25); - -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25); - box-shadow: 0 2px 10px rgba(0,0,0,.25); -} -.login-title{z-index:999; - background-color: #535E5F; - color: #ffffff; - padding: 8px 15px 8px 20px; - -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25); - -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25); - box-shadow: 0 2px 10px rgba(0,0,0,.25); -} -.btn-close{ - float:right; - color:#fff; -} +.login-outer{width:400px;margin-left:auto;margin-right:auto;margin-top:200px;background-color:#ffffff ;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.25);-moz-box-shadow:0 2px 10px rgba(0,0,0,.25);box-shadow:0 2px 10px rgba(0,0,0,.25);} +.login-title{z-index:999;background-color:#535E5F;color:#ffffff;padding:8px 15px 8px 20px;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.25);-moz-box-shadow:0 2px 10px rgba(0,0,0,.25);box-shadow:0 2px 10px rgba(0,0,0,.25);} +.btn-close{float:right;color:#fff;} .btn-close:hover{color:#fff;} -.btn-close img{ - width: 100%; -} +.btn-close img{width:100%;} /*- tableBasic -*/ -.tableBasic { -background-color: #F9F9F9; -color: #666666; -border-left: 1px dotted #CCCCCC; -border-top: 1px dotted #CCCCCC; -} -.tableBasic td, .tableBasic th { -border-right: 1px dotted #CCCCCC; -border-bottom: 1px dotted #CCCCCC; -} -.tableBasic th { -background-color: #EEEEEE; -height: 16px; -} -.tableBasic .child { -background-color: #FFFFFF; -} -.inpMain { -border: 1px solid #DBDBDB; -background-color: #FFF; -padding: 4px 5px; -color: #999; -font-size: 12x; -line-height: 20px; --webkit-appearance: none; -} -.textArea { -border: 1px solid #DBDBDB; -background-color: #FFF; -padding: 4px 5px; -color: #999; -font-size: 12x; -line-height: 20px; --webkit-appearance: none; -} +.tableBasic {background-color:#F9F9F9;color:#666666;border-left:1px dotted #CCCCCC;border-top:1px dotted #CCCCCC;} +.tableBasic td, .tableBasic th {border-right:1px dotted #CCCCCC;border-bottom:1px dotted #CCCCCC;} +.tableBasic th {background-color:#EEEEEE;height:16px;} +.tableBasic .child {background-color:#FFFFFF;} +.inpMain {border:1px solid #DBDBDB;background-color:#FFF;padding:4px 5px;color:#999;font-size:12x;line-height:20px;-webkit-appearance:none;} +.textArea {border:1px solid #DBDBDB;background-color:#FFF;padding:4px 5px;color:#999;font-size:12x;line-height:20px;-webkit-appearance:none;} .backpages{text-align:center;padding:15px 0px;}.backpages a:hover{background:#01aef0;color:#fff;border:1px solid #01aef0;} .backpages a{display:inline-block;height:32px;line-height:32px;padding:0 10px;font-size:14px;color:#333;background:#fff;margin-right:8px;border:1px solid #e3e3e3;} .backpages .current{display:inline-block;height:32px;line-height:32px;padding:0 10px;font-size:14px;background:#01aef0;color:#fff;margin-right:8px;border:1px solid #01aef0;} - +/* 后台左侧菜单 */ +.menu ul{padding:0;} +.menu ul li{background-color:#f2f2f2;border:solid 1px #E5E5E5;border-bottom:0;} +.menu ul li a{padding-left:20px;color:#444;display:block;height:45px;line-height:45px;position:relative;font-size:16px;} +.menu ul li .inactive{background:url(/images/off.png) no-repeat 90% center;} +.menu ul li .active{background:url(/images/on.png) no-repeat 90% center;color:#01aef0;} +.menu ul li ul{display:none;padding:0;} +.menu ul li ul li{border-left:0;border-right:0;background-color:#fafafa;border-color:#eee;} +.menu ul li ul li ul{display:none;padding:0;} +.menu ul li ul li a{padding-left:40px;} +.menu ul li ul li ul li {background-color:#fff;border-color:#f2f2f2;} +.menu .last{background-color:#fff;border-color:#eee;} +.menu ul li ul li ul li a{color:#616161;padding-left:60px;} diff --git a/resources/views/admin/article/add.blade.php b/resources/views/admin/article/add.blade.php index c2d0e16..bebeb3b 100644 --- a/resources/views/admin/article/add.blade.php +++ b/resources/views/admin/article/add.blade.php @@ -1,9 +1,7 @@ -发布文章_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '发布文章') -
+@section('content')
文章列表 > 发布文章
{{ csrf_field() }} @@ -113,8 +111,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/article/edit.blade.php b/resources/views/admin/article/edit.blade.php index d3de76c..9086707 100644 --- a/resources/views/admin/article/edit.blade.php +++ b/resources/views/admin/article/edit.blade.php @@ -1,9 +1,7 @@ -修改文章_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '文章修改') -
+@section('content')
文章列表 > 修改文章
{{ csrf_field() }} @@ -114,8 +112,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/article/index.blade.php b/resources/views/admin/article/index.blade.php index 53c4bbc..d4ec7e4 100644 --- a/resources/views/admin/article/index.blade.php +++ b/resources/views/admin/article/index.blade.php @@ -1,9 +1,8 @@ -文章列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '文章列表') - - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/category/add.blade.php b/resources/views/admin/category/add.blade.php index cc8855e..47272e7 100644 --- a/resources/views/admin/category/add.blade.php +++ b/resources/views/admin/category/add.blade.php @@ -1,9 +1,7 @@ -添加栏目_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '栏目添加') -
+@section('content')
栏目管理 > 栏目添加
{{ csrf_field() }} @@ -95,8 +93,6 @@ function upImage()
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/category/edit.blade.php b/resources/views/admin/category/edit.blade.php index 8bba7d4..25d83de 100644 --- a/resources/views/admin/category/edit.blade.php +++ b/resources/views/admin/category/edit.blade.php @@ -1,9 +1,7 @@ -栏目修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '栏目修改') -
+@section('content')
栏目管理 > 栏目修改
{{ csrf_field() }} @@ -91,8 +89,6 @@ function upImage()
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/category/index.blade.php b/resources/views/admin/category/index.blade.php index 2ca77a1..684dce6 100644 --- a/resources/views/admin/category/index.blade.php +++ b/resources/views/admin/category/index.blade.php @@ -1,9 +1,7 @@ -栏目列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '栏目列表') -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/common/leftmenu.blade.php b/resources/views/admin/common/leftmenu.blade.php index 82d27f3..7f56978 100644 --- a/resources/views/admin/common/leftmenu.blade.php +++ b/resources/views/admin/common/leftmenu.blade.php @@ -26,120 +26,25 @@ $(document).ready(function(){ $('.active').trigger("click"); }); - - - \ No newline at end of file diff --git a/resources/views/admin/friendlink/add.blade.php b/resources/views/admin/friendlink/add.blade.php index d65342a..cb00c72 100644 --- a/resources/views/admin/friendlink/add.blade.php +++ b/resources/views/admin/friendlink/add.blade.php @@ -1,9 +1,7 @@ -添加友情链接_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '友情链接添加') -
+@section('content')
友情链接列表 > 添加友情链接
{{ csrf_field() }} @@ -21,8 +19,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/friendlink/edit.blade.php b/resources/views/admin/friendlink/edit.blade.php index f0f2cc4..46ca39f 100644 --- a/resources/views/admin/friendlink/edit.blade.php +++ b/resources/views/admin/friendlink/edit.blade.php @@ -1,9 +1,7 @@ -友情链接修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '友情链接修改') -
+@section('content')
友情链接列表 > 友情链接修改
{{ csrf_field() }} @@ -21,8 +19,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/friendlink/index.blade.php b/resources/views/admin/friendlink/index.blade.php index 63f9f23..81b8b6b 100644 --- a/resources/views/admin/friendlink/index.blade.php +++ b/resources/views/admin/friendlink/index.blade.php @@ -1,9 +1,7 @@ -友情链接列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '友情链接列表') -
+@section('content')

友情链接管理

[ 添加友情链接 ]

@@ -23,6 +21,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/guestbook/index.blade.php b/resources/views/admin/guestbook/index.blade.php index 773c5d5..c9c6e47 100644 --- a/resources/views/admin/guestbook/index.blade.php +++ b/resources/views/admin/guestbook/index.blade.php @@ -1,11 +1,7 @@ -留言列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '留言列表') -
- - @@ -55,6 +51,4 @@ $(function(){ }); }); - -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/index/index.blade.php b/resources/views/admin/index/index.blade.php index cf70256..56c26ac 100644 --- a/resources/views/admin/index/index.blade.php +++ b/resources/views/admin/index/index.blade.php @@ -1,17 +1,77 @@ -<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理@include('admin.common.header') +<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理 + + + + + +
- +
-

LQYCMS管理中心

-

· 欢迎使用专业的PHP网站管理系统,轻松建站的首选利器,完全免费、开源、无授权限制。
-· LQYCMS采用PHP+Mysql架构,符合企业网站SEO优化理念、功能全面、安全稳定。

-

网站基本信息

-域名/IP: |
-

开发人员

- FLi、当代范蠡

-我们的联系方式:374861669@qq.com

-© LQYCMS 版权所有 + +
\ No newline at end of file diff --git a/resources/views/admin/index/welcome.blade.php b/resources/views/admin/index/welcome.blade.php new file mode 100644 index 0000000..217686c --- /dev/null +++ b/resources/views/admin/index/welcome.blade.php @@ -0,0 +1,14 @@ +@extends('admin.layouts.app') +@section('title', '首页') + +@section('content') +

LQYCMS管理中心

+

· 欢迎使用专业的PHP网站管理系统,轻松建站的首选利器,完全免费、开源、无授权限制。
+· LQYCMS采用PHP+Mysql架构,符合企业网站SEO优化理念、功能全面、安全稳定。

+

网站基本信息

+域名/IP: |
+

开发人员

+ FLi、当代范蠡

+我们的联系方式:374861669@qq.com

+© LQYCMS 版权所有 +@endsection \ No newline at end of file diff --git a/resources/views/admin/keyword/add.blade.php b/resources/views/admin/keyword/add.blade.php index 11ef85d..1d26648 100644 --- a/resources/views/admin/keyword/add.blade.php +++ b/resources/views/admin/keyword/add.blade.php @@ -1,9 +1,7 @@ -添加关键词_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '关键词添加') -
+@section('content')
关键词列表 > 添加关键词
{{ csrf_field() }} @@ -21,8 +19,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/keyword/edit.blade.php b/resources/views/admin/keyword/edit.blade.php index d20565d..1a8b6fb 100644 --- a/resources/views/admin/keyword/edit.blade.php +++ b/resources/views/admin/keyword/edit.blade.php @@ -1,9 +1,7 @@ -关键词修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '关键词修改') -
+@section('content')
关键词列表 > 关键词修改
{{ csrf_field() }} @@ -21,8 +19,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/keyword/index.blade.php b/resources/views/admin/keyword/index.blade.php index 411d860..9eae88f 100644 --- a/resources/views/admin/keyword/index.blade.php +++ b/resources/views/admin/keyword/index.blade.php @@ -1,9 +1,7 @@ -关键词列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '关键词列表') -
+@section('content')

关键词管理

[ 添加关键词 ]

@@ -23,6 +21,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/layouts/app.blade.php b/resources/views/admin/layouts/app.blade.php new file mode 100644 index 0000000..91fa8ed --- /dev/null +++ b/resources/views/admin/layouts/app.blade.php @@ -0,0 +1,5 @@ +@yield('title')_后台管理 + + +@yield('content') + \ No newline at end of file diff --git a/resources/views/admin/menu/add.blade.php b/resources/views/admin/menu/add.blade.php index 4a8735b..4192035 100644 --- a/resources/views/admin/menu/add.blade.php +++ b/resources/views/admin/menu/add.blade.php @@ -1,9 +1,7 @@ -菜单添加_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '菜单添加') -
+@section('content')
菜单列表 > 菜单添加
{{ csrf_field() }} @@ -61,8 +59,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/menu/edit.blade.php b/resources/views/admin/menu/edit.blade.php index fdd0dae..261a6f6 100644 --- a/resources/views/admin/menu/edit.blade.php +++ b/resources/views/admin/menu/edit.blade.php @@ -1,9 +1,7 @@ -菜单修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '菜单修改') -
+@section('content')
菜单列表 > 菜单修改
{{ csrf_field() }} @@ -62,8 +60,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/menu/index.blade.php b/resources/views/admin/menu/index.blade.php index b940384..0d8a6b8 100644 --- a/resources/views/admin/menu/index.blade.php +++ b/resources/views/admin/menu/index.blade.php @@ -1,9 +1,7 @@ -菜单管理_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '菜单管理') -
+@section('content')

菜单管理

[ 菜单添加 ]

@@ -25,6 +23,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/page/add.blade.php b/resources/views/admin/page/add.blade.php index a42cb47..29139b6 100644 --- a/resources/views/admin/page/add.blade.php +++ b/resources/views/admin/page/add.blade.php @@ -1,9 +1,7 @@ -新建单页面_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '新建单页面') -
+@section('content')
页面列表 > 新建页面
{{ csrf_field() }} @@ -79,8 +77,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/page/edit.blade.php b/resources/views/admin/page/edit.blade.php index 6e037e0..ab65715 100644 --- a/resources/views/admin/page/edit.blade.php +++ b/resources/views/admin/page/edit.blade.php @@ -1,9 +1,7 @@ -修改单页面_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '单页面修改') -
+@section('content')
页面列表 > 新建页面
{{ csrf_field() }} @@ -79,8 +77,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/page/index.blade.php b/resources/views/admin/page/index.blade.php index b197392..98744e8 100644 --- a/resources/views/admin/page/index.blade.php +++ b/resources/views/admin/page/index.blade.php @@ -1,9 +1,7 @@ -单页面列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '单页面列表') -
+@section('content')

单页文档管理

[ 增加一个页面 ]

@@ -28,6 +26,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/product/add.blade.php b/resources/views/admin/product/add.blade.php index e3c1ca4..47f55c1 100644 --- a/resources/views/admin/product/add.blade.php +++ b/resources/views/admin/product/add.blade.php @@ -1,9 +1,7 @@ -添加商品信息_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '商品添加') -
+@section('content')
商品列表 > 添加商品
{{ csrf_field() }} @@ -108,8 +106,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/product/edit.blade.php b/resources/views/admin/product/edit.blade.php index 98e93c5..4d6692b 100644 --- a/resources/views/admin/product/edit.blade.php +++ b/resources/views/admin/product/edit.blade.php @@ -1,9 +1,7 @@ -修改商品信息_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '商品信息修改') -
+@section('content')
商品列表 > 修改商品
{{ csrf_field() }} @@ -109,8 +107,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/product/index.blade.php b/resources/views/admin/product/index.blade.php index 4a33fb7..6cea8b0 100644 --- a/resources/views/admin/product/index.blade.php +++ b/resources/views/admin/product/index.blade.php @@ -1,9 +1,8 @@ -商品列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '商品列表') -
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/producttype/edit.blade.php b/resources/views/admin/producttype/edit.blade.php index 48a89a0..2c07568 100644 --- a/resources/views/admin/producttype/edit.blade.php +++ b/resources/views/admin/producttype/edit.blade.php @@ -1,9 +1,7 @@ -修改分类_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '商品分类修改') -
+@section('content')
商品分类管理 > 修改分类
{{ csrf_field() }} @@ -91,8 +89,6 @@ function upImage()
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/producttype/index.blade.php b/resources/views/admin/producttype/index.blade.php index 1048e37..f309065 100644 --- a/resources/views/admin/producttype/index.blade.php +++ b/resources/views/admin/producttype/index.blade.php @@ -1,9 +1,7 @@ -商品分类_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '商品分类') -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/searchword/add.blade.php b/resources/views/admin/searchword/add.blade.php index 8b55e31..73fdcd8 100644 --- a/resources/views/admin/searchword/add.blade.php +++ b/resources/views/admin/searchword/add.blade.php @@ -1,9 +1,7 @@ -添加搜索关键词_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '搜索关键词添加') -
+@section('content')
搜索关键词列表 > 添加关键词
{{ csrf_field() }} @@ -79,8 +77,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/searchword/edit.blade.php b/resources/views/admin/searchword/edit.blade.php index 28a133c..d7cdd38 100644 --- a/resources/views/admin/searchword/edit.blade.php +++ b/resources/views/admin/searchword/edit.blade.php @@ -1,9 +1,7 @@ -修改搜索关键词_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '搜索关键词修改') -
+@section('content')
搜索关键词列表 > 修改关键词
{{ csrf_field() }} @@ -79,8 +77,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/searchword/index.blade.php b/resources/views/admin/searchword/index.blade.php index 16c30aa..b0ee1cb 100644 --- a/resources/views/admin/searchword/index.blade.php +++ b/resources/views/admin/searchword/index.blade.php @@ -1,9 +1,7 @@ -搜索关键词列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '搜索关键词列表') -
+@section('content')

搜索关键词管理

[ 增加关键词 ]

@@ -28,6 +26,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/slide/add.blade.php b/resources/views/admin/slide/add.blade.php index a2eb9ea..7d79072 100644 --- a/resources/views/admin/slide/add.blade.php +++ b/resources/views/admin/slide/add.blade.php @@ -1,9 +1,7 @@ -添加轮播图_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '轮播图添加') -
+@section('content')
轮播图列表 > 添加轮播图
{{ csrf_field() }} @@ -81,8 +79,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/slide/edit.blade.php b/resources/views/admin/slide/edit.blade.php index 7e1fbb0..d7e6216 100644 --- a/resources/views/admin/slide/edit.blade.php +++ b/resources/views/admin/slide/edit.blade.php @@ -1,9 +1,7 @@ -轮播图修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '轮播图修改') -
+@section('content')
轮播图列表 > 轮播图修改
{{ csrf_field() }} @@ -81,8 +79,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/slide/index.blade.php b/resources/views/admin/slide/index.blade.php index c4b80fb..a6e15bd 100644 --- a/resources/views/admin/slide/index.blade.php +++ b/resources/views/admin/slide/index.blade.php @@ -1,9 +1,7 @@ -轮播图列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '轮播图列表') -
+@section('content')

轮播图管理

[ 添加轮播图 ]

@@ -27,6 +25,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/sysconfig/add.blade.php b/resources/views/admin/sysconfig/add.blade.php index 2096ffe..927cce3 100644 --- a/resources/views/admin/sysconfig/add.blade.php +++ b/resources/views/admin/sysconfig/add.blade.php @@ -1,9 +1,7 @@ -添加参数_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '参数添加') -
+@section('content')
系统配置参数 > 添加参数
{{ csrf_field() }} @@ -25,8 +23,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/sysconfig/edit.blade.php b/resources/views/admin/sysconfig/edit.blade.php index 76533d0..4e551bb 100644 --- a/resources/views/admin/sysconfig/edit.blade.php +++ b/resources/views/admin/sysconfig/edit.blade.php @@ -1,9 +1,7 @@ -参数修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '参数修改') -
+@section('content')
系统配置参数 > 参数修改
{{ csrf_field() }} @@ -25,8 +23,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/sysconfig/index.blade.php b/resources/views/admin/sysconfig/index.blade.php index be68a79..fa2f3a3 100644 --- a/resources/views/admin/sysconfig/index.blade.php +++ b/resources/views/admin/sysconfig/index.blade.php @@ -1,9 +1,7 @@ -系统配置参数_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '系统配置参数') -
+@section('content')

系统配置参数

[ 添加参数 ] [ 更新配置缓存 ]

@@ -25,6 +23,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/tag/add.blade.php b/resources/views/admin/tag/add.blade.php index c612a3b..51675b4 100644 --- a/resources/views/admin/tag/add.blade.php +++ b/resources/views/admin/tag/add.blade.php @@ -1,9 +1,7 @@ -添加Tag_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', 'Tag添加') -
+@section('content')
Tag列表 > 添加Tag
{{ csrf_field() }} @@ -90,8 +88,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/tag/edit.blade.php b/resources/views/admin/tag/edit.blade.php index c1dad34..554f050 100644 --- a/resources/views/admin/tag/edit.blade.php +++ b/resources/views/admin/tag/edit.blade.php @@ -1,9 +1,7 @@ -修改Tag_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', 'Tag修改') -
+@section('content')
Tag列表 > 修改Tag
{{ csrf_field() }} @@ -90,8 +88,6 @@ function upImage()   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/tag/index.blade.php b/resources/views/admin/tag/index.blade.php index 86cb7f4..89130d0 100644 --- a/resources/views/admin/tag/index.blade.php +++ b/resources/views/admin/tag/index.blade.php @@ -1,9 +1,7 @@ -Tag列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', 'Tag列表') -
+@section('content')

Tag管理

[ 增加Tag标签 ]

@@ -29,6 +27,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/user/add.blade.php b/resources/views/admin/user/add.blade.php index 498ce29..9a28139 100644 --- a/resources/views/admin/user/add.blade.php +++ b/resources/views/admin/user/add.blade.php @@ -1,9 +1,7 @@ -管理员添加_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '管理员添加') -
+@section('content')
管理员列表 > 管理员添加
{{ csrf_field() }} @@ -35,8 +33,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/user/edit.blade.php b/resources/views/admin/user/edit.blade.php index e700721..29ff355 100644 --- a/resources/views/admin/user/edit.blade.php +++ b/resources/views/admin/user/edit.blade.php @@ -1,9 +1,7 @@ -管理员修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '管理员修改') -
+@section('content')
管理员列表 > 管理员修改
{{ csrf_field() }} @@ -38,8 +36,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/user/index.blade.php b/resources/views/admin/user/index.blade.php index 5bfa7f7..bfa5437 100644 --- a/resources/views/admin/user/index.blade.php +++ b/resources/views/admin/user/index.blade.php @@ -1,9 +1,7 @@ -管理员列表_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '管理员列表') -
+@section('content')

管理员列表

[ 添加管理员 ]

@@ -25,6 +23,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/userrole/add.blade.php b/resources/views/admin/userrole/add.blade.php index 70b166f..5b735a8 100644 --- a/resources/views/admin/userrole/add.blade.php +++ b/resources/views/admin/userrole/add.blade.php @@ -1,9 +1,7 @@ -添加角色_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '添加角色') -
+@section('content')
角色列表 > 添加角色
{{ csrf_field() }} @@ -32,8 +30,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/userrole/edit.blade.php b/resources/views/admin/userrole/edit.blade.php index 57d4786..f5ee5a6 100644 --- a/resources/views/admin/userrole/edit.blade.php +++ b/resources/views/admin/userrole/edit.blade.php @@ -1,9 +1,7 @@ -角色修改_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '角色修改') -
+@section('content')
角色列表 > 角色修改
{{ csrf_field() }} @@ -32,8 +30,6 @@   
-
- - \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/userrole/index.blade.php b/resources/views/admin/userrole/index.blade.php index 2f65dfc..163ba1b 100644 --- a/resources/views/admin/userrole/index.blade.php +++ b/resources/views/admin/userrole/index.blade.php @@ -1,9 +1,7 @@ -角色管理_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '角色管理') -
+@section('content')

角色管理

[ 添加角色 ]

@@ -25,6 +23,4 @@
- -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/resources/views/admin/userrole/permissions.blade.php b/resources/views/admin/userrole/permissions.blade.php index e7879ba..c090ee7 100644 --- a/resources/views/admin/userrole/permissions.blade.php +++ b/resources/views/admin/userrole/permissions.blade.php @@ -1,9 +1,7 @@ -角色权限设置_后台管理@include('admin.common.header') -
-
- +@extends('admin.layouts.app') +@section('title', '角色权限设置') -
+@section('content')

角色权限设置

[ 角色列表 ]

{{ csrf_field() }} @@ -63,5 +61,4 @@ function checknode(obj) } } -
- \ No newline at end of file +@endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 88490d4..cae17ec 100644 --- a/routes/web.php +++ b/routes/web.php @@ -55,6 +55,7 @@ Route::group(['namespace' => 'Home'], function () { //后台路由 Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['web']], function () { Route::get('/', 'IndexController@index')->name('admin'); + Route::get('/welcome', 'IndexController@welcome')->name('admin_welcome'); Route::get('/index/upconfig', 'IndexController@upconfig')->name('admin_index_upconfig'); //更新系统参数配置 Route::get('/index/upcache', 'IndexController@upcache')->name('admin_index_upcache'); //更新缓存 //文章 @@ -172,6 +173,8 @@ Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['w Route::get('/recoverpwd', 'LoginController@recoverpwd')->name('admin_recoverpwd'); //页面跳转 Route::get('/jump', 'LoginController@jump')->name('admin_jump'); + //测试 + Route::get('/test', 'LoginController@test')->name('admin_test'); }); //接口路由