Browse Source

后台布局

master
林一峰 8 years ago
parent
commit
9de69a9fc1
  1. 9
      app/Common/function.php
  2. 17
      app/Http/Controllers/Admin/IndexController.php
  3. 12
      app/Http/Controllers/Admin/LoginController.php
  4. 8
      app/Http/Controllers/Admin/MenuController.php
  5. 2
      app/Http/Controllers/Admin/ProducttypeController.php
  6. 63
      app/Http/Model/Menu.php
  7. 98
      public/css/admin.css
  8. 12
      resources/views/admin/article/add.blade.php
  9. 12
      resources/views/admin/article/edit.blade.php
  10. 13
      resources/views/admin/article/index.blade.php
  11. 12
      resources/views/admin/article/repetarc.blade.php
  12. 12
      resources/views/admin/category/add.blade.php
  13. 12
      resources/views/admin/category/edit.blade.php
  14. 11
      resources/views/admin/category/index.blade.php
  15. 135
      resources/views/admin/common/leftmenu.blade.php
  16. 12
      resources/views/admin/friendlink/add.blade.php
  17. 12
      resources/views/admin/friendlink/edit.blade.php
  18. 12
      resources/views/admin/friendlink/index.blade.php
  19. 14
      resources/views/admin/guestbook/index.blade.php
  20. 82
      resources/views/admin/index/index.blade.php
  21. 14
      resources/views/admin/index/welcome.blade.php
  22. 12
      resources/views/admin/keyword/add.blade.php
  23. 12
      resources/views/admin/keyword/edit.blade.php
  24. 12
      resources/views/admin/keyword/index.blade.php
  25. 5
      resources/views/admin/layouts/app.blade.php
  26. 12
      resources/views/admin/menu/add.blade.php
  27. 12
      resources/views/admin/menu/edit.blade.php
  28. 12
      resources/views/admin/menu/index.blade.php
  29. 46
      resources/views/admin/page/add.blade.php
  30. 42
      resources/views/admin/page/edit.blade.php
  31. 12
      resources/views/admin/page/index.blade.php
  32. 54
      resources/views/admin/product/add.blade.php
  33. 54
      resources/views/admin/product/edit.blade.php
  34. 13
      resources/views/admin/product/index.blade.php
  35. 12
      resources/views/admin/producttype/add.blade.php
  36. 12
      resources/views/admin/producttype/edit.blade.php
  37. 11
      resources/views/admin/producttype/index.blade.php
  38. 12
      resources/views/admin/searchword/add.blade.php
  39. 12
      resources/views/admin/searchword/edit.blade.php
  40. 12
      resources/views/admin/searchword/index.blade.php
  41. 12
      resources/views/admin/slide/add.blade.php
  42. 12
      resources/views/admin/slide/edit.blade.php
  43. 12
      resources/views/admin/slide/index.blade.php
  44. 12
      resources/views/admin/sysconfig/add.blade.php
  45. 12
      resources/views/admin/sysconfig/edit.blade.php
  46. 12
      resources/views/admin/sysconfig/index.blade.php
  47. 12
      resources/views/admin/tag/add.blade.php
  48. 12
      resources/views/admin/tag/edit.blade.php
  49. 12
      resources/views/admin/tag/index.blade.php
  50. 12
      resources/views/admin/user/add.blade.php
  51. 12
      resources/views/admin/user/edit.blade.php
  52. 12
      resources/views/admin/user/index.blade.php
  53. 12
      resources/views/admin/userrole/add.blade.php
  54. 12
      resources/views/admin/userrole/edit.blade.php
  55. 12
      resources/views/admin/userrole/index.blade.php
  56. 11
      resources/views/admin/userrole/permissions.blade.php
  57. 3
      routes/web.php

9
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;
}
}

17
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()
{

12
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';
}
}

8
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

2
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;

63
app/Http/Model/Menu.php

@ -0,0 +1,63 @@
<?php
namespace App\Http\Model;
use Illuminate\Database\Eloquent\Model;
class Menu extends Model
{
protected $table = 'menu';
public $timestamps = false;
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
/**
* 文件上传
* @param $field
* @return string
*/
public function uploadImg($field)
{
if (Request::hasFile($field)) {
$pic = Request::file($field);
if ($pic->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;
}
}

98
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;}

12
resources/views/admin/article/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>发布文章_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '发布文章')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/article">文章列表</a> > 发布文章</h5>
<form id="addarc" method="post" action="/fladmin/article/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -113,8 +111,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -161,4 +157,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/article/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改文章_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '文章修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/article">文章列表</a> > 修改文章</h5>
<form id="addarc" method="post" action="/fladmin/article/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -114,8 +112,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -144,4 +140,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

13
resources/views/admin/article/index.blade.php

