GGican 9 lat temu
rodzic
commit
d7dee519e1

+ 7 - 0
app/Http/Controllers/Admin/IndexController.php

xqd
@@ -9,6 +9,13 @@ namespace App\Http\Controllers\Admin;
     use Illuminate\Support\Facades\Validator;
     use Session;
     class IndexController extends CommonController{
+
+        public function see()
+        {
+            return view('admin.see');
+        }
+
+
         public function index()
         {
             $data = Tablelist::orderby('id','asc')->paginate(2);

+ 2 - 0
app/Http/routes.php

xqd
@@ -15,6 +15,8 @@
 //Admin
 Route::group(['namespace'=>'Admin','middleware'=>['admin.login']],function() {
 
+    Route::get('/see', 'IndexController@see');
+
     Route::get('/', 'IndexController@index');
     Route::get('/change_pswd', 'IndexController@change_pswd');
     Route::post('/pswd', 'IndexController@pswd');

+ 2 - 1
composer.json

xqd
@@ -6,7 +6,8 @@
     "type": "project",
     "require": {
         "php": ">=5.5.9",
-        "laravel/framework": "5.2.*"
+        "laravel/framework": "5.2.*",
+        "zizaco/entrust": "5.2.x-dev"
     },
     "require-dev": {
         "fzaninotto/faker": "~1.4",

+ 73 - 3
composer.lock

xqd xqd xqd
@@ -4,8 +4,8 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "c284a9c122da36c99a8b6597bdce7aa6",
-    "content-hash": "8b1485987e7c5949da82435d403e52e8",
+    "hash": "414c6305d90df14e115cdee7292d86f1",
+    "content-hash": "cbd6671ced806cb4f15d11de9affd094",
     "packages": [
         {
             "name": "classpreloader/classpreloader",
@@ -1778,6 +1778,74 @@
                 "environment"
             ],
             "time": "2016-06-14 14:14:52"
+        },
+        {
+            "name": "zizaco/entrust",
+            "version": "5.2.x-dev",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/Zizaco/entrust.git",
+                "reference": "b749bff868026336dec1ba1a16c150728697353d"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://packagist.phpcomposer.com/files/Zizaco/entrust/b749bff868026336dec1ba1a16c150728697353d.zip",
+                "reference": "b749bff868026336dec1ba1a16c150728697353d",
+                "shasum": ""
+            },
+            "require": {
+                "illuminate/cache": "~5.0",
+                "illuminate/console": "~5.0",
+                "illuminate/support": "~5.0",
+                "php": ">=5.5.0"
+            },
+            "require-dev": {
+                "illuminate/database": "~5.0",
+                "mockery/mockery": "dev-master",
+                "phpunit/phpunit": "~4.1",
+                "sami/sami": "dev-master"
+            },
+            "type": "library",
+            "autoload": {
+                "classmap": [
+                    "src/commands"
+                ],
+                "psr-4": {
+                    "Zizaco\\Entrust\\": "src/Entrust/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Andrew Elkins",
+                    "homepage": "http://andrewelkins.com"
+                },
+                {
+                    "name": "Zizaco Zizuini",
+                    "email": "zizaco@gmail.com"
+                },
+                {
+                    "name": "Ben Batschelet",
+                    "homepage": "http://github.com/bbatsche"
+                },
+                {
+                    "name": "Michele Angioni",
+                    "email": "michele.angioni@gmail.com"
+                }
+            ],
+            "description": "This package provides a flexible way to add Role-based Permissions to Laravel",
+            "keywords": [
+                "acl",
+                "auth",
+                "illuminate",
+                "laravel",
+                "permission",
+                "roles"
+            ],
+            "time": "2016-03-24 15:24:42"
         }
     ],
     "packages-dev": [
@@ -3155,7 +3223,9 @@
     ],
     "aliases": [],
     "minimum-stability": "stable",
-    "stability-flags": [],
+    "stability-flags": {
+        "zizaco/entrust": 20
+    },
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {

+ 47 - 0
public/css/myself.css

xqd
@@ -0,0 +1,47 @@
+body{
+    height: 100%;
+    background-image: url('../img/bg.jpg');
+    margin: 0;
+}
+.container{
+    position: fixed;
+    bottom: 0;
+    height: 19em;
+    width: 100%;
+}
+.container_one>h1{
+    margin: 0;
+    font-weight: 400;
+    font-size: 2.5em;
+    color: #6b98ff;
+    padding-top: 1%
+}
+.container_one{
+    width: 100%;
+    height: 6em;
+    background:rgba(255,255,255,0.8);
+    vertical-align: middle;
+    text-align: center
+}
+.container_two{
+    width: 100%;
+    height: 13em;
+    background:rgb(104, 135, 186);
+    vertical-align: middle;
+    display: table
+}
+.container_two_div{
+    display: table-cell;
+    vertical-align: middle;
+    text-align: center
+}
+.container_two_div>div{
+    text-align: center;
+    margin-bottom: 0.5em;
+}
+.container_two_div>form>label{
+    color: white;
+}
+.container_two_div>form>button{
+    color: #6c6c6c;
+}

+ 1 - 1
public/css/signin.css

xqd
@@ -131,7 +131,7 @@ body {
 */
  .account-box {
   
-    -moz-border-radius: 0 0 4px 4px
+    -moz-border-radius: 0 0 4px 4px;
     -webkit-border-radius: 0 0 4px 4px;
     -khtml-border-radius: 0 0 4px 4px;
     border-radius: 0 0 4px 4px;

BIN
public/img/bg.jpg


+ 18 - 19
resources/views/admin/index.blade.php

xqd xqd
@@ -41,7 +41,7 @@
                         <i class="fa fa-angle-left pull-right"></i>
                     </a>
                     <ul class="treeview-menu">
-                        <li><a href="{{ url('/table') }}"><i class="fa fa-circle-o"></i>受理案件
+                        <li><a href="{{ url('/table') }}"><i class="fa  fa-file-text-o"></i>受理案件
                                 <i class="fa fa-angle-left pull-right"></i></a>
                             <ul class="treeview-menu">
                                 <li><a href="{{ url('/table/1') }}"><i class="fa fa-circle-o"></i>安置单(货币化安置)</a></li>
@@ -62,25 +62,24 @@
                     <a href="#">
                         <i class="fa fa-cogs"></i>
                         <span>系统设置</span>
+                        <i class="fa fa-angle-left pull-right"></i>
                     </a>
-                </li>
-                <li class="treeview">
-                    <a href="{{ url('/user_list') }}">
-                        <i class="fa fa-cogs"></i>
-                        <span>用户管理</span>
-                    </a>
-                </li>
-                <li class="treeview">
-                    <a href="#">
-                        <i class="fa fa-cogs"></i>
-                        <span>岗位管理</span>
-                    </a>
-                </li>
-                <li class="treeview">
-                    <a href="#">
-                        <i class="fa fa-cogs"></i>
-                        <span>权限管理</span>
-                    </a>
+                    <ul class="treeview-menu">
+                        <li><a href="{{ url('/user_list') }}">
+                                <i class="fa fa-circle-o"></i>
+                                <span>用户管理</span></a>
+                        </li>
+                        <li><a href="#">
+                                <i class="fa fa-circle-o"></i>
+                                <span>岗位管理</span>
+                            </a>
+                        </li>
+                        <li><a href="#">
+                                <i class="fa fa-circle-o"></i>
+                                <span>权限管理</span>
+                            </a>
+                        </li>
+                    </ul>
                 </li>
             </ul>
         </section>

+ 30 - 81
resources/views/admin/login.blade.php

xqd
@@ -1,95 +1,44 @@
 <!DOCTYPE html>
 <html>
 
-<head>
-  <meta charset="utf-8">
-  <title>征拆局 管理系统</title>
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <meta name="description" content="This is Blog Login">
-  <meta name="author" content="GT.Young">
-  <!-- Le styles -->
-  <script type="text/javascript" src="{{ asset('js/jquery.min.js')}}"></script>
-
-  <!--  <link rel="stylesheet" href="assets/css/style.css"> -->
-  <link rel="stylesheet" href="{{ asset('css/loader-style.css') }}">
-  <link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}">
-  <link rel="stylesheet" href="{{ asset('css/signin.css') }}">
+{{--@if(session('msg'))--}}
+    {{--<p style="color: #b30b0b">{{ session('msg') }}</p>--}}
+{{--@endif--}}
 
-  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
-  <!--[if lt IE 9]>
-  <!--<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>-->
-  <![endif]-->
-  <!-- Fav and touch icons -->
-  <link rel="shortcut icon" href="{{asset('img/minus.png')}}">
+<head>
+    <meta charset="utf-8">
+    <title>征拆局 管理系统</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="stylesheet" href="{{ asset('/css/myself.css') }}">
+    <link rel="shortcut icon" href="{{asset('img/minus.png')}}">
 </head>
 
-<div class="container">
-  <div class="" id="login-wrapper">
-    <div class="row">
-      <div class="col-md-4 col-md-offset-4">
-        <div id="logo-login">
-          <h1>征拆局 管理系统
-            <span>v &nbsp;1.0</span>
-          </h1>
-        </div>
-      </div>
-    </div>
 
-    <div class="row">
-      <div class="col-md-4 col-md-offset-4">
-        <div class="account-box">
-          <div style="align-content: center">
-            @if(session('msg'))
-            <p style="color: #b30b0b">{{ session('msg') }}</p>
-              @endif
-          </div>
-          <form role="form" action="{{asset('/login')}}" method="post" >
-            {{csrf_field()}}
-            <div class="form-group">
-              <!--a href="#" class="pull-right label-forgot">Forgot email?</a-->
-              <label for="inputUsernameEmail">用户名</label>
-              <input type="text" id="inputUsernameEmail" class="form-control" name="user_name">
-            </div>
-            <div class="form-group">
-              <!--a href="#" class="pull-right label-forgot">Forgot password?</a-->
-              <label for="inputPassword">密码</label>
-              <input type="password" id="inputPassword" class="form-control" name="user_pswd">
-            </div>
-            <div class="form-group">
-              <!--a href="#" class="pull-right label-forgot">Forgot password?</a-->
-              <label for="inputPassword">验证码</label><br>
-              <input type="text" id="inputPassword" class="form-control" style="width: 40%;float: left;" name="code">
-              <img src="{{ url('admin/captcha') }}" style="width: 30%;height: 70%;margin-left: 10%" onclick="this.src='{{ url('admin/captcha') }}?'+Math.random()">
-            </div>
-            <div class="checkbox pull-left">
-              <label>
-                <input type="checkbox">记住用户名</label>
-            </div>
-            <button class="btn btn-primary pull-right" type="submit">
-              登 录
-            </button>
-          </form>
-
-          <div class="row-block">
-            <div class="row">
+<body>
+    <div class="container">
+        <div class="container_one">
+            <h1>海勃湾区征拆局管理系统</h1>
+        </div>
+        <div class="container_two">
+            <div class="container_two_div">
+                <div>
+                    @if(session('msg'))
+                        <p style="color: #b30b0b">{{ session('msg') }}</p>
+                        @endif
+                </div>
+                <form action="{{ url('/login') }}" method="post">
+                    {{ csrf_field() }}
+                    <label>用户名:</label><input name="user_name" type="text">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                    <label>密 码:</label><input name="user_pswd" type="password">&nbsp;&nbsp;&nbsp;&nbsp;
+                    <button type="submit">登录</button>
+                </form>
             </div>
-          </div>
         </div>
-      </div>
     </div>
-  </div>
-
-  <p>&nbsp;</p>
-  <div style="text-align:center;margin:0 auto;">
-    {{--<h6 style="color:#fff;">Copyright(C)2014 # All Rights Reserved<br />--}}
-      {{--xxxxx有限公司 版权所有 xIP备xxxxxxx号</h6>--}}
-  </div>
-</div>
-
-
 <!--  END OF PAPER WRAP -->
 
 </body>
 
-</html>
-
+</html>

+ 95 - 0
resources/views/admin/old_login.blade.php

xqd
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+  <meta charset="utf-8">
+  <title>征拆局 管理系统</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <meta name="description" content="This is Blog Login">
+  <meta name="author" content="GT.Young">
+  <!-- Le styles -->
+  <script type="text/javascript" src="{{ asset('js/jquery.min.js')}}"></script>
+
+  <!--  <link rel="stylesheet" href="assets/css/style.css"> -->
+  <link rel="stylesheet" href="{{ asset('css/loader-style.css') }}">
+  <link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}">
+  <link rel="stylesheet" href="{{ asset('css/signin.css') }}">
+
+  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
+  <!--[if lt IE 9]>
+  <!--<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>-->
+  <![endif]-->
+  <!-- Fav and touch icons -->
+  <link rel="shortcut icon" href="{{asset('img/minus.png')}}">
+</head>
+
+<div class="container">
+  <div class="" id="login-wrapper">
+    <div class="row">
+      <div class="col-md-4 col-md-offset-4">
+        <div id="logo-login">
+          <h1>征拆局 管理系统
+            <span>v &nbsp;1.0</span>
+          </h1>
+        </div>
+      </div>
+    </div>
+
+    <div class="row">
+      <div class="col-md-4 col-md-offset-4">
+        <div class="account-box">
+          <div style="align-content: center">
+            @if(session('msg'))
+            <p style="color: #b30b0b">{{ session('msg') }}</p>
+              @endif
+          </div>
+          <form role="form" action="{{asset('/login')}}" method="post" >
+            {{csrf_field()}}
+            <div class="form-group">
+              <!--a href="#" class="pull-right label-forgot">Forgot email?</a-->
+              <label for="inputUsernameEmail">用户名</label>
+              <input type="text" id="inputUsernameEmail" class="form-control" name="user_name">
+            </div>
+            <div class="form-group">
+              <!--a href="#" class="pull-right label-forgot">Forgot password?</a-->
+              <label for="inputPassword">密码</label>
+              <input type="password" id="inputPassword" class="form-control" name="user_pswd">
+            </div>
+            <div class="form-group">
+              <!--a href="#" class="pull-right label-forgot">Forgot password?</a-->
+              <label for="inputPassword">验证码</label><br>
+              <input type="text" id="inputPassword" class="form-control" style="width: 40%;float: left;" name="code">
+              <img src="{{ url('admin/captcha') }}" style="width: 30%;height: 70%;margin-left: 10%" onclick="this.src='{{ url('admin/captcha') }}?'+Math.random()">
+            </div>
+            <div class="checkbox pull-left">
+              <label>
+                <input type="checkbox">记住用户名</label>
+            </div>
+            <button class="btn btn-primary pull-right" type="submit">
+              登 录
+            </button>
+          </form>
+
+          <div class="row-block">
+            <div class="row">
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+
+  <p>&nbsp;</p>
+  <div style="text-align:center;margin:0 auto;">
+    {{--<h6 style="color:#fff;">Copyright(C)2014 # All Rights Reserved<br />--}}
+      {{--xxxxx有限公司 版权所有 xIP备xxxxxxx号</h6>--}}
+  </div>
+</div>
+
+
+<!--  END OF PAPER WRAP -->
+
+</body>
+
+</html>
+