mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
新增管理后台的登录页面
This commit is contained in:
parent
a0c554194d
commit
7993f7b92d
15
application/admin/controller/User.php
Normal file
15
application/admin/controller/User.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @since 2016-02-18
|
||||
* @author zhaoxiang <zhaoxiang051405@outlook.com>
|
||||
*/
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
|
||||
class User extends Base {
|
||||
public function login(){
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
@ -320,6 +320,18 @@
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> 操作日志</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-dashboard"></i> <span>网站内容管理</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> 新闻发布</a></li>
|
||||
<li><a href="#"><i class="fa fa-circle-o"></i> 软件说明</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-diamond"></i> <span>订单管理</span>
|
||||
|
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>7d-vision | 登 录</title>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="//cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||
<link rel="stylesheet" href="__ADMIN__/dist/css/AdminLTE.min.css">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="../../index2.html"><b>7D</b> VISION</a>
|
||||
</div>
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">请登录您的账户</p>
|
||||
|
||||
<form action="../../index2.html" method="post">
|
||||
<div class="form-group has-feedback">
|
||||
<input type="email" class="form-control" placeholder="Email">
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="password" class="form-control" placeholder="Password">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">登 录</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<a href="#">I forgot my password</a><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- jQuery 2.2.3 -->
|
||||
<script src="__STATIC__/jQuery/2.2.4/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.6 -->
|
||||
<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="__ADMIN__/plugins/iCheck/icheck.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -25,13 +25,13 @@ return [
|
||||
// 服务器地址
|
||||
'hostname' => '127.0.0.1',
|
||||
// 数据库名
|
||||
'database' => '7d-vision',
|
||||
'database' => 'admin',
|
||||
// 数据库用户名
|
||||
'username' => 'root',
|
||||
// 数据库密码
|
||||
'password' => '',
|
||||
'password' => 'root',
|
||||
// 数据库连接端口
|
||||
'hostport' => '27017',
|
||||
'hostport' => '3306',
|
||||
// 数据库连接参数
|
||||
'params' => [],
|
||||
// 数据库编码默认采用utf8
|
||||
|
Loading…
x
Reference in New Issue
Block a user