@ -1,9 +1,8 @@
<!DOCTYPE html><html><head><title>文章列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '文章列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox"><h5 class="sub-header"><a href="/fladmin/category">栏目管理</a> > <a href="/fladmin/article">文章列表</a> [ <a href="/fladmin/article/add<?php if(!empty($_GET["id"])){echo '?catid='.$_GET["id"];}?>">发布文章</a> ]</h5>
@section('content')
<h5 class="sub-header"><a href="/fladmin/category">栏目管理</a> > <a href="/fladmin/article">文章列表</a> [ <a href="/fladmin/article/add<?php if(!empty($_GET["id"])){echo '?catid='.$_GET["id"];}?>">发布文章</a> ]</h5>
<div class="table-responsive">
<table class="table table-striped table-hover">
@ -110,6 +109,4 @@ $(function(){
});
});
</script>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/article/repetarc.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>重复文档列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '重复文档列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">重复文档列表</h2>[ <a href="/fladmin/article">文章列表</a> ] [ <a href="/fladmin/article/add">发布文章</a> ]<br><br>
<form name="listarc">
@ -21,6 +19,4 @@
<?php }} ?>
</tbody>
</table></div><!-- 表格结束 --></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/category/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加栏目_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '栏目添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/category">栏目管理</a> > 栏目添加</h5>
<form method="post" action="/fladmin/category/doadd" role="form" id="addcat" class="table-responsive">{{ csrf_field() }}
@ -95,8 +93,6 @@ function upImage()
</tbody>
</table>
</form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -142,4 +138,4 @@ $('#addcat input[type="submit"]').click(function(){
}
});
</script>
</body></html>
@endsection

12
resources/views/admin/category/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>栏目修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '栏目修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/category">栏目管理</a> > 栏目修改</h5>
<form method="post" action="/fladmin/category/doedit" role="form" id="addcat" class="table-responsive">{{ csrf_field() }}
@ -91,8 +89,6 @@ function upImage()
</tbody>
</table>
</form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -138,4 +134,4 @@ $('#addcat input[type="submit"]').click(function(){
}
});
</script>
</body></html>
@endsection

11
resources/views/admin/category/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>栏目列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '栏目列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">网站栏目管理</h2>[ <a href="/fladmin/category/add">增加顶级栏目</a> ] [ <a href="/fladmin/article/add">发布文章</a> ]<br><br>
<form name="listarc"><div class="table-responsive">
@ -17,5 +15,4 @@
<td><a href="<?php echo get_front_url(array("type"=>"list","catid"=>$row["id"])); ?>" target="_blank">预览</a> | <a href="/fladmin/article/add?catid=<?php echo $row["id"]; ?>">发布文章</a> | <a href="/fladmin/category/add?reid=<?php echo $row["id"]; ?>">增加子类</a> | <a href="/fladmin/category/edit?id=<?php echo $row["id"]; ?>">更改</a> | <a onclick="delconfirm('/fladmin/category/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

135
resources/views/admin/common/leftmenu.blade.php

