首页、登录页完成
This commit is contained in:
1 parent
af94de400d
commit
dfd92b846c
9 files changed
+101
-138
No files matched your search
@@ -63,6 +63,7 @@ class Index extends Base
|
||||
// 查询用户登录次数
|
||||
$admin = new \app\admin\model\Admin;
|
||||
$userid = session('userid');
|
||||
$list['username'] = session('username');
|
||||
$list['denglu'] = $admin->where('id',$userid)
|
||||
->field('denglucishu,lastip,lasttime')
|
||||
->find();
|
||||
@@ -86,19 +87,4 @@ class Index extends Base
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function exit()
|
||||
{
|
||||
// 清除cookie
|
||||
cookie(null, 'think_');
|
||||
// 清除session(当前作用域)
|
||||
session(null);
|
||||
|
||||
// 跳转页面
|
||||
$this->redirect('/login');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
<html class="x-admin-sm">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>后台登录-X-admin2.1</title>
|
||||
<title>{$list.title} v{$list['version']}</title>
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<blockquote class="layui-elem-quote">欢迎管理员:
|
||||
<span class="x-red">test</span>!当前时间:2018-04-25 20:50:53 <a onclick="parent.x_admin_add_to_tab('在tab打开','https://www.163.com',true)" style="color: red" href="javascript:;">在tab打开</a>
|
||||
<span class="x-red">{$list['username']}</span>!当前时间:{php} echo date('Y-m-d h:m:s'){/php} <a onclick="parent.x_admin_add_to_tab('在tab打开','https://www.163.com',true)" style="color: red" href="javascript:;">在tab打开</a>
|
||||
</blockquote>
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>数据统计</legend>
|
||||
@@ -80,12 +80,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td >
|
||||
<a class="x-a" href="/" target="_blank">新版x-admin 2.0上线了</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >
|
||||
<a class="x-a" href="/" target="_blank">交流qq群:(519492808)</a>
|
||||
<a class="x-a" href="javascript:;">新版正式上线了!前端改成X-admin,看着更舒服使用更顺手。</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -97,18 +92,15 @@
|
||||
<div class="layui-field-box">
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>xxx版本</th>
|
||||
<td>1.0.180420</td></tr>
|
||||
<tr>
|
||||
<th>服务器地址</th>
|
||||
<td>x.xuebingsi.com</td></tr>
|
||||
<td>{$list.server.SERVER_ADDR}</td></tr>
|
||||
<tr>
|
||||
<th>操作系统</th>
|
||||
<td>WINNT</td></tr>
|
||||
<tr>
|
||||
<th>运行环境</th>
|
||||
<td>Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9</td></tr>
|
||||
<td>{$list.server.SERVER_SOFTWARE}</td></tr>
|
||||
<tr>
|
||||
<th>PHP版本</th>
|
||||
<td>5.6.27</td></tr>
|
||||
@@ -120,7 +112,10 @@
|
||||
<td>5.5.53</td></tr>
|
||||
<tr>
|
||||
<th>ThinkPHP</th>
|
||||
<td>5.0.18</td></tr>
|
||||
<td>{$Think.version}</td></tr>
|
||||
<tr>
|
||||
<th>X-admin版本</th>
|
||||
<td>2.1</td></tr>
|
||||
<tr>
|
||||
<th>上传附件限制</th>
|
||||
<td>2M</td></tr>
|
||||
@@ -134,33 +129,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>开发团队</legend>
|
||||
<div class="layui-field-box">
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>版权所有</th>
|
||||
<td>xuebingsi(xuebingsi)
|
||||
<a href="http://x.xuebingsi.com/" class='x-a' target="_blank">访问官网</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>开发者</th>
|
||||
<td>马志斌(113664000@qq.com)</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
<blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由x-admin提供技术支持。</blockquote>
|
||||
<blockquote class="layui-elem-quote layui-quote-nm">感谢{$list.thinks}本系统由大连巴掌(w86112@vip.163.com)提供技术支持。</blockquote>
|
||||
</div>
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loaded 3 of 9 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user