@ -26,120 +26,25 @@ $(document).ready(function(){
$('.active').trigger("click");
});
</script>
<style type="text/css">
.list ul{padding:0;}
.list ul li{background-color:#f2f2f2; border:solid 1px #E5E5E5; border-bottom:0;}
.list ul li a{padding-left:20px;color:#444;display:block;height:40px;line-height:40px;position:relative;}
.list ul li .inactive{background:url(/images/off.png) no-repeat 90% center;}
.list ul li .active{background:url(/images/on.png) no-repeat 90% center;}
.list ul li ul{display:none;padding:0;}
.list ul li ul li{border-left:0; border-right:0; background-color:#fafafa; border-color:#eee;}
.list ul li ul li ul{display:none;padding:0;}
.list ul li ul li a{padding-left:40px;}
.list ul li ul li ul li {background-color:#fff;border-color:#f2f2f2;}
.last{background-color:#fff;border-color:#eee;}
.list ul li ul li ul li a{color:#616161;padding-left:60px;}
</style>
<div class="list">
<div class="menu">
<ul class="leftmenu">
<li><a href="#">中国美协章程</a></li>
<li><a href="#" class="inactive active">常用操作</a>
<ul>
<li><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 网站栏目管理</a></li>
<li><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 文章列表</a></li>
<li><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 未审核的文章</a></li>
<li><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 发布文章</a></li>
<li><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 单页文档管理</a></li>
</ul>
</li>
<li><a href="#" class="inactive">商品管理</a>
<ul>
<li><a href="#">商品列表</a></li>
<li><a href="#">添加商品</a></li>
<li><a href="#">商品分类</a></li>
</ul>
</li>
<li><a href="#" class="inactive">组织机构</a>
<ul style="display: none">
<li><a href="#" class="inactive"><small class="glyphicon glyphicon-triangle-right"></small> 美协机关</a>
<ul>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 办公室</a></li>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 人事处</a></li>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 组联部</a></li>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 外联部</a></li>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 研究部</a></li>
<li><a href="#"><small class="glyphicon glyphicon-menu-right"></small> 维权办</a></li>
</ul>
</li>
<li><a href="#" class="inactive"><small class="glyphicon glyphicon-triangle-right"></small> 中国文联美术艺术中心</a>
<ul>
<li><a href="#">综合部</a></li>
<li><a href="#">大型活动部</a></li>
<li><a href="#">展览部</a></li>
<li><a href="#">艺委会工作部</a></li>
<li><a href="#">信息资源部</a></li>
<li><a href="#">双年展办公室</a></li>
</ul>
</li>
<li class="last"><a href="#"><small class="glyphicon glyphicon-triangle-right"></small> 《美术》杂志社</a></li>
</ul>
</li>
<li><a href="#" class="inactive">组织机构</a>
<ul style="display: none">
<li><a href="#" class="inactive">美协机关</a>
<ul>
<li><a href="#">办公室</a></li>
<li><a href="#">人事处</a></li>
<li><a href="#">组联部</a></li>
<li><a href="#">外联部</a></li>
<li><a href="#">研究部</a></li>
<li><a href="#">维权办</a></li>
</ul>
</li>
<li><a href="#" class="inactive">中国文联美术艺术中心</a>
<ul>
<li><a href="#">综合部</a></li>
<li><a href="#">大型活动部</a></li>
<li><a href="#">展览部</a></li>
<li><a href="#">艺委会工作部</a></li>
<li><a href="#">信息资源部</a></li>
<li><a href="#">双年展办公室</a></li>
</ul>
</li>
<li class="last"><a href="#">《美术》杂志社</a></li>
</ul>
</li>
<?php if($menus){ foreach($menus as $k=>$first){ ?>
<!-- 一级菜单 -->
<li><a href="<?php if(isset($first['child'])){echo 'javascript:;';}else{echo route($first['action']);} ?>" class="<?php if(isset($first['child'])){echo 'inactive ';} if($k==0){echo 'active ';} ?>"><?php if($first['icon']){echo '<small class="'.$first['icon'].'"></small>';} ?> <?php echo $first['name']; ?></a>
<!-- 二级菜单 -->
<?php if(isset($first['child'])){ ?>
<ul style="display: none">
<?php foreach($first['child'] as $second){ ?>
<li><a target="appiframe" href="<?php if(isset($second['child'])){echo 'javascript:;';}else{echo route($second['action']);} ?>" class="<?php if(isset($second['child'])){echo 'inactive ';} ?>"><small class="glyphicon glyphicon-triangle-right"></small> <?php echo $second['name']; ?></a>
<!-- 三级菜单 -->
<?php if(isset($second['child'])){ ?>
<ul><?php foreach($second['child'] as $third){ ?>
<li><a target="appiframe" href="{{ route($third['action']) }}"><small class="glyphicon glyphicon-menu-right"></small> <?php echo $third['name']; ?></a></li><?php } ?>
</ul><?php } ?>
</li>
<?php } ?>
</ul><?php } ?>
</li>
<?php }} ?>
</ul>
</div>
<dl class="lnav">
<dt>常用操作</dt>
<dd><a href="<?php echo route('admin'); ?>/category"><span class="glyphicon glyphicon-th-list"></span> 网站栏目管理</a></dd>
<dd><a href="<?php echo route('admin'); ?>/article"><span class="glyphicon glyphicon-pencil"></span> 文章列表</a></dd>
<dd><a href="<?php echo route('admin'); ?>/article?ischeck=1"><span class="glyphicon glyphicon-pencil"></span> 未审核的文章</a></dd>
<dd><a href="<?php echo route('admin'); ?>/article/add"><span class="glyphicon glyphicon-file"></span> 发布文章</a></dd>
<dd><a href="<?php echo route('admin'); ?>/page"><span class="glyphicon glyphicon-equalizer"></span> 单页文档管理</a></dd>
<dt>商品管理</dt>
<dd><a href="<?php echo route('admin'); ?>/product"><span class="glyphicon glyphicon-pencil"></span> 商品列表</a></dd>
<dd><a href="<?php echo route('admin'); ?>/product/add"><span class="glyphicon glyphicon-file"></span> 添加商品</a></dd>
<dd><a href="<?php echo route('admin'); ?>/producttype"><span class="glyphicon glyphicon-th-list"></span> 商品分类</a></dd>
<dt>批量维护</dt>
<dd><a href="<?php echo route('admin'); ?>/tag"><span class="glyphicon glyphicon-tag"></span> TAG标签管理</a></dd>
<dd><a href="<?php echo route('admin'); ?>/searchword"><span class="glyphicon glyphicon-fire"></span> 关键词管理</a></dd>
<dd><a href="<?php echo route('admin'); ?>/keyword"><span class="glyphicon glyphicon-fire"></span> 內链关键词维护</a></dd>
<dd><a href="<?php echo route('admin'); ?>/friendlink"><span class="glyphicon glyphicon-leaf"></span> 友情链接</a></dd>
<dd><a href="<?php echo route('admin'); ?>/slide"><span class="glyphicon glyphicon-leaf"></span> 轮播图</a></dd>
<dd><a href="<?php echo route('admin'); ?>/article/repetarc"><span class="glyphicon glyphicon-cog"></span> 重复文档检测</a></dd>
<dd><a href="<?php echo route('admin'); ?>/menu"><span class="glyphicon glyphicon-fire"></span> 菜单管理</a></dd>
<dt>用户管理</dt>
<dd><a href="<?php echo route('admin'); ?>/userrole"><span class="glyphicon glyphicon-pencil"></span> 角色管理</a></dd>
<dd><a href="<?php echo route('admin'); ?>/user"><span class="glyphicon glyphicon-user"></span> 管理员</a></dd>
<dt>系统设置</dt>
<dd><a href="<?php echo route('admin'); ?>/sysconfig"><span class="glyphicon glyphicon-wrench"></span> 系统基本参数</a></dd>
<dd><a href="<?php echo route('admin'); ?>/index/upcache"><span class="glyphicon glyphicon-refresh"></span> 更新缓存</a></dd>
<dd><a href="<?php echo route('admin'); ?>/guestbook"><span class="glyphicon glyphicon-wrench"></span> 所有留言</a></dd>
<dd><a href="<?php echo route('admin'); ?>/sysconfig" target="_blank"><span class="glyphicon glyphicon-book"></span> 参考文档</a></dd>
<dd><a href="<?php echo route('admin'); ?>/sysconfig" target="_blank"><span class="glyphicon glyphicon-envelope"></span> 意见反馈/官方交流</a></dd>
</dl>
</div>

12
resources/views/admin/friendlink/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加友情链接_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '友情链接添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/friendlink">友情链接列表</a> > 添加友情链接</h5>
<form id="addarc" method="post" action="/fladmin/friendlink/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -21,8 +19,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -51,4 +47,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/friendlink/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>友情链接修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '友情链接修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/friendlink">友情链接列表</a> > 友情链接修改</h5>
<form id="addarc" method="post" action="/fladmin/friendlink/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -21,8 +19,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -51,4 +47,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/friendlink/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>友情链接列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '友情链接列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">友情链接管理</h2>[ <a href="/fladmin/friendlink/add">添加友情链接</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -23,6 +21,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

14
resources/views/admin/guestbook/index.blade.php

@ -1,11 +1,7 @@
<!DOCTYPE html><html><head><title>留言列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '留言列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
<form id="searcharc" class="navbar-form" action="/fladmin/guestbook" method="get">
@section('content')<form id="searcharc" class="navbar-form" action="/fladmin/guestbook" method="get">
<div class="form-group"><input type="text" name="keyword" id="keyword" class="form-control required" placeholder="搜索关键词..."></div>
<button type="submit" class="btn btn-info" value="Submit">搜索一下</button></form>
@ -55,6 +51,4 @@ $(function(){
});
});
</script>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

82
resources/views/admin/index/index.blade.php

@ -1,17 +1,77 @@
<!DOCTYPE html><html><head><title><?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>@include('admin.common.header')
<!DOCTYPE html><html><head><title><?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo route('home'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo route('home'); ?>/css/admin.css">
<script src="<?php echo route('home'); ?>/js/jquery.min.js"></script><script src="<?php echo route('home'); ?>/js/ad.js"></script><script src="<?php echo route('home'); ?>/js/bootstrap.min.js"></script><script type="text/javascript" src="<?php echo route('home'); ?>/js/jquery.uploadify.min.js"></script></head><body>
<div class="blog-masthead clearfix"><nav class="blog-nav">
<a class="blog-nav-item active" href="<?php echo route('admin'); ?>"><span class="glyphicon glyphicon-star"></span> <strong>后台管理中心</strong> <span class="glyphicon glyphicon-star-empty"></span></a>
<a class="blog-nav-item" href="<?php echo route('home'); ?>" target="_blank"><span class="glyphicon glyphicon-home"></span> 网站主页</a>
<a class="blog-nav-item" href="<?php echo route('admin'); ?>/index/upcache"><span class="glyphicon glyphicon-refresh"></span> 更新缓存</a>
<a class="blog-nav-item" id="navexit" href="<?php echo route('admin_logout'); ?>"><span class="glyphicon glyphicon-off"></span> 注销</a>
<a class="blog-nav-item pull-right" href="javascript:;"><small>您好:<span class="glyphicon glyphicon-user"></span> <?php if(isset($_SESSION['admin_user_info'])){echo $_SESSION['admin_user_info']['username'].' ['.$_SESSION['admin_user_info']['rolename'].']';} ?></small></a>
</nav></div>
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">
<script type="text/javascript">
$(document).ready(function(){
$('.inactive').click(function(){
var className=$(this).parents('li').parents().attr('class');
if($(this).siblings('ul').css('display')=='none')
{
if(className=="leftmenu")
{
$(this).parents('li').siblings('li').children('ul').parent('li').children('a').removeClass('active');
$(this).parents('li').siblings('li').children('ul').slideUp(100);
$(this).parents('li').children('ul').children('li').children('ul').parent('li').children('a').removeClass('active');
$(this).parents('li').children('ul').children('li').children('ul').slideUp(100);
}
$(this).addClass('active');
$(this).siblings('ul').slideDown(100);
}
else
{
$(this).removeClass('active');
$(this).siblings('ul').slideUp(100);
}
});
$('.active').trigger("click");
});
</script>
<div class="menu">
<ul class="leftmenu">
<?php if($menus){ foreach($menus as $k=>$first){ ?>
<!-- 一级菜单 -->
<li><a href="<?php if(isset($first['child'])){echo 'javascript:;';}else{echo route($first['action']);} ?>" class="<?php if(isset($first['child'])){echo 'inactive ';} if($k==0){echo 'active ';} ?>"><?php if($first['icon']){echo '<small class="'.$first['icon'].'"></small>';} ?> <?php echo $first['name']; ?></a>
<!-- 二级菜单 -->
<?php if(isset($first['child'])){ ?>
<ul style="display: none">
<?php foreach($first['child'] as $second){ ?>
<li><a target="appiframe" href="<?php if(isset($second['child'])){echo 'javascript:;';}else{echo route($second['action']);} ?>" class="<?php if(isset($second['child'])){echo 'inactive ';} ?>"><small class="glyphicon glyphicon-triangle-right"></small> <?php echo $second['name']; ?></a>
<!-- 三级菜单 -->
<?php if(isset($second['child'])){ ?>
<ul><?php foreach($second['child'] as $third){ ?>
<li><a target="appiframe" href="{{ route($third['action']) }}"><small class="glyphicon glyphicon-menu-right"></small> <?php echo $third['name']; ?></a></li><?php } ?>
</ul><?php } ?>
</li>
<?php } ?>
</ul><?php } ?>
</li>
<?php }} ?>
</ul>
</div>
</div><!-- 左边结束 -->
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
<h2 class="sub-header">LQYCMS管理中心</h2>
<p>· 欢迎使用专业的PHP网站管理系统,轻松建站的首选利器,完全免费、开源、无授权限制。<br>
· LQYCMS采用PHP+Mysql架构,符合企业网站SEO优化理念、功能全面、安全稳定。</p>
<h3>网站基本信息</h3>
域名/IP:<?php echo $_SERVER["SERVER_NAME"]; ?> | <?php echo $_SERVER["REMOTE_ADDR"]; ?><br>
<h3>开发人员</h3>
FLi、当代范蠡<br><br>
我们的联系方式:374861669@qq.com<br><br>
&copy; LQYCMS 版权所有
<script type="text/javascript">
var viewH = document.documentElement.clientHeight;
var mainbox = document.getElementById("mainbox");
mainbox.style.height = (viewH - 75)+"px";
</script>
<iframe src="<?php echo route('admin_welcome'); ?>" frameborder="0" scrolling="yes" width="100%" height="100%" allowtransparency="true" id="appiframe" name="appiframe"></iframe>
</div></div><!-- 右边结束 --></div></div>
</body></html>

14
resources/views/admin/index/welcome.blade.php

@ -0,0 +1,14 @@
@extends('admin.layouts.app')
@section('title', '首页')
@section('content')
<h2 class="sub-header">LQYCMS管理中心</h2>
<p>· 欢迎使用专业的PHP网站管理系统,轻松建站的首选利器,完全免费、开源、无授权限制。<br>
· LQYCMS采用PHP+Mysql架构,符合企业网站SEO优化理念、功能全面、安全稳定。</p>
<h3>网站基本信息</h3>
域名/IP:<?php echo $_SERVER["SERVER_NAME"]; ?> | <?php echo $_SERVER["REMOTE_ADDR"]; ?><br>
<h3>开发人员</h3>
FLi、当代范蠡<br><br>
我们的联系方式:374861669@qq.com<br><br>
&copy; LQYCMS 版权所有
@endsection

12
resources/views/admin/keyword/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加关键词_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '关键词添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/keyword">关键词列表</a> > 添加关键词</h5>
<form id="addarc" method="post" action="/fladmin/keyword/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -21,8 +19,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -51,4 +47,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/keyword/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>关键词修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '关键词修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/keyword">关键词列表</a> > 关键词修改</h5>
<form id="addarc" method="post" action="/fladmin/keyword/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -21,8 +19,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -51,4 +47,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/keyword/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>关键词列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '关键词列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">关键词管理</h2>[ <a href="/fladmin/keyword/add">添加关键词</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -23,6 +21,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

5
resources/views/admin/layouts/app.blade.php

@ -0,0 +1,5 @@
<!DOCTYPE html><html><head><title>@yield('title')_后台管理</title><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo route('home'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo route('home'); ?>/css/admin.css">
<script src="<?php echo route('home'); ?>/js/jquery.min.js"></script><script src="<?php echo route('home'); ?>/js/ad.js"></script><script src="<?php echo route('home'); ?>/js/bootstrap.min.js"></script><script type="text/javascript" src="<?php echo route('home'); ?>/js/jquery.uploadify.min.js"></script></head><body>
@yield('content')
</body></html>

12
resources/views/admin/menu/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>菜单添加_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '菜单添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/menu">菜单列表</a> > 菜单添加</h5>
<form id="addarc" method="post" action="/fladmin/menu/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -61,8 +59,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -91,4 +87,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/menu/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>菜单修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '菜单修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/menu">菜单列表</a> > 菜单修改</h5>
<form id="addarc" method="post" action="/fladmin/menu/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -62,8 +60,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -92,4 +88,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/menu/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>菜单管理_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '菜单管理')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">菜单管理</h2>[ <a href="/fladmin/menu/add">菜单添加</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -25,6 +23,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

46
resources/views/admin/page/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>新建单页面_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '新建单页面')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/page">页面列表</a> > 新建页面</h5>
<form id="addarc" method="post" action="/fladmin/page/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -79,8 +77,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -120,41 +116,7 @@ $(function(){
var numError = $('#addarc .onError').length;
if(numError){return false;}
//$("#contents").val = ue.getContent();
//var datas = $('#addarc').serialize();//#form要在form里面
//var content = ue.getContent();
/* $.ajax({
url: "/fladmin/page/doadd",
type: "POST",
dataType: "json",
cache: false,
data: {
"template":$("#template").val(),
"filename":$("#filename").val(),
"litpic":$("#litpic").val(),
"title":$("#title").val(),
"seotitle":$("#seotitle").val(),
"keywords":$("#keywords").val(),
"description":$("#description").val(),
"content":content
//"title":title.replace("'", "&#039;"),
//"seotitle":seotitle.replace("'", "&#039;"),
//"keywords":keywords.replace("'", "&#039;"),
//"description":description.replace("'", "&#039;"),
//"contents":content.replace("'", "&#039;")
},
success: function(data){
if(data.code==200)
{
//alert(data.info);
window.location.replace("/fladmin/page");
}
}
}); */
});
});
</script>
</body></html>
@endsection

42
resources/views/admin/page/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改单页面_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '单页面修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/page">页面列表</a> > 新建页面</h5>
<form id="addarc" method="post" action="/fladmin/page/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -79,8 +77,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -120,37 +116,7 @@ $(function(){
var numError = $('#addarc .onError').length;
if(numError){return false;}
//$("#contents").val = ue.getContent();
//var datas = $('#addarc').serialize();//#form要在form里面
//var content = ue.getContent();
/* $.ajax({
url: "/fladmin/page/doedit",
type: "POST",
cache: false,
dataType: "json",
data: {
"id":$("#id").val(),
"template":$("#template").val(),
"filename":$("#filename").val(),
"litpic":$("#litpic").val(),
"title":$("#title").val(),
"seotitle":$("#seotitle").val(),
"keywords":$("#keywords").val(),
"description":$("#description").val(),
"content":content
},
success: function(data){
if(data.code==200)
{
//alert(data.info);
window.location.replace("/fladmin/page");
}
}
}); */
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/page/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>单页面列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '单页面列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">单页文档管理</h2>[ <a href="/fladmin/page/add">增加一个页面</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -28,6 +26,4 @@
<?php }} ?>
</tbody>
</table></div><!-- 表格结束 --></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

54
resources/views/admin/product/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加商品信息_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/product">商品列表</a> > 添加商品</h5>
<form id="addarc" method="post" action="/fladmin/product/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -108,8 +106,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -135,49 +131,7 @@ $(function(){
var numError = $('#addarc .onError').length;
if(numError){return false;}
//$("#contents").val = ue.getContent();
//var datas = $('#addarc').serialize();//#form要在form里面
//var content = ue.getContent();
//var title = $("#title").val();
//var seotitle = $("#seotitle").val();
//var keywords = $("#keywords").val();
//var description = $("#description").val();
/*$.ajax({
url: "/fladmin/product/doedit",
type: "POST",
dataType: "json",
cache: false,
data: {
"id":$("#id").val(),
"typeid":$("#typeid").val(),
"tuijian":$("#tuijian").val(),
"click":$("#click").val(),
"writer":$("#writer").val(),
"source":$("#source").val(),
"litpic":$("#litpic").val(),
"title":$("#title").val(),
"seotitle":$("#seotitle").val(),
"keywords":$("#keywords").val(),
"description":$("#description").val(),
"contents":content
//"title":title.replace("'", "&#039;"),
//"seotitle":seotitle.replace("'", "&#039;"),
//"keywords":keywords.replace("'", "&#039;"),
//"description":description.replace("'", "&#039;"),
//"contents":content.replace("'", "&#039;")
},
success: function(data){
if(data.code==200)
{
//alert(data.info);
window.location.replace("/fladmin/product");
}
}
}); */
});
});
</script>
</body></html>
@endsection

54
resources/views/admin/product/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改商品信息_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品信息修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/product">商品列表</a> > 修改商品</h5>
<form id="addarc" method="post" action="/fladmin/product/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -109,8 +107,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -136,49 +132,7 @@ $(function(){
var numError = $('#addarc .onError').length;
if(numError){return false;}
//$("#contents").val = ue.getContent();
//var datas = $('#addarc').serialize();//#form要在form里面
//var content = ue.getContent();
//var title = $("#title").val();
//var seotitle = $("#seotitle").val();
//var keywords = $("#keywords").val();
//var description = $("#description").val();
/*$.ajax({
url: "/fladmin/product/doedit",
type: "POST",
dataType: "json",
cache: false,
data: {
"id":$("#id").val(),
"typeid":$("#typeid").val(),
"tuijian":$("#tuijian").val(),
"click":$("#click").val(),
"writer":$("#writer").val(),
"source":$("#source").val(),
"litpic":$("#litpic").val(),
"title":$("#title").val(),
"seotitle":$("#seotitle").val(),
"keywords":$("#keywords").val(),
"description":$("#description").val(),
"contents":content
//"title":title.replace("'", "&#039;"),
//"seotitle":seotitle.replace("'", "&#039;"),
//"keywords":keywords.replace("'", "&#039;"),
//"description":description.replace("'", "&#039;"),
//"contents":content.replace("'", "&#039;")
},
success: function(data){
if(data.code==200)
{
//alert(data.info);
window.location.replace("/fladmin/product");
}
}
}); */
});
});
</script>
</body></html>
@endsection

13
resources/views/admin/product/index.blade.php

@ -1,9 +1,8 @@
<!DOCTYPE html><html><head><title>商品列表_<?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox"><h5 class="sub-header"><a href="/fladmin/producttype">商品分类</a> > <a href="/fladmin/product">商品列表</a> [ <a href="/fladmin/product/add<?php if(!empty($_GET["id"])){echo '?catid='.$_GET["id"];}?>">发布商品</a> ]</h5>
@section('content')
<h5 class="sub-header"><a href="/fladmin/producttype">商品分类</a> > <a href="/fladmin/product">商品列表</a> [ <a href="/fladmin/product/add<?php if(!empty($_GET["id"])){echo '?catid='.$_GET["id"];}?>">发布商品</a> ]</h5>
<div class="table-responsive">
<table class="table table-striped table-hover">
@ -110,6 +109,4 @@ $(function(){
});
});
</script>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/producttype/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加分类_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品分类添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/producttype">商品分类管理</a> > 添加分类</h5>
<form method="post" action="/fladmin/producttype/doadd" role="form" id="addcat" class="table-responsive">{{ csrf_field() }}
@ -95,8 +93,6 @@ function upImage()
</tbody>
</table>
</form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -142,4 +138,4 @@ $('#addcat input[type="submit"]').click(function(){
}
});
</script>
</body></html>
@endsection

12
resources/views/admin/producttype/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改分类_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品分类修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/producttype">商品分类管理</a> > 修改分类</h5>
<form method="post" action="/fladmin/producttype/doedit" role="form" id="addcat" class="table-responsive">{{ csrf_field() }}
@ -91,8 +89,6 @@ function upImage()
</tbody>
</table>
</form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -138,4 +134,4 @@ $('#addcat input[type="submit"]').click(function(){
}
});
</script>
</body></html>
@endsection

11
resources/views/admin/producttype/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>商品分类_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '商品分类')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">商品分类管理</h2>[ <a href="/fladmin/producttype/add">增加顶级分类</a> ] [ <a href="/fladmin/product/add">发布商品</a> ]<br><br>
<form name="listarc"><div class="table-responsive">
@ -20,5 +18,4 @@
<td><a href="<?php echo get_front_url(array("type"=>"list","catid"=>$row["id"])); ?>" target="_blank">预览</a> | <a href="/fladmin/product/add?catid=<?php echo $row["id"]; ?>">发布商品</a> | <a href="/fladmin/producttype/add?reid=<?php echo $row["id"]; ?>">增加子类</a> | <a href="/fladmin/producttype/edit?id=<?php echo $row["id"]; ?>">更改</a> | <a onclick="delconfirm('/fladmin/producttype/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/searchword/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加搜索关键词_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '搜索关键词添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/searchword">搜索关键词列表</a> > 添加关键词</h5>
<form id="addarc" method="post" action="/fladmin/searchword/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -79,8 +77,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -123,4 +119,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/searchword/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改搜索关键词_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '搜索关键词修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/searchword">搜索关键词列表</a> > 修改关键词</h5>
<form id="addarc" method="post" action="/fladmin/searchword/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -79,8 +77,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -123,4 +119,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/searchword/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>搜索关键词列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '搜索关键词列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">搜索关键词管理</h2>[ <a href="/fladmin/searchword/add">增加关键词</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -28,6 +26,4 @@
</table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/slide/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加轮播图_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '轮播图添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/slide">轮播图列表</a> > 添加轮播图</h5>
<form id="addarc" method="post" action="/fladmin/slide/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -81,8 +79,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -111,4 +107,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/slide/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>轮播图修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '轮播图修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/slide">轮播图列表</a> > 轮播图修改</h5>
<form id="addarc" method="post" action="/fladmin/slide/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -81,8 +79,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -111,4 +107,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/slide/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>轮播图列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '轮播图列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">轮播图管理</h2>[ <a href="/fladmin/slide/add">添加轮播图</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -27,6 +25,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/sysconfig/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加参数_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '参数添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/sysconfig">系统配置参数</a> > 添加参数</h5>
<form id="addarc" method="post" action="/fladmin/sysconfig/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -25,8 +23,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
var bempty = true;
@ -64,4 +60,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/sysconfig/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>参数修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '参数修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/sysconfig">系统配置参数</a> > 参数修改</h5>
<form id="addarc" method="post" action="/fladmin/sysconfig/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -25,8 +23,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
var bempty = true;
@ -64,4 +60,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/sysconfig/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>系统配置参数_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '系统配置参数')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">系统配置参数</h2>[ <a href="/fladmin/sysconfig/add">添加参数</a> ] [ <a href="<?php echo route('admin_index_upconfig'); ?>">更新配置缓存</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -25,6 +23,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/tag/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加Tag_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', 'Tag添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/tag">Tag列表</a> > 添加Tag</h5>
<form id="addarc" method="post" action="/fladmin/tag/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -90,8 +88,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -134,4 +130,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/tag/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>修改Tag_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', 'Tag修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/tag">Tag列表</a> > 修改Tag</h5>
<form id="addarc" method="post" action="/fladmin/tag/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -90,8 +88,6 @@ function upImage()
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -134,4 +130,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/tag/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>Tag列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', 'Tag列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">Tag管理</h2>[ <a href="/fladmin/tag/add">增加Tag标签</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -29,6 +27,4 @@
</table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/user/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>管理员添加_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '管理员添加')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/user">管理员列表</a> > 管理员添加</h5>
<form id="addarc" method="post" action="/fladmin/user/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -35,8 +33,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -65,4 +61,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/user/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>管理员修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '管理员修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/user">管理员列表</a> > 管理员修改</h5>
<form id="addarc" method="post" action="/fladmin/user/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -38,8 +36,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -68,4 +64,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/user/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>管理员列表_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '管理员列表')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">管理员列表</h2>[ <a href="/fladmin/user/add">添加管理员</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -25,6 +23,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

12
resources/views/admin/userrole/add.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>添加角色_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '添加角色')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/userrole">角色列表</a> > 添加角色</h5>
<form id="addarc" method="post" action="/fladmin/userrole/doadd" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -32,8 +30,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button><input type="hidden"></input></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -62,4 +58,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/userrole/edit.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>角色修改_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '角色修改')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h5 class="sub-header"><a href="/fladmin/userrole">角色列表</a> > 角色修改</h5>
<form id="addarc" method="post" action="/fladmin/userrole/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}
@ -32,8 +30,6 @@
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button>&nbsp;&nbsp;<button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td>
</tr>
</tbody></table></form><!-- 表单结束 -->
</div></div><!-- 右边结束 --></div></div>
<script>
$(function(){
$(".required").blur(function(){
@ -62,4 +58,4 @@ $(function(){
});
});
</script>
</body></html>
@endsection

12
resources/views/admin/userrole/index.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>角色管理_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '角色管理')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">角色管理</h2>[ <a href="/fladmin/userrole/add">添加角色</a> ]<br><br>
<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
@ -25,6 +23,4 @@
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

11
resources/views/admin/userrole/permissions.blade.php

@ -1,9 +1,7 @@
<!DOCTYPE html><html><head><title>角色权限设置_后台管理</title>@include('admin.common.header')
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
@extends('admin.layouts.app')
@section('title', '角色权限设置')
<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
@section('content')
<h2 class="sub-header">角色权限设置</h2>[ <a href="<?php echo route('admin_userrole'); ?>">角色列表</a> ]<br><br>
<form method="post" action="<?php echo route('admin_userrole_dopermissions'); ?>" role="form" enctype="multipart/form-data" class="table-responsive"><div class="table-responsive">{{ csrf_field() }}
@ -63,5 +61,4 @@ function checknode(obj)
}
}
</script>
</div></div><!-- 右边结束 --></div></div>
</body></html>
@endsection

3
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');
});
//接口路由

Loading…
Cancel
Save